@hotosm/ui 0.3.4-b3 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -7
- package/dist/chunks/chunk.3RPYDHJV.js +1 -0
- package/dist/chunks/chunk.5NFC3HMD.js +1 -0
- package/dist/chunks/chunk.7BVHA4G6.js +71 -0
- package/dist/chunks/{chunk.SLQC3DLQ.js → chunk.7G6VEQ2R.js} +2 -2
- package/dist/chunks/chunk.ARF626EG.js +59 -0
- package/dist/chunks/{chunk.SHZIJ2ZS.js → chunk.BD4Q32VT.js} +1 -1
- package/dist/chunks/chunk.CQO3GWTI.js +32 -0
- package/dist/chunks/chunk.EB2T3VFE.js +122 -0
- package/dist/chunks/chunk.GEAU3JJH.js +187 -0
- package/dist/chunks/{chunk.NA3GD2QI.js → chunk.GLN7KYWH.js} +1 -1
- package/dist/chunks/{chunk.CY4WTDL2.js → chunk.LHZ7Q2M3.js} +1 -1
- package/dist/chunks/{chunk.SVLPRECX.js → chunk.PBBH42B6.js} +1 -1
- package/dist/chunks/chunk.PLECT4NZ.js +20 -0
- package/dist/chunks/chunk.QABMDRWR.js +28 -0
- package/dist/chunks/chunk.SLA5IPJG.js +1 -0
- package/dist/chunks/chunk.TMMJP2DW.js +1 -0
- package/dist/chunks/chunk.VXTJYHK5.js +1 -0
- package/dist/chunks/chunk.W372S2KG.js +1 -0
- package/dist/chunks/chunk.WTTPHBL3.js +105 -0
- package/dist/chunks/chunk.XDXYJBLZ.js +1 -0
- package/dist/chunks/{chunk.TYOVPHVD.js → chunk.XNZFLEXO.js} +1 -1
- package/dist/chunks/chunk.ZETV7TDG.js +25 -0
- package/dist/components/consent/consent.component.js +1 -1
- package/dist/components/consent/consent.js +1 -1
- package/dist/components/consent/consent.styles.js +1 -1
- package/dist/components/file-input-dropzone/file-input-dropzone.component.d.ts +39 -0
- package/dist/components/file-input-dropzone/file-input-dropzone.component.js +1 -0
- package/dist/components/file-input-dropzone/file-input-dropzone.d.ts +8 -0
- package/dist/components/file-input-dropzone/file-input-dropzone.js +1 -0
- package/dist/components/file-input-dropzone/file-input-dropzone.styles.d.ts +2 -0
- package/dist/components/file-input-dropzone/file-input-dropzone.styles.js +1 -0
- package/dist/components/header/header.component.d.ts +0 -2
- package/dist/components/header/header.component.js +1 -1
- package/dist/components/header/header.js +1 -1
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/list-card/list-card.component.d.ts +16 -0
- package/dist/components/list-card/list-card.component.js +1 -0
- package/dist/components/list-card/list-card.d.ts +7 -0
- package/dist/components/list-card/list-card.js +1 -0
- package/dist/components/list-card/list-card.styles.d.ts +2 -0
- package/dist/components/list-card/list-card.styles.js +1 -0
- package/dist/components/logo/logo.component.js +1 -1
- package/dist/components/logo/logo.js +1 -1
- package/dist/components/logo/logo.styles.js +1 -1
- package/dist/components/tool-menu/tool-menu.component.d.ts +13 -0
- package/dist/components/tool-menu/tool-menu.component.js +1 -0
- package/dist/components/tool-menu/tool-menu.d.ts +7 -0
- package/dist/components/tool-menu/tool-menu.js +1 -0
- package/dist/components/tool-menu/tool-menu.styles.d.ts +1 -0
- package/dist/components/tool-menu/tool-menu.styles.js +1 -0
- package/dist/components/tracking/tracking.component.js +1 -1
- package/dist/components/tracking/tracking.js +1 -1
- package/dist/hotosm-ui.d.ts +9 -6
- package/dist/hotosm-ui.js +1 -1
- package/dist/style.css +4 -3
- package/dist/themes/{hot-wa-override.css → hot-wa.css} +122 -323
- package/dist/themes/hot.css +15 -15
- package/dist/utils/shadow-dom-css.d.ts +3 -17
- package/package.json +21 -6
- package/dist/chunks/chunk.2LYFUHTS.js +0 -633
- package/dist/chunks/chunk.5EPWWJMT.js +0 -1
- package/dist/chunks/chunk.7M3AMUDU.js +0 -1
- package/dist/chunks/chunk.FT6RSQVB.js +0 -25
- package/dist/chunks/chunk.JHIEUZ7A.js +0 -1
- package/dist/chunks/chunk.WSMXFTSE.js +0 -28
- package/dist/chunks/chunk.XB4PECPF.js +0 -1
- package/dist/themes/hot-button-override.css +0 -246
|
@@ -1,633 +0,0 @@
|
|
|
1
|
-
import{a as Le}from"./chunk.FT6RSQVB.js";import{a as Go}from"./chunk.M3ZIZPKF.js";import{a as qo,b as Ko}from"./chunk.CY4WTDL2.js";import{d as We,e as Ro}from"./chunk.WSMXFTSE.js";import{d as Pe,e as Te,f as De,g as Me}from"./chunk.N2W26RCT.js";import"@awesome.me/webawesome/dist/components/tab-group/tab-group.js";import"@awesome.me/webawesome/dist/components/dialog/dialog.js";import"@awesome.me/webawesome/dist/components/icon/icon.js";import"@awesome.me/webawesome/dist/components/drawer/drawer.js";var ar={7:function(o,t,e){(function(n,a,i){var s=function(){return s=Object.assign||function(x){for(var w,b=1,P=arguments.length;b<P;b++)for(var U in w=arguments[b])Object.prototype.hasOwnProperty.call(w,U)&&(x[U]=w[U]);return x},s.apply(this,arguments)};function d(x,w){var b=typeof Symbol=="function"&&x[Symbol.iterator];if(!b)return x;var P,U,T=b.call(x),D=[];try{for(;(w===void 0||w-- >0)&&!(P=T.next()).done;)D.push(P.value)}catch(F){U={error:F}}finally{try{P&&!P.done&&(b=T.return)&&b.call(T)}finally{if(U)throw U.error}}return D}function h(x,w){return[x,!x||x.endsWith("/")?"":"/",w,".json"].join("")}function l(x,w){var b=x;return w&&Object.keys(w).forEach(function(P){var U=w[P],T=new RegExp("{".concat(P,"}"),"gm");b=b.replace(T,U.toString())}),b}function c(x,w,b){var P=x[w];if(!P)return b;var U=b.split("."),T="";do{var D=P[T+=U.shift()];D===void 0||typeof D!="object"&&U.length?U.length?T+=".":P=b:(P=D,T="")}while(U.length);return P}var v={},m={root:"",lang:"en",fallbackLang:"en"},g=a.createContext(null);n.TranslateContext=g,n.TranslateProvider=function(x){var w=function(D,F){D=Object.assign({},m,D),v=F||v;var N=d(i.useState(D.lang),2),L=N[0],ne=N[1],te=d(i.useState(v),2),X=te[0],R=te[1],ce=d(i.useState(!1),2),ke=ce[0],he=ce[1],Ce=function(re){if(!X.hasOwnProperty(re)){he(!1);var de=h(D.root,re);fetch(de).then(function(j){return j.json()}).then(function(j){v[re]=j,R(s({},v)),he(!0)}).catch(function(j){console.log("Aww, snap.",j),R(s({},v)),he(!0)})}};return i.useEffect(function(){Ce(D.fallbackLang),Ce(L)},[L]),{lang:L,setLang:ne,t:function(re,de){if(!X.hasOwnProperty(L))return re;var j=c(X,L,re);return j===re&&L!==D.fallbackLang&&(j=c(X,D.fallbackLang,re)),l(j,de)},isReady:ke}}({root:x.root||"assets",lang:x.lang||"en",fallbackLang:x.fallbackLang||"en"},x.translations),b=w.t,P=w.setLang,U=w.lang,T=w.isReady;return a.h(g.Provider,{value:{t:b,setLang:P,lang:U,isReady:T}},x.children)},n.format=l,n.getResourceUrl=h,n.getValue=c,Object.defineProperty(n,"__esModule",{value:!0})})(t,e(616),e(78))},633:(o,t)=>{var e;(function(){var n={}.hasOwnProperty;function a(){for(var i=[],s=0;s<arguments.length;s++){var d=arguments[s];if(d){var h=typeof d;if(h==="string"||h==="number")i.push(d);else if(Array.isArray(d)){if(d.length){var l=a.apply(null,d);l&&i.push(l)}}else if(h==="object"){if(d.toString!==Object.prototype.toString&&!d.toString.toString().includes("[native code]")){i.push(d.toString());continue}for(var c in d)n.call(d,c)&&d[c]&&i.push(c)}}}return i.join(" ")}o.exports?(a.default=a,o.exports=a):(e=function(){return a}.apply(t,[]))===void 0||(o.exports=e)})()},21:(o,t,e)=>{e.d(t,{A:()=>d});var n=e(645),a=e.n(n),i=e(278),s=e.n(i)()(a());s.push([o.id,'.hanko_accordion{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);width:100%;overflow:hidden}.hanko_accordion .hanko_accordionItem{color:var(--color, #333333);margin:.25rem 0;overflow:hidden}.hanko_accordion .hanko_accordionItem.hanko_dropdown{margin:0}.hanko_accordion .hanko_accordionItem .hanko_label{border-radius:var(--border-radius, 8px);border-style:none;height:var(--item-height, 42px);background:var(--background-color, white);box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;padding:0 1rem;margin:0;cursor:pointer;transition:all .35s}.hanko_accordion .hanko_accordionItem .hanko_label .hanko_labelText{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hanko_accordion .hanko_accordionItem .hanko_label .hanko_labelText .hanko_description{color:var(--color-shade-1, #8f9095)}.hanko_accordion .hanko_accordionItem .hanko_label.hanko_dropdown{margin:0;color:var(--link-color, #506cf0);justify-content:flex-start}.hanko_accordion .hanko_accordionItem .hanko_label:hover{color:var(--brand-contrast-color, white);background:var(--brand-color-shade-1, #6b84fb)}.hanko_accordion .hanko_accordionItem .hanko_label:hover .hanko_description{color:var(--brand-contrast-color, white)}.hanko_accordion .hanko_accordionItem .hanko_label:hover.hanko_dropdown{color:var(--link-color, #506cf0);background:none}.hanko_accordion .hanko_accordionItem .hanko_label:not(.hanko_dropdown)::after{content:"\u276F";width:1rem;text-align:center;transition:all .35s}.hanko_accordion .hanko_accordionItem .hanko_accordionInput{position:absolute;opacity:0;z-index:-1}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label{color:var(--brand-contrast-color, white);background:var(--brand-color, #506cf0)}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label .hanko_description{color:var(--brand-contrast-color, white)}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label.hanko_dropdown{color:var(--link-color, #506cf0);background:none}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label:not(.hanko_dropdown)::after{transform:rotate(90deg)}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label~.hanko_accordionContent{margin:.25rem 1rem;opacity:1;max-height:100vh}.hanko_accordion .hanko_accordionItem .hanko_accordionContent{max-height:0;margin:0 1rem;opacity:0;overflow:hidden;transition:all .35s}.hanko_accordion .hanko_accordionItem .hanko_accordionContent.hanko_dropdownContent{border-style:none}',""]),s.locals={accordion:"hanko_accordion",accordionItem:"hanko_accordionItem",dropdown:"hanko_dropdown",label:"hanko_label",labelText:"hanko_labelText",description:"hanko_description",accordionInput:"hanko_accordionInput",accordionContent:"hanko_accordionContent",dropdownContent:"hanko_dropdownContent"};let d=s},905:(o,t,e)=>{e.d(t,{A:()=>d});var n=e(645),a=e.n(n),i=e(278),s=e.n(i)()(a());s.push([o.id,".hanko_errorBox{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);border-radius:var(--border-radius, 8px);border-style:var(--border-style, solid);border-width:var(--border-width, 1px);color:var(--error-color, #e82020);background:var(--background-color, white);margin:var(--item-margin, 0.5rem 0);display:flex;align-items:start;box-sizing:border-box;line-height:1.5rem;padding:.25em;gap:.2em}.hanko_errorBox>span{display:inline-flex}.hanko_errorBox>span:first-child{padding:.25em 0 .25em .19em}.hanko_errorBox[hidden]{display:none}.hanko_errorMessage{color:var(--error-color, #e82020)}",""]),s.locals={errorBox:"hanko_errorBox",errorMessage:"hanko_errorMessage"};let d=s},577:(o,t,e)=>{e.d(t,{A:()=>d});var n=e(645),a=e.n(n),i=e(278),s=e.n(i)()(a());s.push([o.id,'.hanko_form{display:flex;flex-grow:1}.hanko_form .hanko_ul{flex-grow:1;margin:var(--item-margin, 0.5rem 0);padding-inline-start:0;list-style-type:none;display:flex;flex-wrap:wrap;gap:1em}.hanko_form .hanko_li{display:flex;max-width:100%;flex-grow:1;flex-basis:min-content}.hanko_form .hanko_li.hanko_maxWidth{min-width:100%}.hanko_button{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);border-radius:var(--border-radius, 8px);border-style:var(--border-style, solid);border-width:var(--border-width, 1px);white-space:nowrap;width:100%;min-width:var(--button-min-width, 7em);min-height:var(--item-height, 42px);outline:none;cursor:pointer;transition:.1s ease-out;flex-grow:1;flex-shrink:1;display:inline-flex}.hanko_button:disabled{cursor:default}.hanko_button.hanko_primary{color:var(--brand-contrast-color, white);background:var(--brand-color, #506cf0);border-color:var(--brand-color, #506cf0);justify-content:center}.hanko_button.hanko_primary:hover{color:var(--brand-contrast-color, white);background:var(--brand-color-shade-1, #6b84fb);border-color:var(--brand-color, #506cf0)}.hanko_button.hanko_primary:focus{color:var(--brand-contrast-color, white);background:var(--brand-color, #506cf0);border-color:var(--color, #333333)}.hanko_button.hanko_primary:disabled{color:var(--color-shade-1, #8f9095);background:var(--color-shade-2, #e5e6ef);border-color:var(--color-shade-2, #e5e6ef)}.hanko_button.hanko_secondary{color:var(--color, #333333);background:var(--background-color, white);border-color:var(--color, #333333);justify-content:flex-start}.hanko_button.hanko_secondary:hover{color:var(--color, #333333);background:var(--color-shade-2, #e5e6ef);border-color:var(--color, #333333)}.hanko_button.hanko_secondary:focus{color:var(--color, #333333);background:var(--background-color, white);border-color:var(--brand-color, #506cf0)}.hanko_button.hanko_secondary:disabled{color:var(--color-shade-1, #8f9095);background:var(--color-shade-2, #e5e6ef);border-color:var(--color-shade-1, #8f9095)}.hanko_button.hanko_dangerous{color:var(--error-color, #e82020);background:var(--background-color, white);border-color:var(--error-color, #e82020);flex-grow:0;width:auto}.hanko_caption{flex-grow:1;flex-wrap:wrap;display:flex;justify-content:space-between;align-items:baseline}.hanko_lastUsed{color:var(--color-shade-1, #8f9095);font-size:smaller}.hanko_inputWrapper{flex-grow:1;position:relative;display:flex;min-width:var(--input-min-width, 14em);max-width:100%}.hanko_input{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);border-radius:var(--border-radius, 8px);border-style:var(--border-style, solid);border-width:var(--border-width, 1px);height:var(--item-height, 42px);color:var(--color, #333333);border-color:var(--color-shade-1, #8f9095);background:var(--background-color, white);padding:0 .5rem;outline:none;width:100%;box-sizing:border-box;transition:.1s ease-out}.hanko_input.hanko_error{border-color:var(--error-color, #e82020)}.hanko_input:-webkit-autofill,.hanko_input:-webkit-autofill:hover,.hanko_input:-webkit-autofill:focus{-webkit-text-fill-color:var(--color, #333333);-webkit-box-shadow:0 0 0 50px var(--background-color, white) inset}.hanko_input::-ms-reveal,.hanko_input::-ms-clear{display:none}.hanko_input::placeholder{color:var(--color-shade-1, #8f9095)}.hanko_input:focus{color:var(--color, #333333);border-color:var(--color, #333333)}.hanko_input:disabled{color:var(--color-shade-1, #8f9095);background:var(--color-shade-2, #e5e6ef);border-color:var(--color-shade-1, #8f9095)}.hanko_passcodeInputWrapper{flex-grow:1;min-width:var(--input-min-width, 14em);max-width:fit-content;position:relative;display:flex;justify-content:space-between}.hanko_passcodeInputWrapper .hanko_passcodeDigitWrapper{flex-grow:1;margin:0 .5rem 0 0}.hanko_passcodeInputWrapper .hanko_passcodeDigitWrapper:last-child{margin:0}.hanko_passcodeInputWrapper .hanko_passcodeDigitWrapper .hanko_input{text-align:center}.hanko_checkboxWrapper{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--color, #333333);align-items:center;display:flex}.hanko_checkboxWrapper .hanko_label{color:inherit;padding-left:.5rem;cursor:pointer}.hanko_checkboxWrapper .hanko_label.hanko_disabled{cursor:default;color:var(--color-shade-1, #8f9095)}.hanko_checkboxWrapper .hanko_checkbox{border:currentColor solid 1px;border-radius:.15em;appearance:none;-webkit-appearance:none;width:1.1rem;height:1.1rem;margin:0;color:currentColor;background-color:var(--background-color, white);font:inherit;box-shadow:none;display:inline-flex;place-content:center;cursor:pointer}.hanko_checkboxWrapper .hanko_checkbox:checked{background-color:var(--color, #333333)}.hanko_checkboxWrapper .hanko_checkbox:disabled{cursor:default;background-color:var(--color-shade-2, #e5e6ef);border-color:var(--color-shade-1, #8f9095)}.hanko_checkboxWrapper .hanko_checkbox:checked:after{content:"\u2713";color:var(--background-color, white);position:absolute;line-height:1.1rem}.hanko_checkboxWrapper .hanko_checkbox:disabled:after{color:var(--color-shade-1, #8f9095)}',""]),s.locals={form:"hanko_form",ul:"hanko_ul",li:"hanko_li",maxWidth:"hanko_maxWidth",button:"hanko_button",primary:"hanko_primary",secondary:"hanko_secondary",dangerous:"hanko_dangerous",caption:"hanko_caption",lastUsed:"hanko_lastUsed",inputWrapper:"hanko_inputWrapper",input:"hanko_input",error:"hanko_error",passcodeInputWrapper:"hanko_passcodeInputWrapper",passcodeDigitWrapper:"hanko_passcodeDigitWrapper",checkboxWrapper:"hanko_checkboxWrapper",label:"hanko_label",disabled:"hanko_disabled",checkbox:"hanko_checkbox"};let d=s},619:(o,t,e)=>{e.d(t,{A:()=>d});var n=e(645),a=e.n(n),i=e(278),s=e.n(i)()(a());s.push([o.id,".hanko_headline{color:var(--color, #333333);font-family:var(--font-family, sans-serif);text-align:left;letter-spacing:0;font-style:normal;line-height:1.1}.hanko_headline.hanko_grade1{font-size:var(--headline1-font-size, 24px);font-weight:var(--headline1-font-weight, 600);margin:var(--headline1-margin, 0 0 0.5rem)}.hanko_headline.hanko_grade2{font-size:var(--headline2-font-size, 16px);font-weight:var(--headline2-font-weight, 600);margin:var(--headline2-margin, 1rem 0 0.5rem)}",""]),s.locals={headline:"hanko_headline",grade1:"hanko_grade1",grade2:"hanko_grade2"};let d=s},697:(o,t,e)=>{e.d(t,{A:()=>d});var n=e(645),a=e.n(n),i=e(278),s=e.n(i)()(a());s.push([o.id,".hanko_icon,.hanko_loadingSpinnerWrapper .hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_loadingSpinner,.hanko_exclamationMark,.hanko_checkmark{display:inline-block;fill:var(--brand-contrast-color, white);width:18px}.hanko_icon.hanko_secondary,.hanko_loadingSpinnerWrapper .hanko_secondary.hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_secondary.hanko_loadingSpinner,.hanko_secondary.hanko_exclamationMark,.hanko_secondary.hanko_checkmark{fill:var(--color, #333333)}.hanko_icon.hanko_disabled,.hanko_loadingSpinnerWrapper .hanko_disabled.hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_disabled.hanko_loadingSpinner,.hanko_disabled.hanko_exclamationMark,.hanko_disabled.hanko_checkmark{fill:var(--color-shade-1, #8f9095)}.hanko_checkmark{fill:var(--brand-color, #506cf0)}.hanko_checkmark.hanko_secondary{fill:var(--color-shade-1, #8f9095)}.hanko_checkmark.hanko_fadeOut{animation:hanko_fadeOut ease-out 1.5s forwards !important}@keyframes hanko_fadeOut{0%{opacity:1}100%{opacity:0}}.hanko_exclamationMark{fill:var(--error-color, #e82020)}.hanko_loadingSpinnerWrapperIcon{width:100%;column-gap:10px;margin-left:10px}.hanko_loadingSpinnerWrapper,.hanko_loadingSpinnerWrapperIcon{display:inline-flex;align-items:center;height:100%;margin:0 5px;justify-content:inherit;flex-wrap:inherit}.hanko_loadingSpinnerWrapper.hanko_centerContent,.hanko_centerContent.hanko_loadingSpinnerWrapperIcon{justify-content:center}.hanko_loadingSpinnerWrapper.hanko_maxWidth,.hanko_maxWidth.hanko_loadingSpinnerWrapperIcon{width:100%}.hanko_loadingSpinnerWrapper .hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_loadingSpinner{fill:var(--brand-color, #506cf0);animation:hanko_spin 500ms ease-in-out infinite}.hanko_loadingSpinnerWrapper.hanko_secondary,.hanko_secondary.hanko_loadingSpinnerWrapperIcon{fill:var(--color-shade-1, #8f9095)}@keyframes hanko_spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.hanko_googleIcon.hanko_disabled{fill:var(--color-shade-1, #8f9095)}.hanko_googleIcon.hanko_blue{fill:#4285f4}.hanko_googleIcon.hanko_green{fill:#34a853}.hanko_googleIcon.hanko_yellow{fill:#fbbc05}.hanko_googleIcon.hanko_red{fill:#ea4335}.hanko_microsoftIcon.hanko_disabled{fill:var(--color-shade-1, #8f9095)}.hanko_microsoftIcon.hanko_blue{fill:#00a4ef}.hanko_microsoftIcon.hanko_green{fill:#7fba00}.hanko_microsoftIcon.hanko_yellow{fill:#ffb900}.hanko_microsoftIcon.hanko_red{fill:#f25022}.hanko_facebookIcon.hanko_outline{fill:#0866ff}.hanko_facebookIcon.hanko_disabledOutline{fill:var(--color-shade-1, #8f9095)}.hanko_facebookIcon.hanko_letter{fill:#fff}.hanko_facebookIcon.hanko_disabledLetter{fill:var(--color-shade-2, #e5e6ef)}",""]),s.locals={icon:"hanko_icon",loadingSpinnerWrapper:"hanko_loadingSpinnerWrapper",loadingSpinner:"hanko_loadingSpinner",loadingSpinnerWrapperIcon:"hanko_loadingSpinnerWrapperIcon",exclamationMark:"hanko_exclamationMark",checkmark:"hanko_checkmark",secondary:"hanko_secondary",disabled:"hanko_disabled",fadeOut:"hanko_fadeOut",centerContent:"hanko_centerContent",maxWidth:"hanko_maxWidth",spin:"hanko_spin",googleIcon:"hanko_googleIcon",blue:"hanko_blue",green:"hanko_green",yellow:"hanko_yellow",red:"hanko_red",microsoftIcon:"hanko_microsoftIcon",facebookIcon:"hanko_facebookIcon",outline:"hanko_outline",disabledOutline:"hanko_disabledOutline",letter:"hanko_letter",disabledLetter:"hanko_disabledLetter"};let d=s},995:(o,t,e)=>{e.d(t,{A:()=>d});var n=e(645),a=e.n(n),i=e(278),s=e.n(i)()(a());s.push([o.id,".hanko_link{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--link-color, #506cf0);text-decoration:var(--link-text-decoration, none);cursor:pointer;background:none !important;border:none;padding:0 !important;transition:all .1s}.hanko_link:hover{text-decoration:var(--link-text-decoration-hover, underline)}.hanko_link:disabled{color:var(--color, #333333) !important;pointer-events:none;cursor:default}.hanko_link.hanko_danger{color:var(--error-color, #e82020)}.hanko_linkWrapper{display:inline-flex;flex-direction:row;justify-content:space-between;align-items:center;overflow:hidden}.hanko_linkWrapper.hanko_reverse{flex-direction:row-reverse}",""]),s.locals={link:"hanko_link",danger:"hanko_danger",linkWrapper:"hanko_linkWrapper",reverse:"hanko_reverse"};let d=s},560:(o,t,e)=>{e.d(t,{A:()=>d});var n=e(645),a=e.n(n),i=e(278),s=e.n(i)()(a());s.push([o.id,".hanko_otpCreationDetails{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--color, #333333);margin:var(--item-margin, 0.5rem 0);display:flex;justify-content:center;align-items:center;flex-direction:column;font-size:smaller}",""]),s.locals={otpCreationDetails:"hanko_otpCreationDetails"};let d=s},489:(o,t,e)=>{e.d(t,{A:()=>d});var n=e(645),a=e.n(n),i=e(278),s=e.n(i)()(a());s.push([o.id,".hanko_paragraph{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--color, #333333);margin:var(--item-margin, 0.5rem 0);text-align:left;word-break:break-word}",""]),s.locals={paragraph:"hanko_paragraph"};let d=s},111:(o,t,e)=>{e.d(t,{A:()=>d});var n=e(645),a=e.n(n),i=e(278),s=e.n(i)()(a());s.push([o.id,".hanko_spacer{height:1em}.hanko_divider{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);display:flex;visibility:var(--divider-visibility, visible);color:var(--color-shade-1, #8f9095);margin:var(--item-margin, 0.5rem 0);padding:.5em 0}.hanko_divider .hanko_line{border-bottom-style:var(--border-style, solid);border-bottom-width:var(--border-width, 1px);color:inherit;font:inherit;width:100%}.hanko_divider .hanko_text{font:inherit;color:inherit;background:var(--background-color, white);padding:var(--divider-padding, 0 42px);line-height:.1em}",""]),s.locals={spacer:"hanko_spacer",divider:"hanko_divider",line:"hanko_line",text:"hanko_text"};let d=s},914:(o,t,e)=>{e.d(t,{A:()=>d});var n=e(645),a=e.n(n),i=e(278),s=e.n(i)()(a());s.push([o.id,".hanko_container{background-color:var(--background-color, white);padding:var(--container-padding, 30px);max-width:var(--container-max-width, 410px);display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center;align-content:flex-start;box-sizing:border-box}.hanko_content{box-sizing:border-box;flex:0 1 auto;width:100%;height:100%}.hanko_footer{padding:.5rem 0 0;box-sizing:border-box;width:100%}.hanko_footer :nth-child(1){float:left}.hanko_footer :nth-child(2){float:right}.hanko_clipboardContainer{display:flex}.hanko_clipboardIcon{display:flex;margin:auto;cursor:pointer}",""]),s.locals={container:"hanko_container",content:"hanko_content",footer:"hanko_footer",clipboardContainer:"hanko_clipboardContainer",clipboardIcon:"hanko_clipboardIcon"};let d=s},278:o=>{o.exports=function(t){var e=[];return e.toString=function(){return this.map(function(n){var a="",i=n[5]!==void 0;return n[4]&&(a+="@supports (".concat(n[4],") {")),n[2]&&(a+="@media ".concat(n[2]," {")),i&&(a+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),a+=t(n),i&&(a+="}"),n[2]&&(a+="}"),n[4]&&(a+="}"),a}).join("")},e.i=function(n,a,i,s,d){typeof n=="string"&&(n=[[null,n,void 0]]);var h={};if(i)for(var l=0;l<this.length;l++){var c=this[l][0];c!=null&&(h[c]=!0)}for(var v=0;v<n.length;v++){var m=[].concat(n[v]);i&&h[m[0]]||(d!==void 0&&(m[5]===void 0||(m[1]="@layer".concat(m[5].length>0?" ".concat(m[5]):""," {").concat(m[1],"}")),m[5]=d),a&&(m[2]&&(m[1]="@media ".concat(m[2]," {").concat(m[1],"}")),m[2]=a),s&&(m[4]?(m[1]="@supports (".concat(m[4],") {").concat(m[1],"}"),m[4]=s):m[4]="".concat(s)),e.push(m))}},e}},645:o=>{o.exports=function(t){return t[1]}},616:(o,t,e)=>{e.r(t),e.d(t,{Component:()=>F,Fragment:()=>D,cloneElement:()=>Re,createContext:()=>qe,createElement:()=>P,createRef:()=>T,h:()=>P,hydrate:()=>rt,isValidElement:()=>s,options:()=>a,render:()=>Be,toChildArray:()=>ce});var n,a,i,s,d,h,l,c,v,m={},g=[],x=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function w(u,p){for(var _ in p)u[_]=p[_];return u}function b(u){var p=u.parentNode;p&&p.removeChild(u)}function P(u,p,_){var O,M,A,W={};for(A in p)A=="key"?O=p[A]:A=="ref"?M=p[A]:W[A]=p[A];if(arguments.length>2&&(W.children=arguments.length>3?n.call(arguments,2):_),typeof u=="function"&&u.defaultProps!=null)for(A in u.defaultProps)W[A]===void 0&&(W[A]=u.defaultProps[A]);return U(u,W,O,M,null)}function U(u,p,_,O,M){var A={type:u,props:p,key:_,ref:O,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:M==null?++i:M};return M==null&&a.vnode!=null&&a.vnode(A),A}function T(){return{current:null}}function D(u){return u.children}function F(u,p){this.props=u,this.context=p}function N(u,p){if(p==null)return u.__?N(u.__,u.__.__k.indexOf(u)+1):null;for(var _;p<u.__k.length;p++)if((_=u.__k[p])!=null&&_.__e!=null)return _.__e;return typeof u.type=="function"?N(u):null}function L(u){var p,_;if((u=u.__)!=null&&u.__c!=null){for(u.__e=u.__c.base=null,p=0;p<u.__k.length;p++)if((_=u.__k[p])!=null&&_.__e!=null){u.__e=u.__c.base=_.__e;break}return L(u)}}function ne(u){(!u.__d&&(u.__d=!0)&&d.push(u)&&!te.__r++||h!==a.debounceRendering)&&((h=a.debounceRendering)||l)(te)}function te(){var u,p,_,O,M,A,W,ee;for(d.sort(c);u=d.shift();)u.__d&&(p=d.length,O=void 0,M=void 0,W=(A=(_=u).__v).__e,(ee=_.__P)&&(O=[],(M=w({},A)).__v=A.__v+1,ue(ee,A,M,_.__n,ee.ownerSVGElement!==void 0,A.__h!=null?[W]:null,O,W==null?N(A):W,A.__h),C(O,A),A.__e!=W&&L(A)),d.length>p&&d.sort(c));te.__r=0}function X(u,p,_,O,M,A,W,ee,se,fe){var y,me,$,z,Z,Ye,ae,ve=O&&O.__k||g,Ee=ve.length;for(_.__k=[],y=0;y<p.length;y++)if((z=_.__k[y]=(z=p[y])==null||typeof z=="boolean"||typeof z=="function"?null:typeof z=="string"||typeof z=="number"||typeof z=="bigint"?U(null,z,null,null,z):Array.isArray(z)?U(D,{children:z},null,null,null):z.__b>0?U(z.type,z.props,z.key,z.ref?z.ref:null,z.__v):z)!=null){if(z.__=_,z.__b=_.__b+1,($=ve[y])===null||$&&z.key==$.key&&z.type===$.type)ve[y]=void 0;else for(me=0;me<Ee;me++){if(($=ve[me])&&z.key==$.key&&z.type===$.type){ve[me]=void 0;break}$=null}ue(u,z,$=$||m,M,A,W,ee,se,fe),Z=z.__e,(me=z.ref)&&$.ref!=me&&(ae||(ae=[]),$.ref&&ae.push($.ref,null,z),ae.push(me,z.__c||Z,z)),Z!=null?(Ye==null&&(Ye=Z),typeof z.type=="function"&&z.__k===$.__k?z.__d=se=R(z,se,u):se=ke(u,z,$,ve,Z,se),typeof _.type=="function"&&(_.__d=se)):se&&$.__e==se&&se.parentNode!=u&&(se=N($))}for(_.__e=Ye,y=Ee;y--;)ve[y]!=null&&(typeof _.type=="function"&&ve[y].__e!=null&&ve[y].__e==_.__d&&(_.__d=he(O).nextSibling),J(ve[y],ve[y]));if(ae)for(y=0;y<ae.length;y++)I(ae[y],ae[++y],ae[++y])}function R(u,p,_){for(var O,M=u.__k,A=0;M&&A<M.length;A++)(O=M[A])&&(O.__=u,p=typeof O.type=="function"?R(O,p,_):ke(_,O,O,M,O.__e,p));return p}function ce(u,p){return p=p||[],u==null||typeof u=="boolean"||(Array.isArray(u)?u.some(function(_){ce(_,p)}):p.push(u)),p}function ke(u,p,_,O,M,A){var W,ee,se;if(p.__d!==void 0)W=p.__d,p.__d=void 0;else if(_==null||M!=A||M.parentNode==null)e:if(A==null||A.parentNode!==u)u.appendChild(M),W=null;else{for(ee=A,se=0;(ee=ee.nextSibling)&&se<O.length;se+=1)if(ee==M)break e;u.insertBefore(M,A),W=A}return W!==void 0?W:M.nextSibling}function he(u){var p,_,O;if(u.type==null||typeof u.type=="string")return u.__e;if(u.__k){for(p=u.__k.length-1;p>=0;p--)if((_=u.__k[p])&&(O=he(_)))return O}return null}function Ce(u,p,_){p[0]==="-"?u.setProperty(p,_==null?"":_):u[p]=_==null?"":typeof _!="number"||x.test(p)?_:_+"px"}function re(u,p,_,O,M){var A;e:if(p==="style")if(typeof _=="string")u.style.cssText=_;else{if(typeof O=="string"&&(u.style.cssText=O=""),O)for(p in O)_&&p in _||Ce(u.style,p,"");if(_)for(p in _)O&&_[p]===O[p]||Ce(u.style,p,_[p])}else if(p[0]==="o"&&p[1]==="n")A=p!==(p=p.replace(/Capture$/,"")),p=p.toLowerCase()in u?p.toLowerCase().slice(2):p.slice(2),u.l||(u.l={}),u.l[p+A]=_,_?O||u.addEventListener(p,A?j:de,A):u.removeEventListener(p,A?j:de,A);else if(p!=="dangerouslySetInnerHTML"){if(M)p=p.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(p!=="width"&&p!=="height"&&p!=="href"&&p!=="list"&&p!=="form"&&p!=="tabIndex"&&p!=="download"&&p in u)try{u[p]=_==null?"":_;break e}catch(W){}typeof _=="function"||(_==null||_===!1&&p.indexOf("-")==-1?u.removeAttribute(p):u.setAttribute(p,_))}}function de(u){return this.l[u.type+!1](a.event?a.event(u):u)}function j(u){return this.l[u.type+!0](a.event?a.event(u):u)}function ue(u,p,_,O,M,A,W,ee,se){var fe,y,me,$,z,Z,Ye,ae,ve,Ee,et,pe,Bo,Ot,At,Ne=p.type;if(p.constructor!==void 0)return null;_.__h!=null&&(se=_.__h,ee=p.__e=_.__e,p.__h=null,A=[ee]),(fe=a.__b)&&fe(p);try{e:if(typeof Ne=="function"){if(ae=p.props,ve=(fe=Ne.contextType)&&O[fe.__c],Ee=fe?ve?ve.props.value:fe.__:O,_.__c?Ye=(y=p.__c=_.__c).__=y.__E:("prototype"in Ne&&Ne.prototype.render?p.__c=y=new Ne(ae,Ee):(p.__c=y=new F(ae,Ee),y.constructor=Ne,y.render=Fe),ve&&ve.sub(y),y.props=ae,y.state||(y.state={}),y.context=Ee,y.__n=O,me=y.__d=!0,y.__h=[],y._sb=[]),y.__s==null&&(y.__s=y.state),Ne.getDerivedStateFromProps!=null&&(y.__s==y.state&&(y.__s=w({},y.__s)),w(y.__s,Ne.getDerivedStateFromProps(ae,y.__s))),$=y.props,z=y.state,y.__v=p,me)Ne.getDerivedStateFromProps==null&&y.componentWillMount!=null&&y.componentWillMount(),y.componentDidMount!=null&&y.__h.push(y.componentDidMount);else{if(Ne.getDerivedStateFromProps==null&&ae!==$&&y.componentWillReceiveProps!=null&&y.componentWillReceiveProps(ae,Ee),!y.__e&&y.shouldComponentUpdate!=null&&y.shouldComponentUpdate(ae,y.__s,Ee)===!1||p.__v===_.__v){for(p.__v!==_.__v&&(y.props=ae,y.state=y.__s,y.__d=!1),y.__e=!1,p.__e=_.__e,p.__k=_.__k,p.__k.forEach(function(It){It&&(It.__=p)}),et=0;et<y._sb.length;et++)y.__h.push(y._sb[et]);y._sb=[],y.__h.length&&W.push(y);break e}y.componentWillUpdate!=null&&y.componentWillUpdate(ae,y.__s,Ee),y.componentDidUpdate!=null&&y.__h.push(function(){y.componentDidUpdate($,z,Z)})}if(y.context=Ee,y.props=ae,y.__P=u,pe=a.__r,Bo=0,"prototype"in Ne&&Ne.prototype.render){for(y.state=y.__s,y.__d=!1,pe&&pe(p),fe=y.render(y.props,y.state,y.context),Ot=0;Ot<y._sb.length;Ot++)y.__h.push(y._sb[Ot]);y._sb=[]}else do y.__d=!1,pe&&pe(p),fe=y.render(y.props,y.state,y.context),y.state=y.__s;while(y.__d&&++Bo<25);y.state=y.__s,y.getChildContext!=null&&(O=w(w({},O),y.getChildContext())),me||y.getSnapshotBeforeUpdate==null||(Z=y.getSnapshotBeforeUpdate($,z)),At=fe!=null&&fe.type===D&&fe.key==null?fe.props.children:fe,X(u,Array.isArray(At)?At:[At],p,_,O,M,A,W,ee,se),y.base=p.__e,p.__h=null,y.__h.length&&W.push(y),Ye&&(y.__E=y.__=null),y.__e=!1}else A==null&&p.__v===_.__v?(p.__k=_.__k,p.__e=_.__e):p.__e=S(_.__e,p,_,O,M,A,W,se);(fe=a.diffed)&&fe(p)}catch(It){p.__v=null,(se||A!=null)&&(p.__e=ee,p.__h=!!se,A[A.indexOf(ee)]=null),a.__e(It,p,_)}}function C(u,p){a.__c&&a.__c(p,u),u.some(function(_){try{u=_.__h,_.__h=[],u.some(function(O){O.call(_)})}catch(O){a.__e(O,_.__v)}})}function S(u,p,_,O,M,A,W,ee){var se,fe,y,me=_.props,$=p.props,z=p.type,Z=0;if(z==="svg"&&(M=!0),A!=null){for(;Z<A.length;Z++)if((se=A[Z])&&"setAttribute"in se==!!z&&(z?se.localName===z:se.nodeType===3)){u=se,A[Z]=null;break}}if(u==null){if(z===null)return document.createTextNode($);u=M?document.createElementNS("http://www.w3.org/2000/svg",z):document.createElement(z,$.is&&$),A=null,ee=!1}if(z===null)me===$||ee&&u.data===$||(u.data=$);else{if(A=A&&n.call(u.childNodes),fe=(me=_.props||m).dangerouslySetInnerHTML,y=$.dangerouslySetInnerHTML,!ee){if(A!=null)for(me={},Z=0;Z<u.attributes.length;Z++)me[u.attributes[Z].name]=u.attributes[Z].value;(y||fe)&&(y&&(fe&&y.__html==fe.__html||y.__html===u.innerHTML)||(u.innerHTML=y&&y.__html||""))}if(function(Ye,ae,ve,Ee,et){var pe;for(pe in ve)pe==="children"||pe==="key"||pe in ae||re(Ye,pe,null,ve[pe],Ee);for(pe in ae)et&&typeof ae[pe]!="function"||pe==="children"||pe==="key"||pe==="value"||pe==="checked"||ve[pe]===ae[pe]||re(Ye,pe,ae[pe],ve[pe],Ee)}(u,$,me,M,ee),y)p.__k=[];else if(Z=p.props.children,X(u,Array.isArray(Z)?Z:[Z],p,_,O,M&&z!=="foreignObject",A,W,A?A[0]:_.__k&&N(_,0),ee),A!=null)for(Z=A.length;Z--;)A[Z]!=null&&b(A[Z]);ee||("value"in $&&(Z=$.value)!==void 0&&(Z!==u.value||z==="progress"&&!Z||z==="option"&&Z!==me.value)&&re(u,"value",Z,me.value,!1),"checked"in $&&(Z=$.checked)!==void 0&&Z!==u.checked&&re(u,"checked",Z,me.checked,!1))}return u}function I(u,p,_){try{typeof u=="function"?u(p):u.current=p}catch(O){a.__e(O,_)}}function J(u,p,_){var O,M;if(a.unmount&&a.unmount(u),(O=u.ref)&&(O.current&&O.current!==u.__e||I(O,null,p)),(O=u.__c)!=null){if(O.componentWillUnmount)try{O.componentWillUnmount()}catch(A){a.__e(A,p)}O.base=O.__P=null,u.__c=void 0}if(O=u.__k)for(M=0;M<O.length;M++)O[M]&&J(O[M],p,_||typeof u.type!="function");_||u.__e==null||b(u.__e),u.__=u.__e=u.__d=void 0}function Fe(u,p,_){return this.constructor(u,_)}function Be(u,p,_){var O,M,A;a.__&&a.__(u,p),M=(O=typeof _=="function")?null:_&&_.__k||p.__k,A=[],ue(p,u=(!O&&_||p).__k=P(D,null,[u]),M||m,m,p.ownerSVGElement!==void 0,!O&&_?[_]:M?null:p.firstChild?n.call(p.childNodes):null,A,!O&&_?_:M?M.__e:p.firstChild,O),C(A,u)}function rt(u,p){Be(u,p,rt)}function Re(u,p,_){var O,M,A,W=w({},u.props);for(A in p)A=="key"?O=p[A]:A=="ref"?M=p[A]:W[A]=p[A];return arguments.length>2&&(W.children=arguments.length>3?n.call(arguments,2):_),U(u.type,W,O||u.key,M||u.ref,null)}function qe(u,p){var _={__c:p="__cC"+v++,__:u,Consumer:function(O,M){return O.children(M)},Provider:function(O){var M,A;return this.getChildContext||(M=[],(A={})[p]=this,this.getChildContext=function(){return A},this.shouldComponentUpdate=function(W){this.props.value!==W.value&&M.some(function(ee){ee.__e=!0,ne(ee)})},this.sub=function(W){M.push(W);var ee=W.componentWillUnmount;W.componentWillUnmount=function(){M.splice(M.indexOf(W),1),ee&&ee.call(W)}}),O.children}};return _.Provider.__=_.Consumer.contextType=_}n=g.slice,a={__e:function(u,p,_,O){for(var M,A,W;p=p.__;)if((M=p.__c)&&!M.__)try{if((A=M.constructor)&&A.getDerivedStateFromError!=null&&(M.setState(A.getDerivedStateFromError(u)),W=M.__d),M.componentDidCatch!=null&&(M.componentDidCatch(u,O||{}),W=M.__d),W)return M.__E=M}catch(ee){u=ee}throw u}},i=0,s=function(u){return u!=null&&u.constructor===void 0},F.prototype.setState=function(u,p){var _;_=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=w({},this.state),typeof u=="function"&&(u=u(w({},_),this.props)),u&&w(_,u),u!=null&&this.__v&&(p&&this._sb.push(p),ne(this))},F.prototype.forceUpdate=function(u){this.__v&&(this.__e=!0,u&&this.__h.push(u),ne(this))},F.prototype.render=D,d=[],l=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(u,p){return u.__v.__b-p.__v.__b},te.__r=0,v=0},78:(o,t,e)=>{e.r(t),e.d(t,{useCallback:()=>ne,useContext:()=>te,useDebugValue:()=>X,useEffect:()=>T,useErrorBoundary:()=>R,useId:()=>ce,useImperativeHandle:()=>N,useLayoutEffect:()=>D,useMemo:()=>L,useReducer:()=>U,useRef:()=>F,useState:()=>P});var n,a,i,s,d=e(616),h=0,l=[],c=[],v=d.options.__b,m=d.options.__r,g=d.options.diffed,x=d.options.__c,w=d.options.unmount;function b(C,S){d.options.__h&&d.options.__h(a,C,h||S),h=0;var I=a.__H||(a.__H={__:[],__h:[]});return C>=I.__.length&&I.__.push({__V:c}),I.__[C]}function P(C){return h=1,U(ue,C)}function U(C,S,I){var J=b(n++,2);if(J.t=C,!J.__c&&(J.__=[I?I(S):ue(void 0,S),function(Re){var qe=J.__N?J.__N[0]:J.__[0],u=J.t(qe,Re);qe!==u&&(J.__N=[u,J.__[1]],J.__c.setState({}))}],J.__c=a,!a.u)){var Fe=function(Re,qe,u){if(!J.__c.__H)return!0;var p=J.__c.__H.__.filter(function(O){return O.__c});if(p.every(function(O){return!O.__N}))return!Be||Be.call(this,Re,qe,u);var _=!1;return p.forEach(function(O){if(O.__N){var M=O.__[0];O.__=O.__N,O.__N=void 0,M!==O.__[0]&&(_=!0)}}),!(!_&&J.__c.props===Re)&&(!Be||Be.call(this,Re,qe,u))};a.u=!0;var Be=a.shouldComponentUpdate,rt=a.componentWillUpdate;a.componentWillUpdate=function(Re,qe,u){if(this.__e){var p=Be;Be=void 0,Fe(Re,qe,u),Be=p}rt&&rt.call(this,Re,qe,u)},a.shouldComponentUpdate=Fe}return J.__N||J.__}function T(C,S){var I=b(n++,3);!d.options.__s&&j(I.__H,S)&&(I.__=C,I.i=S,a.__H.__h.push(I))}function D(C,S){var I=b(n++,4);!d.options.__s&&j(I.__H,S)&&(I.__=C,I.i=S,a.__h.push(I))}function F(C){return h=5,L(function(){return{current:C}},[])}function N(C,S,I){h=6,D(function(){return typeof C=="function"?(C(S()),function(){return C(null)}):C?(C.current=S(),function(){return C.current=null}):void 0},I==null?I:I.concat(C))}function L(C,S){var I=b(n++,7);return j(I.__H,S)?(I.__V=C(),I.i=S,I.__h=C,I.__V):I.__}function ne(C,S){return h=8,L(function(){return C},S)}function te(C){var S=a.context[C.__c],I=b(n++,9);return I.c=C,S?(I.__==null&&(I.__=!0,S.sub(a)),S.props.value):C.__}function X(C,S){d.options.useDebugValue&&d.options.useDebugValue(S?S(C):C)}function R(C){var S=b(n++,10),I=P();return S.__=C,a.componentDidCatch||(a.componentDidCatch=function(J,Fe){S.__&&S.__(J,Fe),I[1](J)}),[I[0],function(){I[1](void 0)}]}function ce(){var C=b(n++,11);if(!C.__){for(var S=a.__v;S!==null&&!S.__m&&S.__!==null;)S=S.__;var I=S.__m||(S.__m=[0,0]);C.__="P"+I[0]+"-"+I[1]++}return C.__}function ke(){for(var C;C=l.shift();)if(C.__P&&C.__H)try{C.__H.__h.forEach(re),C.__H.__h.forEach(de),C.__H.__h=[]}catch(S){C.__H.__h=[],d.options.__e(S,C.__v)}}d.options.__b=function(C){a=null,v&&v(C)},d.options.__r=function(C){m&&m(C),n=0;var S=(a=C.__c).__H;S&&(i===a?(S.__h=[],a.__h=[],S.__.forEach(function(I){I.__N&&(I.__=I.__N),I.__V=c,I.__N=I.i=void 0})):(S.__h.forEach(re),S.__h.forEach(de),S.__h=[])),i=a},d.options.diffed=function(C){g&&g(C);var S=C.__c;S&&S.__H&&(S.__H.__h.length&&(l.push(S)!==1&&s===d.options.requestAnimationFrame||((s=d.options.requestAnimationFrame)||Ce)(ke)),S.__H.__.forEach(function(I){I.i&&(I.__H=I.i),I.__V!==c&&(I.__=I.__V),I.i=void 0,I.__V=c})),i=a=null},d.options.__c=function(C,S){S.some(function(I){try{I.__h.forEach(re),I.__h=I.__h.filter(function(J){return!J.__||de(J)})}catch(J){S.some(function(Fe){Fe.__h&&(Fe.__h=[])}),S=[],d.options.__e(J,I.__v)}}),x&&x(C,S)},d.options.unmount=function(C){w&&w(C);var S,I=C.__c;I&&I.__H&&(I.__H.__.forEach(function(J){try{re(J)}catch(Fe){S=Fe}}),I.__H=void 0,S&&d.options.__e(S,I.__v))};var he=typeof requestAnimationFrame=="function";function Ce(C){var S,I=function(){clearTimeout(J),he&&cancelAnimationFrame(S),setTimeout(C)},J=setTimeout(I,100);he&&(S=requestAnimationFrame(I))}function re(C){var S=a,I=C.__c;typeof I=="function"&&(C.__c=void 0,I()),a=S}function de(C){var S=a;C.__c=C.__(),a=S}function j(C,S){return!C||C.length!==S.length||S.some(function(I,J){return I!==C[J]})}function ue(C,S){return typeof S=="function"?S(C):S}},292:o=>{var t=[];function e(i){for(var s=-1,d=0;d<t.length;d++)if(t[d].identifier===i){s=d;break}return s}function n(i,s){for(var d={},h=[],l=0;l<i.length;l++){var c=i[l],v=s.base?c[0]+s.base:c[0],m=d[v]||0,g="".concat(v," ").concat(m);d[v]=m+1;var x=e(g),w={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(x!==-1)t[x].references++,t[x].updater(w);else{var b=a(w,s);s.byIndex=l,t.splice(l,0,{identifier:g,updater:b,references:1})}h.push(g)}return h}function a(i,s){var d=s.domAPI(s);return d.update(i),function(h){if(h){if(h.css===i.css&&h.media===i.media&&h.sourceMap===i.sourceMap&&h.supports===i.supports&&h.layer===i.layer)return;d.update(i=h)}else d.remove()}}o.exports=function(i,s){var d=n(i=i||[],s=s||{});return function(h){h=h||[];for(var l=0;l<d.length;l++){var c=e(d[l]);t[c].references--}for(var v=n(h,s),m=0;m<d.length;m++){var g=e(d[m]);t[g].references===0&&(t[g].updater(),t.splice(g,1))}d=v}}},88:o=>{o.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},884:(o,t,e)=>{o.exports=function(n){var a=e.nc;a&&n.setAttribute("nonce",a)}},360:o=>{var t,e=(t=[],function(i,s){return t[i]=s,t.filter(Boolean).join(`
|
|
2
|
-
`)});function n(i,s,d,h){var l;if(d)l="";else{l="",h.supports&&(l+="@supports (".concat(h.supports,") {")),h.media&&(l+="@media ".concat(h.media," {"));var c=h.layer!==void 0;c&&(l+="@layer".concat(h.layer.length>0?" ".concat(h.layer):""," {")),l+=h.css,c&&(l+="}"),h.media&&(l+="}"),h.supports&&(l+="}")}if(i.styleSheet)i.styleSheet.cssText=e(s,l);else{var v=document.createTextNode(l),m=i.childNodes;m[s]&&i.removeChild(m[s]),m.length?i.insertBefore(v,m[s]):i.appendChild(v)}}var a={singleton:null,singletonCounter:0};o.exports=function(i){if(typeof document=="undefined")return{update:function(){},remove:function(){}};var s=a.singletonCounter++,d=a.singleton||(a.singleton=i.insertStyleElement(i));return{update:function(h){n(d,s,!1,h)},remove:function(h){n(d,s,!0,h)}}}},6:(o,t,e)=>{e.d(t,{en:()=>n});let n={headlines:{error:"An error has occurred",loginEmail:"Sign in or create account",loginEmailNoSignup:"Sign in",loginFinished:"Login successful",loginPasscode:"Enter passcode",loginPassword:"Enter password",registerAuthenticator:"Create a passkey",registerConfirm:"Create account?",registerPassword:"Set new password",otpSetUp:"Set up authenticator app",profileEmails:"Emails",profilePassword:"Password",profilePasskeys:"Passkeys",isPrimaryEmail:"Primary email address",setPrimaryEmail:"Set primary email address",createEmail:"Enter a new email",createUsername:"Enter a new username",emailVerified:"Verified",emailUnverified:"Unverified",emailDelete:"Delete",renamePasskey:"Rename passkey",deletePasskey:"Delete passkey",lastUsedAt:"Last used at",createdAt:"Created at",connectedAccounts:"Connected accounts",deleteAccount:"Delete account",accountNotFound:"Account not found",signIn:"Sign in",signUp:"Create account",selectLoginMethod:"Select login method",setupLoginMethod:"Set up login method",lastUsed:"Last seen",ipAddress:"IP address",revokeSession:"Revoke session",profileSessions:"Sessions",mfaSetUp:"Set up MFA",securityKeySetUp:"Add security key",securityKeyLogin:"Security key",otpLogin:"Authentication code",renameSecurityKey:"Rename security key",deleteSecurityKey:"Delete security key",securityKeys:"Security keys",authenticatorApp:"Authenticator app",authenticatorAppAlreadySetUp:"Authenticator app is set up",authenticatorAppNotSetUp:"Set up authenticator app",trustDevice:"Trust this browser?"},texts:{enterPasscode:'Enter the passcode that was sent to "{emailAddress}".',enterPasscodeNoEmail:"Enter the passcode that was sent to your primary email address.",setupPasskey:"Sign in to your account easily and securely with a passkey. Note: Your biometric data is only stored on your devices and will never be shared with anyone.",createAccount:'No account exists for "{emailAddress}". Do you want to create a new account?',otpEnterVerificationCode:"Enter the one-time password (OTP) obtained from your authenticator app below:",otpScanQRCode:"Scan the QR code using your authenticator app (such as Google Authenticator or any other TOTP app). Alternatively, you can manually enter the OTP secret key into the app.",otpSecretKey:"OTP secret key",passwordFormatHint:"Must be between {minLength} and {maxLength} characters long.",securityKeySetUp:"Use a dedicated security key via USB, Bluetooth, or NFC, or your mobile phone. Connect or activate your security key, then click the button below and follow the prompts to complete the registration.",setPrimaryEmail:"Set this email address to be used for contacting you.",isPrimaryEmail:"This email address will be used to contact you if necessary.",emailVerified:"This email address has been verified.",emailUnverified:"This email address has not been verified.",emailDelete:"If you delete this email address, it can no longer be used to sign in.",renamePasskey:"Set a name for the passkey.",deletePasskey:"Delete this passkey from your account.",deleteAccount:"Are you sure you want to delete this account? All data will be deleted immediately and cannot be recovered.",noAccountExists:'No account exists for "{emailAddress}".',selectLoginMethodForFutureLogins:"Select one of the following login methods to use for future logins.",howDoYouWantToLogin:"How do you want to login?",mfaSetUp:"Protect your account with Multi-Factor Authentication (MFA). MFA adds an additional step to your login process, ensuring that even if your password or email account is compromised, your account stays secure.",securityKeyLogin:"Connect or activate your security key, then click the button below. Once ready, use it via USB, NFC, your mobile phone. Follow the prompts to complete the login process.",otpLogin:"Open your authenticator app to obtain the one-time password (OTP). Enter the code in the field below to complete your login.",renameSecurityKey:"Set a name for the security key.",deleteSecurityKey:"Delete this security key from your account.",authenticatorAppAlreadySetUp:"Your account is secured with an authenticator app that generates time-based one-time passwords (TOTP) for multi-factor authentication.",authenticatorAppNotSetUp:"Secure your account with an authenticator app that generates time-based one-time passwords (TOTP) for multi-factor authentication.",trustDevice:"If you trust this browser, you won\u2019t need to enter your OTP (One-Time-Password) or use your security key for multi-factor authentication (MFA) the next time you log in."},labels:{or:"or",no:"no",yes:"yes",email:"Email",continue:"Continue",copied:"copied",skip:"Skip",save:"Save",password:"Password",passkey:"Passkey",passcode:"Passcode",signInPassword:"Sign in with a password",signInPasscode:"Sign in with a passcode",forgotYourPassword:"Forgot your password?",back:"Back",signInPasskey:"Sign in with a passkey",registerAuthenticator:"Create a passkey",signIn:"Sign in",signUp:"Create account",sendNewPasscode:"Send new code",passwordRetryAfter:"Retry in {passwordRetryAfter}",passcodeResendAfter:"Request a new code in {passcodeResendAfter}",unverifiedEmail:"unverified",primaryEmail:"primary",setAsPrimaryEmail:"Set as primary",verify:"Verify",delete:"Delete",newEmailAddress:"New email address",newPassword:"New password",rename:"Rename",newPasskeyName:"New passkey name",addEmail:"Add email",createPasskey:"Create a passkey",webauthnUnsupported:"Passkeys are not supported by your browser",signInWith:"Sign in with {provider}",deleteAccount:"Yes, delete this account.",emailOrUsername:"Email or username",username:"Username",optional:"optional",dontHaveAnAccount:"Don't have an account?",alreadyHaveAnAccount:"Already have an account?",changeUsername:"Change username",setUsername:"Set username",changePassword:"Change password",setPassword:"Set password",revoke:"Revoke",currentSession:"Current session",authenticatorApp:"Authenticator app",securityKey:"Security key",securityKeyUse:"Use security key",newSecurityKeyName:"New security key name",createSecurityKey:"Add a security key",authenticatorAppManage:"Manage authenticator app",authenticatorAppAdd:"Set up",configured:"configured",useAnotherMethod:"Use another method",lastUsed:"Last used",trustDevice:"Trust this browser",staySignedIn:"Stay signed in"},errors:{somethingWentWrong:"A technical error has occurred. Please try again later.",requestTimeout:"The request timed out.",invalidPassword:"Wrong email or password.",invalidPasscode:"The passcode provided was not correct.",passcodeAttemptsReached:"The passcode was entered incorrectly too many times. Please request a new code.",tooManyRequests:"Too many requests have been made. Please wait to repeat the requested operation.",unauthorized:"Your session has expired. Please log in again.",invalidWebauthnCredential:"This passkey cannot be used anymore.",passcodeExpired:"The passcode has expired. Please request a new one.",userVerification:"User verification required. Please ensure your authenticator device is protected with a PIN or biometric.",emailAddressAlreadyExistsError:"The email address already exists.",maxNumOfEmailAddressesReached:"No further email addresses can be added.",thirdPartyAccessDenied:"Access denied. The request was cancelled by the user or the provider has denied access for other reasons.",thirdPartyMultipleAccounts:"Cannot identify account. The email address is used by multiple accounts.",thirdPartyUnverifiedEmail:"Email verification required. Please verify the used email address with your provider.",signupDisabled:"Account registration is disabled.",handlerNotFoundError:"The current step in your process is not supported by this application version. Please try again later or contact support if the issue persists."},flowErrors:{technical_error:"A technical error has occurred. Please try again later.",flow_expired_error:"The session has expired, please click the button to restart.",value_invalid_error:"The entered value is invalid.",passcode_invalid:"The passcode provided was not correct.",passkey_invalid:"This passkey cannot be used anymore",passcode_max_attempts_reached:"The passcode was entered incorrectly too many times. Please request a new code.",rate_limit_exceeded:"Too many requests have been made. Please wait to repeat the requested operation.",unknown_username_error:"The username is unknown.",unknown_email_error:"The email address is unknown.",username_already_exists:"The username is already taken.",invalid_username_error:"The username must contain only letters, numbers, and underscores.",email_already_exists:"The email is already taken.",not_found:"The requested resource was not found.",operation_not_permitted_error:"The operation is not permitted.",flow_discontinuity_error:"The process cannot be continued due to user settings or the provider's configuration.",form_data_invalid_error:"The submitted form data contains errors.",unauthorized:"Your session has expired. Please log in again.",value_missing_error:"The value is missing.",value_too_long_error:"Value is too long.",value_too_short_error:"The value is too short.",webauthn_credential_invalid_mfa_only:"This credential can be used as a second factor security key only.",webauthn_credential_already_exists:"The request either timed out, was canceled or the device is already registered. Please try again or try using another device.",platform_authenticator_required:"Your account is configured to use platform authenticators, but your current device or browser does not support this feature. Please try again with a compatible device or browser.",third_party_access_denied:"Access denied. The request was cancelled by the user or the provider has denied access for other reasons."}}}},$o={};function K(o){var t=$o[o];if(t!==void 0)return t.exports;var e=$o[o]={id:o,exports:{}};return ar[o].call(e.exports,e,e.exports,K),e.exports}K.n=o=>{var t=o&&o.__esModule?()=>o.default:()=>o;return K.d(t,{a:t}),t},K.d=(o,t)=>{for(var e in t)K.o(t,e)&&!K.o(o,e)&&Object.defineProperty(o,e,{enumerable:!0,get:t[e]})},K.o=(o,t)=>Object.prototype.hasOwnProperty.call(o,t),K.r=o=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},K.nc=void 0;var V={};K.d(V,{rc:()=>wt,Kj:()=>yt,fK:()=>co,tJ:()=>$t,Z7:()=>ko,qQ:()=>yo,I4:()=>eo,O8:()=>ye,Qq:()=>_t,ku:()=>po,ls:()=>uo,bO:()=>fo,yv:()=>wo,AT:()=>go,m_:()=>mo,KG:()=>vo,Wj:()=>Qt,DH:()=>Jt,kf:()=>bt,Uw:()=>ot,oY:()=>Ge,Wg:()=>xo,AC:()=>_o,D_:()=>mt,jx:()=>Xt,nX:()=>bo,Nx:()=>ho,Sd:()=>Qe,kz:()=>Na,fX:()=>Do,qA:()=>Mo,tz:()=>Uo,gN:()=>Lo});var so={};K.r(so),K.d(so,{apple:()=>Dr,checkmark:()=>Mr,copy:()=>Lr,customProvider:()=>Ur,discord:()=>Nr,exclamation:()=>zr,facebook:()=>Fr,github:()=>Wr,google:()=>Hr,linkedin:()=>Br,mail:()=>Rr,microsoft:()=>qr,passkey:()=>Kr,password:()=>Gr,qrCodeScanner:()=>$r,securityKey:()=>Zr,spinner:()=>Vr});var k=K(616),ir=0;function r(o,t,e,n,a,i){var s,d,h={};for(d in t)d=="ref"?s=t[d]:h[d]=t[d];var l={type:o,props:h,key:e,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--ir,__source:a,__self:i};if(typeof o=="function"&&(s=o.defaultProps))for(d in s)h[d]===void 0&&(h[d]=s[d]);return k.options.vnode&&k.options.vnode(l),l}function Gt(){return Gt=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n])}return o},Gt.apply(this,arguments)}var sr=["context","children"];function lr(o){this.getChildContext=function(){return o.context};var t=o.children,e=function(n,a){if(n==null)return{};var i,s,d={},h=Object.keys(n);for(s=0;s<h.length;s++)a.indexOf(i=h[s])>=0||(d[i]=n[i]);return d}(o,sr);return(0,k.cloneElement)(t,e)}function cr(){var o=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(o),this._vdom=(0,k.h)(lr,Gt({},this._props,{context:o.detail.context}),On(this,this._vdomComponent)),(this.hasAttribute("hydrate")?k.hydrate:k.render)(this._vdom,this._root)}function Cn(o){return o.replace(/-(\w)/g,function(t,e){return e?e.toUpperCase():""})}function dr(o,t,e){if(this._vdom){var n={};n[o]=e=e==null?void 0:e,n[Cn(o)]=e,this._vdom=(0,k.cloneElement)(this._vdom,n),(0,k.render)(this._vdom,this._root)}}function hr(){(0,k.render)(this._vdom=null,this._root)}function Zo(o,t){var e=this;return(0,k.h)("slot",Gt({},o,{ref:function(n){n?(e.ref=n,e._listener||(e._listener=function(a){a.stopPropagation(),a.detail.context=t},n.addEventListener("_preact",e._listener))):e.ref.removeEventListener("_preact",e._listener)}}))}function On(o,t){if(o.nodeType===3)return o.data;if(o.nodeType!==1)return null;var e=[],n={},a=0,i=o.attributes,s=o.childNodes;for(a=i.length;a--;)i[a].name!=="slot"&&(n[i[a].name]=i[a].value,n[Cn(i[a].name)]=i[a].value);for(a=s.length;a--;){var d=On(s[a],null),h=s[a].slot;h?n[h]=(0,k.h)(Zo,{name:h},d):e[a]=d}var l=t?(0,k.h)(Zo,null,e):e;return(0,k.h)(t||o.nodeName.toLowerCase(),n,l)}var B=K(7),f=K(78);function An(o,t){for(var e in t)o[e]=t[e];return o}function Vo(o,t){for(var e in o)if(e!=="__source"&&!(e in t))return!0;for(var n in t)if(n!=="__source"&&o[n]!==t[n])return!0;return!1}function Jo(o){this.props=o}(Jo.prototype=new k.Component).isPureReactComponent=!0,Jo.prototype.shouldComponentUpdate=function(o,t){return Vo(this.props,o)||Vo(this.state,t)};var Yo=k.options.__b;k.options.__b=function(o){o.type&&o.type.__f&&o.ref&&(o.props.ref=o.ref,o.ref=null),Yo&&Yo(o)};var ur=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,pr=(k.toChildArray,k.options.__e);k.options.__e=function(o,t,e,n){if(o.then){for(var a,i=t;i=i.__;)if((a=i.__c)&&a.__c)return t.__e==null&&(t.__e=e.__e,t.__k=e.__k),a.__c(o,t)}pr(o,t,e,n)};var Qo=k.options.unmount;function In(o,t,e){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),o.__c.__H=null),(o=An({},o)).__c!=null&&(o.__c.__P===e&&(o.__c.__P=t),o.__c=null),o.__k=o.__k&&o.__k.map(function(n){return In(n,t,e)})),o}function En(o,t,e){return o&&(o.__v=null,o.__k=o.__k&&o.__k.map(function(n){return En(n,t,e)}),o.__c&&o.__c.__P===t&&(o.__e&&e.insertBefore(o.__e,o.__d),o.__c.__e=!0,o.__c.__P=e)),o}function ro(){this.__u=0,this.t=null,this.__b=null}function jn(o){var t=o.__.__c;return t&&t.__a&&t.__a(o)}function Et(){this.u=null,this.o=null}k.options.unmount=function(o){var t=o.__c;t&&t.__R&&t.__R(),t&&o.__h===!0&&(o.type=null),Qo&&Qo(o)},(ro.prototype=new k.Component).__c=function(o,t){var e=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(e);var a=jn(n.__v),i=!1,s=function(){i||(i=!0,e.__R=null,a?a(d):d())};e.__R=s;var d=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=En(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.t.pop();)c.forceUpdate()}},h=t.__h===!0;n.__u++||h||n.setState({__a:n.__b=n.__v.__k[0]}),o.then(s,s)},ro.prototype.componentWillUnmount=function(){this.t=[]},ro.prototype.render=function(o,t){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=In(this.__b,e,n.__O=n.__P)}this.__b=null}var a=t.__a&&(0,k.createElement)(k.Fragment,null,o.fallback);return a&&(a.__h=null),[(0,k.createElement)(k.Fragment,null,t.__a?null:o.children),a]};var Xo=function(o,t,e){if(++e[1]===e[0]&&o.o.delete(t),o.props.revealOrder&&(o.props.revealOrder[0]!=="t"||!o.o.size))for(e=o.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;o.u=e=e[2]}};(Et.prototype=new k.Component).__a=function(o){var t=this,e=jn(t.__v),n=t.o.get(o);return n[0]++,function(a){var i=function(){t.props.revealOrder?(n.push(a),Xo(t,o,n)):a()};e?e(i):i()}},Et.prototype.render=function(o){this.u=null,this.o=new Map;var t=(0,k.toChildArray)(o.children);o.revealOrder&&o.revealOrder[0]==="b"&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return o.children},Et.prototype.componentDidUpdate=Et.prototype.componentDidMount=function(){var o=this;this.o.forEach(function(t,e){Xo(o,e,t)})};var fr=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,vr=/^(?: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]/,gr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,mr=/[A-Z0-9]/g,_r=typeof document!="undefined",yr=function(o){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(o)};k.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(o){Object.defineProperty(k.Component.prototype,o,{configurable:!0,get:function(){return this["UNSAFE_"+o]},set:function(t){Object.defineProperty(this,o,{configurable:!0,writable:!0,value:t})}})});var en=k.options.event;function br(){}function wr(){return this.cancelBubble}function kr(){return this.defaultPrevented}k.options.event=function(o){return en&&(o=en(o)),o.persist=br,o.isPropagationStopped=wr,o.isDefaultPrevented=kr,o.nativeEvent=o};var tn={configurable:!0,get:function(){return this.class}},on=k.options.vnode;k.options.vnode=function(o){var t=o.type,e=o.props,n=e;if(typeof t=="string"){for(var a in n={},e){var i=e[a];if(!(a==="value"&&"defaultValue"in e&&i==null||_r&&a==="children"&&t==="noscript")){var s=a.toLowerCase();a==="defaultValue"&&"value"in e&&e.value==null?a="value":a==="download"&&i===!0?i="":s==="ondoubleclick"?a="ondblclick":s!=="onchange"||t!=="input"&&t!=="textarea"||yr(e.type)?s==="onfocus"?a="onfocusin":s==="onblur"?a="onfocusout":gr.test(a)?a=s:t.indexOf("-")===-1&&vr.test(a)?a=a.replace(mr,"-$&").toLowerCase():i===null&&(i=void 0):s=a="oninput",s==="oninput"&&n[a=s]&&(a="oninputCapture"),n[a]=i}}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=(0,k.toChildArray)(e.children).forEach(function(d){d.props.selected=n.value.indexOf(d.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=(0,k.toChildArray)(e.children).forEach(function(d){d.props.selected=n.multiple?n.defaultValue.indexOf(d.props.value)!=-1:n.defaultValue==d.props.value})),o.props=n,e.class!=e.className&&(tn.enumerable="className"in e,e.className!=null&&(n.class=e.className),Object.defineProperty(n,"className",tn))}o.$$typeof=fr,on&&on(o)};var nn=k.options.__r;k.options.__r=function(o){nn&&nn(o),o.__c};var rn=k.options.diffed;function ze(){return ze=Object.assign?Object.assign.bind():function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n])}return o},ze.apply(this,arguments)}k.options.diffed=function(o){rn&&rn(o);var t=o.props,e=o.__e;e!=null&&o.type==="textarea"&&"value"in t&&t.value!==e.value&&(e.value=t.value==null?"":t.value)},k.Fragment,f.useLayoutEffect,f.useState,f.useId,f.useReducer,f.useEffect,f.useLayoutEffect,f.useRef,f.useImperativeHandle,f.useMemo,f.useCallback,f.useContext,f.useDebugValue,k.createElement,k.createContext,k.createRef,k.Fragment,k.Component;var lo=class{static throttle(t,e,n={}){let{leading:a=!0,trailing:i=!0}=n,s,d,h,l=0,c=()=>{l=a===!1?0:Date.now(),h=null,t.apply(s,d)};return function(...v){let m=Date.now();l||a!==!1||(l=m);let g=e-(m-l);s=this,d=v,g<=0||g>e?(h&&(window.clearTimeout(h),h=null),l=m,t.apply(s,d)):h||i===!1||(h=window.setTimeout(c,g))}}},Do="hanko-session-created",Mo="hanko-session-expired",Lo="hanko-user-logged-out",Uo="hanko-user-deleted",Pn="hanko-after-state-change",Tn="hanko-before-state-change",$t=class extends CustomEvent{constructor(t,e){super(t,{detail:e})}},Zt=class o{constructor(){this.throttleLimit=1e3,this._addEventListener=document.addEventListener.bind(document),this._removeEventListener=document.removeEventListener.bind(document),this._throttle=lo.throttle}wrapCallback(t,e){let n=a=>{t(a.detail)};return e?this._throttle(n,this.throttleLimit,{leading:!0,trailing:!1}):n}addEventListenerWithType({type:t,callback:e,once:n=!1,throttle:a=!1}){let i=this.wrapCallback(e,a);return this._addEventListener(t,i,{once:n}),()=>this._removeEventListener(t,i)}static mapAddEventListenerParams(t,{once:e,callback:n},a){return{type:t,callback:n,once:e,throttle:a}}addEventListener(t,e,n){return this.addEventListenerWithType(o.mapAddEventListenerParams(t,e,n))}onSessionCreated(t,e){return this.addEventListener(Do,{callback:t,once:e},!0)}onSessionExpired(t,e){return this.addEventListener(Mo,{callback:t,once:e},!0)}onUserLoggedOut(t,e){return this.addEventListener(Lo,{callback:t,once:e})}onUserDeleted(t,e){return this.addEventListener(Uo,{callback:t,once:e})}onAfterStateChange(t,e){return this.addEventListener(Pn,{callback:t,once:e},!1)}onBeforeStateChange(t,e){return this.addEventListener(Tn,{callback:t,once:e},!1)}},Vt=class{constructor(){this._dispatchEvent=document.dispatchEvent.bind(document)}dispatch(t,e){this._dispatchEvent(new $t(t,e))}dispatchSessionCreatedEvent(t){this.dispatch(Do,t)}dispatchSessionExpiredEvent(){this.dispatch(Mo,null)}dispatchUserLoggedOutEvent(){this.dispatch(Lo,null)}dispatchUserDeletedEvent(){this.dispatch(Uo,null)}dispatchAfterStateChangeEvent(t){this.dispatch(Pn,t)}dispatchBeforeStateChangeEvent(t){this.dispatch(Tn,t)}},ye=class o extends Error{constructor(t,e,n){super(t),this.code=void 0,this.cause=void 0,this.code=e,this.cause=n,Object.setPrototypeOf(this,o.prototype)}},Ge=class o extends ye{constructor(t){super("Technical error","somethingWentWrong",t),Object.setPrototypeOf(this,o.prototype)}},co=class o extends ye{constructor(t,e){super("Conflict error","conflict",e),Object.setPrototypeOf(this,o.prototype)}},Jt=class o extends ye{constructor(t){super("Request timed out error","requestTimeout",t),Object.setPrototypeOf(this,o.prototype)}},ho=class o extends ye{constructor(t){super("Request cancelled error","requestCancelled",t),Object.setPrototypeOf(this,o.prototype)}},uo=class o extends ye{constructor(t){super("Invalid password error","invalidPassword",t),Object.setPrototypeOf(this,o.prototype)}},po=class o extends ye{constructor(t){super("Invalid Passcode error","invalidPasscode",t),Object.setPrototypeOf(this,o.prototype)}},fo=class o extends ye{constructor(t){super("Invalid WebAuthn credential error","invalidWebauthnCredential",t),Object.setPrototypeOf(this,o.prototype)}},vo=class o extends ye{constructor(t){super("Passcode expired error","passcodeExpired",t),Object.setPrototypeOf(this,o.prototype)}},go=class o extends ye{constructor(t){super("Maximum number of Passcode attempts reached error","passcodeAttemptsReached",t),Object.setPrototypeOf(this,o.prototype)}},mo=class o extends ye{constructor(t){super("Not found error","notFound",t),Object.setPrototypeOf(this,o.prototype)}},_o=class o extends ye{constructor(t,e){super("Too many requests error","tooManyRequests",e),this.retryAfter=void 0,this.retryAfter=t,Object.setPrototypeOf(this,o.prototype)}},mt=class o extends ye{constructor(t){super("Unauthorized error","unauthorized",t),Object.setPrototypeOf(this,o.prototype)}},yo=class o extends ye{constructor(t){super("Forbidden error","forbidden",t),Object.setPrototypeOf(this,o.prototype)}},bo=class o extends ye{constructor(t){super("User verification error","userVerification",t),Object.setPrototypeOf(this,o.prototype)}},wo=class o extends ye{constructor(t){super("Maximum number of email addresses reached error","maxNumOfEmailAddressesReached",t),Object.setPrototypeOf(this,o.prototype)}},ko=class o extends ye{constructor(t){super("The email address already exists","emailAddressAlreadyExistsError",t),Object.setPrototypeOf(this,o.prototype)}},xo=class o extends ye{constructor(t,e){super("An error occurred during third party sign up/sign in",t,e),Object.setPrototypeOf(this,o.prototype)}};function jt(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)o[n]=e[n]}return o}var ao=function o(t,e){function n(a,i,s){if(typeof document!="undefined"){typeof(s=jt({},e,s)).expires=="number"&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var h in s)s[h]&&(d+="; "+h,s[h]!==!0&&(d+="="+s[h].split(";")[0]));return document.cookie=a+"="+t.write(i,a)+d}}return Object.create({set:n,get:function(a){if(typeof document!="undefined"&&(!arguments.length||a)){for(var i=document.cookie?document.cookie.split("; "):[],s={},d=0;d<i.length;d++){var h=i[d].split("="),l=h.slice(1).join("=");try{var c=decodeURIComponent(h[0]);if(s[c]=t.read(l,c),a===c)break}catch(v){}}return a?s[a]:s}},remove:function(a,i){n(a,"",jt({},i,{expires:-1}))},withAttributes:function(a){return o(this.converter,jt({},this.attributes,a))},withConverter:function(a){return o(jt({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}({read:function(o){return o[0]==='"'&&(o=o.slice(1,-1)),o.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(o){return encodeURIComponent(o).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),Yt=class{constructor(t){var e,n;this.authCookieName=void 0,this.authCookieDomain=void 0,this.authCookieSameSite=void 0,this.authCookieName=(e=t.cookieName)!=null?e:"hanko",this.authCookieDomain=t.cookieDomain,this.authCookieSameSite=(n=t.cookieSameSite)!=null?n:"lax"}getAuthCookie(){return ao.get(this.authCookieName)}setAuthCookie(t,e){let n={secure:!0,sameSite:this.authCookieSameSite};this.authCookieDomain!==void 0&&(n.domain=this.authCookieDomain);let a=ze({},n,e);if((a.sameSite==="none"||a.sameSite==="None")&&a.secure===!1)throw new Ge(new Error("Secure attribute must be set when SameSite=None"));ao.set(this.authCookieName,t,a)}removeAuthCookie(){ao.remove(this.authCookieName)}},So=class{constructor(t){this.keyName=void 0,this.keyName=t.keyName}getSessionToken(){return sessionStorage.getItem(this.keyName)}setSessionToken(t){sessionStorage.setItem(this.keyName,t)}removeSessionToken(){sessionStorage.removeItem(this.keyName)}},Co=class{constructor(t){this._xhr=void 0,this._xhr=t}getResponseHeader(t){return this._xhr.getResponseHeader(t)}},Oo=class{constructor(t){this.headers=void 0,this.ok=void 0,this.status=void 0,this.statusText=void 0,this.url=void 0,this._decodedJSON=void 0,this.xhr=void 0,this.headers=new Co(t),this.ok=t.status>=200&&t.status<=299,this.status=t.status,this.statusText=t.statusText,this.url=t.responseURL,this.xhr=t}json(){return this._decodedJSON||(this._decodedJSON=JSON.parse(this.xhr.response)),this._decodedJSON}parseNumericHeader(t){let e=parseInt(this.headers.getResponseHeader(t),10);return isNaN(e)?0:e}},_t=class{constructor(t,e){var n;this.timeout=void 0,this.api=void 0,this.dispatcher=void 0,this.cookie=void 0,this.sessionTokenStorage=void 0,this.lang=void 0,this.sessionTokenLocation=void 0,this.api=t,this.timeout=(n=e.timeout)!=null?n:13e3,this.dispatcher=new Vt,this.cookie=new Yt(ze({},e)),this.sessionTokenStorage=new So({keyName:e.cookieName}),this.lang=e.lang,this.sessionTokenLocation=e.sessionTokenLocation}_fetch(t,e,n=new XMLHttpRequest){let a=this,i=this.api+t,s=this.timeout,d=this.getAuthToken(),h=this.lang;return new Promise(function(l,c){n.open(e.method,i,!0),n.setRequestHeader("Accept","application/json"),n.setRequestHeader("Content-Type","application/json"),n.setRequestHeader("X-Language",h),d&&n.setRequestHeader("Authorization",`Bearer ${d}`),n.timeout=s,n.withCredentials=!0,n.onload=()=>{a.processHeaders(n),l(new Oo(n))},n.onerror=()=>{c(new Ge)},n.ontimeout=()=>{c(new Jt)},n.send(e.body?e.body.toString():null)})}processHeaders(t){let e="",n=0,a="";if(t.getAllResponseHeaders().split(`\r
|
|
3
|
-
`).forEach(i=>{let s=i.toLowerCase();s.startsWith("x-auth-token")?e=t.getResponseHeader("X-Auth-Token"):s.startsWith("x-session-lifetime")?n=parseInt(t.getResponseHeader("X-Session-Lifetime"),10):s.startsWith("x-session-retention")&&(a=t.getResponseHeader("X-Session-Retention"))}),e){let i=new RegExp("^https://"),s=!!this.api.match(i)&&!!window.location.href.match(i),d=a==="session"?void 0:new Date(new Date().getTime()+1e3*n);this.setAuthToken(e,{secure:s,expires:d})}}get(t){return this._fetch(t,{method:"GET"})}post(t,e){return this._fetch(t,{method:"POST",body:JSON.stringify(e)})}put(t,e){return this._fetch(t,{method:"PUT",body:JSON.stringify(e)})}patch(t,e){return this._fetch(t,{method:"PATCH",body:JSON.stringify(e)})}delete(t){return this._fetch(t,{method:"DELETE"})}getAuthToken(){let t="";switch(this.sessionTokenLocation){case"cookie":default:t=this.cookie.getAuthCookie();break;case"sessionStorage":t=this.sessionTokenStorage.getSessionToken()}return t}setAuthToken(t,e){switch(this.sessionTokenLocation){case"cookie":default:return this.cookie.setAuthCookie(t,e);case"sessionStorage":return this.sessionTokenStorage.setSessionToken(t)}}},yt=class{constructor(t,e){this.client=void 0,this.client=new _t(t,e)}},bt=class extends yt{async validate(){let t=await this.client.get("/sessions/validate");if(!t.ok)throw new Ge;return await t.json()}},Ao=class{constructor(t){this.storageKey=void 0,this.defaultState={expiration:0,lastCheck:0},this.storageKey=t}load(){let t=window.localStorage.getItem(this.storageKey);return t==null?this.defaultState:JSON.parse(t)}save(t){window.localStorage.setItem(this.storageKey,JSON.stringify(t||this.defaultState))}},Io=class{constructor(t,e){this.onActivityCallback=void 0,this.onInactivityCallback=void 0,this.handleFocus=()=>{this.onActivityCallback()},this.handleBlur=()=>{this.onInactivityCallback()},this.handleVisibilityChange=()=>{document.visibilityState==="visible"?this.onActivityCallback():this.onInactivityCallback()},this.hasFocus=()=>document.hasFocus(),this.onActivityCallback=t,this.onInactivityCallback=e,window.addEventListener("focus",this.handleFocus),window.addEventListener("blur",this.handleBlur),document.addEventListener("visibilitychange",this.handleVisibilityChange)}},Eo=class{constructor(t,e,n){this.intervalID=null,this.timeoutID=null,this.checkInterval=void 0,this.checkSession=void 0,this.onSessionExpired=void 0,this.checkInterval=t,this.checkSession=e,this.onSessionExpired=n}scheduleSessionExpiry(t){var e=this;this.stop(),this.timeoutID=setTimeout(async function(){e.stop(),e.onSessionExpired()},t)}start(t=0,e=0){var n=this;let a=this.calcTimeToNextCheck(t);this.sessionExpiresSoon(e)?this.scheduleSessionExpiry(a):this.timeoutID=setTimeout(async function(){let i=await n.checkSession();if(i.is_valid){if(n.sessionExpiresSoon(i.expiration))return void n.scheduleSessionExpiry(i.expiration-Date.now());n.intervalID=setInterval(async function(){i=await n.checkSession(),i.is_valid?n.sessionExpiresSoon(i.expiration)&&n.scheduleSessionExpiry(i.expiration-Date.now()):n.stop()},n.checkInterval)}else n.stop()},a)}stop(){this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null),this.intervalID&&(clearInterval(this.intervalID),this.intervalID=null)}isRunning(){return this.timeoutID!==null||this.intervalID!==null}sessionExpiresSoon(t){return t>0&&t-Date.now()<=this.checkInterval}calcTimeToNextCheck(t){let e=Date.now()-t;return this.checkInterval>=e?this.checkInterval-e%this.checkInterval:0}},jo=class{constructor(t="hanko_session",e,n,a){this.channel=void 0,this.onSessionExpired=void 0,this.onSessionCreated=void 0,this.onLeadershipRequested=void 0,this.handleMessage=i=>{let s=i.data;switch(s.action){case"sessionExpired":this.onSessionExpired(s);break;case"sessionCreated":this.onSessionCreated(s);break;case"requestLeadership":this.onLeadershipRequested(s)}},this.onSessionExpired=e,this.onSessionCreated=n,this.onLeadershipRequested=a,this.channel=new BroadcastChannel(t),this.channel.onmessage=this.handleMessage}post(t){this.channel.postMessage(t)}},Qt=class extends Vt{constructor(t,e){super(),this.listener=new Zt,this.checkInterval=3e4,this.client=void 0,this.sessionState=void 0,this.windowActivityManager=void 0,this.scheduler=void 0,this.sessionChannel=void 0,this.isLoggedIn=void 0,this.client=new bt(t,e),e.sessionCheckInterval&&(this.checkInterval=e.sessionCheckInterval<3e3?3e3:e.sessionCheckInterval),this.sessionState=new Ao(`${e.cookieName}_session_state`),this.sessionChannel=new jo(this.getSessionCheckChannelName(e.sessionTokenLocation,e.sessionCheckChannelName),()=>this.onChannelSessionExpired(),i=>this.onChannelSessionCreated(i),()=>this.onChannelLeadershipRequested()),this.scheduler=new Eo(this.checkInterval,()=>this.checkSession(),()=>this.onSessionExpired()),this.windowActivityManager=new Io(()=>this.startSessionCheck(),()=>this.scheduler.stop());let n=Date.now(),{expiration:a}=this.sessionState.load();this.isLoggedIn=n<a,this.initializeEventListeners(),this.startSessionCheck()}initializeEventListeners(){this.listener.onSessionCreated(t=>{let{claims:e}=t,n=Date.parse(e.expiration),a=Date.now();this.isLoggedIn=!0,this.sessionState.save({expiration:n,lastCheck:a}),this.sessionChannel.post({action:"sessionCreated",claims:e}),this.startSessionCheck()}),this.listener.onUserLoggedOut(()=>{this.isLoggedIn=!1,this.sessionChannel.post({action:"sessionExpired"}),this.sessionState.save(null),this.scheduler.stop()}),window.addEventListener("beforeunload",()=>this.scheduler.stop())}startSessionCheck(){if(!this.windowActivityManager.hasFocus()||(this.sessionChannel.post({action:"requestLeadership"}),this.scheduler.isRunning()))return;let{lastCheck:t,expiration:e}=this.sessionState.load();this.isLoggedIn&&this.scheduler.start(t,e)}async checkSession(){let t=Date.now(),{is_valid:e,claims:n,expiration_time:a}=await this.client.validate(),i=a?Date.parse(a):0;return!e&&this.isLoggedIn&&this.dispatchSessionExpiredEvent(),e?(this.isLoggedIn=!0,this.sessionState.save({lastCheck:t,expiration:i})):(this.isLoggedIn=!1,this.sessionState.save(null),this.sessionChannel.post({action:"sessionExpired"})),{is_valid:e,claims:n,expiration:i}}onSessionExpired(){this.isLoggedIn&&(this.isLoggedIn=!1,this.sessionState.save(null),this.sessionChannel.post({action:"sessionExpired"}),this.dispatchSessionExpiredEvent())}onChannelSessionExpired(){this.isLoggedIn&&(this.isLoggedIn=!1,this.dispatchSessionExpiredEvent())}onChannelSessionCreated(t){let{claims:e}=t,n=Date.now(),a=Date.parse(e.expiration)-n;this.isLoggedIn=!0,this.dispatchSessionCreatedEvent({claims:e,expirationSeconds:a})}onChannelLeadershipRequested(){this.windowActivityManager.hasFocus()||this.scheduler.stop()}getSessionCheckChannelName(t,e){if(t!=="sessionStorage")return e;let n=sessionStorage.getItem("sessionCheckChannelName");return n!=null&&n!==""||(n=`${e}-${Math.floor(100*Math.random())+1}`,sessionStorage.setItem("sessionCheckChannelName",n)),n}},Qe=class{static supported(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}static async isPlatformAuthenticatorAvailable(){return!(!this.supported()||!window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable)&&window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()}static async isSecurityKeySupported(){return window.PublicKeyCredential!==void 0&&window.PublicKeyCredential.isExternalCTAP2SecurityKeySupported?window.PublicKeyCredential.isExternalCTAP2SecurityKeySupported():this.supported()}static async isConditionalMediationAvailable(){return!(!window.PublicKeyCredential||!window.PublicKeyCredential.isConditionalMediationAvailable)&&window.PublicKeyCredential.isConditionalMediationAvailable()}};function Dn(o){let t="==".slice(0,(4-o.length%4)%4),e=o.replace(/-/g,"+").replace(/_/g,"/")+t,n=atob(e),a=new ArrayBuffer(n.length),i=new Uint8Array(a);for(let s=0;s<n.length;s++)i[s]=n.charCodeAt(s);return a}function Mn(o){let t=new Uint8Array(o),e="";for(let n of t)e+=String.fromCharCode(n);return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var oe="copy",Ue="convert";function tt(o,t,e){if(t===oe)return e;if(t===Ue)return o(e);if(t instanceof Array)return e.map(n=>tt(o,t[0],n));if(t instanceof Object){let n={};for(let[a,i]of Object.entries(t)){if(i.derive){let s=i.derive(e);s!==void 0&&(e[a]=s)}if(a in e)n[a]=e[a]!=null?tt(o,i.schema,e[a]):null;else if(i.required)throw new Error(`Missing key: ${a}`)}return n}}function Po(o,t){return{required:!0,schema:o,derive:t}}function le(o){return{required:!0,schema:o}}function ge(o){return{required:!1,schema:o}}var Ln={type:le(oe),id:le(Ue),transports:ge(oe)},Un={appid:ge(oe),appidExclude:ge(oe),credProps:ge(oe)},Nn={appid:ge(oe),appidExclude:ge(oe),credProps:ge(oe)},xr={publicKey:le({rp:le(oe),user:le({id:le(Ue),name:le(oe),displayName:le(oe)}),challenge:le(Ue),pubKeyCredParams:le(oe),timeout:ge(oe),excludeCredentials:ge([Ln]),authenticatorSelection:ge(oe),attestation:ge(oe),extensions:ge(Un)}),signal:ge(oe)},Sr={type:le(oe),id:le(oe),rawId:le(Ue),authenticatorAttachment:ge(oe),response:le({clientDataJSON:le(Ue),attestationObject:le(Ue),transports:Po(oe,o=>{var t;return((t=o.getTransports)==null?void 0:t.call(o))||[]})}),clientExtensionResults:Po(Nn,o=>o.getClientExtensionResults())},Cr={mediation:ge(oe),publicKey:le({challenge:le(Ue),timeout:ge(oe),rpId:ge(oe),allowCredentials:ge([Ln]),userVerification:ge(oe),extensions:ge(Un)}),signal:ge(oe)},Or={type:le(oe),id:le(oe),rawId:le(Ue),authenticatorAttachment:ge(oe),response:le({clientDataJSON:le(Ue),authenticatorData:le(Ue),signature:le(Ue),userHandle:le(Ue)}),clientExtensionResults:Po(Nn,o=>o.getClientExtensionResults())};async function an(o){let t=await navigator.credentials.get(function(e){return tt(Dn,Cr,e)}(o));return function(e){return tt(Mn,Or,e)}(t)}var Xe=class o{constructor(){this.abortController=new AbortController}static getInstance(){return o.instance||(o.instance=new o),o.instance}createAbortSignal(){return this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal}async getWebauthnCredential(t){return await an(ze({},t,{signal:this.createAbortSignal()}))}async getConditionalWebauthnCredential(t){return await an({publicKey:t,mediation:"conditional",signal:this.createAbortSignal()})}async createWebauthnCredential(t){return await async function(e){return n=await navigator.credentials.create(function(a){return tt(Dn,xr,a)}(e)),tt(Mn,Sr,n);var n}(ze({},t,{signal:this.createAbortSignal()}))}};async function sn(o,t,e,n="webauthn_credential_already_exists",a="Webauthn credential already exists"){try{let i=await t.createWebauthnCredential(e);return await o.actions.webauthn_verify_attestation_response.run({public_key:i})}catch(i){let s=await o.actions.back.run();return s.error={code:n,message:a},s}}Xe.instance=null;var ln={preflight:async o=>await o.actions.register_client_capabilities.run({webauthn_available:Qe.supported(),webauthn_conditional_mediation_available:await Qe.isConditionalMediationAvailable(),webauthn_platform_authenticator_available:await Qe.isPlatformAuthenticatorAvailable()}),login_passkey:async o=>{let t=Xe.getInstance();try{let e=await t.getWebauthnCredential(o.payload.request_options);return await o.actions.webauthn_verify_assertion_response.run({assertion_response:e})}catch(e){let n=await o.actions.back.run();return o.error&&(n.error=o.error),n}},onboarding_verify_passkey_attestation:async o=>sn(o,Xe.getInstance(),o.payload.creation_options),webauthn_credential_verification:async o=>sn(o,Xe.getInstance(),o.payload.creation_options),async thirdparty(o){let t=new URLSearchParams(window.location.search),e=t.get("hanko_token"),n=t.get("error"),a=i=>{i.forEach(d=>t.delete(d));let s=t.toString()?`?${t.toString()}`:"";history.replaceState(null,null,`${window.location.pathname}${s}`)};if((e==null?void 0:e.length)>0)return a(["hanko_token"]),await o.actions.exchange_token.run({token:e});if((n==null?void 0:n.length)>0){let i=n==="access_denied"?"third_party_access_denied":"technical_error",s=t.get("error_description");a(["error","error_description"]);let d=await o.actions.back.run(null,{dispatchAfterStateChangeEvent:!1});return d.error={code:i,message:s},d.dispatchAfterStateChangeEvent(),d}return o.isCached?await o.actions.back.run():(o.saveToLocalStorage(),window.location.assign(o.payload.redirect_url),o)},success:async o=>{let{claims:t}=o.payload,e=Date.parse(t.expiration)-Date.now();return o.removeFromLocalStorage(),o.hanko.relay.dispatchSessionCreatedEvent({claims:t,expirationSeconds:e}),o},account_deleted:async o=>(o.removeFromLocalStorage(),o.hanko.relay.dispatchUserDeletedEvent(),o)},cn={login_init:async o=>{(async function(){let t=Xe.getInstance();if(o.payload.request_options)try{let{publicKey:e}=o.payload.request_options,n=await t.getConditionalWebauthnCredential(e);await o.actions.webauthn_verify_assertion_response.run({assertion_response:n})}catch(e){return}})()}},ot=class o{constructor(t,e,n,a={}){if(this.name=void 0,this.flowName=void 0,this.error=void 0,this.payload=void 0,this.actions=void 0,this.csrfToken=void 0,this.status=void 0,this.previousAction=void 0,this.isCached=void 0,this.cacheKey=void 0,this.hanko=void 0,this.invokedAction=void 0,this.excludeAutoSteps=void 0,this.autoStep=void 0,this.passkeyAutofillActivation=void 0,this.flowName=e,this.name=n.name,this.error=n.error,this.payload=n.payload,this.csrfToken=n.csrf_token,this.status=n.status,this.hanko=t,this.actions=this.buildActionMap(n.actions),this.name in ln){let c=ln[this.name];this.autoStep=()=>c(this)}if(this.name in cn){let c=cn[this.name];this.passkeyAutofillActivation=()=>c(this)}let{dispatchAfterStateChangeEvent:i=!0,excludeAutoSteps:s=null,previousAction:d=null,isCached:h=!1,cacheKey:l="hanko-flow-state"}=a;this.excludeAutoSteps=s,this.previousAction=d,this.isCached=h,this.cacheKey=l,i&&this.dispatchAfterStateChangeEvent()}buildActionMap(t){let e={};return Object.keys(t).forEach(n=>{e[n]=new wt(t[n],this)}),new Proxy(e,{get:(n,a)=>{if(a in n)return n[a];let i=typeof a=="string"?a:a.toString();return wt.createDisabled(i,this)}})}dispatchAfterStateChangeEvent(){this.hanko.relay.dispatchAfterStateChangeEvent({state:this})}serialize(){return{flow_name:this.flowName,name:this.name,error:this.error,payload:this.payload,csrf_token:this.csrfToken,status:this.status,previous_action:this.previousAction,actions:Object.fromEntries(Object.entries(this.actions).map(([t,e])=>[t,{action:e.name,href:e.href,inputs:e.inputs,description:null}]))}}saveToLocalStorage(){localStorage.setItem(this.cacheKey,JSON.stringify(ze({},this.serialize(),{is_cached:!0})))}removeFromLocalStorage(){localStorage.removeItem(this.cacheKey)}static async initializeFlowState(t,e,n,a={}){let i=new o(t,e,n,a);if(i.excludeAutoSteps!="all")for(;i&&i.autoStep&&((s=i.excludeAutoSteps)==null||!s.includes(i.name));){var s;let d=await i.autoStep();if(d.name==i.name)return d;i=d}return i}static readFromLocalStorage(t){let e=localStorage.getItem(t);if(e)try{return JSON.parse(e)}catch(n){return}}static async create(t,e,n={}){let{cacheKey:a="hanko-flow-state",loadFromCache:i=!0}=n;if(i){let d=o.readFromLocalStorage(a);if(d)return o.deserialize(t,d,ze({},n,{cacheKey:a}))}let s=await o.fetchState(t,`/${e}`);return o.initializeFlowState(t,e,s,ze({},n,{cacheKey:a}))}static async deserialize(t,e,n={}){return o.initializeFlowState(t,e.flow_name,e,ze({},n,{previousAction:e.previous_action,isCached:e.is_cached}))}static async fetchState(t,e,n){try{return(await t.client.post(e,n)).json()}catch(a){return o.createErrorResponse(a)}}static createErrorResponse(t){return{actions:null,csrf_token:"",name:"error",payload:null,status:0,error:t}}},wt=class o{constructor(t,e,n=!0){this.enabled=void 0,this.href=void 0,this.name=void 0,this.inputs=void 0,this.parentState=void 0,this.enabled=n,this.href=t.href,this.name=t.action,this.inputs=t.inputs,this.parentState=e}static createDisabled(t,e){return new o({action:t,href:"",inputs:{},description:"Disabled action"},e,!1)}async run(t=null,e={}){let{name:n,hanko:a,flowName:i,csrfToken:s,invokedAction:d,excludeAutoSteps:h,cacheKey:l}=this.parentState,{dispatchAfterStateChangeEvent:c=!0}=e;if(!this.enabled)throw new Error(`Action '${this.name}' is not enabled in state '${n}'`);if(d)throw new Error(`An action '${d.name}' has already been invoked on state '${d.relatedStateName}'. No further actions can be run.`);this.parentState.invokedAction={name:this.name,relatedStateName:n},a.relay.dispatchBeforeStateChangeEvent({state:this.parentState});let v={input_data:ze({},Object.keys(this.inputs).reduce((g,x)=>{let w=this.inputs[x];return w.value!==void 0&&(g[x]=w.value),g},{}),t),csrf_token:s},m=await ot.fetchState(a,this.href,v);return this.parentState.removeFromLocalStorage(),ot.initializeFlowState(a,i,m,{dispatchAfterStateChangeEvent:c,excludeAutoSteps:h,previousAction:d,cacheKey:l})}},Xt=class extends yt{async getCurrent(){let t=await this.client.get("/me");if(t.status===401)throw this.client.dispatcher.dispatchSessionExpiredEvent(),new mt;if(!t.ok)throw new Ge;let e=t.json(),n=await this.client.get(`/users/${e.id}`);if(n.status===401)throw this.client.dispatcher.dispatchSessionExpiredEvent(),new mt;if(!n.ok)throw new Ge;return n.json()}async logout(){let t=await this.client.post("/logout");if(this.client.sessionTokenStorage.removeSessionToken(),this.client.cookie.removeAuthCookie(),this.client.dispatcher.dispatchUserLoggedOutEvent(),t.status!==401&&!t.ok)throw new Ge}},eo=class extends Zt{constructor(t,e){super(),this.session=void 0,this.user=void 0,this.cookie=void 0,this.client=void 0,this.relay=void 0;let n=ze({timeout:13e3,cookieName:"hanko",localStorageKey:"hanko",sessionCheckInterval:3e4,sessionCheckChannelName:"hanko-session-check"},e);this.client=new _t(t,n),this.session=new bt(t,n),this.user=new Xt(t,n),this.relay=new Qt(t,n),this.cookie=new Yt(n)}setLang(t){this.client.lang=t}createState(t,e={}){return ot.create(this,t,e)}async getUser(){return this.user.getCurrent()}async validateSession(){return this.session.validate()}getSessionToken(){return this.cookie.getAuthCookie()}async logout(){return this.user.logout()}},Ar=K(292),$e=K.n(Ar),Ir=K(360),Ze=K.n(Ir),Er=K(884),Ve=K.n(Er),jr=K(88),Je=K.n(jr),Ut=K(914),at={};at.setAttributes=Ve(),at.insert=o=>{window._hankoStyle=o},at.domAPI=Ze(),at.insertStyleElement=Je(),$e()(Ut.A,at);var kt=Ut.A&&Ut.A.locals?Ut.A.locals:void 0,Pr=function(o){function t(e){var n=An({},e);return delete n.ref,o(n,e.ref||null)}return t.$$typeof=ur,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(o.displayName||o.name)+")",t}((o,t)=>{let{lang:e,hanko:n,setHanko:a}=(0,f.useContext)(Oe),{setLang:i}=(0,f.useContext)(B.TranslateContext);return(0,f.useEffect)(()=>{i(e.replace(/[-]/,"")),a(s=>(s.setLang(e),s))},[n,e,a,i]),r("section",Object.assign({part:"container",className:kt.container,ref:t},{children:o.children}))}),Nt=K(697),it={};it.setAttributes=Ve(),it.insert=o=>{window._hankoStyle=o},it.domAPI=Ze(),it.insertStyleElement=Je(),$e()(Nt.A,it);var E=Nt.A&&Nt.A.locals?Nt.A.locals:void 0,Tr=K(633),q=K.n(Tr),Dr=({size:o,secondary:t,disabled:e})=>r("svg",Object.assign({id:"icon-apple",xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"20.5 16 15 19",className:q()(E.icon,t&&E.secondary,e&&E.disabled)},{children:r("path",{d:"M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z"})})),Mr=({secondary:o,size:t,fadeOut:e,disabled:n})=>r("svg",Object.assign({id:"icon-checkmark",xmlns:"http://www.w3.org/2000/svg",viewBox:"4 4 40 40",width:t,height:t,className:q()(E.checkmark,o&&E.secondary,e&&E.fadeOut,n&&E.disabled)},{children:r("path",{d:"M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Zm0-3q7.1 0 12.05-4.975Q41 31.05 41 24q0-7.1-4.95-12.05Q31.1 7 24 7q-7.05 0-12.025 4.95Q7 16.9 7 24q0 7.05 4.975 12.025Q16.95 41 24 41Zm0-17Z"})})),Lr=({size:o,secondary:t,disabled:e})=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:o,height:o,className:q()(E.icon,t&&E.secondary,e&&E.disabled)},{children:r("path",{d:"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"})})),Ur=({size:o,secondary:t,disabled:e})=>r("svg",Object.assign({id:"icon-custom-provider",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:o,height:o,className:q()(E.icon,t&&E.secondary,e&&E.disabled)},{children:[r("path",{d:"M0 0h24v24H0z",fill:"none"}),r("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"})]})),Nr=({size:o,secondary:t,disabled:e})=>r("svg",Object.assign({id:"icon-discord",fill:"#fff",xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 127.14 96.36",className:q()(E.icon,t&&E.secondary,e&&E.disabled)},{children:r("path",{d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"})})),zr=({size:o,secondary:t,disabled:e})=>r("svg",Object.assign({id:"icon-exclamation",xmlns:"http://www.w3.org/2000/svg",viewBox:"5 2 13 20",width:o,height:o,className:q()(E.exclamationMark,t&&E.secondary,e&&E.disabled)},{children:r("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})})),Fr=({size:o,secondary:t,disabled:e})=>r("svg",Object.assign({width:o,height:o,viewBox:"0 0 666.66668 666.66717",xmlns:"http://www.w3.org/2000/svg"},{children:[r("defs",Object.assign({id:"defs13"},{children:r("clipPath",Object.assign({clipPathUnits:"userSpaceOnUse",id:"clipPath25"},{children:r("path",{d:"M 0,700 H 700 V 0 H 0 Z",id:"path23"})}))})),r("g",Object.assign({id:"g17",transform:"matrix(1.3333333,0,0,-1.3333333,-133.33333,799.99999)"},{children:r("g",Object.assign({id:"g19"},{children:r("g",Object.assign({id:"g21",clipPath:"url(#clipPath25)"},{children:[r("g",Object.assign({id:"g27",transform:"translate(600,350)"},{children:r("path",{className:q()(E.facebookIcon,e?E.disabledOutline:E.outline),d:"m 0,0 c 0,138.071 -111.929,250 -250,250 -138.071,0 -250,-111.929 -250,-250 0,-117.245 80.715,-215.622 189.606,-242.638 v 166.242 h -51.552 V 0 h 51.552 v 32.919 c 0,85.092 38.508,124.532 122.048,124.532 15.838,0 43.167,-3.105 54.347,-6.211 V 81.986 c -5.901,0.621 -16.149,0.932 -28.882,0.932 -40.993,0 -56.832,-15.528 -56.832,-55.9 V 0 h 81.659 l -14.028,-76.396 h -67.631 V -248.169 C -95.927,-233.218 0,-127.818 0,0",id:"path29"})})),r("g",Object.assign({id:"g31",transform:"translate(447.9175,273.6036)"},{children:r("path",{className:q()(E.facebookIcon,e?E.disabledLetter:E.letter),d:"M 0,0 14.029,76.396 H -67.63 v 27.019 c 0,40.372 15.838,55.899 56.831,55.899 12.733,0 22.981,-0.31 28.882,-0.931 v 69.253 c -11.18,3.106 -38.509,6.212 -54.347,6.212 -83.539,0 -122.048,-39.441 -122.048,-124.533 V 76.396 h -51.552 V 0 h 51.552 v -166.242 c 19.343,-4.798 39.568,-7.362 60.394,-7.362 10.254,0 20.358,0.632 30.288,1.831 L -67.63,0 Z",id:"path33"})}))]}))}))}))]})),Wr=({size:o,secondary:t,disabled:e})=>r("svg",Object.assign({id:"icon-github",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",viewBox:"0 0 97.63 96",width:o,height:o,className:q()(E.icon,t&&E.secondary,e&&E.disabled)},{children:[r("path",{d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"})," "]})),Hr=({size:o,disabled:t})=>r("svg",Object.assign({id:"icon-google",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:o,height:o,className:E.googleIcon},{children:[r("path",{className:q()(E.googleIcon,t?E.disabled:E.blue),d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),r("path",{className:q()(E.googleIcon,t?E.disabled:E.green),d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),r("path",{className:q()(E.googleIcon,t?E.disabled:E.yellow),d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),r("path",{className:q()(E.googleIcon,t?E.disabled:E.red),d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"}),r("path",{d:"M1 1h22v22H1z",fill:"none"})]})),Br=({size:o,secondary:t,disabled:e})=>r("svg",Object.assign({id:"icon-linkedin",fill:"#fff",xmlns:"http://www.w3.org/2000/svg",width:o,viewBox:"0 0 24 24",height:o,className:q()(E.icon,t&&E.secondary,e&&E.disabled)},{children:r("path",{d:"M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z"})})),Rr=({size:o,secondary:t,disabled:e})=>r("svg",Object.assign({id:"icon-mail",xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 -960 960 960",className:q()(E.icon,t&&E.secondary,e&&E.disabled)},{children:r("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"})})),qr=({size:o,disabled:t})=>r("svg",Object.assign({id:"icon-microsoft",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:o,height:o,className:E.microsoftIcon},{children:[r("rect",{className:q()(E.microsoftIcon,t?E.disabled:E.blue),x:"1",y:"1",width:"9",height:"9"}),r("rect",{className:q()(E.microsoftIcon,t?E.disabled:E.green),x:"1",y:"11",width:"9",height:"9"}),r("rect",{className:q()(E.microsoftIcon,t?E.disabled:E.yellow),x:"11",y:"1",width:"9",height:"9"}),r("rect",{className:q()(E.microsoftIcon,t?E.disabled:E.red),x:"11",y:"11",width:"9",height:"9"})]})),Kr=({size:o,secondary:t,disabled:e})=>r("svg",Object.assign({id:"icon-passkey",xmlns:"http://www.w3.org/2000/svg",viewBox:"3 1.5 19.5 19",width:o,height:o,className:q()(E.icon,t&&E.secondary,e&&E.disabled)},{children:r("g",Object.assign({id:"icon-passkey-all"},{children:[r("circle",{id:"icon-passkey-head",cx:"10.5",cy:"6",r:"4.5"}),r("path",{id:"icon-passkey-key",d:"M22.5,10.5a3.5,3.5,0,1,0-5,3.15V19L19,20.5,21.5,18,20,16.5,21.5,15l-1.24-1.24A3.5,3.5,0,0,0,22.5,10.5Zm-3.5,0a1,1,0,1,1,1-1A1,1,0,0,1,19,10.5Z"}),r("path",{id:"icon-passkey-body",d:"M14.44,12.52A6,6,0,0,0,12,12H9a6,6,0,0,0-6,6v2H16V14.49A5.16,5.16,0,0,1,14.44,12.52Z"})]}))})),Gr=({size:o,secondary:t,disabled:e})=>r("svg",Object.assign({id:"icon-password",xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 -960 960 960",className:q()(E.icon,t&&E.secondary,e&&E.disabled)},{children:r("path",{d:"M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z"})})),$r=({size:o,secondary:t,disabled:e})=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:o,height:o,className:q()(E.icon,t&&E.secondary,e&&E.disabled)},{children:r("path",{d:"M80-680v-200h200v80H160v120H80Zm0 600v-200h80v120h120v80H80Zm600 0v-80h120v-120h80v200H680Zm120-600v-120H680v-80h200v200h-80ZM700-260h60v60h-60v-60Zm0-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm120-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm240-320v240H520v-240h240ZM440-440v240H200v-240h240Zm0-320v240H200v-240h240Zm-60 500v-120H260v120h120Zm0-320v-120H260v120h120Zm320 0v-120H580v120h120Z"})})),Zr=({size:o,secondary:t,disabled:e})=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:o,height:o,className:q()(E.icon,t&&E.secondary,e&&E.disabled)},{children:r("path",{d:"M280-240q-100 0-170-70T40-480q0-100 70-170t170-70q66 0 121 33t87 87h432v240h-80v120H600v-120H488q-32 54-87 87t-121 33Zm0-80q66 0 106-40.5t48-79.5h246v120h80v-120h80v-80H434q-8-39-48-79.5T280-640q-66 0-113 47t-47 113q0 66 47 113t113 47Zm0-80q33 0 56.5-23.5T360-480q0-33-23.5-56.5T280-560q-33 0-56.5 23.5T200-480q0 33 23.5 56.5T280-400Zm0-80Z"})})),Vr=({size:o,disabled:t})=>r("svg",Object.assign({id:"icon-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:o,height:o,className:q()(E.loadingSpinner,t&&E.disabled)},{children:[r("path",{d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25"}),r("path",{d:"M10.72,19.9a8,8,0,0,1-6.5-9.79A7.77,7.77,0,0,1,10.4,4.16a8,8,0,0,1,9.49,6.52A1.54,1.54,0,0,0,21.38,12h.13a1.37,1.37,0,0,0,1.38-1.54,11,11,0,1,0-12.7,12.39A1.54,1.54,0,0,0,12,21.34h0A1.47,1.47,0,0,0,10.72,19.9Z"})]})),xt=({name:o,secondary:t,size:e=18,fadeOut:n,disabled:a})=>r(so[o],{size:e,secondary:t,fadeOut:n,disabled:a}),No=({children:o,isLoading:t,isSuccess:e,fadeOut:n,secondary:a,hasIcon:i,maxWidth:s})=>r(k.Fragment,{children:r("div",t?Object.assign({className:q()(E.loadingSpinnerWrapper,E.centerContent,s&&E.maxWidth)},{children:r(xt,{name:"spinner",secondary:a})}):e?Object.assign({className:q()(E.loadingSpinnerWrapper,E.centerContent,s&&E.maxWidth)},{children:r(xt,{name:"checkmark",secondary:a,fadeOut:n})}):Object.assign({className:i?E.loadingSpinnerWrapperIcon:E.loadingSpinnerWrapper},{children:o}))}),Jr=()=>r(No,{isLoading:!0}),xe=o=>{let[t,e]=(0,f.useState)(o);return(0,f.useEffect)(()=>{o&&e(o)},[o]),{flowState:t}},zt=K(577),st={};st.setAttributes=Ve(),st.insert=o=>{window._hankoStyle=o},st.domAPI=Ze(),st.insertStyleElement=Je(),$e()(zt.A,st);var _e=zt.A&&zt.A.locals?zt.A.locals:void 0,Yr=()=>{let{t:o}=(0,f.useContext)(B.TranslateContext);return r("span",Object.assign({className:q()(_e.lastUsed)},{children:o("labels.lastUsed")}))},zn=(o,t,e)=>{let{hanko:n,setUIState:a,isOwnFlow:i}=(0,f.useContext)(Oe);(0,f.useEffect)(()=>n.onBeforeStateChange(({state:s})=>{o&&i(s)&&(a(d=>Object.assign(Object.assign({},d),{isDisabled:!0,error:void 0})),t(s.invokedAction.name==o.name))}),[o,n,i,t,a]),(0,f.useEffect)(()=>n.onAfterStateChange(({state:s})=>{var d;o&&i(s)&&(e(((d=s.previousAction)===null||d===void 0?void 0:d.name)==o.name),t(!1))}),[n,e,t,o,i])},Fn=(0,k.createContext)({}),Y=({onSubmit:o,children:t,hidden:e=!1,maxWidth:n,flowAction:a})=>r(Fn.Provider,Object.assign({value:{flowAction:a}},{children:a&&a.enabled&&!e?r("form",Object.assign({onSubmit:o||(i=>{return s=void 0,d=void 0,l=function*(){return i.preventDefault(),yield a.run()},new((h=void 0)||(h=Promise))(function(c,v){function m(w){try{x(l.next(w))}catch(b){v(b)}}function g(w){try{x(l.throw(w))}catch(b){v(b)}}function x(w){var b;w.done?c(w.value):(b=w.value,b instanceof h?b:new h(function(P){P(b)})).then(m,g)}x((l=l.apply(s,d||[])).next())});var s,d,h,l}),className:_e.form},{children:r("ul",Object.assign({className:_e.ul},{children:(0,k.toChildArray)(t).map((i,s)=>r("li",Object.assign({part:"form-item",className:q()(_e.li,n?_e.maxWidth:null)},{children:i}),s))}))})):null})),Q=o=>{var{title:t,children:e,secondary:n,dangerous:a,autofocus:i,showLastUsed:s,onClick:d,icon:h,showSuccessIcon:l}=o,c=function(D,F){var N={};for(var L in D)Object.prototype.hasOwnProperty.call(D,L)&&F.indexOf(L)<0&&(N[L]=D[L]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function"){var ne=0;for(L=Object.getOwnPropertySymbols(D);ne<L.length;ne++)F.indexOf(L[ne])<0&&Object.prototype.propertyIsEnumerable.call(D,L[ne])&&(N[L[ne]]=D[L[ne]])}return N}(o,["title","children","secondary","dangerous","autofocus","showLastUsed","onClick","icon","showSuccessIcon"]);let v=(0,f.useRef)(null),{uiState:m}=(0,f.useContext)(Oe),[g,x]=(0,f.useState)(!1),[w,b]=(0,f.useState)(!1),{flowAction:P}=(0,f.useContext)(Fn);zn(P,x,b),(0,f.useEffect)(()=>{let{current:D}=v;D&&i&&D.focus()},[i]);let U=(0,f.useMemo)(()=>l&&(w||c.isSuccess),[w,c,l]),T=(0,f.useMemo)(()=>m.isDisabled||c.disabled,[c,m]);return r("button",Object.assign({part:a?"button dangerous-button":n?"button secondary-button":"button primary-button",title:t,ref:v,type:"submit",disabled:T,onClick:d,className:q()(_e.button,a?_e.dangerous:n?_e.secondary:_e.primary)},{children:r(No,Object.assign({isLoading:g,isSuccess:U,secondary:!0,hasIcon:!!h,maxWidth:!0},{children:[h?r(xt,{name:h,secondary:n,disabled:T}):null,r("div",Object.assign({className:_e.caption},{children:[r("span",{children:e}),s?r(Yr,{}):null]}))]}))}))},je=o=>{var t,e,n,a,i,{label:s}=o,d=function(g,x){var w={};for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&x.indexOf(b)<0&&(w[b]=g[b]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function"){var P=0;for(b=Object.getOwnPropertySymbols(g);P<b.length;P++)x.indexOf(b[P])<0&&Object.prototype.propertyIsEnumerable.call(g,b[P])&&(w[b[P]]=g[b[P]])}return w}(o,["label"]);let h=(0,f.useRef)(null),{uiState:l}=(0,f.useContext)(Oe),{t:c}=(0,f.useContext)(B.TranslateContext),v=(0,f.useMemo)(()=>l.isDisabled||d.disabled,[d,l]);(0,f.useEffect)(()=>{let{current:g}=h;g&&d.autofocus&&(g.focus(),g.select())},[d.autofocus]);let m=(0,f.useMemo)(()=>{var g;return d.markOptional&&!(!((g=d.flowInput)===null||g===void 0)&&g.required)?`${d.placeholder} (${c("labels.optional")})`:d.placeholder},[d.markOptional,d.placeholder,d.flowInput,c]);return r("div",Object.assign({className:_e.inputWrapper},{children:r("input",Object.assign({part:"input text-input",required:(t=d.flowInput)===null||t===void 0?void 0:t.required,maxLength:(e=d.flowInput)===null||e===void 0?void 0:e.max_length,minLength:(n=d.flowInput)===null||n===void 0?void 0:n.min_length,hidden:(a=d.flowInput)===null||a===void 0?void 0:a.hidden},d,{ref:h,"aria-label":m,placeholder:m,className:q()(_e.input,!!(!((i=d.flowInput)===null||i===void 0)&&i.error)&&d.markError&&_e.error),disabled:v}))}))},be=({children:o})=>r("section",Object.assign({className:kt.content},{children:o})),Ft=K(111),lt={};lt.setAttributes=Ve(),lt.insert=o=>{window._hankoStyle=o},lt.domAPI=Ze(),lt.insertStyleElement=Je(),$e()(Ft.A,lt);var gt=Ft.A&&Ft.A.locals?Ft.A.locals:void 0,zo=({children:o,hidden:t})=>t?null:r("section",Object.assign({part:"divider",className:gt.divider},{children:[r("div",{part:"divider-line",className:gt.line}),o?r("div",Object.assign({part:"divider-text",class:gt.text},{children:o})):null,r("div",{part:"divider-line",className:gt.line})]})),Wt=K(905),ct={};ct.setAttributes=Ve(),ct.insert=o=>{window._hankoStyle=o},ct.domAPI=Ze(),ct.insertStyleElement=Je(),$e()(Wt.A,ct);var Wn=Wt.A&&Wt.A.locals?Wt.A.locals:void 0,we=({state:o,error:t,flowError:e})=>{var n,a;let{t:i}=(0,f.useContext)(B.TranslateContext),{uiState:s,setUIState:d}=(0,f.useContext)(Oe);return(0,f.useEffect)(()=>{var h,l;if(((h=o==null?void 0:o.error)===null||h===void 0?void 0:h.code)=="form_data_invalid_error")for(let c of Object.values(o==null?void 0:o.actions)){let v=!1;for(let m of Object.values(c==null?void 0:c.inputs))if(!((l=m.error)===null||l===void 0)&&l.code)return d(Object.assign(Object.assign({},s),{error:m.error})),void(v=!0);v||d(Object.assign(Object.assign({},s),{error:o.error}))}else o!=null&&o.error&&d(Object.assign(Object.assign({},s),{error:o==null?void 0:o.error}))},[o]),r("section",Object.assign({part:"error",className:Wn.errorBox,hidden:!(!((n=s.error)===null||n===void 0)&&n.code)&&!(e!=null&&e.code)&&!t},{children:[r("span",{children:r(xt,{name:"exclamation",size:15})}),r("span",Object.assign({id:"errorMessage",part:"error-text"},{children:i(t?`errors.${t.code}`:`flowErrors.${((a=s.error)===null||a===void 0?void 0:a.code)||(e==null?void 0:e.code)}`)}))]}))},Ht=K(619),dt={};dt.setAttributes=Ve(),dt.insert=o=>{window._hankoStyle=o},dt.domAPI=Ze(),dt.insertStyleElement=Je(),$e()(Ht.A,dt);var to=Ht.A&&Ht.A.locals?Ht.A.locals:void 0,ie=({children:o})=>r("h1",Object.assign({part:"headline1",className:q()(to.headline,to.grade1)},{children:o})),Bt=K(995),ht={};ht.setAttributes=Ve(),ht.insert=o=>{window._hankoStyle=o},ht.domAPI=Ze(),ht.insertStyleElement=Je(),$e()(Bt.A,ht);var Pt=Bt.A&&Bt.A.locals?Bt.A.locals:void 0,To=o=>{var{loadingSpinnerPosition:t,dangerous:e=!1,onClick:n,flowAction:a}=o,i=function(N,L){var ne={};for(var te in N)Object.prototype.hasOwnProperty.call(N,te)&&L.indexOf(te)<0&&(ne[te]=N[te]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function"){var X=0;for(te=Object.getOwnPropertySymbols(N);X<te.length;X++)L.indexOf(te[X])<0&&Object.prototype.propertyIsEnumerable.call(N,te[X])&&(ne[te[X]]=N[te[X]])}return ne}(o,["loadingSpinnerPosition","dangerous","onClick","flowAction"]);let{t:s}=(0,f.useContext)(B.TranslateContext),{uiState:d}=(0,f.useContext)(Oe),[h,l]=(0,f.useState)(),[c,v]=(0,f.useState)(!1),[m,g]=(0,f.useState)(!1),x;n||(n=N=>{return L=void 0,ne=void 0,X=function*(){return N.preventDefault(),yield a==null?void 0:a.run()},new((te=void 0)||(te=Promise))(function(R,ce){function ke(re){try{Ce(X.next(re))}catch(de){ce(de)}}function he(re){try{Ce(X.throw(re))}catch(de){ce(de)}}function Ce(re){var de;re.done?R(re.value):(de=re.value,de instanceof te?de:new te(function(j){j(de)})).then(ke,he)}Ce((X=X.apply(L,ne||[])).next())});var L,ne,te,X}),zn(a,v,g);let w=N=>{N.preventDefault(),l(!0)},b=N=>{N.preventDefault(),l(!1)},P=(0,f.useMemo)(()=>c||i.isLoading,[c,i]),U=(0,f.useMemo)(()=>m||i.isSuccess,[m,i]),T=(0,f.useMemo)(()=>a&&!a.enabled||i.hidden,[a,i]),D=(0,f.useCallback)(N=>{N.preventDefault(),l(!1),n(N)},[n]),F=(0,f.useCallback)(()=>T?null:r(k.Fragment,{children:[h?r(k.Fragment,{children:[r(To,Object.assign({onClick:D},{children:s("labels.yes")})),"\xA0/\xA0",r(To,Object.assign({onClick:b},{children:s("labels.no")})),"\xA0"]}):null,r("button",Object.assign({},i,{onClick:e?w:n,disabled:h||i.disabled||d.isDisabled,part:"link",className:q()(Pt.link,e?Pt.danger:null)},{children:i.children}))]}),[T,d,h,e,n,D,i,s]);return r(k.Fragment,{children:r("span",Object.assign({className:q()(Pt.linkWrapper,t==="right"?Pt.reverse:null),onMouseEnter:()=>{x&&window.clearTimeout(x)},onMouseLeave:()=>{x=window.setTimeout(()=>{l(!1)},1e3)}},{children:r(k.Fragment,h||!P&&!U?{children:F()}:{children:[r(No,{isLoading:P,isSuccess:U,secondary:i.secondary,fadeOut:!0}),F()]})}))})},G=To,Se=({children:o,hidden:t=!1})=>t?null:r("section",Object.assign({className:kt.footer},{children:o})),Fo=o=>{var{label:t}=o,e=function(i,s){var d={};for(var h in i)Object.prototype.hasOwnProperty.call(i,h)&&s.indexOf(h)<0&&(d[h]=i[h]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function"){var l=0;for(h=Object.getOwnPropertySymbols(i);l<h.length;l++)s.indexOf(h[l])<0&&Object.prototype.propertyIsEnumerable.call(i,h[l])&&(d[h[l]]=i[h[l]])}return d}(o,["label"]);let{uiState:n}=(0,f.useContext)(Oe),a=(0,f.useMemo)(()=>n.isDisabled||e.disabled,[e,n]);return r("div",Object.assign({className:_e.inputWrapper},{children:r("label",Object.assign({className:_e.checkboxWrapper},{children:[r("input",Object.assign({part:"input checkbox-input",type:"checkbox","aria-label":t,className:_e.checkbox},e)),r("span",Object.assign({className:q()(_e.label,a?_e.disabled:null)},{children:t}))]}))}))},oo=()=>r("section",{className:gt.spacer}),Tt=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},Qr=o=>{var t;let{t:e}=(0,f.useContext)(B.TranslateContext),{init:n,initialComponentName:a,uiState:i,setUIState:s,hidePasskeyButtonOnLogin:d,lastLogin:h}=(0,f.useContext)(Oe),[l,c]=(0,f.useState)(!1),[v,m]=(0,f.useState)(null),[g,x]=(0,f.useState)(i.username||i.email),{flowState:w}=xe(o.state),b=Qe.supported(),[P,U]=(0,f.useState)(void 0),[T,D]=(0,f.useState)(null),[F,N]=(0,f.useState)(!1),L=R=>{if(R.preventDefault(),R.target instanceof HTMLInputElement){let{value:ce}=R.target;x(ce),ne(ce)}},ne=R=>{let ce=()=>s(he=>Object.assign(Object.assign({},he),{email:R,username:null})),ke=()=>s(he=>Object.assign(Object.assign({},he),{email:null,username:R}));switch(v){case"email":ce();break;case"username":ke();break;case"identifier":R.match(/^[^@]+@[^@]+\.[^@]+$/)?ce():ke()}},te=(0,f.useMemo)(()=>!!w.actions.webauthn_generate_request_options.enabled||!!w.actions.thirdparty_oauth.enabled,[w.actions]),X=w.actions.continue_with_login_identifier.inputs;return(0,f.useEffect)(()=>{let R=w.actions.continue_with_login_identifier.inputs;m(R!=null&&R.email?"email":R!=null&&R.username?"username":"identifier")},[w]),r(k.Fragment,{children:[r(be,{children:[r(ie,{children:e("headlines.signIn")}),r(we,{state:w,error:P}),X?r(k.Fragment,{children:[r(Y,Object.assign({flowAction:w.actions.continue_with_login_identifier,onSubmit:R=>Tt(void 0,void 0,void 0,function*(){return R.preventDefault(),ne(g),w.actions.continue_with_login_identifier.run({[v]:g})}),maxWidth:!0},{children:[X.email?r(je,{type:"email",autoComplete:"username webauthn",autoCorrect:"off",flowInput:X.email,onInput:L,value:g,placeholder:e("labels.email"),pattern:"^[^@]+@[^@]+\\.[^@]+$"}):X.username?r(je,{type:"text",autoComplete:"username webauthn",autoCorrect:"off",flowInput:X.username,onInput:L,value:g,placeholder:e("labels.username")}):r(je,{type:"text",autoComplete:"username webauthn",autoCorrect:"off",flowInput:X.identifier,onInput:L,value:g,placeholder:e("labels.emailOrUsername")}),r(Q,{children:e("labels.continue")})]})),r(zo,Object.assign({hidden:!te},{children:e("labels.or")}))]}):null,w.actions.webauthn_generate_request_options.enabled&&!d?r(Y,Object.assign({flowAction:w.actions.webauthn_generate_request_options},{children:r(Q,Object.assign({secondary:!0,title:b?null:e("labels.webauthnUnsupported"),disabled:!b,icon:"passkey"},{children:e("labels.signInPasskey")}))})):null,w.actions.thirdparty_oauth.enabled?(t=w.actions.thirdparty_oauth.inputs.provider.allowed_values)===null||t===void 0?void 0:t.map(R=>r(Y,Object.assign({flowAction:w.actions.thirdparty_oauth,onSubmit:ce=>((ke,he)=>Tt(void 0,void 0,void 0,function*(){ke.preventDefault(),D(he);let Ce=yield w.actions.thirdparty_oauth.run({provider:he,redirect_to:window.location.toString()});return Ce.error&&D(null),Ce}))(ce,R.value)},{children:r(Q,Object.assign({isLoading:R.value==T,secondary:!0,icon:R.value.startsWith("custom_")?"customProvider":R.value,showLastUsed:(h==null?void 0:h.login_method)=="third_party"&&(h==null?void 0:h.third_party_provider)==R.value},{children:e("labels.signInWith",{provider:R.name})}))}),R.value)):null,w.actions.remember_me.enabled&&r(k.Fragment,{children:[r(oo,{}),r(Fo,{required:!1,type:"checkbox",label:e("labels.staySignedIn"),checked:F,onChange:R=>Tt(void 0,void 0,void 0,function*(){return N(ce=>!ce),w.actions.remember_me.run({remember_me:!F})})})]})]}),r(Se,Object.assign({hidden:a!=="auth"},{children:[r("span",{hidden:!0}),r(G,Object.assign({onClick:R=>Tt(void 0,void 0,void 0,function*(){R.preventDefault(),c(!0),n("registration")}),loadingSpinnerPosition:"left",isLoading:l},{children:e("labels.dontHaveAnAccount")}))]}))]})},Xr=o=>{var{index:t,focus:e,digit:n=""}=o,a=function(l,c){var v={};for(var m in l)Object.prototype.hasOwnProperty.call(l,m)&&c.indexOf(m)<0&&(v[m]=l[m]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function"){var g=0;for(m=Object.getOwnPropertySymbols(l);g<m.length;g++)c.indexOf(m[g])<0&&Object.prototype.propertyIsEnumerable.call(l,m[g])&&(v[m[g]]=l[m[g]])}return v}(o,["index","focus","digit"]);let i=(0,f.useRef)(null),{uiState:s}=(0,f.useContext)(Oe),d=()=>{let{current:l}=i;l&&(l.focus(),l.select())},h=(0,f.useMemo)(()=>s.isDisabled||a.disabled,[a,s]);return(0,f.useEffect)(()=>{t===0&&d()},[t,a.disabled]),(0,f.useMemo)(()=>{e&&d()},[e]),r("div",Object.assign({className:_e.passcodeDigitWrapper},{children:r("input",Object.assign({},a,{part:"input passcode-input","aria-label":`${a.name}-digit-${t+1}`,name:a.name+t.toString(10),type:"text",inputMode:"numeric",maxLength:1,ref:i,value:n.charAt(0),required:!0,className:_e.input,disabled:h}))}))},Wo=({passcodeDigits:o=[],numberOfInputs:t=6,onInput:e,disabled:n=!1})=>{let[a,i]=(0,f.useState)(0),s=()=>o.slice(),d=()=>{a<t-1&&i(a+1)},h=()=>{a>0&&i(a-1)},l=g=>{let x=s();x[a]=g.charAt(0),e(x)},c=g=>{if(g.preventDefault(),n)return;let x=g.clipboardData.getData("text/plain").slice(0,t-a).split(""),w=s(),b=a;for(let P=0;P<t;++P)P>=a&&x.length>0&&(w[P]=x.shift(),b++);i(b),e(w)},v=g=>{g.key==="Backspace"?(g.preventDefault(),l(""),h()):g.key==="Delete"?(g.preventDefault(),l("")):g.key==="ArrowLeft"?(g.preventDefault(),h()):g.key==="ArrowRight"?(g.preventDefault(),d()):g.key!==" "&&g.key!=="Spacebar"&&g.key!=="Space"||g.preventDefault()},m=g=>{g.target instanceof HTMLInputElement&&l(g.target.value),d()};return(0,f.useEffect)(()=>{o.length===0&&i(0)},[o]),r("div",Object.assign({className:_e.passcodeInputWrapper},{children:Array.from(Array(t)).map((g,x)=>r(Xr,{name:"passcode",index:x,focus:a===x,digit:o[x],onKeyDown:v,onInput:m,onPaste:c,onFocus:()=>(w=>{i(w)})(x),disabled:n},x))}))},Rt=K(489),ut={};ut.setAttributes=Ve(),ut.insert=o=>{window._hankoStyle=o},ut.domAPI=Ze(),ut.insertStyleElement=Je(),$e()(Rt.A,ut);var ea=Rt.A&&Rt.A.locals?Rt.A.locals:void 0,H=({children:o,hidden:t})=>t?null:r("p",Object.assign({part:"paragraph",className:ea.paragraph},{children:o})),dn=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},ta=o=>{let{t}=(0,f.useContext)(B.TranslateContext),{flowState:e}=xe(o.state),{uiState:n,setUIState:a}=(0,f.useContext)(Oe),[i,s]=(0,f.useState)(),[d,h]=(0,f.useState)(e.payload.resend_after),[l,c]=(0,f.useState)([]),v=(0,f.useMemo)(()=>{var g;return((g=e.error)===null||g===void 0?void 0:g.code)==="passcode_max_attempts_reached"},[e]),m=(0,f.useCallback)(g=>dn(void 0,void 0,void 0,function*(){return yield e.actions.verify_passcode.run({code:g})}),[e]);return(0,f.useEffect)(()=>{let g=i>0&&setInterval(()=>s(i-1),1e3);return()=>clearInterval(g)},[i]),(0,f.useEffect)(()=>{let g=d>0&&setInterval(()=>{h(d-1)},1e3);return()=>clearInterval(g)},[d]),(0,f.useEffect)(()=>{var g;d==0&&((g=e.error)===null||g===void 0?void 0:g.code)=="rate_limit_exceeded"&&a(x=>Object.assign(Object.assign({},x),{error:null}))},[d]),(0,f.useEffect)(()=>{c([]),e.payload.resend_after>=0&&h(e.payload.resend_after)},[e]),r(k.Fragment,{children:[r(be,{children:[r(ie,{children:t("headlines.loginPasscode")}),r(we,{state:e}),r(H,{children:n.email?t("texts.enterPasscode",{emailAddress:n.email}):t("texts.enterPasscodeNoEmail")}),r(Y,Object.assign({flowAction:e.actions.verify_passcode,onSubmit:g=>dn(void 0,void 0,void 0,function*(){return g.preventDefault(),m(l.join(""))})},{children:[r(Wo,{onInput:g=>{if(c(g),g.filter(x=>x!=="").length===6)return m(g.join(""))},passcodeDigits:l,numberOfInputs:6,disabled:i<=0||v}),r(Q,Object.assign({disabled:i<=0||v},{children:t("labels.continue")}))]}))]}),r(Se,{children:[r(G,Object.assign({flowAction:e.actions.back,loadingSpinnerPosition:"right"},{children:t("labels.back")})),r(G,Object.assign({disabled:d>0,flowAction:e.actions.resend_passcode,loadingSpinnerPosition:"left"},{children:d>0?t("labels.passcodeResendAfter",{passcodeResendAfter:d}):t("labels.sendNewPasscode")}))]})]})},oa=o=>{let{t}=(0,f.useContext)(B.TranslateContext),{flowState:e}=xe(o.state);return r(k.Fragment,{children:[r(be,{children:[r(ie,{children:t("headlines.registerAuthenticator")}),r(we,{state:e}),r(H,{children:t("texts.setupPasskey")}),r(Y,Object.assign({flowAction:e.actions.webauthn_generate_creation_options},{children:r(Q,Object.assign({autofocus:!0,icon:"passkey"},{children:t("labels.registerAuthenticator")}))}))]}),r(Se,Object.assign({hidden:!e.actions.skip.enabled&&!e.actions.back.enabled},{children:[r(G,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.back},{children:t("labels.back")})),r(G,Object.assign({loadingSpinnerPosition:"left",flowAction:e.actions.skip},{children:t("labels.skip")}))]}))]})},hn=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},na=o=>{let{t}=(0,f.useContext)(B.TranslateContext),{flowState:e}=xe(o.state),[n,a]=(0,f.useState)(),[i,s]=(0,f.useState)(),d=(0,f.useMemo)(()=>r(G,Object.assign({flowAction:e.actions.continue_to_passcode_confirmation_recovery,loadingSpinnerPosition:"left"},{children:t("labels.forgotYourPassword")})),[e,t]),h=(0,f.useMemo)(()=>r(G,Object.assign({flowAction:e.actions.continue_to_login_method_chooser,loadingSpinnerPosition:"left"},{children:"Choose another method"})),[e]);return(0,f.useEffect)(()=>{let l=i>0&&setInterval(()=>s(i-1),1e3);return()=>clearInterval(l)},[i]),r(k.Fragment,{children:[r(be,{children:[r(ie,{children:t("headlines.loginPassword")}),r(we,{state:e}),r(Y,Object.assign({flowAction:e.actions.password_login,onSubmit:l=>hn(void 0,void 0,void 0,function*(){return l.preventDefault(),e.actions.password_login.run({password:n})})},{children:[r(je,{type:"password",flowInput:e.actions.password_login.inputs.password,autocomplete:"current-password",placeholder:t("labels.password"),onInput:l=>hn(void 0,void 0,void 0,function*(){l.target instanceof HTMLInputElement&&a(l.target.value)}),autofocus:!0}),r(Q,Object.assign({disabled:i>0},{children:i>0?t("labels.passwordRetryAfter",{passwordRetryAfter:i}):t("labels.signIn")}))]})),e.actions.continue_to_login_method_chooser.enabled?d:null]}),r(Se,{children:[r(G,Object.assign({flowAction:e.actions.back,loadingSpinnerPosition:"right"},{children:t("labels.back")})),e.actions.continue_to_login_method_chooser.enabled?h:d]})]})},un=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},ra=o=>{let{t}=(0,f.useContext)(B.TranslateContext),{flowState:e}=xe(o.state),[n,a]=(0,f.useState)();return r(be,{children:[r(ie,{children:t("headlines.registerPassword")}),r(we,{state:e}),r(H,{children:t("texts.passwordFormatHint",{minLength:e.actions.password_recovery.inputs.new_password.min_length,maxLength:72})}),r(Y,Object.assign({flowAction:e.actions.password_recovery,onSubmit:i=>un(void 0,void 0,void 0,function*(){return i.preventDefault(),e.actions.password_recovery.run({new_password:n})})},{children:[r(je,{type:"password",autocomplete:"new-password",flowInput:e.actions.password_recovery.inputs.new_password,placeholder:t("labels.newPassword"),onInput:i=>un(void 0,void 0,void 0,function*(){i.target instanceof HTMLInputElement&&a(i.target.value)}),autofocus:!0}),r(Q,{children:t("labels.continue")})]}))]})},aa=o=>{let{t}=(0,f.useContext)(B.TranslateContext),{flowState:e}=xe(o.state);return r(k.Fragment,{children:[r(be,{children:[r(ie,{children:t("headlines.selectLoginMethod")}),r(we,{flowError:e==null?void 0:e.error}),r(H,{children:t("texts.howDoYouWantToLogin")}),r(Y,Object.assign({flowAction:e.actions.continue_to_passcode_confirmation},{children:r(Q,Object.assign({secondary:!0,icon:"mail"},{children:t("labels.passcode")}))})),r(Y,Object.assign({flowAction:e.actions.continue_to_password_login},{children:r(Q,Object.assign({secondary:!0,icon:"password"},{children:t("labels.password")}))})),r(Y,Object.assign({flowAction:e.actions.webauthn_generate_request_options},{children:r(Q,Object.assign({secondary:!0,icon:"passkey"},{children:t("labels.passkey")}))}))]}),r(Se,{children:r(G,Object.assign({flowAction:e.actions.back,loadingSpinnerPosition:"right"},{children:t("labels.back")}))})]})},Dt=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},ia=o=>{var t;let{t:e}=(0,f.useContext)(B.TranslateContext),{init:n,uiState:a,setUIState:i,initialComponentName:s}=(0,f.useContext)(Oe),{flowState:d}=xe(o.state),h=d.actions.register_login_identifier.inputs,l=!(!(h!=null&&h.email)||!(h!=null&&h.username)),[c,v]=(0,f.useState)(void 0),[m,g]=(0,f.useState)(null),[x,w]=(0,f.useState)(!1),[b,P]=(0,f.useState)(!1),U=(0,f.useMemo)(()=>!!d.actions.thirdparty_oauth.enabled,[d.actions]);return r(k.Fragment,{children:[r(be,{children:[r(ie,{children:e("headlines.signUp")}),r(we,{state:d,error:c}),h?r(k.Fragment,{children:[r(Y,Object.assign({flowAction:d.actions.register_login_identifier,onSubmit:T=>Dt(void 0,void 0,void 0,function*(){return T.preventDefault(),yield d.actions.register_login_identifier.run({email:a.email,username:a.username})}),maxWidth:!0},{children:[h.username?r(je,{markOptional:l,markError:l,type:"text",autoComplete:"username",autoCorrect:"off",flowInput:h.username,onInput:T=>{if(T.preventDefault(),T.target instanceof HTMLInputElement){let{value:D}=T.target;i(F=>Object.assign(Object.assign({},F),{username:D}))}},value:a.username,placeholder:e("labels.username")}):null,h.email?r(je,{markOptional:l,markError:l,type:"email",autoComplete:"email",autoCorrect:"off",flowInput:h.email,onInput:T=>{if(T.preventDefault(),T.target instanceof HTMLInputElement){let{value:D}=T.target;i(F=>Object.assign(Object.assign({},F),{email:D}))}},value:a.email,placeholder:e("labels.email"),pattern:"^.*[^0-9]+$"}):null,r(Q,Object.assign({autofocus:!0},{children:e("labels.continue")}))]})),r(zo,Object.assign({hidden:!U},{children:e("labels.or")}))]}):null,d.actions.thirdparty_oauth.enabled?(t=d.actions.thirdparty_oauth.inputs.provider.allowed_values)===null||t===void 0?void 0:t.map(T=>r(Y,Object.assign({flowAction:d.actions.thirdparty_oauth,onSubmit:D=>((F,N)=>Dt(void 0,void 0,void 0,function*(){F.preventDefault(),g(N);let L=yield d.actions.thirdparty_oauth.run({provider:N,redirect_to:window.location.toString()},{dispatchAfterStateChangeEvent:!1});g(null),L.dispatchAfterStateChangeEvent()}))(D,T.value)},{children:r(Q,Object.assign({isLoading:T.value==m,secondary:!0,icon:T.value.startsWith("custom_")?"customProvider":T.value},{children:e("labels.signInWith",{provider:T.name})}))}),T.value)):null,d.actions.remember_me.enabled&&r(k.Fragment,{children:[r(oo,{}),r(Fo,{required:!1,type:"checkbox",label:e("labels.staySignedIn"),checked:x,onChange:T=>Dt(void 0,void 0,void 0,function*(){T.preventDefault();let D=yield d.actions.remember_me.run({remember_me:!x},{dispatchAfterStateChangeEvent:!1});w(F=>!F),D.dispatchAfterStateChangeEvent()})})]})]}),r(Se,Object.assign({hidden:s!=="auth"},{children:[r("span",{hidden:!0}),r(G,Object.assign({onClick:T=>Dt(void 0,void 0,void 0,function*(){T.preventDefault(),P(!0),n("login")}),loadingSpinnerPosition:"left",isLoading:b},{children:e("labels.alreadyHaveAnAccount")}))]}))]})},pn=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},sa=o=>{let{t}=(0,f.useContext)(B.TranslateContext),{flowState:e}=xe(o.state),[n,a]=(0,f.useState)();return r(k.Fragment,{children:[r(be,{children:[r(ie,{children:t("headlines.registerPassword")}),r(we,{state:e}),r(H,{children:t("texts.passwordFormatHint",{minLength:e.actions.register_password.inputs.new_password.min_length,maxLength:72})}),r(Y,Object.assign({flowAction:e.actions.register_password,onSubmit:i=>pn(void 0,void 0,void 0,function*(){return i.preventDefault(),e.actions.register_password.run({new_password:n})})},{children:[r(je,{type:"password",autocomplete:"new-password",flowInput:e.actions.register_password.inputs.new_password,placeholder:t("labels.newPassword"),onInput:i=>pn(void 0,void 0,void 0,function*(){i.target instanceof HTMLInputElement&&a(i.target.value)}),autofocus:!0}),r(Q,{children:t("labels.continue")})]}))]}),r(Se,Object.assign({hidden:!e.actions.back.enabled&&!e.actions.skip.enabled},{children:[r(G,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.back},{children:t("labels.back")})),r(G,Object.assign({loadingSpinnerPosition:"left",flowAction:e.actions.skip},{children:t("labels.skip")}))]}))]})},qt=K(21),pt={};pt.setAttributes=Ve(),pt.insert=o=>{window._hankoStyle=o},pt.domAPI=Ze(),pt.insertStyleElement=Je(),$e()(qt.A,pt);var He=qt.A&&qt.A.locals?qt.A.locals:void 0,no=function({name:o,columnSelector:t,contentSelector:e,data:n=[],checkedItemID:a,setCheckedItemID:i,dropdown:s=!1}){let d=(0,f.useCallback)(c=>`${o}-${c}`,[o]),h=(0,f.useCallback)(c=>d(c)===a,[a,d]),l=c=>{if(!(c.target instanceof HTMLInputElement))return;let v=parseInt(c.target.value,10),m=d(v);i(m===a?null:m)};return r("div",Object.assign({className:He.accordion},{children:n.map((c,v)=>r("div",Object.assign({className:He.accordionItem},{children:[r("input",{type:"radio",className:He.accordionInput,id:`${o}-${v}`,name:o,onClick:l,value:v,checked:h(v)}),r("label",Object.assign({className:q()(He.label,s&&He.dropdown),for:`${o}-${v}`},{children:r("span",Object.assign({className:He.labelText},{children:t(c,v)}))})),r("div",Object.assign({className:q()(He.accordionContent,s&&He.dropdownContent)},{children:e(c,v)}))]}),v))}))},Ie=({children:o})=>r("h2",Object.assign({part:"headline2",className:q()(to.headline,to.grade2)},{children:o})),io=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},la=({checkedItemID:o,setCheckedItemID:t,flowState:e,onState:n})=>{let{t:a}=(0,f.useContext)(B.TranslateContext),i=(0,f.useMemo)(()=>!1,[]);return r(no,{name:"email-edit-dropdown",columnSelector:s=>{let d=r("span",Object.assign({className:He.description},{children:s.is_verified?s.is_primary?r(k.Fragment,{children:[" -"," ",a("labels.primaryEmail")]}):null:r(k.Fragment,{children:[" -"," ",a("labels.unverifiedEmail")]})}));return s.is_primary?r(k.Fragment,{children:[r("b",{children:s.address}),d]}):r(k.Fragment,{children:[s.address,d]})},data:e.payload.user.emails,contentSelector:s=>{var d,h;return r(k.Fragment,{children:[s.is_primary?r(k.Fragment,{children:r(H,{children:[r(Ie,{children:a("headlines.isPrimaryEmail")}),a("texts.isPrimaryEmail")]})}):r(k.Fragment,{children:r(H,{children:[r(Ie,{children:a("headlines.setPrimaryEmail")}),a("texts.setPrimaryEmail"),r("br",{}),r(G,Object.assign({flowAction:e.actions.email_set_primary,onClick:l=>((c,v)=>io(void 0,void 0,void 0,function*(){c.preventDefault();let m=yield e.actions.email_set_primary.run({email_id:v},{dispatchAfterStateChangeEvent:!1});return n(m)}))(l,s.id),loadingSpinnerPosition:"right"},{children:a("labels.setAsPrimaryEmail")}))]})}),s.is_verified?r(k.Fragment,{children:r(H,{children:[r(Ie,{children:a("headlines.emailVerified")}),a("texts.emailVerified")]})}):r(k.Fragment,{children:r(H,{children:[r(Ie,{children:a("headlines.emailUnverified")}),a("texts.emailUnverified"),r("br",{}),r(G,Object.assign({flowAction:e.actions.email_verify,onClick:l=>((c,v)=>io(void 0,void 0,void 0,function*(){c.preventDefault();let m=yield e.actions.email_verify.run({email_id:v},{dispatchAfterStateChangeEvent:!1});return n(m)}))(l,s.id),loadingSpinnerPosition:"right"},{children:a("labels.verify")}))]})}),!((d=e.actions.email_delete.inputs.email_id.allowed_values)===null||d===void 0)&&d.map(l=>l.value).includes(s.id)?r(k.Fragment,{children:r(H,{children:[r(Ie,{children:a("headlines.emailDelete")}),a("texts.emailDelete"),r("br",{}),r(G,Object.assign({dangerous:!0,flowAction:e.actions.email_delete,onClick:l=>((c,v)=>io(void 0,void 0,void 0,function*(){c.preventDefault();let m=yield e.actions.email_delete.run({email_id:v},{dispatchAfterStateChangeEvent:!1});return n(m)}))(l,s.id),disabled:i,loadingSpinnerPosition:"right"},{children:a("labels.delete")}))]})}):null,((h=s.identities)===null||h===void 0?void 0:h.length)>0?r(k.Fragment,{children:r(H,{children:[r(Ie,{children:a("headlines.connectedAccounts")}),s.identities.map(l=>l.provider).join(", ")]})}):null]})},checkedItemID:o,setCheckedItemID:t})},ca=({onCredentialNameSubmit:o,oldName:t,onBack:e,credential:n,credentialType:a,flowState:i})=>{let{t:s}=(0,f.useContext)(B.TranslateContext),[d,h]=(0,f.useState)(t);return r(k.Fragment,{children:[r(be,{children:[r(ie,{children:s(a==="security-key"?"headlines.renameSecurityKey":"headlines.renamePasskey")}),r(we,{flowError:null}),r(H,{children:s(a==="security-key"?"texts.renameSecurityKey":"texts.renamePasskey")}),r(Y,Object.assign({flowAction:i.actions.webauthn_credential_rename,onSubmit:l=>o(l,n.id,d)},{children:[r(je,{type:"text",name:a,value:d,minLength:3,maxLength:32,required:!0,placeholder:s(a==="security-key"?"labels.newSecurityKeyName":"labels.newPasskeyName"),onInput:l=>{return c=void 0,v=void 0,g=function*(){l.target instanceof HTMLInputElement&&h(l.target.value)},new((m=void 0)||(m=Promise))(function(x,w){function b(T){try{U(g.next(T))}catch(D){w(D)}}function P(T){try{U(g.throw(T))}catch(D){w(D)}}function U(T){var D;T.done?x(T.value):(D=T.value,D instanceof m?D:new m(function(F){F(D)})).then(b,P)}U((g=g.apply(c,v||[])).next())});var c,v,m,g},autofocus:!0}),r(Q,{children:s("labels.save")})]}))]}),r(Se,{children:r(G,Object.assign({onClick:e,loadingSpinnerPosition:"right"},{children:s("labels.back")}))})]})},fn=({credentials:o=[],checkedItemID:t,setCheckedItemID:e,onBack:n,onCredentialNameSubmit:a,allowCredentialDeletion:i,credentialType:s,onCredentialDelete:d,flowState:h})=>{let{t:l}=(0,f.useContext)(B.TranslateContext),{setPage:c}=(0,f.useContext)(Oe),v=g=>{if(g.name)return g.name;let x=g.public_key.replace(/[\W_]/g,"");return`${s==="security-key"?"SecurityKey":"Passkey"}-${x.substring(x.length-7,x.length)}`},m=g=>new Date(g).toLocaleString();return r(no,{name:s==="security-key"?"security-key-edit-dropdown":"passkey-edit-dropdown",columnSelector:g=>v(g),data:o,contentSelector:g=>r(k.Fragment,{children:[r(H,{children:[r(Ie,{children:l(s==="security-key"?"headlines.renameSecurityKey":"headlines.renamePasskey")}),l(s==="security-key"?"texts.renameSecurityKey":"texts.renamePasskey"),r("br",{}),r(G,Object.assign({onClick:x=>((w,b,P)=>{w.preventDefault(),c(r(ca,{oldName:v(b),credential:b,credentialType:P,onBack:n,onCredentialNameSubmit:a,flowState:h}))})(x,g,s),loadingSpinnerPosition:"right"},{children:l("labels.rename")}))]}),r(H,Object.assign({hidden:!i},{children:[r(Ie,{children:l(s==="security-key"?"headlines.deleteSecurityKey":"headlines.deletePasskey")}),l(s==="security-key"?"texts.deleteSecurityKey":"texts.deletePasskey"),r("br",{}),r(G,Object.assign({dangerous:!0,flowAction:h.actions.webauthn_credential_delete,onClick:x=>d(x,g.id),loadingSpinnerPosition:"right"},{children:l("labels.delete")}))]})),r(H,{children:[r(Ie,{children:l("headlines.lastUsedAt")}),g.last_used_at?m(g.last_used_at):"-"]}),r(H,{children:[r(Ie,{children:l("headlines.createdAt")}),m(g.created_at)]})]}),checkedItemID:t,setCheckedItemID:e})},St=({name:o,title:t,children:e,checkedItemID:n,setCheckedItemID:a})=>r(no,{dropdown:!0,name:o,columnSelector:()=>t,contentSelector:()=>r(k.Fragment,{children:e}),setCheckedItemID:a,checkedItemID:n,data:[{}]}),Ho=({flowError:o})=>{let{t}=(0,f.useContext)(B.TranslateContext);return r(k.Fragment,{children:o?r("div",Object.assign({className:Wn.errorMessage},{children:t(`flowErrors.${o==null?void 0:o.code}`)})):null})},da=({checkedItemID:o,setCheckedItemID:t,flowState:e,onState:n})=>{var a;let{t:i}=(0,f.useContext)(B.TranslateContext),{setUIState:s}=(0,f.useContext)(Oe),[d,h]=(0,f.useState)();return r(St,Object.assign({name:"email-create-dropdown",title:i("labels.addEmail"),checkedItemID:o,setCheckedItemID:t},{children:[r(Ho,{flowError:(a=e.actions.email_create.inputs.email)===null||a===void 0?void 0:a.error}),r(Y,Object.assign({flowAction:e.actions.email_create,onSubmit:l=>((c,v)=>{return m=void 0,g=void 0,w=function*(){c.preventDefault(),s(P=>Object.assign(Object.assign({},P),{email:v}));let b=yield e.actions.email_create.run({email:v},{dispatchAfterStateChangeEvent:!1});return n(b)},new((x=void 0)||(x=Promise))(function(b,P){function U(F){try{D(w.next(F))}catch(N){P(N)}}function T(F){try{D(w.throw(F))}catch(N){P(N)}}function D(F){var N;F.done?b(F.value):(N=F.value,N instanceof x?N:new x(function(L){L(N)})).then(U,T)}D((w=w.apply(m,g||[])).next())});var m,g,x,w})(l,d).then(()=>h(""))},{children:[r(je,{markError:!0,type:"email",placeholder:i("labels.newEmailAddress"),onInput:l=>{l.preventDefault(),l.target instanceof HTMLInputElement&&h(l.target.value)},value:d,flowInput:e.actions.email_create.inputs.email}),r(Q,{children:i("labels.save")})]}))]}))},vn=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},ha=({checkedItemID:o,setCheckedItemID:t,onState:e,flowState:n})=>{var a,i,s;let{t:d}=(0,f.useContext)(B.TranslateContext),[h,l]=(0,f.useState)(""),c=n.actions.password_create.enabled?n.actions.password_create:n.actions.password_update;return r(St,Object.assign({name:"password-edit-dropdown",title:d(n.actions.password_create.enabled?"labels.setPassword":"labels.changePassword"),checkedItemID:o,setCheckedItemID:t},{children:[r(H,{children:d("texts.passwordFormatHint",{minLength:(a=c.inputs.password.min_length)===null||a===void 0?void 0:a.toString(10),maxLength:(i=c.inputs.password.max_length)===null||i===void 0?void 0:i.toString(10)})}),r(Ho,{flowError:(s=n.actions.password_create.inputs.password)===null||s===void 0?void 0:s.error}),r(Y,Object.assign({flowAction:c,onSubmit:v=>((m,g)=>vn(void 0,void 0,void 0,function*(){m.preventDefault();let x=yield c.run({password:g},{dispatchAfterStateChangeEvent:!1});return e(x)}))(v,h).then(()=>l(""))},{children:[r(je,{markError:!0,autoComplete:"new-password",placeholder:d("labels.newPassword"),type:"password",onInput:v=>{v.preventDefault(),v.target instanceof HTMLInputElement&&l(v.target.value)},value:h,flowInput:c.inputs.password}),r(Q,{children:d("labels.save")})]})),r(G,Object.assign({dangerous:!0,flowAction:n.actions.password_delete,onClick:v=>(m=>vn(void 0,void 0,void 0,function*(){m.preventDefault();let g=yield n.actions.password_delete.run(null,{dispatchAfterStateChangeEvent:!1});return e(g)}))(v).then(()=>l("")),loadingSpinnerPosition:"right"},{children:d("labels.delete")}))]}))},gn=({checkedItemID:o,setCheckedItemID:t,credentialType:e,flowState:n,onState:a})=>{let{t:i}=(0,f.useContext)(B.TranslateContext),s=Qe.supported(),d=e=="passkey"?n.actions.webauthn_credential_create:n.actions.security_key_create;return r(St,Object.assign({name:e==="security-key"?"security-key-create-dropdown":"passkey-create-dropdown",title:i(e==="security-key"?"labels.createSecurityKey":"labels.createPasskey"),checkedItemID:o,setCheckedItemID:t},{children:[r(H,{children:i(e==="security-key"?"texts.securityKeySetUp":"texts.setupPasskey")}),r(Y,Object.assign({onSubmit:h=>{return l=void 0,c=void 0,m=function*(){h.preventDefault();let g=yield d.run(null,{dispatchAfterStateChangeEvent:!1});return a(g)},new((v=void 0)||(v=Promise))(function(g,x){function w(U){try{P(m.next(U))}catch(T){x(T)}}function b(U){try{P(m.throw(U))}catch(T){x(T)}}function P(U){var T;U.done?g(U.value):(T=U.value,T instanceof v?T:new v(function(D){D(T)})).then(w,b)}P((m=m.apply(l,c||[])).next())});var l,c,v,m},flowAction:d},{children:r(Q,Object.assign({title:s?null:i("labels.webauthnUnsupported")},{children:i(e==="security-key"?"labels.createSecurityKey":"labels.createPasskey")}))}))]}))},mn=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},ua=({checkedItemID:o,setCheckedItemID:t,flowState:e,onState:n})=>{var a,i;let{t:s}=(0,f.useContext)(B.TranslateContext),[d,h]=(0,f.useState)();return r(St,Object.assign({name:"username-edit-dropdown",title:s(e.payload.user.username?"labels.changeUsername":"labels.setUsername"),checkedItemID:o,setCheckedItemID:t},{children:[r(Ho,{flowError:e.payload.user.username?(a=e.actions.username_update.inputs.username)===null||a===void 0?void 0:a.error:(i=e.actions.username_create.inputs.username)===null||i===void 0?void 0:i.error}),r(Y,Object.assign({flowAction:e.payload.user.username?e.actions.username_update:e.actions.username_create,onSubmit:l=>mn(void 0,void 0,void 0,function*(){l.preventDefault();let c=e.payload.user.username?e.actions.username_update:e.actions.username_create,v=yield c.run({username:d},{dispatchAfterStateChangeEvent:!1});return n(v).then(()=>h(""))})},{children:[r(je,{markError:!0,placeholder:s("labels.username"),type:"text",onInput:l=>{l.preventDefault(),l.target instanceof HTMLInputElement&&h(l.target.value)},value:d,flowInput:e.payload.user.username?e.actions.username_update.inputs.username:e.actions.username_create.inputs.username}),r(Q,{children:s("labels.save")})]})),r(G,Object.assign({flowAction:e.actions.username_delete,onClick:l=>mn(void 0,void 0,void 0,function*(){l.preventDefault();let c=yield e.actions.username_delete.run(null,{dispatchAfterStateChangeEvent:!1});return n(c).then(()=>h(""))}),dangerous:!0,loadingSpinnerPosition:"right"},{children:s("labels.delete")}))]}))},pa=({state:o,onBack:t})=>{let{t:e}=(0,f.useContext)(B.TranslateContext);return r(k.Fragment,{children:[r(be,{children:[r(ie,{children:e("headlines.deleteAccount")}),r(we,{flowError:null}),r(H,{children:e("texts.deleteAccount")}),r(Y,Object.assign({flowAction:o.actions.account_delete},{children:[r(Fo,{required:!0,type:"checkbox",label:e("labels.deleteAccount")}),r(Q,{children:e("labels.delete")})]}))]}),r(Se,{children:r(G,Object.assign({onClick:t},{children:e("labels.back")}))})]})},fa=({checkedItemID:o,setCheckedItemID:t,flowState:e,onState:n})=>{let{t:a}=(0,f.useContext)(B.TranslateContext),i=s=>new Date(s).toLocaleString();return r(no,{name:"session-edit-dropdown",columnSelector:s=>{let d=r("b",{children:s.user_agent?s.user_agent:s.id}),h=s.current?r("span",Object.assign({className:He.description},{children:r(k.Fragment,{children:[" -"," ",a("labels.currentSession")]})})):null;return r(k.Fragment,{children:[d,h]})},data:e.payload.sessions,contentSelector:s=>{var d,h,l;return r(k.Fragment,{children:[r(H,Object.assign({hidden:!s.ip_address},{children:[r(Ie,{children:a("headlines.ipAddress")}),s.ip_address]})),r(H,{children:[r(Ie,{children:a("headlines.lastUsed")}),i(s.last_used)]}),r(H,{children:[r(Ie,{children:a("headlines.createdAt")}),i(s.created_at)]}),!((l=(h=(d=e.actions.session_delete.inputs.session_id)===null||d===void 0?void 0:d.allowed_values)===null||h===void 0?void 0:h.map(c=>c.value))===null||l===void 0)&&l.includes(s.id)?r(H,{children:[r(Ie,{children:a("headlines.revokeSession")}),r(G,Object.assign({dangerous:!0,onClick:c=>((v,m)=>{return g=void 0,x=void 0,b=function*(){v.preventDefault();let P=yield e.actions.session_delete.run({session_id:m},{dispatchAfterStateChangeEvent:!1});return n(P)},new((w=void 0)||(w=Promise))(function(P,U){function T(N){try{F(b.next(N))}catch(L){U(L)}}function D(N){try{F(b.throw(N))}catch(L){U(L)}}function F(N){var L;N.done?P(N.value):(L=N.value,L instanceof w?L:new w(function(ne){ne(L)})).then(T,D)}F((b=b.apply(g,x||[])).next())});var g,x,w,b})(c,s.id),loadingSpinnerPosition:"right"},{children:a("labels.revoke")}))]}):null]})},checkedItemID:o,setCheckedItemID:t})},_n=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},va=({checkedItemID:o,setCheckedItemID:t,flowState:e,onState:n})=>{var a,i,s,d;let{t:h}=(0,f.useContext)(B.TranslateContext),l=r("span",Object.assign({className:He.description},{children:!((a=e.payload.user.mfa_config)===null||a===void 0)&&a.auth_app_set_up?r(k.Fragment,{children:[" -"," ",h("labels.configured")]}):null})),c=r(k.Fragment,{children:[h("labels.authenticatorAppManage")," ",l]});return r(St,Object.assign({name:"authenticator-app-manage-dropdown",title:c,checkedItemID:o,setCheckedItemID:t},{children:[r(Ie,{children:h(!((i=e.payload.user.mfa_config)===null||i===void 0)&&i.auth_app_set_up?"headlines.authenticatorAppAlreadySetUp":"headlines.authenticatorAppNotSetUp")}),r(H,{children:[h(!((s=e.payload.user.mfa_config)===null||s===void 0)&&s.auth_app_set_up?"texts.authenticatorAppAlreadySetUp":"texts.authenticatorAppNotSetUp"),r("br",{}),!((d=e.payload.user.mfa_config)===null||d===void 0)&&d.auth_app_set_up?r(G,Object.assign({flowAction:e.actions.otp_secret_delete,onClick:v=>_n(void 0,void 0,void 0,function*(){v.preventDefault();let m=yield e.actions.otp_secret_delete.run(null,{dispatchAfterStateChangeEvent:!1});return n(m)}),loadingSpinnerPosition:"right",dangerous:!0},{children:h("labels.delete")})):r(G,Object.assign({flowAction:e.actions.continue_to_otp_secret_creation,onClick:v=>_n(void 0,void 0,void 0,function*(){v.preventDefault();let m=yield e.actions.continue_to_otp_secret_creation.run(null,{dispatchAfterStateChangeEvent:!1});return n(m)}),loadingSpinnerPosition:"right"},{children:h("labels.authenticatorAppAdd")}))]})]}))},Mt=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},Hn=o=>{var t,e,n,a,i,s,d;let{t:h}=(0,f.useContext)(B.TranslateContext),{setPage:l}=(0,f.useContext)(Oe),{flowState:c}=xe(o.state),[v,m]=(0,f.useState)(""),g=b=>Mt(void 0,void 0,void 0,function*(){b!=null&&b.error||(m(null),yield new Promise(P=>setTimeout(P,360))),b.dispatchAfterStateChangeEvent()}),x=(b,P,U)=>Mt(void 0,void 0,void 0,function*(){b.preventDefault();let T=yield c.actions.webauthn_credential_rename.run({passkey_id:P,passkey_name:U},{dispatchAfterStateChangeEvent:!1});return g(T)}),w=b=>(b.preventDefault(),l(r(Hn,{state:c,enablePasskeys:o.enablePasskeys})),Promise.resolve());return r(be,{children:[r(we,{state:((t=c==null?void 0:c.error)===null||t===void 0?void 0:t.code)!=="form_data_invalid_error"?c:null}),c.actions.username_create.enabled||c.actions.username_update.enabled||c.actions.username_delete.enabled?r(k.Fragment,{children:[r(ie,{children:h("labels.username")}),c.payload.user.username?r(H,{children:r("b",{children:c.payload.user.username.username})}):null,r(H,{children:c.actions.username_create.enabled||c.actions.username_update.enabled?r(ua,{onState:g,flowState:c,checkedItemID:v,setCheckedItemID:m}):null})]}):null,!((n=(e=c.payload)===null||e===void 0?void 0:e.user)===null||n===void 0)&&n.emails||c.actions.email_create.enabled?r(k.Fragment,{children:[r(ie,{children:h("headlines.profileEmails")}),r(H,{children:[r(la,{flowState:c,onState:g,checkedItemID:v,setCheckedItemID:m}),c.actions.email_create.enabled?r(da,{flowState:c,onState:g,checkedItemID:v,setCheckedItemID:m}):null]})]}):null,c.actions.password_create.enabled||c.actions.password_update.enabled?r(k.Fragment,{children:[r(ie,{children:h("headlines.profilePassword")}),r(H,{children:r(ha,{flowState:c,onState:g,checkedItemID:v,setCheckedItemID:m})})]}):null,o.enablePasskeys&&(!((i=(a=c.payload)===null||a===void 0?void 0:a.user)===null||i===void 0)&&i.passkeys||c.actions.webauthn_credential_create.enabled)?r(k.Fragment,{children:[r(ie,{children:h("headlines.profilePasskeys")}),r(H,{children:[r(fn,{flowState:c,onBack:w,onCredentialNameSubmit:x,onCredentialDelete:(b,P)=>Mt(void 0,void 0,void 0,function*(){b.preventDefault();let U=yield c.actions.webauthn_credential_delete.run({passkey_id:P},{dispatchAfterStateChangeEvent:!1});return g(U)}),credentials:c.payload.user.passkeys,checkedItemID:v,setCheckedItemID:m,allowCredentialDeletion:!!c.actions.webauthn_credential_delete.enabled,credentialType:"passkey"}),c.actions.webauthn_credential_create.enabled?r(gn,{flowState:c,onState:g,credentialType:"passkey",checkedItemID:v,setCheckedItemID:m}):null]})]}):null,!((s=c.payload.user.mfa_config)===null||s===void 0)&&s.security_keys_enabled?r(k.Fragment,{children:[r(ie,{children:h("headlines.securityKeys")}),r(H,{children:[r(fn,{onBack:w,flowState:c,onCredentialNameSubmit:x,onCredentialDelete:(b,P)=>Mt(void 0,void 0,void 0,function*(){b.preventDefault();let U=yield c.actions.security_key_delete.run({security_key_id:P},{dispatchAfterStateChangeEvent:!1});return g(U)}),credentials:c.payload.user.security_keys,checkedItemID:v,setCheckedItemID:m,allowCredentialDeletion:!!c.actions.security_key_delete.enabled,credentialType:"security-key"}),c.actions.security_key_create.enabled?r(gn,{flowState:c,onState:g,credentialType:"security-key",checkedItemID:v,setCheckedItemID:m}):null]})]}):null,!((d=c.payload.user.mfa_config)===null||d===void 0)&&d.totp_enabled?r(k.Fragment,{children:[r(ie,{children:h("headlines.authenticatorApp")}),r(H,{children:r(va,{onState:g,flowState:c,checkedItemID:v,setCheckedItemID:m})})]}):null,c.payload.sessions?r(k.Fragment,{children:[r(ie,{children:h("headlines.profileSessions")}),r(H,{children:r(fa,{flowState:c,onState:g,checkedItemID:v,setCheckedItemID:m})})]}):null,c.actions.account_delete.enabled?r(k.Fragment,{children:[r(oo,{}),r(H,{children:r(zo,{})}),r(H,{children:r(Y,Object.assign({onSubmit:b=>(b.preventDefault(),l(r(pa,{onBack:w,state:c})),Promise.resolve()),flowAction:c.actions.account_delete},{children:r(Q,Object.assign({dangerous:!0},{children:h("headlines.deleteAccount")}))}))})]}):null]})},ga=Hn,yn=({state:o,error:t})=>{let{t:e}=(0,f.useContext)(B.TranslateContext),{init:n,componentName:a}=(0,f.useContext)(Oe),[i,s]=(0,f.useState)(!1),d=(0,f.useCallback)(()=>n(a),[a,n]),{flowState:h}=xe(o);return(0,f.useEffect)(()=>(addEventListener("hankoAuthSuccess",d),()=>{removeEventListener("hankoAuthSuccess",d)}),[d]),r(be,{children:[r(ie,{children:e("headlines.error")}),r(we,{state:h,error:t}),r(Y,Object.assign({onSubmit:l=>{l.preventDefault(),s(!0),d()}},{children:r(Q,Object.assign({isLoading:i},{children:e("labels.continue")}))}))]})},bn=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},ma=o=>{let{t}=(0,f.useContext)(B.TranslateContext),{flowState:e}=xe(o.state),[n,a]=(0,f.useState)();return r(k.Fragment,{children:[r(be,{children:[r(ie,{children:t("headlines.createEmail")}),r(we,{state:e}),r(Y,Object.assign({onSubmit:i=>bn(void 0,void 0,void 0,function*(){return i.preventDefault(),e.actions.email_address_set.run({email:n})}),flowAction:e.actions.email_address_set},{children:[r(je,{type:"email",autoComplete:"email",autoCorrect:"off",flowInput:e.actions.email_address_set.inputs.email,onInput:i=>bn(void 0,void 0,void 0,function*(){i.target instanceof HTMLInputElement&&a(i.target.value)}),placeholder:t("labels.email"),pattern:"^.*[^0-9]+$",value:n}),r(Q,{children:t("labels.continue")})]}))]}),r(Se,Object.assign({hidden:!e.actions.skip.enabled},{children:[r("span",{hidden:!0}),r(G,Object.assign({flowAction:e.actions.skip,loadingSpinnerPosition:"left"},{children:t("labels.skip")}))]}))]})},wn=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},_a=o=>{let{t}=(0,f.useContext)(B.TranslateContext),{flowState:e}=xe(o.state),[n,a]=(0,f.useState)();return r(k.Fragment,{children:[r(be,{children:[r(ie,{children:t("headlines.createUsername")}),r(we,{state:e}),r(Y,Object.assign({flowAction:e.actions.username_create,onSubmit:i=>wn(void 0,void 0,void 0,function*(){return i.preventDefault(),e.actions.username_create.run({username:n})})},{children:[r(je,{type:"text",autoComplete:"username",autoCorrect:"off",flowInput:e.actions.username_create.inputs.username,onInput:i=>wn(void 0,void 0,void 0,function*(){i.target instanceof HTMLInputElement&&a(i.target.value)}),value:n,placeholder:t("labels.username")}),r(Q,{children:t("labels.continue")})]}))]}),r(Se,Object.assign({hidden:!e.actions.skip.enabled},{children:[r("span",{hidden:!0}),r(G,Object.assign({flowAction:e.actions.skip,loadingSpinnerPosition:"left"},{children:t("labels.skip")}))]}))]})},ya=o=>{let{t}=(0,f.useContext)(B.TranslateContext),{flowState:e}=xe(o.state);return r(k.Fragment,{children:[r(be,{children:[r(ie,{children:t("headlines.setupLoginMethod")}),r(we,{flowError:e==null?void 0:e.error}),r(H,{children:t("texts.selectLoginMethodForFutureLogins")}),r(Y,Object.assign({flowAction:e.actions.continue_to_passkey_registration},{children:r(Q,Object.assign({secondary:!0,icon:"passkey"},{children:t("labels.passkey")}))})),r(Y,Object.assign({flowAction:e.actions.continue_to_password_registration},{children:r(Q,Object.assign({secondary:!0,icon:"password"},{children:t("labels.password")}))}))]}),r(Se,Object.assign({hidden:!e.actions.back.enabled&&!e.actions.skip.enabled},{children:[r(G,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.back},{children:t("labels.back")})),r(G,Object.assign({loadingSpinnerPosition:"left",flowAction:e.actions.skip},{children:t("labels.skip")}))]}))]})},kn=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},ba=o=>{let{t}=(0,f.useContext)(B.TranslateContext),{flowState:e}=xe(o.state),[n,a]=(0,f.useState)([]),i=(0,f.useCallback)(s=>kn(void 0,void 0,void 0,function*(){return e.actions.otp_code_validate.run({otp_code:s})}),[e]);return(0,f.useEffect)(()=>{a([])},[e]),r(k.Fragment,{children:[r(be,{children:[r(ie,{children:t("headlines.otpLogin")}),r(we,{state:e}),r(H,{children:t("texts.otpLogin")}),r(Y,Object.assign({flowAction:e.actions.otp_code_validate,onSubmit:s=>kn(void 0,void 0,void 0,function*(){return s.preventDefault(),i(n.join(""))})},{children:[r(Wo,{onInput:s=>{if(a(s),s.filter(d=>d!=="").length===6)return i(s.join(""))},passcodeDigits:n,numberOfInputs:6}),r(Q,{children:t("labels.continue")})]}))]}),r(Se,Object.assign({hidden:!e.actions.continue_to_login_security_key.enabled},{children:r(G,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.continue_to_login_security_key},{children:t("labels.useAnotherMethod")}))}))]})},wa=o=>{let{t}=(0,f.useContext)(B.TranslateContext),{flowState:e}=xe(o.state);return r(k.Fragment,{children:[r(be,{children:[r(ie,{children:t("headlines.securityKeyLogin")}),r(we,{state:e}),r(H,{children:t("texts.securityKeyLogin")}),r(Y,Object.assign({flowAction:e.actions.webauthn_generate_request_options},{children:r(Q,Object.assign({autofocus:!0,icon:"securityKey"},{children:t("labels.securityKeyUse")}))}))]}),r(Se,Object.assign({hidden:!e.actions.continue_to_login_otp.enabled},{children:r(G,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.continue_to_login_otp},{children:t("labels.useAnotherMethod")}))}))]})},ka=o=>{let{t}=(0,f.useContext)(B.TranslateContext),{flowState:e}=xe(o.state),n=(0,f.useMemo)(()=>{let{actions:a}=e;return a.continue_to_security_key_creation.enabled&&!a.continue_to_otp_secret_creation.enabled?a.continue_to_security_key_creation:!a.continue_to_security_key_creation.enabled&&a.continue_to_otp_secret_creation.enabled?a.continue_to_otp_secret_creation:void 0},[e]);return r(k.Fragment,{children:[r(be,{children:[r(ie,{children:t("headlines.mfaSetUp")}),r(we,{flowError:e==null?void 0:e.error}),r(H,{children:t("texts.mfaSetUp")}),n?r(Y,Object.assign({flowAction:n},{children:r(Q,{children:t("labels.continue")})})):r(k.Fragment,{children:[r(Y,Object.assign({flowAction:e.actions.continue_to_security_key_creation},{children:r(Q,Object.assign({secondary:!0,icon:"securityKey"},{children:t("labels.securityKey")}))})),r(Y,Object.assign({flowAction:e.actions.continue_to_otp_secret_creation},{children:r(Q,Object.assign({secondary:!0,icon:"qrCodeScanner"},{children:t("labels.authenticatorApp")}))}))]})]}),r(Se,{children:[r(G,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.back},{children:t("labels.back")})),r(G,Object.assign({loadingSpinnerPosition:"left",flowAction:e.actions.skip},{children:t("labels.skip")}))]})]})},Kt=K(560),ft={};ft.setAttributes=Ve(),ft.insert=o=>{window._hankoStyle=o},ft.domAPI=Ze(),ft.insertStyleElement=Je(),$e()(Kt.A,ft);var xa=Kt.A&&Kt.A.locals?Kt.A.locals:void 0,Sa=({children:o,text:t})=>{let{t:e}=(0,f.useContext)(B.TranslateContext),[n,a]=(0,f.useState)(!1);return r("section",Object.assign({className:kt.clipboardContainer},{children:[r("div",{children:[o,"\xA0"]}),r("div",Object.assign({className:kt.clipboardIcon,onClick:i=>{return s=void 0,d=void 0,l=function*(){i.preventDefault();try{yield navigator.clipboard.writeText(t),a(!0),setTimeout(()=>a(!1),1500)}catch(c){console.error("Failed to copy: ",c)}},new((h=void 0)||(h=Promise))(function(c,v){function m(w){try{x(l.next(w))}catch(b){v(b)}}function g(w){try{x(l.throw(w))}catch(b){v(b)}}function x(w){var b;w.done?c(w.value):(b=w.value,b instanceof h?b:new h(function(P){P(b)})).then(m,g)}x((l=l.apply(s,d||[])).next())});var s,d,h,l}},{children:n?r("span",{children:["- ",e("labels.copied")]}):r(xt,{name:"copy",secondary:!0,size:13})}))]}))},Ca=({src:o,secret:t})=>{let{t:e}=(0,f.useContext)(B.TranslateContext);return r("div",Object.assign({className:xa.otpCreationDetails},{children:[r("img",{alt:"QR-Code",src:o}),r(oo,{}),r(Sa,Object.assign({text:t},{children:e("texts.otpSecretKey")})),r("div",{children:t})]}))},xn=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},Oa=o=>{let{t}=(0,f.useContext)(B.TranslateContext),{flowState:e}=xe(o.state),[n,a]=(0,f.useState)([]),i=(0,f.useCallback)(s=>xn(void 0,void 0,void 0,function*(){return e.actions.otp_code_verify.run({otp_code:s})}),[e]);return(0,f.useEffect)(()=>{var s;((s=e.error)===null||s===void 0?void 0:s.code)==="passcode_invalid"&&a([])},[e]),r(k.Fragment,{children:[r(be,{children:[r(ie,{children:t("headlines.otpSetUp")}),r(we,{state:e}),r(H,{children:t("texts.otpScanQRCode")}),r(Ca,{src:e.payload.otp_image_source,secret:e.payload.otp_secret}),r(H,{children:t("texts.otpEnterVerificationCode")}),r(Y,Object.assign({flowAction:e.actions.otp_code_verify,onSubmit:s=>xn(void 0,void 0,void 0,function*(){return s.preventDefault(),i(n.join(""))})},{children:[r(Wo,{onInput:s=>{if(a(s),s.filter(d=>d!=="").length===6)return i(s.join(""))},passcodeDigits:n,numberOfInputs:6}),r(Q,{children:t("labels.continue")})]}))]}),r(Se,{children:r(G,Object.assign({flowAction:e.actions.back,loadingSpinnerPosition:"right"},{children:t("labels.back")}))})]})},Aa=o=>{let{t}=(0,f.useContext)(B.TranslateContext),{flowState:e}=xe(o.state);return r(k.Fragment,{children:[r(be,{children:[r(ie,{children:t("headlines.securityKeySetUp")}),r(we,{state:e}),r(H,{children:t("texts.securityKeySetUp")}),r(Y,Object.assign({flowAction:e.actions.webauthn_generate_creation_options},{children:r(Q,Object.assign({autofocus:!0,icon:"securityKey"},{children:t("labels.createSecurityKey")}))}))]}),r(Se,Object.assign({hidden:!e.actions.back.enabled},{children:r(G,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.back},{children:t("labels.back")}))}))]})},Ia=o=>{let{t}=(0,f.useContext)(B.TranslateContext),{flowState:e}=xe(o.state);return r(k.Fragment,{children:[r(be,{children:[r(ie,{children:t("headlines.trustDevice")}),r(we,{flowError:e==null?void 0:e.error}),r(H,{children:t("texts.trustDevice")}),r(Y,Object.assign({flowAction:e.actions.trust_device},{children:r(Q,{children:t("labels.trustDevice")})}))]}),r(Se,{children:[r(G,Object.assign({flowAction:e.actions.back,loadingSpinnerPosition:"right"},{children:t("labels.back")})),r(G,Object.assign({flowAction:e.actions.skip,loadingSpinnerPosition:"left"},{children:t("labels.skip")}))]})]})},Sn=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},Oe=(0,k.createContext)(null),Ea=o=>{var t,{lang:e,prefilledEmail:n,prefilledUsername:a,globalOptions:i,createWebauthnAbortSignal:s}=o,d=function(j,ue){var C={};for(var S in j)Object.prototype.hasOwnProperty.call(j,S)&&ue.indexOf(S)<0&&(C[S]=j[S]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function"){var I=0;for(S=Object.getOwnPropertySymbols(j);I<S.length;I++)ue.indexOf(S[I])<0&&Object.prototype.propertyIsEnumerable.call(j,S[I])&&(C[S[I]]=j[S[I]])}return C}(o,["lang","prefilledEmail","prefilledUsername","globalOptions","createWebauthnAbortSignal"]);let{hanko:h,injectStyles:l,hidePasskeyButtonOnLogin:c,translations:v,translationsLocation:m,fallbackLanguage:g}=i;h.setLang((e==null?void 0:e.toString())||g);let x=(0,f.useRef)(null),w=(0,f.useMemo)(()=>`${i.storageKey}_last_login`,[i.storageKey]),[b,P]=(0,f.useState)(d.componentName),[U,T]=(0,f.useState)((t=d.mode)!==null&&t!==void 0?t:"login"),D=(0,f.useMemo)(()=>({auth:U,login:"login",registration:"registration",profile:"profile",events:null}),[U]),F=(0,f.useMemo)(()=>r(Jr,{}),[]),[N,L]=(0,f.useState)(F),[,ne]=(0,f.useState)(h),[te,X]=(0,f.useState)(),[R,ce]=(0,f.useState)({email:n,username:a}),ke=function(j,ue){var C;(C=x.current)===null||C===void 0||C.dispatchEvent(new CustomEvent(j,{detail:ue,bubbles:!1,composed:!0}))},he=(0,f.useCallback)(j=>D[b]==j.flowName,[D,b,U]),Ce=j=>{L(r(yn,{error:j instanceof ye?j:new Ge(j)}))};(0,f.useMemo)(()=>h.onBeforeStateChange(({state:j})=>{he(j)&&ce(ue=>Object.assign(Object.assign({},ue),{isDisabled:!0,error:void 0}))}),[h,he]),(0,f.useEffect)(()=>h.onAfterStateChange(({state:j})=>Sn(void 0,void 0,void 0,function*(){var ue;if(he(j))switch(["onboarding_verify_passkey_attestation","webauthn_credential_verification","login_passkey","thirdparty"].includes(j.name)||ce(C=>Object.assign(Object.assign({},C),{isDisabled:!1})),j.name){case"login_init":L(r(Qr,{state:j})),j.passkeyAutofillActivation();break;case"passcode_confirmation":L(r(ta,{state:j}));break;case"login_otp":L(r(ba,{state:j}));break;case"onboarding_create_passkey":L(r(oa,{state:j}));break;case"login_password":L(r(na,{state:j}));break;case"login_password_recovery":L(r(ra,{state:j}));break;case"login_security_key":L(r(wa,{state:j}));break;case"mfa_method_chooser":L(r(ka,{state:j}));break;case"mfa_otp_secret_creation":L(r(Oa,{state:j}));break;case"mfa_security_key_creation":L(r(Aa,{state:j}));break;case"login_method_chooser":L(r(aa,{state:j}));break;case"registration_init":L(r(ia,{state:j}));break;case"password_creation":L(r(sa,{state:j}));break;case"success":!((ue=j.payload)===null||ue===void 0)&&ue.last_login&&localStorage.setItem(w,JSON.stringify(j.payload.last_login)),j.autoStep();break;case"profile_init":L(r(ga,{state:j,enablePasskeys:i.enablePasskeys}));break;case"error":L(r(yn,{state:j}));break;case"onboarding_email":L(r(ma,{state:j}));break;case"onboarding_username":L(r(_a,{state:j}));break;case"credential_onboarding_chooser":L(r(ya,{state:j}));break;case"device_trust":L(r(Ia,{state:j}))}})),[b,D]);let re=(0,f.useCallback)(j=>Sn(void 0,void 0,void 0,function*(){ce(S=>Object.assign(Object.assign({},S),{isDisabled:!0}));let ue=localStorage.getItem(w);ue&&X(JSON.parse(ue));let C={excludeAutoSteps:["success"],cacheKey:"hanko-auth-flow-state",dispatchAfterStateChangeEvent:!1};if(new URLSearchParams(window.location.search).get("saml_hint")==="idp_initiated")T("token_exchange"),yield h.createState("token_exchange",Object.assign(Object.assign({},C),{dispatchAfterStateChangeEvent:!0}));else{let S=yield h.createState(j,C);T(S.flowName),setTimeout(()=>S.dispatchAfterStateChangeEvent(),500)}}),[]),de=(0,f.useCallback)(j=>{P(j);let ue=D[j];ue&&re(ue).catch(Ce)},[]);return(0,f.useEffect)(()=>de(b),[]),(0,f.useEffect)(()=>{h.onUserDeleted(()=>{ke("onUserDeleted")}),h.onSessionCreated(j=>{ke("onSessionCreated",j)}),h.onSessionExpired(()=>{ke("onSessionExpired")}),h.onUserLoggedOut(()=>{ke("onUserLoggedOut")}),h.onBeforeStateChange(j=>{ke("onBeforeStateChange",j)}),h.onAfterStateChange(j=>{ke("onAfterStateChange",j)})},[h]),(0,f.useMemo)(()=>{let j=()=>{de(b)};["auth","login","registration"].includes(b)?(h.onUserLoggedOut(j),h.onSessionExpired(j),h.onUserDeleted(j)):b==="profile"&&h.onSessionCreated(j)},[b,h,de]),r(Oe.Provider,Object.assign({value:{init:de,initialComponentName:d.componentName,setUIState:ce,uiState:R,hanko:h,setHanko:ne,lang:(e==null?void 0:e.toString())||g,prefilledEmail:n,prefilledUsername:a,componentName:b,setComponentName:P,hidePasskeyButtonOnLogin:c,page:N,setPage:L,lastLogin:te,isOwnFlow:he}},{children:r(B.TranslateProvider,Object.assign({translations:v,fallbackLang:g,root:m},{children:r(Pr,Object.assign({ref:x},{children:b!=="events"?r(k.Fragment,{children:[l?r("style",{dangerouslySetInnerHTML:{__html:window._hankoStyle.innerHTML}}):null,N]}):null}))}))}))},ja={en:K(6).en},Bn=function(o,t,e,n){return new(e||(e=Promise))(function(a,i){function s(l){try{h(n.next(l))}catch(c){i(c)}}function d(l){try{h(n.throw(l))}catch(c){i(c)}}function h(l){var c;l.done?a(l.value):(c=l.value,c instanceof e?c:new e(function(v){v(c)})).then(s,d)}h((n=n.apply(o,t||[])).next())})},Ke={},Ct=(o,t)=>r(Ea,Object.assign({componentName:o,globalOptions:Ke,createWebauthnAbortSignal:Ua},t)),Pa=o=>Ct("auth",o),Ta=o=>Ct("login",o),Da=o=>Ct("registration",o),Ma=o=>Ct("profile",o),La=o=>Ct("events",o),Lt=new AbortController,Ua=()=>(Lt&&Lt.abort(),Lt=new AbortController,Lt.signal),vt=({tagName:o,entryComponent:t,shadow:e=!0,observedAttributes:n})=>Bn(void 0,void 0,void 0,function*(){customElements.get(o)||function(a,i,s,d){function h(){var l=Reflect.construct(HTMLElement,[],h);return l._vdomComponent=a,l._root=d&&d.shadow?l.attachShadow({mode:"open"}):l,l}(h.prototype=Object.create(HTMLElement.prototype)).constructor=h,h.prototype.connectedCallback=cr,h.prototype.attributeChangedCallback=dr,h.prototype.disconnectedCallback=hr,s=s||a.observedAttributes||Object.keys(a.propTypes||{}),h.observedAttributes=s,s.forEach(function(l){Object.defineProperty(h.prototype,l,{get:function(){var c,v,m,g;return(c=(v=this._vdom)==null||(m=v.props)==null?void 0:m[l])!=null?c:(g=this._props)==null?void 0:g[l]},set:function(c){this._vdom?this.attributeChangedCallback(l,null,c):(this._props||(this._props={}),this._props[l]=c,this.connectedCallback());var v=typeof c;c!=null&&v!=="string"&&v!=="boolean"&&v!=="number"||this.setAttribute(l,c)}})}),customElements.define(i||a.tagName||a.displayName||a.name,h)}(t,o,n,{shadow:e})}),Na=(o,t={})=>Bn(void 0,void 0,void 0,function*(){let e=["api","lang","prefilled-email","entry","mode"];return t=Object.assign({shadow:!0,injectStyles:!0,enablePasskeys:!0,hidePasskeyButtonOnLogin:!1,translations:null,translationsLocation:"/i18n",fallbackLanguage:"en",storageKey:"hanko",sessionCheckInterval:3e4},t),Ke.hanko=new eo(o,{cookieName:t.storageKey,cookieDomain:t.cookieDomain,cookieSameSite:t.cookieSameSite,localStorageKey:t.storageKey,sessionCheckInterval:t.sessionCheckInterval,sessionTokenLocation:t.sessionTokenLocation}),Ke.injectStyles=t.injectStyles,Ke.enablePasskeys=t.enablePasskeys,Ke.hidePasskeyButtonOnLogin=t.hidePasskeyButtonOnLogin,Ke.translations=t.translations||ja,Ke.translationsLocation=t.translationsLocation,Ke.fallbackLanguage=t.fallbackLanguage,Ke.storageKey=t.storageKey,yield Promise.all([vt(Object.assign(Object.assign({},t),{tagName:"hanko-auth",entryComponent:Pa,observedAttributes:e})),vt(Object.assign(Object.assign({},t),{tagName:"hanko-login",entryComponent:Ta,observedAttributes:e})),vt(Object.assign(Object.assign({},t),{tagName:"hanko-registration",entryComponent:Da,observedAttributes:e})),vt(Object.assign(Object.assign({},t),{tagName:"hanko-profile",entryComponent:Ma,observedAttributes:e.filter(n=>["api","lang"].includes(n))})),vt(Object.assign(Object.assign({},t),{tagName:"hanko-events",entryComponent:La,observedAttributes:[]}))]),{hanko:Ke.hanko}}),Ha=V.rc,Ba=V.Kj,Ra=V.fK,qa=V.tJ,Ka=V.Z7,Ga=V.qQ,$a=V.I4,Za=V.O8,Va=V.Qq,Ja=V.ku,Ya=V.ls,Qa=V.bO,Xa=V.yv,ei=V.AT,ti=V.m_,oi=V.KG,ni=V.Wj,ri=V.DH,ai=V.kf,ii=V.Uw,si=V.oY,li=V.Wg,ci=V.AC,di=V.D_,hi=V.jx,ui=V.nX,pi=V.Nx,fi=V.Sd,Rn=V.kz,vi=V.fX,gi=V.qA,mi=V.tz,_i=V.gN;var qn='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="256" width="256" xmlns:xlink="http://www.w3.org/1999/xlink">%0A <defs>%0A <linearGradient id="c">%0A <stop stop-color="%232d3335" offset="0"/>%0A <stop stop-color="%234c464a" offset=".5"/>%0A <stop stop-color="%23384042" offset="1"/>%0A </linearGradient>%0A <linearGradient id="a">%0A <stop offset="0"/>%0A <stop stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="u" y2="-179.97" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="9" y1="-94.672" x1="94.25"/>%0A <linearGradient id="v" y2="-30.438" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="35.75" y1="-114.44" x1="50.75"/>%0A <linearGradient id="w" y2="-74.625" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="115.25" y1="-163.12" x1="77.625"/>%0A <linearGradient id="x" y2="7.063" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="125.72" y1="-50.438" x1="56.5"/>%0A <linearGradient id="y" y2="-146.8" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="180.75" y1="-163.3" x1="35"/>%0A <linearGradient id="z" y2="-41.609" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="179" y1="-141.11" x1="57"/>%0A <linearGradient id="A" y2="39.75" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="208.25" y1="-26.5" x1="156"/>%0A <linearGradient id="B" y2="-77.297" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="235" y1="-169.3" x1="142.75"/>%0A <linearGradient id="m" y2="-113.72" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="166.5" y1="-161.36" x1="214.25"/>%0A <linearGradient id="b">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="n" y2="-62.469" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="57.656" y1="-126.5" x1="53.25"/>%0A <linearGradient id="o" y2="-17.125" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="75.719" y1="6.625" x1="39.5"/>%0A <linearGradient id="p" y2="-121.44" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="85.312" y1="-162.34" x1="102"/>%0A <linearGradient id="q" y2="-14.75" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="63.5" y1="-78.094" x1="117.75"/>%0A <linearGradient id="r" y2="-60.75" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="133.94" y1="-125.12" x1="180.69"/>%0A <linearGradient id="s" y2="33.375" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="130.22" y1="-23.5" x1="170.75"/>%0A <linearGradient id="t" y2="-5.656" xlink:href="%23b" gradientUnits="userSpaceOnUse" y1="-76" x2="181.75" x1="213.5"/>%0A <linearGradient id="l" y2="-213.25" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="9" gradientTransform="translate(0 -10)" y1="72.064" x1="210.17"/>%0A <linearGradient id="M" y2="150.38" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="133" gradientTransform="matrix(-1 0 0 1 46 0)" y1="150.38" x1="123"/>%0A <linearGradient id="L" y2="143.36" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="130.88" gradientTransform="translate(-210)" y1="134.36" x1="128"/>%0A <linearGradient id="O" y2="150.38" gradientUnits="userSpaceOnUse" y1="150.38" gradientTransform="matrix(-2 0 0 1.7699 174 -86.65)" x2="133" x1="123">%0A <stop stop-color="%232d3335" offset="0"/>%0A <stop stop-color="%234c464a" offset=".5"/>%0A <stop stop-color="%23384042" offset="1"/>%0A </linearGradient>%0A <linearGradient id="N" y2="186.5" gradientUnits="userSpaceOnUse" x2="136" gradientTransform="translate(-210)" y1="186.5" x1="120">%0A <stop stop-color="%23f9e295" offset="0"/>%0A <stop stop-color="%23f7dd84" offset=".125"/>%0A <stop stop-color="%23fff" offset=".206"/>%0A <stop stop-color="%23f4ce51" offset=".301"/>%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0A <stop stop-color="%23efbb0e" offset="1"/>%0A </linearGradient>%0A <linearGradient id="P" y2="186.5" gradientUnits="userSpaceOnUse" y1="186.5" gradientTransform="translate(-210 67)" x2="136" x1="120">%0A <stop stop-color="%23f9e295" offset="0"/>%0A <stop stop-color="%23f7dd84" offset=".125"/>%0A <stop stop-color="%23fff" offset=".206"/>%0A <stop stop-color="%23f4ce51" offset=".301"/>%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0A <stop stop-color="%23efbb0e" offset="1"/>%0A </linearGradient>%0A <linearGradient id="J" y2="186.5" gradientUnits="userSpaceOnUse" x2="136" gradientTransform="rotate(45 104.976 51.258) scale(1.39197)" y1="186.5" x1="120">%0A <stop stop-color="%23f9e295" offset="0"/>%0A <stop stop-color="%23f7dd84" offset=".125"/>%0A <stop stop-color="%23fff" offset=".206"/>%0A <stop stop-color="%23f4ce51" offset=".301"/>%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0A <stop stop-color="%23efbb0e" offset="1"/>%0A </linearGradient>%0A <linearGradient id="U" y2="150.38" gradientUnits="userSpaceOnUse" x2="133" gradientTransform="rotate(-135 332.789 -39.72) scale(2.7839 -2.4637)" y1="150.38" x1="123">%0A <stop stop-color="%232d3335" offset="0"/>%0A <stop stop-color="%234c464a" offset=".5"/>%0A <stop stop-color="%23384042" offset="1"/>%0A </linearGradient>%0A <linearGradient id="T" y2="186.5" gradientUnits="userSpaceOnUse" x2="136" gradientTransform="rotate(45 217.552 97.892) scale(1.39197)" y1="186.5" x1="120">%0A <stop stop-color="%23f9e295" offset="0"/>%0A <stop stop-color="%23f7dd84" offset=".125"/>%0A <stop stop-color="%23fff" offset=".206"/>%0A <stop stop-color="%23f4ce51" offset=".301"/>%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0A <stop stop-color="%23efbb0e" offset="1"/>%0A </linearGradient>%0A <linearGradient id="S" y2="150.38" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="133" gradientTransform="scale(-1.39197 1.39197) rotate(-45 -28.292 379.342)" y1="150.38" x1="123"/>%0A <linearGradient id="R" y2="143.36" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="130.88" gradientTransform="rotate(45 217.552 97.892) scale(1.39197)" y1="134.36" x1="128"/>%0A <linearGradient id="V" y2="150.38" xlink:href="%23a" gradientUnits="userSpaceOnUse" y1="167.73" gradientTransform="rotate(-135 332.789 -39.72) scale(2.7839 -2.4637)" x2="133" x1="108"/>%0A <linearGradient id="W" y2="137.2" gradientUnits="userSpaceOnUse" x2="179.96" gradientTransform="translate(0 -10)" y1="29.815" x1="126.64">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="Z" y2="137.2" gradientUnits="userSpaceOnUse" y1="29.815" gradientTransform="matrix(-.50295 .1984 .1972 -.43254 276.16 123.42)" x2="179.96" x1="126.64">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="G" y2="-213.25" gradientUnits="userSpaceOnUse" x2="9" gradientTransform="translate(0 192)" y1="72.064" x1="210.17">%0A <stop offset="0"/>%0A <stop stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="h" y2="4.302" gradientUnits="userSpaceOnUse" x2="122" y1="245.45" x1="122">%0A <stop offset="0"/>%0A <stop stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="e" y2="-213.25" gradientUnits="userSpaceOnUse" x2="9" gradientTransform="matrix(1 -.08088 0 1 0 203.06)" y1="72.064" x1="210.17">%0A <stop offset="0"/>%0A <stop stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <clipPath id="j" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="k" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="i" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="D" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="E" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="F" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="C" clipPathUnits="userSpaceOnUse">%0A <path d="M123.62 141.06c20.832 20.243 54.607 19.289 75.439-2.132s20.832-55.196 0-75.439-54.607-19.289-75.439 2.132-20.832 55.196 0 75.439z" fill="url(%23d)"/>%0A </clipPath>%0A <clipPath id="H" clipPathUnits="userSpaceOnUse">%0A <path opacity=".039" d="M9 22.578s7.5 12.393 11.75 26.8C25 63.784 27 74.373 27 74.373s-5.5 13.195-8.25 25.417C16 112.01 13 123.25 13 123.25s5.75 15.535 9.25 29.252S26 176.449 26 176.449s-4 10.574-7.5 24.857-5 31.154-5 31.154 9.25-2.748 28.5-1.055 32.25 3.392 32.25 3.392 12.75-3.782 24-8.191 16.25-7.815 16.25-7.815 5.5.055 22.5 4.43c17 4.376 29.25 6.135 29.25 6.135s13-3.802 26-7.853 26.5-10.143 26.5-10.143-.75-4.94 4.25-24.844 8.75-28.708 8.75-28.708-.514-4.455-3.75-19.447c-1.75-8.108-2.25-4.068-2.25-4.068s16.264-26.155 16.5-40.334c.25-15.02-7.25-36.413-7.25-36.413s-4.75-14.866-7.5-29.143c-2.75-14.278-8.25-25.083-8.25-25.083S195 14.281 187.5 16.388c-7.5 2.107-21 6.948-21 6.948s-9.75-3.461-22-6.72c-12.25-3.26-29.75-3.094-29.75-3.094s-3.25 3.763-22 9.78c-18.75 6.016-27.5 7.973-27.5 7.973s-18.5-7.504-31.5-8.952-24-.06-24.75.252z" fill="url(%23e)"/>%0A </clipPath>%0A <radialGradient id="K" gradientUnits="userSpaceOnUse" cy="86" cx="128" gradientTransform="matrix(1.0213 0 0 -1.0213 -212.72 173.83)" r="47">%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset="0"/>%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset=".839"/>%0A <stop stop-color="%23d0e9f2" stop-opacity=".282" offset=".943"/>%0A <stop stop-color="%23d0e9f2" offset="1"/>%0A </radialGradient>%0A <radialGradient id="Q" gradientUnits="userSpaceOnUse" cy="86" cx="128" gradientTransform="scale(1.4216 -1.4216) rotate(-45 -51.091 19.464)" r="47">%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset="0"/>%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset=".839"/>%0A <stop stop-color="%23d0e9f2" stop-opacity=".282" offset=".943"/>%0A <stop stop-color="%23d0e9f2" offset="1"/>%0A </radialGradient>%0A <radialGradient id="Y" gradientUnits="userSpaceOnUse" cy="72.588" cx="159.61" gradientTransform="matrix(1.2125 0 0 .83915 -46.348 24.528)" r="38.417">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity=".93" offset=".5"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </radialGradient>%0A <radialGradient id="X" gradientUnits="userSpaceOnUse" cx="159.61" cy="72.588" r="38.417" gradientTransform="matrix(1.2125 0 0 .83915 -45.92 25.814)">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </radialGradient>%0A <radialGradient id="d" gradientUnits="userSpaceOnUse" cy="86" cx="128" gradientTransform="matrix(.80254 .77986 .80254 -.82522 -10.402 73.423)" r="47">%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset="0"/>%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset=".839"/>%0A <stop stop-color="%23d0e9f2" stop-opacity=".282" offset=".943"/>%0A <stop stop-color="%23d0e9f2" offset="1"/>%0A </radialGradient>%0A <filter id="I">%0A <feGaussianBlur stdDeviation="4.287"/>%0A </filter>%0A <filter id="f">%0A <feGaussianBlur stdDeviation="6.311"/>%0A </filter>%0A <filter id="g">%0A <feGaussianBlur stdDeviation="4.457"/>%0A </filter>%0A </defs>%0A <path opacity=".7" d="M174.28 35.875c-17.6 0-35.19 6.639-48.72 19.906-.16.164-.33.303-.5.469-22.05 22.056-26.206 55.25-12.47 81.5l-2.28 1.63c2.25 4.23 4.94 8.3 8.1 12.12l-13.32 13.34c-1.34-.58-2.78-1.03-4.56-1.37l-2.842 2.84c-1.11-.48-2.139-.81-3.063-.87L30.5 229.56c-.037 1.1.226 2.19.656 3.28l-.531.54-1.094 1.09c.716 3.74 2.011 6.82 5.469 10.28s6.42 4.63 10.281 5.47l1.094-1.1.719-.71c1.088.46 2.13.78 3.094.84l64.122-64.13c-.24-.97-.62-1.93-1.03-2.9l3-3c-.25-1.73-.68-3.2-1.31-4.6l13.28-13.28c3.82 3.16 7.89 5.85 12.13 8.1l1.62-2.28c26.25 13.74 59.44 9.58 81.5-12.47.17-.17.31-.34.47-.5 26.69-27.22 26.55-70.923-.47-97.94-13.59-13.59-31.41-20.375-49.22-20.375zm-.5 3.281c.11.002.21-.002.31 0a67.89 67.89 0 0 1 5.72.375c.1.01.19.021.28.031l.29.032c.14.017.29.044.43.062.9.11 1.8.228 2.69.375.62.102 1.23.224 1.84.344.35.066.69.116 1.04.187.72.153 1.43.324 2.15.5.31.077.63.138.94.219.07.019.14.043.22.063.95.253 1.89.516 2.84.812.07.023.15.04.22.063.95.3 1.91.625 2.84.969.06.019.11.042.16.062.95.352 1.9.728 2.84 1.125.06.022.11.041.16.063.94.4 1.88.836 2.81 1.281l.13.062c.93.451 1.86.91 2.78 1.407.03.017.06.044.09.062.93.503 1.84 1.013 2.75 1.562.03.02.06.044.1.063.9.551 1.8 1.122 2.68 1.719.55.369 1.09.769 1.63 1.156.36.261.73.512 1.09.781.02.014.05.018.06.031.88.656 1.75 1.36 2.6 2.063a70.875 70.875 0 0 1 5.06 4.594c1.62 1.62 3.14 3.3 4.56 5.031.01.011.03.02.03.031.71.855 1.41 1.715 2.07 2.594.28.379.54.773.81 1.156.37.517.74 1.038 1.09 1.563.02.024.05.038.07.062.59.89 1.16 1.778 1.71 2.688.02.032.05.061.07.094a75.45 75.45 0 0 1 1.56 2.75c.02.032.04.06.06.093.5.921.96 1.844 1.41 2.781l.06.126c.45.929.88 1.868 1.28 2.812l.06.156c.4.936.78 1.895 1.13 2.844l.06.156c.35.949.67 1.885.97 2.844l.06.219c.3.941.56 1.894.82 2.843l.06.219c.08.31.14.627.22.938.17.72.35 1.432.5 2.156.07.342.12.688.18 1.031.12.617.25 1.225.35 1.844.15.893.26 1.791.37 2.688.02.145.05.291.07.437l.03.281.03.282c.1.952.19 1.912.25 2.872.06.94.11 1.9.12 2.85.01.1 0 .2 0 .31.02 1.05.01 2.1-.03 3.15-.03.94-.08 1.86-.15 2.79-.01.12-.02.25-.04.37-.07.92-.16 1.84-.28 2.75-.12.96-.27 1.93-.43 2.88-.02.08-.02.16-.04.25-.02.12-.03.25-.06.37-.16.91-.36 1.82-.56 2.72-.03.13-.06.27-.09.41a86.1 86.1 0 0 1-.69 2.65c-.17.59-.35 1.17-.53 1.75-.18.57-.34 1.13-.53 1.69-.3.86-.61 1.71-.94 2.56-.06.16-.13.32-.19.47-.04.11-.08.23-.12.34-.36.88-.73 1.73-1.13 2.6-.38.82-.77 1.63-1.19 2.44-.08.15-.16.31-.25.46-.41.8-.83 1.6-1.28 2.38-.09.17-.18.34-.28.5-.2.34-.42.66-.62 1-.37.59-.75 1.17-1.13 1.75 0 .01.01.02 0 .03-.49.75-1 1.49-1.53 2.22-.46.64-.95 1.25-1.44 1.87-.19.26-.36.53-.56.79l-.41.5c-.16.2-.33.39-.5.59-.55.67-1.13 1.32-1.72 1.97-.6.67-1.23 1.35-1.87 2-.16.16-.31.34-.47.5-21.13 21.13-52.26 24.49-77.19 11.15l.13-.18c-3.71-1.9-7.26-4.14-10.63-6.78-.54-.43-1.06-.87-1.59-1.32-.51-.43-1.03-.86-1.53-1.31-.09-.08-.19-.16-.28-.25a86.97 86.97 0 0 1-2.41-2.31c-.79-.8-1.56-1.59-2.31-2.41-.09-.09-.17-.19-.25-.28-.45-.5-.88-1.02-1.31-1.53-.45-.53-.89-1.05-1.32-1.59a65.831 65.831 0 0 1-6.78-10.63l-.19.13c-13.33-24.93-9.97-56.061 11.16-77.191.16-.163.34-.308.5-.469.65-.64 1.33-1.269 2-1.875.65-.588 1.3-1.162 1.97-1.719.27-.227.54-.465.81-.687.35-.278.72-.512 1.06-.782.63-.483 1.24-.98 1.88-1.437.74-.53 1.5-1.036 2.25-1.531.58-.383 1.16-.764 1.75-1.125.45-.274.89-.551 1.34-.813.69-.395 1.37-.757 2.07-1.125a61.343 61.343 0 0 1 3.37-1.687c.87-.397 1.72-.769 2.59-1.125.16-.062.32-.096.47-.157.97-.384 1.93-.758 2.91-1.093.56-.192 1.12-.356 1.69-.532.58-.181 1.16-.367 1.75-.531.88-.246 1.77-.48 2.65-.687.07-.017.15-.015.22-.032.42-.095.84-.193 1.25-.281.67-.141 1.36-.287 2.03-.406.09-.015.17-.017.25-.031.95-.164 1.92-.317 2.88-.438a65.183 65.183 0 0 1 9.06-.5z" transform="matrix(1 .06864 0 .8487 0 26.913)" filter="url(%23f)" fill="%232d3335"/>%0A <path opacity=".5" d="M9 17.25s7.5 11 11.75 25.75S27 68.5 27 68.5s-5.5 12.75-8.25 24.75-5.75 25-5.75 25 5.75 16 9.25 30S26 170.5 26 170.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-2.5-3.75-17.75S218 121 218 121s1.75-12.5 6.75-25.75S235 68.5 235 68.5s-4.75-15.25-7.5-29.75S219.25 15 219.25 15 195 24 187.5 25.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z" transform="matrix(1 0 0 .84657 0 27.66)" filter="url(%23g)" fill="url(%23h)"/>%0A <path fill="%23ceeeab" d="M9 2.25s7.5 13 11.75 27.75S27 55.5 27 55.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 157.5 26 157.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 106 218 106s1.75-10.5 6.75-23.75S235 55.5 235 55.5s-4.75-15.25-7.5-29.75S219.25 0 219.25 0 195 9 187.5 10.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5S9.75 2 9 2.25z"/>%0A <g transform="translate(0 -10)" clip-path="url(%23i)">%0A <path fill="%23a6dd8b" d="m110.75 5.5-4.25 7c-.75 9-2.25 13.75-8.5 16.5s-12.25 3.5-11 7.5 13 9.25 14.25 13 8.25 1.75 11 7 2 15.25-3.75 17.25-17.5.5-20.25 9.5-4.75 10.5-9 12.75-7.25 10.5-3.5 16.5 12.25-1.25 15-6.5S98 97.25 98 97.25h23.75l59-1.75 3.25-3.75s3.25 4 2.75 8.75-3.75 14.75.25 17.25 19.5-2 24-7-4.75-28.25-10.5-29.5-18.5-1.75-17-7 11.75 4.5 17.25 3.25 16.75-21 12-25.25-24.25-5.25-25.75-8 21-8 22.25-11-2.5-7.25-6.25-8.5S189 41 182 40.5s-20 5.75-17.25 11.5-6 11-14.5 6.5-24.75-13-21.75-24S150 15.75 150 15.75L110.75 5.5zM97.188 112.72c-1.595.15-4.469 4.69-4.938 7.03-.5 2.5-3.25 6.75-3.5 12.25s4.75 6.75 8.75 6.5 2.75-6.75 2-15c-.25 0-.5-10.25-2-10.75-.094-.03-.206-.04-.312-.03zm92.722 51.66c-6.34.29-6.63 7.46-7.41 8.87-1.25 2.25 2.25 13.75 2 18s-4.75 5.25-9.5 9.75.5 16 11.25 31l44.75 1.25-1-35s4.75-4.25-20.75-24.25c-9.56-7.5-15.54-9.8-19.34-9.62zM39.94 180.91c-4.03-.11-8.282 5.71-9.688 7.59-1.5 2-6.25 5-17 9.5l-14.5 34.25 53 4.25s1.75-11-4.25-15.75-17.25-5.75-18.25-13.25 9.25-10 13.75-14.25 2-11.25-2.25-12.25a3.728 3.728 0 0 0-.812-.09z"/>%0A </g>%0A <path fill="%23aac3e7" d="M158.53 75.344c-4.76-.015-9.03.968-11.53 3.156-8 7-35 .75-48.5 7s-13.25 38-14.75 44.5-17.5 20.75-20 23.5-13.25 7.25-19.5 8.5-12.75 7.25-15.5 11c-2.021 2.76-7.406 6.45-10.125 8.22-.046.18-.079.35-.125.53-.134.53-.247 1.08-.375 1.63 4.98-1.61 11.18-8.18 16.625-13.63 6.25-6.25 20-7.75 27.75-11.5S76.75 138.5 89 134.5s21.25 11.75 24.25 18.5 1.75 12.75 3.75 17 11 11.75 11.5 13.5-5 6.5-6.25 8.5-10.5 7-11.75 8.75c-.97 1.35-1.92 6.77-2.31 9.22.41-.17.75-.31 1.12-.47.49-2.53 1.52-7.08 2.94-8.5 2-2 11.25-4.5 12.5-8.5s7-6.5 7-6.5 2.75 4 16 14c8.83 6.67 12.76 15.53 14.41 20.72.67.17 1.53.41 2.03.53-1.22-4.32-4.84-16.24-8.94-20.75-5-5.5-18.5-10.75-22.75-22S108 144.25 115 138.25s16.5-4 28.5 7.5 46.25 5.75 57.75 3.75c9.95-1.73 20.83 14.88 23.91 26.03.59-2.09 1.12-4 1.65-5.75-1.74-1.92-3.69-4.62-5.31-8.28-3.75-8.5-12-13.25-12-13.25s8.75-5 14.75-7.75c1.62-.74 3.01-1.68 4.19-2.66-.16-.77-.26-1.25-.44-2.09l-.09-.44c-4.77 5.56-19.24 9.62-21.66 10.94-2.75 1.5-18.25 3-35.75 4.5s-26.75-7.5-34.25-14.75-13-36-3-38 20 13.75 30 17 21.5-15.75 19.75-27c-1.2-7.734-14-12.625-24.47-12.656zm-53.34 13.281c1.27.001 5.86 1.594 6.56 2.375 2.25 2.5 2 7.25 0 8s-12.75 8-10.5 14.25 1.75 18-3.5 18-8 0-10-2.5-2-12 0-19.75 3.5-15 8-18.25c3.094-2.234 6.63-2.128 9.44-2.125zm13.59 73.095c.2.01 1.91 3.51 4.72 7.03 3 3.75 3.25 8.25 3.25 8.25s-4.25-4.75-6-8-2-7.25-2-7.25c0-.03.02-.03.03-.03z"/>%0A <path opacity=".387" stroke-linejoin="round" d="M122.75 62.25c6.25.5 12.25-2.25 10.75-6.5s-12.5-7.25-13.25-3 2 10.5 2.5 9.5zM108.75 46.75c-8.5-5.5-8.5-7.25-7-8s10.25 5 12.75 8-2.25 2-5.75 0z" stroke="%236d7f42" stroke-linecap="round" fill="none"/>%0A <g clip-path="url(%23j)" transform="translate(0 -10)" stroke="%236d7f42" fill="none">%0A <path opacity=".387" stroke-linejoin="round" d="M15.75 151.25c33-2.5 38.25-3.5 36.25-10.25s-8.75-23.5-23-22.5-22.75-6.75-22.75-6.75" stroke-linecap="round"/>%0A <path opacity=".387" d="M17.5 177.25c18.25-10 28.75-8.5 35-11.5s13.25-5.75 15.75-9.5 5.75-11.5 5.75-18-3.5-36 3.25-43.5 17.25-26 26-23.25 12.25 9.75 22 9.5S147 77 149.5 68.75s-15.75-16-16-23 5.5-14.25 20.25-17 23.5-11.5 23.5-11.5"/>%0A <path opacity=".387" stroke-linejoin="round" d="M14.5 161c15.25-1.5 22.25 3.5 31.5 1.75s13.25-3 17.75-5.75 6-3.75 6.25-6.5 1-12.5-3-22S54.5 97 58.75 89.75 64 68.25 74.5 65.25 95.5 59 102.25 64s12.75 14.25 20 14.5S134 77 136.75 74s4.5-10.25 1.75-13.75-15.5-5.5-17.25-9.5-10.75-17-.25-26.75 36.25-8.25 36.25-8.25" stroke-linecap="round"/>%0A <path opacity=".387" stroke-linejoin="round" d="M21.25 159c13.75 1 21.5 4.25 33.5-.5s13.5-5.25 13.75-8.75-.25-15.75-3-20-13-13.75-15.75-24.25.25-41 8.5-48.25 32-7.25 37.5-10.5 5.25-16.75 13-24.5 27-12.25 27-12.25M190 18.5c11.75 5 39 9.75 47.25 40.25M9.75 214c19-12.5 36-1.25 49-4s38.25-37.25 46-37 5.5-11.75 8.5-13.25 5.5 6 11.75 8 24.5-2.75 23.5-5.75-7-7.75-5.5-8.5 8.5 5 12.75 3.5 43.75-1 48.5-13.5 21.5-13.5 21.5-13.5M77.5 233.5c13.5-11.5 23.25-25 28.5-27s12.75-3.75 15.75-8 2.5-10.75 5.25-12 3.75 5.75 8.75 6 36.75-5 42.75-11.75 32.25-12.5 32.5-14.5-1-4.75.25-5.5 24.75-6 24.75-6M168.75 236c9-13.75 20.5-41 29.5-42s10.25-2.5 12.5-4.25 17 2.25 17 2.25" stroke-linecap="round"/>%0A </g>%0A <g clip-path="url(%23k)" transform="translate(0 -10)" stroke="%23d38484" stroke-linecap="round" stroke-width="2" fill="none">%0A <path d="m57.75 20-8.5 28.25 18 6.25L75 90.75 54 113l9 10.5L51 135l.5 4.5L71.75 164l14-6.75 20.5 18.5L95.75 204l10.25 8.5-2.75 13"/>%0A <path d="m105.75 212.25 12.5-27.75 11-7 27.5 15.75 20.5-3.75-.25-15.75-10.25-6 12.75-26.25 5.75-3.75 38.75-10"/>%0A </g>%0A <g opacity=".504">%0A <path d="M219.25 330s-24.25 9-31.75 10.5-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75c0 0 7.5 13 11.75 27.75S27 385.5 27 385.5l51.469 5.125 48.971-4 52.25 12.031c10.38-4.418 52.11-4.9 55.31-13.156 0 0-4.75-15.25-7.5-29.75S219.25 330 219.25 330z" fill="%23b1e479"/>%0A <path d="M27 385.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23l50.969 16.37 53.721-15.74 52.25 17.53c16.36-4.26 32.39-9.12 48.06-15.41 0 0 1.75-10.5 6.75-23.75S235 385.5 235 385.5c-3.2 8.256-44.93 8.738-55.31 13.156l-52.25-12.031-47.971 4L27 385.5z" fill="%2387d531"/>%0A <path d="M231.75 485.5c-17.9 7.67-35.94 14.9-54.31 21.41l-52.25-18.53-50.221 9L26 487.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28z" fill="%23ceeeab"/>%0A <path d="M13 433.25s5.75 16 9.25 30S26 487.5 26 487.5l48.969 9.88 50.221-9 52.25 18.53c18.37-6.51 36.41-13.74 54.31-21.41 0 0-.5-4.5-3.75-19.75S218 436 218 436c-15.67 6.29-31.7 11.15-48.06 15.41l-52.25-17.53-53.721 15.74L13 433.25z" fill="%23b9e787"/>%0A </g>%0A <g opacity=".522">%0A <path d="M13.719 332.031c-2.729-.007-4.438.125-4.719.219 0 0 7.5 13 11.75 27.75S27 385.5 27 385.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 487.5 26 487.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6l1.5-53.25L63.5 450l16-59.75c-2.22-15.48-9.068-30.046-14.25-44.75 0 0-18.5-9-31.5-11.5-8.125-1.563-15.483-1.956-20.031-1.969z" fill="%2383d32b"/>%0A <path d="M114.75 331.75s-3.25 3.5-22 8-27.5 5.75-27.5 5.75c5.182 14.704 12.03 29.27 14.25 44.75L63.5 450l12.25 46.5-1.5 53.25s12.75-2.75 24-6.25 16.25-6.5 16.25-6.5l11.25-48.5-8.25-54.25 11.75-45c-3.44-9.727-8.06-56.93-14.5-57.5z" fill="%23b1e479"/>%0A <path d="M219.25 330s-24.25 9-31.75 10.5-21 5.25-21 5.25c4.92-1.358 11.44 45.392 14.25 52.25l-11.25 53.25 9.5 55-12.75 45.5s13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 436 218 436s1.75-10.5 6.75-23.75S235 385.5 235 385.5s-4.75-15.25-7.5-29.75-8.25-25.75-8.25-25.75z" fill="%23a4df62"/>%0A <path d="M114.75 331.75c6.44.57 11.06 47.773 14.5 57.5l-11.75 45 8.25 53.25L114.5 537s5.5.5 22.5 6.25 29.25 8.5 29.25 8.5l12.75-45.5-9.5-55L180.75 398c-2.81-6.858-9.33-53.608-14.25-52.25 0 0-9.75-4.25-22-8.5s-29.75-5.5-29.75-5.5z" fill="%23ceeeab"/>%0A </g>%0A <path opacity=".039" d="M9-189.75s7.5 13 11.75 27.75S27-136.5 27-136.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26-34.5 26-34.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6S87 25 98.25 21.5 114.5 15 114.5 15s5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8S218 11 223-8.5s8.75-28 8.75-28-.5-4.5-3.75-19.75S218-86 218-86s1.75-10.5 6.75-23.75S235-136.5 235-136.5s-4.75-15.25-7.5-29.75-8.25-25.75-8.25-25.75-24.25 9-31.75 10.5-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z" fill="url(%23l)" transform="translate(0 192)"/>%0A <g opacity=".27">%0A <path fill="url(%23m)" d="M219.25-182s-24.25 9-31.75 10.5-21 5.25-21 5.25c4.92-1.36 11.44 45.39 14.25 52.25l-.06.28c11.81-4.07 51.21-4.77 54.31-12.78 0 0-4.75-15.25-7.5-29.75S219.25-182 219.25-182z" transform="translate(0 182)"/>%0A <path fill="url(%23n)" d="M27-126.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23l50.625 16.281 15.781-58.911L27-126.5z" transform="translate(0 182)"/>%0A <path fill="url(%23o)" d="M26-24.5S22-14.25 18.5-.25s-5 30.75-5 30.75.147-.045.438-.094c2.033-.338 11.218-1.5 28.062 1.344 19.25 3.25 32.25 6 32.25 6l1.469-52.5-.75.125L26-24.5z" transform="translate(0 182)"/>%0A <path fill="url(%23p)" d="M114.75-180.25s-3.25 3.5-22 8-27.5 5.75-27.5 5.75c5.182 14.7 12.03 29.27 14.25 44.75l-.094.31 48.034-3.94 1.12.26c-3.36-13.33-7.79-54.6-13.81-55.13z" transform="translate(0 182)"/>%0A <path fill="url(%23q)" d="M117.59-78.094 63.969-62.375l-.344-.094L63.5-62l12.25 46.5-.031.75 49.471-8.875.53.187.03-.062-8.25-54.25.09-.344z" transform="translate(0 182)"/>%0A <path fill="url(%23r)" d="M128.56-125.12c.24.92.47 1.74.69 2.37l-11.66 44.656.1-.031L169.5-60.75l11.19-52.97c-.36.12-.7.25-1 .38l-51.13-11.78z" transform="translate(0 182)"/>%0A <path fill="url(%23s)" d="M125.53-23.5 114.5 25s5.5.5 22.5 6.25c2.12.719 4.16 1.406 6.12 2.031 1.97.626 3.86 1.186 5.63 1.719 10.62 3.199 17.5 4.75 17.5 4.75l12.72-45.406c-.51.182-1.02.38-1.53.562L125.53-23.5z" transform="translate(0 182)"/>%0A <path fill="url(%23t)" d="M218-76c-15.67 6.288-31.7 11.15-48.06 15.406l-.44-.156 9.5 55-.03.094c17.84-6.36 35.38-13.387 52.78-20.844 0 0-.5-4.5-3.75-19.75S218-76 218-76z" transform="translate(0 182)"/>%0A </g>%0A <g opacity=".043">%0A <path fill="url(%23u)" d="M13.719-179.97c-1.106 0-1.972.03-2.719.06-.445.02-.855.04-1.156.07-.03 0-.066-.01-.094 0-.398.03-.656.06-.75.09 0 0 7.5 13 11.75 27.75S27-126.5 27-126.5l51.469 5.12.937-.06.094-.31c-2.22-15.48-9.068-30.05-14.25-44.75 0 0-18.5-9-31.5-11.5-1.018-.2-2.01-.37-3-.53-.596-.1-1.167-.2-1.75-.28-.237-.04-.453-.06-.688-.1a98.772 98.772 0 0 0-3.812-.46c-.735-.08-1.395-.13-2.094-.19-.685-.06-1.353-.11-2-.16-.992-.07-1.89-.12-2.781-.15-1.456-.07-2.769-.1-3.906-.1z" transform="translate(0 182)"/>%0A <path fill="url(%23v)" d="M13-78.75s5.75 16 9.25 30S26-24.5 26-24.5l48.969 9.875.75-.125.031-.75L63.5-62l.125-.469L13-78.75z" transform="translate(0 182)"/>%0A <path fill="url(%23w)" d="m127.44-125.38-47.971 4h-.063L63.625-62.469l.344.094 53.621-15.719 11.66-44.656c-.22-.63-.45-1.45-.69-2.37l-1.12-.26z" transform="translate(0 182)"/>%0A <path fill="url(%23x)" d="M125.19-23.625 75.719-14.75l-1.469 52.5S87 35 98.25 31.5 114.5 25 114.5 25l11.22-48.438-.53-.187z" transform="translate(0 182)"/>%0A <path fill="url(%23y)" d="M114.75-180.25c6.02.53 10.45 41.8 13.81 55.13l51.13 11.78c.3-.13.64-.26 1-.38l.06-.28c-2.81-6.86-9.33-53.61-14.25-52.25 0 0-.61-.25-1.72-.72-3.32-1.39-11.09-4.59-20.28-7.78-12.25-4.25-29.75-5.5-29.75-5.5z" transform="translate(0 182)"/>%0A <path fill="url(%23z)" d="m117.69-78.125-.1.031-.09.344 8.25 53.25-.22 1 51.91 18.406c.51-.181 1.02-.38 1.53-.562l.03-.094-9.5-55-51.81-17.375z" transform="translate(0 182)"/>%0A <path fill="url(%23A)" d="M231.75-26.5c-17.4 7.457-34.94 14.484-52.78 20.844L166.25 39.75s13-2.75 26-5.75 26.5-8 26.5-8S218 21 223 1.5s8.75-28 8.75-28z" transform="translate(0 182)"/>%0A <path fill="url(%23B)" d="M235-126.5c-3.1 8.01-42.5 8.71-54.31 12.78L169.5-60.75l.44.156C186.3-64.85 202.33-69.712 218-76c0 0 1.75-10.5 6.75-23.75S235-126.5 235-126.5z" transform="translate(0 182)"/>%0A </g>%0A <g clip-path="url(%23C)" transform="matrix(1.2525 .0354 0 1.2525 -27.809 -48.344)">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A <g clip-path="url(%23D)">%0A <path fill="%23a6dd8b" d="m110.75 5.5-4.25 7c-.75 9-2.25 13.75-8.5 16.5s-12.25 3.5-11 7.5 13 9.25 14.25 13 8.25 1.75 11 7 2 15.25-3.75 17.25-17.5.5-20.25 9.5-4.75 10.5-9 12.75-7.25 10.5-3.5 16.5 12.25-1.25 15-6.5S98 97.25 98 97.25h23.75l59-1.75 3.25-3.75s3.25 4 2.75 8.75-3.75 14.75.25 17.25 19.5-2 24-7-4.75-28.25-10.5-29.5-18.5-1.75-17-7 11.75 4.5 17.25 3.25 16.75-21 12-25.25-24.25-5.25-25.75-8 21-8 22.25-11-2.5-7.25-6.25-8.5S189 41 182 40.5s-20 5.75-17.25 11.5-6 11-14.5 6.5-24.75-13-21.75-24S150 15.75 150 15.75L110.75 5.5zM97.188 112.72c-1.595.15-4.469 4.69-4.938 7.03-.5 2.5-3.25 6.75-3.5 12.25s4.75 6.75 8.75 6.5 2.75-6.75 2-15c-.25 0-.5-10.25-2-10.75-.094-.03-.206-.04-.312-.03zm92.722 51.66c-6.34.29-6.63 7.46-7.41 8.87-1.25 2.25 2.25 13.75 2 18s-4.75 5.25-9.5 9.75.5 16 11.25 31l44.75 1.25-1-35s4.75-4.25-20.75-24.25c-9.56-7.5-15.54-9.8-19.34-9.62zM39.94 180.91c-4.03-.11-8.282 5.71-9.688 7.59-1.5 2-6.25 5-17 9.5l-14.5 34.25 53 4.25s1.75-11-4.25-15.75-17.25-5.75-18.25-13.25 9.25-10 13.75-14.25 2-11.25-2.25-12.25a3.728 3.728 0 0 0-.812-.09z"/>%0A </g>%0A <path fill="%23aac3e7" d="M158.53 85.344c-4.76-.015-9.03.968-11.53 3.156-8 7-35 .75-48.5 7s-13.25 38-14.75 44.5-17.5 20.75-20 23.5-13.25 7.25-19.5 8.5-12.75 7.25-15.5 11c-2.021 2.76-7.406 6.45-10.125 8.22-.046.18-.079.35-.125.53-.134.53-.247 1.08-.375 1.63 4.98-1.61 11.18-8.18 16.625-13.63 6.25-6.25 20-7.75 27.75-11.5S76.75 148.5 89 144.5s21.25 11.75 24.25 18.5 1.75 12.75 3.75 17 11 11.75 11.5 13.5-5 6.5-6.25 8.5-10.5 7-11.75 8.75c-.97 1.35-1.92 6.77-2.31 9.22.41-.17.75-.31 1.12-.47.49-2.53 1.52-7.08 2.94-8.5 2-2 11.25-4.5 12.5-8.5s7-6.5 7-6.5 2.75 4 16 14c8.83 6.67 12.76 15.53 14.41 20.72.67.17 1.53.41 2.03.53-1.22-4.32-4.84-16.24-8.94-20.75-5-5.5-18.5-10.75-22.75-22S108 154.25 115 148.25s16.5-4 28.5 7.5 46.25 5.75 57.75 3.75c9.95-1.73 20.83 14.88 23.91 26.03.59-2.09 1.12-4 1.65-5.75-1.74-1.92-3.69-4.62-5.31-8.28-3.75-8.5-12-13.25-12-13.25s8.75-5 14.75-7.75c1.62-.74 3.01-1.68 4.19-2.66-.16-.77-.26-1.25-.44-2.09l-.09-.44c-4.77 5.56-19.24 9.62-21.66 10.94-2.75 1.5-18.25 3-35.75 4.5s-26.75-7.5-34.25-14.75-13-36-3-38 20 13.75 30 17 21.5-15.75 19.75-27c-1.2-7.734-14-12.625-24.47-12.656zm-53.34 13.281c1.27.001 5.86 1.595 6.56 2.375 2.25 2.5 2 7.25 0 8s-12.75 8-10.5 14.25 1.75 18-3.5 18-8 0-10-2.5-2-12 0-19.75 3.5-15 8-18.25c3.094-2.234 6.63-2.128 9.44-2.125zm13.59 73.095c.2.01 1.91 3.51 4.72 7.03 3 3.75 3.25 8.25 3.25 8.25s-4.25-4.75-6-8-2-7.25-2-7.25c0-.03.02-.03.03-.03z"/>%0A <path opacity=".387" stroke-linejoin="round" d="M122.75 72.25c6.25.5 12.25-2.25 10.75-6.5s-12.5-7.25-13.25-3 2 10.5 2.5 9.5zM108.75 56.75c-8.5-5.5-8.5-7.25-7-8s10.25 5 12.75 8-2.25 2-5.75 0z" stroke="%236d7f42" stroke-linecap="round" fill="none"/>%0A <g stroke="%236d7f42" fill="none" clip-path="url(%23E)">%0A <path opacity=".387" stroke-linejoin="round" d="M15.75 151.25c33-2.5 38.25-3.5 36.25-10.25s-8.75-23.5-23-22.5-22.75-6.75-22.75-6.75" stroke-linecap="round"/>%0A <path opacity=".387" d="M17.5 177.25c18.25-10 28.75-8.5 35-11.5s13.25-5.75 15.75-9.5 5.75-11.5 5.75-18-3.5-36 3.25-43.5 17.25-26 26-23.25 12.25 9.75 22 9.5S147 77 149.5 68.75s-15.75-16-16-23 5.5-14.25 20.25-17 23.5-11.5 23.5-11.5"/>%0A <path opacity=".387" stroke-linejoin="round" d="M14.5 161c15.25-1.5 22.25 3.5 31.5 1.75s13.25-3 17.75-5.75 6-3.75 6.25-6.5 1-12.5-3-22S54.5 97 58.75 89.75 64 68.25 74.5 65.25 95.5 59 102.25 64s12.75 14.25 20 14.5S134 77 136.75 74s4.5-10.25 1.75-13.75-15.5-5.5-17.25-9.5-10.75-17-.25-26.75 36.25-8.25 36.25-8.25" stroke-linecap="round"/>%0A <path opacity=".387" stroke-linejoin="round" d="M21.25 159c13.75 1 21.5 4.25 33.5-.5s13.5-5.25 13.75-8.75-.25-15.75-3-20-13-13.75-15.75-24.25.25-41 8.5-48.25 32-7.25 37.5-10.5 5.25-16.75 13-24.5 27-12.25 27-12.25M190 18.5c11.75 5 39 9.75 47.25 40.25M9.75 214c19-12.5 36-1.25 49-4s38.25-37.25 46-37 5.5-11.75 8.5-13.25 5.5 6 11.75 8 24.5-2.75 23.5-5.75-7-7.75-5.5-8.5 8.5 5 12.75 3.5 43.75-1 48.5-13.5 21.5-13.5 21.5-13.5M77.5 233.5c13.5-11.5 23.25-25 28.5-27s12.75-3.75 15.75-8 2.5-10.75 5.25-12 3.75 5.75 8.75 6 36.75-5 42.75-11.75 32.25-12.5 32.5-14.5-1-4.75.25-5.5 24.75-6 24.75-6M168.75 236c9-13.75 20.5-41 29.5-42s10.25-2.5 12.5-4.25 17 2.25 17 2.25" stroke-linecap="round"/>%0A </g>%0A <g clip-path="url(%23F)" stroke="%23d38484" stroke-linecap="round" stroke-width="2" fill="none">%0A <path d="m57.75 20-8.5 28.25 18 6.25L75 90.75 54 113l9 10.5L51 135l.5 4.5L71.75 164l14-6.75 20.5 18.5L95.75 204l10.25 8.5-2.75 13"/>%0A <path d="m105.75 212.25 12.5-27.75 11-7 27.5 15.75 20.5-3.75-.25-15.75-10.25-6 12.75-26.25 5.75-3.75 38.75-10"/>%0A </g>%0A <path opacity=".039" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z" fill="url(%23G)"/>%0A <g opacity=".27">%0A <path fill="url(%23m)" d="M219.25-182s-24.25 9-31.75 10.5-21 5.25-21 5.25c4.92-1.36 11.44 45.39 14.25 52.25l-.06.28c11.81-4.07 51.21-4.77 54.31-12.78 0 0-4.75-15.25-7.5-29.75S219.25-182 219.25-182z" transform="translate(0 192)"/>%0A <path fill="url(%23n)" d="M27-126.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23l50.625 16.281 15.781-58.911L27-126.5z" transform="translate(0 192)"/>%0A <path fill="url(%23o)" d="M26-24.5S22-14.25 18.5-.25s-5 30.75-5 30.75.147-.045.438-.094c2.033-.338 11.218-1.5 28.062 1.344 19.25 3.25 32.25 6 32.25 6l1.469-52.5-.75.125L26-24.5z" transform="translate(0 192)"/>%0A <path fill="url(%23p)" d="M114.75-180.25s-3.25 3.5-22 8-27.5 5.75-27.5 5.75c5.182 14.7 12.03 29.27 14.25 44.75l-.094.31 48.034-3.94 1.12.26c-3.36-13.33-7.79-54.6-13.81-55.13z" transform="translate(0 192)"/>%0A <path fill="url(%23q)" d="M117.59-78.094 63.969-62.375l-.344-.094L63.5-62l12.25 46.5-.031.75 49.471-8.875.53.187.03-.062-8.25-54.25.09-.344z" transform="translate(0 192)"/>%0A <path fill="url(%23r)" d="M128.56-125.12c.24.92.47 1.74.69 2.37l-11.66 44.656.1-.031L169.5-60.75l11.19-52.97c-.36.12-.7.25-1 .38l-51.13-11.78z" transform="translate(0 192)"/>%0A <path fill="url(%23s)" d="M125.53-23.5 114.5 25s5.5.5 22.5 6.25c2.12.719 4.16 1.406 6.12 2.031 1.97.626 3.86 1.186 5.63 1.719 10.62 3.199 17.5 4.75 17.5 4.75l12.72-45.406c-.51.182-1.02.38-1.53.562L125.53-23.5z" transform="translate(0 192)"/>%0A <path fill="url(%23t)" d="M218-76c-15.67 6.288-31.7 11.15-48.06 15.406l-.44-.156 9.5 55-.03.094c17.84-6.36 35.38-13.387 52.78-20.844 0 0-.5-4.5-3.75-19.75S218-76 218-76z" transform="translate(0 192)"/>%0A </g>%0A <g opacity=".043">%0A <path fill="url(%23u)" d="M13.719-179.97c-1.106 0-1.972.03-2.719.06-.445.02-.855.04-1.156.07-.03 0-.066-.01-.094 0-.398.03-.656.06-.75.09 0 0 7.5 13 11.75 27.75S27-126.5 27-126.5l51.469 5.12.937-.06.094-.31c-2.22-15.48-9.068-30.05-14.25-44.75 0 0-18.5-9-31.5-11.5-1.018-.2-2.01-.37-3-.53-.596-.1-1.167-.2-1.75-.28-.237-.04-.453-.06-.688-.1a98.772 98.772 0 0 0-3.812-.46c-.735-.08-1.395-.13-2.094-.19-.685-.06-1.353-.11-2-.16-.992-.07-1.89-.12-2.781-.15-1.456-.07-2.769-.1-3.906-.1z" transform="translate(0 192)"/>%0A <path fill="url(%23v)" d="M13-78.75s5.75 16 9.25 30S26-24.5 26-24.5l48.969 9.875.75-.125.031-.75L63.5-62l.125-.469L13-78.75z" transform="translate(0 192)"/>%0A <path fill="url(%23w)" d="m127.44-125.38-47.971 4h-.063L63.625-62.469l.344.094 53.621-15.719 11.66-44.656c-.22-.63-.45-1.45-.69-2.37l-1.12-.26z" transform="translate(0 192)"/>%0A <path fill="url(%23x)" d="M125.19-23.625 75.719-14.75l-1.469 52.5S87 35 98.25 31.5 114.5 25 114.5 25l11.22-48.438-.53-.187z" transform="translate(0 192)"/>%0A <path fill="url(%23y)" d="M114.75-180.25c6.02.53 10.45 41.8 13.81 55.13l51.13 11.78c.3-.13.64-.26 1-.38l.06-.28c-2.81-6.86-9.33-53.61-14.25-52.25 0 0-.61-.25-1.72-.72-3.32-1.39-11.09-4.59-20.28-7.78-12.25-4.25-29.75-5.5-29.75-5.5z" transform="translate(0 192)"/>%0A <path fill="url(%23z)" d="m117.69-78.125-.1.031-.09.344 8.25 53.25-.22 1 51.91 18.406c.51-.181 1.02-.38 1.53-.562l.03-.094-9.5-55-51.81-17.375z" transform="translate(0 192)"/>%0A <path fill="url(%23A)" d="M231.75-26.5c-17.4 7.457-34.94 14.484-52.78 20.844L166.25 39.75s13-2.75 26-5.75 26.5-8 26.5-8S218 21 223 1.5s8.75-28 8.75-28z" transform="translate(0 192)"/>%0A <path fill="url(%23B)" d="M235-126.5c-3.1 8.01-42.5 8.71-54.31 12.78L169.5-60.75l.44.156C186.3-64.85 202.33-69.712 218-76c0 0 1.75-10.5 6.75-23.75S235-126.5 235-126.5z" transform="translate(0 192)"/>%0A </g>%0A </g>%0A <path d="M174.28 35.875c-17.6 0-35.19 6.639-48.72 19.906-.16.164-.33.303-.5.469-22.05 22.056-26.206 55.25-12.47 81.5l-2.28 1.63c2.25 4.23 4.94 8.3 8.1 12.12l-13.32 13.34c-1.34-.58-2.78-1.03-4.56-1.37l-2.842 2.84c-1.11-.48-2.139-.81-3.063-.87L30.5 229.56c-.037 1.1.226 2.19.656 3.28l-.531.54-1.094 1.09c.716 3.74 2.011 6.82 5.469 10.28s6.42 4.63 10.281 5.47l1.094-1.1.719-.71c1.088.46 2.13.78 3.094.84l64.122-64.13c-.24-.97-.62-1.93-1.03-2.9l3-3c-.25-1.73-.68-3.2-1.31-4.6l13.28-13.28c3.82 3.16 7.89 5.85 12.13 8.1l1.62-2.28c26.25 13.74 59.44 9.58 81.5-12.47.17-.17.31-.34.47-.5 26.69-27.22 26.55-70.923-.47-97.94-13.59-13.59-31.41-20.375-49.22-20.375zm-.5 3.281c.11.002.21-.002.31 0a67.89 67.89 0 0 1 5.72.375c.1.01.19.021.28.031l.29.032c.14.017.29.044.43.062.9.11 1.8.228 2.69.375.62.102 1.23.224 1.84.344.35.066.69.116 1.04.187.72.153 1.43.324 2.15.5.31.077.63.138.94.219.07.019.14.043.22.063.95.253 1.89.516 2.84.812.07.023.15.04.22.063.95.3 1.91.625 2.84.969.06.019.11.042.16.062.95.352 1.9.728 2.84 1.125.06.022.11.041.16.063.94.4 1.88.836 2.81 1.281l.13.062c.93.451 1.86.91 2.78 1.407.03.017.06.044.09.062.93.503 1.84 1.013 2.75 1.562.03.02.06.044.1.063.9.551 1.8 1.122 2.68 1.719.55.369 1.09.769 1.63 1.156.36.261.73.512 1.09.781.02.014.05.018.06.031.88.656 1.75 1.36 2.6 2.063a70.875 70.875 0 0 1 5.06 4.594c1.62 1.62 3.14 3.3 4.56 5.031.01.011.03.02.03.031.71.855 1.41 1.715 2.07 2.594.28.379.54.773.81 1.156.37.517.74 1.038 1.09 1.563.02.024.05.038.07.062.59.89 1.16 1.778 1.71 2.688.02.032.05.061.07.094a75.45 75.45 0 0 1 1.56 2.75c.02.032.04.06.06.093.5.921.96 1.844 1.41 2.781l.06.126c.45.929.88 1.868 1.28 2.812l.06.156c.4.936.78 1.895 1.13 2.844l.06.156c.35.949.67 1.885.97 2.844l.06.219c.3.941.56 1.894.82 2.843l.06.219c.08.31.14.627.22.938.17.72.35 1.432.5 2.156.07.342.12.688.18 1.031.12.617.25 1.225.35 1.844.15.893.26 1.791.37 2.688.02.145.05.291.07.437l.03.281.03.282c.1.952.19 1.912.25 2.872.06.94.11 1.9.12 2.85.01.1 0 .2 0 .31.02 1.05.01 2.1-.03 3.15-.03.94-.08 1.86-.15 2.79-.01.12-.02.25-.04.37-.07.92-.16 1.84-.28 2.75-.12.96-.27 1.93-.43 2.88-.02.08-.02.16-.04.25-.02.12-.03.25-.06.37-.16.91-.36 1.82-.56 2.72-.03.13-.06.27-.09.41a86.1 86.1 0 0 1-.69 2.65c-.17.59-.35 1.17-.53 1.75-.18.57-.34 1.13-.53 1.69-.3.86-.61 1.71-.94 2.56-.06.16-.13.32-.19.47-.04.11-.08.23-.12.34-.36.88-.73 1.73-1.13 2.6-.38.82-.77 1.63-1.19 2.44-.08.15-.16.31-.25.46-.41.8-.83 1.6-1.28 2.38-.09.17-.18.34-.28.5-.2.34-.42.66-.62 1-.37.59-.75 1.17-1.13 1.75 0 .01.01.02 0 .03-.49.75-1 1.49-1.53 2.22-.46.64-.95 1.25-1.44 1.87-.19.26-.36.53-.56.79l-.41.5c-.16.2-.33.39-.5.59-.55.67-1.13 1.32-1.72 1.97-.6.67-1.23 1.35-1.87 2-.16.16-.31.34-.47.5-21.13 21.13-52.26 24.49-77.19 11.15l.13-.18c-3.71-1.9-7.26-4.14-10.63-6.78-.54-.43-1.06-.87-1.59-1.32-.51-.43-1.03-.86-1.53-1.31-.09-.08-.19-.16-.28-.25a86.97 86.97 0 0 1-2.41-2.31c-.79-.8-1.56-1.59-2.31-2.41-.09-.09-.17-.19-.25-.28-.45-.5-.88-1.02-1.31-1.53-.45-.53-.89-1.05-1.32-1.59a65.831 65.831 0 0 1-6.78-10.63l-.19.13c-13.33-24.93-9.97-56.061 11.16-77.191.16-.163.34-.308.5-.469.65-.64 1.33-1.269 2-1.875.65-.588 1.3-1.162 1.97-1.719.27-.227.54-.465.81-.687.35-.278.72-.512 1.06-.782.63-.483 1.24-.98 1.88-1.437.74-.53 1.5-1.036 2.25-1.531.58-.383 1.16-.764 1.75-1.125.45-.274.89-.551 1.34-.813.69-.395 1.37-.757 2.07-1.125a61.343 61.343 0 0 1 3.37-1.687c.87-.397 1.72-.769 2.59-1.125.16-.062.32-.096.47-.157.97-.384 1.93-.758 2.91-1.093.56-.192 1.12-.356 1.69-.532.58-.181 1.16-.367 1.75-.531.88-.246 1.77-.48 2.65-.687.07-.017.15-.015.22-.032.42-.095.84-.193 1.25-.281.67-.141 1.36-.287 2.03-.406.09-.015.17-.017.25-.031.95-.164 1.92-.317 2.88-.438a65.183 65.183 0 0 1 9.06-.5z" clip-path="url(%23H)" transform="matrix(1 .08088 0 1 0 -21.056)" filter="url(%23I)" fill="%232d3335"/>%0A <path d="m48.01 227.46-4.807 4.55c-5.007-5.31-10.24-10.7-15.08-16.13l4.491-4.07c6.829 6.53 8.872 8.53 15.396 15.65z" fill="url(%23J)"/>%0A <path d="M-95.5 225c28.719 0 52 23.28 52 52s-23.281 52-52 52c-28.72 0-52-23.28-52-52s23.28-52 52-52z" fill-opacity=".476" fill="%23d0e9f2"/>%0A <path d="M-82 136c-27.61 0-50-22.39-50-50 0-27.614 22.39-50 50-50 27.614 0 50 22.386 50 50 0 27.61-22.386 50-50 50zm0-3c26.51 0 48-20.49 48-47s-21.49-47-48-47-48 20.49-48 47 21.49 47 48 47z" fill="%232d3335"/>%0A <path fill="%239eaaac" d="M-82 136c-27.61 0-50-22.39-50-50v-.5c.27 27.38 22.55 49.5 50 49.5 27.446 0 49.729-22.12 50-49.5.002.168 0 .332 0 .5 0 27.61-22.386 50-50 50zm-48-50.5V85c0-26.51 21.49-47 48-47s48 20.49 48 47c0 .168.002.333 0 .5C-34.27 59.234-55.658 39-82 39c-26.34 0-47.73 20.234-48 46.5z"/>%0A <path d="M-82 134c26.51 0 48-21.49 48-48s-21.49-48-48-48-48 21.49-48 48 21.49 48 48 48z" fill-opacity=".476" fill="%23d0e9f2"/>%0A <path d="M-82 134c26.51 0 48-21.49 48-48s-21.49-48-48-48-48 21.49-48 48 21.49 48 48 48z" fill="url(%23K)"/>%0A <path fill="url(%23L)" d="m-96.438 130.72-.843 5C-92.451 137.2-87.316 138-82 138s10.451-.8 15.281-2.28l-.843-5C-72.115 132.19-76.959 133-82 133s-9.885-.81-14.438-2.28z"/>%0A <path fill="url(%23M)" d="M-82 136.25c1.757 0 3.431.3 5 .81v26.63c-1.569.51-3.243.81-5 .81s-3.431-.3-5-.81v-26.63c1.569-.51 3.243-.81 5-.81z"/>%0A <path d="M-82 150.5c3.514 0 5.613.65 8 2.44v67.12c-3.137.91-4.486 1.44-8 1.44s-4.863-.53-8-1.44v-67.12c2.637-1.79 4.486-2.44 8-2.44z" fill="url(%23N)"/>%0A <path d="M-82 154.5c3.514 0 7.238.78 10 2.44v65.12c-2.012 1.79-6.486 2.44-10 2.44s-7.863-.15-10-2.44v-65.12c1.887-1.66 6.486-2.44 10-2.44z" fill="url(%23O)"/>%0A <path d="M-82 217.5c3.514 0 5.863.78 8 2.44v5.12c-2.387 1.54-4.486 2.44-8 2.44s-5.738-.9-8-2.44v-5.12c2.387-1.91 4.486-2.44 8-2.44z" fill="url(%23P)"/>%0A <path fill="%23e0bb41" d="M-82 221.5c-3.514 0-5.613.28-8 2.44v1.12c2.262 1.54 4.486 2.44 8 2.44s5.613-.9 8-2.44v-1.12c-2.512-2.04-4.486-2.44-8-2.44z"/>%0A <path d="M125.06 134.69c-27.176-27.18-27.176-71.251 0-98.431 27.18-27.18 71.25-27.18 98.43 0s27.18 71.251 0 98.431-71.25 27.18-98.43 0zm2.96-2.96c26.09 26.1 67.41 27.08 93.5.99 26.1-26.1 25.11-67.416-.98-93.509-26.09-26.092-67.41-27.077-93.51-.984-26.09 26.093-25.11 67.413.99 93.503z" fill="%232d3335"/>%0A <path fill="%239eaaac" d="M125.06 134.69c-27.176-27.18-27.176-71.251 0-98.431.17-.166.33-.329.5-.493-26.689 27.218-26.526 70.924.49 97.934 27.01 27.02 70.72 27.18 97.93.49-.16.17-.32.33-.49.5-27.18 27.18-71.25 27.18-98.43 0zm2.46-96.955c.17-.167.33-.327.5-.492 26.09-26.093 67.41-25.109 93.5.984 26.1 26.093 27.08 67.413.99 93.503l-.5.5c25.59-26.12 24.46-67.091-1.47-93.019-25.93-25.927-66.9-27.063-93.02-1.476z"/>%0A <path d="M127.03 132.72c26.1 26.09 68.4 26.09 94.49 0 26.1-26.1 26.1-68.4 0-94.493-26.09-26.093-68.39-26.093-94.49 0-26.09 26.093-26.09 68.393 0 94.493z" fill-opacity=".476" fill="%23d0e9f2"/>%0A <path d="M127.03 132.72c26.1 26.09 68.4 26.09 94.49 0 26.1-26.1 26.1-68.4 0-94.493-26.09-26.093-68.39-26.093-94.49 0-26.09 26.093-26.09 68.393 0 94.493z" fill="url(%23Q)"/>%0A <path fill="url(%23R)" d="m116.05 115.28-5.75 4.09c3.3 6.21 7.56 12.05 12.8 17.28 5.23 5.24 11.07 9.5 17.28 12.8l4.09-5.75c-5.92-3.04-11.49-7.01-16.45-11.97s-8.93-10.53-11.97-16.45z"/>%0A <path fill="url(%23S)" d="M124.82 134.93c1.73 1.73 3.08 3.67 4.12 5.72l-26.21 26.21a22.302 22.302 0 0 1-5.718-4.12 22.268 22.268 0 0 1-4.121-5.72l26.209-26.21c2.05 1.04 3.99 2.39 5.72 4.12z"/>%0A <path d="M116.27 159.23 50.199 225.3c-3.984-2.19-5.832-3-9.29-6.46s-4.267-5.3-6.459-9.29l66.07-66.07c5.06 3.75 12.12 10.4 15.75 15.75z" fill="url(%23T)"/>%0A <path d="M105.78 154.12c3.46 3.46 7.43 6.66 8.52 11.02l-64.101 64.1c-6.517-5.16-14.555-12.79-19.686-19.69l64.1-64.1c3.491.23 7.657 5.16 11.117 8.62l.05.05z" fill="url(%23U)"/>%0A <path opacity=".596" d="M105.53 154.36c3.46 3.46 7.68 6.42 8.77 10.78l-64.101 64.1c-7.877-6.91-11.798-10.63-19.686-19.69l64.1-64.1c3.491.23 7.417 5.45 10.877 8.91h.04z" fill="url(%23V)"/>%0A <path opacity=".604" d="M131.17 37.05c40.66-32.173 78.13-12.728 77.78 5.303s-56.57 70.357-76.37 66.117-25.45-53.389-1.41-71.42z" fill="url(%23W)"/>%0A <text opacity=".461" font-weight="bold" xml:space="preserve" transform="rotate(-8.9)" font-size="19.8" y="69.184" x="99.839" font-family="Monospace" fill="url(%23X)"><tspan y="69.184" x="99.839">01011001</tspan><tspan y="93.934" x="99.839">00110101</tspan><tspan y="118.684" x="99.839">10010011</tspan></text>%0A <text font-weight="bold" xml:space="preserve" transform="rotate(-8.9)" font-size="19.8" y="67.898" x="99.41" font-family="Monospace" fill="url(%23Y)"><tspan y="67.898" x="99.41">01011001</tspan><tspan y="92.648" x="99.41">00110101</tspan><tspan y="117.398" x="99.41">10010011</tspan></text>%0A <path opacity=".765" d="M219.46 129.09c-26.79 21.98-41.81 21.01-38.07 13.14 3.73-7.87 42.32-41.66 51.45-43.75 9.12-2.093 2.27 18.04-13.38 30.61z" fill="url(%23Z)"/>%0A</svg>%0A';function Kn(o){let{css:t,selector:e="wa-button",all:n=!0,styleId:a="hot-theme-injection"}=o;(n?document.querySelectorAll(e):[document.querySelector(e)].filter(Boolean)).forEach(s=>{if(!s)return;let d=()=>{if(!s.shadowRoot){setTimeout(d,10);return}if(s.shadowRoot.getElementById(a))return;let l=document.createElement("style");l.id=a,l.textContent=t,s.shadowRoot.appendChild(l),console.log(`\u2705 Injected HOT theme into ${e}`,s)};d()})}function Fa(){Kn({css:`
|
|
4
|
-
:host {
|
|
5
|
-
/* Brand colors - Map to HOT primary colors (red) */
|
|
6
|
-
--wa-color-brand-95: var(--hot-color-primary-50);
|
|
7
|
-
--wa-color-brand-90: var(--hot-color-primary-100);
|
|
8
|
-
--wa-color-brand-80: var(--hot-color-primary-200);
|
|
9
|
-
--wa-color-brand-70: var(--hot-color-primary-300);
|
|
10
|
-
--wa-color-brand-60: var(--hot-color-primary-400);
|
|
11
|
-
--wa-color-brand-50: var(--hot-color-primary-500);
|
|
12
|
-
--wa-color-brand-40: var(--hot-color-primary-600);
|
|
13
|
-
--wa-color-brand-30: var(--hot-color-primary-700);
|
|
14
|
-
--wa-color-brand-20: var(--hot-color-primary-800);
|
|
15
|
-
--wa-color-brand-10: var(--hot-color-primary-900);
|
|
16
|
-
--wa-color-brand-05: var(--hot-color-primary-950);
|
|
17
|
-
--wa-color-brand: var(--wa-color-brand-50);
|
|
18
|
-
--wa-color-brand-key: 50;
|
|
19
|
-
|
|
20
|
-
/* Neutral colors - Map to HOT neutral colors (gray) */
|
|
21
|
-
--wa-color-neutral-95: var(--hot-color-neutral-50);
|
|
22
|
-
--wa-color-neutral-90: var(--hot-color-neutral-100);
|
|
23
|
-
--wa-color-neutral-80: var(--hot-color-neutral-200);
|
|
24
|
-
--wa-color-neutral-70: var(--hot-color-neutral-300);
|
|
25
|
-
--wa-color-neutral-60: var(--hot-color-neutral-400);
|
|
26
|
-
--wa-color-neutral-50: var(--hot-color-neutral-500);
|
|
27
|
-
--wa-color-neutral-40: var(--hot-color-neutral-600);
|
|
28
|
-
--wa-color-neutral-30: var(--hot-color-neutral-700);
|
|
29
|
-
--wa-color-neutral-20: var(--hot-color-neutral-800);
|
|
30
|
-
--wa-color-neutral-10: var(--hot-color-neutral-900);
|
|
31
|
-
--wa-color-neutral-05: var(--hot-color-neutral-950);
|
|
32
|
-
--wa-color-neutral: var(--wa-color-neutral-40);
|
|
33
|
-
--wa-color-neutral-key: 40;
|
|
34
|
-
|
|
35
|
-
/* Success colors - Map to HOT success colors */
|
|
36
|
-
--wa-color-success-95: var(--hot-color-success-50);
|
|
37
|
-
--wa-color-success-90: var(--hot-color-success-100);
|
|
38
|
-
--wa-color-success-80: var(--hot-color-success-200);
|
|
39
|
-
--wa-color-success-70: var(--hot-color-success-300);
|
|
40
|
-
--wa-color-success-60: var(--hot-color-success-400);
|
|
41
|
-
--wa-color-success-50: var(--hot-color-success-500);
|
|
42
|
-
--wa-color-success-40: var(--hot-color-success-600);
|
|
43
|
-
--wa-color-success-30: var(--hot-color-success-700);
|
|
44
|
-
--wa-color-success-20: var(--hot-color-success-800);
|
|
45
|
-
--wa-color-success-10: var(--hot-color-success-900);
|
|
46
|
-
--wa-color-success-05: var(--hot-color-success-950);
|
|
47
|
-
--wa-color-success: var(--wa-color-success-60);
|
|
48
|
-
--wa-color-success-key: 60;
|
|
49
|
-
|
|
50
|
-
/* Warning colors - Map to HOT warning colors */
|
|
51
|
-
--wa-color-warning-95: var(--hot-color-warning-50);
|
|
52
|
-
--wa-color-warning-90: var(--hot-color-warning-100);
|
|
53
|
-
--wa-color-warning-80: var(--hot-color-warning-200);
|
|
54
|
-
--wa-color-warning-70: var(--hot-color-warning-300);
|
|
55
|
-
--wa-color-warning-60: var(--hot-color-warning-400);
|
|
56
|
-
--wa-color-warning-50: var(--hot-color-warning-500);
|
|
57
|
-
--wa-color-warning-40: var(--hot-color-warning-600);
|
|
58
|
-
--wa-color-warning-30: var(--hot-color-warning-700);
|
|
59
|
-
--wa-color-warning-20: var(--hot-color-warning-800);
|
|
60
|
-
--wa-color-warning-10: var(--hot-color-warning-900);
|
|
61
|
-
--wa-color-warning-05: var(--hot-color-warning-950);
|
|
62
|
-
--wa-color-warning: var(--wa-color-warning-80);
|
|
63
|
-
--wa-color-warning-key: 80;
|
|
64
|
-
|
|
65
|
-
/* Danger colors - Map to HOT danger colors */
|
|
66
|
-
--wa-color-danger-95: var(--hot-color-danger-50);
|
|
67
|
-
--wa-color-danger-90: var(--hot-color-danger-100);
|
|
68
|
-
--wa-color-danger-80: var(--hot-color-danger-200);
|
|
69
|
-
--wa-color-danger-70: var(--hot-color-danger-300);
|
|
70
|
-
--wa-color-danger-60: var(--hot-color-danger-400);
|
|
71
|
-
--wa-color-danger-50: var(--hot-color-danger-500);
|
|
72
|
-
--wa-color-danger-40: var(--hot-color-danger-600);
|
|
73
|
-
--wa-color-danger-30: var(--hot-color-danger-700);
|
|
74
|
-
--wa-color-danger-20: var(--hot-color-danger-800);
|
|
75
|
-
--wa-color-danger-10: var(--hot-color-danger-900);
|
|
76
|
-
--wa-color-danger-05: var(--hot-color-danger-950);
|
|
77
|
-
--wa-color-danger: var(--wa-color-danger-50);
|
|
78
|
-
--wa-color-danger-key: 50;
|
|
79
|
-
|
|
80
|
-
/* Direct color mappings for compatibility */
|
|
81
|
-
--wa-color-red-95: var(--hot-color-red-50);
|
|
82
|
-
--wa-color-red-90: var(--hot-color-red-100);
|
|
83
|
-
--wa-color-red-80: var(--hot-color-red-200);
|
|
84
|
-
--wa-color-red-70: var(--hot-color-red-300);
|
|
85
|
-
--wa-color-red-60: var(--hot-color-red-400);
|
|
86
|
-
--wa-color-red-50: var(--hot-color-red-500);
|
|
87
|
-
--wa-color-red-40: var(--hot-color-red-600);
|
|
88
|
-
--wa-color-red-30: var(--hot-color-red-700);
|
|
89
|
-
--wa-color-red-20: var(--hot-color-red-800);
|
|
90
|
-
--wa-color-red-10: var(--hot-color-red-900);
|
|
91
|
-
--wa-color-red-05: var(--hot-color-red-950);
|
|
92
|
-
--wa-color-red: var(--wa-color-red-50);
|
|
93
|
-
--wa-color-red-key: 50;
|
|
94
|
-
|
|
95
|
-
--wa-color-purple-50: var(--hot-color-rose-50);
|
|
96
|
-
--wa-color-indigo-50: var(--hot-color-blue-50);
|
|
97
|
-
|
|
98
|
-
/* WebAwesome shadow variables */
|
|
99
|
-
--wa-shadow-x-small: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
100
|
-
--wa-shadow-small: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
|
|
101
|
-
--wa-shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
102
|
-
--wa-shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
103
|
-
--wa-shadow-x-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
104
|
-
|
|
105
|
-
--wa-shadow-s: var(--wa-shadow-small);
|
|
106
|
-
--wa-shadow-m: var(--wa-shadow-medium);
|
|
107
|
-
--wa-shadow-l: var(--wa-shadow-large);
|
|
108
|
-
|
|
109
|
-
/* HOT Color Primitives */
|
|
110
|
-
--hot-color-red-950: #A52A28;
|
|
111
|
-
--hot-color-red-900: #B9302D;
|
|
112
|
-
--hot-color-red-800: #B83032;
|
|
113
|
-
--hot-color-red-700: #C53639;
|
|
114
|
-
--hot-color-red-600: #D73F3F;
|
|
115
|
-
--hot-color-red-500: #F34D47;
|
|
116
|
-
--hot-color-red-400: #ED5C5E;
|
|
117
|
-
--hot-color-red-300: #E27A7D;
|
|
118
|
-
--hot-color-red-200: #EC9EA1;
|
|
119
|
-
--hot-color-red-100: #FDD0D6;
|
|
120
|
-
--hot-color-red-50: #FEECEF;
|
|
121
|
-
|
|
122
|
-
--hot-color-rose-950: #3E030B;
|
|
123
|
-
--hot-color-rose-900: #4B040E;
|
|
124
|
-
--hot-color-rose-800: #5C1517;
|
|
125
|
-
--hot-color-rose-700: #6B231D;
|
|
126
|
-
--hot-color-rose-600: #7C2E26;
|
|
127
|
-
--hot-color-rose-500: #7D463F;
|
|
128
|
-
--hot-color-rose-400: #9E6960;
|
|
129
|
-
--hot-color-rose-300: #B3837B;
|
|
130
|
-
--hot-color-rose-200: #CFA59E;
|
|
131
|
-
--hot-color-rose-100: #EAC7C0;
|
|
132
|
-
--hot-color-rose-50: #FFE6DE;
|
|
133
|
-
|
|
134
|
-
--hot-color-yellow-950: #CC6508;
|
|
135
|
-
--hot-color-yellow-900: #E8750C;
|
|
136
|
-
--hot-color-yellow-800: #F77D0F;
|
|
137
|
-
--hot-color-yellow-700: #FAA71E;
|
|
138
|
-
--hot-color-yellow-600: #FCBF26;
|
|
139
|
-
--hot-color-yellow-500: #FED82E;
|
|
140
|
-
--hot-color-yellow-400: #FAE62E;
|
|
141
|
-
--hot-color-yellow-300: #FDEB51;
|
|
142
|
-
--hot-color-yellow-200: #FFF072;
|
|
143
|
-
--hot-color-yellow-100: #FFF59B;
|
|
144
|
-
--hot-color-yellow-50: #FFF9C3;
|
|
145
|
-
|
|
146
|
-
--hot-color-blue-950: #111C31;
|
|
147
|
-
--hot-color-blue-900: #182642;
|
|
148
|
-
--hot-color-blue-800: #20365B;
|
|
149
|
-
--hot-color-blue-700: #263F68;
|
|
150
|
-
--hot-color-blue-600: #2E4873;
|
|
151
|
-
--hot-color-blue-500: #344F7B;
|
|
152
|
-
--hot-color-blue-400: #53688B;
|
|
153
|
-
--hot-color-blue-300: #71829E;
|
|
154
|
-
--hot-color-blue-200: #97A5BA;
|
|
155
|
-
--hot-color-blue-100: #BFC8D6;
|
|
156
|
-
--hot-color-blue-50: #E6E9EE;
|
|
157
|
-
|
|
158
|
-
--hot-color-cyan-950: #2B514F;
|
|
159
|
-
--hot-color-cyan-900: #366361;
|
|
160
|
-
--hot-color-cyan-800: #408789;
|
|
161
|
-
--hot-color-cyan-700: #459BA0;
|
|
162
|
-
--hot-color-cyan-600: #4BB1B9;
|
|
163
|
-
--hot-color-cyan-500: #50C1CB;
|
|
164
|
-
--hot-color-cyan-400: #58CBD1;
|
|
165
|
-
--hot-color-cyan-300: #6AD4D9;
|
|
166
|
-
--hot-color-cyan-200: #8FE1E3;
|
|
167
|
-
--hot-color-cyan-100: #B9EDED;
|
|
168
|
-
--hot-color-cyan-50: #E3F8F8;
|
|
169
|
-
|
|
170
|
-
--hot-color-gray-950: #2C3038;
|
|
171
|
-
--hot-color-gray-900: #404248;
|
|
172
|
-
--hot-color-gray-800: #515057;
|
|
173
|
-
--hot-color-gray-700: #615F66;
|
|
174
|
-
--hot-color-gray-600: #716F73;
|
|
175
|
-
--hot-color-gray-500: #828085;
|
|
176
|
-
--hot-color-gray-400: #9A969B;
|
|
177
|
-
--hot-color-gray-300: #B3B0B3;
|
|
178
|
-
--hot-color-gray-200: #C4C3C5;
|
|
179
|
-
--hot-color-gray-100: #E1E0E1;
|
|
180
|
-
--hot-color-gray-50: #F3F3F3;
|
|
181
|
-
|
|
182
|
-
/* HOT Semantic Colors */
|
|
183
|
-
--hot-color-primary-950: var(--hot-color-red-950);
|
|
184
|
-
--hot-color-primary-900: var(--hot-color-red-900);
|
|
185
|
-
--hot-color-primary-800: var(--hot-color-red-800);
|
|
186
|
-
--hot-color-primary-700: var(--hot-color-red-700);
|
|
187
|
-
--hot-color-primary-600: var(--hot-color-red-600);
|
|
188
|
-
--hot-color-primary-500: var(--hot-color-red-500);
|
|
189
|
-
--hot-color-primary-400: var(--hot-color-red-400);
|
|
190
|
-
--hot-color-primary-300: var(--hot-color-red-300);
|
|
191
|
-
--hot-color-primary-200: var(--hot-color-red-200);
|
|
192
|
-
--hot-color-primary-100: var(--hot-color-red-100);
|
|
193
|
-
--hot-color-primary-50: var(--hot-color-red-50);
|
|
194
|
-
|
|
195
|
-
--hot-color-danger-950: var(--hot-color-red-950);
|
|
196
|
-
--hot-color-danger-900: var(--hot-color-red-900);
|
|
197
|
-
--hot-color-danger-800: var(--hot-color-red-800);
|
|
198
|
-
--hot-color-danger-700: var(--hot-color-red-700);
|
|
199
|
-
--hot-color-danger-600: var(--hot-color-red-600);
|
|
200
|
-
--hot-color-danger-500: var(--hot-color-red-500);
|
|
201
|
-
--hot-color-danger-400: var(--hot-color-red-400);
|
|
202
|
-
--hot-color-danger-300: var(--hot-color-red-300);
|
|
203
|
-
--hot-color-danger-200: var(--hot-color-red-200);
|
|
204
|
-
--hot-color-danger-100: var(--hot-color-red-100);
|
|
205
|
-
--hot-color-danger-50: var(--hot-color-red-50);
|
|
206
|
-
|
|
207
|
-
--hot-color-warning-950: var(--hot-color-yellow-950);
|
|
208
|
-
--hot-color-warning-900: var(--hot-color-yellow-900);
|
|
209
|
-
--hot-color-warning-800: var(--hot-color-yellow-800);
|
|
210
|
-
--hot-color-warning-700: var(--hot-color-yellow-700);
|
|
211
|
-
--hot-color-warning-600: var(--hot-color-yellow-600);
|
|
212
|
-
--hot-color-warning-500: var(--hot-color-yellow-500);
|
|
213
|
-
--hot-color-warning-400: var(--hot-color-yellow-400);
|
|
214
|
-
--hot-color-warning-300: var(--hot-color-yellow-300);
|
|
215
|
-
--hot-color-warning-200: var(--hot-color-yellow-200);
|
|
216
|
-
--hot-color-warning-100: var(--hot-color-yellow-100);
|
|
217
|
-
--hot-color-warning-50: var(--hot-color-yellow-50);
|
|
218
|
-
|
|
219
|
-
--hot-color-success-950: #031608;
|
|
220
|
-
--hot-color-success-900: #052310;
|
|
221
|
-
--hot-color-success-800: #0a3a1d;
|
|
222
|
-
--hot-color-success-700: #0a5027;
|
|
223
|
-
--hot-color-success-600: #036730;
|
|
224
|
-
--hot-color-success-500: #00883c;
|
|
225
|
-
--hot-color-success-400: #00ac49;
|
|
226
|
-
--hot-color-success-300: #5dc36f;
|
|
227
|
-
--hot-color-success-200: #93da98;
|
|
228
|
-
--hot-color-success-100: #c2f2c1;
|
|
229
|
-
--hot-color-success-50: #e3f9e3;
|
|
230
|
-
|
|
231
|
-
--hot-color-neutral-1000: #ffffff;
|
|
232
|
-
--hot-color-neutral-950: var(--hot-color-gray-950);
|
|
233
|
-
--hot-color-neutral-900: var(--hot-color-gray-900);
|
|
234
|
-
--hot-color-neutral-800: var(--hot-color-gray-800);
|
|
235
|
-
--hot-color-neutral-700: var(--hot-color-gray-700);
|
|
236
|
-
--hot-color-neutral-600: var(--hot-color-gray-600);
|
|
237
|
-
--hot-color-neutral-500: var(--hot-color-gray-500);
|
|
238
|
-
--hot-color-neutral-400: var(--hot-color-gray-400);
|
|
239
|
-
--hot-color-neutral-300: var(--hot-color-gray-300);
|
|
240
|
-
--hot-color-neutral-200: var(--hot-color-gray-200);
|
|
241
|
-
--hot-color-neutral-100: var(--hot-color-gray-100);
|
|
242
|
-
--hot-color-neutral-50: var(--hot-color-gray-50);
|
|
243
|
-
--hot-color-neutral-0: #000000;
|
|
244
|
-
|
|
245
|
-
/* HOT Typography */
|
|
246
|
-
--hot-font-sans: Archivo, -apple-system, Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
247
|
-
--hot-font-sans-variant: 'Barlow';
|
|
248
|
-
--hot-font-sans-variant-condensed: 'Barlow Condensed';
|
|
249
|
-
--hot-font-sefif: Georgia, 'Times New Roman', serif;
|
|
250
|
-
--hot-font-mono: Menlo, Monaco, Consolas, 'Courier New', monospace, Consolas, 'Liberation Mono', Menlo, monospace;
|
|
251
|
-
|
|
252
|
-
--hot-font-size-2x-small: 0.625rem;
|
|
253
|
-
--hot-font-size-x-small: 0.75rem;
|
|
254
|
-
--hot-font-size-small: 0.875rem;
|
|
255
|
-
--hot-font-size-medium: 1rem;
|
|
256
|
-
--hot-font-size-large: 1.25rem;
|
|
257
|
-
--hot-font-size-x-large: 1.5rem;
|
|
258
|
-
--hot-font-size-2x-large: 2.25rem;
|
|
259
|
-
--hot-font-size-3x-large: 3rem;
|
|
260
|
-
--hot-font-size-4x-large: 4.5rem;
|
|
261
|
-
|
|
262
|
-
--hot-font-weight-light: 300;
|
|
263
|
-
--hot-font-weight-normal: 400;
|
|
264
|
-
--hot-font-weight-semibold: 500;
|
|
265
|
-
--hot-font-weight-bold: 700;
|
|
266
|
-
|
|
267
|
-
--hot-letter-spacing-denser: -0.03em;
|
|
268
|
-
--hot-letter-spacing-dense: -0.015em;
|
|
269
|
-
--hot-letter-spacing-normal: normal;
|
|
270
|
-
--hot-letter-spacing-loose: 0.075em;
|
|
271
|
-
--hot-letter-spacing-looser: 0.15em;
|
|
272
|
-
|
|
273
|
-
--hot-line-height-denser: 1;
|
|
274
|
-
--hot-line-height-dense: 1.4;
|
|
275
|
-
--hot-line-height-normal: 1.8;
|
|
276
|
-
--hot-line-height-loose: 2.2;
|
|
277
|
-
--hot-line-height-looser: 2.6;
|
|
278
|
-
|
|
279
|
-
/* HOT Spacing */
|
|
280
|
-
--hot-spacing-3x-small: 0.125rem;
|
|
281
|
-
--hot-spacing-2x-small: 0.25rem;
|
|
282
|
-
--hot-spacing-x-small: 0.5rem;
|
|
283
|
-
--hot-spacing-small: 0.75rem;
|
|
284
|
-
--hot-spacing-medium: 1rem;
|
|
285
|
-
--hot-spacing-large: 1.25rem;
|
|
286
|
-
--hot-spacing-x-large: 1.75rem;
|
|
287
|
-
--hot-spacing-2x-large: 2.25rem;
|
|
288
|
-
--hot-spacing-3x-large: 3rem;
|
|
289
|
-
--hot-spacing-4x-large: 4.5rem;
|
|
290
|
-
|
|
291
|
-
/* HOT Border Radius */
|
|
292
|
-
--hot-border-radius-small: 0.1875rem;
|
|
293
|
-
--hot-border-radius-medium: 0.25rem;
|
|
294
|
-
--hot-border-radius-large: 0.5rem;
|
|
295
|
-
--hot-border-radius-x-large: 1rem;
|
|
296
|
-
--hot-border-radius-circle: 50%;
|
|
297
|
-
--hot-border-radius-pill: 9999px;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/* Custom button styles for login button */
|
|
301
|
-
:host(.login-button)::part(base) {
|
|
302
|
-
background-color: var(--wa-color-brand-500);
|
|
303
|
-
color: white;
|
|
304
|
-
font-weight: var(--hot-font-weight-semibold);
|
|
305
|
-
padding: 0.6rem 1.2rem;
|
|
306
|
-
border-radius: var(--hot-border-radius-large);
|
|
307
|
-
border: none;
|
|
308
|
-
transition: background-color 0.2s ease;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
:host(.login-button)::part(base):hover {
|
|
312
|
-
background-color: var(--wa-color-brand-600);
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
:host(.login-button)::part(base):active {
|
|
316
|
-
background-color: var(--wa-color-brand-700);
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
/* Enhanced primary button styling with CSS parts */
|
|
320
|
-
:host([variant="primary"])::part(base) {
|
|
321
|
-
background: linear-gradient(135deg, var(--hot-color-red-500), var(--hot-color-red-600));
|
|
322
|
-
border: 1px solid var(--hot-color-red-600);
|
|
323
|
-
color: white;
|
|
324
|
-
box-shadow: 0 2px 4px rgba(211, 63, 63, 0.3);
|
|
325
|
-
transition: all 0.2s ease;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
:host([variant="primary"])::part(base):hover {
|
|
329
|
-
background: linear-gradient(135deg, var(--hot-color-red-600), var(--hot-color-red-700));
|
|
330
|
-
border-color: var(--hot-color-red-700);
|
|
331
|
-
box-shadow: 0 4px 8px rgba(211, 63, 63, 0.4);
|
|
332
|
-
transform: translateY(-1px);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
:host([variant="primary"])::part(base):active {
|
|
336
|
-
background: linear-gradient(135deg, var(--hot-color-red-700), var(--hot-color-red-800));
|
|
337
|
-
border-color: var(--hot-color-red-800);
|
|
338
|
-
box-shadow: 0 1px 3px rgba(211, 63, 63, 0.3);
|
|
339
|
-
transform: translateY(0);
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
:host([variant="primary"])::part(base):focus-visible {
|
|
343
|
-
outline: 2px solid var(--hot-color-red-400);
|
|
344
|
-
outline-offset: 2px;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
/* Brand variant button styling (alternative to primary) */
|
|
348
|
-
:host([variant="brand"])::part(base) {
|
|
349
|
-
background: linear-gradient(135deg, var(--hot-color-red-500), var(--hot-color-red-600));
|
|
350
|
-
border: 1px solid var(--hot-color-red-600);
|
|
351
|
-
color: white;
|
|
352
|
-
box-shadow: 0 2px 4px rgba(211, 63, 63, 0.3);
|
|
353
|
-
transition: all 0.2s ease;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
:host([variant="brand"])::part(base):hover {
|
|
357
|
-
background: linear-gradient(135deg, var(--hot-color-red-600), var(--hot-color-red-700));
|
|
358
|
-
border-color: var(--hot-color-red-700);
|
|
359
|
-
box-shadow: 0 4px 8px rgba(211, 63, 63, 0.4);
|
|
360
|
-
transform: translateY(-1px);
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
:host([variant="brand"])::part(base):active {
|
|
364
|
-
background: linear-gradient(135deg, var(--hot-color-red-700), var(--hot-color-red-800));
|
|
365
|
-
border-color: var(--hot-color-red-800);
|
|
366
|
-
box-shadow: 0 1px 3px rgba(211, 63, 63, 0.3);
|
|
367
|
-
transform: translateY(0);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
/* Outline variant with hot-red-color */
|
|
371
|
-
:host([variant="outline"])::part(base) {
|
|
372
|
-
background: transparent;
|
|
373
|
-
border: 2px solid var(--hot-color-red-500);
|
|
374
|
-
color: var(--hot-color-red-500);
|
|
375
|
-
transition: all 0.2s ease;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
:host([variant="outline"])::part(base):hover {
|
|
379
|
-
background: var(--hot-color-red-50);
|
|
380
|
-
border-color: var(--hot-color-red-600);
|
|
381
|
-
color: var(--hot-color-red-600);
|
|
382
|
-
box-shadow: 0 2px 4px rgba(211, 63, 63, 0.2);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
:host([variant="outline"])::part(base):active {
|
|
386
|
-
background: var(--hot-color-red-100);
|
|
387
|
-
border-color: var(--hot-color-red-700);
|
|
388
|
-
color: var(--hot-color-red-700);
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
/* Text variant with hot-red-color */
|
|
392
|
-
:host([variant="text"])::part(base) {
|
|
393
|
-
background: transparent;
|
|
394
|
-
border: none;
|
|
395
|
-
color: var(--hot-color-red-500);
|
|
396
|
-
transition: all 0.2s ease;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
:host([variant="text"])::part(base):hover {
|
|
400
|
-
background: var(--hot-color-red-50);
|
|
401
|
-
color: var(--hot-color-red-600);
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
:host([variant="text"])::part(base):active {
|
|
405
|
-
background: var(--hot-color-red-100);
|
|
406
|
-
color: var(--hot-color-red-700);
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
/* Enhanced button label styling */
|
|
410
|
-
:host::part(label) {
|
|
411
|
-
font-family: var(--hot-font-sans);
|
|
412
|
-
font-weight: 500;
|
|
413
|
-
letter-spacing: 0.025em;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
/* Button states */
|
|
417
|
-
:host:state(disabled)::part(base) {
|
|
418
|
-
opacity: 0.5;
|
|
419
|
-
cursor: not-allowed;
|
|
420
|
-
transform: none;
|
|
421
|
-
box-shadow: none;
|
|
422
|
-
background: var(--hot-color-gray-200);
|
|
423
|
-
border-color: var(--hot-color-gray-300);
|
|
424
|
-
color: var(--hot-color-gray-500);
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
:host:state(loading)::part(base) {
|
|
428
|
-
cursor: wait;
|
|
429
|
-
position: relative;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
/* Focus styles for accessibility */
|
|
433
|
-
:host::part(base):focus-visible {
|
|
434
|
-
outline: 2px solid var(--hot-color-red-400);
|
|
435
|
-
outline-offset: 2px;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
/* Gradient button styles */
|
|
439
|
-
:host(.gradient-button)::part(base) {
|
|
440
|
-
background: linear-gradient(217deg, var(--wa-color-indigo-50), var(--wa-color-purple-50), var(--wa-color-red-50));
|
|
441
|
-
border: solid 1px var(--wa-color-purple-50);
|
|
442
|
-
transition: transform 100ms, box-shadow 100ms;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
:host(.gradient-button)::part(base):hover {
|
|
446
|
-
box-shadow: var(--wa-shadow-m, 0 4px 8px rgba(0, 0, 0, 0.1));
|
|
447
|
-
transform: translateY(-3px);
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
:host(.gradient-button)::part(base):active {
|
|
451
|
-
box-shadow: inset var(--wa-shadow-s, inset 0 2px 4px rgba(0, 0, 0, 0.1));
|
|
452
|
-
transform: translateY(0);
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
:host(.gradient-button)::part(label) {
|
|
456
|
-
color: white;
|
|
457
|
-
text-shadow: rgb(0 0 0 / 0.3) 0 -1px;
|
|
458
|
-
}
|
|
459
|
-
`,selector:"wa-button",all:!0,styleId:"hot-theme-variables"})}function nt(){Fa();let o=["wa-tab-group","wa-dialog","wa-drawer","wa-icon","wa-callout","wa-card","wa-input","wa-select","wa-checkbox","wa-radio","wa-switch","wa-slider"],t=`
|
|
460
|
-
:host {
|
|
461
|
-
/* Brand colors - Primary semantic colors */
|
|
462
|
-
--wa-color-brand-95: var(--hot-color-primary-50);
|
|
463
|
-
--wa-color-brand-90: var(--hot-color-primary-100);
|
|
464
|
-
--wa-color-brand-80: var(--hot-color-primary-200);
|
|
465
|
-
--wa-color-brand-70: var(--hot-color-primary-300);
|
|
466
|
-
--wa-color-brand-60: var(--hot-color-primary-400);
|
|
467
|
-
--wa-color-brand-50: var(--hot-color-primary-500);
|
|
468
|
-
--wa-color-brand-40: var(--hot-color-primary-600);
|
|
469
|
-
--wa-color-brand-30: var(--hot-color-primary-700);
|
|
470
|
-
--wa-color-brand-20: var(--hot-color-primary-800);
|
|
471
|
-
--wa-color-brand-10: var(--hot-color-primary-900);
|
|
472
|
-
--wa-color-brand-05: var(--hot-color-primary-950);
|
|
473
|
-
--wa-color-brand: var(--wa-color-brand-50);
|
|
474
|
-
|
|
475
|
-
/* Neutral colors - For text, borders, backgrounds */
|
|
476
|
-
--wa-color-neutral-95: var(--hot-color-neutral-50);
|
|
477
|
-
--wa-color-neutral-90: var(--hot-color-neutral-100);
|
|
478
|
-
--wa-color-neutral-80: var(--hot-color-neutral-200);
|
|
479
|
-
--wa-color-neutral-70: var(--hot-color-neutral-300);
|
|
480
|
-
--wa-color-neutral-60: var(--hot-color-neutral-400);
|
|
481
|
-
--wa-color-neutral-50: var(--hot-color-neutral-500);
|
|
482
|
-
--wa-color-neutral-40: var(--hot-color-neutral-600);
|
|
483
|
-
--wa-color-neutral-30: var(--hot-color-neutral-700);
|
|
484
|
-
--wa-color-neutral-20: var(--hot-color-neutral-800);
|
|
485
|
-
--wa-color-neutral-10: var(--hot-color-neutral-900);
|
|
486
|
-
--wa-color-neutral-05: var(--hot-color-neutral-950);
|
|
487
|
-
--wa-color-neutral: var(--wa-color-neutral-40);
|
|
488
|
-
|
|
489
|
-
/* Success colors */
|
|
490
|
-
--wa-color-success-95: var(--hot-color-success-50);
|
|
491
|
-
--wa-color-success-90: var(--hot-color-success-100);
|
|
492
|
-
--wa-color-success-50: var(--hot-color-success-500);
|
|
493
|
-
--wa-color-success-40: var(--hot-color-success-600);
|
|
494
|
-
--wa-color-success: var(--wa-color-success-60);
|
|
495
|
-
|
|
496
|
-
/* Warning colors */
|
|
497
|
-
--wa-color-warning-95: var(--hot-color-warning-50);
|
|
498
|
-
--wa-color-warning-90: var(--hot-color-warning-100);
|
|
499
|
-
--wa-color-warning-50: var(--hot-color-warning-500);
|
|
500
|
-
--wa-color-warning-40: var(--hot-color-warning-600);
|
|
501
|
-
--wa-color-warning: var(--wa-color-warning-80);
|
|
502
|
-
|
|
503
|
-
/* Danger colors */
|
|
504
|
-
--wa-color-danger-95: var(--hot-color-danger-50);
|
|
505
|
-
--wa-color-danger-90: var(--hot-color-danger-100);
|
|
506
|
-
--wa-color-danger-50: var(--hot-color-danger-500);
|
|
507
|
-
--wa-color-danger-40: var(--hot-color-danger-600);
|
|
508
|
-
--wa-color-danger: var(--wa-color-danger-50);
|
|
509
|
-
|
|
510
|
-
/* HOT Typography for components */
|
|
511
|
-
--wa-font-family-body: var(--hot-font-sans);
|
|
512
|
-
--wa-font-family-heading: var(--hot-font-sans-variant);
|
|
513
|
-
}
|
|
514
|
-
`;o.forEach(e=>{Kn({css:t,selector:e,all:!0,styleId:"hot-theme-essential-variables"})})}function Gn(){nt(),new MutationObserver(t=>{t.forEach(e=>{e.addedNodes.forEach(n=>{if(n.nodeType===Node.ELEMENT_NODE){let a=n;a.tagName.toLowerCase().startsWith("wa-")&&setTimeout(()=>nt(),10),a.querySelectorAll('[tag-name^="wa-"], wa-button, wa-tab-group, wa-dialog, wa-drawer, wa-icon').length>0&&setTimeout(()=>nt(),10)}})})}).observe(document.body,{childList:!0,subtree:!0})}var Wa=`data:image/svg+xml;utf8,${encodeURIComponent(qn)}`;Go();var $n,Zn,Vn,Jn,Yn,Qn,Xn,er,tr,or,nr,rr,Ae=class extends Ro{constructor(){super(...arguments);this.name="hot-header";De(this,$n,"");De(this,Zn,"");De(this,Vn,!0);De(this,Jn,[]);De(this,Yn,[]);De(this,Qn,"small");De(this,Xn,!0);De(this,er,0);De(this,tr,0);De(this,or,!1);De(this,nr,!1);De(this,rr,"user")}get title(){return Te(this,$n)}set title(e){Me(this,$n,e)}get logo(){return Te(this,Zn)}set logo(e){Me(this,Zn,e)}get drawer(){return Te(this,Vn)}set drawer(e){Me(this,Vn,e)}get tabs(){return Te(this,Jn)}set tabs(e){Me(this,Jn,e)}get drawerLinks(){return Te(this,Yn)}set drawerLinks(e){Me(this,Yn,e)}get size(){return Te(this,Qn)}set size(e){Me(this,Qn,e)}get borderBottom(){return Te(this,Xn)}set borderBottom(e){Me(this,Xn,e)}get selectedTab(){return Te(this,er)}set selectedTab(e){Me(this,er,e)}get activeTabIndex(){return Te(this,tr)}set activeTabIndex(e){Me(this,tr,e)}get showLogin(){return Te(this,or)}set showLogin(e){Me(this,or,e)}get loginModalOpen(){return Te(this,nr)}set loginModalOpen(e){Me(this,nr,e)}get defaultLoginIcon(){return Te(this,rr)}set defaultLoginIcon(e){Me(this,rr,e)}async connectedCallback(){super.connectedCallback(),Gn(),await Rn("https://dev.login.hotosm.org",{shadow:!1,sessionCheckInterval:3e4}).catch(e=>{})}firstUpdated(){setTimeout(()=>{nt()},100)}updated(){requestAnimationFrame(()=>{nt()})}selectTab(e){if(console.log("Selecting tab:",e),e!==this.selectedTab&&e>=0&&e<this.tabs.length){let n=this.selectedTab;this.selectedTab=e,this.activeTabIndex=e,this.dispatchEvent(new CustomEvent("tab-change",{detail:{selectedIndex:e,previousIndex:n,tab:this.tabs[e]},bubbles:!0})),this.requestUpdate()}}render(){let e=typeof this.logo=="string"||this.logo instanceof URL?typeof this.logo=="string"?this.logo:this.logo.href:"";return We`
|
|
515
|
-
<header class=${qo({size:this.size,borderBottom:this.borderBottom})}>
|
|
516
|
-
<a href="/" class="header--link">
|
|
517
|
-
${e.length>0?We`
|
|
518
|
-
<img
|
|
519
|
-
id="logo"
|
|
520
|
-
src="${this.logo}"
|
|
521
|
-
alt="Logo"
|
|
522
|
-
class="header--logo-img"
|
|
523
|
-
/>
|
|
524
|
-
`:We`
|
|
525
|
-
<hot-logo
|
|
526
|
-
?iconOnly="${this.title.length>0}"
|
|
527
|
-
>
|
|
528
|
-
</hot-logo>
|
|
529
|
-
`}
|
|
530
|
-
${this.title.length>0?We`
|
|
531
|
-
<h1 class="header--title">
|
|
532
|
-
${this.title}
|
|
533
|
-
</h1>
|
|
534
|
-
`:null}
|
|
535
|
-
</a>
|
|
536
|
-
|
|
537
|
-
${""}
|
|
538
|
-
<nav
|
|
539
|
-
class="header--nav"
|
|
540
|
-
>
|
|
541
|
-
${this.tabs.length>0?We`
|
|
542
|
-
<wa-tab-group
|
|
543
|
-
class="header--tab-group"
|
|
544
|
-
@wa-tab-show=${n=>this._handleTabShow(n)}
|
|
545
|
-
>
|
|
546
|
-
${this.tabs.map((n,a)=>{let i=this.activeTabIndex===a;return We`
|
|
547
|
-
<wa-tab
|
|
548
|
-
panel="${n.label}-${a}"
|
|
549
|
-
class="header--tab"
|
|
550
|
-
slot="nav"
|
|
551
|
-
?active=${i}
|
|
552
|
-
data-index="${a}"
|
|
553
|
-
@click=${s=>this._tabClick(s,n.clickEvent,a)}
|
|
554
|
-
>
|
|
555
|
-
${n.label}
|
|
556
|
-
</wa-tab>
|
|
557
|
-
`})}
|
|
558
|
-
</wa-tab-group>
|
|
559
|
-
`:null}
|
|
560
|
-
</nav>
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
<div id="right-section" class="header--right-section">
|
|
565
|
-
${this.showLogin?We`
|
|
566
|
-
<wa-button
|
|
567
|
-
variant="brand"
|
|
568
|
-
class="login-button"
|
|
569
|
-
@click=${()=>this._handleLogin()}
|
|
570
|
-
>
|
|
571
|
-
Login
|
|
572
|
-
</wa-button>
|
|
573
|
-
`:null}
|
|
574
|
-
${this.drawer?We`
|
|
575
|
-
<wa-drawer label=" " id="drawer-overview">
|
|
576
|
-
<ul style="list-style: none; padding: 0; margin: 0;">
|
|
577
|
-
${this.drawerLinks.map(n=>We`
|
|
578
|
-
<li style="margin: 1.5rem 0;">
|
|
579
|
-
<a href="${n.href}" style="color: inherit; text-decoration: none; font-size: 1.2rem;">${n.label}</a>
|
|
580
|
-
</li>
|
|
581
|
-
`)}
|
|
582
|
-
</ul>
|
|
583
|
-
</wa-drawer>
|
|
584
|
-
<wa-button appearance="outlined" @click=${()=>this._handleDrawerOpen()}>
|
|
585
|
-
<wa-icon name="bars"></wa-icon>
|
|
586
|
-
</wa-button>
|
|
587
|
-
`:null}
|
|
588
|
-
</div>
|
|
589
|
-
|
|
590
|
-
<!-- Login Modal -->
|
|
591
|
-
${this.showLogin?We`
|
|
592
|
-
<wa-dialog
|
|
593
|
-
class="login-modal"
|
|
594
|
-
?open=${this.loginModalOpen}
|
|
595
|
-
@wa-hide=${()=>this._handleModalClose()}
|
|
596
|
-
>
|
|
597
|
-
<wa-button appearance="outlined" @click=${()=>this._handleModalClose()}>
|
|
598
|
-
<wa-icon name="xmark"></wa-icon>
|
|
599
|
-
</wa-button>
|
|
600
|
-
|
|
601
|
-
<hanko-auth redirect-to="${location.origin}"></hanko-auth>
|
|
602
|
-
</wa-dialog>
|
|
603
|
-
`:null}
|
|
604
|
-
</header>
|
|
605
|
-
|
|
606
|
-
<!-- Here we must directly include the hanko style overrides, as it includes a SVG -->
|
|
607
|
-
<!-- Note we can't remove the existing svg, so need to hide and override it -->
|
|
608
|
-
<!-- THIS ISN'T WORKING WELL. We can either try and fix the styling or perhaps manipulate the DOM via Javascript instead?? -->
|
|
609
|
-
<style>
|
|
610
|
-
.hanko_form #icon-custom-provider {
|
|
611
|
-
display: none;
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
.hanko_form .hanko_loadingSpinnerWrapperIcon:has(#icon-custom-provider) {
|
|
615
|
-
background: url("${Wa}") no-repeat center center;
|
|
616
|
-
background-size: contain;
|
|
617
|
-
display: inline-flex;
|
|
618
|
-
align-items: center;
|
|
619
|
-
height: 100%;
|
|
620
|
-
margin: 0 5px;
|
|
621
|
-
justify-content: inherit;
|
|
622
|
-
flex-wrap: inherit;
|
|
623
|
-
width: 100%;
|
|
624
|
-
column-gap: 10px;
|
|
625
|
-
margin-left: 10px;
|
|
626
|
-
}
|
|
627
|
-
</style>
|
|
628
|
-
`}async _tabClick(e,n,a){e.preventDefault(),e.stopPropagation();try{this.selectTab(a),setTimeout(async()=>{try{typeof n=="function"&&await n()}catch(i){console.error("Error during navigation:",i),typeof n=="function"&&n()}},0)}catch(i){console.error("Error handling tab click:",i);try{typeof n=="function"&&n()}catch(s){console.error("Fallback navigation also failed:",s)}}}_handleTabShow(e){try{let n=e.target,a=parseInt(n.getAttribute("data-index")||"0",10);if(!isNaN(a)&&a<this.tabs.length){let i=this.tabs[a].clickEvent;typeof i=="function"&&i()}}catch(n){console.error("Error handling tab show event:",n)}}_handleLogin(){this.loginModalOpen=!0,this.dispatchEvent(new Event("login"))}_handleModalClose(){this.loginModalOpen=!1}_handleDrawerOpen(){var n;let e=(n=this.renderRoot)==null?void 0:n.querySelector("#drawer-overview");e&&(e.open=!0)}};$n=new WeakMap,Zn=new WeakMap,Vn=new WeakMap,Jn=new WeakMap,Yn=new WeakMap,Qn=new WeakMap,Xn=new WeakMap,er=new WeakMap,tr=new WeakMap,or=new WeakMap,nr=new WeakMap,rr=new WeakMap,Ae.styles=[Ko],Pe([Le({type:String})],Ae.prototype,"title",1),Pe([Le({type:String})],Ae.prototype,"logo",1),Pe([Le({type:Boolean})],Ae.prototype,"drawer",1),Pe([Le({type:Array})],Ae.prototype,"tabs",1),Pe([Le({type:Array})],Ae.prototype,"drawerLinks",1),Pe([Le({type:String})],Ae.prototype,"size",1),Pe([Le({type:Boolean})],Ae.prototype,"borderBottom",1),Pe([Le({type:Number})],Ae.prototype,"selectedTab",1),Pe([Le({type:Number})],Ae.prototype,"activeTabIndex",1),Pe([Le({type:Boolean})],Ae.prototype,"showLogin",1),Pe([Le({type:Boolean})],Ae.prototype,"loginModalOpen",1),Pe([Le({type:String,attribute:"default-login-icon"})],Ae.prototype,"defaultLoginIcon",1);var Di=Ae;export{Kn as a,Fa as b,nt as c,Gn as d,Ae as e,Di as f};
|
|
629
|
-
/*! Bundled license information:
|
|
630
|
-
|
|
631
|
-
@teamhanko/hanko-elements/dist/elements.js:
|
|
632
|
-
(*! For license information please see elements.js.LICENSE.txt *)
|
|
633
|
-
*/
|