authhero 0.184.0 → 0.185.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/dist/authhero.cjs +20 -20
- package/dist/authhero.d.ts +1 -1
- package/dist/authhero.mjs +1420 -1417
- package/dist/tailwind.css +1 -1
- package/package.json +1 -1
package/dist/authhero.cjs
CHANGED
|
@@ -198,13 +198,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
198
198
|
Copyright (c) 2018 Jed Watson.
|
|
199
199
|
Licensed under the MIT License (MIT), see
|
|
200
200
|
http://jedwatson.github.io/classnames
|
|
201
|
-
*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var o="",c=0;c<arguments.length;c++){var l=arguments[c];l&&(o=i(o,r(l)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var c="";for(var l in o)e.call(o,l)&&o[l]&&(c=i(c,l));return c}function i(o,c){return c?o?o+" "+c:o+c:o}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(ey);var x6=ey.exports;const Kn=Xm(x6),$6=t=>t==="small"?"text-base":t==="medium"?"text-2xl":t==="large"?"text-3xl":"",et=({name:t,size:e,className:n=""})=>{const r=$6(e);return v("span",{className:Kn(`uicon-${t}`,n,r)})};var Dg=Object.freeze,
|
|
201
|
+
*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var o="",c=0;c<arguments.length;c++){var l=arguments[c];l&&(o=i(o,r(l)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var c="";for(var l in o)e.call(o,l)&&o[l]&&(c=i(c,l));return c}function i(o,c){return c?o?o+" "+c:o+c:o}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(ey);var x6=ey.exports;const Kn=Xm(x6),$6=t=>t==="small"?"text-base":t==="medium"?"text-2xl":t==="large"?"text-3xl":"",et=({name:t,size:e,className:n=""})=>{const r=$6(e);return v("span",{className:Kn(`uicon-${t}`,n,r)})},A6=(t,e)=>{const n=t.replace("#",""),r=parseInt(n,16),i=r>>16&255,o=r>>8&255,c=r&255,l=Math.min(255,Math.round(i+(255-i)*e)),u=Math.min(255,Math.round(o+(255-o)*e)),d=Math.min(255,Math.round(c+(255-c)*e));return`#${(l<<16|u<<8|d).toString(16).padStart(6,"0")}`};var Dg=Object.freeze,E6=Object.defineProperty,S6=(t,e)=>Dg(E6(t,"raw",{value:Dg(t.slice())})),zg;const k6=(t,e)=>{var o,c,l,u;const n=((o=t==null?void 0:t.colors)==null?void 0:o.primary_button)||((c=e==null?void 0:e.colors)==null?void 0:c.primary)||"#000000",r=((l=t==null?void 0:t.colors)==null?void 0:l.base_hover_color)||A6(n,.2),i=((u=t==null?void 0:t.colors)==null?void 0:u.primary_button_label)||"#ffffff";return`
|
|
202
202
|
body {
|
|
203
203
|
--primary-color: ${n};
|
|
204
204
|
--primary-hover: ${r};
|
|
205
205
|
--text-on-primary: ${i};
|
|
206
206
|
}
|
|
207
|
-
`},
|
|
207
|
+
`},N6="https://assets.sesamy.com/images/login-bg.jpg",nt=({title:t,children:e,theme:n,branding:r,client:i})=>{var c;const o={backgroundImage:`url(${((c=n==null?void 0:n.page_background)==null?void 0:c.background_image_url)||N6})`};return v("html",{lang:"en",children:[v("head",{children:[v("title",{children:t}),v("meta",{charset:"UTF-8"}),v("meta",{name:"robots",content:"noindex, follow"}),v("link",{rel:"preload",href:"https://assets.sesamy.com/fonts/khteka/WOFF2/KHTeka-Regular.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),v("link",{rel:"preload",href:"https://assets.sesamy.com/fonts/khteka/WOFF2/KHTeka-Medium.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),v("link",{rel:"preload",href:"https://assets.sesamy.com/fonts/khteka/WOFF2/KHTeka-Bold.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),v("link",{rel:"stylesheet",href:"/u/css/tailwind.css"}),v("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"}),v("style",{children:k6(n,r)}),v("meta",{name:"theme-color",content:"#000000"})]}),v("body",{children:v("div",{className:"row min-h-full w-full overflow-hidden bg-cover bg-center text-sm sm:bg-fixed sm:bg-left-top sm:pt-16 py-2",style:o,children:v("div",{className:"row-up-left w-[calc(100%-theme(space.2)-theme(space.2))] max-w-[1295px] !flex-nowrap sm:w-[calc(100%-theme(space.16)-theme(space.16))]",children:v("div",{className:"column-left w-full sm:w-auto",children:[v("div",{className:"relative flex w-full flex-col rounded-2xl bg-white px-5 py-10 dark:bg-gray-800 dark:text-white sm:min-h-[700px] sm:max-w-md sm:px-14 sm:py-14 md:min-w-[448px] short:min-h-[558px] min-h-[calc(100vh-83px)]",children:[v("div",{className:"mb-16",children:v(Z1,{theme:n,branding:r})}),v("div",{className:"flex flex-1 flex-col",children:[e,v(Q1,{theme:n,branding:r,client:i})]})]}),v("div",{className:"flex w-full items-center px-6 pb-8 pt-4 justify-between",children:[v("div",{className:"flex justify-center leading-[0]",children:v("a",{href:"https://sesamy.com",target:"_blank",rel:"noreferrer",children:v(et,{name:"sesamy",className:"text-xl text-white"})})}),v("div",{className:"flex justify-center space-x-2 text-xs text-white sm:justify-normal md:text-xs"})]})]})})})}),q1(zg||(zg=S6([`
|
|
208
208
|
<script>
|
|
209
209
|
// Add loading class to submit button on form submission
|
|
210
210
|
document.addEventListener("DOMContentLoaded", function () {
|
|
@@ -225,9 +225,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
225
225
|
}
|
|
226
226
|
});
|
|
227
227
|
<\/script>
|
|
228
|
-
`])))]})},Qn=({children:t})=>v("div",{className:"mb-2 text-sm text-red",children:t}),
|
|
228
|
+
`])))]})},Qn=({children:t})=>v("div",{className:"mb-2 text-sm text-red",children:t}),C6=t=>t==="small"?"text-base":t==="medium"?"text-2xl":t==="large"?"text-3xl":"",ty=({size:t})=>{const e=C6(t);return v("div",{className:"relative inline-block leading-[0]",children:[v(et,{className:Kn("text-gray-200 dark:text-[#201a41]",{[e]:e}),name:"spinner-circle"}),v(et,{className:Kn("absolute inset-0 animate-spin text-primary",{[e]:e}),name:"spinner-inner"})]})},tt=({children:t,className:e,Component:n="button",variant:r="primary",href:i,disabled:o,isLoading:c,id:l})=>{const u=n==="a"?{href:i}:{};return v(n,{class:Kn("btn relative w-full rounded-lg text-center",{"px-4 py-5":r!=="custom","bg-primary text-textOnPrimary hover:bg-primaryHover":r==="primary","border border-gray-300 bg-white text-black":r==="secondary","pointer-events-none cursor-not-allowed opacity-40":o,"is-loading":c},"focus:outline-none focus:ring",e),type:"submit",disabled:o,id:l,...u,children:[v("span",{className:"btn-label flex items-center justify-center space-x-2",children:t}),v("div",{className:"btn-spinner absolute left-0 top-0 flex h-full w-full items-center justify-center",children:v(ty,{size:"medium"})})]})},mo=({connection:t,text:e,icon:n=null,canResize:r=!1,loginSession:i})=>{const o=new URLSearchParams({client_id:i.authParams.client_id,connection:t});i.authParams.response_type&&o.set("response_type",i.authParams.response_type),i.authParams.redirect_uri&&o.set("redirect_uri",i.authParams.redirect_uri),i.authParams.scope&&o.set("scope",i.authParams.scope),i.authParams.nonce&&o.set("nonce",i.authParams.nonce),i.authParams.response_type&&o.set("response_type",i.authParams.response_type),i.authParams.state&&o.set("state",i.id);const c=`/authorize?${o.toString()}`;return v(tt,{className:Kn("border border-gray-200 bg-white hover:bg-gray-100 dark:border-gray-400 dark:bg-black dark:hover:bg-black/90",{"px-0 py-3 sm:px-10 sm:py-4 short:px-0 short:py-3":r,"px-10 py-3":!r}),variant:"custom","aria-label":e,Component:"a",href:c,children:[n||"",v("div",{className:Kn("text-left text-black dark:text-white sm:text-base",{"hidden sm:inline short:hidden":r}),children:e})]})},ny=({...t})=>v("svg",{width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",...t,children:[v("path",{d:"M44.1035 23.0123C44.1054 21.4791 43.9758 19.9486 43.716 18.4375H22.498V27.1028H34.6507C34.4021 28.4868 33.8757 29.8061 33.1034 30.9812C32.3311 32.1562 31.3289 33.1628 30.1571 33.9401V39.5649H37.41C41.6567 35.6494 44.1035 29.859 44.1035 23.0123Z",fill:"#4285F4"}),v("path",{d:"M22.4982 44.9997C28.5698 44.9997 33.6821 43.0061 37.4101 39.5687L30.1573 33.9439C28.1386 35.3126 25.5387 36.0938 22.4982 36.0938C16.6296 36.0938 11.6485 32.1377 9.86736 26.8066H2.39575V32.6033C4.26839 36.3297 7.13989 39.4622 10.6896 41.6512C14.2394 43.8402 18.3277 44.9995 22.4982 44.9997Z",fill:"#34A853"}),v("path",{d:"M9.86737 26.8073C8.92572 24.0138 8.92572 20.9886 9.86737 18.1951V12.3984H2.39576C0.820432 15.5332 0 18.9929 0 22.5012C0 26.0095 0.820432 29.4692 2.39576 32.604L9.86737 26.8073Z",fill:"#FBBC04"}),v("path",{d:"M22.4982 8.90741C25.7068 8.85499 28.8071 10.0673 31.1291 12.2823L37.5507 5.86064C33.4788 2.03602 28.0843 -0.0637686 22.4982 0.00147616C18.3277 0.00166623 14.2394 1.16098 10.6896 3.34999C7.13989 5.539 4.26839 8.67155 2.39575 12.3979L9.86736 18.1946C11.6485 12.8635 16.6296 8.90741 22.4982 8.90741Z",fill:"#EA4335"})]}),Cn=({children:t,className:e})=>v("form",{id:"form",method:"post",className:e,children:t}),ry=({...t})=>v("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48",width:"45",height:"45",...t,children:[v("path",{fill:"#FF5B24",d:"M3.5,8h41c1.9,0,3.5,1.6,3.5,3.5v25c0,1.9-1.6,3.5-3.5,3.5h-41C1.6,40,0,38.4,0,36.5v-25C0,9.6,1.6,8,3.5,8z"}),v("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"#FFFFFF",d:`M27.9,20.3c1.4,0,2.6-1,2.6-2.5h0c0-1.5-1.2-2.5-2.6-2.5c-1.4,0-2.6,1-2.6,2.5C25.3,19.2,26.5,20.3,27.9,20.3z
|
|
229
229
|
M31.2,24.4c-1.7,2.2-3.5,3.8-6.7,3.8h0c-3.2,0-5.8-2-7.7-4.8c-0.8-1.2-2-1.4-2.9-0.8c-0.8,0.6-1,1.8-0.3,2.9
|
|
230
|
-
c2.7,4.1,6.5,6.6,10.9,6.6c4,0,7.2-2,9.6-5.2c0.9-1.2,0.9-2.5,0-3.1C33.3,22.9,32.1,23.2,31.2,24.4z`})]}),sa=({error:t,theme:e,branding:n,loginSession:r,email:i,client:o})=>{const c=o.connections.map(({strategy:M})=>M),l=c.includes("email")||c.includes("Username-Password-Authentication"),u=c.includes("sms"),d=c.includes("facebook"),p=c.includes("google-oauth2"),h=c.includes("apple"),g=c.includes("vipps"),A=d||p||h||g,m=l||u;let $="text",k="username";const S=l&&u?"email_or_phone_placeholder":l?"email_placeholder":"phone_placeholder";let b=F.t(S,l&&u?"Email or Phone Number":l?"Email Address":"Phone Number");return v(nt,{title:F.t("welcome"),theme:e,branding:n,client:o,children:[v("div",{className:"mb-4 text-lg font-medium sm:text-2xl",children:F.t("welcome")}),v("div",{className:"mb-8 text-gray-300",children:F.t("login_description_template",{authMethod:F.t(S,{defaultValue:l&&u?"email or phone number":l?"email address":"phone number"}).toLocaleLowerCase(),defaultValue:"Sign in with your {{authMethod}}"})}),v("div",{className:"flex flex-1 flex-col justify-center",children:[m&&v(Cn,{className:"mb-7",children:[v("input",{type:$,name:k,placeholder:b,className:Kn("mb-2 w-full rounded-lg border bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base",{"border-red":t,"border-gray-100 dark:border-gray-500":!t}),required:!0,value:i||""}),t&&v(Qn,{children:t}),v(tt,{className:"sm:mt-4 !text-base",children:[v("span",{children:F.t("continue")}),v(et,{className:"text-xs",name:"arrow-right"})]})]}),m&&A&&v("div",{className:"relative mb-5 block text-center text-gray-300 dark:text-gray-300",children:[v("div",{className:"absolute left-0 right-0 top-1/2 border-b border-gray-200 dark:border-gray-600"}),v("div",{className:"relative inline-block bg-white px-2 dark:bg-gray-800",children:F.t("continue_social_login")})]}),v("div",{className:"flex space-x-4 sm:flex-col sm:space-x-0 sm:space-y-4 short:flex-row short:space-x-4 short:space-y-0",children:[d&&v(mo,{connection:"facebook",text:F.t("continue_with",{provider:"Facebook"}),canResize:!0,icon:v(et,{className:"text-xl text-[#1196F5] sm:absolute sm:left-4 sm:top-1/2 sm:-translate-y-1/2 sm:text-2xl short:static short:left-auto short:top-auto short:translate-y-0 short:text-xl",name:"facebook"}),loginSession:r}),p&&v(mo,{connection:"google-oauth2",text:F.t("continue_with",{provider:"Google"}),canResize:!0,icon:v(ny,{className:"h-5 w-5 sm:absolute sm:left-4 sm:top-1/2 sm:h-6 sm:w-6 sm:-translate-y-1/2 short:static short:left-auto short:top-auto short:h-5 short:w-5 short:translate-y-0"}),loginSession:r}),h&&v(mo,{connection:"apple",text:F.t("continue_with",{provider:"Apple"}),canResize:!0,icon:v(et,{className:"text-xl text-black dark:text-white sm:absolute sm:left-4 sm:top-1/2 sm:-translate-y-1/2 sm:text-2xl short:static short:left-auto short:top-auto short:translate-y-0 short:text-xl",name:"apple"}),loginSession:r}),g&&v(mo,{connection:"vipps",text:F.t("continue_with",{provider:"Vipps"}),canResize:!0,icon:v(ry,{className:"h-5 w-5 sm:absolute sm:left-4 sm:top-1/2 sm:h-6 sm:w-6 sm:-translate-y-1/2 short:static short:left-auto short:top-auto short:h-5 short:w-5 short:translate-y-0"}),loginSession:r})]})]})]})},C6=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"}),impersonation:s.z.string().optional()})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,loginSession:i,client:o}=await Ge(t,e);return t.html(v(sa,{theme:n,branding:r,loginSession:i,client:o,email:i.authParams.username}))}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})}),body:{content:{"application/x-www-form-urlencoded":{schema:s.z.object({username:s.z.string().transform(t=>t.toLowerCase()),login_selection:s.z.enum(["code","password"]).optional()})}}}},responses:{400:{description:"Error response"},302:{description:"Redirect to enter code or password"}}}),async t=>{const{env:e}=t,{state:n}=t.req.valid("query"),r=t.req.valid("form");t.set("body",r),t.set("username",r.username);const{client:i,loginSession:o,theme:c,branding:l}=await Ge(t,n);t.set("client_id",i.id);const u=t.get("countryCode"),{normalized:d,connectionType:p}=xl(r.username,u);if(!i.connections.find(k=>k.strategy===p)||!d)return t.html(v(sa,{theme:c,branding:l,loginSession:o,error:F.t("invalid_identifier"),email:r.username,client:i}),400);const h=await No({userAdapter:e.data.users,tenant_id:i.tenant.id,username:d,provider:p});if(h&&t.set("user_id",h.user_id),!h)try{await Wb(t,i,t.env.data,d)}catch{const k=Ue(t,{type:Le.FAILED_SIGNUP,description:"Public signup is disabled"});return Pt(t,t.env.data.logs.create(i.tenant.id,k)),t.html(v(sa,{theme:c,branding:l,loginSession:o,error:F.t("user_account_does_not_exist"),email:r.username,client:i}),400)}if(o.authParams.username=d,await e.data.loginSessions.update(i.tenant.id,o.id,o),await b6(t,i,r.username,r.login_selection))return t.redirect(`/u/enter-password?state=${n}`);let g=wr(),A=await e.data.codes.get(i.tenant.id,g,"otp");for(;A;)g=wr(),A=await e.data.codes.get(i.tenant.id,g,"otp");const m=await t.env.data.codes.create(i.tenant.id,{code_id:g,code_type:"otp",login_id:o.id,expires_at:new Date(Date.now()+Xs).toISOString(),redirect_uri:o.authParams.redirect_uri}),$=i.connections.find(k=>k.strategy===p);if(!$)throw new R(400,{message:F.t("connection_not_found",{connection:p})});return p==="email"&&$.options.authentication_method==="magic_link"?await bf(t,{to:d,code:m.code_id,authParams:o.authParams}):await vf(t,{to:d,code:m.code_id}),t.redirect(`/u/enter-code?state=${n}`)}),un=t=>v("a",{className:"block text-primary hover:text-primaryHover text-center",href:`/u/login/identifier?state=${t.state}`,children:F.t("go_back")});var Wo="_hp",I6={Change:"Input",DoubleClick:"DblClick"},T6={svg:"2000/svg",math:"1998/Math/MathML"},Xo=[],Gd=new WeakMap,Ui=void 0,O6=()=>Ui,Dn=t=>"t"in t,Yl={onClick:["click",!1]},Rg=t=>{if(!t.startsWith("on"))return;if(Yl[t])return Yl[t];const e=t.match(/^on([A-Z][a-zA-Z]+?(?:PointerCapture)?)(Capture)?$/);if(e){const[,n,r]=e;return Yl[t]=[(I6[n]||n).toLowerCase(),!!r]}},Pg=(t,e)=>Ui&&t instanceof SVGElement&&/[A-Z]/.test(e)&&(e in t.style||e.match(/^(?:o|pai|str|u|ve)/))?e.replace(/([A-Z])/g,"-$1").toLowerCase():e,D6=(t,e,n)=>{var r;e||(e={});for(let i in e){const o=e[i];if(i!=="children"&&(!n||n[i]!==o)){i=sc(i);const c=Rg(i);if(c){if((n==null?void 0:n[i])!==o&&(n&&t.removeEventListener(c[0],n[i],c[1]),o!=null)){if(typeof o!="function")throw new Error(`Event handler for "${i}" is not a function`);t.addEventListener(c[0],o,c[1])}}else if(i==="dangerouslySetInnerHTML"&&o)t.innerHTML=o.__html;else if(i==="ref"){let l;typeof o=="function"?l=o(t)||(()=>o(null)):o&&"current"in o&&(o.current=t,l=()=>o.current=null),Gd.set(t,l)}else if(i==="style"){const l=t.style;typeof o=="string"?l.cssText=o:(l.cssText="",o!=null&&J1(o,l.setProperty.bind(l)))}else{if(i==="value"){const u=t.nodeName;if(u==="INPUT"||u==="TEXTAREA"||u==="SELECT"){if(t.value=o==null||o===!1?null:o,u==="TEXTAREA"){t.textContent=o;continue}else if(u==="SELECT"){t.selectedIndex===-1&&(t.selectedIndex=0);continue}}}else(i==="checked"&&t.nodeName==="INPUT"||i==="selected"&&t.nodeName==="OPTION")&&(t[i]=o);const l=Pg(t,i);o==null||o===!1?t.removeAttribute(l):o===!0?t.setAttribute(l,""):typeof o=="string"||typeof o=="number"?t.setAttribute(l,o):t.setAttribute(l,o.toString())}}}if(n)for(let i in n){const o=n[i];if(i!=="children"&&!(i in e)){i=sc(i);const c=Rg(i);c?t.removeEventListener(c[0],o,c[1]):i==="ref"?(r=Gd.get(t))==null||r():t.removeAttribute(Pg(t,i))}}},z6=(t,e)=>{e[Ke][0]=0,Xo.push([t,e]);const n=e.tag[$f]||e.tag,r=n.defaultProps?{...n.defaultProps,...e.props}:e.props;try{return[n.call(null,r)]}finally{Xo.pop()}},iy=(t,e,n,r,i)=>{var o,c;(o=t.vR)!=null&&o.length&&(r.push(...t.vR),delete t.vR),typeof t.tag=="function"&&((c=t[Ke][1][cy])==null||c.forEach(l=>i.push(l))),t.vC.forEach(l=>{var u;if(Dn(l))n.push(l);else if(typeof l.tag=="function"||l.tag===""){l.c=e;const d=n.length;if(iy(l,e,n,r,i),l.s){for(let p=d;p<n.length;p++)n[p].s=!0;l.s=!1}}else n.push(l),(u=l.vR)!=null&&u.length&&(r.push(...l.vR),delete l.vR)})},R6=t=>{for(;;t=t.tag===Wo||!t.vC||!t.pP?t.nN:t.vC[0]){if(!t)return null;if(t.tag!==Wo&&t.e)return t.e}},oy=t=>{var e,n,r,i,o,c;Dn(t)||((n=(e=t[Ke])==null?void 0:e[1][cy])==null||n.forEach(l=>{var u;return(u=l[2])==null?void 0:u.call(l)}),(r=Gd.get(t.e))==null||r(),t.p===2&&((i=t.vC)==null||i.forEach(l=>l.p=2)),(o=t.vC)==null||o.forEach(oy)),t.p||((c=t.e)==null||c.remove(),delete t.e),typeof t.tag=="function"&&(_o.delete(t),aa.delete(t),delete t[Ke][3],t.a=!0)},sy=(t,e,n)=>{t.c=e,ay(t,e,n)},Bg=(t,e)=>{if(e){for(let n=0,r=t.length;n<r;n++)if(t[n]===e)return n}},jg=Symbol(),ay=(t,e,n)=>{var d;const r=[],i=[],o=[];iy(t,e,r,i,o),i.forEach(oy);const c=n?void 0:e.childNodes;let l,u=null;if(n)l=-1;else if(!c.length)l=0;else{const p=Bg(c,R6(t.nN));p!==void 0?(u=c[p],l=p):l=Bg(c,(d=r.find(h=>h.tag!==Wo&&h.e))==null?void 0:d.e)??-1,l===-1&&(n=!0)}for(let p=0,h=r.length;p<h;p++,l++){const g=r[p];let A;if(g.s&&g.e)A=g.e,g.s=!1;else{const m=n||!g.e;Dn(g)?(g.e&&g.d&&(g.e.textContent=g.t),g.d=!1,A=g.e||(g.e=document.createTextNode(g.t))):(A=g.e||(g.e=g.n?document.createElementNS(g.n,g.tag):document.createElement(g.tag)),D6(A,g.props,g.pP),ay(g,A,m))}g.tag===Wo?l--:n?A.parentNode||e.appendChild(A):c[l]!==A&&c[l-1]!==A&&(c[l+1]===A?e.appendChild(c[l]):e.insertBefore(A,u||c[l]||null))}if(t.pP&&delete t.pP,o.length){const p=[],h=[];o.forEach(([,g,,A,m])=>{g&&p.push(g),A&&h.push(A),m==null||m()}),p.forEach(g=>g()),h.length&&requestAnimationFrame(()=>{h.forEach(g=>g())})}},P6=(t,e)=>!!(t&&t.length===e.length&&t.every((n,r)=>n[1]===e[r][1])),aa=new WeakMap,Wd=(t,e,n)=>{var o,c,l,u,d,p;const r=!n&&e.pC;n&&(e.pC||(e.pC=e.vC));let i;try{n||(n=typeof e.tag=="function"?z6(t,e):bs(e.props.children)),((o=n[0])==null?void 0:o.tag)===""&&n[0][Hd]&&(i=n[0][Hd],t[5].push([t,i,e]));const h=r?[...e.pC]:e.vC?[...e.vC]:void 0,g=[];let A;for(let m=0;m<n.length;m++){Array.isArray(n[m])&&n.splice(m,1,...n[m].flat());let $=B6(n[m]);if($){typeof $.tag=="function"&&!$.tag[V1]&&(Fi.length>0&&($[Ke][2]=Fi.map(S=>[S,S.values.at(-1)])),(c=t[5])!=null&&c.length&&($[Ke][3]=t[5].at(-1)));let k;if(h&&h.length){const S=h.findIndex(Dn($)?b=>Dn(b):$.key!==void 0?b=>b.key===$.key&&b.tag===$.tag:b=>b.tag===$.tag);S!==-1&&(k=h[S],h.splice(S,1))}if(k)if(Dn($))k.t!==$.t&&(k.t=$.t,k.d=!0),$=k;else{const S=k.pP=k.props;if(k.props=$.props,k.f||(k.f=$.f||e.f),typeof $.tag=="function"){const b=k[Ke][2];k[Ke][2]=$[Ke][2]||[],k[Ke][3]=$[Ke][3],!k.f&&((k.o||k)===$.o||(u=(l=k.tag)[s6])!=null&&u.call(l,S,k.props))&&P6(b,k[Ke][2])&&(k.s=!0)}$=k}else if(!Dn($)&&Ui){const S=so(Ui);S&&($.n=S)}if(!Dn($)&&!$.s&&(Wd(t,$),delete $.f),g.push($),A&&!A.s&&!$.s)for(let S=A;S&&!Dn(S);S=(d=S.vC)==null?void 0:d.at(-1))S.nN=$;A=$}}e.vR=r?[...e.vC,...h||[]]:h||[],e.vC=g,r&&delete e.pC}catch(h){if(e.f=!0,h===jg){if(i)return;throw h}const[g,A,m]=((p=e[Ke])==null?void 0:p[3])||[];if(A){const $=()=>ca([0,!1,t[2]],m),k=aa.get(m)||[];k.push($),aa.set(m,k);const S=A(h,()=>{const b=aa.get(m);if(b){const T=b.indexOf($);if(T!==-1)return b.splice(T,1),$()}});if(S){if(t[0]===1)t[1]=!0;else if(Wd(t,m,[S]),(A.length===1||t!==g)&&m.c){sy(m,m.c,!1);return}throw jg}}throw h}finally{i&&t[5].pop()}},B6=t=>{if(!(t==null||typeof t=="boolean")){if(typeof t=="string"||typeof t=="number")return{t:t.toString(),d:!0};if("vR"in t&&(t={tag:t.tag,props:t.props,key:t.key,f:t.f,type:t.tag,ref:t.props.ref,o:t.o||t}),typeof t.tag=="function")t[Ke]=[0,[]];else{const e=T6[t.tag];e&&(Ui||(Ui=K1("")),t.props.children=[{tag:Ui,props:{value:t.n=`http://www.w3.org/${e}`,children:t.props.children}}])}return t}},Lg=(t,e)=>{var n,r;(n=e[Ke][2])==null||n.forEach(([i,o])=>{i.values.push(o)});try{Wd(t,e,void 0)}catch{return}if(e.a){delete e.a;return}(r=e[Ke][2])==null||r.forEach(([i])=>{i.values.pop()}),(t[0]!==1||!t[1])&&sy(e,e.c,!1)},_o=new WeakMap,Fg=[],ca=async(t,e)=>{t[5]||(t[5]=[]);const n=_o.get(e);n&&n[0](void 0);let r;const i=new Promise(o=>r=o);if(_o.set(e,[r,()=>{t[2]?t[2](t,e,o=>{Lg(o,e)}).then(()=>r(e)):(Lg(t,e),r(e))}]),Fg.length)Fg.at(-1).add(e);else{await Promise.resolve();const o=_o.get(e);o&&(_o.delete(e),o[1]())}return i},j6=(t,e,n)=>({tag:Wo,props:{children:t},key:n,e,p:1}),Zl=0,cy=1,Ql=2,eu=3,tu=new WeakMap,ly=(t,e)=>!t||!e||t.length!==e.length||e.some((n,r)=>n!==t[r]),L6=void 0,Ug=[],F6=t=>{var c;const e=()=>typeof t=="function"?t():t,n=Xo.at(-1);if(!n)return[e(),()=>{}];const[,r]=n,i=(c=r[Ke][1])[Zl]||(c[Zl]=[]),o=r[Ke][0]++;return i[o]||(i[o]=[e(),l=>{const u=L6,d=i[o];if(typeof l=="function"&&(l=l(d[0])),!Object.is(l,d[0]))if(d[0]=l,Ug.length){const[p,h]=Ug.at(-1);Promise.all([p===3?r:ca([p,!1,u],r),h]).then(([g])=>{if(!g||!(p===2||p===3))return;const A=g.vC;requestAnimationFrame(()=>{setTimeout(()=>{A===g.vC&&ca([p===3?1:0,!1,u],g)})})})}else ca([0,!1,u],r)}])},kf=(t,e)=>{var l;const n=Xo.at(-1);if(!n)return t;const[,r]=n,i=(l=r[Ke][1])[Ql]||(l[Ql]=[]),o=r[Ke][0]++,c=i[o];return ly(c==null?void 0:c[1],e)?i[o]=[t,e]:t=i[o][0],t},U6=t=>{const e=tu.get(t);if(e){if(e.length===2)throw e[1];return e[0]}throw t.then(n=>tu.set(t,[n]),n=>tu.set(t,[void 0,n])),t},M6=(t,e)=>{var l;const n=Xo.at(-1);if(!n)return t();const[,r]=n,i=(l=r[Ke][1])[eu]||(l[eu]=[]),o=r[Ke][0]++,c=i[o];return ly(c==null?void 0:c[1],e)&&(i[o]=[t(),e]),i[o][0]},q6=K1({pending:!1,data:null,method:null,action:null}),Mg=new Set,V6=t=>{Mg.add(t),t.finally(()=>Mg.delete(t))},Nf=(t,e)=>M6(()=>n=>{let r;t&&(typeof t=="function"?r=t(n)||(()=>{t(null)}):t&&"current"in t&&(t.current=n,r=()=>{t.current=null}));const i=e(n);return()=>{i==null||i(),r==null||r()}},[t]),ui=Object.create(null),Ls=Object.create(null),As=(t,e,n,r,i)=>{if(e!=null&&e.itemProp)return{tag:t,props:e,type:t,ref:e.ref};const o=document.head;let{onLoad:c,onError:l,precedence:u,blocking:d,...p}=e,h=null,g=!1;const A=ra[t];let m;if(A.length>0){const b=o.querySelectorAll(t);e:for(const T of b)for(const M of ra[t])if(T.getAttribute(M)===e[M]){h=T;break e}if(!h){const T=A.reduce((M,U)=>e[U]===void 0?M:`${M}-${U}-${e[U]}`,t);g=!Ls[T],h=Ls[T]||(Ls[T]=(()=>{const M=document.createElement(t);for(const U of A)e[U]!==void 0&&M.setAttribute(U,e[U]),e.rel&&M.setAttribute("rel",e.rel);return M})())}}else m=o.querySelectorAll(t);u=r?u??"":void 0,r&&(p[ia]=u);const $=kf(b=>{if(A.length>0){let T=!1;for(const M of o.querySelectorAll(t)){if(T&&M.getAttribute(ia)!==u){o.insertBefore(b,M);return}M.getAttribute(ia)===u&&(T=!0)}o.appendChild(b)}else if(m){let T=!1;for(const M of m)if(M===b){T=!0;break}T||o.insertBefore(b,o.contains(m[0])?m[0]:o.querySelector(t)),m=void 0}},[u]),k=Nf(e.ref,b=>{var U;const T=A[0];if(n===2&&(b.innerHTML=""),(g||m)&&$(b),!l&&!c)return;let M=ui[U=b.getAttribute(T)]||(ui[U]=new Promise((H,W)=>{b.addEventListener("load",H),b.addEventListener("error",W)}));c&&(M=M.then(c)),l&&(M=M.catch(l)),M.catch(()=>{})});if(i&&d==="render"){const b=ra[t][0];if(e[b]){const T=e[b],M=ui[T]||(ui[T]=new Promise((U,H)=>{$(h),h.addEventListener("load",U),h.addEventListener("error",H)}));U6(M)}}const S={tag:t,type:t,props:{...p,ref:k},ref:k};return S.p=n,h&&(S.e=h),j6(S,o)},H6=t=>{const e=O6(),n=e&&so(e);return n!=null&&n.endsWith("svg")?{tag:"title",props:t,type:"title",ref:t.ref}:As("title",t,void 0,!1,!1)},K6=t=>!t||["src","async"].some(e=>!t[e])?{tag:"script",props:t,type:"script",ref:t.ref}:As("script",t,1,!1,!0),G6=t=>!t||!["href","precedence"].every(e=>e in t)?{tag:"style",props:t,type:"style",ref:t.ref}:(t["data-href"]=t.href,delete t.href,As("style",t,2,!0,!0)),W6=t=>!t||["onLoad","onError"].some(e=>e in t)||t.rel==="stylesheet"&&(!("precedence"in t)||"disabled"in t)?{tag:"link",props:t,type:"link",ref:t.ref}:As("link",t,1,"precedence"in t,!0),X6=t=>As("meta",t,void 0,!1,!1),uy=Symbol(),J6=t=>{const{action:e,...n}=t;typeof e!="function"&&(n.action=e);const[r,i]=F6([null,!1]),o=kf(async d=>{const p=d.isTrusted?e:d.detail[uy];if(typeof p!="function")return;d.preventDefault();const h=new FormData(d.target);i([h,!0]);const g=p(h);g instanceof Promise&&(V6(g),await g),i([null,!0])},[]),c=Nf(t.ref,d=>(d.addEventListener("submit",o),()=>{d.removeEventListener("submit",o)})),[l,u]=r;return r[1]=!1,{tag:q6,props:{value:{pending:l!==null,data:l,method:l?"post":null,action:l?e:null},children:{tag:"form",props:{...n,ref:c},type:"form",ref:c}},f:u}},dy=(t,{formAction:e,...n})=>{if(typeof e=="function"){const r=kf(i=>{i.preventDefault(),i.currentTarget.form.dispatchEvent(new CustomEvent("submit",{detail:{[uy]:e}}))},[]);n.ref=Nf(n.ref,i=>(i.addEventListener("click",r),()=>{i.removeEventListener("click",r)}))}return{tag:t,props:n,type:t,ref:n.ref}},Y6=t=>dy("input",t),Z6=t=>dy("button",t);Object.assign(Kd,{title:H6,script:K6,style:G6,link:W6,meta:X6,form:J6,input:Y6,button:Z6});G1(null);new TextEncoder;const Mi=t=>{const{i18nKey:e,values:n,components:r}=t,i=F.t(e,n),o=/<(\d+)>(.*?)<\/\d+>/g,c=[];let l=0,u;for(;(u=o.exec(i))!==null;){const[,d,p]=u,h=i.substring(l,u.index);h&&c.push(h);const g=parseInt(d,10);c.push(v6(r[g],{},p)),l=o.lastIndex}return l<i.length&&c.push(i.substring(l)),v(Sf,{children:c})},qg=6,Xd=({error:t,theme:e,branding:n,email:r,state:i,client:o,hasPasswordLogin:c})=>{const l=new URLSearchParams({state:i}),d=o.connections.map(({name:p})=>p).includes("auth2");return v(nt,{title:F.t("verify_your_email"),theme:e,branding:n,client:o,children:[v("div",{className:"mb-4 text-2xl font-medium",children:F.t("verify_your_email")}),v("div",{className:"mb-8 text-gray-300",children:v(Mi,{i18nKey:"code_sent_template",components:[v("span",{className:"text-black dark:text-white"},"span")],values:{username:r}})}),v("div",{className:"flex flex-1 flex-col justify-center",children:[v(Cn,{className:"pt-2",children:[v("input",{autoFocus:!0,type:"text",pattern:"[0-9]*",maxLength:qg,inputMode:"numeric",name:"code",placeholder:"******",className:Kn("mb-2 w-full rounded-lg border bg-gray-100 px-4 pb-2 pt-2.5 text-center indent-[5px] font-mono text-3xl placeholder:text-gray-300 dark:bg-gray-600 md:text-3xl",{"border-red":t,"border-gray-100 dark:border-gray-500":!t}),minLength:qg,required:!0,id:"code-input"}),t&&v(Qn,{children:t}),v(tt,{className:"sm:mt-4 !text-base",children:[v("span",{children:F.t("login")}),v(et,{className:"text-xs",name:"arrow-right"})]}),v("div",{className:"my-4 flex space-x-2 text-sm text-[#B2B2B2]",children:[v(et,{className:"text-base",name:"info-bubble"}),v("div",{className:"text-sm text-gray-300 md:text-sm",children:F.t("sent_code_spam")})]}),d&&v("div",{className:"text-center mb-12",children:[v("div",{className:"relative mb-5 block text-center text-gray-300 dark:text-gray-300",children:[v("div",{className:"absolute left-0 right-0 top-1/2 border-b border-gray-200 dark:border-gray-600"}),v("div",{className:"relative inline-block bg-white px-2 dark:bg-gray-800",children:F.t("or")})]}),v(tt,{Component:"a",href:`/u/${c?"enter-password":"pre-signup"}?${l.toString()}`,variant:"secondary",className:"block",children:F.t("enter_your_password_btn")})]})]}),v(un,{state:i})]})]})},vr=t=>{const{message:e,theme:n,branding:r,client:i,pageTitle:o,state:c}=t;return v(nt,{title:"Login",theme:n,branding:r,client:i,children:[o?v("div",{className:"mb-6 text-gray-300",children:o}):"",v("div",{className:"flex flex-1 flex-col justify-center",children:e}),c?v(un,{state:c}):""]})},Q6=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state"})})},responses:{200:{description:"HTML page to enter verification code.",content:{"text/html":{schema:s.z.string()}}},400:{description:"Bad Request - HTML error page if username is missing in state.",content:{"text/html":{schema:s.z.string()}}},500:{description:"Internal Server Error - HTML error page.",content:{"text/html":{schema:s.z.string()}}}}}),async t=>{const{state:e}=t.req.valid("query");let n,r,i,o;try{if({theme:n,branding:r,loginSession:i,client:o}=await Ge(t,e),!i.authParams.username)return t.html(v(vr,{theme:n,branding:r,client:o,state:e,pageTitle:F.t("error_page_title")||"Error",message:F.t("username_not_found_error")||"Username not found in session."}),400);const c=await No({userAdapter:t.env.data.users,tenant_id:o.tenant.id,username:i.authParams.username,provider:"auth2"});return t.html(v(Xd,{theme:n,branding:r,email:i.authParams.username,state:e,client:o,hasPasswordLogin:!!c}))}catch(c){return console.error("Error in GET /u/enter-code:",c),r||(r=null),n||(n=null),o||(o=null),t.html(v(vr,{theme:n,branding:r,client:o,state:e,pageTitle:F.t("error_page_title")||"Error",message:F.t("unexpected_error_try_again")||"An unexpected error occurred. Please try again."}),500)}}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state"})}),body:{content:{"application/x-www-form-urlencoded":{schema:s.z.object({code:s.z.string()})}}}},responses:{302:{description:"Redirect to continue authentication flow.",headers:s.z.object({Location:s.z.string().url()})},400:{description:"Bad Request - HTML page with an error message (e.g., invalid code, username missing).",content:{"text/html":{schema:s.z.string()}}},500:{description:"Internal Server Error - HTML error page for unexpected issues.",content:{"text/html":{schema:s.z.string()}}}}}),async t=>{var l;const{state:e}=t.req.valid("query"),{code:n}=t.req.valid("form"),{theme:r,branding:i,client:o,loginSession:c}=await Ge(t,e);if(!c.authParams.username)throw new R(400,{message:F.t("username_not_found_error")||"Username not found in session."});try{t.set("client_id",o.id);const u=await mf(t,{client_id:o.id,authParams:c.authParams,username:c.authParams.username,otp:n});if(u instanceof Response)return u;throw new R(500,{message:F.t("unexpected_error_try_again")||"An unexpected error occurred. Please try again."})}catch(u){let d;try{d=await No({userAdapter:t.env.data.users,tenant_id:o.tenant.id,username:c.authParams.username,provider:"auth2"})}catch{d=null}return t.html(v(Xd,{theme:r,branding:i,email:(l=c.authParams)==null?void 0:l.username,state:e,client:o,error:u.message,hasPasswordLogin:!!d}),400)}}),py=t=>{const{theme:e,branding:n,client:r,state:i}=t;return v(nt,{title:F.t("unverified_email"),theme:e,branding:n,client:r,children:[v("div",{className:"flex flex-1 flex-col justify-center",children:[v("p",{className:"mb-8 text-gray-300 text-lg",children:F.t("unverified_email")}),v("div",{className:"my-4 flex space-x-2 text-sm text-[#B2B2B2]",children:[v(et,{className:"text-base",name:"info-bubble"}),v("div",{className:"text-sm text-gray-300 md:text-sm",children:F.t("sent_code_spam")})]}),v(un,{state:i})]}),v(un,{state:i})]})},e8=({width:t=22,height:e=17})=>v("svg",{width:t,height:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:v("path",{fill:"currentColor",d:"M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4 142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32M144 256a144 144 0 1 1 288 0 144 144 0 1 1-288 0m144-64c0 35.3-28.7 64-64 64-7.1 0-13.9-1.2-20.3-3.3-5.5-1.8-11.9 1.6-11.7 7.4.3 6.9 1.3 13.8 3.2 20.7 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3"})}),t8=({width:t=23,height:e=18})=>v("svg",{width:t,height:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",children:v("path",{fill:"currentColor",d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2s-6.3 25.5 4.1 33.7l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-105.2-82.4c39.6-40.6 66.4-86.1 79.9-118.4 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8zm184.3 144.4c25.5-23.3 59.6-37.5 96.9-37.5 79.5 0 144 64.5 144 144 0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3 0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1-79.5 0-144-64.5-144-144 0-6.9.5-13.6 1.4-20.2l-94.3-74.3c-22.8 29.7-39.1 59.3-48.6 82.2-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47 43.8 111.7 80.6 192.5 80.6 47.8 0 89.9-12.9 126.2-32.5z"})}),Jd=({name:t,placeholder:e=F.t("password")})=>v("div",{className:"password-input relative mb-2",children:[v("input",{type:"password",name:t,placeholder:e,className:"w-full rounded-lg bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base",required:!0}),v("button",{type:"button","aria-label":F.t("show_password"),title:F.t("show_password"),className:"show-password-toggle-show absolute right-0 top-0 w-10 h-full rounded-r-lg text-gray-400 column hover:bg-black/5",children:v(e8,{})}),v("button",{type:"button","aria-label":F.t("hide_password"),title:F.t("hide_password"),className:"show-password-toggle-hide !hidden absolute right-0 top-0 w-10 h-full rounded-r-lg text-gray-400 column hover:bg-black/5",children:v(t8,{})})]});var Vg=Object.freeze,n8=Object.defineProperty,r8=(t,e)=>Vg(n8(t,"raw",{value:Vg(t.slice())})),Hg;const la=t=>{const{error:e,theme:n,branding:r,email:i,state:o,client:c}=t,l=new URLSearchParams({state:o});return v(nt,{title:F.t("enter_password"),theme:n,branding:r,client:c,children:[v("div",{className:"mb-4 text-lg font-medium sm:text-2xl",children:F.t("enter_password")}),v("div",{className:"mb-6 text-gray-300",children:F.t("enter_password_description")}),v("div",{className:"flex flex-1 flex-col justify-center",children:[v(Cn,{className:"mb-7",children:[v("input",{type:"text",name:"username",placeholder:F.t("email_placeholder"),className:"mb-2 w-full rounded-lg bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base",value:i}),v(Jd,{name:"password"}),e&&v(Qn,{children:e}),v(tt,{className:"sm:mt-4 !text-base",children:[v("span",{children:F.t("login")}),v(et,{className:"text-xs",name:"arrow-right"})]})]}),v("a",{href:`/u/forgot-password?${l.toString()}`,className:"text-primary hover:underline mb-4",children:F.t("forgot_password_link")}),v("div",{className:"text-center mb-12",children:[v("div",{className:"relative mb-5 block text-center text-gray-300 dark:text-gray-300",children:[v("div",{className:"absolute left-0 right-0 top-1/2 border-b border-gray-200 dark:border-gray-600"}),v("div",{className:"relative inline-block bg-white px-2 dark:bg-gray-800",children:F.t("or")})]}),v("form",{method:"post",action:`/u/login/identifier?${l.toString()}`,children:[v("input",{type:"hidden",name:"login_selection",value:"code"}),v("input",{type:"hidden",name:"username",value:i}),v(tt,{variant:"secondary",className:"block",children:F.t("enter_a_code_btn")})]})]}),v(un,{state:o})]}),q1(Hg||(Hg=r8([`
|
|
230
|
+
c2.7,4.1,6.5,6.6,10.9,6.6c4,0,7.2-2,9.6-5.2c0.9-1.2,0.9-2.5,0-3.1C33.3,22.9,32.1,23.2,31.2,24.4z`})]}),sa=({error:t,theme:e,branding:n,loginSession:r,email:i,client:o})=>{const c=o.connections.map(({strategy:M})=>M),l=c.includes("email")||c.includes("Username-Password-Authentication"),u=c.includes("sms"),d=c.includes("facebook"),p=c.includes("google-oauth2"),h=c.includes("apple"),g=c.includes("vipps"),A=d||p||h||g,m=l||u;let $="text",k="username";const S=l&&u?"email_or_phone_placeholder":l?"email_placeholder":"phone_placeholder";let b=F.t(S,l&&u?"Email or Phone Number":l?"Email Address":"Phone Number");return v(nt,{title:F.t("welcome"),theme:e,branding:n,client:o,children:[v("div",{className:"mb-4 text-lg font-medium sm:text-2xl",children:F.t("welcome")}),v("div",{className:"mb-8 text-gray-300",children:F.t("login_description_template",{authMethod:F.t(S,{defaultValue:l&&u?"email or phone number":l?"email address":"phone number"}).toLocaleLowerCase(),defaultValue:"Sign in with your {{authMethod}}"})}),v("div",{className:"flex flex-1 flex-col justify-center",children:[m&&v(Cn,{className:"mb-7",children:[v("input",{type:$,name:k,placeholder:b,className:Kn("mb-2 w-full rounded-lg border bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base",{"border-red":t,"border-gray-100 dark:border-gray-500":!t}),required:!0,value:i||""}),t&&v(Qn,{children:t}),v(tt,{className:"sm:mt-4 !text-base",children:[v("span",{children:F.t("continue")}),v(et,{className:"text-xs",name:"arrow-right"})]})]}),m&&A&&v("div",{className:"relative mb-5 block text-center text-gray-300 dark:text-gray-300",children:[v("div",{className:"absolute left-0 right-0 top-1/2 border-b border-gray-200 dark:border-gray-600"}),v("div",{className:"relative inline-block bg-white px-2 dark:bg-gray-800",children:F.t("continue_social_login")})]}),v("div",{className:"flex space-x-4 sm:flex-col sm:space-x-0 sm:space-y-4 short:flex-row short:space-x-4 short:space-y-0",children:[d&&v(mo,{connection:"facebook",text:F.t("continue_with",{provider:"Facebook"}),canResize:!0,icon:v(et,{className:"text-xl text-[#1196F5] sm:absolute sm:left-4 sm:top-1/2 sm:-translate-y-1/2 sm:text-2xl short:static short:left-auto short:top-auto short:translate-y-0 short:text-xl",name:"facebook"}),loginSession:r}),p&&v(mo,{connection:"google-oauth2",text:F.t("continue_with",{provider:"Google"}),canResize:!0,icon:v(ny,{className:"h-5 w-5 sm:absolute sm:left-4 sm:top-1/2 sm:h-6 sm:w-6 sm:-translate-y-1/2 short:static short:left-auto short:top-auto short:h-5 short:w-5 short:translate-y-0"}),loginSession:r}),h&&v(mo,{connection:"apple",text:F.t("continue_with",{provider:"Apple"}),canResize:!0,icon:v(et,{className:"text-xl text-black dark:text-white sm:absolute sm:left-4 sm:top-1/2 sm:-translate-y-1/2 sm:text-2xl short:static short:left-auto short:top-auto short:translate-y-0 short:text-xl",name:"apple"}),loginSession:r}),g&&v(mo,{connection:"vipps",text:F.t("continue_with",{provider:"Vipps"}),canResize:!0,icon:v(ry,{className:"h-5 w-5 sm:absolute sm:left-4 sm:top-1/2 sm:h-6 sm:w-6 sm:-translate-y-1/2 short:static short:left-auto short:top-auto short:h-5 short:w-5 short:translate-y-0"}),loginSession:r})]})]})]})},I6=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"}),impersonation:s.z.string().optional()})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,loginSession:i,client:o}=await Ge(t,e);return t.html(v(sa,{theme:n,branding:r,loginSession:i,client:o,email:i.authParams.username}))}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})}),body:{content:{"application/x-www-form-urlencoded":{schema:s.z.object({username:s.z.string().transform(t=>t.toLowerCase()),login_selection:s.z.enum(["code","password"]).optional()})}}}},responses:{400:{description:"Error response"},302:{description:"Redirect to enter code or password"}}}),async t=>{const{env:e}=t,{state:n}=t.req.valid("query"),r=t.req.valid("form");t.set("body",r),t.set("username",r.username);const{client:i,loginSession:o,theme:c,branding:l}=await Ge(t,n);t.set("client_id",i.id);const u=t.get("countryCode"),{normalized:d,connectionType:p}=xl(r.username,u);if(!i.connections.find(k=>k.strategy===p)||!d)return t.html(v(sa,{theme:c,branding:l,loginSession:o,error:F.t("invalid_identifier"),email:r.username,client:i}),400);const h=await No({userAdapter:e.data.users,tenant_id:i.tenant.id,username:d,provider:p});if(h&&t.set("user_id",h.user_id),!h)try{await Wb(t,i,t.env.data,d)}catch{const k=Ue(t,{type:Le.FAILED_SIGNUP,description:"Public signup is disabled"});return Pt(t,t.env.data.logs.create(i.tenant.id,k)),t.html(v(sa,{theme:c,branding:l,loginSession:o,error:F.t("user_account_does_not_exist"),email:r.username,client:i}),400)}if(o.authParams.username=d,await e.data.loginSessions.update(i.tenant.id,o.id,o),await b6(t,i,r.username,r.login_selection))return t.redirect(`/u/enter-password?state=${n}`);let g=wr(),A=await e.data.codes.get(i.tenant.id,g,"otp");for(;A;)g=wr(),A=await e.data.codes.get(i.tenant.id,g,"otp");const m=await t.env.data.codes.create(i.tenant.id,{code_id:g,code_type:"otp",login_id:o.id,expires_at:new Date(Date.now()+Xs).toISOString(),redirect_uri:o.authParams.redirect_uri}),$=i.connections.find(k=>k.strategy===p);if(!$)throw new R(400,{message:F.t("connection_not_found",{connection:p})});return p==="email"&&$.options.authentication_method==="magic_link"?await bf(t,{to:d,code:m.code_id,authParams:o.authParams}):await vf(t,{to:d,code:m.code_id}),t.redirect(`/u/enter-code?state=${n}`)}),un=t=>v("a",{className:"block text-primary hover:text-primaryHover text-center",href:`/u/login/identifier?state=${t.state}`,children:F.t("go_back")});var Wo="_hp",T6={Change:"Input",DoubleClick:"DblClick"},O6={svg:"2000/svg",math:"1998/Math/MathML"},Xo=[],Gd=new WeakMap,Ui=void 0,D6=()=>Ui,Dn=t=>"t"in t,Yl={onClick:["click",!1]},Rg=t=>{if(!t.startsWith("on"))return;if(Yl[t])return Yl[t];const e=t.match(/^on([A-Z][a-zA-Z]+?(?:PointerCapture)?)(Capture)?$/);if(e){const[,n,r]=e;return Yl[t]=[(T6[n]||n).toLowerCase(),!!r]}},Pg=(t,e)=>Ui&&t instanceof SVGElement&&/[A-Z]/.test(e)&&(e in t.style||e.match(/^(?:o|pai|str|u|ve)/))?e.replace(/([A-Z])/g,"-$1").toLowerCase():e,z6=(t,e,n)=>{var r;e||(e={});for(let i in e){const o=e[i];if(i!=="children"&&(!n||n[i]!==o)){i=sc(i);const c=Rg(i);if(c){if((n==null?void 0:n[i])!==o&&(n&&t.removeEventListener(c[0],n[i],c[1]),o!=null)){if(typeof o!="function")throw new Error(`Event handler for "${i}" is not a function`);t.addEventListener(c[0],o,c[1])}}else if(i==="dangerouslySetInnerHTML"&&o)t.innerHTML=o.__html;else if(i==="ref"){let l;typeof o=="function"?l=o(t)||(()=>o(null)):o&&"current"in o&&(o.current=t,l=()=>o.current=null),Gd.set(t,l)}else if(i==="style"){const l=t.style;typeof o=="string"?l.cssText=o:(l.cssText="",o!=null&&J1(o,l.setProperty.bind(l)))}else{if(i==="value"){const u=t.nodeName;if(u==="INPUT"||u==="TEXTAREA"||u==="SELECT"){if(t.value=o==null||o===!1?null:o,u==="TEXTAREA"){t.textContent=o;continue}else if(u==="SELECT"){t.selectedIndex===-1&&(t.selectedIndex=0);continue}}}else(i==="checked"&&t.nodeName==="INPUT"||i==="selected"&&t.nodeName==="OPTION")&&(t[i]=o);const l=Pg(t,i);o==null||o===!1?t.removeAttribute(l):o===!0?t.setAttribute(l,""):typeof o=="string"||typeof o=="number"?t.setAttribute(l,o):t.setAttribute(l,o.toString())}}}if(n)for(let i in n){const o=n[i];if(i!=="children"&&!(i in e)){i=sc(i);const c=Rg(i);c?t.removeEventListener(c[0],o,c[1]):i==="ref"?(r=Gd.get(t))==null||r():t.removeAttribute(Pg(t,i))}}},R6=(t,e)=>{e[Ke][0]=0,Xo.push([t,e]);const n=e.tag[$f]||e.tag,r=n.defaultProps?{...n.defaultProps,...e.props}:e.props;try{return[n.call(null,r)]}finally{Xo.pop()}},iy=(t,e,n,r,i)=>{var o,c;(o=t.vR)!=null&&o.length&&(r.push(...t.vR),delete t.vR),typeof t.tag=="function"&&((c=t[Ke][1][cy])==null||c.forEach(l=>i.push(l))),t.vC.forEach(l=>{var u;if(Dn(l))n.push(l);else if(typeof l.tag=="function"||l.tag===""){l.c=e;const d=n.length;if(iy(l,e,n,r,i),l.s){for(let p=d;p<n.length;p++)n[p].s=!0;l.s=!1}}else n.push(l),(u=l.vR)!=null&&u.length&&(r.push(...l.vR),delete l.vR)})},P6=t=>{for(;;t=t.tag===Wo||!t.vC||!t.pP?t.nN:t.vC[0]){if(!t)return null;if(t.tag!==Wo&&t.e)return t.e}},oy=t=>{var e,n,r,i,o,c;Dn(t)||((n=(e=t[Ke])==null?void 0:e[1][cy])==null||n.forEach(l=>{var u;return(u=l[2])==null?void 0:u.call(l)}),(r=Gd.get(t.e))==null||r(),t.p===2&&((i=t.vC)==null||i.forEach(l=>l.p=2)),(o=t.vC)==null||o.forEach(oy)),t.p||((c=t.e)==null||c.remove(),delete t.e),typeof t.tag=="function"&&(_o.delete(t),aa.delete(t),delete t[Ke][3],t.a=!0)},sy=(t,e,n)=>{t.c=e,ay(t,e,n)},Bg=(t,e)=>{if(e){for(let n=0,r=t.length;n<r;n++)if(t[n]===e)return n}},jg=Symbol(),ay=(t,e,n)=>{var d;const r=[],i=[],o=[];iy(t,e,r,i,o),i.forEach(oy);const c=n?void 0:e.childNodes;let l,u=null;if(n)l=-1;else if(!c.length)l=0;else{const p=Bg(c,P6(t.nN));p!==void 0?(u=c[p],l=p):l=Bg(c,(d=r.find(h=>h.tag!==Wo&&h.e))==null?void 0:d.e)??-1,l===-1&&(n=!0)}for(let p=0,h=r.length;p<h;p++,l++){const g=r[p];let A;if(g.s&&g.e)A=g.e,g.s=!1;else{const m=n||!g.e;Dn(g)?(g.e&&g.d&&(g.e.textContent=g.t),g.d=!1,A=g.e||(g.e=document.createTextNode(g.t))):(A=g.e||(g.e=g.n?document.createElementNS(g.n,g.tag):document.createElement(g.tag)),z6(A,g.props,g.pP),ay(g,A,m))}g.tag===Wo?l--:n?A.parentNode||e.appendChild(A):c[l]!==A&&c[l-1]!==A&&(c[l+1]===A?e.appendChild(c[l]):e.insertBefore(A,u||c[l]||null))}if(t.pP&&delete t.pP,o.length){const p=[],h=[];o.forEach(([,g,,A,m])=>{g&&p.push(g),A&&h.push(A),m==null||m()}),p.forEach(g=>g()),h.length&&requestAnimationFrame(()=>{h.forEach(g=>g())})}},B6=(t,e)=>!!(t&&t.length===e.length&&t.every((n,r)=>n[1]===e[r][1])),aa=new WeakMap,Wd=(t,e,n)=>{var o,c,l,u,d,p;const r=!n&&e.pC;n&&(e.pC||(e.pC=e.vC));let i;try{n||(n=typeof e.tag=="function"?R6(t,e):bs(e.props.children)),((o=n[0])==null?void 0:o.tag)===""&&n[0][Hd]&&(i=n[0][Hd],t[5].push([t,i,e]));const h=r?[...e.pC]:e.vC?[...e.vC]:void 0,g=[];let A;for(let m=0;m<n.length;m++){Array.isArray(n[m])&&n.splice(m,1,...n[m].flat());let $=j6(n[m]);if($){typeof $.tag=="function"&&!$.tag[V1]&&(Fi.length>0&&($[Ke][2]=Fi.map(S=>[S,S.values.at(-1)])),(c=t[5])!=null&&c.length&&($[Ke][3]=t[5].at(-1)));let k;if(h&&h.length){const S=h.findIndex(Dn($)?b=>Dn(b):$.key!==void 0?b=>b.key===$.key&&b.tag===$.tag:b=>b.tag===$.tag);S!==-1&&(k=h[S],h.splice(S,1))}if(k)if(Dn($))k.t!==$.t&&(k.t=$.t,k.d=!0),$=k;else{const S=k.pP=k.props;if(k.props=$.props,k.f||(k.f=$.f||e.f),typeof $.tag=="function"){const b=k[Ke][2];k[Ke][2]=$[Ke][2]||[],k[Ke][3]=$[Ke][3],!k.f&&((k.o||k)===$.o||(u=(l=k.tag)[s6])!=null&&u.call(l,S,k.props))&&B6(b,k[Ke][2])&&(k.s=!0)}$=k}else if(!Dn($)&&Ui){const S=so(Ui);S&&($.n=S)}if(!Dn($)&&!$.s&&(Wd(t,$),delete $.f),g.push($),A&&!A.s&&!$.s)for(let S=A;S&&!Dn(S);S=(d=S.vC)==null?void 0:d.at(-1))S.nN=$;A=$}}e.vR=r?[...e.vC,...h||[]]:h||[],e.vC=g,r&&delete e.pC}catch(h){if(e.f=!0,h===jg){if(i)return;throw h}const[g,A,m]=((p=e[Ke])==null?void 0:p[3])||[];if(A){const $=()=>ca([0,!1,t[2]],m),k=aa.get(m)||[];k.push($),aa.set(m,k);const S=A(h,()=>{const b=aa.get(m);if(b){const T=b.indexOf($);if(T!==-1)return b.splice(T,1),$()}});if(S){if(t[0]===1)t[1]=!0;else if(Wd(t,m,[S]),(A.length===1||t!==g)&&m.c){sy(m,m.c,!1);return}throw jg}}throw h}finally{i&&t[5].pop()}},j6=t=>{if(!(t==null||typeof t=="boolean")){if(typeof t=="string"||typeof t=="number")return{t:t.toString(),d:!0};if("vR"in t&&(t={tag:t.tag,props:t.props,key:t.key,f:t.f,type:t.tag,ref:t.props.ref,o:t.o||t}),typeof t.tag=="function")t[Ke]=[0,[]];else{const e=O6[t.tag];e&&(Ui||(Ui=K1("")),t.props.children=[{tag:Ui,props:{value:t.n=`http://www.w3.org/${e}`,children:t.props.children}}])}return t}},Lg=(t,e)=>{var n,r;(n=e[Ke][2])==null||n.forEach(([i,o])=>{i.values.push(o)});try{Wd(t,e,void 0)}catch{return}if(e.a){delete e.a;return}(r=e[Ke][2])==null||r.forEach(([i])=>{i.values.pop()}),(t[0]!==1||!t[1])&&sy(e,e.c,!1)},_o=new WeakMap,Fg=[],ca=async(t,e)=>{t[5]||(t[5]=[]);const n=_o.get(e);n&&n[0](void 0);let r;const i=new Promise(o=>r=o);if(_o.set(e,[r,()=>{t[2]?t[2](t,e,o=>{Lg(o,e)}).then(()=>r(e)):(Lg(t,e),r(e))}]),Fg.length)Fg.at(-1).add(e);else{await Promise.resolve();const o=_o.get(e);o&&(_o.delete(e),o[1]())}return i},L6=(t,e,n)=>({tag:Wo,props:{children:t},key:n,e,p:1}),Zl=0,cy=1,Ql=2,eu=3,tu=new WeakMap,ly=(t,e)=>!t||!e||t.length!==e.length||e.some((n,r)=>n!==t[r]),F6=void 0,Ug=[],U6=t=>{var c;const e=()=>typeof t=="function"?t():t,n=Xo.at(-1);if(!n)return[e(),()=>{}];const[,r]=n,i=(c=r[Ke][1])[Zl]||(c[Zl]=[]),o=r[Ke][0]++;return i[o]||(i[o]=[e(),l=>{const u=F6,d=i[o];if(typeof l=="function"&&(l=l(d[0])),!Object.is(l,d[0]))if(d[0]=l,Ug.length){const[p,h]=Ug.at(-1);Promise.all([p===3?r:ca([p,!1,u],r),h]).then(([g])=>{if(!g||!(p===2||p===3))return;const A=g.vC;requestAnimationFrame(()=>{setTimeout(()=>{A===g.vC&&ca([p===3?1:0,!1,u],g)})})})}else ca([0,!1,u],r)}])},kf=(t,e)=>{var l;const n=Xo.at(-1);if(!n)return t;const[,r]=n,i=(l=r[Ke][1])[Ql]||(l[Ql]=[]),o=r[Ke][0]++,c=i[o];return ly(c==null?void 0:c[1],e)?i[o]=[t,e]:t=i[o][0],t},M6=t=>{const e=tu.get(t);if(e){if(e.length===2)throw e[1];return e[0]}throw t.then(n=>tu.set(t,[n]),n=>tu.set(t,[void 0,n])),t},q6=(t,e)=>{var l;const n=Xo.at(-1);if(!n)return t();const[,r]=n,i=(l=r[Ke][1])[eu]||(l[eu]=[]),o=r[Ke][0]++,c=i[o];return ly(c==null?void 0:c[1],e)&&(i[o]=[t(),e]),i[o][0]},V6=K1({pending:!1,data:null,method:null,action:null}),Mg=new Set,H6=t=>{Mg.add(t),t.finally(()=>Mg.delete(t))},Nf=(t,e)=>q6(()=>n=>{let r;t&&(typeof t=="function"?r=t(n)||(()=>{t(null)}):t&&"current"in t&&(t.current=n,r=()=>{t.current=null}));const i=e(n);return()=>{i==null||i(),r==null||r()}},[t]),ui=Object.create(null),Ls=Object.create(null),As=(t,e,n,r,i)=>{if(e!=null&&e.itemProp)return{tag:t,props:e,type:t,ref:e.ref};const o=document.head;let{onLoad:c,onError:l,precedence:u,blocking:d,...p}=e,h=null,g=!1;const A=ra[t];let m;if(A.length>0){const b=o.querySelectorAll(t);e:for(const T of b)for(const M of ra[t])if(T.getAttribute(M)===e[M]){h=T;break e}if(!h){const T=A.reduce((M,U)=>e[U]===void 0?M:`${M}-${U}-${e[U]}`,t);g=!Ls[T],h=Ls[T]||(Ls[T]=(()=>{const M=document.createElement(t);for(const U of A)e[U]!==void 0&&M.setAttribute(U,e[U]),e.rel&&M.setAttribute("rel",e.rel);return M})())}}else m=o.querySelectorAll(t);u=r?u??"":void 0,r&&(p[ia]=u);const $=kf(b=>{if(A.length>0){let T=!1;for(const M of o.querySelectorAll(t)){if(T&&M.getAttribute(ia)!==u){o.insertBefore(b,M);return}M.getAttribute(ia)===u&&(T=!0)}o.appendChild(b)}else if(m){let T=!1;for(const M of m)if(M===b){T=!0;break}T||o.insertBefore(b,o.contains(m[0])?m[0]:o.querySelector(t)),m=void 0}},[u]),k=Nf(e.ref,b=>{var U;const T=A[0];if(n===2&&(b.innerHTML=""),(g||m)&&$(b),!l&&!c)return;let M=ui[U=b.getAttribute(T)]||(ui[U]=new Promise((H,W)=>{b.addEventListener("load",H),b.addEventListener("error",W)}));c&&(M=M.then(c)),l&&(M=M.catch(l)),M.catch(()=>{})});if(i&&d==="render"){const b=ra[t][0];if(e[b]){const T=e[b],M=ui[T]||(ui[T]=new Promise((U,H)=>{$(h),h.addEventListener("load",U),h.addEventListener("error",H)}));M6(M)}}const S={tag:t,type:t,props:{...p,ref:k},ref:k};return S.p=n,h&&(S.e=h),L6(S,o)},K6=t=>{const e=D6(),n=e&&so(e);return n!=null&&n.endsWith("svg")?{tag:"title",props:t,type:"title",ref:t.ref}:As("title",t,void 0,!1,!1)},G6=t=>!t||["src","async"].some(e=>!t[e])?{tag:"script",props:t,type:"script",ref:t.ref}:As("script",t,1,!1,!0),W6=t=>!t||!["href","precedence"].every(e=>e in t)?{tag:"style",props:t,type:"style",ref:t.ref}:(t["data-href"]=t.href,delete t.href,As("style",t,2,!0,!0)),X6=t=>!t||["onLoad","onError"].some(e=>e in t)||t.rel==="stylesheet"&&(!("precedence"in t)||"disabled"in t)?{tag:"link",props:t,type:"link",ref:t.ref}:As("link",t,1,"precedence"in t,!0),J6=t=>As("meta",t,void 0,!1,!1),uy=Symbol(),Y6=t=>{const{action:e,...n}=t;typeof e!="function"&&(n.action=e);const[r,i]=U6([null,!1]),o=kf(async d=>{const p=d.isTrusted?e:d.detail[uy];if(typeof p!="function")return;d.preventDefault();const h=new FormData(d.target);i([h,!0]);const g=p(h);g instanceof Promise&&(H6(g),await g),i([null,!0])},[]),c=Nf(t.ref,d=>(d.addEventListener("submit",o),()=>{d.removeEventListener("submit",o)})),[l,u]=r;return r[1]=!1,{tag:V6,props:{value:{pending:l!==null,data:l,method:l?"post":null,action:l?e:null},children:{tag:"form",props:{...n,ref:c},type:"form",ref:c}},f:u}},dy=(t,{formAction:e,...n})=>{if(typeof e=="function"){const r=kf(i=>{i.preventDefault(),i.currentTarget.form.dispatchEvent(new CustomEvent("submit",{detail:{[uy]:e}}))},[]);n.ref=Nf(n.ref,i=>(i.addEventListener("click",r),()=>{i.removeEventListener("click",r)}))}return{tag:t,props:n,type:t,ref:n.ref}},Z6=t=>dy("input",t),Q6=t=>dy("button",t);Object.assign(Kd,{title:K6,script:G6,style:W6,link:X6,meta:J6,form:Y6,input:Z6,button:Q6});G1(null);new TextEncoder;const Mi=t=>{const{i18nKey:e,values:n,components:r}=t,i=F.t(e,n),o=/<(\d+)>(.*?)<\/\d+>/g,c=[];let l=0,u;for(;(u=o.exec(i))!==null;){const[,d,p]=u,h=i.substring(l,u.index);h&&c.push(h);const g=parseInt(d,10);c.push(v6(r[g],{},p)),l=o.lastIndex}return l<i.length&&c.push(i.substring(l)),v(Sf,{children:c})},qg=6,Xd=({error:t,theme:e,branding:n,email:r,state:i,client:o,hasPasswordLogin:c})=>{const l=new URLSearchParams({state:i}),d=o.connections.map(({name:p})=>p).includes("auth2");return v(nt,{title:F.t("verify_your_email"),theme:e,branding:n,client:o,children:[v("div",{className:"mb-4 text-2xl font-medium",children:F.t("verify_your_email")}),v("div",{className:"mb-8 text-gray-300",children:v(Mi,{i18nKey:"code_sent_template",components:[v("span",{className:"text-black dark:text-white"},"span")],values:{username:r}})}),v("div",{className:"flex flex-1 flex-col justify-center",children:[v(Cn,{className:"pt-2",children:[v("input",{autoFocus:!0,type:"text",pattern:"[0-9]*",maxLength:qg,inputMode:"numeric",name:"code",placeholder:"******",className:Kn("mb-2 w-full rounded-lg border bg-gray-100 px-4 pb-2 pt-2.5 text-center indent-[5px] font-mono text-3xl placeholder:text-gray-300 dark:bg-gray-600 md:text-3xl",{"border-red":t,"border-gray-100 dark:border-gray-500":!t}),minLength:qg,required:!0,id:"code-input"}),t&&v(Qn,{children:t}),v(tt,{className:"sm:mt-4 !text-base",children:[v("span",{children:F.t("login")}),v(et,{className:"text-xs",name:"arrow-right"})]}),v("div",{className:"my-4 flex space-x-2 text-sm text-[#B2B2B2]",children:[v(et,{className:"text-base",name:"info-bubble"}),v("div",{className:"text-sm text-gray-300 md:text-sm",children:F.t("sent_code_spam")})]}),d&&v("div",{className:"text-center mb-12",children:[v("div",{className:"relative mb-5 block text-center text-gray-300 dark:text-gray-300",children:[v("div",{className:"absolute left-0 right-0 top-1/2 border-b border-gray-200 dark:border-gray-600"}),v("div",{className:"relative inline-block bg-white px-2 dark:bg-gray-800",children:F.t("or")})]}),v(tt,{Component:"a",href:`/u/${c?"enter-password":"pre-signup"}?${l.toString()}`,variant:"secondary",className:"block",children:F.t("enter_your_password_btn")})]})]}),v(un,{state:i})]})]})},vr=t=>{const{message:e,theme:n,branding:r,client:i,pageTitle:o,state:c}=t;return v(nt,{title:"Login",theme:n,branding:r,client:i,children:[o?v("div",{className:"mb-6 text-gray-300",children:o}):"",v("div",{className:"flex flex-1 flex-col justify-center",children:e}),c?v(un,{state:c}):""]})},e8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state"})})},responses:{200:{description:"HTML page to enter verification code.",content:{"text/html":{schema:s.z.string()}}},400:{description:"Bad Request - HTML error page if username is missing in state.",content:{"text/html":{schema:s.z.string()}}},500:{description:"Internal Server Error - HTML error page.",content:{"text/html":{schema:s.z.string()}}}}}),async t=>{const{state:e}=t.req.valid("query");let n,r,i,o;try{if({theme:n,branding:r,loginSession:i,client:o}=await Ge(t,e),!i.authParams.username)return t.html(v(vr,{theme:n,branding:r,client:o,state:e,pageTitle:F.t("error_page_title")||"Error",message:F.t("username_not_found_error")||"Username not found in session."}),400);const c=await No({userAdapter:t.env.data.users,tenant_id:o.tenant.id,username:i.authParams.username,provider:"auth2"});return t.html(v(Xd,{theme:n,branding:r,email:i.authParams.username,state:e,client:o,hasPasswordLogin:!!c}))}catch(c){return console.error("Error in GET /u/enter-code:",c),r||(r=null),n||(n=null),o||(o=null),t.html(v(vr,{theme:n,branding:r,client:o,state:e,pageTitle:F.t("error_page_title")||"Error",message:F.t("unexpected_error_try_again")||"An unexpected error occurred. Please try again."}),500)}}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state"})}),body:{content:{"application/x-www-form-urlencoded":{schema:s.z.object({code:s.z.string()})}}}},responses:{302:{description:"Redirect to continue authentication flow.",headers:s.z.object({Location:s.z.string().url()})},400:{description:"Bad Request - HTML page with an error message (e.g., invalid code, username missing).",content:{"text/html":{schema:s.z.string()}}},500:{description:"Internal Server Error - HTML error page for unexpected issues.",content:{"text/html":{schema:s.z.string()}}}}}),async t=>{var l;const{state:e}=t.req.valid("query"),{code:n}=t.req.valid("form"),{theme:r,branding:i,client:o,loginSession:c}=await Ge(t,e);if(!c.authParams.username)throw new R(400,{message:F.t("username_not_found_error")||"Username not found in session."});try{t.set("client_id",o.id);const u=await mf(t,{client_id:o.id,authParams:c.authParams,username:c.authParams.username,otp:n});if(u instanceof Response)return u;throw new R(500,{message:F.t("unexpected_error_try_again")||"An unexpected error occurred. Please try again."})}catch(u){let d;try{d=await No({userAdapter:t.env.data.users,tenant_id:o.tenant.id,username:c.authParams.username,provider:"auth2"})}catch{d=null}return t.html(v(Xd,{theme:r,branding:i,email:(l=c.authParams)==null?void 0:l.username,state:e,client:o,error:u.message,hasPasswordLogin:!!d}),400)}}),py=t=>{const{theme:e,branding:n,client:r,state:i}=t;return v(nt,{title:F.t("unverified_email"),theme:e,branding:n,client:r,children:[v("div",{className:"flex flex-1 flex-col justify-center",children:[v("p",{className:"mb-8 text-gray-300 text-lg",children:F.t("unverified_email")}),v("div",{className:"my-4 flex space-x-2 text-sm text-[#B2B2B2]",children:[v(et,{className:"text-base",name:"info-bubble"}),v("div",{className:"text-sm text-gray-300 md:text-sm",children:F.t("sent_code_spam")})]}),v(un,{state:i})]}),v(un,{state:i})]})},t8=({width:t=22,height:e=17})=>v("svg",{width:t,height:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:v("path",{fill:"currentColor",d:"M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4 142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32M144 256a144 144 0 1 1 288 0 144 144 0 1 1-288 0m144-64c0 35.3-28.7 64-64 64-7.1 0-13.9-1.2-20.3-3.3-5.5-1.8-11.9 1.6-11.7 7.4.3 6.9 1.3 13.8 3.2 20.7 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3"})}),n8=({width:t=23,height:e=18})=>v("svg",{width:t,height:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",children:v("path",{fill:"currentColor",d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2s-6.3 25.5 4.1 33.7l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-105.2-82.4c39.6-40.6 66.4-86.1 79.9-118.4 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8zm184.3 144.4c25.5-23.3 59.6-37.5 96.9-37.5 79.5 0 144 64.5 144 144 0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3 0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1-79.5 0-144-64.5-144-144 0-6.9.5-13.6 1.4-20.2l-94.3-74.3c-22.8 29.7-39.1 59.3-48.6 82.2-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47 43.8 111.7 80.6 192.5 80.6 47.8 0 89.9-12.9 126.2-32.5z"})}),Jd=({name:t,placeholder:e=F.t("password")})=>v("div",{className:"password-input relative mb-2",children:[v("input",{type:"password",name:t,placeholder:e,className:"w-full rounded-lg bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base",required:!0}),v("button",{type:"button","aria-label":F.t("show_password"),title:F.t("show_password"),className:"show-password-toggle-show absolute right-0 top-0 w-10 h-full rounded-r-lg text-gray-400 column hover:bg-black/5",children:v(t8,{})}),v("button",{type:"button","aria-label":F.t("hide_password"),title:F.t("hide_password"),className:"show-password-toggle-hide !hidden absolute right-0 top-0 w-10 h-full rounded-r-lg text-gray-400 column hover:bg-black/5",children:v(n8,{})})]});var Vg=Object.freeze,r8=Object.defineProperty,i8=(t,e)=>Vg(r8(t,"raw",{value:Vg(t.slice())})),Hg;const la=t=>{const{error:e,theme:n,branding:r,email:i,state:o,client:c}=t,l=new URLSearchParams({state:o});return v(nt,{title:F.t("enter_password"),theme:n,branding:r,client:c,children:[v("div",{className:"mb-4 text-lg font-medium sm:text-2xl",children:F.t("enter_password")}),v("div",{className:"mb-6 text-gray-300",children:F.t("enter_password_description")}),v("div",{className:"flex flex-1 flex-col justify-center",children:[v(Cn,{className:"mb-7",children:[v("input",{type:"text",name:"username",placeholder:F.t("email_placeholder"),className:"mb-2 w-full rounded-lg bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base",value:i}),v(Jd,{name:"password"}),e&&v(Qn,{children:e}),v(tt,{className:"sm:mt-4 !text-base",children:[v("span",{children:F.t("login")}),v(et,{className:"text-xs",name:"arrow-right"})]})]}),v("a",{href:`/u/forgot-password?${l.toString()}`,className:"text-primary hover:underline mb-4",children:F.t("forgot_password_link")}),v("div",{className:"text-center mb-12",children:[v("div",{className:"relative mb-5 block text-center text-gray-300 dark:text-gray-300",children:[v("div",{className:"absolute left-0 right-0 top-1/2 border-b border-gray-200 dark:border-gray-600"}),v("div",{className:"relative inline-block bg-white px-2 dark:bg-gray-800",children:F.t("or")})]}),v("form",{method:"post",action:`/u/login/identifier?${l.toString()}`,children:[v("input",{type:"hidden",name:"login_selection",value:"code"}),v("input",{type:"hidden",name:"username",value:i}),v(tt,{variant:"secondary",className:"block",children:F.t("enter_a_code_btn")})]})]}),v(un,{state:o})]}),q1(Hg||(Hg=i8([`
|
|
231
231
|
<script>
|
|
232
232
|
// Show password toggle
|
|
233
233
|
var passwordInputs = document.querySelectorAll(".password-input");
|
|
@@ -251,10 +251,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
251
251
|
});
|
|
252
252
|
});
|
|
253
253
|
<\/script>
|
|
254
|
-
`])))]})},i8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,client:i,loginSession:o}=await Ge(t,e);if(!o.authParams.username)throw new R(400,{message:"Username required"});return t.html(v(la,{theme:n,branding:r,email:o.authParams.username,state:e,client:i}))}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})}),body:{content:{"application/x-www-form-urlencoded":{schema:s.z.object({password:s.z.string()})}}}},responses:{200:{description:"HTML page indicating success or a next step (if not redirecting).",content:{"text/html":{schema:s.z.string()}}},302:{description:"Redirect to continue the authentication flow (e.g., to client, MFA, consent).",headers:s.z.object({Location:s.z.string().url()})},400:{description:"Bad Request - HTML page with an error message (e.g., invalid password, username required).",content:{"text/html":{schema:s.z.string()}}},500:{description:"Internal Server Error - HTML page with an error message.",content:{"text/html":{schema:s.z.string()}}}}}),async t=>{const{state:e}=t.req.valid("query"),n=t.req.valid("form"),{password:r}=n,{theme:i,branding:o,client:c,loginSession:l}=await Ge(t,e),{username:u}=l.authParams;if(!u)throw new R(400,{message:"Username required"});try{return await M1(t,c,{...l.authParams,password:r},l)}catch(d){const p=d;return p.code==="INVALID_PASSWORD"||p.code==="USER_NOT_FOUND"?t.html(v(la,{theme:i,branding:o,email:u,error:F.t("invalid_password"),state:e,client:c}),400):p.code==="EMAIL_NOT_VERIFIED"?t.html(v(py,{theme:i,branding:o,client:c,state:e}),400):t.html(v(la,{theme:i,branding:o,email:u,error:p.message||"An unknown error occurred.",state:e,client:c}),p.code?400:500)}}),Tr=t=>{const{error:e,theme:n,branding:r,client:i,email:o,state:c,code:l}=t;return v(nt,{title:F.t("sign_up"),theme:n,branding:r,client:i,children:[v("div",{className:"mb-4 text-lg font-medium sm:text-2xl",children:F.t("create_account_title")}),v("div",{className:"mb-6 text-gray-300",children:F.t("create_account_description")}),v("div",{className:"flex flex-1 flex-col justify-center",children:[v(Cn,{children:[v("input",{type:"hidden",name:"code",value:l}),v("input",{type:"email",name:"username",placeholder:F.t("email_placeholder"),className:"mb-2 w-full rounded-lg bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base",required:!0,value:o,disabled:!!o}),v("input",{type:"password",name:"password",placeholder:F.t("enter_new_password_placeholder"),className:"mb-2 w-full rounded-lg bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base"}),v("input",{type:"password",name:"re-enter-password",placeholder:F.t("reenter_new_password_placeholder"),className:"mb-2 w-full rounded-lg bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base"}),e&&v(Qn,{children:e}),v(tt,{className:"sm:mt-4 !text-base",children:F.t("continue")})]}),v(un,{state:c})]})]})},o8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"}),code:s.z.string().optional().openapi({description:"The code parameter from an email verification link"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e,code:n}=t.req.valid("query"),{theme:r,branding:i,client:o,loginSession:c}=await Ge(t,e),{username:l}=c.authParams;if(!l)throw new R(400,{message:"Username required"});return n?t.html(v(Tr,{state:e,theme:r,branding:i,client:o,email:l,code:n})):t.html(v(Tr,{state:e,theme:r,branding:i,client:o,email:l}))}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})}),body:{content:{"application/x-www-form-urlencoded":{schema:s.z.object({password:s.z.string(),"re-enter-password":s.z.string(),code:s.z.string().optional()})}}}},responses:{200:{description:"HTML page indicating success (e.g., email verification sent) or a next step.",content:{"text/html":{schema:s.z.string()}}},302:{description:"Redirect to continue the authentication flow (e.g., to client, MFA, consent) after successful login.",headers:s.z.object({Location:s.z.string().url()})},400:{description:"Bad Request - HTML page with an error message (e.g., passwords don't match, weak password, user exists).",content:{"text/html":{schema:s.z.string()}}},500:{description:"Internal Server Error - HTML page with an error message.",content:{"text/html":{schema:s.z.string()}}}}}),async t=>{const{state:e}=t.req.valid("query"),n=t.req.valid("form"),{env:r}=t,{theme:i,branding:o,client:c,loginSession:l}=await Ge(t,e);try{if(!l.authParams.username)throw new R(400,{message:"Username required"});const u="Username-Password-Authentication";if(t.set("connection",u),n.password!==n["re-enter-password"])return t.html(v(Tr,{state:e,code:n.code,theme:i,branding:o,client:c,error:F.t("create_account_passwords_didnt_match"),email:l.authParams.username}),400);if(!wf(n.password))return t.html(v(Tr,{state:e,code:n.code,theme:i,branding:o,client:c,error:F.t("create_account_weak_password"),email:l.authParams.username}),400);const d=n.code?await r.data.codes.get(c.tenant.id,n.code,"email_verification"):void 0,p=d?await r.data.loginSessions.get(c.tenant.id,d.login_id):void 0;if(await Gi({userAdapter:t.env.data.users,tenant_id:c.tenant.id,username:l.authParams.username,provider:"auth2"}))return t.html(v(Tr,{state:e,code:n.code,theme:i,branding:o,client:c,error:F.t("user_exists_error"),email:l.authParams.username}),400);const g=(p==null?void 0:p.authParams.username)===l.authParams.username,A=`auth2|${wc()}`,m=await r.data.users.create(c.tenant.id,{user_id:A,email:l.authParams.username,email_verified:g,provider:"auth2",connection:u,is_social:!1});if(await r.data.passwords.create(c.tenant.id,{user_id:A,password:await Qo.hash(n.password,10),algorithm:"bcrypt"}),!g)return await xf(t,m),t.html(v(vr,{message:F.t("validate_email_body"),pageTitle:F.t("validate_email_title"),theme:i,branding:o,client:c,state:e}));const $=await U1(t,c,{...l.authParams,password:n.password},l);return Ar(t,$)}catch(u){let d=F.t("unknown_error_message"),p=400;return u instanceof R?(d=u.message||d,p=u.status===400?400:500):u instanceof gi?d=u.message||d:u instanceof Error&&(d=u.message||d,p=500),t.html(v(Tr,{state:e,theme:i,branding:o,client:c,error:d,email:l.authParams.username,code:n.code}),p)}}),mi=t=>{const{error:e,theme:n,branding:r,client:i,email:o}=t;return v(nt,{title:F.t("reset_password_title"),theme:n,branding:r,client:i,children:[v("div",{className:"mb-4 text-lg font-medium sm:text-2xl",children:F.t("reset_password_title")}),v("div",{className:"mb-6 text-gray-300",children:`${F.t("reset_password_description")} ${o}`}),v("div",{className:"flex flex-1 flex-col justify-center",children:v(Cn,{children:[v(Jd,{name:"password",placeholder:F.t("enter_new_password_placeholder")}),v(Jd,{name:"re-enter-password",placeholder:F.t("reenter_new_password_placeholder")}),e&&v(Qn,{children:e}),v(tt,{className:"sm:mt-4 !text-base",children:F.t("reset_password_cta")})]})})]})},s8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"}),code:s.z.string().openapi({description:"The code parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,client:i,loginSession:o}=await Ge(t,e);if(!o.authParams.username)throw new R(400,{message:"Username required"});return t.html(v(mi,{theme:n,branding:r,client:i,email:o.authParams.username}))}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"}),code:s.z.string().openapi({description:"The code parameter from the authorization request"})}),body:{content:{"application/x-www-form-urlencoded":{schema:s.z.object({password:s.z.string(),"re-enter-password":s.z.string()})}}}},responses:{200:{description:"Response"}}}),async t=>{const{state:e,code:n}=t.req.valid("query"),{password:r,"re-enter-password":i}=t.req.valid("form"),{env:o}=t,{theme:c,branding:l,client:u,loginSession:d}=await Ge(t,e);if(!d.authParams.username)throw new R(400,{message:"Username required"});if(r!==i)return t.html(v(mi,{error:F.t("create_account_passwords_didnt_match"),theme:c,branding:l,client:u,email:d.authParams.username}),400);if(!wf(r))return t.html(v(mi,{error:F.t("create_account_weak_password"),theme:c,branding:l,client:u,email:d.authParams.username}),400);const p=await Gi({userAdapter:o.data.users,tenant_id:u.tenant.id,username:d.authParams.username,provider:"auth2"});if(!p)throw new R(400,{message:"User not found"});try{if(!await o.data.codes.get(u.tenant.id,n,"password_reset"))return t.html(v(mi,{error:"Code not found or expired",theme:c,branding:l,client:u,email:d.authParams.username}),400);const g={user_id:p.user_id,password:await Qo.hash(r,10),algorithm:"bcrypt"};await o.data.passwords.get(u.tenant.id,p.user_id)?await o.data.passwords.update(u.tenant.id,g):await o.data.passwords.create(u.tenant.id,g),p.email_verified||await o.data.users.update(u.tenant.id,p.user_id,{email_verified:!0})}catch{return t.html(v(mi,{error:"The password could not be reset",theme:c,branding:l,client:u,email:d.authParams.username}),400)}return t.html(v(vr,{message:F.t("password_has_been_reset"),theme:c,branding:l,client:u,state:e}))}),fy=t=>{const{error:e,theme:n,branding:r,client:i,email:o,state:c}=t;return v(nt,{title:F.t("forgot_password_title"),theme:n,branding:r,client:i,children:[v("div",{className:"mb-4 text-lg font-medium sm:text-2xl",children:F.t("forgot_password_title")}),v("div",{className:"mb-6 text-gray-300",children:F.t("forgot_password_description")}),v("div",{className:"flex flex-1 flex-col justify-center",children:[v(Cn,{className:"pt-2",children:[v("input",{type:"email",name:"username",placeholder:F.t("email_placeholder"),className:"mb-2 w-full rounded-lg bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base",value:o,disabled:!!o}),e&&v(Qn,{children:e}),v(tt,{className:"sm:mt-4 !text-base",children:F.t("forgot_password_cta")})]}),v(un,{state:c})]})]})},hy=t=>{const{theme:e,branding:n,client:r,state:i}=t;return v(nt,{title:"Login",theme:e,branding:n,client:r,children:[v("div",{className:"flex flex-1 flex-col justify-center",children:[v("div",{children:F.t("forgot_password_email_sent")}),v("div",{className:"my-4 flex space-x-2 text-sm text-[#B2B2B2]",children:[v(et,{className:"text-base",name:"info-bubble"}),v("div",{className:"text-sm text-gray-300 md:text-sm",children:F.t("sent_code_spam")})]})]}),v(un,{state:i})]})},a8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,client:i,loginSession:o}=await Ge(t,e);return t.html(v(fy,{theme:n,branding:r,client:i,state:e,email:o.authParams.username}))}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,client:i,loginSession:o}=await Ge(t,e);return await JA(t,i,o.authParams.username,o.id),t.html(v(hy,{theme:n,branding:r,client:i,state:e}))}),gy=({theme:t,branding:e,client:n,state:r,user:i})=>v(nt,{title:$e("check_email_title"),theme:t,branding:e,client:n,children:v("div",{className:"flex flex-1 flex-col justify-center",children:[v("div",{className:"mb-8 text-gray-700 dark:text-gray-300",children:[v(Mi,{i18nKey:"currently_logged_in_as",components:[v("span",{className:"font-semibold text-gray-900 dark:text-white"},"span")],values:{email:i.email||""}}),v("br",{}),$e("continue_with_sso_provider_headline")]}),v("div",{className:"space-y-6",children:[v(Cn,{children:v(tt,{className:"!text-base",children:v("span",{children:F.t("yes_continue_with_existing_account")})})}),v("a",{className:"block text-center text-primary hover:text-primaryHover focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 dark:focus:ring-offset-gray-900",href:`/u/login/identifier?state=${encodeURIComponent(r)}`,children:F.t("no_use_another")})]})]})}),c8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})})},responses:{200:{description:"HTML page to check account status or verify email.",content:{"text/html":{schema:s.z.string()}}},302:{description:"Redirect to login identifier page if no valid session.",headers:s.z.object({Location:s.z.string().url()})},400:{description:"Bad Request - HTML error page if state is missing or other input error.",content:{"text/html":{schema:s.z.string()}}},500:{description:"Internal Server Error - HTML error page.",content:{"text/html":{schema:s.z.string()}}}}}),async t=>{var d;const{env:e}=t,{state:n}=t.req.valid("query"),{theme:r,branding:i,client:o}=await Ge(t,n);if(!o||!((d=o.tenant)!=null&&d.id))return console.error("Client or tenant ID missing in GET /u/check-account after initJSXRoute"),t.html(v(vr,{theme:r,branding:i,client:o,state:n,pageTitle:F.t("error_page_title")||"Error",message:F.t("configuration_error_message")||"A configuration error occurred."}),500);const c=ko(o.tenant.id,t.req.header("cookie")),l=c?await e.data.sessions.get(o.tenant.id,c):null;if(!l)return t.redirect(`/u/login/identifier?state=${n}`);const u=await e.data.users.get(o.tenant.id,l.user_id);return u?t.html(v(gy,{theme:r,branding:i,client:o,state:n,user:u})):t.redirect(`/u/login/identifier?state=${n}`)}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})})},responses:{302:{description:"Redirect to continue authentication flow or to login identifier.",headers:s.z.object({Location:s.z.string().url()})},400:{description:"Bad Request - HTML error page if state is missing or other input error.",content:{"text/html":{schema:s.z.string()}}},500:{description:"Internal Server Error - HTML error page for unexpected issues or if TokenResponse is returned.",content:{"text/html":{schema:s.z.string()}}}}}),async t=>{var h;const{env:e}=t,{state:n}=t.req.valid("query"),{theme:r,branding:i,client:o,loginSession:c}=await Ge(t,n);if(!o||!((h=o.tenant)!=null&&h.id))return console.error("Client or tenant ID missing in POST /u/check-account after initJSXRoute"),t.html(v(vr,{theme:r,branding:i,client:o,state:n,pageTitle:F.t("error_page_title")||"Error",message:F.t("configuration_error_message")}),500);const l=ko(o.tenant.id,t.req.header("cookie")),u=l?await e.data.sessions.get(o.tenant.id,l):null;if(!u)return t.redirect(`/u/login/identifier?state=${n}`);const d=await e.data.users.get(o.tenant.id,u.user_id);if(!d)return t.redirect(`/u/login/identifier?state=${n}`);const p=await Ar(t,{user:d,authParams:c.authParams,client:o,loginSession:c});if(!(p instanceof Response))throw new R(500,{message:F.t("unexpected_error_try_again")});return p}),l8=!1,Kg=t=>{var l;const{theme:e,branding:n,user:r,client:i,error:o,success:c}=t;return(l=r.identities)!=null&&l.filter(u=>!(u.provider===r.provider&&u.user_id===r.user_id.split("|")[1])),v(nt,{title:F.t("account_title")||"Account Settings",theme:e,branding:n,client:i,children:v("div",{className:"flex flex-1 flex-col justify-center",children:v("div",{className:"mx-auto w-full max-w-sm",children:[v("div",{className:"text-center",children:v("h1",{className:"mb-6 text-2xl font-semibold text-gray-900",children:F.t("account_title")||"Account Settings"})}),o&&v(Qn,{children:o}),c&&v("div",{className:"mb-4 rounded-md bg-green-50 p-4",children:v("div",{className:"text-sm text-green-700",children:c})}),v("div",{className:"mb-6",children:[v("h2",{className:"mb-3 text-lg font-medium text-gray-900",children:F.t("email")}),v("div",{className:"rounded-lg border border-gray-200 p-4",children:v("div",{className:"flex items-center justify-between",children:v("div",{children:[v("p",{className:"text-sm font-medium text-gray-900",children:r.email||"No email set"}),v("p",{className:"text-xs text-gray-500",children:r.email_verified?F.t("verified")||"Verified":F.t("unverified")||"Unverified"})]})})})]}),v("div",{className:"mb-6",children:[v("h2",{className:"mb-3 text-lg font-medium text-gray-900",children:F.t("update_email")}),v("form",{method:"post",children:[v("input",{type:"hidden",name:"action",value:"update_email"}),v("div",{className:"mb-4",children:v("input",{type:"email",id:"email",name:"email",required:!0,className:"w-full rounded-md border border-gray-300 px-3 py-2 text-sm placeholder-gray-400 focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500",placeholder:F.t("enter_new_email")})}),v(tt,{variant:"primary",className:"w-full",children:F.t("update_email")})]})]}),l8]})})})},u8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({client_id:s.z.string()})},responses:{200:{description:"Response"},302:{description:"Redirect to login if no session"},500:{description:"Server error"}}}),async t=>{const{client_id:e}=t.req.valid("query"),{theme:n,branding:r,client:i,user:o}=await Go(t,e);return t.html(v(Kg,{theme:n,branding:r,user:o,client:i}))}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({client_id:s.z.string()}),body:{content:{"application/x-www-form-urlencoded":{schema:s.z.object({email:s.z.string().email().optional(),action:s.z.enum(["update_email","unlink_account"]),provider:s.z.string().optional(),user_id:s.z.string().optional()})}}}},responses:{200:{description:"Response"},302:{description:"Redirect to login if no session"},400:{description:"Bad request"}}}),async t=>{const{env:e}=t,{client_id:n}=t.req.valid("query"),r=t.req.valid("form"),{theme:i,branding:o,client:c,user:l}=await Go(t,n);let u,d;try{if(r.action==="update_email"&&r.email){const h=qe();await e.data.codes.create(c.tenant.id,{code_id:h,login_id:"",code_type:"email_verification",expires_at:new Date(Date.now()+hu).toISOString(),user_id:l.user_id});const g=wr();return await e.data.codes.create(c.tenant.id,{code_id:g,login_id:"",code_type:"email_verification",expires_at:new Date(Date.now()+hu).toISOString(),user_id:l.user_id}),await vf(t,{to:r.email.toLowerCase(),code:g}),t.redirect(`/u/change-email?client_id=${c.id}&email=${encodeURIComponent(r.email.toLowerCase())}&change_id=${h}`)}else r.action==="unlink_account"&&r.provider&&r.user_id&&(await e.data.users.unlink(c.tenant.id,l.user_id,r.provider,r.user_id),d=F.t("account_unlinked_successfully")||"Account unlinked successfully")}catch{u=F.t("operation_failed")||"Operation failed"}const p=await e.data.users.get(c.tenant.id,l.user_id);return t.html(v(Kg,{theme:i,branding:o,user:p||l,client:c,error:u,success:d}))}),Gg=6,Yd=({error:t,theme:e,branding:n,client:r,email:i,success:o})=>o?v(nt,{title:F.t("success"),theme:e,branding:n,client:r,children:[v("div",{className:"mb-4 text-2xl font-medium",children:F.t("success")}),v("div",{className:"mb-8 text-gray-300",children:v(Mi,{i18nKey:"email_changed_to_template",components:[v("span",{className:"text-black dark:text-white"},"span")],values:{email:i}})}),v("div",{className:"flex flex-1 flex-col justify-center",children:v(tt,{Component:"a",href:`/u/account?client_id=${r.id}`,className:"sm:mt-4 !text-base",children:[v("span",{children:F.t("continue")}),v(et,{className:"text-xs",name:"arrow-right"})]})})]}):v(nt,{title:F.t("verify_email_verify"),theme:e,branding:n,client:r,children:[v("div",{className:"mb-4 text-2xl font-medium",children:F.t("verify_email_verify")}),v("div",{className:"mb-8 text-gray-300",children:v(Mi,{i18nKey:"code_sent_template",components:[v("span",{className:"text-black dark:text-white"},"span")],values:{username:i}})}),v("div",{className:"flex flex-1 flex-col justify-center",children:[v(Cn,{className:"pt-2",children:[v("input",{autoFocus:!0,type:"text",pattern:"[0-9]*",maxLength:Gg,inputMode:"numeric",name:"code",placeholder:"******",className:Kn("mb-2 w-full rounded-lg border bg-gray-100 px-4 pb-2 pt-2.5 text-center indent-[5px] font-mono text-3xl placeholder:text-gray-300 dark:bg-gray-600 md:text-3xl",{"border-red":t,"border-gray-100 dark:border-gray-500":!t}),minLength:Gg,required:!0,id:"code-input"}),t&&v(Qn,{children:t}),v(tt,{className:"sm:mt-4 !text-base",children:[v("span",{children:F.t("continue")}),v(et,{className:"text-xs",name:"arrow-right"})]}),v("div",{className:"my-4 flex space-x-2 text-sm text-[#B2B2B2]",children:[v(et,{className:"text-base",name:"info-bubble"}),v("div",{className:"text-sm text-gray-300 md:text-sm",children:F.t("sent_code_spam")})]})]}),v("a",{className:"block text-primary hover:text-primaryHover text-center",href:`/u/account?client_id=${r.id}`,children:F.t("go_back")})]})]}),d8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({client_id:s.z.string(),email:s.z.string().email(),change_id:s.z.string()})},responses:{200:{description:"Response"},302:{description:"Redirect to login if no session"},500:{description:"Server error"}}}),async t=>{const{client_id:e,email:n,change_id:r}=t.req.valid("query"),{theme:i,branding:o,client:c,user:l}=await Go(t,e),u=await t.env.data.codes.get(c.tenant.id,r,"email_verification");return!u||u.user_id!==l.user_id?t.redirect(`/u/account?client_id=${e}`):t.html(v(Yd,{theme:i,branding:o,client:c,email:n}))}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({client_id:s.z.string(),email:s.z.string().email(),change_id:s.z.string()}),body:{content:{"application/x-www-form-urlencoded":{schema:s.z.object({code:s.z.string()})}}}},responses:{200:{description:"Response"},302:{description:"Redirect to account on success"},400:{description:"Bad request"}}}),async t=>{const{env:e}=t,{client_id:n,email:r,change_id:i}=t.req.valid("query"),{code:o}=t.req.valid("form"),{theme:c,branding:l,client:u,user:d}=await Go(t,n);let p;try{const h=await e.data.codes.get(u.tenant.id,i,"email_verification");if(!h)p=F.t("invalid_request");else if(h.user_id!==d.user_id)p=F.t("invalid_request");else if(h.used_at)p=F.t("code_already_used");else if(new Date(h.expires_at)<new Date)p=F.t("code_expired");else{const g=await e.data.codes.get(u.tenant.id,o,"email_verification");if(!g)p=F.t("invalid_code");else if(g.used_at)p=F.t("code_already_used");else if(new Date(g.expires_at)<new Date)p=F.t("code_expired");else if(g.user_id!==d.user_id)p=F.t("invalid_code");else return await e.data.codes.used(u.tenant.id,i),await e.data.codes.used(u.tenant.id,o),await e.data.users.update(u.tenant.id,d.user_id,{email:r.toLowerCase(),email_verified:!0}),t.redirect(`/u/change-email-confirmation?client_id=${n}&email=${encodeURIComponent(r.toLowerCase())}`)}}catch{p=F.t("operation_failed")}return t.html(v(Yd,{theme:c,branding:l,client:u,email:r,error:p}))}),p8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({client_id:s.z.string(),email:s.z.string().email()})},responses:{200:{description:"Response"},302:{description:"Redirect to login if no session"},500:{description:"Server error"}}}),async t=>{const{client_id:e,email:n}=t.req.valid("query"),{theme:r,branding:i,client:o}=await Go(t,e);return t.html(v(Yd,{theme:r,branding:i,client:o,email:n,success:!0}))}),my=t=>{const{theme:e,branding:n,client:r,email:i,state:o}=t;return v(nt,{title:F.t("create_password_account_title"),theme:e,branding:n,client:r,children:[v("div",{className:"mb-4 text-lg font-medium sm:text-2xl",children:F.t("create_password_account_title")}),v("div",{className:"mb-6 text-gray-300",children:F.t("enter_email_for_verification_description")}),v("div",{className:"flex flex-1 flex-col justify-center",children:v(Cn,{className:"pt-2",children:[v("input",{type:"email",name:"username",placeholder:F.t("email_placeholder"),className:"mb-2 w-full rounded-lg bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base",required:!0,value:i,disabled:!0}),v(tt,{className:"sm:mt-4 !text-base",children:F.t("send")})]})}),v(un,{state:o})]})},f8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,client:i,loginSession:o}=await Ge(t,e),{username:c}=o.authParams;if(!c)throw new R(400,{message:"Username required"});return t.html(v(my,{state:e,theme:n,branding:r,client:i,email:c}))}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{loginSession:n,client:r}=await Ge(t,e),{username:i}=n.authParams;if(!i)throw new R(400,{message:"Username required"});const o=await t.env.data.codes.create(r.tenant.id,{code_id:wr(),code_type:"email_verification",login_id:n.id,expires_at:new Date(Date.now()+hu).toISOString()});return await GA(t,i,o.code_id,n.id),t.redirect(`/u/pre-signup-sent?state=${e}`)}),_y=t=>{const{redirectUrl:e,theme:n,branding:r,client:i}=t;return v(nt,{title:F.t("invalid_session_title"),theme:n,branding:r,client:i,children:[v("div",{className:"flex flex-1 flex-col justify-center",children:F.t("invalid_session_body")}),v("div",{className:"flex flex-1 flex-col justify-center",children:e&&v("a",{className:"block text-primary hover:text-primaryHover text-center",href:e,children:F.t("go_back")})})]})},h8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string()})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,client:i,loginSession:o}=await Ge(t,e);let c;return o.authParams.redirect_uri&&o.authParams.state&&(c=new URL(o.authParams.redirect_uri),c.searchParams.set("state",o.authParams.state),c.searchParams.set("error","invalid_session"),c.searchParams.set("error_description",o.authParams.username||"")),t.html(v(_y,{redirectUrl:c==null?void 0:c.href,theme:n,branding:r,client:i}))}),g8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"}),code:s.z.string().openapi({description:"The code parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,client:i}=await Ge(t,e);return t.html(v(vr,{message:"Not implemented",pageTitle:"User info",theme:n,branding:r,client:i,state:e}))}),yy=({theme:t,branding:e,client:n,state:r})=>{const i=new URLSearchParams({state:r});return v(nt,{title:F.t("email_validated"),theme:t,branding:e,client:n,children:[v("div",{className:"mb-4 text-lg font-medium sm:text-2xl",children:F.t("email_validated")}),v("div",{className:"flex flex-1 flex-col justify-center mb-7",children:v(tt,{Component:"a",href:`/u/enter-password?${i}`,className:"text-base sm:mt-4 md:text-base",children:v("div",{className:"flex items-center space-x-2",children:[v("span",{children:F.t("email_validated_cta")}),v(et,{className:"text-xs",name:"arrow-right"})]})})})]})},m8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"}),code:s.z.string().openapi({description:"The code parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{var A;const{state:e,code:n}=t.req.valid("query"),{env:r}=t,{client:i,loginSession:o,theme:c,branding:l}=await Ge(t,e),{username:u}=o.authParams;if(!u)throw new R(400,{message:"Username not found in state"});const d=await Gi({userAdapter:r.data.users,tenant_id:i.tenant.id,username:u,provider:"auth2"});if(!d)throw new R(500,{message:"No user found"});if(!await r.data.codes.get(i.tenant.id,n,"email_verification"))throw new R(400,{message:"Code not found or expired"});await r.data.users.update(i.tenant.id,d.user_id,{email_verified:!0});const g=(await gp(r.data.users,i.tenant.id,u)).filter(m=>m.provider!=="auth2");if(g.length>0){const m=g.filter($=>!$.linked_to);m.length>1&&console.error("More than one primary user found for email",u),m.length===0&&console.error("No primary user found for email",u),m.length===1&&await r.data.users.update(i.tenant.id,d.user_id,{linked_to:(A=m[0])==null?void 0:A.user_id})}return t.html(v(yy,{theme:c,branding:l,client:i,state:e}))}),wy=t=>{const{theme:e,branding:n,client:r,email:i,state:o}=t;return v(nt,{title:F.t("sign_up_success"),theme:e,branding:n,client:r,children:[v("div",{className:"mb-4 text-lg font-medium sm:text-2xl",children:F.t("email_verification_for_signup_sent_title")}),v("div",{className:"flex flex-1 flex-col justify-center",children:[v("div",{className:"mb-6 text-gray-300",children:v(Mi,{i18nKey:"email_verification_for_signup_sent_description",components:[v("span",{className:"text-black dark:text-white"},"span")],values:{email:i}})}),v("div",{className:"my-4 flex space-x-2 text-sm text-[#B2B2B2]",children:[v(et,{className:"text-base",name:"info-bubble"}),v("div",{className:"text-sm text-gray-300 md:text-sm",children:F.t("sent_code_spam")})]})]}),v(un,{state:o})]})},_8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,client:i,loginSession:o}=await Ge(t,e),{username:c}=o.authParams;if(!c)throw new R(400,{message:"Username required"});return t.html(v(wy,{theme:n,branding:r,client:i,state:e,email:c}))}),Cf=`
|
|
254
|
+
`])))]})},o8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,client:i,loginSession:o}=await Ge(t,e);if(!o.authParams.username)throw new R(400,{message:"Username required"});return t.html(v(la,{theme:n,branding:r,email:o.authParams.username,state:e,client:i}))}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})}),body:{content:{"application/x-www-form-urlencoded":{schema:s.z.object({password:s.z.string()})}}}},responses:{200:{description:"HTML page indicating success or a next step (if not redirecting).",content:{"text/html":{schema:s.z.string()}}},302:{description:"Redirect to continue the authentication flow (e.g., to client, MFA, consent).",headers:s.z.object({Location:s.z.string().url()})},400:{description:"Bad Request - HTML page with an error message (e.g., invalid password, username required).",content:{"text/html":{schema:s.z.string()}}},500:{description:"Internal Server Error - HTML page with an error message.",content:{"text/html":{schema:s.z.string()}}}}}),async t=>{const{state:e}=t.req.valid("query"),n=t.req.valid("form"),{password:r}=n,{theme:i,branding:o,client:c,loginSession:l}=await Ge(t,e),{username:u}=l.authParams;if(!u)throw new R(400,{message:"Username required"});try{return await M1(t,c,{...l.authParams,password:r},l)}catch(d){const p=d;return p.code==="INVALID_PASSWORD"||p.code==="USER_NOT_FOUND"?t.html(v(la,{theme:i,branding:o,email:u,error:F.t("invalid_password"),state:e,client:c}),400):p.code==="EMAIL_NOT_VERIFIED"?t.html(v(py,{theme:i,branding:o,client:c,state:e}),400):t.html(v(la,{theme:i,branding:o,email:u,error:p.message||"An unknown error occurred.",state:e,client:c}),p.code?400:500)}}),Tr=t=>{const{error:e,theme:n,branding:r,client:i,email:o,state:c,code:l}=t;return v(nt,{title:F.t("sign_up"),theme:n,branding:r,client:i,children:[v("div",{className:"mb-4 text-lg font-medium sm:text-2xl",children:F.t("create_account_title")}),v("div",{className:"mb-6 text-gray-300",children:F.t("create_account_description")}),v("div",{className:"flex flex-1 flex-col justify-center",children:[v(Cn,{children:[v("input",{type:"hidden",name:"code",value:l}),v("input",{type:"email",name:"username",placeholder:F.t("email_placeholder"),className:"mb-2 w-full rounded-lg bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base",required:!0,value:o,disabled:!!o}),v("input",{type:"password",name:"password",placeholder:F.t("enter_new_password_placeholder"),className:"mb-2 w-full rounded-lg bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base"}),v("input",{type:"password",name:"re-enter-password",placeholder:F.t("reenter_new_password_placeholder"),className:"mb-2 w-full rounded-lg bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base"}),e&&v(Qn,{children:e}),v(tt,{className:"sm:mt-4 !text-base",children:F.t("continue")})]}),v(un,{state:c})]})]})},s8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"}),code:s.z.string().optional().openapi({description:"The code parameter from an email verification link"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e,code:n}=t.req.valid("query"),{theme:r,branding:i,client:o,loginSession:c}=await Ge(t,e),{username:l}=c.authParams;if(!l)throw new R(400,{message:"Username required"});return n?t.html(v(Tr,{state:e,theme:r,branding:i,client:o,email:l,code:n})):t.html(v(Tr,{state:e,theme:r,branding:i,client:o,email:l}))}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})}),body:{content:{"application/x-www-form-urlencoded":{schema:s.z.object({password:s.z.string(),"re-enter-password":s.z.string(),code:s.z.string().optional()})}}}},responses:{200:{description:"HTML page indicating success (e.g., email verification sent) or a next step.",content:{"text/html":{schema:s.z.string()}}},302:{description:"Redirect to continue the authentication flow (e.g., to client, MFA, consent) after successful login.",headers:s.z.object({Location:s.z.string().url()})},400:{description:"Bad Request - HTML page with an error message (e.g., passwords don't match, weak password, user exists).",content:{"text/html":{schema:s.z.string()}}},500:{description:"Internal Server Error - HTML page with an error message.",content:{"text/html":{schema:s.z.string()}}}}}),async t=>{const{state:e}=t.req.valid("query"),n=t.req.valid("form"),{env:r}=t,{theme:i,branding:o,client:c,loginSession:l}=await Ge(t,e);try{if(!l.authParams.username)throw new R(400,{message:"Username required"});const u="Username-Password-Authentication";if(t.set("connection",u),n.password!==n["re-enter-password"])return t.html(v(Tr,{state:e,code:n.code,theme:i,branding:o,client:c,error:F.t("create_account_passwords_didnt_match"),email:l.authParams.username}),400);if(!wf(n.password))return t.html(v(Tr,{state:e,code:n.code,theme:i,branding:o,client:c,error:F.t("create_account_weak_password"),email:l.authParams.username}),400);const d=n.code?await r.data.codes.get(c.tenant.id,n.code,"email_verification"):void 0,p=d?await r.data.loginSessions.get(c.tenant.id,d.login_id):void 0;if(await Gi({userAdapter:t.env.data.users,tenant_id:c.tenant.id,username:l.authParams.username,provider:"auth2"}))return t.html(v(Tr,{state:e,code:n.code,theme:i,branding:o,client:c,error:F.t("user_exists_error"),email:l.authParams.username}),400);const g=(p==null?void 0:p.authParams.username)===l.authParams.username,A=`auth2|${wc()}`,m=await r.data.users.create(c.tenant.id,{user_id:A,email:l.authParams.username,email_verified:g,provider:"auth2",connection:u,is_social:!1});if(await r.data.passwords.create(c.tenant.id,{user_id:A,password:await Qo.hash(n.password,10),algorithm:"bcrypt"}),!g)return await xf(t,m),t.html(v(vr,{message:F.t("validate_email_body"),pageTitle:F.t("validate_email_title"),theme:i,branding:o,client:c,state:e}));const $=await U1(t,c,{...l.authParams,password:n.password},l);return Ar(t,$)}catch(u){let d=F.t("unknown_error_message"),p=400;return u instanceof R?(d=u.message||d,p=u.status===400?400:500):u instanceof gi?d=u.message||d:u instanceof Error&&(d=u.message||d,p=500),t.html(v(Tr,{state:e,theme:i,branding:o,client:c,error:d,email:l.authParams.username,code:n.code}),p)}}),mi=t=>{const{error:e,theme:n,branding:r,client:i,email:o}=t;return v(nt,{title:F.t("reset_password_title"),theme:n,branding:r,client:i,children:[v("div",{className:"mb-4 text-lg font-medium sm:text-2xl",children:F.t("reset_password_title")}),v("div",{className:"mb-6 text-gray-300",children:`${F.t("reset_password_description")} ${o}`}),v("div",{className:"flex flex-1 flex-col justify-center",children:v(Cn,{children:[v(Jd,{name:"password",placeholder:F.t("enter_new_password_placeholder")}),v(Jd,{name:"re-enter-password",placeholder:F.t("reenter_new_password_placeholder")}),e&&v(Qn,{children:e}),v(tt,{className:"sm:mt-4 !text-base",children:F.t("reset_password_cta")})]})})]})},a8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"}),code:s.z.string().openapi({description:"The code parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,client:i,loginSession:o}=await Ge(t,e);if(!o.authParams.username)throw new R(400,{message:"Username required"});return t.html(v(mi,{theme:n,branding:r,client:i,email:o.authParams.username}))}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"}),code:s.z.string().openapi({description:"The code parameter from the authorization request"})}),body:{content:{"application/x-www-form-urlencoded":{schema:s.z.object({password:s.z.string(),"re-enter-password":s.z.string()})}}}},responses:{200:{description:"Response"}}}),async t=>{const{state:e,code:n}=t.req.valid("query"),{password:r,"re-enter-password":i}=t.req.valid("form"),{env:o}=t,{theme:c,branding:l,client:u,loginSession:d}=await Ge(t,e);if(!d.authParams.username)throw new R(400,{message:"Username required"});if(r!==i)return t.html(v(mi,{error:F.t("create_account_passwords_didnt_match"),theme:c,branding:l,client:u,email:d.authParams.username}),400);if(!wf(r))return t.html(v(mi,{error:F.t("create_account_weak_password"),theme:c,branding:l,client:u,email:d.authParams.username}),400);const p=await Gi({userAdapter:o.data.users,tenant_id:u.tenant.id,username:d.authParams.username,provider:"auth2"});if(!p)throw new R(400,{message:"User not found"});try{if(!await o.data.codes.get(u.tenant.id,n,"password_reset"))return t.html(v(mi,{error:"Code not found or expired",theme:c,branding:l,client:u,email:d.authParams.username}),400);const g={user_id:p.user_id,password:await Qo.hash(r,10),algorithm:"bcrypt"};await o.data.passwords.get(u.tenant.id,p.user_id)?await o.data.passwords.update(u.tenant.id,g):await o.data.passwords.create(u.tenant.id,g),p.email_verified||await o.data.users.update(u.tenant.id,p.user_id,{email_verified:!0})}catch{return t.html(v(mi,{error:"The password could not be reset",theme:c,branding:l,client:u,email:d.authParams.username}),400)}return t.html(v(vr,{message:F.t("password_has_been_reset"),theme:c,branding:l,client:u,state:e}))}),fy=t=>{const{error:e,theme:n,branding:r,client:i,email:o,state:c}=t;return v(nt,{title:F.t("forgot_password_title"),theme:n,branding:r,client:i,children:[v("div",{className:"mb-4 text-lg font-medium sm:text-2xl",children:F.t("forgot_password_title")}),v("div",{className:"mb-6 text-gray-300",children:F.t("forgot_password_description")}),v("div",{className:"flex flex-1 flex-col justify-center",children:[v(Cn,{className:"pt-2",children:[v("input",{type:"email",name:"username",placeholder:F.t("email_placeholder"),className:"mb-2 w-full rounded-lg bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base",value:o,disabled:!!o}),e&&v(Qn,{children:e}),v(tt,{className:"sm:mt-4 !text-base",children:F.t("forgot_password_cta")})]}),v(un,{state:c})]})]})},hy=t=>{const{theme:e,branding:n,client:r,state:i}=t;return v(nt,{title:"Login",theme:e,branding:n,client:r,children:[v("div",{className:"flex flex-1 flex-col justify-center",children:[v("div",{children:F.t("forgot_password_email_sent")}),v("div",{className:"my-4 flex space-x-2 text-sm text-[#B2B2B2]",children:[v(et,{className:"text-base",name:"info-bubble"}),v("div",{className:"text-sm text-gray-300 md:text-sm",children:F.t("sent_code_spam")})]})]}),v(un,{state:i})]})},c8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,client:i,loginSession:o}=await Ge(t,e);return t.html(v(fy,{theme:n,branding:r,client:i,state:e,email:o.authParams.username}))}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,client:i,loginSession:o}=await Ge(t,e);return await JA(t,i,o.authParams.username,o.id),t.html(v(hy,{theme:n,branding:r,client:i,state:e}))}),gy=({theme:t,branding:e,client:n,state:r,user:i})=>v(nt,{title:$e("check_email_title"),theme:t,branding:e,client:n,children:v("div",{className:"flex flex-1 flex-col justify-center",children:[v("div",{className:"mb-8 text-gray-700 dark:text-gray-300",children:[v(Mi,{i18nKey:"currently_logged_in_as",components:[v("span",{className:"font-semibold text-gray-900 dark:text-white"},"span")],values:{email:i.email||""}}),v("br",{}),$e("continue_with_sso_provider_headline")]}),v("div",{className:"space-y-6",children:[v(Cn,{children:v(tt,{className:"!text-base",children:v("span",{children:F.t("yes_continue_with_existing_account")})})}),v("a",{className:"block text-center text-primary hover:text-primaryHover focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 dark:focus:ring-offset-gray-900",href:`/u/login/identifier?state=${encodeURIComponent(r)}`,children:F.t("no_use_another")})]})]})}),l8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})})},responses:{200:{description:"HTML page to check account status or verify email.",content:{"text/html":{schema:s.z.string()}}},302:{description:"Redirect to login identifier page if no valid session.",headers:s.z.object({Location:s.z.string().url()})},400:{description:"Bad Request - HTML error page if state is missing or other input error.",content:{"text/html":{schema:s.z.string()}}},500:{description:"Internal Server Error - HTML error page.",content:{"text/html":{schema:s.z.string()}}}}}),async t=>{var d;const{env:e}=t,{state:n}=t.req.valid("query"),{theme:r,branding:i,client:o}=await Ge(t,n);if(!o||!((d=o.tenant)!=null&&d.id))return console.error("Client or tenant ID missing in GET /u/check-account after initJSXRoute"),t.html(v(vr,{theme:r,branding:i,client:o,state:n,pageTitle:F.t("error_page_title")||"Error",message:F.t("configuration_error_message")||"A configuration error occurred."}),500);const c=ko(o.tenant.id,t.req.header("cookie")),l=c?await e.data.sessions.get(o.tenant.id,c):null;if(!l)return t.redirect(`/u/login/identifier?state=${n}`);const u=await e.data.users.get(o.tenant.id,l.user_id);return u?t.html(v(gy,{theme:r,branding:i,client:o,state:n,user:u})):t.redirect(`/u/login/identifier?state=${n}`)}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})})},responses:{302:{description:"Redirect to continue authentication flow or to login identifier.",headers:s.z.object({Location:s.z.string().url()})},400:{description:"Bad Request - HTML error page if state is missing or other input error.",content:{"text/html":{schema:s.z.string()}}},500:{description:"Internal Server Error - HTML error page for unexpected issues or if TokenResponse is returned.",content:{"text/html":{schema:s.z.string()}}}}}),async t=>{var h;const{env:e}=t,{state:n}=t.req.valid("query"),{theme:r,branding:i,client:o,loginSession:c}=await Ge(t,n);if(!o||!((h=o.tenant)!=null&&h.id))return console.error("Client or tenant ID missing in POST /u/check-account after initJSXRoute"),t.html(v(vr,{theme:r,branding:i,client:o,state:n,pageTitle:F.t("error_page_title")||"Error",message:F.t("configuration_error_message")}),500);const l=ko(o.tenant.id,t.req.header("cookie")),u=l?await e.data.sessions.get(o.tenant.id,l):null;if(!u)return t.redirect(`/u/login/identifier?state=${n}`);const d=await e.data.users.get(o.tenant.id,u.user_id);if(!d)return t.redirect(`/u/login/identifier?state=${n}`);const p=await Ar(t,{user:d,authParams:c.authParams,client:o,loginSession:c});if(!(p instanceof Response))throw new R(500,{message:F.t("unexpected_error_try_again")});return p}),u8=!1,Kg=t=>{var l;const{theme:e,branding:n,user:r,client:i,error:o,success:c}=t;return(l=r.identities)!=null&&l.filter(u=>!(u.provider===r.provider&&u.user_id===r.user_id.split("|")[1])),v(nt,{title:F.t("account_title")||"Account Settings",theme:e,branding:n,client:i,children:v("div",{className:"flex flex-1 flex-col justify-center",children:v("div",{className:"mx-auto w-full max-w-sm",children:[v("div",{className:"text-center",children:v("h1",{className:"mb-6 text-2xl font-semibold text-gray-900",children:F.t("account_title")||"Account Settings"})}),o&&v(Qn,{children:o}),c&&v("div",{className:"mb-4 rounded-md bg-green-50 p-4",children:v("div",{className:"text-sm text-green-700",children:c})}),v("div",{className:"mb-6",children:[v("h2",{className:"mb-3 text-lg font-medium text-gray-900",children:F.t("email")}),v("div",{className:"rounded-lg border border-gray-200 p-4",children:v("div",{className:"flex items-center justify-between",children:v("div",{children:[v("p",{className:"text-sm font-medium text-gray-900",children:r.email||"No email set"}),v("p",{className:"text-xs text-gray-500",children:r.email_verified?F.t("verified")||"Verified":F.t("unverified")||"Unverified"})]})})})]}),v("div",{className:"mb-6",children:[v("h2",{className:"mb-3 text-lg font-medium text-gray-900",children:F.t("update_email")}),v("form",{method:"post",children:[v("input",{type:"hidden",name:"action",value:"update_email"}),v("div",{className:"mb-4",children:v("input",{type:"email",id:"email",name:"email",required:!0,className:"w-full rounded-md border border-gray-300 px-3 py-2 text-sm placeholder-gray-400 focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500",placeholder:F.t("enter_new_email")})}),v(tt,{variant:"primary",className:"w-full",children:F.t("update_email")})]})]}),u8]})})})},d8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({client_id:s.z.string()})},responses:{200:{description:"Response"},302:{description:"Redirect to login if no session"},500:{description:"Server error"}}}),async t=>{const{client_id:e}=t.req.valid("query"),{theme:n,branding:r,client:i,user:o}=await Go(t,e);return t.html(v(Kg,{theme:n,branding:r,user:o,client:i}))}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({client_id:s.z.string()}),body:{content:{"application/x-www-form-urlencoded":{schema:s.z.object({email:s.z.string().email().optional(),action:s.z.enum(["update_email","unlink_account"]),provider:s.z.string().optional(),user_id:s.z.string().optional()})}}}},responses:{200:{description:"Response"},302:{description:"Redirect to login if no session"},400:{description:"Bad request"}}}),async t=>{const{env:e}=t,{client_id:n}=t.req.valid("query"),r=t.req.valid("form"),{theme:i,branding:o,client:c,user:l}=await Go(t,n);let u,d;try{if(r.action==="update_email"&&r.email){const h=qe();await e.data.codes.create(c.tenant.id,{code_id:h,login_id:"",code_type:"email_verification",expires_at:new Date(Date.now()+hu).toISOString(),user_id:l.user_id});const g=wr();return await e.data.codes.create(c.tenant.id,{code_id:g,login_id:"",code_type:"email_verification",expires_at:new Date(Date.now()+hu).toISOString(),user_id:l.user_id}),await vf(t,{to:r.email.toLowerCase(),code:g}),t.redirect(`/u/change-email?client_id=${c.id}&email=${encodeURIComponent(r.email.toLowerCase())}&change_id=${h}`)}else r.action==="unlink_account"&&r.provider&&r.user_id&&(await e.data.users.unlink(c.tenant.id,l.user_id,r.provider,r.user_id),d=F.t("account_unlinked_successfully")||"Account unlinked successfully")}catch{u=F.t("operation_failed")||"Operation failed"}const p=await e.data.users.get(c.tenant.id,l.user_id);return t.html(v(Kg,{theme:i,branding:o,user:p||l,client:c,error:u,success:d}))}),Gg=6,Yd=({error:t,theme:e,branding:n,client:r,email:i,success:o})=>o?v(nt,{title:F.t("success"),theme:e,branding:n,client:r,children:[v("div",{className:"mb-4 text-2xl font-medium",children:F.t("success")}),v("div",{className:"mb-8 text-gray-300",children:v(Mi,{i18nKey:"email_changed_to_template",components:[v("span",{className:"text-black dark:text-white"},"span")],values:{email:i}})}),v("div",{className:"flex flex-1 flex-col justify-center",children:v(tt,{Component:"a",href:`/u/account?client_id=${r.id}`,className:"sm:mt-4 !text-base",children:[v("span",{children:F.t("continue")}),v(et,{className:"text-xs",name:"arrow-right"})]})})]}):v(nt,{title:F.t("verify_email_verify"),theme:e,branding:n,client:r,children:[v("div",{className:"mb-4 text-2xl font-medium",children:F.t("verify_email_verify")}),v("div",{className:"mb-8 text-gray-300",children:v(Mi,{i18nKey:"code_sent_template",components:[v("span",{className:"text-black dark:text-white"},"span")],values:{username:i}})}),v("div",{className:"flex flex-1 flex-col justify-center",children:[v(Cn,{className:"pt-2",children:[v("input",{autoFocus:!0,type:"text",pattern:"[0-9]*",maxLength:Gg,inputMode:"numeric",name:"code",placeholder:"******",className:Kn("mb-2 w-full rounded-lg border bg-gray-100 px-4 pb-2 pt-2.5 text-center indent-[5px] font-mono text-3xl placeholder:text-gray-300 dark:bg-gray-600 md:text-3xl",{"border-red":t,"border-gray-100 dark:border-gray-500":!t}),minLength:Gg,required:!0,id:"code-input"}),t&&v(Qn,{children:t}),v(tt,{className:"sm:mt-4 !text-base",children:[v("span",{children:F.t("continue")}),v(et,{className:"text-xs",name:"arrow-right"})]}),v("div",{className:"my-4 flex space-x-2 text-sm text-[#B2B2B2]",children:[v(et,{className:"text-base",name:"info-bubble"}),v("div",{className:"text-sm text-gray-300 md:text-sm",children:F.t("sent_code_spam")})]})]}),v("a",{className:"block text-primary hover:text-primaryHover text-center",href:`/u/account?client_id=${r.id}`,children:F.t("go_back")})]})]}),p8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({client_id:s.z.string(),email:s.z.string().email(),change_id:s.z.string()})},responses:{200:{description:"Response"},302:{description:"Redirect to login if no session"},500:{description:"Server error"}}}),async t=>{const{client_id:e,email:n,change_id:r}=t.req.valid("query"),{theme:i,branding:o,client:c,user:l}=await Go(t,e),u=await t.env.data.codes.get(c.tenant.id,r,"email_verification");return!u||u.user_id!==l.user_id?t.redirect(`/u/account?client_id=${e}`):t.html(v(Yd,{theme:i,branding:o,client:c,email:n}))}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({client_id:s.z.string(),email:s.z.string().email(),change_id:s.z.string()}),body:{content:{"application/x-www-form-urlencoded":{schema:s.z.object({code:s.z.string()})}}}},responses:{200:{description:"Response"},302:{description:"Redirect to account on success"},400:{description:"Bad request"}}}),async t=>{const{env:e}=t,{client_id:n,email:r,change_id:i}=t.req.valid("query"),{code:o}=t.req.valid("form"),{theme:c,branding:l,client:u,user:d}=await Go(t,n);let p;try{const h=await e.data.codes.get(u.tenant.id,i,"email_verification");if(!h)p=F.t("invalid_request");else if(h.user_id!==d.user_id)p=F.t("invalid_request");else if(h.used_at)p=F.t("code_already_used");else if(new Date(h.expires_at)<new Date)p=F.t("code_expired");else{const g=await e.data.codes.get(u.tenant.id,o,"email_verification");if(!g)p=F.t("invalid_code");else if(g.used_at)p=F.t("code_already_used");else if(new Date(g.expires_at)<new Date)p=F.t("code_expired");else if(g.user_id!==d.user_id)p=F.t("invalid_code");else return await e.data.codes.used(u.tenant.id,i),await e.data.codes.used(u.tenant.id,o),await e.data.users.update(u.tenant.id,d.user_id,{email:r.toLowerCase(),email_verified:!0}),t.redirect(`/u/change-email-confirmation?client_id=${n}&email=${encodeURIComponent(r.toLowerCase())}`)}}catch{p=F.t("operation_failed")}return t.html(v(Yd,{theme:c,branding:l,client:u,email:r,error:p}))}),f8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({client_id:s.z.string(),email:s.z.string().email()})},responses:{200:{description:"Response"},302:{description:"Redirect to login if no session"},500:{description:"Server error"}}}),async t=>{const{client_id:e,email:n}=t.req.valid("query"),{theme:r,branding:i,client:o}=await Go(t,e);return t.html(v(Yd,{theme:r,branding:i,client:o,email:n,success:!0}))}),my=t=>{const{theme:e,branding:n,client:r,email:i,state:o}=t;return v(nt,{title:F.t("create_password_account_title"),theme:e,branding:n,client:r,children:[v("div",{className:"mb-4 text-lg font-medium sm:text-2xl",children:F.t("create_password_account_title")}),v("div",{className:"mb-6 text-gray-300",children:F.t("enter_email_for_verification_description")}),v("div",{className:"flex flex-1 flex-col justify-center",children:v(Cn,{className:"pt-2",children:[v("input",{type:"email",name:"username",placeholder:F.t("email_placeholder"),className:"mb-2 w-full rounded-lg bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 md:text-base",required:!0,value:i,disabled:!0}),v(tt,{className:"sm:mt-4 !text-base",children:F.t("send")})]})}),v(un,{state:o})]})},h8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,client:i,loginSession:o}=await Ge(t,e),{username:c}=o.authParams;if(!c)throw new R(400,{message:"Username required"});return t.html(v(my,{state:e,theme:n,branding:r,client:i,email:c}))}).openapi(s.createRoute({tags:["login"],method:"post",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{loginSession:n,client:r}=await Ge(t,e),{username:i}=n.authParams;if(!i)throw new R(400,{message:"Username required"});const o=await t.env.data.codes.create(r.tenant.id,{code_id:wr(),code_type:"email_verification",login_id:n.id,expires_at:new Date(Date.now()+hu).toISOString()});return await GA(t,i,o.code_id,n.id),t.redirect(`/u/pre-signup-sent?state=${e}`)}),_y=t=>{const{redirectUrl:e,theme:n,branding:r,client:i}=t;return v(nt,{title:F.t("invalid_session_title"),theme:n,branding:r,client:i,children:[v("div",{className:"flex flex-1 flex-col justify-center",children:F.t("invalid_session_body")}),v("div",{className:"flex flex-1 flex-col justify-center",children:e&&v("a",{className:"block text-primary hover:text-primaryHover text-center",href:e,children:F.t("go_back")})})]})},g8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string()})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,client:i,loginSession:o}=await Ge(t,e);let c;return o.authParams.redirect_uri&&o.authParams.state&&(c=new URL(o.authParams.redirect_uri),c.searchParams.set("state",o.authParams.state),c.searchParams.set("error","invalid_session"),c.searchParams.set("error_description",o.authParams.username||"")),t.html(v(_y,{redirectUrl:c==null?void 0:c.href,theme:n,branding:r,client:i}))}),m8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"}),code:s.z.string().openapi({description:"The code parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,client:i}=await Ge(t,e);return t.html(v(vr,{message:"Not implemented",pageTitle:"User info",theme:n,branding:r,client:i,state:e}))}),yy=({theme:t,branding:e,client:n,state:r})=>{const i=new URLSearchParams({state:r});return v(nt,{title:F.t("email_validated"),theme:t,branding:e,client:n,children:[v("div",{className:"mb-4 text-lg font-medium sm:text-2xl",children:F.t("email_validated")}),v("div",{className:"flex flex-1 flex-col justify-center mb-7",children:v(tt,{Component:"a",href:`/u/enter-password?${i}`,className:"text-base sm:mt-4 md:text-base",children:v("div",{className:"flex items-center space-x-2",children:[v("span",{children:F.t("email_validated_cta")}),v(et,{className:"text-xs",name:"arrow-right"})]})})})]})},_8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"}),code:s.z.string().openapi({description:"The code parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{var A;const{state:e,code:n}=t.req.valid("query"),{env:r}=t,{client:i,loginSession:o,theme:c,branding:l}=await Ge(t,e),{username:u}=o.authParams;if(!u)throw new R(400,{message:"Username not found in state"});const d=await Gi({userAdapter:r.data.users,tenant_id:i.tenant.id,username:u,provider:"auth2"});if(!d)throw new R(500,{message:"No user found"});if(!await r.data.codes.get(i.tenant.id,n,"email_verification"))throw new R(400,{message:"Code not found or expired"});await r.data.users.update(i.tenant.id,d.user_id,{email_verified:!0});const g=(await gp(r.data.users,i.tenant.id,u)).filter(m=>m.provider!=="auth2");if(g.length>0){const m=g.filter($=>!$.linked_to);m.length>1&&console.error("More than one primary user found for email",u),m.length===0&&console.error("No primary user found for email",u),m.length===1&&await r.data.users.update(i.tenant.id,d.user_id,{linked_to:(A=m[0])==null?void 0:A.user_id})}return t.html(v(yy,{theme:c,branding:l,client:i,state:e}))}),wy=t=>{const{theme:e,branding:n,client:r,email:i,state:o}=t;return v(nt,{title:F.t("sign_up_success"),theme:e,branding:n,client:r,children:[v("div",{className:"mb-4 text-lg font-medium sm:text-2xl",children:F.t("email_verification_for_signup_sent_title")}),v("div",{className:"flex flex-1 flex-col justify-center",children:[v("div",{className:"mb-6 text-gray-300",children:v(Mi,{i18nKey:"email_verification_for_signup_sent_description",components:[v("span",{className:"text-black dark:text-white"},"span")],values:{email:i}})}),v("div",{className:"my-4 flex space-x-2 text-sm text-[#B2B2B2]",children:[v(et,{className:"text-base",name:"info-bubble"}),v("div",{className:"text-sm text-gray-300 md:text-sm",children:F.t("sent_code_spam")})]})]}),v(un,{state:o})]})},y8=new s.OpenAPIHono().openapi(s.createRoute({tags:["login"],method:"get",path:"/",request:{query:s.z.object({state:s.z.string().openapi({description:"The state parameter from the authorization request"})})},responses:{200:{description:"Response"}}}),async t=>{const{state:e}=t.req.valid("query"),{theme:n,branding:r,client:i,loginSession:o}=await Ge(t,e),{username:c}=o.authParams;if(!c)throw new R(400,{message:"Username required"});return t.html(v(wy,{theme:n,branding:r,client:i,state:e,email:c}))}),Cf=`
|
|
255
255
|
@font-face{font-display:swap;font-family:KHTeka;font-style:normal;font-weight:400;src:url(https://assets.sesamy.com/fonts/khteka/WOFF2/KHTeka-Regular.woff2) format("woff2")}@font-face{font-display:swap;font-family:KHTeka;font-style:normal;font-weight:500;src:url(https://assets.sesamy.com/fonts/khteka/WOFF2/KHTeka-Medium.woff2) format("woff2")}@font-face{font-display:swap;font-family:KHTeka;font-style:normal;font-weight:600;src:url(https://assets.sesamy.com/fonts/khteka/WOFF2/KHTeka-Bold.woff2) format("woff2")}@font-face{font-family:uicon;src:url(https://login2.sesamy.com/_next/static/media/uicon.0b00e08a.woff2)}[class*=" uicon-"],[class^=uicon-]{font-family:uicon!important;font-size:inherit;font-style:normal;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.uicon-apple:before{content:"\\ea01"}.uicon-arrow-down:before{content:"\\ea02"}.uicon-arrow-left:before{content:"\\ea03"}.uicon-arrow-right:before{content:"\\ea04"}.uicon-arrow-up:before{content:"\\ea05"}.uicon-facebook:before{content:"\\ea06"}.uicon-google:before{content:"\\ea07"}.uicon-info-bubble:before{content:"\\ea08"}.uicon-info:before{content:"\\ea09"}.uicon-sesamy:before{content:"\\ea0a"}.uicon-spinner-circle:before{content:"\\ea0b"}.uicon-spinner-inner:before{content:"\\ea0c"}
|
|
256
256
|
|
|
257
|
-
/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #bfbcd7;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:KHTeka,Helvetica Neue,HelveticaNeue,TeX Gyre Heros,TeXGyreHeros,FreeSans,Nimbus Sans L,Liberation Sans,Arimo,Helvetica,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#4b4a58;opacity:1}input::placeholder,textarea::placeholder{color:#4b4a58;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}body,html{height:100%}body{--tw-bg-opacity:1;background-color:rgb(248 249 251/var(--tw-bg-opacity));font-size:1rem;letter-spacing:.0125rem;line-height:120%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:1280px){body{font-size:1.125rem;line-height:120%}}:is(.dark body){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}button,input,optgroup,select,textarea{font-size:.875rem;letter-spacing:.0125rem;line-height:120%}@media (min-width:1280px){button,input,optgroup,select,textarea{font-size:1rem;line-height:120%}}h1{font-size:1.5rem;font-weight:500;line-height:120%}@media (min-width:1280px){h1{font-size:2rem;line-height:120%}}@media (min-width:640px){h1{font-size:3rem;letter-spacing:-.0625rem;line-height:100%}}@media (min-width:1280px){h1{font-size:3.5rem;letter-spacing:-.0625rem;line-height:100%}}h2{font-size:1.25rem;font-weight:500;line-height:120%}@media (min-width:1280px){h2{font-size:1.5rem;line-height:120%}}@media (min-width:640px){h2{font-size:2rem;letter-spacing:0;line-height:120%}}@media (min-width:1280px){h2{font-size:3rem;letter-spacing:-.0625rem;line-height:100%}}h3{font-size:1.125rem;font-weight:500;line-height:120%}@media (min-width:1280px){h3{font-size:1.25rem;line-height:120%}}@media (min-width:640px){h3{font-size:1.5rem;line-height:120%}}@media (min-width:1280px){h3{font-size:2rem;line-height:120%}}h4{font-size:1rem;font-weight:500;line-height:120%}@media (min-width:1280px){h4{font-size:1.125rem;line-height:120%}}@media (min-width:640px){h4{font-size:1.125rem;line-height:120%}}@media (min-width:1280px){h4{font-size:1.5rem;line-height:120%}}h5{font-size:.875rem;font-weight:500;line-height:120%}@media (min-width:1280px){h5{font-size:1rem;line-height:120%}}@media (min-width:640px){h5{font-size:1rem;line-height:120%}}@media (min-width:1280px){h5{font-size:1.125rem;line-height:120%}}h6{font-size:.75rem;font-weight:500;line-height:135%}@media (min-width:1280px){h6{font-size:.875rem;line-height:120%}}@media (min-width:640px){h6{font-size:.875rem;line-height:120%}}@media (min-width:1280px){h6{font-size:1rem;line-height:120%}}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1920px){.container{max-width:1920px}}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-1\\/2{top:50%}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-bottom:1rem;margin-top:1rem}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-7{margin-bottom:1.75rem}.mb-8{margin-bottom:2rem}.mt-1{margin-top:.25rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.\\!hidden{display:none!important}.hidden{display:none}.h-5{height:1.25rem}.h-9{height:2.25rem}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-\\[calc\\(100vh-83px\\)\\]{min-height:calc(100vh - 83px)}.min-h-full{min-height:100%}.w-10{width:2.5rem}.w-5{width:1.25rem}.w-\\[calc\\(100\\%-theme\\(space\\.2\\)-theme\\(space\\.2\\)\\)\\]{width:calc(100% - 1rem)}.w-full{width:100%}.max-w-\\[1295px\\]{max-width:1295px}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.flex-col{flex-direction:column}.\\!flex-nowrap{flex-wrap:nowrap!important}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.rounded-2xl{border-radius:1.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.625rem}.rounded-md{border-radius:.375rem}.rounded-r-lg{border-bottom-right-radius:.625rem;border-top-right-radius:.625rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-gray-100{--tw-border-opacity:1;border-color:rgb(248 249 251/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(191 188 215/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(136 134 159/var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity:1;border-color:rgb(59 57 70/var(--tw-border-opacity))}.border-red{--tw-border-opacity:1;border-color:rgb(252 90 90/var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(248 249 251/var(--tw-bg-opacity))}.bg-primary{background-color:var(--primary-color)}.bg-primaryHover{background-color:var(--primary-hover)}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-cover{background-size:cover}.bg-center{background-position:50%}.p-4{padding:1rem}.px-0{padding-left:0;padding-right:0}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.pb-2{padding-bottom:.5rem}.pb-8{padding-bottom:2rem}.pt-2{padding-top:.5rem}.pt-2\\.5{padding-top:.625rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.indent-\\[5px\\]{text-indent:5px}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.\\!text-base{font-size:1rem!important;line-height:120%!important}.text-2xl{font-size:1.5rem;line-height:120%}.text-3xl{font-size:2rem;line-height:120%}.text-base{font-size:1rem;line-height:120%}.text-lg{font-size:1.125rem;line-height:120%}.text-sm{font-size:.875rem;line-height:120%}.text-xl{font-size:1.25rem;line-height:120%}.text-xs{font-size:.75rem;line-height:135%}.font-medium{font-weight:500}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.leading-\\[0\\]{line-height:0}.leading-tight{line-height:1.25}.text-\\[\\#1196F5\\]{--tw-text-opacity:1;color:rgb(17 150 245/var(--tw-text-opacity))}.text-\\[\\#B2B2B2\\]{--tw-text-opacity:1;color:rgb(178 178 178/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity:1;color:rgb(191 188 215/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(136 134 159/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(75 74 88/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(59 57 70/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(30 30 39/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(8 8 14/var(--tw-text-opacity))}.text-primary{color:var(--primary-color)}.text-red{--tw-text-opacity:1;color:rgb(252 90 90/var(--tw-text-opacity))}.text-textOnPrimary{color:var(--text-on-primary)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(75 74 88/var(--tw-placeholder-opacity))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity:1;color:rgb(75 74 88/var(--tw-placeholder-opacity))}.accent-\\[\\#4F2D7F\\]{accent-color:#4f2d7f}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.row-up-left{align-content:flex-start;justify-content:flex-start}.row,.row-up-left{display:flex;flex-direction:row;flex-wrap:wrap}.row{align-content:center;align-items:center;justify-content:center}.column-left{align-items:flex-start}.column,.column-left{display:flex;flex-direction:column;justify-content:center}.column{align-items:center}@media (min-width:1280px){.text-5xl{font-size:5.125rem;letter-spacing:-.125rem;line-height:100%}.text-4xl{font-size:3.5rem}.text-3xl,.text-4xl{letter-spacing:-.0625rem;line-height:100%}.text-3xl{font-size:3rem}.text-2xl{font-size:2rem}.text-2xl,.text-xl{line-height:120%}.text-xl{font-size:1.5rem}.text-lg{font-size:1.25rem}.text-base,.text-lg{line-height:120%}.text-base{font-size:1.125rem}.text-sm{font-size:1rem}.text-sm,.text-xs{line-height:120%}.text-xs{font-size:.875rem}}:root{--primary-color:#7d68f4;--primary-hover:#7e69f4;--text-on-primary:#fff}svg{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}*,:after,:before{text-underline-offset:4px}input[type=number],input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield!important}.btn.is-loading{cursor:not-allowed;opacity:.4;pointer-events:none}.btn .btn-spinner,.btn.is-loading .btn-label{opacity:0;visibility:hidden}.btn.is-loading .btn-spinner{opacity:1;visibility:visible}[class*=" uicon-"],[class^=uicon-]{letter-spacing:0;line-height:100%}.placeholder\\:text-gray-300::-moz-placeholder{--tw-text-opacity:1;color:rgb(136 134 159/var(--tw-text-opacity))}.placeholder\\:text-gray-300::placeholder{--tw-text-opacity:1;color:rgb(136 134 159/var(--tw-text-opacity))}.hover\\:bg-black\\/5:hover{background-color:rgba(0,0,0,.05)}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(248 249 251/var(--tw-bg-opacity))}.hover\\:bg-primaryHover:hover{background-color:var(--primary-hover)}.hover\\:text-primaryHover:hover{color:var(--primary-hover)}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-1:focus,.focus\\:ring:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-primary:focus{--tw-ring-color:var(--primary-color)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}:is(.dark .dark\\:border-gray-400){--tw-border-opacity:1;border-color:rgb(75 74 88/var(--tw-border-opacity))}:is(.dark .dark\\:border-gray-500){--tw-border-opacity:1;border-color:rgb(59 57 70/var(--tw-border-opacity))}:is(.dark .dark\\:border-gray-600){--tw-border-opacity:1;border-color:rgb(40 40 52/var(--tw-border-opacity))}:is(.dark .dark\\:bg-black){--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}:is(.dark .dark\\:bg-gray-600){--tw-bg-opacity:1;background-color:rgb(40 40 52/var(--tw-bg-opacity))}:is(.dark .dark\\:bg-gray-800){--tw-bg-opacity:1;background-color:rgb(20 20 26/var(--tw-bg-opacity))}:is(.dark .dark\\:text-\\[\\#201a41\\]){--tw-text-opacity:1;color:rgb(32 26 65/var(--tw-text-opacity))}:is(.dark .dark\\:text-gray-300){--tw-text-opacity:1;color:rgb(136 134 159/var(--tw-text-opacity))}:is(.dark .dark\\:text-white){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}:is(.dark .dark\\:hover\\:bg-black\\/90:hover){background-color:rgba(0,0,0,.9)}:is(.dark .dark\\:focus\\:ring-offset-gray-900:focus){--tw-ring-offset-color:#08080e}@media (min-width:640px){.sm\\:absolute{position:absolute}.sm\\:left-4{left:1rem}.sm\\:top-1\\/2{top:50%}.sm\\:mt-4{margin-top:1rem}.sm\\:inline{display:inline}.sm\\:h-6{height:1.5rem}.sm\\:min-h-\\[700px\\]{min-height:700px}.sm\\:w-6{width:1.5rem}.sm\\:w-\\[calc\\(100\\%-theme\\(space\\.16\\)-theme\\(space\\.16\\)\\)\\]{width:calc(100% - 8rem)}.sm\\:w-auto{width:auto}.sm\\:max-w-md{max-width:28rem}.sm\\:-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:flex-col{flex-direction:column}.sm\\:justify-normal{justify-content:normal}.sm\\:space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)));margin-right:calc(0px*var(--tw-space-x-reverse))}.sm\\:space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.sm\\:bg-fixed{background-attachment:fixed}.sm\\:bg-left-top{background-position:0 0}.sm\\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\\:px-14{padding-left:3.5rem;padding-right:3.5rem}.sm\\:py-14{padding-bottom:3.5rem;padding-top:3.5rem}.sm\\:py-4{padding-bottom:1rem;padding-top:1rem}.sm\\:pt-16{padding-top:4rem}.sm\\:text-2xl{font-size:1.5rem;line-height:120%}.sm\\:text-base{font-size:1rem;line-height:120%}}@media (min-width:1280px){.md\\:min-w-\\[448px\\]{min-width:448px}.md\\:text-3xl{font-size:2rem;line-height:120%}.md\\:text-base{font-size:1rem;line-height:120%}.md\\:text-sm{font-size:.875rem;line-height:120%}.md\\:text-xs{font-size:.75rem;line-height:135%}}@media (max-height:900px) and (min-width:640px){.short\\:static{position:static}.short\\:left-auto{left:auto}.short\\:top-auto{top:auto}.short\\:hidden{display:none}.short\\:h-5{height:1.25rem}.short\\:min-h-\\[558px\\]{min-height:558px}.short\\:w-5{width:1.25rem}.short\\:translate-y-0{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.short\\:flex-row{flex-direction:row}.short\\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.short\\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.short\\:px-0{padding-left:0;padding-right:0}.short\\:py-3{padding-bottom:.75rem;padding-top:.75rem}.short\\:text-xl{font-size:1.25rem;line-height:120%}}.\\[\\&\\>\\*\\:last-child\\]\\:mb-0>:last-child{margin-bottom:0}.\\[\\&_h1\\]\\:mb-6 h1,.\\[\\&_h2\\]\\:mb-6 h2{margin-bottom:1.5rem}`;function y8(){if(typeof document<"u"){const t=document.createElement("style");t.innerHTML=Cf,t.setAttribute("data-authhero-tailwind",""),document.head.appendChild(t)}}const w8=t=>v("div",{className:"rich-text mb-6 prose prose-gray max-w-none [&>*:last-child]:mb-0 [&_h1]:mb-6 [&_h2]:mb-6",dangerouslySetInnerHTML:{__html:t.config.content}},t.id),v8=t=>v("div",{className:"flex items-center gap-2",children:[v("input",{type:"checkbox",name:t.id,required:!!t.required,className:"w-5 h-5 accent-[#4F2D7F] align-middle",id:t.id}),v("span",{className:"text-base leading-tight",children:v("span",{dangerouslySetInnerHTML:{__html:t.config.text}})})]},t.id),b8=t=>{var e;return v("div",{className:"mb-4",children:v("input",{type:"text",name:t.id,placeholder:((e=t.config)==null?void 0:e.placeholder)||"",required:!!t.required,className:"w-full rounded-lg border bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 border-gray-100 dark:border-gray-500",id:t.id})},t.id)};function x8(t){switch(t.type){case"RICH_TEXT":return w8(t);case"LEGAL":return v8(t);case"TEXT":return b8(t);default:return null}}const nu=({theme:t,branding:e,client:n,formName:r,error:i,components:o})=>{const c=o==null?void 0:o.find(d=>d.type==="LEGAL"&&d.required),l=c==null?void 0:c.id,u=o==null?void 0:o.find(d=>d.type==="NEXT_BUTTON");return v(nt,{title:r,theme:t,branding:e,client:n,children:[i&&v("div",{className:"mb-4 text-red-500",children:i}),v("div",{className:"flex flex-1 flex-col justify-center",children:v("form",{className:"pt-2",method:"post",children:[l&&v("style",{dangerouslySetInnerHTML:{__html:`
|
|
257
|
+
/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #bfbcd7;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:KHTeka,Helvetica Neue,HelveticaNeue,TeX Gyre Heros,TeXGyreHeros,FreeSans,Nimbus Sans L,Liberation Sans,Arimo,Helvetica,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#4b4a58;opacity:1}input::placeholder,textarea::placeholder{color:#4b4a58;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}body,html{height:100%}body{--tw-bg-opacity:1;background-color:rgb(248 249 251/var(--tw-bg-opacity));font-size:1rem;letter-spacing:.0125rem;line-height:120%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:1280px){body{font-size:1.125rem;line-height:120%}}:is(.dark body){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}button,input,optgroup,select,textarea{font-size:.875rem;letter-spacing:.0125rem;line-height:120%}@media (min-width:1280px){button,input,optgroup,select,textarea{font-size:1rem;line-height:120%}}h1{font-size:1.5rem;font-weight:500;line-height:120%}@media (min-width:1280px){h1{font-size:2rem;line-height:120%}}@media (min-width:640px){h1{font-size:3rem;letter-spacing:-.0625rem;line-height:100%}}@media (min-width:1280px){h1{font-size:3.5rem;letter-spacing:-.0625rem;line-height:100%}}h2{font-size:1.25rem;font-weight:500;line-height:120%}@media (min-width:1280px){h2{font-size:1.5rem;line-height:120%}}@media (min-width:640px){h2{font-size:2rem;letter-spacing:0;line-height:120%}}@media (min-width:1280px){h2{font-size:3rem;letter-spacing:-.0625rem;line-height:100%}}h3{font-size:1.125rem;font-weight:500;line-height:120%}@media (min-width:1280px){h3{font-size:1.25rem;line-height:120%}}@media (min-width:640px){h3{font-size:1.5rem;line-height:120%}}@media (min-width:1280px){h3{font-size:2rem;line-height:120%}}h4{font-size:1rem;font-weight:500;line-height:120%}@media (min-width:1280px){h4{font-size:1.125rem;line-height:120%}}@media (min-width:640px){h4{font-size:1.125rem;line-height:120%}}@media (min-width:1280px){h4{font-size:1.5rem;line-height:120%}}h5{font-size:.875rem;font-weight:500;line-height:120%}@media (min-width:1280px){h5{font-size:1rem;line-height:120%}}@media (min-width:640px){h5{font-size:1rem;line-height:120%}}@media (min-width:1280px){h5{font-size:1.125rem;line-height:120%}}h6{font-size:.75rem;font-weight:500;line-height:135%}@media (min-width:1280px){h6{font-size:.875rem;line-height:120%}}@media (min-width:640px){h6{font-size:.875rem;line-height:120%}}@media (min-width:1280px){h6{font-size:1rem;line-height:120%}}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1920px){.container{max-width:1920px}}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-1\\/2{top:50%}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-bottom:1rem;margin-top:1rem}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-7{margin-bottom:1.75rem}.mb-8{margin-bottom:2rem}.mt-1{margin-top:.25rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.\\!hidden{display:none!important}.hidden{display:none}.h-5{height:1.25rem}.h-9{height:2.25rem}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-\\[calc\\(100vh-83px\\)\\]{min-height:calc(100vh - 83px)}.min-h-full{min-height:100%}.w-10{width:2.5rem}.w-5{width:1.25rem}.w-\\[calc\\(100\\%-theme\\(space\\.2\\)-theme\\(space\\.2\\)\\)\\]{width:calc(100% - 1rem)}.w-full{width:100%}.max-w-\\[1295px\\]{max-width:1295px}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.flex-col{flex-direction:column}.\\!flex-nowrap{flex-wrap:nowrap!important}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.rounded-2xl{border-radius:1.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.625rem}.rounded-md{border-radius:.375rem}.rounded-r-lg{border-bottom-right-radius:.625rem;border-top-right-radius:.625rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-gray-100{--tw-border-opacity:1;border-color:rgb(248 249 251/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(191 188 215/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(136 134 159/var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity:1;border-color:rgb(59 57 70/var(--tw-border-opacity))}.border-red{--tw-border-opacity:1;border-color:rgb(252 90 90/var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(248 249 251/var(--tw-bg-opacity))}.bg-primary{background-color:var(--primary-color)}.bg-primaryHover{background-color:var(--primary-hover)}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-cover{background-size:cover}.bg-center{background-position:50%}.p-4{padding:1rem}.px-0{padding-left:0;padding-right:0}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.pb-2{padding-bottom:.5rem}.pb-8{padding-bottom:2rem}.pt-2{padding-top:.5rem}.pt-2\\.5{padding-top:.625rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.indent-\\[5px\\]{text-indent:5px}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.\\!text-base{font-size:1rem!important;line-height:120%!important}.text-2xl{font-size:1.5rem;line-height:120%}.text-3xl{font-size:2rem;line-height:120%}.text-base{font-size:1rem;line-height:120%}.text-lg{font-size:1.125rem;line-height:120%}.text-sm{font-size:.875rem;line-height:120%}.text-xl{font-size:1.25rem;line-height:120%}.text-xs{font-size:.75rem;line-height:135%}.font-medium{font-weight:500}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.leading-\\[0\\]{line-height:0}.leading-tight{line-height:1.25}.text-\\[\\#1196F5\\]{--tw-text-opacity:1;color:rgb(17 150 245/var(--tw-text-opacity))}.text-\\[\\#B2B2B2\\]{--tw-text-opacity:1;color:rgb(178 178 178/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity:1;color:rgb(191 188 215/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(136 134 159/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(75 74 88/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(59 57 70/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(30 30 39/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(8 8 14/var(--tw-text-opacity))}.text-primary{color:var(--primary-color)}.text-red{--tw-text-opacity:1;color:rgb(252 90 90/var(--tw-text-opacity))}.text-textOnPrimary{color:var(--text-on-primary)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(75 74 88/var(--tw-placeholder-opacity))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity:1;color:rgb(75 74 88/var(--tw-placeholder-opacity))}.accent-\\[\\#4F2D7F\\]{accent-color:#4f2d7f}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.row-up-left{align-content:flex-start;justify-content:flex-start}.row,.row-up-left{display:flex;flex-direction:row;flex-wrap:wrap}.row{align-content:center;align-items:center;justify-content:center}.column-left{align-items:flex-start}.column,.column-left{display:flex;flex-direction:column;justify-content:center}.column{align-items:center}@media (min-width:1280px){.text-5xl{font-size:5.125rem;letter-spacing:-.125rem;line-height:100%}.text-4xl{font-size:3.5rem}.text-3xl,.text-4xl{letter-spacing:-.0625rem;line-height:100%}.text-3xl{font-size:3rem}.text-2xl{font-size:2rem}.text-2xl,.text-xl{line-height:120%}.text-xl{font-size:1.5rem}.text-lg{font-size:1.25rem}.text-base,.text-lg{line-height:120%}.text-base{font-size:1.125rem}.text-sm{font-size:1rem}.text-sm,.text-xs{line-height:120%}.text-xs{font-size:.875rem}}:root{--primary-color:#7d68f4;--primary-hover:#9786f6;--text-on-primary:#fff}svg{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}*,:after,:before{text-underline-offset:4px}input[type=number],input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield!important}.btn.is-loading{cursor:not-allowed;opacity:.4;pointer-events:none}.btn .btn-spinner,.btn.is-loading .btn-label{opacity:0;visibility:hidden}.btn.is-loading .btn-spinner{opacity:1;visibility:visible}[class*=" uicon-"],[class^=uicon-]{letter-spacing:0;line-height:100%}.placeholder\\:text-gray-300::-moz-placeholder{--tw-text-opacity:1;color:rgb(136 134 159/var(--tw-text-opacity))}.placeholder\\:text-gray-300::placeholder{--tw-text-opacity:1;color:rgb(136 134 159/var(--tw-text-opacity))}.hover\\:bg-black\\/5:hover{background-color:rgba(0,0,0,.05)}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(248 249 251/var(--tw-bg-opacity))}.hover\\:bg-primaryHover:hover{background-color:var(--primary-hover)}.hover\\:text-primaryHover:hover{color:var(--primary-hover)}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-1:focus,.focus\\:ring:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-primary:focus{--tw-ring-color:var(--primary-color)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}:is(.dark .dark\\:border-gray-400){--tw-border-opacity:1;border-color:rgb(75 74 88/var(--tw-border-opacity))}:is(.dark .dark\\:border-gray-500){--tw-border-opacity:1;border-color:rgb(59 57 70/var(--tw-border-opacity))}:is(.dark .dark\\:border-gray-600){--tw-border-opacity:1;border-color:rgb(40 40 52/var(--tw-border-opacity))}:is(.dark .dark\\:bg-black){--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}:is(.dark .dark\\:bg-gray-600){--tw-bg-opacity:1;background-color:rgb(40 40 52/var(--tw-bg-opacity))}:is(.dark .dark\\:bg-gray-800){--tw-bg-opacity:1;background-color:rgb(20 20 26/var(--tw-bg-opacity))}:is(.dark .dark\\:text-\\[\\#201a41\\]){--tw-text-opacity:1;color:rgb(32 26 65/var(--tw-text-opacity))}:is(.dark .dark\\:text-gray-300){--tw-text-opacity:1;color:rgb(136 134 159/var(--tw-text-opacity))}:is(.dark .dark\\:text-white){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}:is(.dark .dark\\:hover\\:bg-black\\/90:hover){background-color:rgba(0,0,0,.9)}:is(.dark .dark\\:focus\\:ring-offset-gray-900:focus){--tw-ring-offset-color:#08080e}@media (min-width:640px){.sm\\:absolute{position:absolute}.sm\\:left-4{left:1rem}.sm\\:top-1\\/2{top:50%}.sm\\:mt-4{margin-top:1rem}.sm\\:inline{display:inline}.sm\\:h-6{height:1.5rem}.sm\\:min-h-\\[700px\\]{min-height:700px}.sm\\:w-6{width:1.5rem}.sm\\:w-\\[calc\\(100\\%-theme\\(space\\.16\\)-theme\\(space\\.16\\)\\)\\]{width:calc(100% - 8rem)}.sm\\:w-auto{width:auto}.sm\\:max-w-md{max-width:28rem}.sm\\:-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:flex-col{flex-direction:column}.sm\\:justify-normal{justify-content:normal}.sm\\:space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)));margin-right:calc(0px*var(--tw-space-x-reverse))}.sm\\:space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.sm\\:bg-fixed{background-attachment:fixed}.sm\\:bg-left-top{background-position:0 0}.sm\\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\\:px-14{padding-left:3.5rem;padding-right:3.5rem}.sm\\:py-14{padding-bottom:3.5rem;padding-top:3.5rem}.sm\\:py-4{padding-bottom:1rem;padding-top:1rem}.sm\\:pt-16{padding-top:4rem}.sm\\:text-2xl{font-size:1.5rem;line-height:120%}.sm\\:text-base{font-size:1rem;line-height:120%}}@media (min-width:1280px){.md\\:min-w-\\[448px\\]{min-width:448px}.md\\:text-3xl{font-size:2rem;line-height:120%}.md\\:text-base{font-size:1rem;line-height:120%}.md\\:text-sm{font-size:.875rem;line-height:120%}.md\\:text-xs{font-size:.75rem;line-height:135%}}@media (max-height:900px) and (min-width:640px){.short\\:static{position:static}.short\\:left-auto{left:auto}.short\\:top-auto{top:auto}.short\\:hidden{display:none}.short\\:h-5{height:1.25rem}.short\\:min-h-\\[558px\\]{min-height:558px}.short\\:w-5{width:1.25rem}.short\\:translate-y-0{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.short\\:flex-row{flex-direction:row}.short\\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.short\\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.short\\:px-0{padding-left:0;padding-right:0}.short\\:py-3{padding-bottom:.75rem;padding-top:.75rem}.short\\:text-xl{font-size:1.25rem;line-height:120%}}.\\[\\&\\>\\*\\:last-child\\]\\:mb-0>:last-child{margin-bottom:0}.\\[\\&_h1\\]\\:mb-6 h1,.\\[\\&_h2\\]\\:mb-6 h2{margin-bottom:1.5rem}`;function w8(){if(typeof document<"u"){const t=document.createElement("style");t.innerHTML=Cf,t.setAttribute("data-authhero-tailwind",""),document.head.appendChild(t)}}const v8=t=>v("div",{className:"rich-text mb-6 prose prose-gray max-w-none [&>*:last-child]:mb-0 [&_h1]:mb-6 [&_h2]:mb-6",dangerouslySetInnerHTML:{__html:t.config.content}},t.id),b8=t=>v("div",{className:"flex items-center gap-2",children:[v("input",{type:"checkbox",name:t.id,required:!!t.required,className:"w-5 h-5 accent-[#4F2D7F] align-middle",id:t.id}),v("span",{className:"text-base leading-tight",children:v("span",{dangerouslySetInnerHTML:{__html:t.config.text}})})]},t.id),x8=t=>{var e;return v("div",{className:"mb-4",children:v("input",{type:"text",name:t.id,placeholder:((e=t.config)==null?void 0:e.placeholder)||"",required:!!t.required,className:"w-full rounded-lg border bg-gray-100 px-4 py-5 text-base placeholder:text-gray-300 dark:bg-gray-600 border-gray-100 dark:border-gray-500",id:t.id})},t.id)};function $8(t){switch(t.type){case"RICH_TEXT":return v8(t);case"LEGAL":return b8(t);case"TEXT":return x8(t);default:return null}}const nu=({theme:t,branding:e,client:n,formName:r,error:i,components:o})=>{const c=o==null?void 0:o.find(d=>d.type==="LEGAL"&&d.required),l=c==null?void 0:c.id,u=o==null?void 0:o.find(d=>d.type==="NEXT_BUTTON");return v(nt,{title:r,theme:t,branding:e,client:n,children:[i&&v("div",{className:"mb-4 text-red-500",children:i}),v("div",{className:"flex flex-1 flex-col justify-center",children:v("form",{className:"pt-2",method:"post",children:[l&&v("style",{dangerouslySetInnerHTML:{__html:`
|
|
258
258
|
#_legalWrapper:has(#${l}:checked) #continueBtn {
|
|
259
259
|
display: block;
|
|
260
260
|
}
|
|
@@ -267,46 +267,46 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
267
267
|
#_legalWrapper:not(:has(#${l}:checked)) #continueBtnDisabled {
|
|
268
268
|
display: block;
|
|
269
269
|
}
|
|
270
|
-
`}}),v("div",{id:"_legalWrapper",children:[o&&o.map(d=>{if(d.type==="NEXT_BUTTON")return null;const p=x8(d);return p?v("div",{className:d.type==="RICH_TEXT"?"mb-6":"mb-4",children:p},d.id):null}),u&&v("div",{className:"mb-4",children:l?v(Sf,{children:[v(tt,{id:"continueBtn",className:"sm:mt-4 !text-base w-full",children:[v("span",{children:u.config.text||"Continue"}),v(et,{className:"text-xs",name:"arrow-right"})]}),v(tt,{id:"continueBtnDisabled",className:"sm:mt-4 !text-base w-full opacity-50 cursor-not-allowed",disabled:!0,children:[v("span",{children:u.config.text||"Continue"}),v(et,{className:"text-xs",name:"arrow-right"})]})]}):v(tt,{className:"sm:mt-4 !text-base w-full",children:[v("span",{children:u.config.text||"Continue"}),v(et,{className:"text-xs",name:"arrow-right"})]})})]})]})})]})},$8=new s.OpenAPIHono().openapi(s.createRoute({tags:["forms"],method:"get",path:"/:formId/nodes/:nodeId",request:{params:s.z.object({formId:s.z.string(),nodeId:s.z.string()}),query:s.z.object({state:s.z.string()})},responses:{200:{description:"Form node HTML"},404:{description:"Form or node not found"}}}),async t=>{const{formId:e,nodeId:n}=t.req.valid("param"),{state:r}=t.req.valid("query"),{client:i,theme:o,branding:c}=await Ge(t,r,!0),l=await t.env.data.forms.get(i.tenant.id,e);if(!l)throw new R(404,{message:"Form not found"});const u=(l.nodes||[]).find(d=>d.id===n&&d.type==="STEP");if(!u)throw new R(404,{message:"Node not found or not a STEP node"});return t.html(v(nu,{theme:o,branding:c,client:i,state:r,formName:l.name,nodeAlias:u.alias||u.type,components:"components"in u.config?u.config.components:[]}))}).openapi(s.createRoute({tags:["forms"],method:"post",path:"/:formId/nodes/:nodeId",request:{params:s.z.object({formId:s.z.string(),nodeId:s.z.string()}),query:s.z.object({state:s.z.string()}),body:{content:{"application/x-www-form-urlencoded":{schema:s.z.record(s.z.string())}}}},responses:{200:{description:"Form node submitted"},404:{description:"Form or node not found"}}}),async t=>{const{formId:e,nodeId:n}=t.req.valid("param"),{state:r}=t.req.valid("query"),{theme:i,branding:o,client:c}=await Ge(t,r,!0);let l,u,d=[];try{if(l=await t.env.data.forms.get(c.tenant.id,e),!l)throw new R(404,{message:"Form not found"});if(u=(l.nodes||[]).find(S=>S.id===n&&S.type==="STEP"),!u)throw new R(404,{message:"Node not found or not a STEP node"});d="components"in u.config?u.config.components:[];const p=await t.req.parseBody(),h=[],g={};for(const S of d)if(S.type==="LEGAL"){const b=S.id,T=!!S.required,M=p[b];T&&(!M||M==="")?h.push(b):typeof M=="string"&&(g[b]=M)}if(h.length>0)return t.html(v(nu,{theme:i,branding:o,client:c,state:r,formName:l.name,nodeAlias:u.alias||u.type,components:d,error:`Missing required fields: ${h.join(", ")}`}));const A=await t.env.data.loginSessions.get(c.tenant.id,r);if(!A||!A.session_id||!A.authParams)throw new Error("Session expired");const m=await t.env.data.sessions.get(c.tenant.id,A.session_id);if(!m||!m.user_id)throw new Error("Session expired");const $=await t.env.data.users.get(t.var.tenant_id,m.user_id);if(!$)throw new Error("Session expired");const k=await Ar(t,{authParams:A.authParams,client:c,user:$,loginSession:A});return k instanceof Response?k:t.json(k)}catch{return t.html(v(nu,{theme:i,branding:o,client:c,state:r,formName:(l==null?void 0:l.name)||"",nodeAlias:(u==null?void 0:u.alias)||n||"",components:d||[],error:"Your session has expired. Please try again."}))}});function A8(t){const e=new s.OpenAPIHono;e.onError((r,i)=>r instanceof oo?i.redirect(r.location,r.status):r instanceof R?i.text(r.message||"Error",r.status):i.text("Unexpected error",500)),e.use(async(r,i)=>{const o=es(r,t.dataAdapter),c=yl(o,{defaultTtl:3e5,cacheEntities:["tenants","connections","clients"]});return r.env.data=gl(r,c),i()}).use(_l).use(ml),e.get("/css/tailwind.css",async r=>{const i=Cf;return r.text(i,200,{"content-type":"text/css; charset=utf-8"})});const n=e.route("/info",g8).route("/check-account",c8).route("/account",u8).route("/change-email",d8).route("/change-email-confirmation",p8).route("/login/identifier",C6).route("/enter-code",Q6).route("/enter-password",i8).route("/invalid-session",h8).route("/pre-signup",f8).route("/pre-signup-sent",_8).route("/reset-password",s8).route("/forgot-password",a8).route("/validate-email",m8).route("/signup",o8).route("/forms",$8);return n.doc("/u/spec",{openapi:"3.0.0",info:{version:"1.0.0",title:"Universal login"}}),n}const qt=s.z.object({"#text":s.z.string()}),E8=s.z.object({"#text":s.z.string(),"@_xmlns:saml":s.z.string().optional()}),S8=s.z.object({"samlp:AuthnRequest":s.z.object({"saml:Issuer":E8,"@_xmlns:samlp":s.z.string(),"@_xmlns:saml":s.z.string().optional(),"@_ForceAuthn":s.z.string().transform(t=>t.toLowerCase()==="true").optional(),"@_ID":s.z.string(),"@_IssueInstant":s.z.string().datetime(),"@_Destination":s.z.string().url(),"@_AssertionConsumerServiceURL":s.z.string().url().optional(),"@_ProtocolBinding":s.z.string().optional(),"@_Version":s.z.string()})});s.z.array(s.z.object({":@":s.z.object({"@_xmlns":s.z.string(),"@_entityID":s.z.string()}),EntityDescriptor:s.z.array(s.z.object({":@":s.z.object({"@_protocolSupportEnumeration":s.z.string()}),IDPSSODescriptor:s.z.array(s.z.union([s.z.object({KeyDescriptor:s.z.array(s.z.object({KeyInfo:s.z.array(s.z.object({X509Data:s.z.array(s.z.object({X509Certificate:s.z.array(qt)}))})),":@":s.z.object({"@_xmlns":s.z.string()})})),":@":s.z.object({"@_use":s.z.string()})}),s.z.object({SingleLogoutService:s.z.array(s.z.object({})),":@":s.z.object({"@_Binding":s.z.string(),"@_Location":s.z.string()})}),s.z.object({NameIDFormat:s.z.array(qt)}),s.z.object({SingleSignOnService:s.z.array(s.z.object({})),":@":s.z.object({"@_Binding":s.z.string(),"@_Location":s.z.string()})}),s.z.object({Attribute:s.z.array(s.z.object({})),":@":s.z.object({"@_Name":s.z.string(),"@_NameFormat":s.z.string(),"@_FriendlyName":s.z.string(),"@_xmlns":s.z.string()})})]))}))}));const k8=s.z.object({"saml:AttributeValue":s.z.array(s.z.object({"#text":s.z.string()})),":@":s.z.object({"@_xmlns:xs":s.z.string().optional(),"@_xmlns:xsi":s.z.string(),"@_xsi:type":s.z.string(),"@_Name":s.z.string().optional(),"@_NameFormat":s.z.string().optional()})}),N8=s.z.object({"ds:Transform":s.z.array(s.z.any()),":@":s.z.object({"@_Algorithm":s.z.string()})}),Wg=s.z.object({"ds:Signature":s.z.array(s.z.union([s.z.object({"ds:SignedInfo":s.z.array(s.z.union([s.z.object({"ds:CanonicalizationMethod":s.z.array(s.z.string()),":@":s.z.object({"@_Algorithm":s.z.string()})}),s.z.object({"ds:SignatureMethod":s.z.array(s.z.string()),":@":s.z.object({"@_Algorithm":s.z.string()})}),s.z.object({"ds:Reference":s.z.array(s.z.union([s.z.object({"ds:Transforms":s.z.array(N8)}),s.z.object({"ds:DigestMethod":s.z.array(s.z.string()),":@":s.z.object({"@_Algorithm":s.z.string()})}),s.z.object({"ds:DigestValue":s.z.array(qt)})]))})]))}),s.z.object({"ds:SignatureValue":s.z.array(qt)}),s.z.object({"ds:KeyInfo":s.z.array(s.z.object({"ds:KeyValue":s.z.array(s.z.object({"ds:RSAKeyValue":s.z.array(s.z.union([s.z.object({"ds:Modulus":s.z.array(qt)}),s.z.object({"ds:Exponent":s.z.array(qt)})]))}))}))})])),":@":s.z.object({"@_xmlns:ds":s.z.string()})});s.z.array(s.z.object({"samlp:Response":s.z.array(s.z.union([s.z.object({"saml:Issuer":s.z.array(qt)}),Wg,s.z.object({"samlp:Status":s.z.array(s.z.object({"samlp:StatusCode":s.z.array(qt),":@":s.z.object({"@_Value":s.z.string()})}))}),s.z.object({"saml:Assertion":s.z.array(s.z.union([s.z.object({"saml:Issuer":s.z.array(qt)}),Wg,s.z.object({"saml:Subject":s.z.array(s.z.union([s.z.object({"saml:NameID":s.z.array(qt),":@":s.z.object({"@_Format":s.z.string()})}),s.z.object({"saml:SubjectConfirmation":s.z.array(s.z.object({"saml:SubjectConfirmationData":s.z.array(s.z.any()),":@":s.z.object({"@_InResponseTo":s.z.string(),"@_NotOnOrAfter":s.z.string(),"@_Recipient":s.z.string()})})),":@":s.z.object({"@_Method":s.z.string()})})]))}),s.z.object({"saml:Conditions":s.z.array(s.z.object({"saml:AudienceRestriction":s.z.array(s.z.object({"saml:Audience":s.z.array(qt)}))})),":@":s.z.object({"@_NotBefore":s.z.string(),"@_NotOnOrAfter":s.z.string()})}),s.z.object({"saml:AuthnStatement":s.z.array(s.z.object({"saml:AuthnContext":s.z.array(s.z.object({"saml:AuthnContextClassRef":s.z.array(qt)}))})),":@":s.z.object({"@_AuthnInstant":s.z.string(),"@_SessionIndex":s.z.string(),"@_SessionNotOnOrAfter":s.z.string()})}),s.z.object({"saml:AttributeStatement":s.z.array(s.z.object({"saml:Attribute":s.z.array(k8),":@":s.z.object({"@_FriendlyName":s.z.string().optional(),"@_Name":s.z.string(),"@_NameFormat":s.z.string()})}))})])),":@":s.z.object({"@_xmlns":s.z.string(),"@_ID":s.z.string(),"@_IssueInstant":s.z.string(),"@_Version":s.z.string()})})])),":@":s.z.object({"@_xmlns:samlp":s.z.string(),"@_xmlns:saml":s.z.string(),"@_Destination":s.z.string(),"@_ID":s.z.string(),"@_InResponseTo":s.z.string(),"@_IssueInstant":s.z.string(),"@_Version":s.z.string()})}));var C8={},Qr={},Es={},$l={};(function(t){var e=t;(function(n){function r(a){var f=Array.prototype.slice,y=a.length,E=function(N,G){return function(){return G.apply(this,N.concat(f.call(arguments)))}},x=function(){var N=f.call(arguments);return N.length<y?E(N,x):a.apply(this,f.apply(arguments,[0,y]))};return x}var i=function(a,f){for(var y=0;y<f.length;y+=1)a(f[y],y,f)},o=function(a,f,y){var E=f;return i(function(x,N){E=a(E,x,N)},y),E},c=function(a,f){var y=new Array(f.length);return i(function(E,x){y[x]=a(E)},f),y},l=function(a,f){var y=[];return i(function(E,x){a(E,x)&&y.push(E)},f),y},u=function(a,f){for(var y=0;y<a.length;y+=1)if(a[y]===f)return!0;return!1};function d(a){return function(){return a}}function p(a){return a.toString()}var h=function(a,f){return f.join(a)},g=function(a,f,y){return a+y+f},A=Array.prototype.concat,m=32767;function $(a){for(var f=[],y=0;y<a.length;y+=m){var E=a.slice(y,y+m);f=A.apply(f,E)}return f}function k(a,f){for(var y=Object(a),E=1;E<arguments.length;E++){var x=arguments[E];if(x!=null)for(var N in x)Object.prototype.hasOwnProperty.call(x,N)&&(y[N]=x[N])}return y}var S={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11};b.prototype=new Object,b.prototype.constructor=b,b.superclass=Object.prototype;function b(){this.init()}b.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new ue(a[0],a[2])},this.reduceActions[5]=function(a){return new Ne(a[0],a[2])},this.reduceActions[7]=function(a){return new B(a[0],a[2])},this.reduceActions[8]=function(a){return new L(a[0],a[2])},this.reduceActions[10]=function(a){return new P(a[0],a[2])},this.reduceActions[11]=function(a){return new I(a[0],a[2])},this.reduceActions[12]=function(a){return new C(a[0],a[2])},this.reduceActions[13]=function(a){return new j(a[0],a[2])},this.reduceActions[15]=function(a){return new V(a[0],a[2])},this.reduceActions[16]=function(a){return new de(a[0],a[2])},this.reduceActions[18]=function(a){return new ne(a[0],a[2])},this.reduceActions[19]=function(a){return new ve(a[0],a[2])},this.reduceActions[20]=function(a){return new Se(a[0],a[2])},this.reduceActions[22]=function(a){return new W(a[1])},this.reduceActions[24]=function(a){return new Z(a[0],a[2])},this.reduceActions[25]=function(a){return new ye(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new Q(Q.DESCENDANTORSELF,oe.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new ye(a[0],[],void 0)},this.reduceActions[30]=function(a){return ae.instance_of(a[0],ye)?(a[0].filterPredicates==null&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new ye(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new he(a[0])},this.reduceActions[34]=function(a){return new ge(a[0])},this.reduceActions[36]=function(a){return new Tt(a[0],[])},this.reduceActions[37]=function(a){return new Tt(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new Yt(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new Yt(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new Q(a[0],a[1],[])},this.reduceActions[50]=function(a){return new Q(Q.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new Q(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new Q(Q.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){return a[0]=="ancestor"?Q.ANCESTOR:a[0]=="ancestor-or-self"?Q.ANCESTORORSELF:a[0]=="attribute"?Q.ATTRIBUTE:a[0]=="child"?Q.CHILD:a[0]=="descendant"?Q.DESCENDANT:a[0]=="descendant-or-self"?Q.DESCENDANTORSELF:a[0]=="following"?Q.FOLLOWING:a[0]=="following-sibling"?Q.FOLLOWINGSIBLING:a[0]=="namespace"?Q.NAMESPACE:a[0]=="parent"?Q.PARENT:a[0]=="preceding"?Q.PRECEDING:a[0]=="preceding-sibling"?Q.PRECEDINGSIBLING:a[0]=="self"?Q.SELF:-1},this.reduceActions[57]=function(a){return Q.ATTRIBUTE},this.reduceActions[59]=function(a){return a[0]=="comment"?oe.commentTest:a[0]=="text"?oe.textTest:a[0]=="processing-instruction"?oe.anyPiTest:a[0]=="node"?oe.nodeTest:new oe(-1,void 0)},this.reduceActions[60]=function(a){return new oe.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new Q(Q.DESCENDANTORSELF,oe.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new Q(Q.DESCENDANTORSELF,oe.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new Q(Q.SELF,oe.nodeTest,[])},this.reduceActions[66]=function(a){return new Q(Q.PARENT,oe.nodeTest,[])},this.reduceActions[67]=function(a){return new Ze(a[1])},this.reduceActions[68]=function(a){return oe.nameTestAny},this.reduceActions[69]=function(a){return new oe.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new oe.NameTestQName(a[0])}},b.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],b.actionTableNumber=[` 1 0 /.-,+*)(' & %$ # "!`," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY ",` 1 0 /.-,+*)(' & %$ # "!`,`K1 KKKKKKKK . +*)('KKKKKK KK# K" `,` 1 0 /.-,+*)(' & %$ # "!`," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q ",` 1 . +*)(' # " `,"b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX ",` 1 0 /.-,+*)(' & %$m # "!`,"_ f________ ______e __ _ ",` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 . +*)(' # " `,` 1 . +*)(' # " `,"> >>>>>>>>> >>>>>>> >> >> ",` 1 . +*)(' # " `,` 1 . +*)(' # " `,"Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," "," F ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE ",` 1 0 /.-,+*)(' & %$ # "!`,"] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],b.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","456789:;<=>?@ AB CDEFGH IJ"," EFGH IJ "," EFGH IJ "," "," GH IJ ","
GH IJ "," i "," i "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABqCDEFGH IJ "," "," "],b.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],b.DOUBLEDOT=2,b.DOUBLECOLON=3,b.DOUBLESLASH=4,b.NOTEQUAL=5,b.LESSTHANOREQUAL=6,b.GREATERTHANOREQUAL=7,b.AND=8,b.OR=9,b.MOD=10,b.DIV=11,b.MULTIPLYOPERATOR=12,b.FUNCTIONNAME=13,b.AXISNAME=14,b.LITERAL=15,b.NUMBER=16,b.ASTERISKNAMETEST=17,b.QNAME=18,b.NCNAMECOLONASTERISK=19,b.NODETYPE=20,b.PROCESSINGINSTRUCTIONWITHLITERAL=21,b.EQUALS=22,b.LESSTHAN=23,b.GREATERTHAN=24,b.PLUS=25,b.MINUS=26,b.BAR=27,b.SLASH=28,b.LEFTPARENTHESIS=29,b.RIGHTPARENTHESIS=30,b.COMMA=31,b.AT=32,b.LEFTBRACKET=33,b.RIGHTBRACKET=34,b.DOT=35,b.DOLLAR=36,b.prototype.tokenize=function(a){for(var f=[],y=[],E=a+"\0",x=0,N=E.charAt(x++);;){for(;N==" "||N==" "||N=="\r"||N==`
|
|
271
|
-
`;)N=E.charAt(x++);if(N=="\0"||x>=E.length)break;if(N=="("){f.push(b.LEFTPARENTHESIS),y.push(N),N=E.charAt(x++);continue}if(N==")"){f.push(b.RIGHTPARENTHESIS),y.push(N),N=E.charAt(x++);continue}if(N=="["){f.push(b.LEFTBRACKET),y.push(N),N=E.charAt(x++);continue}if(N=="]"){f.push(b.RIGHTBRACKET),y.push(N),N=E.charAt(x++);continue}if(N=="@"){f.push(b.AT),y.push(N),N=E.charAt(x++);continue}if(N==","){f.push(b.COMMA),y.push(N),N=E.charAt(x++);continue}if(N=="|"){f.push(b.BAR),y.push(N),N=E.charAt(x++);continue}if(N=="+"){f.push(b.PLUS),y.push(N),N=E.charAt(x++);continue}if(N=="-"){f.push(b.MINUS),y.push(N),N=E.charAt(x++);continue}if(N=="="){f.push(b.EQUALS),y.push(N),N=E.charAt(x++);continue}if(N=="$"){f.push(b.DOLLAR),y.push(N),N=E.charAt(x++);continue}if(N=="."){if(N=E.charAt(x++),N=="."){f.push(b.DOUBLEDOT),y.push(".."),N=E.charAt(x++);continue}if(N>="0"&&N<="9"){var G="."+N;for(N=E.charAt(x++);N>="0"&&N<="9";)G+=N,N=E.charAt(x++);f.push(b.NUMBER),y.push(G);continue}f.push(b.DOT),y.push(".");continue}if(N=="'"||N=='"'){for(var _e=N,Ce="";x<E.length&&(N=E.charAt(x))!==_e;)Ce+=N,x+=1;if(N!==_e)throw Ut.fromMessage("Unterminated string literal: "+_e+Ce);x+=1,f.push(b.LITERAL),y.push(Ce),N=E.charAt(x++);continue}if(N>="0"&&N<="9"){var G=N;for(N=E.charAt(x++);N>="0"&&N<="9";)G+=N,N=E.charAt(x++);if(N=="."&&E.charAt(x)>="0"&&E.charAt(x)<="9")for(G+=N,G+=E.charAt(x++),N=E.charAt(x++);N>="0"&&N<="9";)G+=N,N=E.charAt(x++);f.push(b.NUMBER),y.push(G);continue}if(N=="*"){if(f.length>0){var ie=f[f.length-1];if(ie!=b.AT&&ie!=b.DOUBLECOLON&&ie!=b.LEFTPARENTHESIS&&ie!=b.LEFTBRACKET&&ie!=b.AND&&ie!=b.OR&&ie!=b.MOD&&ie!=b.DIV&&ie!=b.MULTIPLYOPERATOR&&ie!=b.SLASH&&ie!=b.DOUBLESLASH&&ie!=b.BAR&&ie!=b.PLUS&&ie!=b.MINUS&&ie!=b.EQUALS&&ie!=b.NOTEQUAL&&ie!=b.LESSTHAN&&ie!=b.LESSTHANOREQUAL&&ie!=b.GREATERTHAN&&ie!=b.GREATERTHANOREQUAL){f.push(b.MULTIPLYOPERATOR),y.push(N),N=E.charAt(x++);continue}}f.push(b.ASTERISKNAMETEST),y.push(N),N=E.charAt(x++);continue}if(N==":"&&E.charAt(x)==":"){f.push(b.DOUBLECOLON),y.push("::"),x++,N=E.charAt(x++);continue}if(N=="/"){if(N=E.charAt(x++),N=="/"){f.push(b.DOUBLESLASH),y.push("//"),N=E.charAt(x++);continue}f.push(b.SLASH),y.push("/");continue}if(N=="!"&&E.charAt(x)=="="){f.push(b.NOTEQUAL),y.push("!="),x++,N=E.charAt(x++);continue}if(N=="<"){if(E.charAt(x)=="="){f.push(b.LESSTHANOREQUAL),y.push("<="),x++,N=E.charAt(x++);continue}f.push(b.LESSTHAN),y.push("<"),N=E.charAt(x++);continue}if(N==">"){if(E.charAt(x)=="="){f.push(b.GREATERTHANOREQUAL),y.push(">="),x++,N=E.charAt(x++);continue}f.push(b.GREATERTHAN),y.push(">"),N=E.charAt(x++);continue}if(N=="_"||ae.isLetter(N.charCodeAt(0))){var Ae=N;for(N=E.charAt(x++);ae.isNCNameChar(N.charCodeAt(0));)Ae+=N,N=E.charAt(x++);if(f.length>0){var ie=f[f.length-1];if(ie!=b.AT&&ie!=b.DOUBLECOLON&&ie!=b.LEFTPARENTHESIS&&ie!=b.LEFTBRACKET&&ie!=b.AND&&ie!=b.OR&&ie!=b.MOD&&ie!=b.DIV&&ie!=b.MULTIPLYOPERATOR&&ie!=b.SLASH&&ie!=b.DOUBLESLASH&&ie!=b.BAR&&ie!=b.PLUS&&ie!=b.MINUS&&ie!=b.EQUALS&&ie!=b.NOTEQUAL&&ie!=b.LESSTHAN&&ie!=b.LESSTHANOREQUAL&&ie!=b.GREATERTHAN&&ie!=b.GREATERTHANOREQUAL){if(Ae=="and"){f.push(b.AND),y.push(Ae);continue}if(Ae=="or"){f.push(b.OR),y.push(Ae);continue}if(Ae=="mod"){f.push(b.MOD),y.push(Ae);continue}if(Ae=="div"){f.push(b.DIV),y.push(Ae);continue}}}if(N==":"){if(E.charAt(x)=="*"){f.push(b.NCNAMECOLONASTERISK),y.push(Ae+":*"),x++,N=E.charAt(x++);continue}if(E.charAt(x)=="_"||ae.isLetter(E.charCodeAt(x))){for(Ae+=":",N=E.charAt(x++);ae.isNCNameChar(N.charCodeAt(0));)Ae+=N,N=E.charAt(x++);if(N=="("){f.push(b.FUNCTIONNAME),y.push(Ae);continue}f.push(b.QNAME),y.push(Ae);continue}if(E.charAt(x)==":"){f.push(b.AXISNAME),y.push(Ae);continue}}if(N=="("){if(Ae=="comment"||Ae=="text"||Ae=="node"){f.push(b.NODETYPE),y.push(Ae);continue}if(Ae=="processing-instruction"){E.charAt(x)==")"?f.push(b.NODETYPE):f.push(b.PROCESSINGINSTRUCTIONWITHLITERAL),y.push(Ae);continue}f.push(b.FUNCTIONNAME),y.push(Ae);continue}f.push(b.QNAME),y.push(Ae);continue}throw new Error("Unexpected character "+N)}return f.push(1),y.push("[EOF]"),[f,y]},b.SHIFT="s",b.REDUCE="r",b.ACCEPT="a",b.prototype.parse=function(Ce){var f,y,E=this.tokenize(Ce);if(E!=null){f=E[0],y=E[1];var x=0,N=[],G=[],_e=[],Ce,ie,Ae;for(N.push(0),G.push(1),_e.push("_S"),ie=f[x],Ae=y[x++];;)switch(Ce=N[N.length-1],b.actionTable[Ce].charAt(ie-1)){case b.SHIFT:G.push(-ie),_e.push(Ae),N.push(b.actionTableNumber[Ce].charCodeAt(ie-1)-32),ie=f[x],Ae=y[x++];break;case b.REDUCE:for(var wt=b.productions[b.actionTableNumber[Ce].charCodeAt(ie-1)-32][1],je=[],rr=0;rr<wt;rr++)G.pop(),je.unshift(_e.pop()),N.pop();var ir=N[N.length-1];G.push(b.productions[b.actionTableNumber[Ce].charCodeAt(ie-1)-32][0]),this.reduceActions[b.actionTableNumber[Ce].charCodeAt(ie-1)-32]==null?_e.push(je[0]):_e.push(this.reduceActions[b.actionTableNumber[Ce].charCodeAt(ie-1)-32](je)),N.push(b.gotoTable[ir].charCodeAt(b.productions[b.actionTableNumber[Ce].charCodeAt(ie-1)-32][0]-2)-33);break;case b.ACCEPT:return new T(_e.pop());default:throw new Error("XPath parse error")}}},T.prototype=new Object,T.prototype.constructor=T,T.superclass=Object.prototype;function T(a){this.expression=a}T.prototype.toString=function(){return this.expression.toString()};function M(a,f,y){f in a||(a[f]=y)}T.prototype.evaluate=function(a){return a.contextNode=a.expressionContextNode,a.contextSize=1,a.contextPosition=1,a.isHtml&&(M(a,"caseInsensitive",!0),M(a,"allowAnyNamespaceForNoPrefix",!0)),M(a,"caseInsensitive",!1),this.expression.evaluate(a)},T.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",T.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",U.prototype=new Object,U.prototype.constructor=U,U.superclass=Object.prototype;function U(){}U.prototype.init=function(){},U.prototype.toString=function(){return"<Expression>"},U.prototype.evaluate=function(a){throw new Error("Could not evaluate expression.")},H.prototype=new U,H.prototype.constructor=H,H.superclass=U.prototype;function H(a){arguments.length>0&&this.init(a)}H.prototype.init=function(a){this.rhs=a},W.prototype=new H,W.prototype.constructor=W,W.superclass=H.prototype;function W(a){arguments.length>0&&this.init(a)}W.prototype.init=function(a){W.superclass.init.call(this,a)},W.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},W.prototype.toString=function(){return"-"+this.rhs.toString()},J.prototype=new U,J.prototype.constructor=J,J.superclass=U.prototype;function J(a,f){arguments.length>0&&this.init(a,f)}J.prototype.init=function(a,f){this.lhs=a,this.rhs=f},ue.prototype=new J,ue.prototype.constructor=ue,ue.superclass=J.prototype;function ue(a,f){arguments.length>0&&this.init(a,f)}ue.prototype.init=function(a,f){ue.superclass.init.call(this,a,f)},ue.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},ue.prototype.evaluate=function(a){var f=this.lhs.evaluate(a).bool();return f.booleanValue()?f:this.rhs.evaluate(a).bool()},Ne.prototype=new J,Ne.prototype.constructor=Ne,Ne.superclass=J.prototype;function Ne(a,f){arguments.length>0&&this.init(a,f)}Ne.prototype.init=function(a,f){Ne.superclass.init.call(this,a,f)},Ne.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},Ne.prototype.evaluate=function(a){var f=this.lhs.evaluate(a).bool();return f.booleanValue()?this.rhs.evaluate(a).bool():f},B.prototype=new J,B.prototype.constructor=B,B.superclass=J.prototype;function B(a,f){arguments.length>0&&this.init(a,f)}B.prototype.init=function(a,f){B.superclass.init.call(this,a,f)},B.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},B.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},L.prototype=new J,L.prototype.constructor=L,L.superclass=J.prototype;function L(a,f){arguments.length>0&&this.init(a,f)}L.prototype.init=function(a,f){L.superclass.init.call(this,a,f)},L.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},L.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},P.prototype=new J,P.prototype.constructor=P,P.superclass=J.prototype;function P(a,f){arguments.length>0&&this.init(a,f)}P.prototype.init=function(a,f){P.superclass.init.call(this,a,f)},P.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},P.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},I.prototype=new J,I.prototype.constructor=I,I.superclass=J.prototype;function I(a,f){arguments.length>0&&this.init(a,f)}I.prototype.init=function(a,f){I.superclass.init.call(this,a,f)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},I.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},C.prototype=new J,C.prototype.constructor=C,C.superclass=J.prototype;function C(a,f){arguments.length>0&&this.init(a,f)}C.prototype.init=function(a,f){C.superclass.init.call(this,a,f)},C.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},C.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},j.prototype=new J,j.prototype.constructor=j,j.superclass=J.prototype;function j(a,f){arguments.length>0&&this.init(a,f)}j.prototype.init=function(a,f){j.superclass.init.call(this,a,f)},j.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},j.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},V.prototype=new J,V.prototype.constructor=V,V.superclass=J.prototype;function V(a,f){arguments.length>0&&this.init(a,f)}V.prototype.init=function(a,f){V.superclass.init.call(this,a,f)},V.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},V.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},de.prototype=new J,de.prototype.constructor=de,de.superclass=J.prototype;function de(a,f){arguments.length>0&&this.init(a,f)}de.prototype.init=function(a,f){de.superclass.init.call(this,a,f)},de.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},de.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},ne.prototype=new J,ne.prototype.constructor=ne,ne.superclass=J.prototype;function ne(a,f){arguments.length>0&&this.init(a,f)}ne.prototype.init=function(a,f){ne.superclass.init.call(this,a,f)},ne.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},ne.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},ve.prototype=new J,ve.prototype.constructor=ve,ve.superclass=J.prototype;function ve(a,f){arguments.length>0&&this.init(a,f)}ve.prototype.init=function(a,f){ve.superclass.init.call(this,a,f)},ve.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},ve.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},Se.prototype=new J,Se.prototype.constructor=Se,Se.superclass=J.prototype;function Se(a,f){arguments.length>0&&this.init(a,f)}Se.prototype.init=function(a,f){Se.superclass.init.call(this,a,f)},Se.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},Se.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},Z.prototype=new J,Z.prototype.constructor=Z,Z.superclass=J.prototype;function Z(a,f){arguments.length>0&&this.init(a,f)}Z.prototype.init=function(a,f){Z.superclass.init.call(this,a,f)},Z.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},Z.prototype.toString=function(){return c(p,[this.lhs,this.rhs]).join(" | ")},ye.prototype=new U,ye.prototype.constructor=ye,ye.superclass=U.prototype;function ye(a,f,y){arguments.length>0&&this.init(a,f,y)}ye.prototype.init=function(a,f,y){ye.superclass.init.call(this),this.filter=a,this.filterPredicates=f,this.locationPath=y};function Tn(a){for(;a&&a.parentNode;)a=a.parentNode;return a}ye.applyPredicates=function(a,f,y){if(a.length===0)return y;var E=f.extend({});return o(function(x,N){return E.contextSize=x.length,l(function(G,_e){return E.contextNode=G,E.contextPosition=_e+1,ye.predicateMatches(N,E)},x)},y,a)},ye.getRoot=function(a,f){var y=f[0];if(y.nodeType===S.DOCUMENT_NODE)return y;if(a.virtualRoot)return a.virtualRoot;var E=y.ownerDocument;if(E)return E;for(var x=y;x.parentNode!=null;)x=x.parentNode;return x},ye.applyStep=function(a,f,y){var E=[];switch(f.contextNode=y,a.axis){case Q.ANCESTOR:if(f.contextNode===f.virtualRoot)break;var x;for(f.contextNode.nodeType==S.ATTRIBUTE_NODE?x=ye.getOwnerElement(f.contextNode):x=f.contextNode.parentNode;x!=null&&(a.nodeTest.matches(x,f)&&E.push(x),x!==f.virtualRoot);)x=x.parentNode;break;case Q.ANCESTORORSELF:for(var x=f.contextNode;x!=null&&(a.nodeTest.matches(x,f)&&E.push(x),x!==f.virtualRoot);x=x.nodeType==S.ATTRIBUTE_NODE?ye.getOwnerElement(x):x.parentNode);break;case Q.ATTRIBUTE:var N=f.contextNode.attributes;if(N!=null)for(var G=0;G<N.length;G++){var x=N.item(G);a.nodeTest.matches(x,f)&&E.push(x)}break;case Q.CHILD:for(var x=f.contextNode.firstChild;x!=null;x=x.nextSibling)a.nodeTest.matches(x,f)&&E.push(x);break;case Q.DESCENDANT:for(var je=[f.contextNode.firstChild];je.length>0;)for(var x=je.pop();x!=null;)a.nodeTest.matches(x,f)&&E.push(x),x.firstChild!=null?(je.push(x.nextSibling),x=x.firstChild):x=x.nextSibling;break;case Q.DESCENDANTORSELF:a.nodeTest.matches(f.contextNode,f)&&E.push(f.contextNode);for(var je=[f.contextNode.firstChild];je.length>0;)for(var x=je.pop();x!=null;)a.nodeTest.matches(x,f)&&E.push(x),x.firstChild!=null?(je.push(x.nextSibling),x=x.firstChild):x=x.nextSibling;break;case Q.FOLLOWING:if(f.contextNode===f.virtualRoot)break;var je=[];f.contextNode.firstChild!=null?je.unshift(f.contextNode.firstChild):je.unshift(f.contextNode.nextSibling);for(var x=f.contextNode.parentNode;x!=null&&x.nodeType!=S.DOCUMENT_NODE&&x!==f.virtualRoot;x=x.parentNode)je.unshift(x.nextSibling);do for(var x=je.pop();x!=null;)a.nodeTest.matches(x,f)&&E.push(x),x.firstChild!=null?(je.push(x.nextSibling),x=x.firstChild):x=x.nextSibling;while(je.length>0);break;case Q.FOLLOWINGSIBLING:if(f.contextNode===f.virtualRoot)break;for(var x=f.contextNode.nextSibling;x!=null;x=x.nextSibling)a.nodeTest.matches(x,f)&&E.push(x);break;case Q.NAMESPACE:var _e={};if(f.contextNode.nodeType==S.ELEMENT_NODE){_e.xml=T.XML_NAMESPACE_URI,_e.xmlns=T.XMLNS_NAMESPACE_URI;for(var x=f.contextNode;x!=null&&x.nodeType==S.ELEMENT_NODE;x=x.parentNode)for(var G=0;G<x.attributes.length;G++){var Ce=x.attributes.item(G),ie=String(Ce.name);if(ie=="xmlns")_e[""]==null&&(_e[""]=Ce.value);else if(ie.length>6&&ie.substring(0,6)=="xmlns:"){var Ae=ie.substring(6,ie.length);_e[Ae]==null&&(_e[Ae]=Ce.value)}}for(var Ae in _e){var wt=new Ot(Ae,_e[Ae],f.contextNode);a.nodeTest.matches(wt,f)&&E.push(wt)}}break;case Q.PARENT:x=null,f.contextNode!==f.virtualRoot&&(f.contextNode.nodeType==S.ATTRIBUTE_NODE?x=ye.getOwnerElement(f.contextNode):x=f.contextNode.parentNode),x!=null&&a.nodeTest.matches(x,f)&&E.push(x);break;case Q.PRECEDING:var je;f.virtualRoot!=null?je=[f.virtualRoot]:je=[Tn(f.contextNode)];e:for(;je.length>0;)for(var x=je.pop();x!=null;){if(x==f.contextNode)break e;a.nodeTest.matches(x,f)&&E.unshift(x),x.firstChild!=null?(je.push(x.nextSibling),x=x.firstChild):x=x.nextSibling}break;case Q.PRECEDINGSIBLING:if(f.contextNode===f.virtualRoot)break;for(var x=f.contextNode.previousSibling;x!=null;x=x.previousSibling)a.nodeTest.matches(x,f)&&E.push(x);break;case Q.SELF:a.nodeTest.matches(f.contextNode,f)&&E.push(f.contextNode);break}return E};function Be(a,f,y){return ye.applyPredicates(a.predicates,f,ye.applyStep(a,f,y))}function He(a,f,y){return $(c(Be.bind(null,y,a),f))}ye.applySteps=function(a,f,y){return o(He.bind(null,f),y,a)},ye.prototype.applyFilter=function(a,f){if(!this.filter)return{nodes:[a.contextNode]};var y=this.filter.evaluate(a);if(!ae.instance_of(y,se)){if(this.filterPredicates!=null&&this.filterPredicates.length>0||this.locationPath!=null)throw new Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:y}}return{nodes:ye.applyPredicates(this.filterPredicates||[],f,y.toUnsortedArray())}},ye.applyLocationPath=function(a,f,y){if(!a)return y;var E=a.absolute?[ye.getRoot(f,y)]:y;return ye.applySteps(a.steps,f,E)},ye.prototype.evaluate=function(a){var f=k(new Ft,a),y=this.applyFilter(a,f);if("nonNodes"in y)return y.nonNodes;var E=new se;return E.addArray(ye.applyLocationPath(this.locationPath,f,y.nodes)),E},ye.predicateMatches=function(a,f){var y=a.evaluate(f);return ae.instance_of(y,ge)?f.contextPosition===y.numberValue():y.booleanValue()},ye.predicateString=function(a){return g("[","]",a.toString())},ye.predicatesString=function(a){return h("",c(ye.predicateString,a))},ye.prototype.toString=function(){if(this.filter!=null){var a=p(this.filter);return ae.instance_of(this.filter,he)?g("'","'",a):this.filterPredicates!=null&&this.filterPredicates.length?g("(",")",a)+ye.predicatesString(this.filterPredicates):this.locationPath!=null?a+(this.locationPath.absolute?"":"/")+p(this.locationPath):a}return p(this.locationPath)},ye.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch{}for(var f=a.nodeType==S.DOCUMENT_NODE?a:a.ownerDocument,y=f.getElementsByTagName("*"),E=0;E<y.length;E++)for(var x=y.item(E),N=x.attributes,G=0;G<N.length;G++){var _e=N.item(G);if(_e===a)return x}return null},Yt.prototype=new Object,Yt.prototype.constructor=Yt,Yt.superclass=Object.prototype;function Yt(a,f){arguments.length>0&&this.init(a,f)}Yt.prototype.init=function(a,f){this.absolute=a,this.steps=f},Yt.prototype.toString=function(){return(this.absolute?"/":"")+c(p,this.steps).join("/")},Q.prototype=new Object,Q.prototype.constructor=Q,Q.superclass=Object.prototype;function Q(a,f,y){arguments.length>0&&this.init(a,f,y)}Q.prototype.init=function(a,f,y){this.axis=a,this.nodeTest=f,this.predicates=y},Q.prototype.toString=function(){return Q.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+ye.predicatesString(this.predicates)},Q.ANCESTOR=0,Q.ANCESTORORSELF=1,Q.ATTRIBUTE=2,Q.CHILD=3,Q.DESCENDANT=4,Q.DESCENDANTORSELF=5,Q.FOLLOWING=6,Q.FOLLOWINGSIBLING=7,Q.NAMESPACE=8,Q.PARENT=9,Q.PRECEDING=10,Q.PRECEDINGSIBLING=11,Q.SELF=12,Q.STEPNAMES=o(function(a,f){return a[f[0]]=f[1],a},{},[[Q.ANCESTOR,"ancestor"],[Q.ANCESTORORSELF,"ancestor-or-self"],[Q.ATTRIBUTE,"attribute"],[Q.CHILD,"child"],[Q.DESCENDANT,"descendant"],[Q.DESCENDANTORSELF,"descendant-or-self"],[Q.FOLLOWING,"following"],[Q.FOLLOWINGSIBLING,"following-sibling"],[Q.NAMESPACE,"namespace"],[Q.PARENT,"parent"],[Q.PRECEDING,"preceding"],[Q.PRECEDINGSIBLING,"preceding-sibling"],[Q.SELF,"self"]]),oe.prototype=new Object,oe.prototype.constructor=oe,oe.superclass=Object.prototype;function oe(a,f){arguments.length>0&&this.init(a,f)}oe.prototype.init=function(a,f){this.type=a,this.value=f},oe.prototype.toString=function(){return"<unknown nodetest type>"},oe.prototype.matches=function(a,f){console.warn("unknown node test type")},oe.NAMETESTANY=0,oe.NAMETESTPREFIXANY=1,oe.NAMETESTQNAME=2,oe.COMMENT=3,oe.TEXT=4,oe.PI=5,oe.NODE=6,oe.isNodeType=function(a){return function(f){return u(a,f.nodeType)}},oe.makeNodeTestType=function(a,f,y){var E=y||function(){};return E.prototype=new oe(a),E.prototype.constructor=E,k(E.prototype,f),E},oe.makeNodeTypeTest=function(a,f,y){return new(oe.makeNodeTestType(a,{matches:oe.isNodeType(f),toString:d(y)}))},oe.hasPrefix=function(a){return a.prefix||(a.nodeName||a.tagName).indexOf(":")!==-1},oe.isElementOrAttribute=oe.isNodeType([1,2]),oe.nameSpaceMatches=function(a,f,y){var E=y.namespaceURI||"";if(!a)return!E||f.allowAnyNamespaceForNoPrefix&&!oe.hasPrefix(y);var x=f.namespaceResolver.getNamespace(a,f.expressionContextNode);if(x==null)throw new Error("Cannot resolve QName "+a);return x===E},oe.localNameMatches=function(a,f,y){var E=y.localName||y.nodeName;return f.caseInsensitive?a.toLowerCase()===E.toLowerCase():a===E},oe.NameTestPrefixAny=oe.makeNodeTestType(oe.NAMETESTPREFIXANY,{matches:function(a,f){return oe.isElementOrAttribute(a)&&oe.nameSpaceMatches(this.prefix,f,a)},toString:function(){return this.prefix+":*"}},function(f){this.prefix=f}),oe.NameTestQName=oe.makeNodeTestType(oe.NAMETESTQNAME,{matches:function(a,f){return oe.isNodeType([S.ELEMENT_NODE,S.ATTRIBUTE_NODE,Ot.XPATH_NAMESPACE_NODE])(a)&&oe.nameSpaceMatches(this.prefix,f,a)&&oe.localNameMatches(this.localName,f,a)},toString:function(){return this.name}},function(f){var y=f.split(":");this.name=f,this.prefix=y.length>1?y[0]:null,this.localName=y[y.length>1?1:0]}),oe.PITest=oe.makeNodeTestType(oe.PI,{matches:function(a,f){return oe.isNodeType([S.PROCESSING_INSTRUCTION_NODE])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return g('processing-instruction("','")',this.name)}},function(a){this.name=a}),oe.nameTestAny=oe.makeNodeTypeTest(oe.NAMETESTANY,[S.ELEMENT_NODE,S.ATTRIBUTE_NODE,Ot.XPATH_NAMESPACE_NODE],"*"),oe.textTest=oe.makeNodeTypeTest(oe.TEXT,[S.TEXT_NODE,S.CDATA_SECTION_NODE],"text()"),oe.commentTest=oe.makeNodeTypeTest(oe.COMMENT,[S.COMMENT_NODE],"comment()"),oe.nodeTest=oe.makeNodeTypeTest(oe.NODE,[S.ELEMENT_NODE,S.ATTRIBUTE_NODE,S.TEXT_NODE,S.CDATA_SECTION_NODE,S.PROCESSING_INSTRUCTION_NODE,S.COMMENT_NODE,S.DOCUMENT_NODE],"node()"),oe.anyPiTest=oe.makeNodeTypeTest(oe.PI,[S.PROCESSING_INSTRUCTION_NODE],"processing-instruction()"),Ze.prototype=new U,Ze.prototype.constructor=Ze,Ze.superclass=U.prototype;function Ze(a){arguments.length>0&&this.init(a)}Ze.prototype.init=function(a){this.variable=a},Ze.prototype.toString=function(){return"$"+this.variable},Ze.prototype.evaluate=function(a){var f=ae.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(f[0]==null)throw new Error("Cannot resolve QName "+fn);var y=a.variableResolver.getVariable(f[1],f[0]);if(!y)throw Ut.fromMessage("Undeclared variable: "+this.toString());return y},Tt.prototype=new U,Tt.prototype.constructor=Tt,Tt.superclass=U.prototype;function Tt(a,f){arguments.length>0&&this.init(a,f)}Tt.prototype.init=function(a,f){this.functionName=a,this.arguments=f},Tt.prototype.toString=function(){for(var a=this.functionName+"(",f=0;f<this.arguments.length;f++)f>0&&(a+=", "),a+=this.arguments[f].toString();return a+")"},Tt.prototype.evaluate=function(a){var f=yt.getFunctionFromContext(this.functionName,a);if(!f)throw new Error("Unknown function "+this.functionName);var y=[a].concat(this.arguments);return f.apply(a.functionResolver.thisArg,y)};var Fe=new Object;Fe.equals=function(a,f){return a.equals(f)},Fe.notequal=function(a,f){return a.notequal(f)},Fe.lessthan=function(a,f){return a.lessthan(f)},Fe.greaterthan=function(a,f){return a.greaterthan(f)},Fe.lessthanorequal=function(a,f){return a.lessthanorequal(f)},Fe.greaterthanorequal=function(a,f){return a.greaterthanorequal(f)},he.prototype=new U,he.prototype.constructor=he,he.superclass=U.prototype;function he(a){arguments.length>0&&this.init(a)}he.prototype.init=function(a){this.str=String(a)},he.prototype.toString=function(){return this.str},he.prototype.evaluate=function(a){return this},he.prototype.string=function(){return this},he.prototype.number=function(){return new ge(this.str)},he.prototype.bool=function(){return new pe(this.str)},he.prototype.nodeset=function(){throw new Error("Cannot convert string to nodeset")},he.prototype.stringValue=function(){return this.str},he.prototype.numberValue=function(){return this.number().numberValue()},he.prototype.booleanValue=function(){return this.bool().booleanValue()},he.prototype.equals=function(a){return ae.instance_of(a,pe)?this.bool().equals(a):ae.instance_of(a,ge)?this.number().equals(a):ae.instance_of(a,se)?a.compareWithString(this,Fe.equals):new pe(this.str==a.str)},he.prototype.notequal=function(a){return ae.instance_of(a,pe)?this.bool().notequal(a):ae.instance_of(a,ge)?this.number().notequal(a):ae.instance_of(a,se)?a.compareWithString(this,Fe.notequal):new pe(this.str!=a.str)},he.prototype.lessthan=function(a){return this.number().lessthan(a)},he.prototype.greaterthan=function(a){return this.number().greaterthan(a)},he.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},he.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},ge.prototype=new U,ge.prototype.constructor=ge,ge.superclass=U.prototype;function ge(a){arguments.length>0&&this.init(a)}ge.prototype.init=function(a){this.num=typeof a=="string"?this.parse(a):Number(a)},ge.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,ge.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):Number.NaN};function ao(a){for(var f=a.split("e-"),y=f[0].replace(".",""),E=Number(f[1]),x=0;x<E-1;x+=1)y="0"+y;return"0."+y}function Ts(a){for(var f=a.split("e"),y=f[0].replace(".",""),E=Number(f[1]),x=E+1-y.length,N=0;N<x;N+=1)y+="0";return y}ge.prototype.toString=function(){var a=this.num.toString();return a.indexOf("e-")!==-1?ao(a):a.indexOf("e")!==-1?Ts(a):a},ge.prototype.evaluate=function(a){return this},ge.prototype.string=function(){return new he(this.toString())},ge.prototype.number=function(){return this},ge.prototype.bool=function(){return new pe(this.num)},ge.prototype.nodeset=function(){throw new Error("Cannot convert number to nodeset")},ge.prototype.stringValue=function(){return this.string().stringValue()},ge.prototype.numberValue=function(){return this.num},ge.prototype.booleanValue=function(){return this.bool().booleanValue()},ge.prototype.negate=function(){return new ge(-this.num)},ge.prototype.equals=function(a){return ae.instance_of(a,pe)?this.bool().equals(a):ae.instance_of(a,he)?this.equals(a.number()):ae.instance_of(a,se)?a.compareWithNumber(this,Fe.equals):new pe(this.num==a.num)},ge.prototype.notequal=function(a){return ae.instance_of(a,pe)?this.bool().notequal(a):ae.instance_of(a,he)?this.notequal(a.number()):ae.instance_of(a,se)?a.compareWithNumber(this,Fe.notequal):new pe(this.num!=a.num)},ge.prototype.lessthan=function(a){return ae.instance_of(a,se)?a.compareWithNumber(this,Fe.greaterthan):ae.instance_of(a,pe)||ae.instance_of(a,he)?this.lessthan(a.number()):new pe(this.num<a.num)},ge.prototype.greaterthan=function(a){return ae.instance_of(a,se)?a.compareWithNumber(this,Fe.lessthan):ae.instance_of(a,pe)||ae.instance_of(a,he)?this.greaterthan(a.number()):new pe(this.num>a.num)},ge.prototype.lessthanorequal=function(a){return ae.instance_of(a,se)?a.compareWithNumber(this,Fe.greaterthanorequal):ae.instance_of(a,pe)||ae.instance_of(a,he)?this.lessthanorequal(a.number()):new pe(this.num<=a.num)},ge.prototype.greaterthanorequal=function(a){return ae.instance_of(a,se)?a.compareWithNumber(this,Fe.lessthanorequal):ae.instance_of(a,pe)||ae.instance_of(a,he)?this.greaterthanorequal(a.number()):new pe(this.num>=a.num)},ge.prototype.plus=function(a){return new ge(this.num+a.num)},ge.prototype.minus=function(a){return new ge(this.num-a.num)},ge.prototype.multiply=function(a){return new ge(this.num*a.num)},ge.prototype.div=function(a){return new ge(this.num/a.num)},ge.prototype.mod=function(a){return new ge(this.num%a.num)},pe.prototype=new U,pe.prototype.constructor=pe,pe.superclass=U.prototype;function pe(a){arguments.length>0&&this.init(a)}pe.prototype.init=function(a){this.b=!!a},pe.prototype.toString=function(){return this.b.toString()},pe.prototype.evaluate=function(a){return this},pe.prototype.string=function(){return new he(this.b)},pe.prototype.number=function(){return new ge(this.b)},pe.prototype.bool=function(){return this},pe.prototype.nodeset=function(){throw new Error("Cannot convert boolean to nodeset")},pe.prototype.stringValue=function(){return this.string().stringValue()},pe.prototype.numberValue=function(){return this.number().numberValue()},pe.prototype.booleanValue=function(){return this.b},pe.prototype.not=function(){return new pe(!this.b)},pe.prototype.equals=function(a){return ae.instance_of(a,he)||ae.instance_of(a,ge)?this.equals(a.bool()):ae.instance_of(a,se)?a.compareWithBoolean(this,Fe.equals):new pe(this.b==a.b)},pe.prototype.notequal=function(a){return ae.instance_of(a,he)||ae.instance_of(a,ge)?this.notequal(a.bool()):ae.instance_of(a,se)?a.compareWithBoolean(this,Fe.notequal):new pe(this.b!=a.b)},pe.prototype.lessthan=function(a){return this.number().lessthan(a)},pe.prototype.greaterthan=function(a){return this.number().greaterthan(a)},pe.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},pe.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},pe.true_=new pe(!0),pe.false_=new pe(!1),st.prototype=new Object,st.prototype.constructor=st,st.superclass=Object.prototype;function st(a){this.init(a)}st.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},st.prototype.balance=function(){var a=this.left==null?0:this.left.depth,f=this.right==null?0:this.right.depth;if(a>f+1){var y=this.left.left==null?0:this.left.left.depth,E=this.left.right==null?0:this.left.right.depth;y<E&&this.left.rotateRR(),this.rotateLL()}else if(a+1<f){var x=this.right.right==null?0:this.right.right.depth,N=this.right.left==null?0:this.right.left.depth;N>x&&this.right.rotateLL(),this.rotateRR()}},st.prototype.rotateLL=function(){var a=this.node,f=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=f,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},st.prototype.rotateRR=function(){var a=this.node,f=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=f,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},st.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},st.prototype.getDepthFromChildren=function(){this.depth=this.node==null?0:1,this.left!=null&&(this.depth=this.left.depth+1),this.right!=null&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)};function Os(a,f){if(a===f)return 0;if(a.compareDocumentPosition){var y=a.compareDocumentPosition(f);return y&1||y&10?1:y&20?-1:0}for(var E=0,x=0,N=a;N!=null;N=N.parentNode||N.ownerElement)E++;for(var G=f;G!=null;G=G.parentNode||G.ownerElement)x++;if(E>x){for(;E>x;)a=a.parentNode||a.ownerElement,E--;if(a===f)return 1}else if(x>E){for(;x>E;)f=f.parentNode||f.ownerElement,x--;if(a===f)return-1}for(var _e=a.parentNode||a.ownerElement,Ce=f.parentNode||f.ownerElement;_e!==Ce;)a=_e,f=Ce,_e=a.parentNode||a.ownerElement,Ce=f.parentNode||f.ownerElement;var ie=ae.isAttribute(a),Ae=ae.isAttribute(f);if(ie&&!Ae)return-1;if(!ie&&Ae)return 1;if(_e)for(var wt=ie?_e.attributes:_e.childNodes,je=wt.length,rr=0;rr<je;rr+=1){var ir=wt[rr];if(ir===a)return-1;if(ir===f)return 1}throw new Error("Unexpected: could not determine node order")}st.prototype.add=function(a){if(a===this.node)return!1;var f=Os(a,this.node),y=!1;return f==-1?this.left==null?(this.left=new st(a),y=!0):(y=this.left.add(a),y&&this.balance()):f==1&&(this.right==null?(this.right=new st(a),y=!0):(y=this.right.add(a),y&&this.balance())),y&&this.getDepthFromChildren(),y},se.prototype=new U,se.prototype.constructor=se,se.superclass=U.prototype;function se(){this.init()}se.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},se.prototype.toString=function(){var a=this.first();return a==null?"":this.stringForNode(a)},se.prototype.evaluate=function(a){return this},se.prototype.string=function(){return new he(this.toString())},se.prototype.stringValue=function(){return this.toString()},se.prototype.number=function(){return new ge(this.string())},se.prototype.numberValue=function(){return Number(this.string())},se.prototype.bool=function(){return new pe(this.booleanValue())},se.prototype.booleanValue=function(){return!!this.size},se.prototype.nodeset=function(){return this},se.prototype.stringForNode=function(a){return a.nodeType==S.DOCUMENT_NODE||a.nodeType==S.ELEMENT_NODE||a.nodeType===S.DOCUMENT_FRAGMENT_NODE?this.stringForContainerNode(a):a.nodeType===S.ATTRIBUTE_NODE?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},se.prototype.stringForContainerNode=function(a){for(var f="",y=a.firstChild;y!=null;y=y.nextSibling){var E=y.nodeType;(E===1||E===3||E===4||E===9||E===11)&&(f+=this.stringForNode(y))}return f},se.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new st(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},se.prototype.first=function(){var a=this.buildTree();if(a==null)return null;for(;a.left!=null;)a=a.left;return a.node},se.prototype.add=function(a){for(var f=0;f<this.nodes.length;f+=1)if(a===this.nodes[f])return;this.tree=null,this.nodes.push(a),this.size+=1},se.prototype.addArray=function(a){var f=this;i(function(y){f.add(y)},a)},se.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},se.prototype.toArrayRec=function(a,f){a!=null&&(this.toArrayRec(a.left,f),f.push(a.node),this.toArrayRec(a.right,f))},se.prototype.toUnsortedArray=function(){return this.nodes.slice()},se.prototype.compareWithString=function(a,f){for(var y=this.toUnsortedArray(),E=0;E<y.length;E++){var x=y[E],N=new he(this.stringForNode(x)),G=f(N,a);if(G.booleanValue())return G}return new pe(!1)},se.prototype.compareWithNumber=function(a,f){for(var y=this.toUnsortedArray(),E=0;E<y.length;E++){var x=y[E],N=new ge(this.stringForNode(x)),G=f(N,a);if(G.booleanValue())return G}return new pe(!1)},se.prototype.compareWithBoolean=function(a,f){return f(this.bool(),a)},se.prototype.compareWithNodeSet=function(a,f){for(var y=this.toUnsortedArray(),E=function(_e,Ce){return f(Ce,_e)},x=0;x<y.length;x++){var N=new he(this.stringForNode(y[x])),G=a.compareWithString(N,E);if(G.booleanValue())return G}return new pe(!1)},se.compareWith=r(function(a,f){return ae.instance_of(f,he)?this.compareWithString(f,a):ae.instance_of(f,ge)?this.compareWithNumber(f,a):ae.instance_of(f,pe)?this.compareWithBoolean(f,a):this.compareWithNodeSet(f,a)}),se.prototype.equals=se.compareWith(Fe.equals),se.prototype.notequal=se.compareWith(Fe.notequal),se.prototype.lessthan=se.compareWith(Fe.lessthan),se.prototype.greaterthan=se.compareWith(Fe.greaterthan),se.prototype.lessthanorequal=se.compareWith(Fe.lessthanorequal),se.prototype.greaterthanorequal=se.compareWith(Fe.greaterthanorequal),se.prototype.union=function(a){var f=new se;return f.addArray(this.toUnsortedArray()),f.addArray(a.toUnsortedArray()),f},Ot.prototype=new Object,Ot.prototype.constructor=Ot,Ot.superclass=Object.prototype;function Ot(a,f,y){this.isXPathNamespace=!0,this.ownerDocument=y.ownerDocument,this.nodeName="#namespace",this.prefix=a,this.localName=a,this.namespaceURI=f,this.nodeValue=f,this.ownerElement=y,this.nodeType=Ot.XPATH_NAMESPACE_NODE}Ot.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},Ft.prototype=new Object,Ft.prototype.constructor=Ft,Ft.superclass=Object.prototype;function Ft(a,f,y){this.variableResolver=a??new hn,this.namespaceResolver=f??new Zt,this.functionResolver=y??new yt}Ft.prototype.extend=function(a){return k(new Ft,this,a)},hn.prototype=new Object,hn.prototype.constructor=hn,hn.superclass=Object.prototype;function hn(){}hn.prototype.getVariable=function(a,f){return null},yt.prototype=new Object,yt.prototype.constructor=yt,yt.superclass=Object.prototype;function yt(a){this.thisArg=a??me,this.functions=new Object,this.addStandardFunctions()}yt.prototype.addStandardFunctions=function(){this.functions["{}last"]=me.last,this.functions["{}position"]=me.position,this.functions["{}count"]=me.count,this.functions["{}id"]=me.id,this.functions["{}local-name"]=me.localName,this.functions["{}namespace-uri"]=me.namespaceURI,this.functions["{}name"]=me.name,this.functions["{}string"]=me.string,this.functions["{}concat"]=me.concat,this.functions["{}starts-with"]=me.startsWith,this.functions["{}contains"]=me.contains,this.functions["{}substring-before"]=me.substringBefore,this.functions["{}substring-after"]=me.substringAfter,this.functions["{}substring"]=me.substring,this.functions["{}string-length"]=me.stringLength,this.functions["{}normalize-space"]=me.normalizeSpace,this.functions["{}translate"]=me.translate,this.functions["{}boolean"]=me.boolean_,this.functions["{}not"]=me.not,this.functions["{}true"]=me.true_,this.functions["{}false"]=me.false_,this.functions["{}lang"]=me.lang,this.functions["{}number"]=me.number,this.functions["{}sum"]=me.sum,this.functions["{}floor"]=me.floor,this.functions["{}ceiling"]=me.ceiling,this.functions["{}round"]=me.round},yt.prototype.addFunction=function(a,f,y){this.functions["{"+a+"}"+f]=y},yt.getFunctionFromContext=function(a,f){var y=ae.resolveQName(a,f.namespaceResolver,f.contextNode,!1);if(y[0]===null)throw new Error("Cannot resolve QName "+name);return f.functionResolver.getFunction(y[1],y[0])},yt.prototype.getFunction=function(a,f){return this.functions["{"+f+"}"+a]},Zt.prototype=new Object,Zt.prototype.constructor=Zt,Zt.superclass=Object.prototype;function Zt(){}Zt.prototype.getNamespace=function(a,f){if(a=="xml")return T.XML_NAMESPACE_URI;if(a=="xmlns")return T.XMLNS_NAMESPACE_URI;for(f.nodeType==S.DOCUMENT_NODE?f=f.documentElement:f.nodeType==S.ATTRIBUTE_NODE?f=ye.getOwnerElement(f):f.nodeType!=S.ELEMENT_NODE&&(f=f.parentNode);f!=null&&f.nodeType==S.ELEMENT_NODE;){for(var y=f.attributes,E=0;E<y.length;E++){var x=y.item(E),N=x.name||x.nodeName;if(N==="xmlns"&&a===""||N==="xmlns:"+a)return String(x.value||x.nodeValue)}f=f.parentNode}return null};var me=new Object;me.last=function(a){if(arguments.length!=1)throw new Error("Function last expects ()");return new ge(a.contextSize)},me.position=function(a){if(arguments.length!=1)throw new Error("Function position expects ()");return new ge(a.contextPosition)},me.count=function(){var a=arguments[0],f;if(arguments.length!=2||!ae.instance_of(f=arguments[1].evaluate(a),se))throw new Error("Function count expects (node-set)");return new ge(f.size)},me.id=function(){var a=arguments[0],f;if(arguments.length!=2)throw new Error("Function id expects (object)");f=arguments[1].evaluate(a),ae.instance_of(f,se)?f=f.toArray().join(" "):f=f.stringValue();for(var y=f.split(/[\x0d\x0a\x09\x20]+/),E=new se,x=a.contextNode.nodeType==S.DOCUMENT_NODE?a.contextNode:a.contextNode.ownerDocument,N=0;N<y.length;N++){var G;x.getElementById?G=x.getElementById(y[N]):G=ae.getElementById(x,y[N]),G!=null&&E.add(G)}return E},me.localName=function(a,f){var y;if(arguments.length==1)y=a.contextNode;else if(arguments.length==2)y=f.evaluate(a).first();else throw new Error("Function local-name expects (node-set?)");return y==null?new he(""):new he(y.localName||y.baseName||y.target||y.nodeName||"")},me.namespaceURI=function(){var a=arguments[0],f;if(arguments.length==1)f=a.contextNode;else if(arguments.length==2)f=arguments[1].evaluate(a).first();else throw new Error("Function namespace-uri expects (node-set?)");return f==null?new he(""):new he(f.namespaceURI)},me.name=function(){var a=arguments[0],f;if(arguments.length==1)f=a.contextNode;else if(arguments.length==2)f=arguments[1].evaluate(a).first();else throw new Error("Function name expects (node-set?)");return f==null?new he(""):f.nodeType==S.ELEMENT_NODE?new he(f.nodeName):f.nodeType==S.ATTRIBUTE_NODE?new he(f.name||f.nodeName):f.nodeType===S.PROCESSING_INSTRUCTION_NODE?new he(f.target||f.nodeName):f.localName==null?new he(""):new he(f.localName)},me.string=function(){var a=arguments[0];if(arguments.length==1)return new he(se.prototype.stringForNode(a.contextNode));if(arguments.length==2)return arguments[1].evaluate(a).string();throw new Error("Function string expects (object?)")},me.concat=function(a){if(arguments.length<3)throw new Error("Function concat expects (string, string[, string]*)");for(var f="",y=1;y<arguments.length;y++)f+=arguments[y].evaluate(a).stringValue();return new he(f)},me.startsWith=function(){var a=arguments[0];if(arguments.length!=3)throw new Error("Function startsWith expects (string, string)");var f=arguments[1].evaluate(a).stringValue(),y=arguments[2].evaluate(a).stringValue();return new pe(f.substring(0,y.length)==y)},me.contains=function(){var a=arguments[0];if(arguments.length!=3)throw new Error("Function contains expects (string, string)");var f=arguments[1].evaluate(a).stringValue(),y=arguments[2].evaluate(a).stringValue();return new pe(f.indexOf(y)!==-1)},me.substringBefore=function(){var a=arguments[0];if(arguments.length!=3)throw new Error("Function substring-before expects (string, string)");var f=arguments[1].evaluate(a).stringValue(),y=arguments[2].evaluate(a).stringValue();return new he(f.substring(0,f.indexOf(y)))},me.substringAfter=function(){var a=arguments[0];if(arguments.length!=3)throw new Error("Function substring-after expects (string, string)");var f=arguments[1].evaluate(a).stringValue(),y=arguments[2].evaluate(a).stringValue();if(y.length==0)return new he(f);var E=f.indexOf(y);return E==-1?new he(""):new he(f.substring(E+y.length))},me.substring=function(){var a=arguments[0];if(!(arguments.length==3||arguments.length==4))throw new Error("Function substring expects (string, number, number?)");var f=arguments[1].evaluate(a).stringValue(),y=Math.round(arguments[2].evaluate(a).numberValue())-1,E=arguments.length==4?y+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new he(f.substring(y,E))},me.stringLength=function(){var a=arguments[0],f;if(arguments.length==1)f=se.prototype.stringForNode(a.contextNode);else if(arguments.length==2)f=arguments[1].evaluate(a).stringValue();else throw new Error("Function string-length expects (string?)");return new ge(f.length)},me.normalizeSpace=function(){var a=arguments[0],f;if(arguments.length==1)f=se.prototype.stringForNode(a.contextNode);else if(arguments.length==2)f=arguments[1].evaluate(a).stringValue();else throw new Error("Function normalize-space expects (string?)");for(var y=0,E=f.length-1;ae.isSpace(f.charCodeAt(E));)E--;for(var x="";y<=E&&ae.isSpace(f.charCodeAt(y));)y++;for(;y<=E;)if(ae.isSpace(f.charCodeAt(y)))for(x+=" ";y<=E&&ae.isSpace(f.charCodeAt(y));)y++;else x+=f.charAt(y),y++;return new he(x)},me.translate=function(a,f,y,E){if(arguments.length!=4)throw new Error("Function translate expects (string, string, string)");var x=f.evaluate(a).stringValue(),N=y.evaluate(a).stringValue(),G=E.evaluate(a).stringValue(),_e=o(function(ie,Ae,wt){return Ae in ie||(ie[Ae]=wt>G.length?"":G[wt]),ie},{},N),Ce=h("",c(function(ie){return ie in _e?_e[ie]:ie},x));return new he(Ce)},me.boolean_=function(){var a=arguments[0];if(arguments.length!=2)throw new Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},me.not=function(a,f){if(arguments.length!=2)throw new Error("Function not expects (object)");return f.evaluate(a).bool().not()},me.true_=function(){if(arguments.length!=1)throw new Error("Function true expects ()");return pe.true_},me.false_=function(){if(arguments.length!=1)throw new Error("Function false expects ()");return pe.false_},me.lang=function(){var a=arguments[0];if(arguments.length!=2)throw new Error("Function lang expects (string)");for(var f,y=a.contextNode;y!=null&&y.nodeType!=S.DOCUMENT_NODE;y=y.parentNode){var E=y.getAttributeNS(T.XML_NAMESPACE_URI,"lang");if(E!=null){f=String(E);break}}if(f==null)return pe.false_;var x=arguments[1].evaluate(a).stringValue();return new pe(f.substring(0,x.length)==x&&(f.length==x.length||f.charAt(x.length)=="-"))},me.number=function(){var a=arguments[0];if(!(arguments.length==1||arguments.length==2))throw new Error("Function number expects (object?)");return arguments.length==1?new ge(se.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},me.sum=function(){var a=arguments[0],f;if(arguments.length!=2||!ae.instance_of(f=arguments[1].evaluate(a),se))throw new Error("Function sum expects (node-set)");f=f.toUnsortedArray();for(var y=0,E=0;E<f.length;E++)y+=new ge(se.prototype.stringForNode(f[E])).numberValue();return new ge(y)},me.floor=function(){var a=arguments[0];if(arguments.length!=2)throw new Error("Function floor expects (number)");return new ge(Math.floor(arguments[1].evaluate(a).numberValue()))},me.ceiling=function(){var a=arguments[0];if(arguments.length!=2)throw new Error("Function ceiling expects (number)");return new ge(Math.ceil(arguments[1].evaluate(a).numberValue()))},me.round=function(){var a=arguments[0];if(arguments.length!=2)throw new Error("Function round expects (number)");return new ge(Math.round(arguments[1].evaluate(a).numberValue()))};var ae=new Object;ae.isAttribute=function(a){return a&&(a.nodeType===S.ATTRIBUTE_NODE||a.ownerElement)},ae.splitQName=function(a){var f=a.indexOf(":");return f==-1?[null,a]:[a.substring(0,f),a.substring(f+1)]},ae.resolveQName=function(a,f,y,E){var x=ae.splitQName(a);return x[0]!=null?x[0]=f.getNamespace(x[0],y):E?(x[0]=f.getNamespace("",y),x[0]==null&&(x[0]="")):x[0]="",x},ae.isSpace=function(a){return a==9||a==13||a==10||a==32},ae.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||a==902||a>=904&&a<=906||a==908||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||a==986||a==988||a==990||a==992||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||a==1369||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||a==1749||a>=1765&&a<=1766||a>=2309&&a<=2361||a==2365||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||a==2482||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||a==2654||a>=2674&&a<=2676||a>=2693&&a<=2699||a==2701||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||a==2749||a==2784||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||a==2877||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||a==2972||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||a==3294||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||a==3632||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||a==3716||a>=3719&&a<=3720||a==3722||a==3725||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||a==3749||a==3751||a>=3754&&a<=3755||a>=3757&&a<=3758||a==3760||a>=3762&&a<=3763||a==3773||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||a==4352||a>=4354&&a<=4355||a>=4357&&a<=4359||a==4361||a>=4363&&a<=4364||a>=4366&&a<=4370||a==4412||a==4414||a==4416||a==4428||a==4430||a==4432||a>=4436&&a<=4437||a==4441||a>=4447&&a<=4449||a==4451||a==4453||a==4455||a==4457||a>=4461&&a<=4462||a>=4466&&a<=4467||a==4469||a==4510||a==4520||a==4523||a>=4526&&a<=4527||a>=4535&&a<=4536||a==4538||a>=4540&&a<=4546||a==4587||a==4592||a==4601||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||a==8025||a==8027||a==8029||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||a==8126||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||a==8486||a>=8490&&a<=8491||a==8494||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||a==12295||a>=12321&&a<=12329},ae.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||a==46||a==45||a==95||ae.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||a==1471||a>=1473&&a<=1474||a==1476||a>=1611&&a<=1618||a==1648||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||a==2364||a>=2366&&a<=2380||a==2381||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||a==2492||a==2494||a==2495||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||a==2519||a>=2530&&a<=2531||a==2562||a==2620||a==2622||a==2623||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||a==2748||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||a==2876||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||a==3031||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||a==3415||a==3633||a>=3636&&a<=3642||a>=3655&&a<=3662||a==3761||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||a==3893||a==3895||a==3897||a==3902||a==3903||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||a==3991||a>=3993&&a<=4013||a>=4017&&a<=4023||a==4025||a>=8400&&a<=8412||a==8417||a>=12330&&a<=12335||a==12441||a==12442||a==183||a==720||a==721||a==903||a==1600||a==3654||a==3782||a==12293||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ae.coalesceText=function(a){for(var f=a.firstChild;f!=null;f=f.nextSibling)if(f.nodeType==S.TEXT_NODE||f.nodeType==S.CDATA_SECTION_NODE){var y=f.nodeValue,E=f;for(f=f.nextSibling;f!=null&&(f.nodeType==S.TEXT_NODE||f.nodeType==S.CDATA_SECTION_NODE);){y+=f.nodeValue;var x=f;f=f.nextSibling,x.parentNode.removeChild(x)}if(E.nodeType==S.CDATA_SECTION_NODE){var N=E.parentNode;if(E.nextSibling==null)N.removeChild(E),N.appendChild(N.ownerDocument.createTextNode(y));else{var G=E.nextSibling;N.removeChild(E),N.insertBefore(N.ownerDocument.createTextNode(y),G)}}else E.nodeValue=y;if(f==null)break}else f.nodeType==S.ELEMENT_NODE&&ae.coalesceText(f)},ae.instance_of=function(a,f){for(;a!=null;){if(a.constructor===f)return!0;if(a===Object)return!1;a=a.constructor.superclass}return!1},ae.getElementById=function(a,f){if(a.nodeType==S.ELEMENT_NODE&&(a.getAttribute("id")==f||a.getAttributeNS(null,"id")==f))return a;for(var y=a.firstChild;y!=null;y=y.nextSibling){var E=ae.getElementById(y,f);if(E!=null)return E}return null};var Ut=function(){function a(y,E){var x=E?": "+E.toString():"";switch(y){case f.INVALID_EXPRESSION_ERR:return"Invalid expression"+x;case f.TYPE_ERR:return"Type error"+x}return null}function f(y,E,x){var N=Error.call(this,a(y,E)||x);return N.code=y,N.exception=E,N}return f.prototype=Object.create(Error.prototype),f.prototype.constructor=f,f.superclass=Error,f.prototype.toString=function(){return this.message},f.fromMessage=function(y,E){return new f(null,E,y)},f.INVALID_EXPRESSION_ERR=51,f.TYPE_ERR=52,f}();Dt.prototype={},Dt.prototype.constructor=Dt,Dt.superclass=Object.prototype;function Dt(a,f,y){this.xpath=y.parse(a),this.context=new Ft,this.context.namespaceResolver=new gn(f)}Dt.getOwnerDocument=function(a){return a.nodeType===S.DOCUMENT_NODE?a:a.ownerDocument},Dt.detectHtmlDom=function(a){if(!a)return!1;var f=Dt.getOwnerDocument(a);try{return f.implementation.hasFeature("HTML","2.0")}catch{return!0}},Dt.prototype.evaluate=function(a,f,y){this.context.expressionContextNode=a,this.context.caseInsensitive=Dt.detectHtmlDom(a);var E=this.xpath.evaluate(this.context);return new D(E,f)},gn.prototype={},gn.prototype.constructor=gn,gn.superclass=Object.prototype;function gn(a){this.xpathNSResolver=a}gn.prototype.getNamespace=function(a,f){return this.xpathNSResolver==null?null:this.xpathNSResolver.lookupNamespaceURI(a)},z.prototype={},z.prototype.constructor=z,z.superclass=Object.prototype;function z(a){this.node=a,this.namespaceResolver=new Zt}z.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},D.prototype={},D.prototype.constructor=D,D.superclass=Object.prototype;function D(a,f){switch(f==D.ANY_TYPE&&(a.constructor===he?f=D.STRING_TYPE:a.constructor===ge?f=D.NUMBER_TYPE:a.constructor===pe?f=D.BOOLEAN_TYPE:a.constructor===se&&(f=D.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=f,f){case D.NUMBER_TYPE:this.numberValue=a.numberValue();return;case D.STRING_TYPE:this.stringValue=a.stringValue();return;case D.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case D.ANY_UNORDERED_NODE_TYPE:case D.FIRST_ORDERED_NODE_TYPE:if(a.constructor===se){this.singleNodeValue=a.first();return}break;case D.UNORDERED_NODE_ITERATOR_TYPE:case D.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===se){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case D.UNORDERED_NODE_SNAPSHOT_TYPE:case D.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===se){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}break}throw new Ut(Ut.TYPE_ERR)}D.prototype.iterateNext=function(){if(this.resultType!=D.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=D.ORDERED_NODE_ITERATOR_TYPE)throw new Ut(Ut.TYPE_ERR);return this.nodes[this.iteratorIndex++]},D.prototype.snapshotItem=function(a){if(this.resultType!=D.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=D.ORDERED_NODE_SNAPSHOT_TYPE)throw new Ut(Ut.TYPE_ERR);return this.nodes[a]},D.ANY_TYPE=0,D.NUMBER_TYPE=1,D.STRING_TYPE=2,D.BOOLEAN_TYPE=3,D.UNORDERED_NODE_ITERATOR_TYPE=4,D.ORDERED_NODE_ITERATOR_TYPE=5,D.UNORDERED_NODE_SNAPSHOT_TYPE=6,D.ORDERED_NODE_SNAPSHOT_TYPE=7,D.ANY_UNORDERED_NODE_TYPE=8,D.FIRST_ORDERED_NODE_TYPE=9;function q(a,f){a.createExpression=function(y,E){try{return new Dt(y,E,f)}catch(x){throw new Ut(Ut.INVALID_EXPRESSION_ERR,x)}},a.createNSResolver=function(y){return new z(y)},a.evaluate=function(y,E,x,N,G){if(N<0||N>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(y,x,f).evaluate(E,N,G)}}try{var ee=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(ee=!1)}catch{}ee&&q(document,new b)}catch{}q(n,new b),function(){var a=new b,f=new Zt,y=new yt,E=new hn;function x(Y){return{getNamespace:function(Ie,vt){var or=Y(Ie,vt);return or||f.getNamespace(Ie,vt)}}}function N(Y){return x(Y.getNamespace.bind(Y))}function G(Y){return x(function(Ie){return Y[Ie]})}function _e(Y){return Y&&typeof Y.getNamespace=="function"?N(Y):typeof Y=="function"?x(Y):typeof Y=="object"?G(Y):f}function Ce(Y){if(Y===null||typeof Y>"u"||Y instanceof he||Y instanceof pe||Y instanceof ge||Y instanceof se)return Y;switch(typeof Y){case"string":return new he(Y);case"boolean":return new pe(Y);case"number":return new ge(Y)}var Ie=new se;return Ie.addArray([].concat(Y)),Ie}function ie(Y){return function(Ie){var vt=Array.prototype.slice.call(arguments,1).map(function(iw){return iw.evaluate(Ie)}),or=Y.apply(this,[].concat(Ie,vt));return Ce(or)}}function Ae(Y){return{getFunction:function(Ie,vt){var or=Y(Ie,vt);return or?ie(or):y.getFunction(Ie,vt)}}}function wt(Y){return Ae(Y.getFunction.bind(Y))}function je(Y){return Ae(function(Ie){return Y[Ie]})}function rr(Y){return Y&&typeof Y.getFunction=="function"?wt(Y):typeof Y=="function"?Ae(Y):typeof Y=="object"?je(Y):y}function ir(Y){return{getVariable:function(Ie,vt){var or=Y(Ie,vt);return Ce(or)}}}function Qy(Y){if(Y){if(typeof Y.getVariable=="function")return ir(Y.getVariable.bind(Y));if(typeof Y=="function")return ir(Y);if(typeof Y=="object")return ir(function(Ie){return Y[Ie]})}return E}function Uf(Y,Ie,vt){Y in vt&&(Ie[Y]=vt[Y])}function ew(Y){var Ie=new Ft;return Y?(Ie.namespaceResolver=_e(Y.namespaces),Ie.functionResolver=rr(Y.functions),Ie.variableResolver=Qy(Y.variables),Ie.expressionContextNode=Y.node,Uf("allowAnyNamespaceForNoPrefix",Ie,Y),Uf("isHtml",Ie,Y)):Ie.namespaceResolver=f,Ie}function tw(Y,Ie){var vt=ew(Ie);return Y.evaluate(vt)}var nw={evaluate:function(Y){return tw(this.expression,Y)},evaluateNumber:function(Y){return this.evaluate(Y).numberValue()},evaluateString:function(Y){return this.evaluate(Y).stringValue()},evaluateBoolean:function(Y){return this.evaluate(Y).booleanValue()},evaluateNodeSet:function(Y){return this.evaluate(Y).nodeset()},select:function(Y){return this.evaluateNodeSet(Y).toArray()},select1:function(Y){return this.select(Y)[0]}};function rw(Y){var Ie=a.parse(Y);return Object.create(nw,{expression:{value:Ie}})}n.parse=rw}(),k(n,{XPath:T,XPathParser:b,XPathResult:D,Step:Q,PathExpr:ye,NodeTest:oe,LocationPath:Yt,OrOperation:ue,AndOperation:Ne,BarOperation:Z,EqualsOperation:B,NotEqualOperation:L,LessThanOperation:P,GreaterThanOperation:I,LessThanOrEqualOperation:C,GreaterThanOrEqualOperation:j,PlusOperation:V,MinusOperation:de,MultiplyOperation:ne,DivOperation:ve,ModOperation:Se,UnaryMinusOperation:W,FunctionCall:Tt,VariableReference:Ze,XPathContext:Ft,XNodeSet:se,XBoolean:pe,XString:he,XNumber:ge,NamespaceResolver:Zt,FunctionResolver:yt,VariableResolver:hn,Utilities:ae}),n.select=function(a,f,y){return n.selectWithResolver(a,f,null,y)},n.useNamespaces=function(a){var f={mappings:a||{},lookupNamespaceURI:function(y){return this.mappings[y]}};return function(y,E,x){return n.selectWithResolver(y,E,f,x)}},n.selectWithResolver=function(a,f,y,E){var x=new Dt(a,y,new b),N=D.ANY_TYPE,G=x.evaluate(f,N,null);return G.resultType==D.STRING_TYPE?G=G.stringValue:G.resultType==D.NUMBER_TYPE?G=G.numberValue:G.resultType==D.BOOLEAN_TYPE?G=G.booleanValue:(G=G.nodes,E&&(G=G[0])),G},n.select1=function(a,f){return n.select(a,f,!0)};var we=function(a){return a&&typeof a.nodeType=="number"&&Number.isInteger(a.nodeType)&&a.nodeType>=1&&a.nodeType<=11&&typeof a.nodeName=="string"},Qe=function(a){return Array.isArray(a)&&a.every(we)},Re=function(a){return function(f){return we(f)&&f.nodeType===a}};k(n,{isNodeLike:we,isArrayOfNodes:Qe,isElement:Re(S.ELEMENT_NODE),isAttribute:Re(S.ATTRIBUTE_NODE),isTextNode:Re(S.TEXT_NODE),isCDATASection:Re(S.CDATA_SECTION_NODE),isProcessingInstruction:Re(S.PROCESSING_INSTRUCTION_NODE),isComment:Re(S.COMMENT_NODE),isDocumentNode:Re(S.DOCUMENT_NODE),isDocumentTypeNode:Re(S.DOCUMENT_TYPE_NODE),isDocumentFragment:Re(S.DOCUMENT_FRAGMENT_NODE)})})(e)})($l);var be={};Object.defineProperty(be,"__esModule",{value:!0});be.assertIsDocumentFragmentNode=be.assertIsDocumentTypeNode=be.assertIsDocumentNode=be.assertIsCommentNode=be.assertIsProcessingInstructionNode=be.assertIsCDATASectionNode=be.assertIsTextNode=be.assertIsAttributeNode=be.assertIsElementNode=be.isDocumentFragmentNode=be.isDocumentTypeNode=be.isDocumentNode=be.isCommentNode=be.isProcessingInstructionNode=be.isCDATASectionNode=be.isTextNode=be.isAttributeNode=be.isElementNode=be.assertIsArrayOfNodes=be.isArrayOfNodes=be.assertIsNodeLike=be.isNodeLike=be.NodeTypes=void 0;var We;(function(t){t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",t[t.TEXT_NODE=3]="TEXT_NODE",t[t.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",t[t.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",t[t.COMMENT_NODE=8]="COMMENT_NODE",t[t.DOCUMENT_NODE=9]="DOCUMENT_NODE",t[t.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",t[t.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(We||(be.NodeTypes=We={}));function Al(t){return t&&typeof t=="object"&&Number.isInteger(t.nodeType)&&t.nodeType>=1&&t.nodeType<=11&&typeof t.nodeName=="string"&&typeof t.appendChild=="function"&&typeof t.removeChild=="function"}be.isNodeLike=Al;function I8(t){if(!Al(t))throw new Error(`Value is not a Node-like object. Received: ${t}`)}be.assertIsNodeLike=I8;function vy(t){return Array.isArray(t)&&t.every(Al)}be.isArrayOfNodes=vy;function T8(t){if(!vy(t))throw new Error("Value is not an array of Nodes")}be.assertIsArrayOfNodes=T8;function In(t,e){return Al(e)&&e.nodeType===t}function er(t,e){const n=Object.keys(We).find(r=>We[r]===t);if(!In(t,e))throw new Error(`Value is not of type ${n}`)}const O8=t=>In(We.ELEMENT_NODE,t);be.isElementNode=O8;const D8=t=>In(We.ATTRIBUTE_NODE,t);be.isAttributeNode=D8;const z8=t=>In(We.TEXT_NODE,t);be.isTextNode=z8;const R8=t=>In(We.CDATA_SECTION_NODE,t);be.isCDATASectionNode=R8;const P8=t=>In(We.PROCESSING_INSTRUCTION_NODE,t);be.isProcessingInstructionNode=P8;const B8=t=>In(We.COMMENT_NODE,t);be.isCommentNode=B8;const j8=t=>In(We.DOCUMENT_NODE,t);be.isDocumentNode=j8;const L8=t=>In(We.DOCUMENT_TYPE_NODE,t);be.isDocumentTypeNode=L8;const F8=t=>In(We.DOCUMENT_FRAGMENT_NODE,t);be.isDocumentFragmentNode=F8;const U8=t=>{er(We.ELEMENT_NODE,t)};be.assertIsElementNode=U8;const M8=t=>er(We.ATTRIBUTE_NODE,t);be.assertIsAttributeNode=M8;const q8=t=>er(We.TEXT_NODE,t);be.assertIsTextNode=q8;const V8=t=>er(We.CDATA_SECTION_NODE,t);be.assertIsCDATASectionNode=V8;const H8=t=>er(We.PROCESSING_INSTRUCTION_NODE,t);be.assertIsProcessingInstructionNode=H8;const K8=t=>er(We.COMMENT_NODE,t);be.assertIsCommentNode=K8;const G8=t=>er(We.DOCUMENT_NODE,t);be.assertIsDocumentNode=G8;const W8=t=>er(We.DOCUMENT_TYPE_NODE,t);be.assertIsDocumentTypeNode=W8;const X8=t=>er(We.DOCUMENT_FRAGMENT_NODE,t);be.assertIsDocumentFragmentNode=X8;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateDigestValue=t.findAncestorNs=t.derToPem=t.pemToDer=t.normalizePem=t.BASE64_REGEX=t.EXTRACT_X509_CERTS=t.PEM_FORMAT_REGEX=t.encodeSpecialCharactersInText=t.encodeSpecialCharactersInAttribute=t.findChilds=t.findChildren=t.findAttr=t.isArrayHasLength=void 0;const e=$l,n=be;function r(U){return Array.isArray(U)&&U.length>0}t.isArrayHasLength=r;function i(U,H,W){return U.localName===H&&(U.namespaceURI===W||W==null)}function o(U,H,W,J){return U.localName===H&&(!U.namespaceURI&&(J==null?void 0:J.namespaceURI)===W||W==null)}function c(U,H,W){for(let J=0;J<U.attributes.length;J++){const ue=U.attributes[J];if(i(ue,H,W)||o(ue,H,W,U))return ue}return null}t.findAttr=c;function l(U,H,W){const J=U.documentElement??U,ue=[];for(let Ne=0;Ne<J.childNodes.length;Ne++){const B=J.childNodes[Ne];n.isElementNode(B)&&B.localName===H&&(B.namespaceURI===W||W==null)&&ue.push(B)}return ue}t.findChildren=l;function u(U,H,W){return l(U,H,W)}t.findChilds=u;const d={"&":"&","<":"<",'"':""","\r":"
","\n":"
"," ":"	"},p={"&":"&","<":"<",">":">","\r":"
"};function h(U){return U.replace(/([&<"\r\n\t])/g,function(H,W){return d[W]})}t.encodeSpecialCharactersInAttribute=h;function g(U){return U.replace(/([&<>\r])/g,function(H,W){return p[W]})}t.encodeSpecialCharactersInText=g,t.PEM_FORMAT_REGEX=new RegExp("^-----BEGIN [A-Z ]{1,48}-----([^-]*)-----END [A-Z ]{1,48}-----$","s"),t.EXTRACT_X509_CERTS=new RegExp("-----BEGIN CERTIFICATE-----[^-]*-----END CERTIFICATE-----","g"),t.BASE64_REGEX=new RegExp("^(?:[A-Za-z0-9\\+\\/]{4}\\n{0,1})*(?:[A-Za-z0-9\\+\\/]{2}==|[A-Za-z0-9\\+\\/]{3}=)?$","s");function A(U){return`${(U.trim().replace(/(\r\n|\r)/g,`
|
|
270
|
+
`}}),v("div",{id:"_legalWrapper",children:[o&&o.map(d=>{if(d.type==="NEXT_BUTTON")return null;const p=$8(d);return p?v("div",{className:d.type==="RICH_TEXT"?"mb-6":"mb-4",children:p},d.id):null}),u&&v("div",{className:"mb-4",children:l?v(Sf,{children:[v(tt,{id:"continueBtn",className:"sm:mt-4 !text-base w-full",children:[v("span",{children:u.config.text||"Continue"}),v(et,{className:"text-xs",name:"arrow-right"})]}),v(tt,{id:"continueBtnDisabled",className:"sm:mt-4 !text-base w-full opacity-50 cursor-not-allowed",disabled:!0,children:[v("span",{children:u.config.text||"Continue"}),v(et,{className:"text-xs",name:"arrow-right"})]})]}):v(tt,{className:"sm:mt-4 !text-base w-full",children:[v("span",{children:u.config.text||"Continue"}),v(et,{className:"text-xs",name:"arrow-right"})]})})]})]})})]})},A8=new s.OpenAPIHono().openapi(s.createRoute({tags:["forms"],method:"get",path:"/:formId/nodes/:nodeId",request:{params:s.z.object({formId:s.z.string(),nodeId:s.z.string()}),query:s.z.object({state:s.z.string()})},responses:{200:{description:"Form node HTML"},404:{description:"Form or node not found"}}}),async t=>{const{formId:e,nodeId:n}=t.req.valid("param"),{state:r}=t.req.valid("query"),{client:i,theme:o,branding:c}=await Ge(t,r,!0),l=await t.env.data.forms.get(i.tenant.id,e);if(!l)throw new R(404,{message:"Form not found"});const u=(l.nodes||[]).find(d=>d.id===n&&d.type==="STEP");if(!u)throw new R(404,{message:"Node not found or not a STEP node"});return t.html(v(nu,{theme:o,branding:c,client:i,state:r,formName:l.name,nodeAlias:u.alias||u.type,components:"components"in u.config?u.config.components:[]}))}).openapi(s.createRoute({tags:["forms"],method:"post",path:"/:formId/nodes/:nodeId",request:{params:s.z.object({formId:s.z.string(),nodeId:s.z.string()}),query:s.z.object({state:s.z.string()}),body:{content:{"application/x-www-form-urlencoded":{schema:s.z.record(s.z.string())}}}},responses:{200:{description:"Form node submitted"},404:{description:"Form or node not found"}}}),async t=>{const{formId:e,nodeId:n}=t.req.valid("param"),{state:r}=t.req.valid("query"),{theme:i,branding:o,client:c}=await Ge(t,r,!0);let l,u,d=[];try{if(l=await t.env.data.forms.get(c.tenant.id,e),!l)throw new R(404,{message:"Form not found"});if(u=(l.nodes||[]).find(S=>S.id===n&&S.type==="STEP"),!u)throw new R(404,{message:"Node not found or not a STEP node"});d="components"in u.config?u.config.components:[];const p=await t.req.parseBody(),h=[],g={};for(const S of d)if(S.type==="LEGAL"){const b=S.id,T=!!S.required,M=p[b];T&&(!M||M==="")?h.push(b):typeof M=="string"&&(g[b]=M)}if(h.length>0)return t.html(v(nu,{theme:i,branding:o,client:c,state:r,formName:l.name,nodeAlias:u.alias||u.type,components:d,error:`Missing required fields: ${h.join(", ")}`}));const A=await t.env.data.loginSessions.get(c.tenant.id,r);if(!A||!A.session_id||!A.authParams)throw new Error("Session expired");const m=await t.env.data.sessions.get(c.tenant.id,A.session_id);if(!m||!m.user_id)throw new Error("Session expired");const $=await t.env.data.users.get(t.var.tenant_id,m.user_id);if(!$)throw new Error("Session expired");const k=await Ar(t,{authParams:A.authParams,client:c,user:$,loginSession:A});return k instanceof Response?k:t.json(k)}catch{return t.html(v(nu,{theme:i,branding:o,client:c,state:r,formName:(l==null?void 0:l.name)||"",nodeAlias:(u==null?void 0:u.alias)||n||"",components:d||[],error:"Your session has expired. Please try again."}))}});function E8(t){const e=new s.OpenAPIHono;e.onError((r,i)=>r instanceof oo?i.redirect(r.location,r.status):r instanceof R?i.text(r.message||"Error",r.status):i.text("Unexpected error",500)),e.use(async(r,i)=>{const o=es(r,t.dataAdapter),c=yl(o,{defaultTtl:3e5,cacheEntities:["tenants","connections","clients"]});return r.env.data=gl(r,c),i()}).use(_l).use(ml),e.get("/css/tailwind.css",async r=>{const i=Cf;return r.text(i,200,{"content-type":"text/css; charset=utf-8"})});const n=e.route("/info",m8).route("/check-account",l8).route("/account",d8).route("/change-email",p8).route("/change-email-confirmation",f8).route("/login/identifier",I6).route("/enter-code",e8).route("/enter-password",o8).route("/invalid-session",g8).route("/pre-signup",h8).route("/pre-signup-sent",y8).route("/reset-password",a8).route("/forgot-password",c8).route("/validate-email",_8).route("/signup",s8).route("/forms",A8);return n.doc("/u/spec",{openapi:"3.0.0",info:{version:"1.0.0",title:"Universal login"}}),n}const qt=s.z.object({"#text":s.z.string()}),S8=s.z.object({"#text":s.z.string(),"@_xmlns:saml":s.z.string().optional()}),k8=s.z.object({"samlp:AuthnRequest":s.z.object({"saml:Issuer":S8,"@_xmlns:samlp":s.z.string(),"@_xmlns:saml":s.z.string().optional(),"@_ForceAuthn":s.z.string().transform(t=>t.toLowerCase()==="true").optional(),"@_ID":s.z.string(),"@_IssueInstant":s.z.string().datetime(),"@_Destination":s.z.string().url(),"@_AssertionConsumerServiceURL":s.z.string().url().optional(),"@_ProtocolBinding":s.z.string().optional(),"@_Version":s.z.string()})});s.z.array(s.z.object({":@":s.z.object({"@_xmlns":s.z.string(),"@_entityID":s.z.string()}),EntityDescriptor:s.z.array(s.z.object({":@":s.z.object({"@_protocolSupportEnumeration":s.z.string()}),IDPSSODescriptor:s.z.array(s.z.union([s.z.object({KeyDescriptor:s.z.array(s.z.object({KeyInfo:s.z.array(s.z.object({X509Data:s.z.array(s.z.object({X509Certificate:s.z.array(qt)}))})),":@":s.z.object({"@_xmlns":s.z.string()})})),":@":s.z.object({"@_use":s.z.string()})}),s.z.object({SingleLogoutService:s.z.array(s.z.object({})),":@":s.z.object({"@_Binding":s.z.string(),"@_Location":s.z.string()})}),s.z.object({NameIDFormat:s.z.array(qt)}),s.z.object({SingleSignOnService:s.z.array(s.z.object({})),":@":s.z.object({"@_Binding":s.z.string(),"@_Location":s.z.string()})}),s.z.object({Attribute:s.z.array(s.z.object({})),":@":s.z.object({"@_Name":s.z.string(),"@_NameFormat":s.z.string(),"@_FriendlyName":s.z.string(),"@_xmlns":s.z.string()})})]))}))}));const N8=s.z.object({"saml:AttributeValue":s.z.array(s.z.object({"#text":s.z.string()})),":@":s.z.object({"@_xmlns:xs":s.z.string().optional(),"@_xmlns:xsi":s.z.string(),"@_xsi:type":s.z.string(),"@_Name":s.z.string().optional(),"@_NameFormat":s.z.string().optional()})}),C8=s.z.object({"ds:Transform":s.z.array(s.z.any()),":@":s.z.object({"@_Algorithm":s.z.string()})}),Wg=s.z.object({"ds:Signature":s.z.array(s.z.union([s.z.object({"ds:SignedInfo":s.z.array(s.z.union([s.z.object({"ds:CanonicalizationMethod":s.z.array(s.z.string()),":@":s.z.object({"@_Algorithm":s.z.string()})}),s.z.object({"ds:SignatureMethod":s.z.array(s.z.string()),":@":s.z.object({"@_Algorithm":s.z.string()})}),s.z.object({"ds:Reference":s.z.array(s.z.union([s.z.object({"ds:Transforms":s.z.array(C8)}),s.z.object({"ds:DigestMethod":s.z.array(s.z.string()),":@":s.z.object({"@_Algorithm":s.z.string()})}),s.z.object({"ds:DigestValue":s.z.array(qt)})]))})]))}),s.z.object({"ds:SignatureValue":s.z.array(qt)}),s.z.object({"ds:KeyInfo":s.z.array(s.z.object({"ds:KeyValue":s.z.array(s.z.object({"ds:RSAKeyValue":s.z.array(s.z.union([s.z.object({"ds:Modulus":s.z.array(qt)}),s.z.object({"ds:Exponent":s.z.array(qt)})]))}))}))})])),":@":s.z.object({"@_xmlns:ds":s.z.string()})});s.z.array(s.z.object({"samlp:Response":s.z.array(s.z.union([s.z.object({"saml:Issuer":s.z.array(qt)}),Wg,s.z.object({"samlp:Status":s.z.array(s.z.object({"samlp:StatusCode":s.z.array(qt),":@":s.z.object({"@_Value":s.z.string()})}))}),s.z.object({"saml:Assertion":s.z.array(s.z.union([s.z.object({"saml:Issuer":s.z.array(qt)}),Wg,s.z.object({"saml:Subject":s.z.array(s.z.union([s.z.object({"saml:NameID":s.z.array(qt),":@":s.z.object({"@_Format":s.z.string()})}),s.z.object({"saml:SubjectConfirmation":s.z.array(s.z.object({"saml:SubjectConfirmationData":s.z.array(s.z.any()),":@":s.z.object({"@_InResponseTo":s.z.string(),"@_NotOnOrAfter":s.z.string(),"@_Recipient":s.z.string()})})),":@":s.z.object({"@_Method":s.z.string()})})]))}),s.z.object({"saml:Conditions":s.z.array(s.z.object({"saml:AudienceRestriction":s.z.array(s.z.object({"saml:Audience":s.z.array(qt)}))})),":@":s.z.object({"@_NotBefore":s.z.string(),"@_NotOnOrAfter":s.z.string()})}),s.z.object({"saml:AuthnStatement":s.z.array(s.z.object({"saml:AuthnContext":s.z.array(s.z.object({"saml:AuthnContextClassRef":s.z.array(qt)}))})),":@":s.z.object({"@_AuthnInstant":s.z.string(),"@_SessionIndex":s.z.string(),"@_SessionNotOnOrAfter":s.z.string()})}),s.z.object({"saml:AttributeStatement":s.z.array(s.z.object({"saml:Attribute":s.z.array(N8),":@":s.z.object({"@_FriendlyName":s.z.string().optional(),"@_Name":s.z.string(),"@_NameFormat":s.z.string()})}))})])),":@":s.z.object({"@_xmlns":s.z.string(),"@_ID":s.z.string(),"@_IssueInstant":s.z.string(),"@_Version":s.z.string()})})])),":@":s.z.object({"@_xmlns:samlp":s.z.string(),"@_xmlns:saml":s.z.string(),"@_Destination":s.z.string(),"@_ID":s.z.string(),"@_InResponseTo":s.z.string(),"@_IssueInstant":s.z.string(),"@_Version":s.z.string()})}));var I8={},Qr={},Es={},$l={};(function(t){var e=t;(function(n){function r(a){var f=Array.prototype.slice,y=a.length,E=function(N,G){return function(){return G.apply(this,N.concat(f.call(arguments)))}},x=function(){var N=f.call(arguments);return N.length<y?E(N,x):a.apply(this,f.apply(arguments,[0,y]))};return x}var i=function(a,f){for(var y=0;y<f.length;y+=1)a(f[y],y,f)},o=function(a,f,y){var E=f;return i(function(x,N){E=a(E,x,N)},y),E},c=function(a,f){var y=new Array(f.length);return i(function(E,x){y[x]=a(E)},f),y},l=function(a,f){var y=[];return i(function(E,x){a(E,x)&&y.push(E)},f),y},u=function(a,f){for(var y=0;y<a.length;y+=1)if(a[y]===f)return!0;return!1};function d(a){return function(){return a}}function p(a){return a.toString()}var h=function(a,f){return f.join(a)},g=function(a,f,y){return a+y+f},A=Array.prototype.concat,m=32767;function $(a){for(var f=[],y=0;y<a.length;y+=m){var E=a.slice(y,y+m);f=A.apply(f,E)}return f}function k(a,f){for(var y=Object(a),E=1;E<arguments.length;E++){var x=arguments[E];if(x!=null)for(var N in x)Object.prototype.hasOwnProperty.call(x,N)&&(y[N]=x[N])}return y}var S={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11};b.prototype=new Object,b.prototype.constructor=b,b.superclass=Object.prototype;function b(){this.init()}b.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new ue(a[0],a[2])},this.reduceActions[5]=function(a){return new Ne(a[0],a[2])},this.reduceActions[7]=function(a){return new B(a[0],a[2])},this.reduceActions[8]=function(a){return new L(a[0],a[2])},this.reduceActions[10]=function(a){return new P(a[0],a[2])},this.reduceActions[11]=function(a){return new I(a[0],a[2])},this.reduceActions[12]=function(a){return new C(a[0],a[2])},this.reduceActions[13]=function(a){return new j(a[0],a[2])},this.reduceActions[15]=function(a){return new V(a[0],a[2])},this.reduceActions[16]=function(a){return new de(a[0],a[2])},this.reduceActions[18]=function(a){return new ne(a[0],a[2])},this.reduceActions[19]=function(a){return new ve(a[0],a[2])},this.reduceActions[20]=function(a){return new Se(a[0],a[2])},this.reduceActions[22]=function(a){return new W(a[1])},this.reduceActions[24]=function(a){return new Z(a[0],a[2])},this.reduceActions[25]=function(a){return new ye(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new Q(Q.DESCENDANTORSELF,oe.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new ye(a[0],[],void 0)},this.reduceActions[30]=function(a){return ae.instance_of(a[0],ye)?(a[0].filterPredicates==null&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new ye(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new he(a[0])},this.reduceActions[34]=function(a){return new ge(a[0])},this.reduceActions[36]=function(a){return new Tt(a[0],[])},this.reduceActions[37]=function(a){return new Tt(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new Yt(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new Yt(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new Q(a[0],a[1],[])},this.reduceActions[50]=function(a){return new Q(Q.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new Q(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new Q(Q.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){return a[0]=="ancestor"?Q.ANCESTOR:a[0]=="ancestor-or-self"?Q.ANCESTORORSELF:a[0]=="attribute"?Q.ATTRIBUTE:a[0]=="child"?Q.CHILD:a[0]=="descendant"?Q.DESCENDANT:a[0]=="descendant-or-self"?Q.DESCENDANTORSELF:a[0]=="following"?Q.FOLLOWING:a[0]=="following-sibling"?Q.FOLLOWINGSIBLING:a[0]=="namespace"?Q.NAMESPACE:a[0]=="parent"?Q.PARENT:a[0]=="preceding"?Q.PRECEDING:a[0]=="preceding-sibling"?Q.PRECEDINGSIBLING:a[0]=="self"?Q.SELF:-1},this.reduceActions[57]=function(a){return Q.ATTRIBUTE},this.reduceActions[59]=function(a){return a[0]=="comment"?oe.commentTest:a[0]=="text"?oe.textTest:a[0]=="processing-instruction"?oe.anyPiTest:a[0]=="node"?oe.nodeTest:new oe(-1,void 0)},this.reduceActions[60]=function(a){return new oe.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new Q(Q.DESCENDANTORSELF,oe.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new Q(Q.DESCENDANTORSELF,oe.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new Q(Q.SELF,oe.nodeTest,[])},this.reduceActions[66]=function(a){return new Q(Q.PARENT,oe.nodeTest,[])},this.reduceActions[67]=function(a){return new Ze(a[1])},this.reduceActions[68]=function(a){return oe.nameTestAny},this.reduceActions[69]=function(a){return new oe.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new oe.NameTestQName(a[0])}},b.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],b.actionTableNumber=[` 1 0 /.-,+*)(' & %$ # "!`," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY ",` 1 0 /.-,+*)(' & %$ # "!`,`K1 KKKKKKKK . +*)('KKKKKK KK# K" `,` 1 0 /.-,+*)(' & %$ # "!`," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q ",` 1 . +*)(' # " `,"b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX ",` 1 0 /.-,+*)(' & %$m # "!`,"_ f________ ______e __ _ ",` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 . +*)(' # " `,` 1 . +*)(' # " `,"> >>>>>>>>> >>>>>>> >> >> ",` 1 . +*)(' # " `,` 1 . +*)(' # " `,"Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," "," F ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE ",` 1 0 /.-,+*)(' & %$ # "!`,"] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],b.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","456789:;<=>?@ AB CDEFGH IJ"," EFGH IJ "," EFGH IJ "," "," GH IJ ","
GH IJ "," i "," i "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABqCDEFGH IJ "," "," "],b.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],b.DOUBLEDOT=2,b.DOUBLECOLON=3,b.DOUBLESLASH=4,b.NOTEQUAL=5,b.LESSTHANOREQUAL=6,b.GREATERTHANOREQUAL=7,b.AND=8,b.OR=9,b.MOD=10,b.DIV=11,b.MULTIPLYOPERATOR=12,b.FUNCTIONNAME=13,b.AXISNAME=14,b.LITERAL=15,b.NUMBER=16,b.ASTERISKNAMETEST=17,b.QNAME=18,b.NCNAMECOLONASTERISK=19,b.NODETYPE=20,b.PROCESSINGINSTRUCTIONWITHLITERAL=21,b.EQUALS=22,b.LESSTHAN=23,b.GREATERTHAN=24,b.PLUS=25,b.MINUS=26,b.BAR=27,b.SLASH=28,b.LEFTPARENTHESIS=29,b.RIGHTPARENTHESIS=30,b.COMMA=31,b.AT=32,b.LEFTBRACKET=33,b.RIGHTBRACKET=34,b.DOT=35,b.DOLLAR=36,b.prototype.tokenize=function(a){for(var f=[],y=[],E=a+"\0",x=0,N=E.charAt(x++);;){for(;N==" "||N==" "||N=="\r"||N==`
|
|
271
|
+
`;)N=E.charAt(x++);if(N=="\0"||x>=E.length)break;if(N=="("){f.push(b.LEFTPARENTHESIS),y.push(N),N=E.charAt(x++);continue}if(N==")"){f.push(b.RIGHTPARENTHESIS),y.push(N),N=E.charAt(x++);continue}if(N=="["){f.push(b.LEFTBRACKET),y.push(N),N=E.charAt(x++);continue}if(N=="]"){f.push(b.RIGHTBRACKET),y.push(N),N=E.charAt(x++);continue}if(N=="@"){f.push(b.AT),y.push(N),N=E.charAt(x++);continue}if(N==","){f.push(b.COMMA),y.push(N),N=E.charAt(x++);continue}if(N=="|"){f.push(b.BAR),y.push(N),N=E.charAt(x++);continue}if(N=="+"){f.push(b.PLUS),y.push(N),N=E.charAt(x++);continue}if(N=="-"){f.push(b.MINUS),y.push(N),N=E.charAt(x++);continue}if(N=="="){f.push(b.EQUALS),y.push(N),N=E.charAt(x++);continue}if(N=="$"){f.push(b.DOLLAR),y.push(N),N=E.charAt(x++);continue}if(N=="."){if(N=E.charAt(x++),N=="."){f.push(b.DOUBLEDOT),y.push(".."),N=E.charAt(x++);continue}if(N>="0"&&N<="9"){var G="."+N;for(N=E.charAt(x++);N>="0"&&N<="9";)G+=N,N=E.charAt(x++);f.push(b.NUMBER),y.push(G);continue}f.push(b.DOT),y.push(".");continue}if(N=="'"||N=='"'){for(var _e=N,Ce="";x<E.length&&(N=E.charAt(x))!==_e;)Ce+=N,x+=1;if(N!==_e)throw Ut.fromMessage("Unterminated string literal: "+_e+Ce);x+=1,f.push(b.LITERAL),y.push(Ce),N=E.charAt(x++);continue}if(N>="0"&&N<="9"){var G=N;for(N=E.charAt(x++);N>="0"&&N<="9";)G+=N,N=E.charAt(x++);if(N=="."&&E.charAt(x)>="0"&&E.charAt(x)<="9")for(G+=N,G+=E.charAt(x++),N=E.charAt(x++);N>="0"&&N<="9";)G+=N,N=E.charAt(x++);f.push(b.NUMBER),y.push(G);continue}if(N=="*"){if(f.length>0){var ie=f[f.length-1];if(ie!=b.AT&&ie!=b.DOUBLECOLON&&ie!=b.LEFTPARENTHESIS&&ie!=b.LEFTBRACKET&&ie!=b.AND&&ie!=b.OR&&ie!=b.MOD&&ie!=b.DIV&&ie!=b.MULTIPLYOPERATOR&&ie!=b.SLASH&&ie!=b.DOUBLESLASH&&ie!=b.BAR&&ie!=b.PLUS&&ie!=b.MINUS&&ie!=b.EQUALS&&ie!=b.NOTEQUAL&&ie!=b.LESSTHAN&&ie!=b.LESSTHANOREQUAL&&ie!=b.GREATERTHAN&&ie!=b.GREATERTHANOREQUAL){f.push(b.MULTIPLYOPERATOR),y.push(N),N=E.charAt(x++);continue}}f.push(b.ASTERISKNAMETEST),y.push(N),N=E.charAt(x++);continue}if(N==":"&&E.charAt(x)==":"){f.push(b.DOUBLECOLON),y.push("::"),x++,N=E.charAt(x++);continue}if(N=="/"){if(N=E.charAt(x++),N=="/"){f.push(b.DOUBLESLASH),y.push("//"),N=E.charAt(x++);continue}f.push(b.SLASH),y.push("/");continue}if(N=="!"&&E.charAt(x)=="="){f.push(b.NOTEQUAL),y.push("!="),x++,N=E.charAt(x++);continue}if(N=="<"){if(E.charAt(x)=="="){f.push(b.LESSTHANOREQUAL),y.push("<="),x++,N=E.charAt(x++);continue}f.push(b.LESSTHAN),y.push("<"),N=E.charAt(x++);continue}if(N==">"){if(E.charAt(x)=="="){f.push(b.GREATERTHANOREQUAL),y.push(">="),x++,N=E.charAt(x++);continue}f.push(b.GREATERTHAN),y.push(">"),N=E.charAt(x++);continue}if(N=="_"||ae.isLetter(N.charCodeAt(0))){var Ae=N;for(N=E.charAt(x++);ae.isNCNameChar(N.charCodeAt(0));)Ae+=N,N=E.charAt(x++);if(f.length>0){var ie=f[f.length-1];if(ie!=b.AT&&ie!=b.DOUBLECOLON&&ie!=b.LEFTPARENTHESIS&&ie!=b.LEFTBRACKET&&ie!=b.AND&&ie!=b.OR&&ie!=b.MOD&&ie!=b.DIV&&ie!=b.MULTIPLYOPERATOR&&ie!=b.SLASH&&ie!=b.DOUBLESLASH&&ie!=b.BAR&&ie!=b.PLUS&&ie!=b.MINUS&&ie!=b.EQUALS&&ie!=b.NOTEQUAL&&ie!=b.LESSTHAN&&ie!=b.LESSTHANOREQUAL&&ie!=b.GREATERTHAN&&ie!=b.GREATERTHANOREQUAL){if(Ae=="and"){f.push(b.AND),y.push(Ae);continue}if(Ae=="or"){f.push(b.OR),y.push(Ae);continue}if(Ae=="mod"){f.push(b.MOD),y.push(Ae);continue}if(Ae=="div"){f.push(b.DIV),y.push(Ae);continue}}}if(N==":"){if(E.charAt(x)=="*"){f.push(b.NCNAMECOLONASTERISK),y.push(Ae+":*"),x++,N=E.charAt(x++);continue}if(E.charAt(x)=="_"||ae.isLetter(E.charCodeAt(x))){for(Ae+=":",N=E.charAt(x++);ae.isNCNameChar(N.charCodeAt(0));)Ae+=N,N=E.charAt(x++);if(N=="("){f.push(b.FUNCTIONNAME),y.push(Ae);continue}f.push(b.QNAME),y.push(Ae);continue}if(E.charAt(x)==":"){f.push(b.AXISNAME),y.push(Ae);continue}}if(N=="("){if(Ae=="comment"||Ae=="text"||Ae=="node"){f.push(b.NODETYPE),y.push(Ae);continue}if(Ae=="processing-instruction"){E.charAt(x)==")"?f.push(b.NODETYPE):f.push(b.PROCESSINGINSTRUCTIONWITHLITERAL),y.push(Ae);continue}f.push(b.FUNCTIONNAME),y.push(Ae);continue}f.push(b.QNAME),y.push(Ae);continue}throw new Error("Unexpected character "+N)}return f.push(1),y.push("[EOF]"),[f,y]},b.SHIFT="s",b.REDUCE="r",b.ACCEPT="a",b.prototype.parse=function(Ce){var f,y,E=this.tokenize(Ce);if(E!=null){f=E[0],y=E[1];var x=0,N=[],G=[],_e=[],Ce,ie,Ae;for(N.push(0),G.push(1),_e.push("_S"),ie=f[x],Ae=y[x++];;)switch(Ce=N[N.length-1],b.actionTable[Ce].charAt(ie-1)){case b.SHIFT:G.push(-ie),_e.push(Ae),N.push(b.actionTableNumber[Ce].charCodeAt(ie-1)-32),ie=f[x],Ae=y[x++];break;case b.REDUCE:for(var wt=b.productions[b.actionTableNumber[Ce].charCodeAt(ie-1)-32][1],je=[],rr=0;rr<wt;rr++)G.pop(),je.unshift(_e.pop()),N.pop();var ir=N[N.length-1];G.push(b.productions[b.actionTableNumber[Ce].charCodeAt(ie-1)-32][0]),this.reduceActions[b.actionTableNumber[Ce].charCodeAt(ie-1)-32]==null?_e.push(je[0]):_e.push(this.reduceActions[b.actionTableNumber[Ce].charCodeAt(ie-1)-32](je)),N.push(b.gotoTable[ir].charCodeAt(b.productions[b.actionTableNumber[Ce].charCodeAt(ie-1)-32][0]-2)-33);break;case b.ACCEPT:return new T(_e.pop());default:throw new Error("XPath parse error")}}},T.prototype=new Object,T.prototype.constructor=T,T.superclass=Object.prototype;function T(a){this.expression=a}T.prototype.toString=function(){return this.expression.toString()};function M(a,f,y){f in a||(a[f]=y)}T.prototype.evaluate=function(a){return a.contextNode=a.expressionContextNode,a.contextSize=1,a.contextPosition=1,a.isHtml&&(M(a,"caseInsensitive",!0),M(a,"allowAnyNamespaceForNoPrefix",!0)),M(a,"caseInsensitive",!1),this.expression.evaluate(a)},T.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",T.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",U.prototype=new Object,U.prototype.constructor=U,U.superclass=Object.prototype;function U(){}U.prototype.init=function(){},U.prototype.toString=function(){return"<Expression>"},U.prototype.evaluate=function(a){throw new Error("Could not evaluate expression.")},H.prototype=new U,H.prototype.constructor=H,H.superclass=U.prototype;function H(a){arguments.length>0&&this.init(a)}H.prototype.init=function(a){this.rhs=a},W.prototype=new H,W.prototype.constructor=W,W.superclass=H.prototype;function W(a){arguments.length>0&&this.init(a)}W.prototype.init=function(a){W.superclass.init.call(this,a)},W.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},W.prototype.toString=function(){return"-"+this.rhs.toString()},J.prototype=new U,J.prototype.constructor=J,J.superclass=U.prototype;function J(a,f){arguments.length>0&&this.init(a,f)}J.prototype.init=function(a,f){this.lhs=a,this.rhs=f},ue.prototype=new J,ue.prototype.constructor=ue,ue.superclass=J.prototype;function ue(a,f){arguments.length>0&&this.init(a,f)}ue.prototype.init=function(a,f){ue.superclass.init.call(this,a,f)},ue.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},ue.prototype.evaluate=function(a){var f=this.lhs.evaluate(a).bool();return f.booleanValue()?f:this.rhs.evaluate(a).bool()},Ne.prototype=new J,Ne.prototype.constructor=Ne,Ne.superclass=J.prototype;function Ne(a,f){arguments.length>0&&this.init(a,f)}Ne.prototype.init=function(a,f){Ne.superclass.init.call(this,a,f)},Ne.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},Ne.prototype.evaluate=function(a){var f=this.lhs.evaluate(a).bool();return f.booleanValue()?this.rhs.evaluate(a).bool():f},B.prototype=new J,B.prototype.constructor=B,B.superclass=J.prototype;function B(a,f){arguments.length>0&&this.init(a,f)}B.prototype.init=function(a,f){B.superclass.init.call(this,a,f)},B.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},B.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},L.prototype=new J,L.prototype.constructor=L,L.superclass=J.prototype;function L(a,f){arguments.length>0&&this.init(a,f)}L.prototype.init=function(a,f){L.superclass.init.call(this,a,f)},L.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},L.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},P.prototype=new J,P.prototype.constructor=P,P.superclass=J.prototype;function P(a,f){arguments.length>0&&this.init(a,f)}P.prototype.init=function(a,f){P.superclass.init.call(this,a,f)},P.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},P.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},I.prototype=new J,I.prototype.constructor=I,I.superclass=J.prototype;function I(a,f){arguments.length>0&&this.init(a,f)}I.prototype.init=function(a,f){I.superclass.init.call(this,a,f)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},I.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},C.prototype=new J,C.prototype.constructor=C,C.superclass=J.prototype;function C(a,f){arguments.length>0&&this.init(a,f)}C.prototype.init=function(a,f){C.superclass.init.call(this,a,f)},C.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},C.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},j.prototype=new J,j.prototype.constructor=j,j.superclass=J.prototype;function j(a,f){arguments.length>0&&this.init(a,f)}j.prototype.init=function(a,f){j.superclass.init.call(this,a,f)},j.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},j.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},V.prototype=new J,V.prototype.constructor=V,V.superclass=J.prototype;function V(a,f){arguments.length>0&&this.init(a,f)}V.prototype.init=function(a,f){V.superclass.init.call(this,a,f)},V.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},V.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},de.prototype=new J,de.prototype.constructor=de,de.superclass=J.prototype;function de(a,f){arguments.length>0&&this.init(a,f)}de.prototype.init=function(a,f){de.superclass.init.call(this,a,f)},de.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},de.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},ne.prototype=new J,ne.prototype.constructor=ne,ne.superclass=J.prototype;function ne(a,f){arguments.length>0&&this.init(a,f)}ne.prototype.init=function(a,f){ne.superclass.init.call(this,a,f)},ne.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},ne.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},ve.prototype=new J,ve.prototype.constructor=ve,ve.superclass=J.prototype;function ve(a,f){arguments.length>0&&this.init(a,f)}ve.prototype.init=function(a,f){ve.superclass.init.call(this,a,f)},ve.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},ve.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},Se.prototype=new J,Se.prototype.constructor=Se,Se.superclass=J.prototype;function Se(a,f){arguments.length>0&&this.init(a,f)}Se.prototype.init=function(a,f){Se.superclass.init.call(this,a,f)},Se.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},Se.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},Z.prototype=new J,Z.prototype.constructor=Z,Z.superclass=J.prototype;function Z(a,f){arguments.length>0&&this.init(a,f)}Z.prototype.init=function(a,f){Z.superclass.init.call(this,a,f)},Z.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},Z.prototype.toString=function(){return c(p,[this.lhs,this.rhs]).join(" | ")},ye.prototype=new U,ye.prototype.constructor=ye,ye.superclass=U.prototype;function ye(a,f,y){arguments.length>0&&this.init(a,f,y)}ye.prototype.init=function(a,f,y){ye.superclass.init.call(this),this.filter=a,this.filterPredicates=f,this.locationPath=y};function Tn(a){for(;a&&a.parentNode;)a=a.parentNode;return a}ye.applyPredicates=function(a,f,y){if(a.length===0)return y;var E=f.extend({});return o(function(x,N){return E.contextSize=x.length,l(function(G,_e){return E.contextNode=G,E.contextPosition=_e+1,ye.predicateMatches(N,E)},x)},y,a)},ye.getRoot=function(a,f){var y=f[0];if(y.nodeType===S.DOCUMENT_NODE)return y;if(a.virtualRoot)return a.virtualRoot;var E=y.ownerDocument;if(E)return E;for(var x=y;x.parentNode!=null;)x=x.parentNode;return x},ye.applyStep=function(a,f,y){var E=[];switch(f.contextNode=y,a.axis){case Q.ANCESTOR:if(f.contextNode===f.virtualRoot)break;var x;for(f.contextNode.nodeType==S.ATTRIBUTE_NODE?x=ye.getOwnerElement(f.contextNode):x=f.contextNode.parentNode;x!=null&&(a.nodeTest.matches(x,f)&&E.push(x),x!==f.virtualRoot);)x=x.parentNode;break;case Q.ANCESTORORSELF:for(var x=f.contextNode;x!=null&&(a.nodeTest.matches(x,f)&&E.push(x),x!==f.virtualRoot);x=x.nodeType==S.ATTRIBUTE_NODE?ye.getOwnerElement(x):x.parentNode);break;case Q.ATTRIBUTE:var N=f.contextNode.attributes;if(N!=null)for(var G=0;G<N.length;G++){var x=N.item(G);a.nodeTest.matches(x,f)&&E.push(x)}break;case Q.CHILD:for(var x=f.contextNode.firstChild;x!=null;x=x.nextSibling)a.nodeTest.matches(x,f)&&E.push(x);break;case Q.DESCENDANT:for(var je=[f.contextNode.firstChild];je.length>0;)for(var x=je.pop();x!=null;)a.nodeTest.matches(x,f)&&E.push(x),x.firstChild!=null?(je.push(x.nextSibling),x=x.firstChild):x=x.nextSibling;break;case Q.DESCENDANTORSELF:a.nodeTest.matches(f.contextNode,f)&&E.push(f.contextNode);for(var je=[f.contextNode.firstChild];je.length>0;)for(var x=je.pop();x!=null;)a.nodeTest.matches(x,f)&&E.push(x),x.firstChild!=null?(je.push(x.nextSibling),x=x.firstChild):x=x.nextSibling;break;case Q.FOLLOWING:if(f.contextNode===f.virtualRoot)break;var je=[];f.contextNode.firstChild!=null?je.unshift(f.contextNode.firstChild):je.unshift(f.contextNode.nextSibling);for(var x=f.contextNode.parentNode;x!=null&&x.nodeType!=S.DOCUMENT_NODE&&x!==f.virtualRoot;x=x.parentNode)je.unshift(x.nextSibling);do for(var x=je.pop();x!=null;)a.nodeTest.matches(x,f)&&E.push(x),x.firstChild!=null?(je.push(x.nextSibling),x=x.firstChild):x=x.nextSibling;while(je.length>0);break;case Q.FOLLOWINGSIBLING:if(f.contextNode===f.virtualRoot)break;for(var x=f.contextNode.nextSibling;x!=null;x=x.nextSibling)a.nodeTest.matches(x,f)&&E.push(x);break;case Q.NAMESPACE:var _e={};if(f.contextNode.nodeType==S.ELEMENT_NODE){_e.xml=T.XML_NAMESPACE_URI,_e.xmlns=T.XMLNS_NAMESPACE_URI;for(var x=f.contextNode;x!=null&&x.nodeType==S.ELEMENT_NODE;x=x.parentNode)for(var G=0;G<x.attributes.length;G++){var Ce=x.attributes.item(G),ie=String(Ce.name);if(ie=="xmlns")_e[""]==null&&(_e[""]=Ce.value);else if(ie.length>6&&ie.substring(0,6)=="xmlns:"){var Ae=ie.substring(6,ie.length);_e[Ae]==null&&(_e[Ae]=Ce.value)}}for(var Ae in _e){var wt=new Ot(Ae,_e[Ae],f.contextNode);a.nodeTest.matches(wt,f)&&E.push(wt)}}break;case Q.PARENT:x=null,f.contextNode!==f.virtualRoot&&(f.contextNode.nodeType==S.ATTRIBUTE_NODE?x=ye.getOwnerElement(f.contextNode):x=f.contextNode.parentNode),x!=null&&a.nodeTest.matches(x,f)&&E.push(x);break;case Q.PRECEDING:var je;f.virtualRoot!=null?je=[f.virtualRoot]:je=[Tn(f.contextNode)];e:for(;je.length>0;)for(var x=je.pop();x!=null;){if(x==f.contextNode)break e;a.nodeTest.matches(x,f)&&E.unshift(x),x.firstChild!=null?(je.push(x.nextSibling),x=x.firstChild):x=x.nextSibling}break;case Q.PRECEDINGSIBLING:if(f.contextNode===f.virtualRoot)break;for(var x=f.contextNode.previousSibling;x!=null;x=x.previousSibling)a.nodeTest.matches(x,f)&&E.push(x);break;case Q.SELF:a.nodeTest.matches(f.contextNode,f)&&E.push(f.contextNode);break}return E};function Be(a,f,y){return ye.applyPredicates(a.predicates,f,ye.applyStep(a,f,y))}function He(a,f,y){return $(c(Be.bind(null,y,a),f))}ye.applySteps=function(a,f,y){return o(He.bind(null,f),y,a)},ye.prototype.applyFilter=function(a,f){if(!this.filter)return{nodes:[a.contextNode]};var y=this.filter.evaluate(a);if(!ae.instance_of(y,se)){if(this.filterPredicates!=null&&this.filterPredicates.length>0||this.locationPath!=null)throw new Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:y}}return{nodes:ye.applyPredicates(this.filterPredicates||[],f,y.toUnsortedArray())}},ye.applyLocationPath=function(a,f,y){if(!a)return y;var E=a.absolute?[ye.getRoot(f,y)]:y;return ye.applySteps(a.steps,f,E)},ye.prototype.evaluate=function(a){var f=k(new Ft,a),y=this.applyFilter(a,f);if("nonNodes"in y)return y.nonNodes;var E=new se;return E.addArray(ye.applyLocationPath(this.locationPath,f,y.nodes)),E},ye.predicateMatches=function(a,f){var y=a.evaluate(f);return ae.instance_of(y,ge)?f.contextPosition===y.numberValue():y.booleanValue()},ye.predicateString=function(a){return g("[","]",a.toString())},ye.predicatesString=function(a){return h("",c(ye.predicateString,a))},ye.prototype.toString=function(){if(this.filter!=null){var a=p(this.filter);return ae.instance_of(this.filter,he)?g("'","'",a):this.filterPredicates!=null&&this.filterPredicates.length?g("(",")",a)+ye.predicatesString(this.filterPredicates):this.locationPath!=null?a+(this.locationPath.absolute?"":"/")+p(this.locationPath):a}return p(this.locationPath)},ye.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch{}for(var f=a.nodeType==S.DOCUMENT_NODE?a:a.ownerDocument,y=f.getElementsByTagName("*"),E=0;E<y.length;E++)for(var x=y.item(E),N=x.attributes,G=0;G<N.length;G++){var _e=N.item(G);if(_e===a)return x}return null},Yt.prototype=new Object,Yt.prototype.constructor=Yt,Yt.superclass=Object.prototype;function Yt(a,f){arguments.length>0&&this.init(a,f)}Yt.prototype.init=function(a,f){this.absolute=a,this.steps=f},Yt.prototype.toString=function(){return(this.absolute?"/":"")+c(p,this.steps).join("/")},Q.prototype=new Object,Q.prototype.constructor=Q,Q.superclass=Object.prototype;function Q(a,f,y){arguments.length>0&&this.init(a,f,y)}Q.prototype.init=function(a,f,y){this.axis=a,this.nodeTest=f,this.predicates=y},Q.prototype.toString=function(){return Q.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+ye.predicatesString(this.predicates)},Q.ANCESTOR=0,Q.ANCESTORORSELF=1,Q.ATTRIBUTE=2,Q.CHILD=3,Q.DESCENDANT=4,Q.DESCENDANTORSELF=5,Q.FOLLOWING=6,Q.FOLLOWINGSIBLING=7,Q.NAMESPACE=8,Q.PARENT=9,Q.PRECEDING=10,Q.PRECEDINGSIBLING=11,Q.SELF=12,Q.STEPNAMES=o(function(a,f){return a[f[0]]=f[1],a},{},[[Q.ANCESTOR,"ancestor"],[Q.ANCESTORORSELF,"ancestor-or-self"],[Q.ATTRIBUTE,"attribute"],[Q.CHILD,"child"],[Q.DESCENDANT,"descendant"],[Q.DESCENDANTORSELF,"descendant-or-self"],[Q.FOLLOWING,"following"],[Q.FOLLOWINGSIBLING,"following-sibling"],[Q.NAMESPACE,"namespace"],[Q.PARENT,"parent"],[Q.PRECEDING,"preceding"],[Q.PRECEDINGSIBLING,"preceding-sibling"],[Q.SELF,"self"]]),oe.prototype=new Object,oe.prototype.constructor=oe,oe.superclass=Object.prototype;function oe(a,f){arguments.length>0&&this.init(a,f)}oe.prototype.init=function(a,f){this.type=a,this.value=f},oe.prototype.toString=function(){return"<unknown nodetest type>"},oe.prototype.matches=function(a,f){console.warn("unknown node test type")},oe.NAMETESTANY=0,oe.NAMETESTPREFIXANY=1,oe.NAMETESTQNAME=2,oe.COMMENT=3,oe.TEXT=4,oe.PI=5,oe.NODE=6,oe.isNodeType=function(a){return function(f){return u(a,f.nodeType)}},oe.makeNodeTestType=function(a,f,y){var E=y||function(){};return E.prototype=new oe(a),E.prototype.constructor=E,k(E.prototype,f),E},oe.makeNodeTypeTest=function(a,f,y){return new(oe.makeNodeTestType(a,{matches:oe.isNodeType(f),toString:d(y)}))},oe.hasPrefix=function(a){return a.prefix||(a.nodeName||a.tagName).indexOf(":")!==-1},oe.isElementOrAttribute=oe.isNodeType([1,2]),oe.nameSpaceMatches=function(a,f,y){var E=y.namespaceURI||"";if(!a)return!E||f.allowAnyNamespaceForNoPrefix&&!oe.hasPrefix(y);var x=f.namespaceResolver.getNamespace(a,f.expressionContextNode);if(x==null)throw new Error("Cannot resolve QName "+a);return x===E},oe.localNameMatches=function(a,f,y){var E=y.localName||y.nodeName;return f.caseInsensitive?a.toLowerCase()===E.toLowerCase():a===E},oe.NameTestPrefixAny=oe.makeNodeTestType(oe.NAMETESTPREFIXANY,{matches:function(a,f){return oe.isElementOrAttribute(a)&&oe.nameSpaceMatches(this.prefix,f,a)},toString:function(){return this.prefix+":*"}},function(f){this.prefix=f}),oe.NameTestQName=oe.makeNodeTestType(oe.NAMETESTQNAME,{matches:function(a,f){return oe.isNodeType([S.ELEMENT_NODE,S.ATTRIBUTE_NODE,Ot.XPATH_NAMESPACE_NODE])(a)&&oe.nameSpaceMatches(this.prefix,f,a)&&oe.localNameMatches(this.localName,f,a)},toString:function(){return this.name}},function(f){var y=f.split(":");this.name=f,this.prefix=y.length>1?y[0]:null,this.localName=y[y.length>1?1:0]}),oe.PITest=oe.makeNodeTestType(oe.PI,{matches:function(a,f){return oe.isNodeType([S.PROCESSING_INSTRUCTION_NODE])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return g('processing-instruction("','")',this.name)}},function(a){this.name=a}),oe.nameTestAny=oe.makeNodeTypeTest(oe.NAMETESTANY,[S.ELEMENT_NODE,S.ATTRIBUTE_NODE,Ot.XPATH_NAMESPACE_NODE],"*"),oe.textTest=oe.makeNodeTypeTest(oe.TEXT,[S.TEXT_NODE,S.CDATA_SECTION_NODE],"text()"),oe.commentTest=oe.makeNodeTypeTest(oe.COMMENT,[S.COMMENT_NODE],"comment()"),oe.nodeTest=oe.makeNodeTypeTest(oe.NODE,[S.ELEMENT_NODE,S.ATTRIBUTE_NODE,S.TEXT_NODE,S.CDATA_SECTION_NODE,S.PROCESSING_INSTRUCTION_NODE,S.COMMENT_NODE,S.DOCUMENT_NODE],"node()"),oe.anyPiTest=oe.makeNodeTypeTest(oe.PI,[S.PROCESSING_INSTRUCTION_NODE],"processing-instruction()"),Ze.prototype=new U,Ze.prototype.constructor=Ze,Ze.superclass=U.prototype;function Ze(a){arguments.length>0&&this.init(a)}Ze.prototype.init=function(a){this.variable=a},Ze.prototype.toString=function(){return"$"+this.variable},Ze.prototype.evaluate=function(a){var f=ae.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(f[0]==null)throw new Error("Cannot resolve QName "+fn);var y=a.variableResolver.getVariable(f[1],f[0]);if(!y)throw Ut.fromMessage("Undeclared variable: "+this.toString());return y},Tt.prototype=new U,Tt.prototype.constructor=Tt,Tt.superclass=U.prototype;function Tt(a,f){arguments.length>0&&this.init(a,f)}Tt.prototype.init=function(a,f){this.functionName=a,this.arguments=f},Tt.prototype.toString=function(){for(var a=this.functionName+"(",f=0;f<this.arguments.length;f++)f>0&&(a+=", "),a+=this.arguments[f].toString();return a+")"},Tt.prototype.evaluate=function(a){var f=yt.getFunctionFromContext(this.functionName,a);if(!f)throw new Error("Unknown function "+this.functionName);var y=[a].concat(this.arguments);return f.apply(a.functionResolver.thisArg,y)};var Fe=new Object;Fe.equals=function(a,f){return a.equals(f)},Fe.notequal=function(a,f){return a.notequal(f)},Fe.lessthan=function(a,f){return a.lessthan(f)},Fe.greaterthan=function(a,f){return a.greaterthan(f)},Fe.lessthanorequal=function(a,f){return a.lessthanorequal(f)},Fe.greaterthanorequal=function(a,f){return a.greaterthanorequal(f)},he.prototype=new U,he.prototype.constructor=he,he.superclass=U.prototype;function he(a){arguments.length>0&&this.init(a)}he.prototype.init=function(a){this.str=String(a)},he.prototype.toString=function(){return this.str},he.prototype.evaluate=function(a){return this},he.prototype.string=function(){return this},he.prototype.number=function(){return new ge(this.str)},he.prototype.bool=function(){return new pe(this.str)},he.prototype.nodeset=function(){throw new Error("Cannot convert string to nodeset")},he.prototype.stringValue=function(){return this.str},he.prototype.numberValue=function(){return this.number().numberValue()},he.prototype.booleanValue=function(){return this.bool().booleanValue()},he.prototype.equals=function(a){return ae.instance_of(a,pe)?this.bool().equals(a):ae.instance_of(a,ge)?this.number().equals(a):ae.instance_of(a,se)?a.compareWithString(this,Fe.equals):new pe(this.str==a.str)},he.prototype.notequal=function(a){return ae.instance_of(a,pe)?this.bool().notequal(a):ae.instance_of(a,ge)?this.number().notequal(a):ae.instance_of(a,se)?a.compareWithString(this,Fe.notequal):new pe(this.str!=a.str)},he.prototype.lessthan=function(a){return this.number().lessthan(a)},he.prototype.greaterthan=function(a){return this.number().greaterthan(a)},he.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},he.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},ge.prototype=new U,ge.prototype.constructor=ge,ge.superclass=U.prototype;function ge(a){arguments.length>0&&this.init(a)}ge.prototype.init=function(a){this.num=typeof a=="string"?this.parse(a):Number(a)},ge.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,ge.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):Number.NaN};function ao(a){for(var f=a.split("e-"),y=f[0].replace(".",""),E=Number(f[1]),x=0;x<E-1;x+=1)y="0"+y;return"0."+y}function Ts(a){for(var f=a.split("e"),y=f[0].replace(".",""),E=Number(f[1]),x=E+1-y.length,N=0;N<x;N+=1)y+="0";return y}ge.prototype.toString=function(){var a=this.num.toString();return a.indexOf("e-")!==-1?ao(a):a.indexOf("e")!==-1?Ts(a):a},ge.prototype.evaluate=function(a){return this},ge.prototype.string=function(){return new he(this.toString())},ge.prototype.number=function(){return this},ge.prototype.bool=function(){return new pe(this.num)},ge.prototype.nodeset=function(){throw new Error("Cannot convert number to nodeset")},ge.prototype.stringValue=function(){return this.string().stringValue()},ge.prototype.numberValue=function(){return this.num},ge.prototype.booleanValue=function(){return this.bool().booleanValue()},ge.prototype.negate=function(){return new ge(-this.num)},ge.prototype.equals=function(a){return ae.instance_of(a,pe)?this.bool().equals(a):ae.instance_of(a,he)?this.equals(a.number()):ae.instance_of(a,se)?a.compareWithNumber(this,Fe.equals):new pe(this.num==a.num)},ge.prototype.notequal=function(a){return ae.instance_of(a,pe)?this.bool().notequal(a):ae.instance_of(a,he)?this.notequal(a.number()):ae.instance_of(a,se)?a.compareWithNumber(this,Fe.notequal):new pe(this.num!=a.num)},ge.prototype.lessthan=function(a){return ae.instance_of(a,se)?a.compareWithNumber(this,Fe.greaterthan):ae.instance_of(a,pe)||ae.instance_of(a,he)?this.lessthan(a.number()):new pe(this.num<a.num)},ge.prototype.greaterthan=function(a){return ae.instance_of(a,se)?a.compareWithNumber(this,Fe.lessthan):ae.instance_of(a,pe)||ae.instance_of(a,he)?this.greaterthan(a.number()):new pe(this.num>a.num)},ge.prototype.lessthanorequal=function(a){return ae.instance_of(a,se)?a.compareWithNumber(this,Fe.greaterthanorequal):ae.instance_of(a,pe)||ae.instance_of(a,he)?this.lessthanorequal(a.number()):new pe(this.num<=a.num)},ge.prototype.greaterthanorequal=function(a){return ae.instance_of(a,se)?a.compareWithNumber(this,Fe.lessthanorequal):ae.instance_of(a,pe)||ae.instance_of(a,he)?this.greaterthanorequal(a.number()):new pe(this.num>=a.num)},ge.prototype.plus=function(a){return new ge(this.num+a.num)},ge.prototype.minus=function(a){return new ge(this.num-a.num)},ge.prototype.multiply=function(a){return new ge(this.num*a.num)},ge.prototype.div=function(a){return new ge(this.num/a.num)},ge.prototype.mod=function(a){return new ge(this.num%a.num)},pe.prototype=new U,pe.prototype.constructor=pe,pe.superclass=U.prototype;function pe(a){arguments.length>0&&this.init(a)}pe.prototype.init=function(a){this.b=!!a},pe.prototype.toString=function(){return this.b.toString()},pe.prototype.evaluate=function(a){return this},pe.prototype.string=function(){return new he(this.b)},pe.prototype.number=function(){return new ge(this.b)},pe.prototype.bool=function(){return this},pe.prototype.nodeset=function(){throw new Error("Cannot convert boolean to nodeset")},pe.prototype.stringValue=function(){return this.string().stringValue()},pe.prototype.numberValue=function(){return this.number().numberValue()},pe.prototype.booleanValue=function(){return this.b},pe.prototype.not=function(){return new pe(!this.b)},pe.prototype.equals=function(a){return ae.instance_of(a,he)||ae.instance_of(a,ge)?this.equals(a.bool()):ae.instance_of(a,se)?a.compareWithBoolean(this,Fe.equals):new pe(this.b==a.b)},pe.prototype.notequal=function(a){return ae.instance_of(a,he)||ae.instance_of(a,ge)?this.notequal(a.bool()):ae.instance_of(a,se)?a.compareWithBoolean(this,Fe.notequal):new pe(this.b!=a.b)},pe.prototype.lessthan=function(a){return this.number().lessthan(a)},pe.prototype.greaterthan=function(a){return this.number().greaterthan(a)},pe.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},pe.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},pe.true_=new pe(!0),pe.false_=new pe(!1),st.prototype=new Object,st.prototype.constructor=st,st.superclass=Object.prototype;function st(a){this.init(a)}st.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},st.prototype.balance=function(){var a=this.left==null?0:this.left.depth,f=this.right==null?0:this.right.depth;if(a>f+1){var y=this.left.left==null?0:this.left.left.depth,E=this.left.right==null?0:this.left.right.depth;y<E&&this.left.rotateRR(),this.rotateLL()}else if(a+1<f){var x=this.right.right==null?0:this.right.right.depth,N=this.right.left==null?0:this.right.left.depth;N>x&&this.right.rotateLL(),this.rotateRR()}},st.prototype.rotateLL=function(){var a=this.node,f=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=f,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},st.prototype.rotateRR=function(){var a=this.node,f=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=f,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},st.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},st.prototype.getDepthFromChildren=function(){this.depth=this.node==null?0:1,this.left!=null&&(this.depth=this.left.depth+1),this.right!=null&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)};function Os(a,f){if(a===f)return 0;if(a.compareDocumentPosition){var y=a.compareDocumentPosition(f);return y&1||y&10?1:y&20?-1:0}for(var E=0,x=0,N=a;N!=null;N=N.parentNode||N.ownerElement)E++;for(var G=f;G!=null;G=G.parentNode||G.ownerElement)x++;if(E>x){for(;E>x;)a=a.parentNode||a.ownerElement,E--;if(a===f)return 1}else if(x>E){for(;x>E;)f=f.parentNode||f.ownerElement,x--;if(a===f)return-1}for(var _e=a.parentNode||a.ownerElement,Ce=f.parentNode||f.ownerElement;_e!==Ce;)a=_e,f=Ce,_e=a.parentNode||a.ownerElement,Ce=f.parentNode||f.ownerElement;var ie=ae.isAttribute(a),Ae=ae.isAttribute(f);if(ie&&!Ae)return-1;if(!ie&&Ae)return 1;if(_e)for(var wt=ie?_e.attributes:_e.childNodes,je=wt.length,rr=0;rr<je;rr+=1){var ir=wt[rr];if(ir===a)return-1;if(ir===f)return 1}throw new Error("Unexpected: could not determine node order")}st.prototype.add=function(a){if(a===this.node)return!1;var f=Os(a,this.node),y=!1;return f==-1?this.left==null?(this.left=new st(a),y=!0):(y=this.left.add(a),y&&this.balance()):f==1&&(this.right==null?(this.right=new st(a),y=!0):(y=this.right.add(a),y&&this.balance())),y&&this.getDepthFromChildren(),y},se.prototype=new U,se.prototype.constructor=se,se.superclass=U.prototype;function se(){this.init()}se.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},se.prototype.toString=function(){var a=this.first();return a==null?"":this.stringForNode(a)},se.prototype.evaluate=function(a){return this},se.prototype.string=function(){return new he(this.toString())},se.prototype.stringValue=function(){return this.toString()},se.prototype.number=function(){return new ge(this.string())},se.prototype.numberValue=function(){return Number(this.string())},se.prototype.bool=function(){return new pe(this.booleanValue())},se.prototype.booleanValue=function(){return!!this.size},se.prototype.nodeset=function(){return this},se.prototype.stringForNode=function(a){return a.nodeType==S.DOCUMENT_NODE||a.nodeType==S.ELEMENT_NODE||a.nodeType===S.DOCUMENT_FRAGMENT_NODE?this.stringForContainerNode(a):a.nodeType===S.ATTRIBUTE_NODE?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},se.prototype.stringForContainerNode=function(a){for(var f="",y=a.firstChild;y!=null;y=y.nextSibling){var E=y.nodeType;(E===1||E===3||E===4||E===9||E===11)&&(f+=this.stringForNode(y))}return f},se.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new st(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},se.prototype.first=function(){var a=this.buildTree();if(a==null)return null;for(;a.left!=null;)a=a.left;return a.node},se.prototype.add=function(a){for(var f=0;f<this.nodes.length;f+=1)if(a===this.nodes[f])return;this.tree=null,this.nodes.push(a),this.size+=1},se.prototype.addArray=function(a){var f=this;i(function(y){f.add(y)},a)},se.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},se.prototype.toArrayRec=function(a,f){a!=null&&(this.toArrayRec(a.left,f),f.push(a.node),this.toArrayRec(a.right,f))},se.prototype.toUnsortedArray=function(){return this.nodes.slice()},se.prototype.compareWithString=function(a,f){for(var y=this.toUnsortedArray(),E=0;E<y.length;E++){var x=y[E],N=new he(this.stringForNode(x)),G=f(N,a);if(G.booleanValue())return G}return new pe(!1)},se.prototype.compareWithNumber=function(a,f){for(var y=this.toUnsortedArray(),E=0;E<y.length;E++){var x=y[E],N=new ge(this.stringForNode(x)),G=f(N,a);if(G.booleanValue())return G}return new pe(!1)},se.prototype.compareWithBoolean=function(a,f){return f(this.bool(),a)},se.prototype.compareWithNodeSet=function(a,f){for(var y=this.toUnsortedArray(),E=function(_e,Ce){return f(Ce,_e)},x=0;x<y.length;x++){var N=new he(this.stringForNode(y[x])),G=a.compareWithString(N,E);if(G.booleanValue())return G}return new pe(!1)},se.compareWith=r(function(a,f){return ae.instance_of(f,he)?this.compareWithString(f,a):ae.instance_of(f,ge)?this.compareWithNumber(f,a):ae.instance_of(f,pe)?this.compareWithBoolean(f,a):this.compareWithNodeSet(f,a)}),se.prototype.equals=se.compareWith(Fe.equals),se.prototype.notequal=se.compareWith(Fe.notequal),se.prototype.lessthan=se.compareWith(Fe.lessthan),se.prototype.greaterthan=se.compareWith(Fe.greaterthan),se.prototype.lessthanorequal=se.compareWith(Fe.lessthanorequal),se.prototype.greaterthanorequal=se.compareWith(Fe.greaterthanorequal),se.prototype.union=function(a){var f=new se;return f.addArray(this.toUnsortedArray()),f.addArray(a.toUnsortedArray()),f},Ot.prototype=new Object,Ot.prototype.constructor=Ot,Ot.superclass=Object.prototype;function Ot(a,f,y){this.isXPathNamespace=!0,this.ownerDocument=y.ownerDocument,this.nodeName="#namespace",this.prefix=a,this.localName=a,this.namespaceURI=f,this.nodeValue=f,this.ownerElement=y,this.nodeType=Ot.XPATH_NAMESPACE_NODE}Ot.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},Ft.prototype=new Object,Ft.prototype.constructor=Ft,Ft.superclass=Object.prototype;function Ft(a,f,y){this.variableResolver=a??new hn,this.namespaceResolver=f??new Zt,this.functionResolver=y??new yt}Ft.prototype.extend=function(a){return k(new Ft,this,a)},hn.prototype=new Object,hn.prototype.constructor=hn,hn.superclass=Object.prototype;function hn(){}hn.prototype.getVariable=function(a,f){return null},yt.prototype=new Object,yt.prototype.constructor=yt,yt.superclass=Object.prototype;function yt(a){this.thisArg=a??me,this.functions=new Object,this.addStandardFunctions()}yt.prototype.addStandardFunctions=function(){this.functions["{}last"]=me.last,this.functions["{}position"]=me.position,this.functions["{}count"]=me.count,this.functions["{}id"]=me.id,this.functions["{}local-name"]=me.localName,this.functions["{}namespace-uri"]=me.namespaceURI,this.functions["{}name"]=me.name,this.functions["{}string"]=me.string,this.functions["{}concat"]=me.concat,this.functions["{}starts-with"]=me.startsWith,this.functions["{}contains"]=me.contains,this.functions["{}substring-before"]=me.substringBefore,this.functions["{}substring-after"]=me.substringAfter,this.functions["{}substring"]=me.substring,this.functions["{}string-length"]=me.stringLength,this.functions["{}normalize-space"]=me.normalizeSpace,this.functions["{}translate"]=me.translate,this.functions["{}boolean"]=me.boolean_,this.functions["{}not"]=me.not,this.functions["{}true"]=me.true_,this.functions["{}false"]=me.false_,this.functions["{}lang"]=me.lang,this.functions["{}number"]=me.number,this.functions["{}sum"]=me.sum,this.functions["{}floor"]=me.floor,this.functions["{}ceiling"]=me.ceiling,this.functions["{}round"]=me.round},yt.prototype.addFunction=function(a,f,y){this.functions["{"+a+"}"+f]=y},yt.getFunctionFromContext=function(a,f){var y=ae.resolveQName(a,f.namespaceResolver,f.contextNode,!1);if(y[0]===null)throw new Error("Cannot resolve QName "+name);return f.functionResolver.getFunction(y[1],y[0])},yt.prototype.getFunction=function(a,f){return this.functions["{"+f+"}"+a]},Zt.prototype=new Object,Zt.prototype.constructor=Zt,Zt.superclass=Object.prototype;function Zt(){}Zt.prototype.getNamespace=function(a,f){if(a=="xml")return T.XML_NAMESPACE_URI;if(a=="xmlns")return T.XMLNS_NAMESPACE_URI;for(f.nodeType==S.DOCUMENT_NODE?f=f.documentElement:f.nodeType==S.ATTRIBUTE_NODE?f=ye.getOwnerElement(f):f.nodeType!=S.ELEMENT_NODE&&(f=f.parentNode);f!=null&&f.nodeType==S.ELEMENT_NODE;){for(var y=f.attributes,E=0;E<y.length;E++){var x=y.item(E),N=x.name||x.nodeName;if(N==="xmlns"&&a===""||N==="xmlns:"+a)return String(x.value||x.nodeValue)}f=f.parentNode}return null};var me=new Object;me.last=function(a){if(arguments.length!=1)throw new Error("Function last expects ()");return new ge(a.contextSize)},me.position=function(a){if(arguments.length!=1)throw new Error("Function position expects ()");return new ge(a.contextPosition)},me.count=function(){var a=arguments[0],f;if(arguments.length!=2||!ae.instance_of(f=arguments[1].evaluate(a),se))throw new Error("Function count expects (node-set)");return new ge(f.size)},me.id=function(){var a=arguments[0],f;if(arguments.length!=2)throw new Error("Function id expects (object)");f=arguments[1].evaluate(a),ae.instance_of(f,se)?f=f.toArray().join(" "):f=f.stringValue();for(var y=f.split(/[\x0d\x0a\x09\x20]+/),E=new se,x=a.contextNode.nodeType==S.DOCUMENT_NODE?a.contextNode:a.contextNode.ownerDocument,N=0;N<y.length;N++){var G;x.getElementById?G=x.getElementById(y[N]):G=ae.getElementById(x,y[N]),G!=null&&E.add(G)}return E},me.localName=function(a,f){var y;if(arguments.length==1)y=a.contextNode;else if(arguments.length==2)y=f.evaluate(a).first();else throw new Error("Function local-name expects (node-set?)");return y==null?new he(""):new he(y.localName||y.baseName||y.target||y.nodeName||"")},me.namespaceURI=function(){var a=arguments[0],f;if(arguments.length==1)f=a.contextNode;else if(arguments.length==2)f=arguments[1].evaluate(a).first();else throw new Error("Function namespace-uri expects (node-set?)");return f==null?new he(""):new he(f.namespaceURI)},me.name=function(){var a=arguments[0],f;if(arguments.length==1)f=a.contextNode;else if(arguments.length==2)f=arguments[1].evaluate(a).first();else throw new Error("Function name expects (node-set?)");return f==null?new he(""):f.nodeType==S.ELEMENT_NODE?new he(f.nodeName):f.nodeType==S.ATTRIBUTE_NODE?new he(f.name||f.nodeName):f.nodeType===S.PROCESSING_INSTRUCTION_NODE?new he(f.target||f.nodeName):f.localName==null?new he(""):new he(f.localName)},me.string=function(){var a=arguments[0];if(arguments.length==1)return new he(se.prototype.stringForNode(a.contextNode));if(arguments.length==2)return arguments[1].evaluate(a).string();throw new Error("Function string expects (object?)")},me.concat=function(a){if(arguments.length<3)throw new Error("Function concat expects (string, string[, string]*)");for(var f="",y=1;y<arguments.length;y++)f+=arguments[y].evaluate(a).stringValue();return new he(f)},me.startsWith=function(){var a=arguments[0];if(arguments.length!=3)throw new Error("Function startsWith expects (string, string)");var f=arguments[1].evaluate(a).stringValue(),y=arguments[2].evaluate(a).stringValue();return new pe(f.substring(0,y.length)==y)},me.contains=function(){var a=arguments[0];if(arguments.length!=3)throw new Error("Function contains expects (string, string)");var f=arguments[1].evaluate(a).stringValue(),y=arguments[2].evaluate(a).stringValue();return new pe(f.indexOf(y)!==-1)},me.substringBefore=function(){var a=arguments[0];if(arguments.length!=3)throw new Error("Function substring-before expects (string, string)");var f=arguments[1].evaluate(a).stringValue(),y=arguments[2].evaluate(a).stringValue();return new he(f.substring(0,f.indexOf(y)))},me.substringAfter=function(){var a=arguments[0];if(arguments.length!=3)throw new Error("Function substring-after expects (string, string)");var f=arguments[1].evaluate(a).stringValue(),y=arguments[2].evaluate(a).stringValue();if(y.length==0)return new he(f);var E=f.indexOf(y);return E==-1?new he(""):new he(f.substring(E+y.length))},me.substring=function(){var a=arguments[0];if(!(arguments.length==3||arguments.length==4))throw new Error("Function substring expects (string, number, number?)");var f=arguments[1].evaluate(a).stringValue(),y=Math.round(arguments[2].evaluate(a).numberValue())-1,E=arguments.length==4?y+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new he(f.substring(y,E))},me.stringLength=function(){var a=arguments[0],f;if(arguments.length==1)f=se.prototype.stringForNode(a.contextNode);else if(arguments.length==2)f=arguments[1].evaluate(a).stringValue();else throw new Error("Function string-length expects (string?)");return new ge(f.length)},me.normalizeSpace=function(){var a=arguments[0],f;if(arguments.length==1)f=se.prototype.stringForNode(a.contextNode);else if(arguments.length==2)f=arguments[1].evaluate(a).stringValue();else throw new Error("Function normalize-space expects (string?)");for(var y=0,E=f.length-1;ae.isSpace(f.charCodeAt(E));)E--;for(var x="";y<=E&&ae.isSpace(f.charCodeAt(y));)y++;for(;y<=E;)if(ae.isSpace(f.charCodeAt(y)))for(x+=" ";y<=E&&ae.isSpace(f.charCodeAt(y));)y++;else x+=f.charAt(y),y++;return new he(x)},me.translate=function(a,f,y,E){if(arguments.length!=4)throw new Error("Function translate expects (string, string, string)");var x=f.evaluate(a).stringValue(),N=y.evaluate(a).stringValue(),G=E.evaluate(a).stringValue(),_e=o(function(ie,Ae,wt){return Ae in ie||(ie[Ae]=wt>G.length?"":G[wt]),ie},{},N),Ce=h("",c(function(ie){return ie in _e?_e[ie]:ie},x));return new he(Ce)},me.boolean_=function(){var a=arguments[0];if(arguments.length!=2)throw new Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},me.not=function(a,f){if(arguments.length!=2)throw new Error("Function not expects (object)");return f.evaluate(a).bool().not()},me.true_=function(){if(arguments.length!=1)throw new Error("Function true expects ()");return pe.true_},me.false_=function(){if(arguments.length!=1)throw new Error("Function false expects ()");return pe.false_},me.lang=function(){var a=arguments[0];if(arguments.length!=2)throw new Error("Function lang expects (string)");for(var f,y=a.contextNode;y!=null&&y.nodeType!=S.DOCUMENT_NODE;y=y.parentNode){var E=y.getAttributeNS(T.XML_NAMESPACE_URI,"lang");if(E!=null){f=String(E);break}}if(f==null)return pe.false_;var x=arguments[1].evaluate(a).stringValue();return new pe(f.substring(0,x.length)==x&&(f.length==x.length||f.charAt(x.length)=="-"))},me.number=function(){var a=arguments[0];if(!(arguments.length==1||arguments.length==2))throw new Error("Function number expects (object?)");return arguments.length==1?new ge(se.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},me.sum=function(){var a=arguments[0],f;if(arguments.length!=2||!ae.instance_of(f=arguments[1].evaluate(a),se))throw new Error("Function sum expects (node-set)");f=f.toUnsortedArray();for(var y=0,E=0;E<f.length;E++)y+=new ge(se.prototype.stringForNode(f[E])).numberValue();return new ge(y)},me.floor=function(){var a=arguments[0];if(arguments.length!=2)throw new Error("Function floor expects (number)");return new ge(Math.floor(arguments[1].evaluate(a).numberValue()))},me.ceiling=function(){var a=arguments[0];if(arguments.length!=2)throw new Error("Function ceiling expects (number)");return new ge(Math.ceil(arguments[1].evaluate(a).numberValue()))},me.round=function(){var a=arguments[0];if(arguments.length!=2)throw new Error("Function round expects (number)");return new ge(Math.round(arguments[1].evaluate(a).numberValue()))};var ae=new Object;ae.isAttribute=function(a){return a&&(a.nodeType===S.ATTRIBUTE_NODE||a.ownerElement)},ae.splitQName=function(a){var f=a.indexOf(":");return f==-1?[null,a]:[a.substring(0,f),a.substring(f+1)]},ae.resolveQName=function(a,f,y,E){var x=ae.splitQName(a);return x[0]!=null?x[0]=f.getNamespace(x[0],y):E?(x[0]=f.getNamespace("",y),x[0]==null&&(x[0]="")):x[0]="",x},ae.isSpace=function(a){return a==9||a==13||a==10||a==32},ae.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||a==902||a>=904&&a<=906||a==908||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||a==986||a==988||a==990||a==992||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||a==1369||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||a==1749||a>=1765&&a<=1766||a>=2309&&a<=2361||a==2365||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||a==2482||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||a==2654||a>=2674&&a<=2676||a>=2693&&a<=2699||a==2701||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||a==2749||a==2784||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||a==2877||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||a==2972||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||a==3294||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||a==3632||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||a==3716||a>=3719&&a<=3720||a==3722||a==3725||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||a==3749||a==3751||a>=3754&&a<=3755||a>=3757&&a<=3758||a==3760||a>=3762&&a<=3763||a==3773||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||a==4352||a>=4354&&a<=4355||a>=4357&&a<=4359||a==4361||a>=4363&&a<=4364||a>=4366&&a<=4370||a==4412||a==4414||a==4416||a==4428||a==4430||a==4432||a>=4436&&a<=4437||a==4441||a>=4447&&a<=4449||a==4451||a==4453||a==4455||a==4457||a>=4461&&a<=4462||a>=4466&&a<=4467||a==4469||a==4510||a==4520||a==4523||a>=4526&&a<=4527||a>=4535&&a<=4536||a==4538||a>=4540&&a<=4546||a==4587||a==4592||a==4601||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||a==8025||a==8027||a==8029||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||a==8126||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||a==8486||a>=8490&&a<=8491||a==8494||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||a==12295||a>=12321&&a<=12329},ae.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||a==46||a==45||a==95||ae.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||a==1471||a>=1473&&a<=1474||a==1476||a>=1611&&a<=1618||a==1648||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||a==2364||a>=2366&&a<=2380||a==2381||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||a==2492||a==2494||a==2495||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||a==2519||a>=2530&&a<=2531||a==2562||a==2620||a==2622||a==2623||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||a==2748||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||a==2876||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||a==3031||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||a==3415||a==3633||a>=3636&&a<=3642||a>=3655&&a<=3662||a==3761||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||a==3893||a==3895||a==3897||a==3902||a==3903||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||a==3991||a>=3993&&a<=4013||a>=4017&&a<=4023||a==4025||a>=8400&&a<=8412||a==8417||a>=12330&&a<=12335||a==12441||a==12442||a==183||a==720||a==721||a==903||a==1600||a==3654||a==3782||a==12293||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ae.coalesceText=function(a){for(var f=a.firstChild;f!=null;f=f.nextSibling)if(f.nodeType==S.TEXT_NODE||f.nodeType==S.CDATA_SECTION_NODE){var y=f.nodeValue,E=f;for(f=f.nextSibling;f!=null&&(f.nodeType==S.TEXT_NODE||f.nodeType==S.CDATA_SECTION_NODE);){y+=f.nodeValue;var x=f;f=f.nextSibling,x.parentNode.removeChild(x)}if(E.nodeType==S.CDATA_SECTION_NODE){var N=E.parentNode;if(E.nextSibling==null)N.removeChild(E),N.appendChild(N.ownerDocument.createTextNode(y));else{var G=E.nextSibling;N.removeChild(E),N.insertBefore(N.ownerDocument.createTextNode(y),G)}}else E.nodeValue=y;if(f==null)break}else f.nodeType==S.ELEMENT_NODE&&ae.coalesceText(f)},ae.instance_of=function(a,f){for(;a!=null;){if(a.constructor===f)return!0;if(a===Object)return!1;a=a.constructor.superclass}return!1},ae.getElementById=function(a,f){if(a.nodeType==S.ELEMENT_NODE&&(a.getAttribute("id")==f||a.getAttributeNS(null,"id")==f))return a;for(var y=a.firstChild;y!=null;y=y.nextSibling){var E=ae.getElementById(y,f);if(E!=null)return E}return null};var Ut=function(){function a(y,E){var x=E?": "+E.toString():"";switch(y){case f.INVALID_EXPRESSION_ERR:return"Invalid expression"+x;case f.TYPE_ERR:return"Type error"+x}return null}function f(y,E,x){var N=Error.call(this,a(y,E)||x);return N.code=y,N.exception=E,N}return f.prototype=Object.create(Error.prototype),f.prototype.constructor=f,f.superclass=Error,f.prototype.toString=function(){return this.message},f.fromMessage=function(y,E){return new f(null,E,y)},f.INVALID_EXPRESSION_ERR=51,f.TYPE_ERR=52,f}();Dt.prototype={},Dt.prototype.constructor=Dt,Dt.superclass=Object.prototype;function Dt(a,f,y){this.xpath=y.parse(a),this.context=new Ft,this.context.namespaceResolver=new gn(f)}Dt.getOwnerDocument=function(a){return a.nodeType===S.DOCUMENT_NODE?a:a.ownerDocument},Dt.detectHtmlDom=function(a){if(!a)return!1;var f=Dt.getOwnerDocument(a);try{return f.implementation.hasFeature("HTML","2.0")}catch{return!0}},Dt.prototype.evaluate=function(a,f,y){this.context.expressionContextNode=a,this.context.caseInsensitive=Dt.detectHtmlDom(a);var E=this.xpath.evaluate(this.context);return new D(E,f)},gn.prototype={},gn.prototype.constructor=gn,gn.superclass=Object.prototype;function gn(a){this.xpathNSResolver=a}gn.prototype.getNamespace=function(a,f){return this.xpathNSResolver==null?null:this.xpathNSResolver.lookupNamespaceURI(a)},z.prototype={},z.prototype.constructor=z,z.superclass=Object.prototype;function z(a){this.node=a,this.namespaceResolver=new Zt}z.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},D.prototype={},D.prototype.constructor=D,D.superclass=Object.prototype;function D(a,f){switch(f==D.ANY_TYPE&&(a.constructor===he?f=D.STRING_TYPE:a.constructor===ge?f=D.NUMBER_TYPE:a.constructor===pe?f=D.BOOLEAN_TYPE:a.constructor===se&&(f=D.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=f,f){case D.NUMBER_TYPE:this.numberValue=a.numberValue();return;case D.STRING_TYPE:this.stringValue=a.stringValue();return;case D.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case D.ANY_UNORDERED_NODE_TYPE:case D.FIRST_ORDERED_NODE_TYPE:if(a.constructor===se){this.singleNodeValue=a.first();return}break;case D.UNORDERED_NODE_ITERATOR_TYPE:case D.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===se){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case D.UNORDERED_NODE_SNAPSHOT_TYPE:case D.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===se){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}break}throw new Ut(Ut.TYPE_ERR)}D.prototype.iterateNext=function(){if(this.resultType!=D.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=D.ORDERED_NODE_ITERATOR_TYPE)throw new Ut(Ut.TYPE_ERR);return this.nodes[this.iteratorIndex++]},D.prototype.snapshotItem=function(a){if(this.resultType!=D.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=D.ORDERED_NODE_SNAPSHOT_TYPE)throw new Ut(Ut.TYPE_ERR);return this.nodes[a]},D.ANY_TYPE=0,D.NUMBER_TYPE=1,D.STRING_TYPE=2,D.BOOLEAN_TYPE=3,D.UNORDERED_NODE_ITERATOR_TYPE=4,D.ORDERED_NODE_ITERATOR_TYPE=5,D.UNORDERED_NODE_SNAPSHOT_TYPE=6,D.ORDERED_NODE_SNAPSHOT_TYPE=7,D.ANY_UNORDERED_NODE_TYPE=8,D.FIRST_ORDERED_NODE_TYPE=9;function q(a,f){a.createExpression=function(y,E){try{return new Dt(y,E,f)}catch(x){throw new Ut(Ut.INVALID_EXPRESSION_ERR,x)}},a.createNSResolver=function(y){return new z(y)},a.evaluate=function(y,E,x,N,G){if(N<0||N>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(y,x,f).evaluate(E,N,G)}}try{var ee=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(ee=!1)}catch{}ee&&q(document,new b)}catch{}q(n,new b),function(){var a=new b,f=new Zt,y=new yt,E=new hn;function x(Y){return{getNamespace:function(Ie,vt){var or=Y(Ie,vt);return or||f.getNamespace(Ie,vt)}}}function N(Y){return x(Y.getNamespace.bind(Y))}function G(Y){return x(function(Ie){return Y[Ie]})}function _e(Y){return Y&&typeof Y.getNamespace=="function"?N(Y):typeof Y=="function"?x(Y):typeof Y=="object"?G(Y):f}function Ce(Y){if(Y===null||typeof Y>"u"||Y instanceof he||Y instanceof pe||Y instanceof ge||Y instanceof se)return Y;switch(typeof Y){case"string":return new he(Y);case"boolean":return new pe(Y);case"number":return new ge(Y)}var Ie=new se;return Ie.addArray([].concat(Y)),Ie}function ie(Y){return function(Ie){var vt=Array.prototype.slice.call(arguments,1).map(function(iw){return iw.evaluate(Ie)}),or=Y.apply(this,[].concat(Ie,vt));return Ce(or)}}function Ae(Y){return{getFunction:function(Ie,vt){var or=Y(Ie,vt);return or?ie(or):y.getFunction(Ie,vt)}}}function wt(Y){return Ae(Y.getFunction.bind(Y))}function je(Y){return Ae(function(Ie){return Y[Ie]})}function rr(Y){return Y&&typeof Y.getFunction=="function"?wt(Y):typeof Y=="function"?Ae(Y):typeof Y=="object"?je(Y):y}function ir(Y){return{getVariable:function(Ie,vt){var or=Y(Ie,vt);return Ce(or)}}}function Qy(Y){if(Y){if(typeof Y.getVariable=="function")return ir(Y.getVariable.bind(Y));if(typeof Y=="function")return ir(Y);if(typeof Y=="object")return ir(function(Ie){return Y[Ie]})}return E}function Uf(Y,Ie,vt){Y in vt&&(Ie[Y]=vt[Y])}function ew(Y){var Ie=new Ft;return Y?(Ie.namespaceResolver=_e(Y.namespaces),Ie.functionResolver=rr(Y.functions),Ie.variableResolver=Qy(Y.variables),Ie.expressionContextNode=Y.node,Uf("allowAnyNamespaceForNoPrefix",Ie,Y),Uf("isHtml",Ie,Y)):Ie.namespaceResolver=f,Ie}function tw(Y,Ie){var vt=ew(Ie);return Y.evaluate(vt)}var nw={evaluate:function(Y){return tw(this.expression,Y)},evaluateNumber:function(Y){return this.evaluate(Y).numberValue()},evaluateString:function(Y){return this.evaluate(Y).stringValue()},evaluateBoolean:function(Y){return this.evaluate(Y).booleanValue()},evaluateNodeSet:function(Y){return this.evaluate(Y).nodeset()},select:function(Y){return this.evaluateNodeSet(Y).toArray()},select1:function(Y){return this.select(Y)[0]}};function rw(Y){var Ie=a.parse(Y);return Object.create(nw,{expression:{value:Ie}})}n.parse=rw}(),k(n,{XPath:T,XPathParser:b,XPathResult:D,Step:Q,PathExpr:ye,NodeTest:oe,LocationPath:Yt,OrOperation:ue,AndOperation:Ne,BarOperation:Z,EqualsOperation:B,NotEqualOperation:L,LessThanOperation:P,GreaterThanOperation:I,LessThanOrEqualOperation:C,GreaterThanOrEqualOperation:j,PlusOperation:V,MinusOperation:de,MultiplyOperation:ne,DivOperation:ve,ModOperation:Se,UnaryMinusOperation:W,FunctionCall:Tt,VariableReference:Ze,XPathContext:Ft,XNodeSet:se,XBoolean:pe,XString:he,XNumber:ge,NamespaceResolver:Zt,FunctionResolver:yt,VariableResolver:hn,Utilities:ae}),n.select=function(a,f,y){return n.selectWithResolver(a,f,null,y)},n.useNamespaces=function(a){var f={mappings:a||{},lookupNamespaceURI:function(y){return this.mappings[y]}};return function(y,E,x){return n.selectWithResolver(y,E,f,x)}},n.selectWithResolver=function(a,f,y,E){var x=new Dt(a,y,new b),N=D.ANY_TYPE,G=x.evaluate(f,N,null);return G.resultType==D.STRING_TYPE?G=G.stringValue:G.resultType==D.NUMBER_TYPE?G=G.numberValue:G.resultType==D.BOOLEAN_TYPE?G=G.booleanValue:(G=G.nodes,E&&(G=G[0])),G},n.select1=function(a,f){return n.select(a,f,!0)};var we=function(a){return a&&typeof a.nodeType=="number"&&Number.isInteger(a.nodeType)&&a.nodeType>=1&&a.nodeType<=11&&typeof a.nodeName=="string"},Qe=function(a){return Array.isArray(a)&&a.every(we)},Re=function(a){return function(f){return we(f)&&f.nodeType===a}};k(n,{isNodeLike:we,isArrayOfNodes:Qe,isElement:Re(S.ELEMENT_NODE),isAttribute:Re(S.ATTRIBUTE_NODE),isTextNode:Re(S.TEXT_NODE),isCDATASection:Re(S.CDATA_SECTION_NODE),isProcessingInstruction:Re(S.PROCESSING_INSTRUCTION_NODE),isComment:Re(S.COMMENT_NODE),isDocumentNode:Re(S.DOCUMENT_NODE),isDocumentTypeNode:Re(S.DOCUMENT_TYPE_NODE),isDocumentFragment:Re(S.DOCUMENT_FRAGMENT_NODE)})})(e)})($l);var be={};Object.defineProperty(be,"__esModule",{value:!0});be.assertIsDocumentFragmentNode=be.assertIsDocumentTypeNode=be.assertIsDocumentNode=be.assertIsCommentNode=be.assertIsProcessingInstructionNode=be.assertIsCDATASectionNode=be.assertIsTextNode=be.assertIsAttributeNode=be.assertIsElementNode=be.isDocumentFragmentNode=be.isDocumentTypeNode=be.isDocumentNode=be.isCommentNode=be.isProcessingInstructionNode=be.isCDATASectionNode=be.isTextNode=be.isAttributeNode=be.isElementNode=be.assertIsArrayOfNodes=be.isArrayOfNodes=be.assertIsNodeLike=be.isNodeLike=be.NodeTypes=void 0;var We;(function(t){t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",t[t.TEXT_NODE=3]="TEXT_NODE",t[t.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",t[t.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",t[t.COMMENT_NODE=8]="COMMENT_NODE",t[t.DOCUMENT_NODE=9]="DOCUMENT_NODE",t[t.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",t[t.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(We||(be.NodeTypes=We={}));function Al(t){return t&&typeof t=="object"&&Number.isInteger(t.nodeType)&&t.nodeType>=1&&t.nodeType<=11&&typeof t.nodeName=="string"&&typeof t.appendChild=="function"&&typeof t.removeChild=="function"}be.isNodeLike=Al;function T8(t){if(!Al(t))throw new Error(`Value is not a Node-like object. Received: ${t}`)}be.assertIsNodeLike=T8;function vy(t){return Array.isArray(t)&&t.every(Al)}be.isArrayOfNodes=vy;function O8(t){if(!vy(t))throw new Error("Value is not an array of Nodes")}be.assertIsArrayOfNodes=O8;function In(t,e){return Al(e)&&e.nodeType===t}function er(t,e){const n=Object.keys(We).find(r=>We[r]===t);if(!In(t,e))throw new Error(`Value is not of type ${n}`)}const D8=t=>In(We.ELEMENT_NODE,t);be.isElementNode=D8;const z8=t=>In(We.ATTRIBUTE_NODE,t);be.isAttributeNode=z8;const R8=t=>In(We.TEXT_NODE,t);be.isTextNode=R8;const P8=t=>In(We.CDATA_SECTION_NODE,t);be.isCDATASectionNode=P8;const B8=t=>In(We.PROCESSING_INSTRUCTION_NODE,t);be.isProcessingInstructionNode=B8;const j8=t=>In(We.COMMENT_NODE,t);be.isCommentNode=j8;const L8=t=>In(We.DOCUMENT_NODE,t);be.isDocumentNode=L8;const F8=t=>In(We.DOCUMENT_TYPE_NODE,t);be.isDocumentTypeNode=F8;const U8=t=>In(We.DOCUMENT_FRAGMENT_NODE,t);be.isDocumentFragmentNode=U8;const M8=t=>{er(We.ELEMENT_NODE,t)};be.assertIsElementNode=M8;const q8=t=>er(We.ATTRIBUTE_NODE,t);be.assertIsAttributeNode=q8;const V8=t=>er(We.TEXT_NODE,t);be.assertIsTextNode=V8;const H8=t=>er(We.CDATA_SECTION_NODE,t);be.assertIsCDATASectionNode=H8;const K8=t=>er(We.PROCESSING_INSTRUCTION_NODE,t);be.assertIsProcessingInstructionNode=K8;const G8=t=>er(We.COMMENT_NODE,t);be.assertIsCommentNode=G8;const W8=t=>er(We.DOCUMENT_NODE,t);be.assertIsDocumentNode=W8;const X8=t=>er(We.DOCUMENT_TYPE_NODE,t);be.assertIsDocumentTypeNode=X8;const J8=t=>er(We.DOCUMENT_FRAGMENT_NODE,t);be.assertIsDocumentFragmentNode=J8;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateDigestValue=t.findAncestorNs=t.derToPem=t.pemToDer=t.normalizePem=t.BASE64_REGEX=t.EXTRACT_X509_CERTS=t.PEM_FORMAT_REGEX=t.encodeSpecialCharactersInText=t.encodeSpecialCharactersInAttribute=t.findChilds=t.findChildren=t.findAttr=t.isArrayHasLength=void 0;const e=$l,n=be;function r(U){return Array.isArray(U)&&U.length>0}t.isArrayHasLength=r;function i(U,H,W){return U.localName===H&&(U.namespaceURI===W||W==null)}function o(U,H,W,J){return U.localName===H&&(!U.namespaceURI&&(J==null?void 0:J.namespaceURI)===W||W==null)}function c(U,H,W){for(let J=0;J<U.attributes.length;J++){const ue=U.attributes[J];if(i(ue,H,W)||o(ue,H,W,U))return ue}return null}t.findAttr=c;function l(U,H,W){const J=U.documentElement??U,ue=[];for(let Ne=0;Ne<J.childNodes.length;Ne++){const B=J.childNodes[Ne];n.isElementNode(B)&&B.localName===H&&(B.namespaceURI===W||W==null)&&ue.push(B)}return ue}t.findChildren=l;function u(U,H,W){return l(U,H,W)}t.findChilds=u;const d={"&":"&","<":"<",'"':""","\r":"
","\n":"
"," ":"	"},p={"&":"&","<":"<",">":">","\r":"
"};function h(U){return U.replace(/([&<"\r\n\t])/g,function(H,W){return d[W]})}t.encodeSpecialCharactersInAttribute=h;function g(U){return U.replace(/([&<>\r])/g,function(H,W){return p[W]})}t.encodeSpecialCharactersInText=g,t.PEM_FORMAT_REGEX=new RegExp("^-----BEGIN [A-Z ]{1,48}-----([^-]*)-----END [A-Z ]{1,48}-----$","s"),t.EXTRACT_X509_CERTS=new RegExp("-----BEGIN CERTIFICATE-----[^-]*-----END CERTIFICATE-----","g"),t.BASE64_REGEX=new RegExp("^(?:[A-Za-z0-9\\+\\/]{4}\\n{0,1})*(?:[A-Za-z0-9\\+\\/]{2}==|[A-Za-z0-9\\+\\/]{3}=)?$","s");function A(U){return`${(U.trim().replace(/(\r\n|\r)/g,`
|
|
272
272
|
`).match(/.{1,64}/g)??[]).join(`
|
|
273
273
|
`)}
|
|
274
274
|
`}t.normalizePem=A;function m(U){if(!t.PEM_FORMAT_REGEX.test(U.trim()))throw new Error("Invalid PEM format.");return Buffer.from(U.replace(/(\r\n|\r)/g,"").replace(/-----BEGIN [A-Z\x20]{1,48}-----\n?/,"").replace(/-----END [A-Z\x20]{1,48}-----\n?/,""),"base64")}t.pemToDer=m;function $(U,H){const W=Buffer.isBuffer(U)?U.toString("base64").trim():U.replace(/(\r\n|\r)/g,"").trim();if(t.PEM_FORMAT_REGEX.test(W))return A(W);if(t.BASE64_REGEX.test(W.replace(/ /g,""))){if(H==null)throw new Error("PEM label is required when DER is given.");const J=`-----BEGIN ${H}-----
|
|
275
275
|
${W.replace(/ /g,"")}
|
|
276
276
|
-----END ${H}-----`;return A(J)}throw new Error("Unknown DER format.")}t.derToPem=$;function k(U,H=[]){if(!n.isElementNode(U.parentNode))return H;const W=U.parentNode;if(!W)return H;if(W.attributes&&W.attributes.length>0)for(let J=0;J<W.attributes.length;J++){const ue=W.attributes[J];ue&&ue.nodeName&&ue.nodeName.search(/^xmlns:?/)!==-1&&H.push({prefix:ue.nodeName.replace(/^xmlns:?/,""),namespaceURI:ue.nodeValue||""})}return k(W,H)}function S(U){const H=U.attributes;for(let W=0;W<H.length;W++){const J=H[W].nodeName;if(J.search(/^xmlns:?/)!==-1)return J.replace(/^xmlns:?/,"")}return U.prefix||""}function b(U){return U.every(H=>n.isElementNode(H))}function T(U,H,W){if(H==null)return[];const J=e.selectWithResolver(H,U,W);if(!r(J))return[];if(!b(J))throw new Error("Document subset must be list of elements");const ue=k(J[0]),Ne=[];for(let P=0;P<ue.length;P++){let I=!0;for(const C in Ne)if(Ne[C].prefix===ue[P].prefix){I=!1;break}I&&Ne.push(ue[P])}const B=[],L=S(J[0]);for(const P of Ne)P.prefix!==L&&B.push(P);return B}t.findAncestorNs=T;function M(U,H){const W=Buffer.from(U,"base64"),J=Buffer.from(H,"base64");if(typeof W.equals=="function")return W.equals(J);if(W.length!==J.length)return!1;for(let ue=0;ue<W.length;ue++)if(W[ue]!==J[ue])return!1;return!0}t.validateDigestValue=M})(Es);Object.defineProperty(Qr,"__esModule",{value:!0});Qr.C14nCanonicalizationWithComments=Qr.C14nCanonicalization=void 0;const Fs=Es,ru=be;class by{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(e,n){if(!e.namespaceURI&&n.namespaceURI)return-1;if(!n.namespaceURI&&e.namespaceURI)return 1;const r=e.namespaceURI+e.localName,i=n.namespaceURI+n.localName;return r===i?0:r<i?-1:1}nsCompare(e,n){const r=e.prefix,i=n.prefix;return r===i?0:r.localeCompare(i)}renderAttrs(e){let n,r;const i=[];if(ru.isCommentNode(e))return this.renderComment(e);if(e.attributes)for(n=0;n<e.attributes.length;++n)r=e.attributes[n],r.name.indexOf("xmlns")!==0&&i.push(r);return i.sort(this.attrCompare),i.map(c=>` ${c.name}="${Fs.encodeSpecialCharactersInAttribute(c.value)}"`).join("")}renderNs(e,n,r,i,o){let c,l;const u=[];let d=r;const p=[],h=e.namespaceURI||"";if(e.prefix?n.indexOf(e.prefix)===-1&&(p.push({prefix:e.prefix,namespaceURI:e.namespaceURI||i[e.prefix]}),n.push(e.prefix)):r!==h&&(d=e.namespaceURI||"",u.push(' xmlns="',d,'"')),e.attributes)for(c=0;c<e.attributes.length;++c)l=e.attributes[c],l.prefix==="xmlns"&&n.indexOf(l.localName)===-1&&(p.push({prefix:l.localName,namespaceURI:l.value}),n.push(l.localName)),l.prefix&&n.indexOf(l.prefix)===-1&&l.prefix!=="xmlns"&&l.prefix!=="xml"&&(p.push({prefix:l.prefix,namespaceURI:l.namespaceURI}),n.push(l.prefix));if(Fs.isArrayHasLength(o))for(const g of o){let A=!1;for(const m of p)m.prefix===g.prefix&&m.namespaceURI===g.namespaceURI&&(A=!0);A||p.push(g)}return p.sort(this.nsCompare),u.push(...p.map(g=>g.prefix?` xmlns:${g.prefix}="${g.namespaceURI}"`:` xmlns="${g.namespaceURI}"`)),{rendered:u.join(""),newDefaultNs:d}}processInner(e,n,r,i,o){if(ru.isCommentNode(e))return this.renderComment(e);if(e.data)return Fs.encodeSpecialCharactersInText(e.data);if(ru.isElementNode(e)){let c,l;const u=this.renderNs(e,n,r,i,o),d=["<",e.tagName,u.rendered,this.renderAttrs(e),">"];for(c=0;c<e.childNodes.length;++c)l=n.slice(0),d.push(this.processInner(e.childNodes[c],l,u.newDefaultNs,i,[]));return d.push("</",e.tagName,">"),d.join("")}throw new Error(`Unable to canonicalize node type: ${e.nodeType}`)}renderComment(e){if(!this.includeComments)return"";const n=e.ownerDocument===e.parentNode;let r=!1,i=!1;if(n){let u=e,d=e;for(;u!==null;){if(u===e.ownerDocument.documentElement){r=!0;break}u=u.nextSibling}for(;d!==null;){if(d===e.ownerDocument.documentElement){i=!0;break}d=d.previousSibling}}const o=i?`
|
|
277
277
|
`:"",c=r?`
|
|
278
|
-
`:"",l=Fs.encodeSpecialCharactersInText(e.data);return`${o}<!--${l}-->${c}`}process(e,n){n=n||{};const r=n.defaultNs||"",i=n.defaultNsForPrefix||{},o=n.ancestorNamespaces||[],c=[];for(let u=0;u<o.length;u++)c.push(o[u].prefix);return this.processInner(e,c,r,i,o)}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"}}Qr.C14nCanonicalization=by;class
|
|
278
|
+
`:"",l=Fs.encodeSpecialCharactersInText(e.data);return`${o}<!--${l}-->${c}`}process(e,n){n=n||{};const r=n.defaultNs||"",i=n.defaultNsForPrefix||{},o=n.ancestorNamespaces||[],c=[];for(let u=0;u<o.length;u++)c.push(o[u].prefix);return this.processInner(e,c,r,i,o)}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"}}Qr.C14nCanonicalization=by;class Y8 extends by{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"}}Qr.C14nCanonicalizationWithComments=Y8;var ei={};Object.defineProperty(ei,"__esModule",{value:!0});ei.ExclusiveCanonicalizationWithComments=ei.ExclusiveCanonicalization=void 0;const Nr=Es,iu=be;function ou(t,e,n){let r=!1;return t.forEach(function(i){i.prefix===e&&i.namespaceURI===n&&(r=!0)}),r}class xy{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(e,n){if(!e.namespaceURI&&n.namespaceURI)return-1;if(!n.namespaceURI&&e.namespaceURI)return 1;const r=e.namespaceURI+e.localName,i=n.namespaceURI+n.localName;return r===i?0:r<i?-1:1}nsCompare(e,n){const r=e.prefix,i=n.prefix;return r===i?0:r.localeCompare(i)}renderAttrs(e){let n,r;const i=[],o=[];if(iu.isCommentNode(e))return this.renderComment(e);if(e.attributes)for(n=0;n<e.attributes.length;++n)r=e.attributes[n],r.name.indexOf("xmlns")!==0&&o.push(r);o.sort(this.attrCompare);for(r of o)i.push(" ",r.name,'="',Nr.encodeSpecialCharactersInAttribute(r.value),'"');return i.join("")}renderNs(e,n,r,i,o){let c,l;const u=[];let d=r;const p=[],h=e.namespaceURI||"";if(e.prefix?ou(n,e.prefix,e.namespaceURI||i[e.prefix])||(p.push({prefix:e.prefix,namespaceURI:e.namespaceURI||i[e.prefix]}),n.push({prefix:e.prefix,namespaceURI:e.namespaceURI||i[e.prefix]})):r!==h&&(d=e.namespaceURI,u.push(' xmlns="',d,'"')),e.attributes)for(c=0;c<e.attributes.length;++c)l=e.attributes[c],l.prefix&&!ou(n,l.localName,l.value)&&o.indexOf(l.localName)>=0&&(p.push({prefix:l.localName,namespaceURI:l.value}),n.push({prefix:l.localName,namespaceURI:l.value})),l.prefix&&!ou(n,l.prefix,l.namespaceURI)&&l.prefix!=="xmlns"&&l.prefix!=="xml"&&(p.push({prefix:l.prefix,namespaceURI:l.namespaceURI}),n.push({prefix:l.prefix,namespaceURI:l.namespaceURI}));p.sort(this.nsCompare);for(const g of p)u.push(" xmlns:",g.prefix,'="',g.namespaceURI,'"');return{rendered:u.join(""),newDefaultNs:d}}processInner(e,n,r,i,o){if(iu.isCommentNode(e))return this.renderComment(e);if(e.data)return Nr.encodeSpecialCharactersInText(e.data);if(iu.isElementNode(e)){let c,l;const u=this.renderNs(e,n,r,i,o),d=["<",e.tagName,u.rendered,this.renderAttrs(e),">"];for(c=0;c<e.childNodes.length;++c)l=n.slice(0),d.push(this.processInner(e.childNodes[c],l,u.newDefaultNs,i,o));return d.push("</",e.tagName,">"),d.join("")}throw new Error(`Unable to exclusive canonicalize node type: ${e.nodeType}`)}renderComment(e){if(!this.includeComments)return"";const n=e.ownerDocument===e.parentNode;let r=!1,i=!1;if(n){let u=e,d=e;for(;u!=null;){if(u===e.ownerDocument.documentElement){r=!0;break}u=u.nextSibling}for(;d!=null;){if(d===e.ownerDocument.documentElement){i=!0;break}d=d.previousSibling}}const o=i?`
|
|
279
279
|
`:"",c=r?`
|
|
280
|
-
`:"",l=Nr.encodeSpecialCharactersInText(e.data);return`${o}<!--${l}-->${c}`}process(e,n){n=n||{};let r=n.inclusiveNamespacesPrefixList||[];const i=n.defaultNs||"",o=n.defaultNsForPrefix||{},c=n.ancestorNamespaces||[];if(!Nr.isArrayHasLength(r)){const u=Nr.findChildren(e,"CanonicalizationMethod");if(u.length!==0){const d=Nr.findChildren(u[0],"InclusiveNamespaces");d.length!==0&&(r=(d[0].getAttribute("PrefixList")||"").split(" "))}}return Nr.isArrayHasLength(r)&&r.forEach(function(u){c&&c.forEach(function(d){u===d.prefix&&e.setAttributeNS("http://www.w3.org/2000/xmlns/",`xmlns:${u}`,d.namespaceURI)})}),this.processInner(e,[],i,o,r)}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#"}}ei.ExclusiveCanonicalization=xy;class Y8 extends xy{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#WithComments"}}ei.ExclusiveCanonicalizationWithComments=Y8;var El={},Sl={},tr={},nr={};function Z8(t,e,n){if(n===void 0&&(n=Array.prototype),t&&typeof n.find=="function")return n.find.call(t,e);for(var r=0;r<t.length;r++)if(Object.prototype.hasOwnProperty.call(t,r)){var i=t[r];if(e.call(void 0,i,r,t))return i}}function If(t,e){return e===void 0&&(e=Object),e&&typeof e.freeze=="function"?e.freeze(t):t}function Q8(t,e){if(t===null||typeof t!="object")throw new TypeError("target is not an object");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var $y=If({HTML:"text/html",isHTML:function(t){return t===$y.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),Ay=If({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===Ay.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});nr.assign=Q8;nr.find=Z8;nr.freeze=If;nr.MIME_TYPE=$y;nr.NAMESPACE=Ay;var Ey=nr,$n=Ey.find,Jo=Ey.NAMESPACE;function eE(t){return t!==""}function tE(t){return t?t.split(/[\t\n\f\r ]+/).filter(eE):[]}function nE(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function Xg(t){if(!t)return[];var e=tE(t);return Object.keys(e.reduce(nE,{}))}function rE(t){return function(e){return t&&t.indexOf(e)!==-1}}function Ss(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}function Ct(t,e){var n=t.prototype;if(!(n instanceof e)){let r=function(){};r.prototype=e.prototype,r=new r,Ss(n,r),t.prototype=n=r}n.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),n.constructor=t)}var It={},cn=It.ELEMENT_NODE=1,qi=It.ATTRIBUTE_NODE=2,ac=It.TEXT_NODE=3,Sy=It.CDATA_SECTION_NODE=4,ky=It.ENTITY_REFERENCE_NODE=5,iE=It.ENTITY_NODE=6,Ny=It.PROCESSING_INSTRUCTION_NODE=7,Cy=It.COMMENT_NODE=8,Iy=It.DOCUMENT_NODE=9,Ty=It.DOCUMENT_TYPE_NODE=10,Gn=It.DOCUMENT_FRAGMENT_NODE=11,oE=It.NOTATION_NODE=12,ft={},ot={};ft.INDEX_SIZE_ERR=(ot[1]="Index size error",1);ft.DOMSTRING_SIZE_ERR=(ot[2]="DOMString size error",2);var $t=ft.HIERARCHY_REQUEST_ERR=(ot[3]="Hierarchy request error",3);ft.WRONG_DOCUMENT_ERR=(ot[4]="Wrong document",4);ft.INVALID_CHARACTER_ERR=(ot[5]="Invalid character",5);ft.NO_DATA_ALLOWED_ERR=(ot[6]="No data allowed",6);ft.NO_MODIFICATION_ALLOWED_ERR=(ot[7]="No modification allowed",7);var Oy=ft.NOT_FOUND_ERR=(ot[8]="Not found",8);ft.NOT_SUPPORTED_ERR=(ot[9]="Not supported",9);var Jg=ft.INUSE_ATTRIBUTE_ERR=(ot[10]="Attribute in use",10);ft.INVALID_STATE_ERR=(ot[11]="Invalid state",11);ft.SYNTAX_ERR=(ot[12]="Syntax error",12);ft.INVALID_MODIFICATION_ERR=(ot[13]="Invalid modification",13);ft.NAMESPACE_ERR=(ot[14]="Invalid namespace",14);ft.INVALID_ACCESS_ERR=(ot[15]="Invalid access",15);function Je(t,e){if(e instanceof Error)var n=e;else n=this,Error.call(this,ot[t]),this.message=ot[t],Error.captureStackTrace&&Error.captureStackTrace(this,Je);return n.code=t,e&&(this.message=this.message+": "+e),n}Je.prototype=Error.prototype;Ss(ft,Je);function jn(){}jn.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,e){for(var n=[],r=0;r<this.length;r++)bi(this[r],n,t,e);return n.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}};function Vi(t,e){this._node=t,this._refresh=e,Tf(this)}function Tf(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==e){var n=t._refresh(t._node);if(Vy(t,"length",n.length),!t.$$length||n.length<t.$$length)for(var r=n.length;r in t;r++)Object.prototype.hasOwnProperty.call(t,r)&&delete t[r];Ss(n,t),t._inc=e}}Vi.prototype.item=function(t){return Tf(this),this[t]||null};Ct(Vi,jn);function cc(){}function Dy(t,e){for(var n=t.length;n--;)if(t[n]===e)return n}function Yg(t,e,n,r){if(r?e[Dy(e,r)]=n:e[e.length++]=n,t){n.ownerElement=t;var i=t.ownerDocument;i&&(r&&Py(i,t,r),sE(i,t,n))}}function Zg(t,e,n){var r=Dy(e,n);if(r>=0){for(var i=e.length-1;r<i;)e[r]=e[++r];if(e.length=i,t){var o=t.ownerDocument;o&&(Py(o,t,n),n.ownerElement=null)}}else throw new Je(Oy,new Error(t.tagName+"@"+n))}cc.prototype={length:0,item:jn.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var n=this[e];if(n.nodeName==t)return n}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new Je(Jg);var n=this.getNamedItem(t.nodeName);return Yg(this._ownerElement,this,t,n),n},setNamedItemNS:function(t){var e=t.ownerElement,n;if(e&&e!=this._ownerElement)throw new Je(Jg);return n=this.getNamedItemNS(t.namespaceURI,t.localName),Yg(this._ownerElement,this,t,n),n},removeNamedItem:function(t){var e=this.getNamedItem(t);return Zg(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var n=this.getNamedItemNS(t,e);return Zg(this._ownerElement,this,n),n},getNamedItemNS:function(t,e){for(var n=this.length;n--;){var r=this[n];if(r.localName==e&&r.namespaceURI==t)return r}return null}};function zy(){}zy.prototype={hasFeature:function(t,e){return!0},createDocument:function(t,e,n){var r=new ks;if(r.implementation=this,r.childNodes=new jn,r.doctype=n||null,n&&r.appendChild(n),e){var i=r.createElementNS(t,e);r.appendChild(i)}return r},createDocumentType:function(t,e,n){var r=new kl;return r.name=t,r.nodeName=t,r.publicId=e||"",r.systemId=n||"",r}};function Pe(){}Pe.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return lc(this,t,e)},replaceChild:function(t,e){lc(this,t,e,jy),e&&this.removeChild(e)},removeChild:function(t){return By(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(t){return Zd(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==ac&&t.nodeType==ac?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var n=e._nsMap;if(n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===t)return r}e=e.nodeType==qi?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var n=e._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,t))return n[t];e=e.nodeType==qi?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){var e=this.lookupPrefix(t);return e==null}};function Ry(t){return t=="<"&&"<"||t==">"&&">"||t=="&"&&"&"||t=='"'&&"""||"&#"+t.charCodeAt()+";"}Ss(It,Pe);Ss(It,Pe.prototype);function Yo(t,e){if(e(t))return!0;if(t=t.firstChild)do if(Yo(t,e))return!0;while(t=t.nextSibling)}function ks(){this.ownerDocument=this}function sE(t,e,n){t&&t._inc++;var r=n.namespaceURI;r===Jo.XMLNS&&(e._nsMap[n.prefix?n.localName:""]=n.value)}function Py(t,e,n,r){t&&t._inc++;var i=n.namespaceURI;i===Jo.XMLNS&&delete e._nsMap[n.prefix?n.localName:""]}function Of(t,e,n){if(t&&t._inc){t._inc++;var r=e.childNodes;if(n)r[r.length++]=n;else{for(var i=e.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o,delete r[r.length]}}}function By(t,e){var n=e.previousSibling,r=e.nextSibling;return n?n.nextSibling=r:t.firstChild=r,r?r.previousSibling=n:t.lastChild=n,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,Of(t.ownerDocument,t),e}function aE(t){return t&&(t.nodeType===Pe.DOCUMENT_NODE||t.nodeType===Pe.DOCUMENT_FRAGMENT_NODE||t.nodeType===Pe.ELEMENT_NODE)}function cE(t){return t&&(An(t)||Df(t)||Wn(t)||t.nodeType===Pe.DOCUMENT_FRAGMENT_NODE||t.nodeType===Pe.COMMENT_NODE||t.nodeType===Pe.PROCESSING_INSTRUCTION_NODE)}function Wn(t){return t&&t.nodeType===Pe.DOCUMENT_TYPE_NODE}function An(t){return t&&t.nodeType===Pe.ELEMENT_NODE}function Df(t){return t&&t.nodeType===Pe.TEXT_NODE}function Qg(t,e){var n=t.childNodes||[];if($n(n,An)||Wn(e))return!1;var r=$n(n,Wn);return!(e&&r&&n.indexOf(r)>n.indexOf(e))}function em(t,e){var n=t.childNodes||[];function r(o){return An(o)&&o!==e}if($n(n,r))return!1;var i=$n(n,Wn);return!(e&&i&&n.indexOf(i)>n.indexOf(e))}function lE(t,e,n){if(!aE(t))throw new Je($t,"Unexpected parent node type "+t.nodeType);if(n&&n.parentNode!==t)throw new Je(Oy,"child not in parent");if(!cE(e)||Wn(e)&&t.nodeType!==Pe.DOCUMENT_NODE)throw new Je($t,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)}function uE(t,e,n){var r=t.childNodes||[],i=e.childNodes||[];if(e.nodeType===Pe.DOCUMENT_FRAGMENT_NODE){var o=i.filter(An);if(o.length>1||$n(i,Df))throw new Je($t,"More than one element or text in fragment");if(o.length===1&&!Qg(t,n))throw new Je($t,"Element in fragment can not be inserted before doctype")}if(An(e)&&!Qg(t,n))throw new Je($t,"Only one element can be added and only after doctype");if(Wn(e)){if($n(r,Wn))throw new Je($t,"Only one doctype is allowed");var c=$n(r,An);if(n&&r.indexOf(c)<r.indexOf(n))throw new Je($t,"Doctype can only be inserted before an element");if(!n&&c)throw new Je($t,"Doctype can not be appended since element is present")}}function jy(t,e,n){var r=t.childNodes||[],i=e.childNodes||[];if(e.nodeType===Pe.DOCUMENT_FRAGMENT_NODE){var o=i.filter(An);if(o.length>1||$n(i,Df))throw new Je($t,"More than one element or text in fragment");if(o.length===1&&!em(t,n))throw new Je($t,"Element in fragment can not be inserted before doctype")}if(An(e)&&!em(t,n))throw new Je($t,"Only one element can be added and only after doctype");if(Wn(e)){if($n(r,function(u){return Wn(u)&&u!==n}))throw new Je($t,"Only one doctype is allowed");var c=$n(r,An);if(n&&r.indexOf(c)<r.indexOf(n))throw new Je($t,"Doctype can only be inserted before an element")}}function lc(t,e,n,r){lE(t,e,n),t.nodeType===Pe.DOCUMENT_NODE&&(r||uE)(t,e,n);var i=e.parentNode;if(i&&i.removeChild(e),e.nodeType===Gn){var o=e.firstChild;if(o==null)return e;var c=e.lastChild}else o=c=e;var l=n?n.previousSibling:t.lastChild;o.previousSibling=l,c.nextSibling=n,l?l.nextSibling=o:t.firstChild=o,n==null?t.lastChild=c:n.previousSibling=c;do o.parentNode=t;while(o!==c&&(o=o.nextSibling));return Of(t.ownerDocument||t,t),e.nodeType==Gn&&(e.firstChild=e.lastChild=null),e}function dE(t,e){return e.parentNode&&e.parentNode.removeChild(e),e.parentNode=t,e.previousSibling=t.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:t.firstChild=e,t.lastChild=e,Of(t.ownerDocument,t,e),e}ks.prototype={nodeName:"#document",nodeType:Iy,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==Gn){for(var n=t.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,e),n=r}return t}return lc(this,t,e),t.ownerDocument=this,this.documentElement===null&&t.nodeType===cn&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),By(this,t)},replaceChild:function(t,e){lc(this,t,e,jy),t.ownerDocument=this,e&&this.removeChild(e),An(t)&&(this.documentElement=t)},importNode:function(t,e){return qy(this,t,e)},getElementById:function(t){var e=null;return Yo(this.documentElement,function(n){if(n.nodeType==cn&&n.getAttribute("id")==t)return e=n,!0}),e},getElementsByClassName:function(t){var e=Xg(t);return new Vi(this,function(n){var r=[];return e.length>0&&Yo(n.documentElement,function(i){if(i!==n&&i.nodeType===cn){var o=i.getAttribute("class");if(o){var c=t===o;if(!c){var l=Xg(o);c=e.every(rE(l))}c&&r.push(i)}}}),r})},createElement:function(t){var e=new ti;e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new jn;var n=e.attributes=new cc;return n._ownerElement=e,e},createDocumentFragment:function(){var t=new Nl;return t.ownerDocument=this,t.childNodes=new jn,t},createTextNode:function(t){var e=new zf;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new Rf;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new Pf;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new jf;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new uc;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new Bf;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new ti,r=e.split(":"),i=n.attributes=new cc;return n.childNodes=new jn,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=e,i._ownerElement=n,n},createAttributeNS:function(t,e){var n=new uc,r=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=e,n}};Ct(ks,Pe);function ti(){this._nsMap={}}ti.prototype={nodeType:cn,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var n=this.ownerDocument.createAttribute(t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===Gn?this.insertBefore(t,null):dE(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(t,e){return this.getAttributeNodeNS(t,e)!=null},getAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);return n&&n.value||""},setAttributeNS:function(t,e,n){var r=this.ownerDocument.createAttributeNS(t,e);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new Vi(this,function(e){var n=[];return Yo(e,function(r){r!==e&&r.nodeType==cn&&(t==="*"||r.tagName==t)&&n.push(r)}),n})},getElementsByTagNameNS:function(t,e){return new Vi(this,function(n){var r=[];return Yo(n,function(i){i!==n&&i.nodeType===cn&&(t==="*"||i.namespaceURI===t)&&(e==="*"||i.localName==e)&&r.push(i)}),r})}};ks.prototype.getElementsByTagName=ti.prototype.getElementsByTagName;ks.prototype.getElementsByTagNameNS=ti.prototype.getElementsByTagNameNS;Ct(ti,Pe);function uc(){}uc.prototype.nodeType=qi;Ct(uc,Pe);function Ns(){}Ns.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(ot[$t])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,n){var r=this.data.substring(0,t),i=this.data.substring(t+e);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}};Ct(Ns,Pe);function zf(){}zf.prototype={nodeName:"#text",nodeType:ac,splitText:function(t){var e=this.data,n=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}};Ct(zf,Ns);function Rf(){}Rf.prototype={nodeName:"#comment",nodeType:Cy};Ct(Rf,Ns);function Pf(){}Pf.prototype={nodeName:"#cdata-section",nodeType:Sy};Ct(Pf,Ns);function kl(){}kl.prototype.nodeType=Ty;Ct(kl,Pe);function Ly(){}Ly.prototype.nodeType=oE;Ct(Ly,Pe);function Fy(){}Fy.prototype.nodeType=iE;Ct(Fy,Pe);function Bf(){}Bf.prototype.nodeType=ky;Ct(Bf,Pe);function Nl(){}Nl.prototype.nodeName="#document-fragment";Nl.prototype.nodeType=Gn;Ct(Nl,Pe);function jf(){}jf.prototype.nodeType=Ny;Ct(jf,Pe);function Uy(){}Uy.prototype.serializeToString=function(t,e,n){return My.call(t,e,n)};Pe.prototype.toString=My;function My(t,e){var n=[],r=this.nodeType==9&&this.documentElement||this,i=r.prefix,o=r.namespaceURI;if(o&&i==null){var i=r.lookupPrefix(o);if(i==null)var c=[{namespace:o,prefix:null}]}return bi(this,n,t,e,c),n.join("")}function tm(t,e,n){var r=t.prefix||"",i=t.namespaceURI;if(!i||r==="xml"&&i===Jo.XML||i===Jo.XMLNS)return!1;for(var o=n.length;o--;){var c=n[o];if(c.prefix===r)return c.namespace!==i}return!0}function su(t,e,n){t.push(" ",e,'="',n.replace(/[<>&"\t\n\r]/g,Ry),'"')}function bi(t,e,n,r,i){if(i||(i=[]),r)if(t=r(t),t){if(typeof t=="string"){e.push(t);return}}else return;switch(t.nodeType){case cn:var o=t.attributes,c=o.length,S=t.firstChild,l=t.tagName;n=Jo.isHTML(t.namespaceURI)||n;var u=l;if(!n&&!t.prefix&&t.namespaceURI){for(var d,p=0;p<o.length;p++)if(o.item(p).name==="xmlns"){d=o.item(p).value;break}if(!d)for(var h=i.length-1;h>=0;h--){var g=i[h];if(g.prefix===""&&g.namespace===t.namespaceURI){d=g.namespace;break}}if(d!==t.namespaceURI)for(var h=i.length-1;h>=0;h--){var g=i[h];if(g.namespace===t.namespaceURI){g.prefix&&(u=g.prefix+":"+l);break}}}e.push("<",u);for(var A=0;A<c;A++){var m=o.item(A);m.prefix=="xmlns"?i.push({prefix:m.localName,namespace:m.value}):m.nodeName=="xmlns"&&i.push({prefix:"",namespace:m.value})}for(var A=0;A<c;A++){var m=o.item(A);if(tm(m,n,i)){var $=m.prefix||"",k=m.namespaceURI;su(e,$?"xmlns:"+$:"xmlns",k),i.push({prefix:$,namespace:k})}bi(m,e,n,r,i)}if(l===u&&tm(t,n,i)){var $=t.prefix||"",k=t.namespaceURI;su(e,$?"xmlns:"+$:"xmlns",k),i.push({prefix:$,namespace:k})}if(S||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(l)){if(e.push(">"),n&&/^script$/i.test(l))for(;S;)S.data?e.push(S.data):bi(S,e,n,r,i.slice()),S=S.nextSibling;else for(;S;)bi(S,e,n,r,i.slice()),S=S.nextSibling;e.push("</",u,">")}else e.push("/>");return;case Iy:case Gn:for(var S=t.firstChild;S;)bi(S,e,n,r,i.slice()),S=S.nextSibling;return;case qi:return su(e,t.name,t.value);case ac:return e.push(t.data.replace(/[<&>]/g,Ry));case Sy:return e.push("<![CDATA[",t.data,"]]>");case Cy:return e.push("<!--",t.data,"-->");case Ty:var b=t.publicId,T=t.systemId;if(e.push("<!DOCTYPE ",t.name),b)e.push(" PUBLIC ",b),T&&T!="."&&e.push(" ",T),e.push(">");else if(T&&T!=".")e.push(" SYSTEM ",T,">");else{var M=t.internalSubset;M&&e.push(" [",M,"]"),e.push(">")}return;case Ny:return e.push("<?",t.target," ",t.data,"?>");case ky:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function qy(t,e,n){var r;switch(e.nodeType){case cn:r=e.cloneNode(!1),r.ownerDocument=t;case Gn:break;case qi:n=!0;break}if(r||(r=e.cloneNode(!1)),r.ownerDocument=t,r.parentNode=null,n)for(var i=e.firstChild;i;)r.appendChild(qy(t,i,n)),i=i.nextSibling;return r}function Zd(t,e,n){var r=new e.constructor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=e[i];typeof o!="object"&&o!=r[i]&&(r[i]=o)}switch(e.childNodes&&(r.childNodes=new jn),r.ownerDocument=t,r.nodeType){case cn:var c=e.attributes,l=r.attributes=new cc,u=c.length;l._ownerElement=r;for(var d=0;d<u;d++)r.setAttributeNode(Zd(t,c.item(d),!0));break;case qi:n=!0}if(n)for(var p=e.firstChild;p;)r.appendChild(Zd(t,p,n)),p=p.nextSibling;return r}function Vy(t,e,n){t[e]=n}try{if(Object.defineProperty){let t=function(e){switch(e.nodeType){case cn:case Gn:var n=[];for(e=e.firstChild;e;)e.nodeType!==7&&e.nodeType!==8&&n.push(t(e)),e=e.nextSibling;return n.join("");default:return e.nodeValue}};Object.defineProperty(Vi.prototype,"length",{get:function(){return Tf(this),this.$$length}}),Object.defineProperty(Pe.prototype,"textContent",{get:function(){return t(this)},set:function(e){switch(this.nodeType){case cn:case Gn:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Vy=function(e,n,r){e["$$"+n]=r}}}catch{}tr.DocumentType=kl;tr.DOMException=Je;tr.DOMImplementation=zy;tr.Element=ti;tr.Node=Pe;tr.NodeList=jn;tr.XMLSerializer=Uy;var Cl={},Hy={};(function(t){var e=nr.freeze;t.XML_ENTITIES=e({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=e({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
281
|
-
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),t.entityMap=t.HTML_ENTITIES})(Hy);var Lf={},Zo=nr.NAMESPACE,Qd=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,nm=new RegExp("[\\-\\.0-9"+Qd.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),rm=new RegExp("^"+Qd.source+nm.source+"*(?::"+Qd.source+nm.source+"*)?$"),fo=0,sr=1,di=2,ho=3,pi=4,fi=5,go=6,Us=7;function Hi(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,Hi)}Hi.prototype=new Error;Hi.prototype.name=Hi.name;function Ky(){}Ky.prototype={parse:function(t,e,n){var r=this.domBuilder;r.startDocument(),Gy(e,e={}),pE(t,e,n,r,this.errorHandler),r.endDocument()}};function pE(t,e,n,r,i){function o(j){if(j>65535){j-=65536;var V=55296+(j>>10),de=56320+(j&1023);return String.fromCharCode(V,de)}else return String.fromCharCode(j)}function c(j){var V=j.slice(1,-1);return Object.hasOwnProperty.call(n,V)?n[V]:V.charAt(0)==="#"?o(parseInt(V.substr(1).replace("x","0x"))):(i.error("entity not found:"+j),j)}function l(j){if(j>$){var V=t.substring($,j).replace(/&#?\w+;/g,c);g&&u($),r.characters(V,0,j-$),$=j}}function u(j,V){for(;j>=p&&(V=h.exec(t));)d=V.index,p=d+V[0].length,g.lineNumber++;g.columnNumber=j-d+1}for(var d=0,p=0,h=/.*(?:\r\n?|\n)|.*$/g,g=r.locator,A=[{currentNSMap:e}],m={},$=0;;){try{var k=t.indexOf("<",$);if(k<0){if(!t.substr($).match(/^\s*$/)){var S=r.doc,b=S.createTextNode(t.substr($));S.appendChild(b),r.currentElement=b}return}switch(k>$&&l(k),t.charAt(k+1)){case"/":var B=t.indexOf(">",k+3),T=t.substring(k+2,B).replace(/[ \t\n\r]+$/g,""),M=A.pop();B<0?(T=t.substring(k+2).replace(/[\s<].*/,""),i.error("end tag name: "+T+" is not complete:"+M.tagName),B=k+1+T.length):T.match(/\s</)&&(T=T.replace(/[\s<].*/,""),i.error("end tag name: "+T+" maybe not complete"),B=k+1+T.length);var U=M.localNSMap,H=M.tagName==T,W=H||M.tagName&&M.tagName.toLowerCase()==T.toLowerCase();if(W){if(r.endElement(M.uri,M.localName,T),U)for(var J in U)Object.prototype.hasOwnProperty.call(U,J)&&r.endPrefixMapping(J);H||i.fatalError("end tag name: "+T+" is not match the current start tagName:"+M.tagName)}else A.push(M);B++;break;case"?":g&&u(k),B=_E(t,k,r);break;case"!":g&&u(k),B=mE(t,k,r,i);break;default:g&&u(k);var ue=new Wy,Ne=A[A.length-1].currentNSMap,B=fE(t,k,ue,Ne,c,i),L=ue.length;if(!ue.closed&&gE(t,B,ue.tagName,m)&&(ue.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),g&&L){for(var P=im(g,{}),I=0;I<L;I++){var C=ue[I];u(C.offset),C.locator=im(g,{})}r.locator=P,om(ue,r,Ne)&&A.push(ue),r.locator=g}else om(ue,r,Ne)&&A.push(ue);Zo.isHTML(ue.uri)&&!ue.closed?B=hE(t,B,ue.tagName,c,r):B++}}catch(j){if(j instanceof Hi)throw j;i.error("element parse error: "+j),B=-1}B>$?$=B:l(Math.max(k,$)+1)}}function im(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function fE(t,e,n,r,i,o){function c(g,A,m){n.attributeNames.hasOwnProperty(g)&&o.fatalError("Attribute "+g+" redefined"),n.addValue(g,A.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i),m)}for(var l,u,d=++e,p=fo;;){var h=t.charAt(d);switch(h){case"=":if(p===sr)l=t.slice(e,d),p=ho;else if(p===di)p=ho;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(p===ho||p===sr)if(p===sr&&(o.warning('attribute value must after "="'),l=t.slice(e,d)),e=d+1,d=t.indexOf(h,e),d>0)u=t.slice(e,d),c(l,u,e-1),p=fi;else throw new Error("attribute value no end '"+h+"' match");else if(p==pi)u=t.slice(e,d),c(l,u,e),o.warning('attribute "'+l+'" missed start quot('+h+")!!"),e=d+1,p=fi;else throw new Error('attribute value must after "="');break;case"/":switch(p){case fo:n.setTagName(t.slice(e,d));case fi:case go:case Us:p=Us,n.closed=!0;case pi:case sr:break;case di:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),p==fo&&n.setTagName(t.slice(e,d)),d;case">":switch(p){case fo:n.setTagName(t.slice(e,d));case fi:case go:case Us:break;case pi:case sr:u=t.slice(e,d),u.slice(-1)==="/"&&(n.closed=!0,u=u.slice(0,-1));case di:p===di&&(u=l),p==pi?(o.warning('attribute "'+u+'" missed quot(")!'),c(l,u,e)):((!Zo.isHTML(r[""])||!u.match(/^(?:disabled|checked|selected)$/i))&&o.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),c(u,u,e));break;case ho:throw new Error("attribute value missed!!")}return d;case"":h=" ";default:if(h<=" ")switch(p){case fo:n.setTagName(t.slice(e,d)),p=go;break;case sr:l=t.slice(e,d),p=di;break;case pi:var u=t.slice(e,d);o.warning('attribute "'+u+'" missed quot(")!!'),c(l,u,e);case fi:p=go;break}else switch(p){case di:n.tagName,(!Zo.isHTML(r[""])||!l.match(/^(?:disabled|checked|selected)$/i))&&o.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),c(l,l,e),e=d,p=sr;break;case fi:o.warning('attribute space is required"'+l+'"!!');case go:p=sr,e=d;break;case ho:p=pi,e=d;break;case Us:throw new Error("elements closed character '/' and '>' must be connected to")}}d++}}function om(t,e,n){for(var r=t.tagName,i=null,h=t.length;h--;){var o=t[h],c=o.qName,l=o.value,g=c.indexOf(":");if(g>0)var u=o.prefix=c.slice(0,g),d=c.slice(g+1),p=u==="xmlns"&&d;else d=c,u=null,p=c==="xmlns"&&"";o.localName=d,p!==!1&&(i==null&&(i={},Gy(n,n={})),n[p]=i[p]=l,o.uri=Zo.XMLNS,e.startPrefixMapping(p,l))}for(var h=t.length;h--;){o=t[h];var u=o.prefix;u&&(u==="xml"&&(o.uri=Zo.XML),u!=="xmlns"&&(o.uri=n[u||""]))}var g=r.indexOf(":");g>0?(u=t.prefix=r.slice(0,g),d=t.localName=r.slice(g+1)):(u=null,d=t.localName=r);var A=t.uri=n[u||""];if(e.startElement(A,d,r,t),t.closed){if(e.endElement(A,d,r),i)for(u in i)Object.prototype.hasOwnProperty.call(i,u)&&e.endPrefixMapping(u)}else return t.currentNSMap=n,t.localNSMap=i,!0}function hE(t,e,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=t.indexOf("</"+n+">",e),c=t.substring(e+1,o);if(/[&<]/.test(c))return/^script$/i.test(n)?(i.characters(c,0,c.length),o):(c=c.replace(/&#?\w+;/g,r),i.characters(c,0,c.length),o)}return e+1}function gE(t,e,n,r){var i=r[n];return i==null&&(i=t.lastIndexOf("</"+n+">"),i<e&&(i=t.lastIndexOf("</"+n)),r[n]=i),i<e}function Gy(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}function mE(t,e,n,r){var i=t.charAt(e+2);switch(i){case"-":if(t.charAt(e+3)==="-"){var o=t.indexOf("-->",e+4);return o>e?(n.comment(t,e+4,o-e-4),o+3):(r.error("Unclosed comment"),-1)}else return-1;default:if(t.substr(e+3,6)=="CDATA["){var o=t.indexOf("]]>",e+9);return n.startCDATA(),n.characters(t,e+9,o-e-9),n.endCDATA(),o+3}var c=yE(t,e),l=c.length;if(l>1&&/!doctype/i.test(c[0][0])){var u=c[1][0],d=!1,p=!1;l>3&&(/^public$/i.test(c[2][0])?(d=c[3][0],p=l>4&&c[4][0]):/^system$/i.test(c[2][0])&&(p=c[3][0]));var h=c[l-1];return n.startDTD(u,d,p),n.endDTD(),h.index+h[0].length}}return-1}function _E(t,e,n){var r=t.indexOf("?>",e);if(r){var i=t.substring(e,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return i?(i[0].length,n.processingInstruction(i[1],i[2]),r+2):-1}return-1}function Wy(){this.attributeNames={}}Wy.prototype={setTagName:function(t){if(!rm.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,n){if(!rm.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};function yE(t,e){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=e,i.exec(t);n=i.exec(t);)if(r.push(n),n[1])return r}Lf.XMLReader=Ky;Lf.ParseError=Hi;var wE=nr,vE=tr,sm=Hy,Xy=Lf,bE=vE.DOMImplementation,am=wE.NAMESPACE,xE=Xy.ParseError,$E=Xy.XMLReader;function Jy(t){return t.replace(/\r[\n\u0085]/g,`
|
|
280
|
+
`:"",l=Nr.encodeSpecialCharactersInText(e.data);return`${o}<!--${l}-->${c}`}process(e,n){n=n||{};let r=n.inclusiveNamespacesPrefixList||[];const i=n.defaultNs||"",o=n.defaultNsForPrefix||{},c=n.ancestorNamespaces||[];if(!Nr.isArrayHasLength(r)){const u=Nr.findChildren(e,"CanonicalizationMethod");if(u.length!==0){const d=Nr.findChildren(u[0],"InclusiveNamespaces");d.length!==0&&(r=(d[0].getAttribute("PrefixList")||"").split(" "))}}return Nr.isArrayHasLength(r)&&r.forEach(function(u){c&&c.forEach(function(d){u===d.prefix&&e.setAttributeNS("http://www.w3.org/2000/xmlns/",`xmlns:${u}`,d.namespaceURI)})}),this.processInner(e,[],i,o,r)}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#"}}ei.ExclusiveCanonicalization=xy;class Z8 extends xy{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#WithComments"}}ei.ExclusiveCanonicalizationWithComments=Z8;var El={},Sl={},tr={},nr={};function Q8(t,e,n){if(n===void 0&&(n=Array.prototype),t&&typeof n.find=="function")return n.find.call(t,e);for(var r=0;r<t.length;r++)if(Object.prototype.hasOwnProperty.call(t,r)){var i=t[r];if(e.call(void 0,i,r,t))return i}}function If(t,e){return e===void 0&&(e=Object),e&&typeof e.freeze=="function"?e.freeze(t):t}function eE(t,e){if(t===null||typeof t!="object")throw new TypeError("target is not an object");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var $y=If({HTML:"text/html",isHTML:function(t){return t===$y.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),Ay=If({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===Ay.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});nr.assign=eE;nr.find=Q8;nr.freeze=If;nr.MIME_TYPE=$y;nr.NAMESPACE=Ay;var Ey=nr,$n=Ey.find,Jo=Ey.NAMESPACE;function tE(t){return t!==""}function nE(t){return t?t.split(/[\t\n\f\r ]+/).filter(tE):[]}function rE(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function Xg(t){if(!t)return[];var e=nE(t);return Object.keys(e.reduce(rE,{}))}function iE(t){return function(e){return t&&t.indexOf(e)!==-1}}function Ss(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}function Ct(t,e){var n=t.prototype;if(!(n instanceof e)){let r=function(){};r.prototype=e.prototype,r=new r,Ss(n,r),t.prototype=n=r}n.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),n.constructor=t)}var It={},cn=It.ELEMENT_NODE=1,qi=It.ATTRIBUTE_NODE=2,ac=It.TEXT_NODE=3,Sy=It.CDATA_SECTION_NODE=4,ky=It.ENTITY_REFERENCE_NODE=5,oE=It.ENTITY_NODE=6,Ny=It.PROCESSING_INSTRUCTION_NODE=7,Cy=It.COMMENT_NODE=8,Iy=It.DOCUMENT_NODE=9,Ty=It.DOCUMENT_TYPE_NODE=10,Gn=It.DOCUMENT_FRAGMENT_NODE=11,sE=It.NOTATION_NODE=12,ft={},ot={};ft.INDEX_SIZE_ERR=(ot[1]="Index size error",1);ft.DOMSTRING_SIZE_ERR=(ot[2]="DOMString size error",2);var $t=ft.HIERARCHY_REQUEST_ERR=(ot[3]="Hierarchy request error",3);ft.WRONG_DOCUMENT_ERR=(ot[4]="Wrong document",4);ft.INVALID_CHARACTER_ERR=(ot[5]="Invalid character",5);ft.NO_DATA_ALLOWED_ERR=(ot[6]="No data allowed",6);ft.NO_MODIFICATION_ALLOWED_ERR=(ot[7]="No modification allowed",7);var Oy=ft.NOT_FOUND_ERR=(ot[8]="Not found",8);ft.NOT_SUPPORTED_ERR=(ot[9]="Not supported",9);var Jg=ft.INUSE_ATTRIBUTE_ERR=(ot[10]="Attribute in use",10);ft.INVALID_STATE_ERR=(ot[11]="Invalid state",11);ft.SYNTAX_ERR=(ot[12]="Syntax error",12);ft.INVALID_MODIFICATION_ERR=(ot[13]="Invalid modification",13);ft.NAMESPACE_ERR=(ot[14]="Invalid namespace",14);ft.INVALID_ACCESS_ERR=(ot[15]="Invalid access",15);function Je(t,e){if(e instanceof Error)var n=e;else n=this,Error.call(this,ot[t]),this.message=ot[t],Error.captureStackTrace&&Error.captureStackTrace(this,Je);return n.code=t,e&&(this.message=this.message+": "+e),n}Je.prototype=Error.prototype;Ss(ft,Je);function jn(){}jn.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,e){for(var n=[],r=0;r<this.length;r++)bi(this[r],n,t,e);return n.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}};function Vi(t,e){this._node=t,this._refresh=e,Tf(this)}function Tf(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==e){var n=t._refresh(t._node);if(Vy(t,"length",n.length),!t.$$length||n.length<t.$$length)for(var r=n.length;r in t;r++)Object.prototype.hasOwnProperty.call(t,r)&&delete t[r];Ss(n,t),t._inc=e}}Vi.prototype.item=function(t){return Tf(this),this[t]||null};Ct(Vi,jn);function cc(){}function Dy(t,e){for(var n=t.length;n--;)if(t[n]===e)return n}function Yg(t,e,n,r){if(r?e[Dy(e,r)]=n:e[e.length++]=n,t){n.ownerElement=t;var i=t.ownerDocument;i&&(r&&Py(i,t,r),aE(i,t,n))}}function Zg(t,e,n){var r=Dy(e,n);if(r>=0){for(var i=e.length-1;r<i;)e[r]=e[++r];if(e.length=i,t){var o=t.ownerDocument;o&&(Py(o,t,n),n.ownerElement=null)}}else throw new Je(Oy,new Error(t.tagName+"@"+n))}cc.prototype={length:0,item:jn.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var n=this[e];if(n.nodeName==t)return n}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new Je(Jg);var n=this.getNamedItem(t.nodeName);return Yg(this._ownerElement,this,t,n),n},setNamedItemNS:function(t){var e=t.ownerElement,n;if(e&&e!=this._ownerElement)throw new Je(Jg);return n=this.getNamedItemNS(t.namespaceURI,t.localName),Yg(this._ownerElement,this,t,n),n},removeNamedItem:function(t){var e=this.getNamedItem(t);return Zg(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var n=this.getNamedItemNS(t,e);return Zg(this._ownerElement,this,n),n},getNamedItemNS:function(t,e){for(var n=this.length;n--;){var r=this[n];if(r.localName==e&&r.namespaceURI==t)return r}return null}};function zy(){}zy.prototype={hasFeature:function(t,e){return!0},createDocument:function(t,e,n){var r=new ks;if(r.implementation=this,r.childNodes=new jn,r.doctype=n||null,n&&r.appendChild(n),e){var i=r.createElementNS(t,e);r.appendChild(i)}return r},createDocumentType:function(t,e,n){var r=new kl;return r.name=t,r.nodeName=t,r.publicId=e||"",r.systemId=n||"",r}};function Pe(){}Pe.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return lc(this,t,e)},replaceChild:function(t,e){lc(this,t,e,jy),e&&this.removeChild(e)},removeChild:function(t){return By(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(t){return Zd(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==ac&&t.nodeType==ac?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var n=e._nsMap;if(n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===t)return r}e=e.nodeType==qi?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var n=e._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,t))return n[t];e=e.nodeType==qi?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){var e=this.lookupPrefix(t);return e==null}};function Ry(t){return t=="<"&&"<"||t==">"&&">"||t=="&"&&"&"||t=='"'&&"""||"&#"+t.charCodeAt()+";"}Ss(It,Pe);Ss(It,Pe.prototype);function Yo(t,e){if(e(t))return!0;if(t=t.firstChild)do if(Yo(t,e))return!0;while(t=t.nextSibling)}function ks(){this.ownerDocument=this}function aE(t,e,n){t&&t._inc++;var r=n.namespaceURI;r===Jo.XMLNS&&(e._nsMap[n.prefix?n.localName:""]=n.value)}function Py(t,e,n,r){t&&t._inc++;var i=n.namespaceURI;i===Jo.XMLNS&&delete e._nsMap[n.prefix?n.localName:""]}function Of(t,e,n){if(t&&t._inc){t._inc++;var r=e.childNodes;if(n)r[r.length++]=n;else{for(var i=e.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o,delete r[r.length]}}}function By(t,e){var n=e.previousSibling,r=e.nextSibling;return n?n.nextSibling=r:t.firstChild=r,r?r.previousSibling=n:t.lastChild=n,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,Of(t.ownerDocument,t),e}function cE(t){return t&&(t.nodeType===Pe.DOCUMENT_NODE||t.nodeType===Pe.DOCUMENT_FRAGMENT_NODE||t.nodeType===Pe.ELEMENT_NODE)}function lE(t){return t&&(An(t)||Df(t)||Wn(t)||t.nodeType===Pe.DOCUMENT_FRAGMENT_NODE||t.nodeType===Pe.COMMENT_NODE||t.nodeType===Pe.PROCESSING_INSTRUCTION_NODE)}function Wn(t){return t&&t.nodeType===Pe.DOCUMENT_TYPE_NODE}function An(t){return t&&t.nodeType===Pe.ELEMENT_NODE}function Df(t){return t&&t.nodeType===Pe.TEXT_NODE}function Qg(t,e){var n=t.childNodes||[];if($n(n,An)||Wn(e))return!1;var r=$n(n,Wn);return!(e&&r&&n.indexOf(r)>n.indexOf(e))}function em(t,e){var n=t.childNodes||[];function r(o){return An(o)&&o!==e}if($n(n,r))return!1;var i=$n(n,Wn);return!(e&&i&&n.indexOf(i)>n.indexOf(e))}function uE(t,e,n){if(!cE(t))throw new Je($t,"Unexpected parent node type "+t.nodeType);if(n&&n.parentNode!==t)throw new Je(Oy,"child not in parent");if(!lE(e)||Wn(e)&&t.nodeType!==Pe.DOCUMENT_NODE)throw new Je($t,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)}function dE(t,e,n){var r=t.childNodes||[],i=e.childNodes||[];if(e.nodeType===Pe.DOCUMENT_FRAGMENT_NODE){var o=i.filter(An);if(o.length>1||$n(i,Df))throw new Je($t,"More than one element or text in fragment");if(o.length===1&&!Qg(t,n))throw new Je($t,"Element in fragment can not be inserted before doctype")}if(An(e)&&!Qg(t,n))throw new Je($t,"Only one element can be added and only after doctype");if(Wn(e)){if($n(r,Wn))throw new Je($t,"Only one doctype is allowed");var c=$n(r,An);if(n&&r.indexOf(c)<r.indexOf(n))throw new Je($t,"Doctype can only be inserted before an element");if(!n&&c)throw new Je($t,"Doctype can not be appended since element is present")}}function jy(t,e,n){var r=t.childNodes||[],i=e.childNodes||[];if(e.nodeType===Pe.DOCUMENT_FRAGMENT_NODE){var o=i.filter(An);if(o.length>1||$n(i,Df))throw new Je($t,"More than one element or text in fragment");if(o.length===1&&!em(t,n))throw new Je($t,"Element in fragment can not be inserted before doctype")}if(An(e)&&!em(t,n))throw new Je($t,"Only one element can be added and only after doctype");if(Wn(e)){if($n(r,function(u){return Wn(u)&&u!==n}))throw new Je($t,"Only one doctype is allowed");var c=$n(r,An);if(n&&r.indexOf(c)<r.indexOf(n))throw new Je($t,"Doctype can only be inserted before an element")}}function lc(t,e,n,r){uE(t,e,n),t.nodeType===Pe.DOCUMENT_NODE&&(r||dE)(t,e,n);var i=e.parentNode;if(i&&i.removeChild(e),e.nodeType===Gn){var o=e.firstChild;if(o==null)return e;var c=e.lastChild}else o=c=e;var l=n?n.previousSibling:t.lastChild;o.previousSibling=l,c.nextSibling=n,l?l.nextSibling=o:t.firstChild=o,n==null?t.lastChild=c:n.previousSibling=c;do o.parentNode=t;while(o!==c&&(o=o.nextSibling));return Of(t.ownerDocument||t,t),e.nodeType==Gn&&(e.firstChild=e.lastChild=null),e}function pE(t,e){return e.parentNode&&e.parentNode.removeChild(e),e.parentNode=t,e.previousSibling=t.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:t.firstChild=e,t.lastChild=e,Of(t.ownerDocument,t,e),e}ks.prototype={nodeName:"#document",nodeType:Iy,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==Gn){for(var n=t.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,e),n=r}return t}return lc(this,t,e),t.ownerDocument=this,this.documentElement===null&&t.nodeType===cn&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),By(this,t)},replaceChild:function(t,e){lc(this,t,e,jy),t.ownerDocument=this,e&&this.removeChild(e),An(t)&&(this.documentElement=t)},importNode:function(t,e){return qy(this,t,e)},getElementById:function(t){var e=null;return Yo(this.documentElement,function(n){if(n.nodeType==cn&&n.getAttribute("id")==t)return e=n,!0}),e},getElementsByClassName:function(t){var e=Xg(t);return new Vi(this,function(n){var r=[];return e.length>0&&Yo(n.documentElement,function(i){if(i!==n&&i.nodeType===cn){var o=i.getAttribute("class");if(o){var c=t===o;if(!c){var l=Xg(o);c=e.every(iE(l))}c&&r.push(i)}}}),r})},createElement:function(t){var e=new ti;e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new jn;var n=e.attributes=new cc;return n._ownerElement=e,e},createDocumentFragment:function(){var t=new Nl;return t.ownerDocument=this,t.childNodes=new jn,t},createTextNode:function(t){var e=new zf;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new Rf;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new Pf;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new jf;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new uc;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new Bf;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new ti,r=e.split(":"),i=n.attributes=new cc;return n.childNodes=new jn,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=e,i._ownerElement=n,n},createAttributeNS:function(t,e){var n=new uc,r=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=e,n}};Ct(ks,Pe);function ti(){this._nsMap={}}ti.prototype={nodeType:cn,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var n=this.ownerDocument.createAttribute(t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===Gn?this.insertBefore(t,null):pE(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(t,e){return this.getAttributeNodeNS(t,e)!=null},getAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);return n&&n.value||""},setAttributeNS:function(t,e,n){var r=this.ownerDocument.createAttributeNS(t,e);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new Vi(this,function(e){var n=[];return Yo(e,function(r){r!==e&&r.nodeType==cn&&(t==="*"||r.tagName==t)&&n.push(r)}),n})},getElementsByTagNameNS:function(t,e){return new Vi(this,function(n){var r=[];return Yo(n,function(i){i!==n&&i.nodeType===cn&&(t==="*"||i.namespaceURI===t)&&(e==="*"||i.localName==e)&&r.push(i)}),r})}};ks.prototype.getElementsByTagName=ti.prototype.getElementsByTagName;ks.prototype.getElementsByTagNameNS=ti.prototype.getElementsByTagNameNS;Ct(ti,Pe);function uc(){}uc.prototype.nodeType=qi;Ct(uc,Pe);function Ns(){}Ns.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(ot[$t])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,n){var r=this.data.substring(0,t),i=this.data.substring(t+e);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}};Ct(Ns,Pe);function zf(){}zf.prototype={nodeName:"#text",nodeType:ac,splitText:function(t){var e=this.data,n=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}};Ct(zf,Ns);function Rf(){}Rf.prototype={nodeName:"#comment",nodeType:Cy};Ct(Rf,Ns);function Pf(){}Pf.prototype={nodeName:"#cdata-section",nodeType:Sy};Ct(Pf,Ns);function kl(){}kl.prototype.nodeType=Ty;Ct(kl,Pe);function Ly(){}Ly.prototype.nodeType=sE;Ct(Ly,Pe);function Fy(){}Fy.prototype.nodeType=oE;Ct(Fy,Pe);function Bf(){}Bf.prototype.nodeType=ky;Ct(Bf,Pe);function Nl(){}Nl.prototype.nodeName="#document-fragment";Nl.prototype.nodeType=Gn;Ct(Nl,Pe);function jf(){}jf.prototype.nodeType=Ny;Ct(jf,Pe);function Uy(){}Uy.prototype.serializeToString=function(t,e,n){return My.call(t,e,n)};Pe.prototype.toString=My;function My(t,e){var n=[],r=this.nodeType==9&&this.documentElement||this,i=r.prefix,o=r.namespaceURI;if(o&&i==null){var i=r.lookupPrefix(o);if(i==null)var c=[{namespace:o,prefix:null}]}return bi(this,n,t,e,c),n.join("")}function tm(t,e,n){var r=t.prefix||"",i=t.namespaceURI;if(!i||r==="xml"&&i===Jo.XML||i===Jo.XMLNS)return!1;for(var o=n.length;o--;){var c=n[o];if(c.prefix===r)return c.namespace!==i}return!0}function su(t,e,n){t.push(" ",e,'="',n.replace(/[<>&"\t\n\r]/g,Ry),'"')}function bi(t,e,n,r,i){if(i||(i=[]),r)if(t=r(t),t){if(typeof t=="string"){e.push(t);return}}else return;switch(t.nodeType){case cn:var o=t.attributes,c=o.length,S=t.firstChild,l=t.tagName;n=Jo.isHTML(t.namespaceURI)||n;var u=l;if(!n&&!t.prefix&&t.namespaceURI){for(var d,p=0;p<o.length;p++)if(o.item(p).name==="xmlns"){d=o.item(p).value;break}if(!d)for(var h=i.length-1;h>=0;h--){var g=i[h];if(g.prefix===""&&g.namespace===t.namespaceURI){d=g.namespace;break}}if(d!==t.namespaceURI)for(var h=i.length-1;h>=0;h--){var g=i[h];if(g.namespace===t.namespaceURI){g.prefix&&(u=g.prefix+":"+l);break}}}e.push("<",u);for(var A=0;A<c;A++){var m=o.item(A);m.prefix=="xmlns"?i.push({prefix:m.localName,namespace:m.value}):m.nodeName=="xmlns"&&i.push({prefix:"",namespace:m.value})}for(var A=0;A<c;A++){var m=o.item(A);if(tm(m,n,i)){var $=m.prefix||"",k=m.namespaceURI;su(e,$?"xmlns:"+$:"xmlns",k),i.push({prefix:$,namespace:k})}bi(m,e,n,r,i)}if(l===u&&tm(t,n,i)){var $=t.prefix||"",k=t.namespaceURI;su(e,$?"xmlns:"+$:"xmlns",k),i.push({prefix:$,namespace:k})}if(S||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(l)){if(e.push(">"),n&&/^script$/i.test(l))for(;S;)S.data?e.push(S.data):bi(S,e,n,r,i.slice()),S=S.nextSibling;else for(;S;)bi(S,e,n,r,i.slice()),S=S.nextSibling;e.push("</",u,">")}else e.push("/>");return;case Iy:case Gn:for(var S=t.firstChild;S;)bi(S,e,n,r,i.slice()),S=S.nextSibling;return;case qi:return su(e,t.name,t.value);case ac:return e.push(t.data.replace(/[<&>]/g,Ry));case Sy:return e.push("<![CDATA[",t.data,"]]>");case Cy:return e.push("<!--",t.data,"-->");case Ty:var b=t.publicId,T=t.systemId;if(e.push("<!DOCTYPE ",t.name),b)e.push(" PUBLIC ",b),T&&T!="."&&e.push(" ",T),e.push(">");else if(T&&T!=".")e.push(" SYSTEM ",T,">");else{var M=t.internalSubset;M&&e.push(" [",M,"]"),e.push(">")}return;case Ny:return e.push("<?",t.target," ",t.data,"?>");case ky:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function qy(t,e,n){var r;switch(e.nodeType){case cn:r=e.cloneNode(!1),r.ownerDocument=t;case Gn:break;case qi:n=!0;break}if(r||(r=e.cloneNode(!1)),r.ownerDocument=t,r.parentNode=null,n)for(var i=e.firstChild;i;)r.appendChild(qy(t,i,n)),i=i.nextSibling;return r}function Zd(t,e,n){var r=new e.constructor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=e[i];typeof o!="object"&&o!=r[i]&&(r[i]=o)}switch(e.childNodes&&(r.childNodes=new jn),r.ownerDocument=t,r.nodeType){case cn:var c=e.attributes,l=r.attributes=new cc,u=c.length;l._ownerElement=r;for(var d=0;d<u;d++)r.setAttributeNode(Zd(t,c.item(d),!0));break;case qi:n=!0}if(n)for(var p=e.firstChild;p;)r.appendChild(Zd(t,p,n)),p=p.nextSibling;return r}function Vy(t,e,n){t[e]=n}try{if(Object.defineProperty){let t=function(e){switch(e.nodeType){case cn:case Gn:var n=[];for(e=e.firstChild;e;)e.nodeType!==7&&e.nodeType!==8&&n.push(t(e)),e=e.nextSibling;return n.join("");default:return e.nodeValue}};Object.defineProperty(Vi.prototype,"length",{get:function(){return Tf(this),this.$$length}}),Object.defineProperty(Pe.prototype,"textContent",{get:function(){return t(this)},set:function(e){switch(this.nodeType){case cn:case Gn:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Vy=function(e,n,r){e["$$"+n]=r}}}catch{}tr.DocumentType=kl;tr.DOMException=Je;tr.DOMImplementation=zy;tr.Element=ti;tr.Node=Pe;tr.NodeList=jn;tr.XMLSerializer=Uy;var Cl={},Hy={};(function(t){var e=nr.freeze;t.XML_ENTITIES=e({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=e({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
281
|
+
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),t.entityMap=t.HTML_ENTITIES})(Hy);var Lf={},Zo=nr.NAMESPACE,Qd=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,nm=new RegExp("[\\-\\.0-9"+Qd.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),rm=new RegExp("^"+Qd.source+nm.source+"*(?::"+Qd.source+nm.source+"*)?$"),fo=0,sr=1,di=2,ho=3,pi=4,fi=5,go=6,Us=7;function Hi(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,Hi)}Hi.prototype=new Error;Hi.prototype.name=Hi.name;function Ky(){}Ky.prototype={parse:function(t,e,n){var r=this.domBuilder;r.startDocument(),Gy(e,e={}),fE(t,e,n,r,this.errorHandler),r.endDocument()}};function fE(t,e,n,r,i){function o(j){if(j>65535){j-=65536;var V=55296+(j>>10),de=56320+(j&1023);return String.fromCharCode(V,de)}else return String.fromCharCode(j)}function c(j){var V=j.slice(1,-1);return Object.hasOwnProperty.call(n,V)?n[V]:V.charAt(0)==="#"?o(parseInt(V.substr(1).replace("x","0x"))):(i.error("entity not found:"+j),j)}function l(j){if(j>$){var V=t.substring($,j).replace(/&#?\w+;/g,c);g&&u($),r.characters(V,0,j-$),$=j}}function u(j,V){for(;j>=p&&(V=h.exec(t));)d=V.index,p=d+V[0].length,g.lineNumber++;g.columnNumber=j-d+1}for(var d=0,p=0,h=/.*(?:\r\n?|\n)|.*$/g,g=r.locator,A=[{currentNSMap:e}],m={},$=0;;){try{var k=t.indexOf("<",$);if(k<0){if(!t.substr($).match(/^\s*$/)){var S=r.doc,b=S.createTextNode(t.substr($));S.appendChild(b),r.currentElement=b}return}switch(k>$&&l(k),t.charAt(k+1)){case"/":var B=t.indexOf(">",k+3),T=t.substring(k+2,B).replace(/[ \t\n\r]+$/g,""),M=A.pop();B<0?(T=t.substring(k+2).replace(/[\s<].*/,""),i.error("end tag name: "+T+" is not complete:"+M.tagName),B=k+1+T.length):T.match(/\s</)&&(T=T.replace(/[\s<].*/,""),i.error("end tag name: "+T+" maybe not complete"),B=k+1+T.length);var U=M.localNSMap,H=M.tagName==T,W=H||M.tagName&&M.tagName.toLowerCase()==T.toLowerCase();if(W){if(r.endElement(M.uri,M.localName,T),U)for(var J in U)Object.prototype.hasOwnProperty.call(U,J)&&r.endPrefixMapping(J);H||i.fatalError("end tag name: "+T+" is not match the current start tagName:"+M.tagName)}else A.push(M);B++;break;case"?":g&&u(k),B=yE(t,k,r);break;case"!":g&&u(k),B=_E(t,k,r,i);break;default:g&&u(k);var ue=new Wy,Ne=A[A.length-1].currentNSMap,B=hE(t,k,ue,Ne,c,i),L=ue.length;if(!ue.closed&&mE(t,B,ue.tagName,m)&&(ue.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),g&&L){for(var P=im(g,{}),I=0;I<L;I++){var C=ue[I];u(C.offset),C.locator=im(g,{})}r.locator=P,om(ue,r,Ne)&&A.push(ue),r.locator=g}else om(ue,r,Ne)&&A.push(ue);Zo.isHTML(ue.uri)&&!ue.closed?B=gE(t,B,ue.tagName,c,r):B++}}catch(j){if(j instanceof Hi)throw j;i.error("element parse error: "+j),B=-1}B>$?$=B:l(Math.max(k,$)+1)}}function im(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function hE(t,e,n,r,i,o){function c(g,A,m){n.attributeNames.hasOwnProperty(g)&&o.fatalError("Attribute "+g+" redefined"),n.addValue(g,A.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i),m)}for(var l,u,d=++e,p=fo;;){var h=t.charAt(d);switch(h){case"=":if(p===sr)l=t.slice(e,d),p=ho;else if(p===di)p=ho;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(p===ho||p===sr)if(p===sr&&(o.warning('attribute value must after "="'),l=t.slice(e,d)),e=d+1,d=t.indexOf(h,e),d>0)u=t.slice(e,d),c(l,u,e-1),p=fi;else throw new Error("attribute value no end '"+h+"' match");else if(p==pi)u=t.slice(e,d),c(l,u,e),o.warning('attribute "'+l+'" missed start quot('+h+")!!"),e=d+1,p=fi;else throw new Error('attribute value must after "="');break;case"/":switch(p){case fo:n.setTagName(t.slice(e,d));case fi:case go:case Us:p=Us,n.closed=!0;case pi:case sr:break;case di:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),p==fo&&n.setTagName(t.slice(e,d)),d;case">":switch(p){case fo:n.setTagName(t.slice(e,d));case fi:case go:case Us:break;case pi:case sr:u=t.slice(e,d),u.slice(-1)==="/"&&(n.closed=!0,u=u.slice(0,-1));case di:p===di&&(u=l),p==pi?(o.warning('attribute "'+u+'" missed quot(")!'),c(l,u,e)):((!Zo.isHTML(r[""])||!u.match(/^(?:disabled|checked|selected)$/i))&&o.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),c(u,u,e));break;case ho:throw new Error("attribute value missed!!")}return d;case"":h=" ";default:if(h<=" ")switch(p){case fo:n.setTagName(t.slice(e,d)),p=go;break;case sr:l=t.slice(e,d),p=di;break;case pi:var u=t.slice(e,d);o.warning('attribute "'+u+'" missed quot(")!!'),c(l,u,e);case fi:p=go;break}else switch(p){case di:n.tagName,(!Zo.isHTML(r[""])||!l.match(/^(?:disabled|checked|selected)$/i))&&o.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),c(l,l,e),e=d,p=sr;break;case fi:o.warning('attribute space is required"'+l+'"!!');case go:p=sr,e=d;break;case ho:p=pi,e=d;break;case Us:throw new Error("elements closed character '/' and '>' must be connected to")}}d++}}function om(t,e,n){for(var r=t.tagName,i=null,h=t.length;h--;){var o=t[h],c=o.qName,l=o.value,g=c.indexOf(":");if(g>0)var u=o.prefix=c.slice(0,g),d=c.slice(g+1),p=u==="xmlns"&&d;else d=c,u=null,p=c==="xmlns"&&"";o.localName=d,p!==!1&&(i==null&&(i={},Gy(n,n={})),n[p]=i[p]=l,o.uri=Zo.XMLNS,e.startPrefixMapping(p,l))}for(var h=t.length;h--;){o=t[h];var u=o.prefix;u&&(u==="xml"&&(o.uri=Zo.XML),u!=="xmlns"&&(o.uri=n[u||""]))}var g=r.indexOf(":");g>0?(u=t.prefix=r.slice(0,g),d=t.localName=r.slice(g+1)):(u=null,d=t.localName=r);var A=t.uri=n[u||""];if(e.startElement(A,d,r,t),t.closed){if(e.endElement(A,d,r),i)for(u in i)Object.prototype.hasOwnProperty.call(i,u)&&e.endPrefixMapping(u)}else return t.currentNSMap=n,t.localNSMap=i,!0}function gE(t,e,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=t.indexOf("</"+n+">",e),c=t.substring(e+1,o);if(/[&<]/.test(c))return/^script$/i.test(n)?(i.characters(c,0,c.length),o):(c=c.replace(/&#?\w+;/g,r),i.characters(c,0,c.length),o)}return e+1}function mE(t,e,n,r){var i=r[n];return i==null&&(i=t.lastIndexOf("</"+n+">"),i<e&&(i=t.lastIndexOf("</"+n)),r[n]=i),i<e}function Gy(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}function _E(t,e,n,r){var i=t.charAt(e+2);switch(i){case"-":if(t.charAt(e+3)==="-"){var o=t.indexOf("-->",e+4);return o>e?(n.comment(t,e+4,o-e-4),o+3):(r.error("Unclosed comment"),-1)}else return-1;default:if(t.substr(e+3,6)=="CDATA["){var o=t.indexOf("]]>",e+9);return n.startCDATA(),n.characters(t,e+9,o-e-9),n.endCDATA(),o+3}var c=wE(t,e),l=c.length;if(l>1&&/!doctype/i.test(c[0][0])){var u=c[1][0],d=!1,p=!1;l>3&&(/^public$/i.test(c[2][0])?(d=c[3][0],p=l>4&&c[4][0]):/^system$/i.test(c[2][0])&&(p=c[3][0]));var h=c[l-1];return n.startDTD(u,d,p),n.endDTD(),h.index+h[0].length}}return-1}function yE(t,e,n){var r=t.indexOf("?>",e);if(r){var i=t.substring(e,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return i?(i[0].length,n.processingInstruction(i[1],i[2]),r+2):-1}return-1}function Wy(){this.attributeNames={}}Wy.prototype={setTagName:function(t){if(!rm.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,n){if(!rm.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};function wE(t,e){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=e,i.exec(t);n=i.exec(t);)if(r.push(n),n[1])return r}Lf.XMLReader=Ky;Lf.ParseError=Hi;var vE=nr,bE=tr,sm=Hy,Xy=Lf,xE=bE.DOMImplementation,am=vE.NAMESPACE,$E=Xy.ParseError,AE=Xy.XMLReader;function Jy(t){return t.replace(/\r[\n\u0085]/g,`
|
|
282
282
|
`).replace(/[\r\u0085\u2028]/g,`
|
|
283
|
-
`)}function Yy(t){this.options=t||{locator:{}}}Yy.prototype.parseFromString=function(t,e){var n=this.options,r=new
|
|
284
|
-
@`+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function cm(t,e,n){return typeof t=="string"?t.substr(e,n):t.length>=e+n||e?new java.lang.String(t,e,n)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){Cs.prototype[t]=function(){return null}});function Ms(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}Cl.__DOMHandler=Cs;Cl.normalizeLineEndings=Jy;Cl.DOMParser=Yy;var Zy=tr;Sl.DOMImplementation=Zy.DOMImplementation;Sl.XMLSerializer=Zy.XMLSerializer;Sl.DOMParser=Cl.DOMParser;var Il={};Object.defineProperty(Il,"__esModule",{value:!0});Il.EnvelopedSignature=void 0;const qs=$l,au=be;class EE{constructor(){this.includeComments=!1,this.includeComments=!1}process(e,n){if(n.signatureNode==null){const o=qs.select1("./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",e);return au.isNodeLike(o)&&o.parentNode&&o.parentNode.removeChild(o),e}const r=n.signatureNode,i=qs.select1(".//*[local-name(.)='SignatureValue']/text()",r);if(au.isTextNode(i)){const o=i.data,c=qs.select(".//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",e);for(const l of Array.isArray(c)?c:[]){const u=qs.select1(".//*[local-name(.)='SignatureValue']/text()",l);if(au.isTextNode(u)){const d=u.data;o===d&&l.parentNode&&l.parentNode.removeChild(l)}}}return e}getAlgorithmName(){return"http://www.w3.org/2000/09/xmldsig#enveloped-signature"}}Il.EnvelopedSignature=EE;var hr={};Object.defineProperty(hr,"__esModule",{value:!0});hr.Sha512=hr.Sha256=hr.Sha1=void 0;const Ff=yc;class SE{constructor(){this.getHash=function(e){const n=Ff.createHash("sha1");return n.update(e,"utf8"),n.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2000/09/xmldsig#sha1"}}}hr.Sha1=SE;class kE{constructor(){this.getHash=function(e){const n=Ff.createHash("sha256");return n.update(e,"utf8"),n.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha256"}}}hr.Sha256=kE;class NE{constructor(){this.getHash=function(e){const n=Ff.createHash("sha512");return n.update(e,"utf8"),n.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha512"}}}hr.Sha512=NE;var vn={},Is={};Object.defineProperty(Is,"__esModule",{value:!0});Is.createOptionalCallbackFunction=void 0;function CE(t){return typeof t=="function"}function IE(t){return(...e)=>{const n=e[e.length-1];if(CE(n))try{const r=t(...e.slice(0,-1));n(null,r)}catch(r){n(r instanceof Error?r:new Error("Unknown error"))}else return t(...e)}}Is.createOptionalCallbackFunction=IE;Object.defineProperty(vn,"__esModule",{value:!0});vn.HmacSha1=vn.RsaSha512=vn.RsaSha256=vn.RsaSha1=void 0;const br=yc,xr=Is;class TE{constructor(){this.getSignature=(0,xr.createOptionalCallbackFunction)((e,n)=>{const r=br.createSign("RSA-SHA1");return r.update(e),r.sign(n,"base64")}),this.verifySignature=(0,xr.createOptionalCallbackFunction)((e,n,r)=>{const i=br.createVerify("RSA-SHA1");return i.update(e),i.verify(n,r,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#rsa-sha1"}}vn.RsaSha1=TE;class OE{constructor(){this.getSignature=(0,xr.createOptionalCallbackFunction)((e,n)=>{const r=br.createSign("RSA-SHA256");return r.update(e),r.sign(n,"base64")}),this.verifySignature=(0,xr.createOptionalCallbackFunction)((e,n,r)=>{const i=br.createVerify("RSA-SHA256");return i.update(e),i.verify(n,r,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"}}vn.RsaSha256=OE;class DE{constructor(){this.getSignature=(0,xr.createOptionalCallbackFunction)((e,n)=>{const r=br.createSign("RSA-SHA512");return r.update(e),r.sign(n,"base64")}),this.verifySignature=(0,xr.createOptionalCallbackFunction)((e,n,r)=>{const i=br.createVerify("RSA-SHA512");return i.update(e),i.verify(n,r,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"}}vn.RsaSha512=DE;class zE{constructor(){this.getSignature=(0,xr.createOptionalCallbackFunction)((e,n)=>{const r=br.createHmac("SHA1",n);return r.update(e),r.digest("base64")}),this.verifySignature=(0,xr.createOptionalCallbackFunction)((e,n,r)=>{const i=br.createHmac("SHA1",n);return i.update(e),i.digest("base64")===r}),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#hmac-sha1"}}vn.HmacSha1=zE;Object.defineProperty(El,"__esModule",{value:!0});El.SignedXml=void 0;const zt=be,Cr=Sl,RE=yc,Mt=$l,lm=Qr,PE=Il,um=ei,cu=hr,Vs=vn,Oe=Es;class zn{constructor(e={}){this.signatureAlgorithm=void 0,this.canonicalizationAlgorithm=void 0,this.inclusiveNamespacesPrefixList=[],this.namespaceResolver={lookupNamespaceURI:function(){throw new Error("Not implemented")}},this.implicitTransforms=[],this.keyInfoAttributes={},this.getKeyInfoContent=zn.getKeyInfoContent,this.getCertFromKeyInfo=zn.getCertFromKeyInfo,this.id=0,this.signedXml="",this.signatureXml="",this.signatureNode=null,this.signatureValue="",this.originalXmlWithIds="",this.keyInfo=null,this.references=[],this.signedReferences=[],this.CanonicalizationAlgorithms={"http://www.w3.org/TR/2001/REC-xml-c14n-20010315":lm.C14nCanonicalization,"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments":lm.C14nCanonicalizationWithComments,"http://www.w3.org/2001/10/xml-exc-c14n#":um.ExclusiveCanonicalization,"http://www.w3.org/2001/10/xml-exc-c14n#WithComments":um.ExclusiveCanonicalizationWithComments,"http://www.w3.org/2000/09/xmldsig#enveloped-signature":PE.EnvelopedSignature},this.HashAlgorithms={"http://www.w3.org/2000/09/xmldsig#sha1":cu.Sha1,"http://www.w3.org/2001/04/xmlenc#sha256":cu.Sha256,"http://www.w3.org/2001/04/xmlenc#sha512":cu.Sha512},this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#rsa-sha1":Vs.RsaSha1,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256":Vs.RsaSha256,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512":Vs.RsaSha512};const{idMode:n,idAttribute:r,privateKey:i,publicCert:o,signatureAlgorithm:c,canonicalizationAlgorithm:l,inclusiveNamespacesPrefixList:u,implicitTransforms:d,keyInfoAttributes:p,getKeyInfoContent:h,getCertFromKeyInfo:g}=e;this.idMode=n,this.idAttributes=["Id","ID","id"],r&&this.idAttributes.unshift(r),this.privateKey=i,this.publicCert=o,this.signatureAlgorithm=c??this.signatureAlgorithm,this.canonicalizationAlgorithm=l,typeof u=="string"?this.inclusiveNamespacesPrefixList=u.split(" "):Oe.isArrayHasLength(u)&&(this.inclusiveNamespacesPrefixList=u),this.implicitTransforms=d??this.implicitTransforms,this.keyInfoAttributes=p??this.keyInfoAttributes,this.getKeyInfoContent=h??this.getKeyInfoContent,this.getCertFromKeyInfo=g??zn.noop,this.CanonicalizationAlgorithms,this.HashAlgorithms,this.SignatureAlgorithms}enableHMAC(){this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#hmac-sha1":Vs.HmacSha1},this.getKeyInfoContent=zn.noop}static getKeyInfoContent({publicCert:e,prefix:n}){if(e==null)return null;n=n?`${n}:`:"";let r="";Buffer.isBuffer(e)&&(e=e.toString("latin1"));let i=[];return typeof e=="string"&&(i=e.match(Oe.EXTRACT_X509_CERTS)||[]),i.length>0&&(r=i.map(o=>`<${n}X509Certificate>${Oe.pemToDer(o).toString("base64")}</${n}X509Certificate>`).join("")),`<${n}X509Data>${r}</${n}X509Data>`}static getCertFromKeyInfo(e){if(e!=null){const n=Mt.select1(".//*[local-name(.)='X509Certificate']",e);if(zt.isNodeLike(n))return Oe.derToPem(n.textContent??"","CERTIFICATE")}return null}checkSignature(e,n){if(n!=null&&typeof n!="function")throw new Error("Last parameter must be a callback function");this.signedXml=e;const r=new Cr.DOMParser().parseFromString(e);this.references=[];const i=this.getCanonSignedInfoXml(r);if(!i){if(n){n(new Error("Canonical signed info cannot be empty"),!1);return}throw new Error("Canonical signed info cannot be empty")}const c=new Cr.DOMParser().parseFromString(i,"text/xml").documentElement;if(!c){if(n){n(new Error("Could not parse unverifiedSignedInfoCanon into a document"),!1);return}throw new Error("Could not parse unverifiedSignedInfoCanon into a document")}const l=Oe.findChildren(c,"Reference");if(!Oe.isArrayHasLength(l)){if(n){n(new Error("could not find any Reference elements"),!1);return}throw new Error("could not find any Reference elements")}for(const h of l)this.loadReference(h);if(!this.getReferences().every(h=>this.validateReference(h,r))){if(this.signedReferences=[],this.references.forEach(h=>{h.signedReference=void 0}),n){n(new Error("Could not validate all references"),!1);return}return!1}const u=this.findSignatureAlgorithm(this.signatureAlgorithm),d=this.getCertFromKeyInfo(this.keyInfo)||this.publicCert||this.privateKey;if(d==null)throw new Error("KeyInfo or publicCert or privateKey is required to validate signature");if(u.verifySignature(i,d,this.signatureValue)===!0)if(n)n(null,!0);else return!0;else if(this.signedReferences=[],this.references.forEach(h=>{h.signedReference=void 0}),n){n(new Error(`invalid signature: the signature value ${this.signatureValue} is incorrect`));return}else throw new Error(`invalid signature: the signature value ${this.signatureValue} is incorrect`)}getCanonSignedInfoXml(e){if(this.signatureNode==null)throw new Error("No signature found.");if(typeof this.canonicalizationAlgorithm!="string")throw new Error("Missing canonicalizationAlgorithm when trying to get signed info for XML");const n=Oe.findChildren(this.signatureNode,"SignedInfo");if(n.length===0)throw new Error("could not find SignedInfo element in the message");if(n.length>1)throw new Error("could not get canonicalized signed info for a signature that contains multiple SignedInfo nodes");if((this.canonicalizationAlgorithm==="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"||this.canonicalizationAlgorithm==="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments")&&(!e||typeof e!="object"))throw new Error("When canonicalization method is non-exclusive, whole xml dom must be provided as an argument");const i={ancestorNamespaces:Oe.findAncestorNs(e,"//*[local-name()='SignedInfo']")};return this.getCanonXml([this.canonicalizationAlgorithm],n[0],i)}getCanonReferenceXml(e,n,r){Array.isArray(n.transforms)&&(n.ancestorNamespaces=Oe.findAncestorNs(e,n.xpath,this.namespaceResolver));const i={inclusiveNamespacesPrefixList:n.inclusiveNamespacesPrefixList,ancestorNamespaces:n.ancestorNamespaces};return this.getCanonXml(n.transforms,r,i)}calculateSignatureValue(e,n){const r=this.getCanonSignedInfoXml(e),i=this.findSignatureAlgorithm(this.signatureAlgorithm);if(this.privateKey==null)throw new Error("Private key is required to compute signature");typeof n=="function"?i.getSignature(r,this.privateKey,n):this.signatureValue=i.getSignature(r,this.privateKey)}findSignatureAlgorithm(e){if(e==null)throw new Error("signatureAlgorithm is required");const n=this.SignatureAlgorithms[e];if(n)return new n;throw new Error(`signature algorithm '${e}' is not supported`)}findCanonicalizationAlgorithm(e){if(e!=null){const n=this.CanonicalizationAlgorithms[e];if(n)return new n}throw new Error(`canonicalization algorithm '${e}' is not supported`)}findHashAlgorithm(e){const n=this.HashAlgorithms[e];if(n)return new n;throw new Error(`hash algorithm '${e}' is not supported`)}validateElementAgainstReferences(e,n){var i;let r;if(typeof e=="string"){const o=Mt.select1(e,n);zt.assertIsElementNode(o),r=o}else r=e;for(const o of this.getReferences()){const c=((i=o.uri)==null?void 0:i[0])==="#"?o.uri.substring(1):o.uri;for(const p of this.idAttributes){const h=r.getAttribute(p);if(c===h){o.xpath=`//*[@*[local-name(.)='${p}']='${c}']`;break}}const l=this.getCanonReferenceXml(n,o,r),d=this.findHashAlgorithm(o.digestAlgorithm).getHash(l);if(Oe.validateDigestValue(d,o.digestValue))return o}throw new Error("No references passed validation")}validateReference(e,n){var u;const r=((u=e.uri)==null?void 0:u[0])==="#"?e.uri.substring(1):e.uri;let i=null;if(r==="")i=Mt.select1("//*",n);else{if((r==null?void 0:r.indexOf("'"))!==-1)throw new Error("Cannot validate a uri with quotes inside it");{let d=0;for(const p of this.idAttributes){const h=`//*[@*[local-name(.)='${p}']='${r}']`,g=Mt.select(h,n);if(Oe.isArrayHasLength(g)){if(d+=g.length,d>1)throw new Error("Cannot validate a document which contains multiple elements with the same value for the ID / Id / Id attributes, in order to prevent signature wrapping attack.");i=g[0],e.xpath=h}}}}if(e.getValidatedNode=(0,RE.deprecate)(d=>{if(d=d||e.xpath,typeof d!="string"||e.validationError!=null)return null;const p=Mt.select1(d,n);return zt.isNodeLike(p)?p:null},"`ref.getValidatedNode()` is deprecated and insecure. Use `ref.signedReference` or `this.getSignedReferences()` instead."),!zt.isNodeLike(i)){const d=new Error(`invalid signature: the signature references an element with uri ${e.uri} but could not find such element in the xml`);return e.validationError=d,!1}const o=this.getCanonReferenceXml(n,e,i),l=this.findHashAlgorithm(e.digestAlgorithm).getHash(o);if(!Oe.validateDigestValue(l,e.digestValue)){const d=new Error(`invalid signature: for uri ${e.uri} calculated digest is ${l} but the xml to validate supplies digest ${e.digestValue}`);return e.validationError=d,!1}return this.signedReferences.push(o),e.signedReference=o,!0}findSignatures(e){const n=Mt.select("//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",e);return zt.isArrayOfNodes(n)?n:[]}loadSignature(e){typeof e=="string"?this.signatureNode=e=new Cr.DOMParser().parseFromString(e):this.signatureNode=e,this.signatureXml=e.toString();const n=Mt.select1(".//*[local-name(.)='CanonicalizationMethod']/@Algorithm",e);if(!zt.isNodeLike(n))throw new Error("could not find CanonicalizationMethod/@Algorithm element");zt.isAttributeNode(n)&&(this.canonicalizationAlgorithm=n.value);const r=Mt.select1(".//*[local-name(.)='SignatureMethod']/@Algorithm",e);zt.isAttributeNode(r)&&(this.signatureAlgorithm=r.value);const i=Oe.findChildren(this.signatureNode,"SignedInfo");if(!Oe.isArrayHasLength(i))throw new Error("no signed info node found");if(i.length>1)throw new Error("could not load signature that contains multiple SignedInfo nodes");let o=this.canonicalizationAlgorithm;(!o||o==="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"||o==="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments")&&(o="http://www.w3.org/2001/10/xml-exc-c14n#");const c=this.getCanonXml([o],i[0]),u=new Cr.DOMParser().parseFromString(c,"text/xml").documentElement;this.references=[];const d=Oe.findChildren(u,"Reference");if(!Oe.isArrayHasLength(d))throw new Error("could not find any Reference elements");for(const g of d)this.loadReference(g);const p=Mt.select1(".//*[local-name(.)='SignatureValue']/text()",e);zt.isTextNode(p)&&(this.signatureValue=p.data.replace(/\r?\n/g,""));const h=Mt.select1(".//*[local-name(.)='KeyInfo']",e);zt.isNodeLike(h)&&(this.keyInfo=h)}loadReference(e){let n=Oe.findChildren(e,"DigestMethod");if(n.length===0)throw new Error(`could not find DigestMethod in reference ${e.toString()}`);const r=n[0],i=Oe.findAttr(r,"Algorithm");if(!i)throw new Error(`could not find Algorithm attribute in node ${r.toString()}`);const o=i.value;if(n=Oe.findChildren(e,"DigestValue"),n.length===0)throw new Error(`could not find DigestValue node in reference ${e.toString()}`);if(n.length>1)throw new Error(`could not load reference for a node that contains multiple DigestValue nodes: ${e.toString()}`);const c=n[0].textContent;if(!c)throw new Error(`could not find the value of DigestValue in ${e.toString()}`);const l=[];let u=[];if(n=Oe.findChildren(e,"Transforms"),n.length!==0){const p=n[0],h=Oe.findChildren(p,"Transform");for(const A of h){const m=Oe.findAttr(A,"Algorithm");m&&l.push(m.value)}const g=Oe.findChildren(h[h.length-1],"InclusiveNamespaces");Oe.isArrayHasLength(g)&&(u=g.flatMap(A=>(A.getAttribute("PrefixList")??"").split(" ")).filter(A=>A.length>0))}Oe.isArrayHasLength(this.implicitTransforms)&&this.implicitTransforms.forEach(function(p){l.push(p)}),(l.length===0||l[l.length-1]==="http://www.w3.org/2000/09/xmldsig#enveloped-signature")&&l.push("http://www.w3.org/TR/2001/REC-xml-c14n-20010315");const d=zt.isElementNode(e)&&e.getAttribute("URI")||void 0;this.addReference({transforms:l,digestAlgorithm:o,uri:d,digestValue:c,inclusiveNamespacesPrefixList:u,isEmptyUri:!1})}addReference({xpath:e,transforms:n,digestAlgorithm:r,uri:i="",digestValue:o,inclusiveNamespacesPrefixList:c=[],isEmptyUri:l=!1}){if(r==null)throw new Error("digestAlgorithm is required");if(!Oe.isArrayHasLength(n))throw new Error("transforms must contain at least one transform algorithm");this.references.push({xpath:e,transforms:n,digestAlgorithm:r,uri:i,digestValue:o,inclusiveNamespacesPrefixList:c,isEmptyUri:l,getValidatedNode:()=>{throw new Error("Reference has not been validated yet; Did you call `sig.checkSignature()`?")}})}getReferences(){return this.references}getSignedReferences(){return[...this.signedReferences]}computeSignature(e,n,r){let i;typeof n=="function"&&r==null?(i=n,n={}):(i=r,n=n??{});const o=new Cr.DOMParser().parseFromString(e);let c="xmlns";const l=[];let u;const d=["append","prepend","before","after"],p=n.prefix,h=n.attrs||{},g=n.location||{},A=n.existingPrefixes||{};if(this.namespaceResolver={lookupNamespaceURI:function(H){return H?A[H]:null}},g.reference=g.reference||"/*",g.action=g.action||"append",d.indexOf(g.action)===-1){const H=new Error(`location.action option has an invalid action: ${g.action}, must be any of the following values: ${d.join(", ")}`);if(i){i(H);return}else throw H}p?(c+=`:${p}`,u=`${p}:`):u="",Object.keys(h).forEach(function(H){H!=="xmlns"&&H!==c&&l.push(`${H}="${h[H]}"`)}),l.push(`${c}="http://www.w3.org/2000/09/xmldsig#"`);let m=`<${u}Signature ${l.join(" ")}>`;m+=this.createSignedInfo(o,p),m+=this.getKeyInfo(p),m+=`</${u}Signature>`,this.originalXmlWithIds=o.toString();let $="";Object.keys(A).forEach(function(H){$+=`xmlns:${H}="${A[H]}" `});const k=`<Dummy ${$}>${m}</Dummy>`,b=new Cr.DOMParser().parseFromString(k).documentElement.firstChild,T=Mt.select1(g.reference,o);if(!zt.isNodeLike(T)){const H=new Error(`the following xpath cannot be used because it was not found: ${g.reference}`);if(i){i(H);return}else throw H}if(g.action==="append")T.appendChild(b);else if(g.action==="prepend")T.insertBefore(b,T.firstChild);else if(g.action==="before"){if(T.parentNode==null)throw new Error("`location.reference` refers to the root node (by default), so we can't insert `before`");T.parentNode.insertBefore(b,T)}else if(g.action==="after"){if(T.parentNode==null)throw new Error("`location.reference` refers to the root node (by default), so we can't insert `after`");T.parentNode.insertBefore(b,T.nextSibling)}this.signatureNode=b;const M=Oe.findChildren(this.signatureNode,"SignedInfo");if(M.length===0){const H=new Error("could not find SignedInfo element in the message");if(i){i(H);return}else throw H}const U=M[0];typeof i=="function"?this.calculateSignatureValue(o,(H,W)=>{H?i(H):(this.signatureValue=W||"",b.insertBefore(this.createSignature(p),U.nextSibling),this.signatureXml=b.toString(),this.signedXml=o.toString(),i(null,this))}):(this.calculateSignatureValue(o),b.insertBefore(this.createSignature(p),U.nextSibling),this.signatureXml=b.toString(),this.signedXml=o.toString())}getKeyInfo(e){const n=e?`${e}:`:"";let r="";this.keyInfoAttributes&&Object.keys(this.keyInfoAttributes).forEach(o=>{r+=` ${o}="${this.keyInfoAttributes[o]}"`});const i=this.getKeyInfoContent({publicCert:this.publicCert,prefix:e});return r||i?`<${n}KeyInfo${r}>${i}</${n}KeyInfo>`:""}createReferences(e,n){let r="";n=n||"",n=n&&`${n}:`;for(const i of this.getReferences()){const o=Mt.selectWithResolver(i.xpath??"",e,this.namespaceResolver);if(!Oe.isArrayHasLength(o))throw new Error(`the following xpath cannot be signed because it was not found: ${i.xpath}`);for(const c of o){if(i.isEmptyUri)r+=`<${n}Reference URI="">`;else{const d=this.ensureHasId(c);i.uri=d,r+=`<${n}Reference URI="#${d}">`}r+=`<${n}Transforms>`;for(const d of i.transforms||[]){const p=this.findCanonicalizationAlgorithm(d);r+=`<${n}Transform Algorithm="${p.getAlgorithmName()}"`,Oe.isArrayHasLength(i.inclusiveNamespacesPrefixList)?(r+=">",r+=`<InclusiveNamespaces PrefixList="${i.inclusiveNamespacesPrefixList.join(" ")}" xmlns="${p.getAlgorithmName()}"/>`,r+=`</${n}Transform>`):r+=" />"}const l=this.getCanonReferenceXml(e,i,c),u=this.findHashAlgorithm(i.digestAlgorithm);r+=`</${n}Transforms><${n}DigestMethod Algorithm="${u.getAlgorithmName()}" /><${n}DigestValue>${u.getHash(l)}</${n}DigestValue></${n}Reference>`}}return r}getCanonXml(e,n,r={}){r.defaultNsForPrefix=r.defaultNsForPrefix??zn.defaultNsForPrefix,r.signatureNode=this.signatureNode;let o=n.cloneNode(!0);return e.forEach(c=>{zt.isNodeLike(o)&&(o=this.findCanonicalizationAlgorithm(c).process(o,r))}),o.toString()}ensureHasId(e){let n;if(this.idMode==="wssecurity"?n=Oe.findAttr(e,"Id","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"):this.idAttributes.some(i=>(n=Oe.findAttr(e,i),!!n)),n)return n.value;const r=`_${this.id++}`;return this.idMode==="wssecurity"?(e.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:wsu","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"),e.setAttributeNS("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd","wsu:Id",r)):e.setAttribute("Id",r),r}createSignedInfo(e,n){if(typeof this.canonicalizationAlgorithm!="string")throw new Error("Missing canonicalizationAlgorithm when trying to create signed info for XML");const r=this.findCanonicalizationAlgorithm(this.canonicalizationAlgorithm),i=this.findSignatureAlgorithm(this.signatureAlgorithm);let o;o=n||"",o=o&&`${o}:`;let c=`<${o}SignedInfo>`;return c+=`<${o}CanonicalizationMethod Algorithm="${r.getAlgorithmName()}"`,Oe.isArrayHasLength(this.inclusiveNamespacesPrefixList)?(c+=">",c+=`<InclusiveNamespaces PrefixList="${this.inclusiveNamespacesPrefixList.join(" ")}" xmlns="${r.getAlgorithmName()}"/>`,c+=`</${o}CanonicalizationMethod>`):c+=" />",c+=`<${o}SignatureMethod Algorithm="${i.getAlgorithmName()}" />`,c+=this.createReferences(e,n),c+=`</${o}SignedInfo>`,c}createSignature(e){let n="xmlns";e?(n+=`:${e}`,e+=":"):e="";const r=`<${e}SignatureValue>${this.signatureValue}</${e}SignatureValue>`,i=`<${e}Signature ${n}="http://www.w3.org/2000/09/xmldsig#">${r}</${e}Signature>`;return new Cr.DOMParser().parseFromString(i).documentElement.firstChild}getSignatureXml(){return this.signatureXml}getOriginalXmlWithIds(){return this.originalXmlWithIds}getSignedXml(){return this.signedXml}}El.SignedXml=zn;zn.defaultNsForPrefix={ds:"http://www.w3.org/2000/09/xmldsig#"};zn.noop=()=>null;(function(t){var e=cr&&cr.__createBinding||(Object.create?function(c,l,u,d){d===void 0&&(d=u);var p=Object.getOwnPropertyDescriptor(l,u);(!p||("get"in p?!l.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(c,d,p)}:function(c,l,u,d){d===void 0&&(d=u),c[d]=l[u]}),n=cr&&cr.__exportStar||function(c,l){for(var u in c)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&e(l,c,u)};Object.defineProperty(t,"__esModule",{value:!0}),t.SignedXml=t.ExclusiveCanonicalizationWithComments=t.ExclusiveCanonicalization=t.C14nCanonicalizationWithComments=t.C14nCanonicalization=void 0;var r=Qr;Object.defineProperty(t,"C14nCanonicalization",{enumerable:!0,get:function(){return r.C14nCanonicalization}}),Object.defineProperty(t,"C14nCanonicalizationWithComments",{enumerable:!0,get:function(){return r.C14nCanonicalizationWithComments}});var i=ei;Object.defineProperty(t,"ExclusiveCanonicalization",{enumerable:!0,get:function(){return i.ExclusiveCanonicalization}}),Object.defineProperty(t,"ExclusiveCanonicalizationWithComments",{enumerable:!0,get:function(){return i.ExclusiveCanonicalizationWithComments}});var o=El;Object.defineProperty(t,"SignedXml",{enumerable:!0,get:function(){return o.SignedXml}}),n(Is,t),n(Es,t)})(C8);async function BE(t){const e=new DecompressionStream("deflate-raw"),n=new Blob([t]).stream().pipeThrough(e);return new Uint8Array(await new Response(n).arrayBuffer())}async function jE(t){const e=await e2.decode(t.replace(/ /g,"+"));try{const n=await BE(e);return new TextDecoder().decode(n)}catch(n){return console.warn("Decompression failed, assuming data is not compressed:",n),new TextDecoder().decode(e)}}async function LE(t){const e=await jE(t),r=new hp.XMLParser({attributeNamePrefix:"@_",alwaysCreateTextNode:!0,ignoreAttributes:!1}).parse(e);return S8.parse(r)}function FE(t){const e=[{":@":{"@_entityID":t.entityId,"@_xmlns":"urn:oasis:names:tc:SAML:2.0:metadata"},EntityDescriptor:[{":@":{"@_protocolSupportEnumeration":"urn:oasis:names:tc:SAML:2.0:protocol"},IDPSSODescriptor:[{":@":{"@_use":"signing"},KeyDescriptor:[{":@":{"@_xmlns":"http://www.w3.org/2000/09/xmldsig#"},KeyInfo:[{X509Data:[{X509Certificate:[{"#text":t.cert}]}]}]}]},{":@":{"@_Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect","@_Location":t.singleLogoutServiceUrl},SingleLogoutService:[]},{":@":{"@_Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@_Location":t.singleLogoutServiceUrl},SingleLogoutService:[]},{NameIDFormat:[{"#text":"urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"}]},{NameIDFormat:[{"#text":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"}]},{NameIDFormat:[{"#text":"urn:oasis:names:tc:SAML:2.0:nameid-format:transient"}]},{":@":{"@_Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect","@_Location":t.assertionConsumerServiceUrl},SingleSignOnService:[]},{":@":{"@_Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@_Location":t.assertionConsumerServiceUrl},SingleSignOnService:[]},{":@":{"@_Name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","@_NameFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:uri","@_FriendlyName":"E-Mail Address","@_xmlns":"urn:oasis:names:tc:SAML:2.0:assertion"},Attribute:[]},{":@":{"@_Name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname","@_NameFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:uri","@_FriendlyName":"Given Name","@_xmlns":"urn:oasis:names:tc:SAML:2.0:assertion"},Attribute:[]},{":@":{"@_Name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name","@_NameFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:uri","@_FriendlyName":"Name","@_xmlns":"urn:oasis:names:tc:SAML:2.0:assertion"},Attribute:[]},{":@":{"@_Name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname","@_NameFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:uri","@_FriendlyName":"Surname","@_xmlns":"urn:oasis:names:tc:SAML:2.0:assertion"},Attribute:[]},{":@":{"@_Name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier","@_NameFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:uri","@_FriendlyName":"Name ID","@_xmlns":"urn:oasis:names:tc:SAML:2.0:assertion"},Attribute:[]}]}]}];return new hp.XMLBuilder({ignoreAttributes:!1,suppressEmptyNode:!0,preserveOrder:!0,format:!0}).build(e)}const UE=new s.OpenAPIHono().openapi(s.createRoute({tags:["saml"],method:"get",path:"/metadata/{client_id}",request:{params:s.z.object({client_id:s.z.string()})},responses:{200:{description:"Decoded SAML Request",content:{"text/xml":{schema:s.z.string()}}},400:{description:"Bad Request"}}}),async t=>{var l,u;const{client_id:e}=t.req.valid("param"),n=await t.env.data.clients.get(e);if(!n)throw new R(404,{message:"Client not found"});const[r]=await t.env.data.keys.list();if(!r)throw new R(500,{message:"No signing key found"});const i=new fl(r.cert),o=t.env.ISSUER,c=FE({entityId:((u=(l=n.addons)==null?void 0:l.samlp)==null?void 0:u.audience)||n.id,cert:i.toString("base64"),assertionConsumerServiceUrl:`${o}samlp/${e}`,singleLogoutServiceUrl:`${o}samlp/${e}/logout`});return new Response(c,{headers:{"Content-Type":"text/xml"}})}).openapi(s.createRoute({tags:["saml"],method:"get",path:"/{client_id}",request:{query:s.z.object({SAMLRequest:s.z.string(),RelayState:s.z.string().optional(),SigAlg:s.z.string().optional(),Signature:s.z.string().optional()}),params:s.z.object({client_id:s.z.string()})},responses:{200:{description:"Decoded SAML Request",content:{"text/xml":{schema:s.z.string()}}},400:{description:"Bad Request"}}}),async t=>{const{client_id:e}=t.req.valid("param"),{SAMLRequest:n,RelayState:r}=t.req.valid("query"),i=await t.env.data.clients.get(e);if(!i)throw new R(404,{message:"Client not found"});t.set("client_id",i.id),t.set("tenant_id",i.tenant.id);const o=await LE(n),c=o["samlp:AuthnRequest"]["saml:Issuer"]["#text"],l=await t.env.data.loginSessions.create(t.var.tenant_id,{csrf_token:qe(),authParams:{client_id:e,state:JSON.stringify({requestId:o["samlp:AuthnRequest"]["@_ID"],relayState:r}),response_mode:bn.SAML_POST,redirect_uri:o["samlp:AuthnRequest"]["@_AssertionConsumerServiceURL"],audience:c},expires_at:new Date(Date.now()+Ni*1e3).toISOString(),ip:t.get("ip"),useragent:t.get("useragent"),auth0Client:yr(t.get("auth0_client"))});return t.redirect(`/u/login/identifier?state=${l.id}`)});function ME(t){const e=new s.OpenAPIHono;e.use(async(r,i)=>{const o=es(r,t.dataAdapter),c=yl(o,{defaultTtl:3e5,cacheEntities:["tenants","connections","clients"]});return r.env.data=gl(r,c),i()}),e.use(_l).use(ml).use(af(e));const n=e.route("/",UE);return n.doc("/spec",{openapi:"3.0.0",info:{version:"1.0.0",title:"SAML API"},security:[{oauth2:["openid","email","profile"]}]}),sf(n),n}const qE="Account detected",VE="Account",HE="We have detected that you have already created an account through",KE="By signing in, you agree to our",GE="and",WE="email address",XE="email or phone number",JE="phone number",YE="Callback URL mismatch",ZE="The provided redirect_uri is not in the list of allowed callback URLs.",QE="continue with user",e9="Please click the button to create a new password account.",t9="Enter the code at {{vendorName}} to complete the login",n9="Welcome to {{vendorName}}! {{code}} is the login code",r9="Welcome to {{vendorName}}! {{code}} is the login code",i9="Code expired",o9="Invalid code",s9="Please check <0>{{username}}</0> and enter the six-digit code that we've sent you.",a9="The code is already used",c9="The code is valid for 30 minutes",l9="Confirm password",u9="Need Help?",d9="Contact us",p9="or continue with social account",f9="Continue with {{provider}}",h9="Would you like to continue with your existing account?",g9="Copyright © 2023 SESAMY. All rights reserved.",m9="©2023 Sesamy",_9="Choose a password with a mix of uppercase and lowercase letters, numbers, and symbols.",y9="Please enter a valid email address.",w9="The passwords didn't match. Try again.",v9="Choose password",b9="Password must be at least 8 characters long and contain at least one lowercase letter, one uppercase letter, one number and one symbol.",x9="Create new account",$9="Sign up with password",A9="You are currently logged in as <0>{{email}}</0>",E9="Email",S9="Email changed to <0>{{email}}</0> ",k9="Email or Phone Number",N9="Email address",C9="Your email address has been validated",I9="Now enter your password to login again",T9="An email has been sent to <0>{{email}}</0> with a verification link. Please click the link to verify your email address and set a password.",O9="Email verification sent",D9="Enter a code",z9="We'll send you a verification link to ensure you own this email address.",R9="Enter new email",P9="Enter new password",B9="Enter password",j9="Enter your email address and password to login.",L9="Enter your password",F9="The magic link has expired. Please click on the button below to receive a new link in your inbox.",U9="Hey! We updated our login experience. <0>Click here to learn more about it.</0>",M9="Send password reset email",q9="Click the button below and we’ll send instructions on how to reset your password.",V9="Password reset email sent",H9="Forgot password?",K9="Forgot password?",G9="Go back",W9="Hide password",X9="Invalid identifier",J9="Invalid password",Y9=`The link is no longer valid.
|
|
283
|
+
`)}function Yy(t){this.options=t||{locator:{}}}Yy.prototype.parseFromString=function(t,e){var n=this.options,r=new AE,i=n.domBuilder||new Cs,o=n.errorHandler,c=n.locator,l=n.xmlns||{},u=/\/x?html?$/.test(e),d=u?sm.HTML_ENTITIES:sm.XML_ENTITIES;c&&i.setDocumentLocator(c),r.errorHandler=EE(o,i,c),r.domBuilder=n.domBuilder||i,u&&(l[""]=am.HTML),l.xml=l.xml||am.XML;var p=n.normalizeLineEndings||Jy;return t&&typeof t=="string"?r.parse(p(t),l,d):r.errorHandler.error("invalid doc source"),i.doc};function EE(t,e,n){if(!t){if(e instanceof Cs)return e;t=e}var r={},i=t instanceof Function;n=n||{};function o(c){var l=t[c];!l&&i&&(l=t.length==2?function(u){t(c,u)}:t),r[c]=l&&function(u){l("[xmldom "+c+"] "+u+ep(n))}||function(){}}return o("warning"),o("error"),o("fatalError"),r}function Cs(){this.cdata=!1}function hi(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}Cs.prototype={startDocument:function(){this.doc=new xE().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,n,r){var i=this.doc,o=i.createElementNS(t,n||e),c=r.length;Ms(this,o),this.currentElement=o,this.locator&&hi(this.locator,o);for(var l=0;l<c;l++){var t=r.getURI(l),u=r.getValue(l),n=r.getQName(l),d=i.createAttributeNS(t,n);this.locator&&hi(r.getLocator(l),d),d.value=d.nodeValue=u,o.setAttributeNode(d)}},endElement:function(t,e,n){var r=this.currentElement;r.tagName,this.currentElement=r.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var n=this.doc.createProcessingInstruction(t,e);this.locator&&hi(this.locator,n),Ms(this,n)},ignorableWhitespace:function(t,e,n){},characters:function(t,e,n){if(t=cm.apply(this,arguments),t){if(this.cdata)var r=this.doc.createCDATASection(t);else var r=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(t)&&this.doc.appendChild(r),this.locator&&hi(this.locator,r)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,n){t=cm.apply(this,arguments);var r=this.doc.createComment(t);this.locator&&hi(this.locator,r),Ms(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(t,e,n);this.locator&&hi(this.locator,i),Ms(this,i),this.doc.doctype=i}},warning:function(t){console.warn("[xmldom warning] "+t,ep(this.locator))},error:function(t){console.error("[xmldom error] "+t,ep(this.locator))},fatalError:function(t){throw new $E(t,this.locator)}};function ep(t){if(t)return`
|
|
284
|
+
@`+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function cm(t,e,n){return typeof t=="string"?t.substr(e,n):t.length>=e+n||e?new java.lang.String(t,e,n)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){Cs.prototype[t]=function(){return null}});function Ms(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}Cl.__DOMHandler=Cs;Cl.normalizeLineEndings=Jy;Cl.DOMParser=Yy;var Zy=tr;Sl.DOMImplementation=Zy.DOMImplementation;Sl.XMLSerializer=Zy.XMLSerializer;Sl.DOMParser=Cl.DOMParser;var Il={};Object.defineProperty(Il,"__esModule",{value:!0});Il.EnvelopedSignature=void 0;const qs=$l,au=be;class SE{constructor(){this.includeComments=!1,this.includeComments=!1}process(e,n){if(n.signatureNode==null){const o=qs.select1("./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",e);return au.isNodeLike(o)&&o.parentNode&&o.parentNode.removeChild(o),e}const r=n.signatureNode,i=qs.select1(".//*[local-name(.)='SignatureValue']/text()",r);if(au.isTextNode(i)){const o=i.data,c=qs.select(".//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",e);for(const l of Array.isArray(c)?c:[]){const u=qs.select1(".//*[local-name(.)='SignatureValue']/text()",l);if(au.isTextNode(u)){const d=u.data;o===d&&l.parentNode&&l.parentNode.removeChild(l)}}}return e}getAlgorithmName(){return"http://www.w3.org/2000/09/xmldsig#enveloped-signature"}}Il.EnvelopedSignature=SE;var hr={};Object.defineProperty(hr,"__esModule",{value:!0});hr.Sha512=hr.Sha256=hr.Sha1=void 0;const Ff=yc;class kE{constructor(){this.getHash=function(e){const n=Ff.createHash("sha1");return n.update(e,"utf8"),n.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2000/09/xmldsig#sha1"}}}hr.Sha1=kE;class NE{constructor(){this.getHash=function(e){const n=Ff.createHash("sha256");return n.update(e,"utf8"),n.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha256"}}}hr.Sha256=NE;class CE{constructor(){this.getHash=function(e){const n=Ff.createHash("sha512");return n.update(e,"utf8"),n.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha512"}}}hr.Sha512=CE;var vn={},Is={};Object.defineProperty(Is,"__esModule",{value:!0});Is.createOptionalCallbackFunction=void 0;function IE(t){return typeof t=="function"}function TE(t){return(...e)=>{const n=e[e.length-1];if(IE(n))try{const r=t(...e.slice(0,-1));n(null,r)}catch(r){n(r instanceof Error?r:new Error("Unknown error"))}else return t(...e)}}Is.createOptionalCallbackFunction=TE;Object.defineProperty(vn,"__esModule",{value:!0});vn.HmacSha1=vn.RsaSha512=vn.RsaSha256=vn.RsaSha1=void 0;const br=yc,xr=Is;class OE{constructor(){this.getSignature=(0,xr.createOptionalCallbackFunction)((e,n)=>{const r=br.createSign("RSA-SHA1");return r.update(e),r.sign(n,"base64")}),this.verifySignature=(0,xr.createOptionalCallbackFunction)((e,n,r)=>{const i=br.createVerify("RSA-SHA1");return i.update(e),i.verify(n,r,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#rsa-sha1"}}vn.RsaSha1=OE;class DE{constructor(){this.getSignature=(0,xr.createOptionalCallbackFunction)((e,n)=>{const r=br.createSign("RSA-SHA256");return r.update(e),r.sign(n,"base64")}),this.verifySignature=(0,xr.createOptionalCallbackFunction)((e,n,r)=>{const i=br.createVerify("RSA-SHA256");return i.update(e),i.verify(n,r,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"}}vn.RsaSha256=DE;class zE{constructor(){this.getSignature=(0,xr.createOptionalCallbackFunction)((e,n)=>{const r=br.createSign("RSA-SHA512");return r.update(e),r.sign(n,"base64")}),this.verifySignature=(0,xr.createOptionalCallbackFunction)((e,n,r)=>{const i=br.createVerify("RSA-SHA512");return i.update(e),i.verify(n,r,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"}}vn.RsaSha512=zE;class RE{constructor(){this.getSignature=(0,xr.createOptionalCallbackFunction)((e,n)=>{const r=br.createHmac("SHA1",n);return r.update(e),r.digest("base64")}),this.verifySignature=(0,xr.createOptionalCallbackFunction)((e,n,r)=>{const i=br.createHmac("SHA1",n);return i.update(e),i.digest("base64")===r}),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#hmac-sha1"}}vn.HmacSha1=RE;Object.defineProperty(El,"__esModule",{value:!0});El.SignedXml=void 0;const zt=be,Cr=Sl,PE=yc,Mt=$l,lm=Qr,BE=Il,um=ei,cu=hr,Vs=vn,Oe=Es;class zn{constructor(e={}){this.signatureAlgorithm=void 0,this.canonicalizationAlgorithm=void 0,this.inclusiveNamespacesPrefixList=[],this.namespaceResolver={lookupNamespaceURI:function(){throw new Error("Not implemented")}},this.implicitTransforms=[],this.keyInfoAttributes={},this.getKeyInfoContent=zn.getKeyInfoContent,this.getCertFromKeyInfo=zn.getCertFromKeyInfo,this.id=0,this.signedXml="",this.signatureXml="",this.signatureNode=null,this.signatureValue="",this.originalXmlWithIds="",this.keyInfo=null,this.references=[],this.signedReferences=[],this.CanonicalizationAlgorithms={"http://www.w3.org/TR/2001/REC-xml-c14n-20010315":lm.C14nCanonicalization,"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments":lm.C14nCanonicalizationWithComments,"http://www.w3.org/2001/10/xml-exc-c14n#":um.ExclusiveCanonicalization,"http://www.w3.org/2001/10/xml-exc-c14n#WithComments":um.ExclusiveCanonicalizationWithComments,"http://www.w3.org/2000/09/xmldsig#enveloped-signature":BE.EnvelopedSignature},this.HashAlgorithms={"http://www.w3.org/2000/09/xmldsig#sha1":cu.Sha1,"http://www.w3.org/2001/04/xmlenc#sha256":cu.Sha256,"http://www.w3.org/2001/04/xmlenc#sha512":cu.Sha512},this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#rsa-sha1":Vs.RsaSha1,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256":Vs.RsaSha256,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512":Vs.RsaSha512};const{idMode:n,idAttribute:r,privateKey:i,publicCert:o,signatureAlgorithm:c,canonicalizationAlgorithm:l,inclusiveNamespacesPrefixList:u,implicitTransforms:d,keyInfoAttributes:p,getKeyInfoContent:h,getCertFromKeyInfo:g}=e;this.idMode=n,this.idAttributes=["Id","ID","id"],r&&this.idAttributes.unshift(r),this.privateKey=i,this.publicCert=o,this.signatureAlgorithm=c??this.signatureAlgorithm,this.canonicalizationAlgorithm=l,typeof u=="string"?this.inclusiveNamespacesPrefixList=u.split(" "):Oe.isArrayHasLength(u)&&(this.inclusiveNamespacesPrefixList=u),this.implicitTransforms=d??this.implicitTransforms,this.keyInfoAttributes=p??this.keyInfoAttributes,this.getKeyInfoContent=h??this.getKeyInfoContent,this.getCertFromKeyInfo=g??zn.noop,this.CanonicalizationAlgorithms,this.HashAlgorithms,this.SignatureAlgorithms}enableHMAC(){this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#hmac-sha1":Vs.HmacSha1},this.getKeyInfoContent=zn.noop}static getKeyInfoContent({publicCert:e,prefix:n}){if(e==null)return null;n=n?`${n}:`:"";let r="";Buffer.isBuffer(e)&&(e=e.toString("latin1"));let i=[];return typeof e=="string"&&(i=e.match(Oe.EXTRACT_X509_CERTS)||[]),i.length>0&&(r=i.map(o=>`<${n}X509Certificate>${Oe.pemToDer(o).toString("base64")}</${n}X509Certificate>`).join("")),`<${n}X509Data>${r}</${n}X509Data>`}static getCertFromKeyInfo(e){if(e!=null){const n=Mt.select1(".//*[local-name(.)='X509Certificate']",e);if(zt.isNodeLike(n))return Oe.derToPem(n.textContent??"","CERTIFICATE")}return null}checkSignature(e,n){if(n!=null&&typeof n!="function")throw new Error("Last parameter must be a callback function");this.signedXml=e;const r=new Cr.DOMParser().parseFromString(e);this.references=[];const i=this.getCanonSignedInfoXml(r);if(!i){if(n){n(new Error("Canonical signed info cannot be empty"),!1);return}throw new Error("Canonical signed info cannot be empty")}const c=new Cr.DOMParser().parseFromString(i,"text/xml").documentElement;if(!c){if(n){n(new Error("Could not parse unverifiedSignedInfoCanon into a document"),!1);return}throw new Error("Could not parse unverifiedSignedInfoCanon into a document")}const l=Oe.findChildren(c,"Reference");if(!Oe.isArrayHasLength(l)){if(n){n(new Error("could not find any Reference elements"),!1);return}throw new Error("could not find any Reference elements")}for(const h of l)this.loadReference(h);if(!this.getReferences().every(h=>this.validateReference(h,r))){if(this.signedReferences=[],this.references.forEach(h=>{h.signedReference=void 0}),n){n(new Error("Could not validate all references"),!1);return}return!1}const u=this.findSignatureAlgorithm(this.signatureAlgorithm),d=this.getCertFromKeyInfo(this.keyInfo)||this.publicCert||this.privateKey;if(d==null)throw new Error("KeyInfo or publicCert or privateKey is required to validate signature");if(u.verifySignature(i,d,this.signatureValue)===!0)if(n)n(null,!0);else return!0;else if(this.signedReferences=[],this.references.forEach(h=>{h.signedReference=void 0}),n){n(new Error(`invalid signature: the signature value ${this.signatureValue} is incorrect`));return}else throw new Error(`invalid signature: the signature value ${this.signatureValue} is incorrect`)}getCanonSignedInfoXml(e){if(this.signatureNode==null)throw new Error("No signature found.");if(typeof this.canonicalizationAlgorithm!="string")throw new Error("Missing canonicalizationAlgorithm when trying to get signed info for XML");const n=Oe.findChildren(this.signatureNode,"SignedInfo");if(n.length===0)throw new Error("could not find SignedInfo element in the message");if(n.length>1)throw new Error("could not get canonicalized signed info for a signature that contains multiple SignedInfo nodes");if((this.canonicalizationAlgorithm==="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"||this.canonicalizationAlgorithm==="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments")&&(!e||typeof e!="object"))throw new Error("When canonicalization method is non-exclusive, whole xml dom must be provided as an argument");const i={ancestorNamespaces:Oe.findAncestorNs(e,"//*[local-name()='SignedInfo']")};return this.getCanonXml([this.canonicalizationAlgorithm],n[0],i)}getCanonReferenceXml(e,n,r){Array.isArray(n.transforms)&&(n.ancestorNamespaces=Oe.findAncestorNs(e,n.xpath,this.namespaceResolver));const i={inclusiveNamespacesPrefixList:n.inclusiveNamespacesPrefixList,ancestorNamespaces:n.ancestorNamespaces};return this.getCanonXml(n.transforms,r,i)}calculateSignatureValue(e,n){const r=this.getCanonSignedInfoXml(e),i=this.findSignatureAlgorithm(this.signatureAlgorithm);if(this.privateKey==null)throw new Error("Private key is required to compute signature");typeof n=="function"?i.getSignature(r,this.privateKey,n):this.signatureValue=i.getSignature(r,this.privateKey)}findSignatureAlgorithm(e){if(e==null)throw new Error("signatureAlgorithm is required");const n=this.SignatureAlgorithms[e];if(n)return new n;throw new Error(`signature algorithm '${e}' is not supported`)}findCanonicalizationAlgorithm(e){if(e!=null){const n=this.CanonicalizationAlgorithms[e];if(n)return new n}throw new Error(`canonicalization algorithm '${e}' is not supported`)}findHashAlgorithm(e){const n=this.HashAlgorithms[e];if(n)return new n;throw new Error(`hash algorithm '${e}' is not supported`)}validateElementAgainstReferences(e,n){var i;let r;if(typeof e=="string"){const o=Mt.select1(e,n);zt.assertIsElementNode(o),r=o}else r=e;for(const o of this.getReferences()){const c=((i=o.uri)==null?void 0:i[0])==="#"?o.uri.substring(1):o.uri;for(const p of this.idAttributes){const h=r.getAttribute(p);if(c===h){o.xpath=`//*[@*[local-name(.)='${p}']='${c}']`;break}}const l=this.getCanonReferenceXml(n,o,r),d=this.findHashAlgorithm(o.digestAlgorithm).getHash(l);if(Oe.validateDigestValue(d,o.digestValue))return o}throw new Error("No references passed validation")}validateReference(e,n){var u;const r=((u=e.uri)==null?void 0:u[0])==="#"?e.uri.substring(1):e.uri;let i=null;if(r==="")i=Mt.select1("//*",n);else{if((r==null?void 0:r.indexOf("'"))!==-1)throw new Error("Cannot validate a uri with quotes inside it");{let d=0;for(const p of this.idAttributes){const h=`//*[@*[local-name(.)='${p}']='${r}']`,g=Mt.select(h,n);if(Oe.isArrayHasLength(g)){if(d+=g.length,d>1)throw new Error("Cannot validate a document which contains multiple elements with the same value for the ID / Id / Id attributes, in order to prevent signature wrapping attack.");i=g[0],e.xpath=h}}}}if(e.getValidatedNode=(0,PE.deprecate)(d=>{if(d=d||e.xpath,typeof d!="string"||e.validationError!=null)return null;const p=Mt.select1(d,n);return zt.isNodeLike(p)?p:null},"`ref.getValidatedNode()` is deprecated and insecure. Use `ref.signedReference` or `this.getSignedReferences()` instead."),!zt.isNodeLike(i)){const d=new Error(`invalid signature: the signature references an element with uri ${e.uri} but could not find such element in the xml`);return e.validationError=d,!1}const o=this.getCanonReferenceXml(n,e,i),l=this.findHashAlgorithm(e.digestAlgorithm).getHash(o);if(!Oe.validateDigestValue(l,e.digestValue)){const d=new Error(`invalid signature: for uri ${e.uri} calculated digest is ${l} but the xml to validate supplies digest ${e.digestValue}`);return e.validationError=d,!1}return this.signedReferences.push(o),e.signedReference=o,!0}findSignatures(e){const n=Mt.select("//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",e);return zt.isArrayOfNodes(n)?n:[]}loadSignature(e){typeof e=="string"?this.signatureNode=e=new Cr.DOMParser().parseFromString(e):this.signatureNode=e,this.signatureXml=e.toString();const n=Mt.select1(".//*[local-name(.)='CanonicalizationMethod']/@Algorithm",e);if(!zt.isNodeLike(n))throw new Error("could not find CanonicalizationMethod/@Algorithm element");zt.isAttributeNode(n)&&(this.canonicalizationAlgorithm=n.value);const r=Mt.select1(".//*[local-name(.)='SignatureMethod']/@Algorithm",e);zt.isAttributeNode(r)&&(this.signatureAlgorithm=r.value);const i=Oe.findChildren(this.signatureNode,"SignedInfo");if(!Oe.isArrayHasLength(i))throw new Error("no signed info node found");if(i.length>1)throw new Error("could not load signature that contains multiple SignedInfo nodes");let o=this.canonicalizationAlgorithm;(!o||o==="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"||o==="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments")&&(o="http://www.w3.org/2001/10/xml-exc-c14n#");const c=this.getCanonXml([o],i[0]),u=new Cr.DOMParser().parseFromString(c,"text/xml").documentElement;this.references=[];const d=Oe.findChildren(u,"Reference");if(!Oe.isArrayHasLength(d))throw new Error("could not find any Reference elements");for(const g of d)this.loadReference(g);const p=Mt.select1(".//*[local-name(.)='SignatureValue']/text()",e);zt.isTextNode(p)&&(this.signatureValue=p.data.replace(/\r?\n/g,""));const h=Mt.select1(".//*[local-name(.)='KeyInfo']",e);zt.isNodeLike(h)&&(this.keyInfo=h)}loadReference(e){let n=Oe.findChildren(e,"DigestMethod");if(n.length===0)throw new Error(`could not find DigestMethod in reference ${e.toString()}`);const r=n[0],i=Oe.findAttr(r,"Algorithm");if(!i)throw new Error(`could not find Algorithm attribute in node ${r.toString()}`);const o=i.value;if(n=Oe.findChildren(e,"DigestValue"),n.length===0)throw new Error(`could not find DigestValue node in reference ${e.toString()}`);if(n.length>1)throw new Error(`could not load reference for a node that contains multiple DigestValue nodes: ${e.toString()}`);const c=n[0].textContent;if(!c)throw new Error(`could not find the value of DigestValue in ${e.toString()}`);const l=[];let u=[];if(n=Oe.findChildren(e,"Transforms"),n.length!==0){const p=n[0],h=Oe.findChildren(p,"Transform");for(const A of h){const m=Oe.findAttr(A,"Algorithm");m&&l.push(m.value)}const g=Oe.findChildren(h[h.length-1],"InclusiveNamespaces");Oe.isArrayHasLength(g)&&(u=g.flatMap(A=>(A.getAttribute("PrefixList")??"").split(" ")).filter(A=>A.length>0))}Oe.isArrayHasLength(this.implicitTransforms)&&this.implicitTransforms.forEach(function(p){l.push(p)}),(l.length===0||l[l.length-1]==="http://www.w3.org/2000/09/xmldsig#enveloped-signature")&&l.push("http://www.w3.org/TR/2001/REC-xml-c14n-20010315");const d=zt.isElementNode(e)&&e.getAttribute("URI")||void 0;this.addReference({transforms:l,digestAlgorithm:o,uri:d,digestValue:c,inclusiveNamespacesPrefixList:u,isEmptyUri:!1})}addReference({xpath:e,transforms:n,digestAlgorithm:r,uri:i="",digestValue:o,inclusiveNamespacesPrefixList:c=[],isEmptyUri:l=!1}){if(r==null)throw new Error("digestAlgorithm is required");if(!Oe.isArrayHasLength(n))throw new Error("transforms must contain at least one transform algorithm");this.references.push({xpath:e,transforms:n,digestAlgorithm:r,uri:i,digestValue:o,inclusiveNamespacesPrefixList:c,isEmptyUri:l,getValidatedNode:()=>{throw new Error("Reference has not been validated yet; Did you call `sig.checkSignature()`?")}})}getReferences(){return this.references}getSignedReferences(){return[...this.signedReferences]}computeSignature(e,n,r){let i;typeof n=="function"&&r==null?(i=n,n={}):(i=r,n=n??{});const o=new Cr.DOMParser().parseFromString(e);let c="xmlns";const l=[];let u;const d=["append","prepend","before","after"],p=n.prefix,h=n.attrs||{},g=n.location||{},A=n.existingPrefixes||{};if(this.namespaceResolver={lookupNamespaceURI:function(H){return H?A[H]:null}},g.reference=g.reference||"/*",g.action=g.action||"append",d.indexOf(g.action)===-1){const H=new Error(`location.action option has an invalid action: ${g.action}, must be any of the following values: ${d.join(", ")}`);if(i){i(H);return}else throw H}p?(c+=`:${p}`,u=`${p}:`):u="",Object.keys(h).forEach(function(H){H!=="xmlns"&&H!==c&&l.push(`${H}="${h[H]}"`)}),l.push(`${c}="http://www.w3.org/2000/09/xmldsig#"`);let m=`<${u}Signature ${l.join(" ")}>`;m+=this.createSignedInfo(o,p),m+=this.getKeyInfo(p),m+=`</${u}Signature>`,this.originalXmlWithIds=o.toString();let $="";Object.keys(A).forEach(function(H){$+=`xmlns:${H}="${A[H]}" `});const k=`<Dummy ${$}>${m}</Dummy>`,b=new Cr.DOMParser().parseFromString(k).documentElement.firstChild,T=Mt.select1(g.reference,o);if(!zt.isNodeLike(T)){const H=new Error(`the following xpath cannot be used because it was not found: ${g.reference}`);if(i){i(H);return}else throw H}if(g.action==="append")T.appendChild(b);else if(g.action==="prepend")T.insertBefore(b,T.firstChild);else if(g.action==="before"){if(T.parentNode==null)throw new Error("`location.reference` refers to the root node (by default), so we can't insert `before`");T.parentNode.insertBefore(b,T)}else if(g.action==="after"){if(T.parentNode==null)throw new Error("`location.reference` refers to the root node (by default), so we can't insert `after`");T.parentNode.insertBefore(b,T.nextSibling)}this.signatureNode=b;const M=Oe.findChildren(this.signatureNode,"SignedInfo");if(M.length===0){const H=new Error("could not find SignedInfo element in the message");if(i){i(H);return}else throw H}const U=M[0];typeof i=="function"?this.calculateSignatureValue(o,(H,W)=>{H?i(H):(this.signatureValue=W||"",b.insertBefore(this.createSignature(p),U.nextSibling),this.signatureXml=b.toString(),this.signedXml=o.toString(),i(null,this))}):(this.calculateSignatureValue(o),b.insertBefore(this.createSignature(p),U.nextSibling),this.signatureXml=b.toString(),this.signedXml=o.toString())}getKeyInfo(e){const n=e?`${e}:`:"";let r="";this.keyInfoAttributes&&Object.keys(this.keyInfoAttributes).forEach(o=>{r+=` ${o}="${this.keyInfoAttributes[o]}"`});const i=this.getKeyInfoContent({publicCert:this.publicCert,prefix:e});return r||i?`<${n}KeyInfo${r}>${i}</${n}KeyInfo>`:""}createReferences(e,n){let r="";n=n||"",n=n&&`${n}:`;for(const i of this.getReferences()){const o=Mt.selectWithResolver(i.xpath??"",e,this.namespaceResolver);if(!Oe.isArrayHasLength(o))throw new Error(`the following xpath cannot be signed because it was not found: ${i.xpath}`);for(const c of o){if(i.isEmptyUri)r+=`<${n}Reference URI="">`;else{const d=this.ensureHasId(c);i.uri=d,r+=`<${n}Reference URI="#${d}">`}r+=`<${n}Transforms>`;for(const d of i.transforms||[]){const p=this.findCanonicalizationAlgorithm(d);r+=`<${n}Transform Algorithm="${p.getAlgorithmName()}"`,Oe.isArrayHasLength(i.inclusiveNamespacesPrefixList)?(r+=">",r+=`<InclusiveNamespaces PrefixList="${i.inclusiveNamespacesPrefixList.join(" ")}" xmlns="${p.getAlgorithmName()}"/>`,r+=`</${n}Transform>`):r+=" />"}const l=this.getCanonReferenceXml(e,i,c),u=this.findHashAlgorithm(i.digestAlgorithm);r+=`</${n}Transforms><${n}DigestMethod Algorithm="${u.getAlgorithmName()}" /><${n}DigestValue>${u.getHash(l)}</${n}DigestValue></${n}Reference>`}}return r}getCanonXml(e,n,r={}){r.defaultNsForPrefix=r.defaultNsForPrefix??zn.defaultNsForPrefix,r.signatureNode=this.signatureNode;let o=n.cloneNode(!0);return e.forEach(c=>{zt.isNodeLike(o)&&(o=this.findCanonicalizationAlgorithm(c).process(o,r))}),o.toString()}ensureHasId(e){let n;if(this.idMode==="wssecurity"?n=Oe.findAttr(e,"Id","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"):this.idAttributes.some(i=>(n=Oe.findAttr(e,i),!!n)),n)return n.value;const r=`_${this.id++}`;return this.idMode==="wssecurity"?(e.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:wsu","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"),e.setAttributeNS("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd","wsu:Id",r)):e.setAttribute("Id",r),r}createSignedInfo(e,n){if(typeof this.canonicalizationAlgorithm!="string")throw new Error("Missing canonicalizationAlgorithm when trying to create signed info for XML");const r=this.findCanonicalizationAlgorithm(this.canonicalizationAlgorithm),i=this.findSignatureAlgorithm(this.signatureAlgorithm);let o;o=n||"",o=o&&`${o}:`;let c=`<${o}SignedInfo>`;return c+=`<${o}CanonicalizationMethod Algorithm="${r.getAlgorithmName()}"`,Oe.isArrayHasLength(this.inclusiveNamespacesPrefixList)?(c+=">",c+=`<InclusiveNamespaces PrefixList="${this.inclusiveNamespacesPrefixList.join(" ")}" xmlns="${r.getAlgorithmName()}"/>`,c+=`</${o}CanonicalizationMethod>`):c+=" />",c+=`<${o}SignatureMethod Algorithm="${i.getAlgorithmName()}" />`,c+=this.createReferences(e,n),c+=`</${o}SignedInfo>`,c}createSignature(e){let n="xmlns";e?(n+=`:${e}`,e+=":"):e="";const r=`<${e}SignatureValue>${this.signatureValue}</${e}SignatureValue>`,i=`<${e}Signature ${n}="http://www.w3.org/2000/09/xmldsig#">${r}</${e}Signature>`;return new Cr.DOMParser().parseFromString(i).documentElement.firstChild}getSignatureXml(){return this.signatureXml}getOriginalXmlWithIds(){return this.originalXmlWithIds}getSignedXml(){return this.signedXml}}El.SignedXml=zn;zn.defaultNsForPrefix={ds:"http://www.w3.org/2000/09/xmldsig#"};zn.noop=()=>null;(function(t){var e=cr&&cr.__createBinding||(Object.create?function(c,l,u,d){d===void 0&&(d=u);var p=Object.getOwnPropertyDescriptor(l,u);(!p||("get"in p?!l.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(c,d,p)}:function(c,l,u,d){d===void 0&&(d=u),c[d]=l[u]}),n=cr&&cr.__exportStar||function(c,l){for(var u in c)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&e(l,c,u)};Object.defineProperty(t,"__esModule",{value:!0}),t.SignedXml=t.ExclusiveCanonicalizationWithComments=t.ExclusiveCanonicalization=t.C14nCanonicalizationWithComments=t.C14nCanonicalization=void 0;var r=Qr;Object.defineProperty(t,"C14nCanonicalization",{enumerable:!0,get:function(){return r.C14nCanonicalization}}),Object.defineProperty(t,"C14nCanonicalizationWithComments",{enumerable:!0,get:function(){return r.C14nCanonicalizationWithComments}});var i=ei;Object.defineProperty(t,"ExclusiveCanonicalization",{enumerable:!0,get:function(){return i.ExclusiveCanonicalization}}),Object.defineProperty(t,"ExclusiveCanonicalizationWithComments",{enumerable:!0,get:function(){return i.ExclusiveCanonicalizationWithComments}});var o=El;Object.defineProperty(t,"SignedXml",{enumerable:!0,get:function(){return o.SignedXml}}),n(Is,t),n(Es,t)})(I8);async function jE(t){const e=new DecompressionStream("deflate-raw"),n=new Blob([t]).stream().pipeThrough(e);return new Uint8Array(await new Response(n).arrayBuffer())}async function LE(t){const e=await e2.decode(t.replace(/ /g,"+"));try{const n=await jE(e);return new TextDecoder().decode(n)}catch(n){return console.warn("Decompression failed, assuming data is not compressed:",n),new TextDecoder().decode(e)}}async function FE(t){const e=await LE(t),r=new hp.XMLParser({attributeNamePrefix:"@_",alwaysCreateTextNode:!0,ignoreAttributes:!1}).parse(e);return k8.parse(r)}function UE(t){const e=[{":@":{"@_entityID":t.entityId,"@_xmlns":"urn:oasis:names:tc:SAML:2.0:metadata"},EntityDescriptor:[{":@":{"@_protocolSupportEnumeration":"urn:oasis:names:tc:SAML:2.0:protocol"},IDPSSODescriptor:[{":@":{"@_use":"signing"},KeyDescriptor:[{":@":{"@_xmlns":"http://www.w3.org/2000/09/xmldsig#"},KeyInfo:[{X509Data:[{X509Certificate:[{"#text":t.cert}]}]}]}]},{":@":{"@_Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect","@_Location":t.singleLogoutServiceUrl},SingleLogoutService:[]},{":@":{"@_Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@_Location":t.singleLogoutServiceUrl},SingleLogoutService:[]},{NameIDFormat:[{"#text":"urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"}]},{NameIDFormat:[{"#text":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"}]},{NameIDFormat:[{"#text":"urn:oasis:names:tc:SAML:2.0:nameid-format:transient"}]},{":@":{"@_Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect","@_Location":t.assertionConsumerServiceUrl},SingleSignOnService:[]},{":@":{"@_Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@_Location":t.assertionConsumerServiceUrl},SingleSignOnService:[]},{":@":{"@_Name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","@_NameFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:uri","@_FriendlyName":"E-Mail Address","@_xmlns":"urn:oasis:names:tc:SAML:2.0:assertion"},Attribute:[]},{":@":{"@_Name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname","@_NameFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:uri","@_FriendlyName":"Given Name","@_xmlns":"urn:oasis:names:tc:SAML:2.0:assertion"},Attribute:[]},{":@":{"@_Name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name","@_NameFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:uri","@_FriendlyName":"Name","@_xmlns":"urn:oasis:names:tc:SAML:2.0:assertion"},Attribute:[]},{":@":{"@_Name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname","@_NameFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:uri","@_FriendlyName":"Surname","@_xmlns":"urn:oasis:names:tc:SAML:2.0:assertion"},Attribute:[]},{":@":{"@_Name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier","@_NameFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:uri","@_FriendlyName":"Name ID","@_xmlns":"urn:oasis:names:tc:SAML:2.0:assertion"},Attribute:[]}]}]}];return new hp.XMLBuilder({ignoreAttributes:!1,suppressEmptyNode:!0,preserveOrder:!0,format:!0}).build(e)}const ME=new s.OpenAPIHono().openapi(s.createRoute({tags:["saml"],method:"get",path:"/metadata/{client_id}",request:{params:s.z.object({client_id:s.z.string()})},responses:{200:{description:"Decoded SAML Request",content:{"text/xml":{schema:s.z.string()}}},400:{description:"Bad Request"}}}),async t=>{var l,u;const{client_id:e}=t.req.valid("param"),n=await t.env.data.clients.get(e);if(!n)throw new R(404,{message:"Client not found"});const[r]=await t.env.data.keys.list();if(!r)throw new R(500,{message:"No signing key found"});const i=new fl(r.cert),o=t.env.ISSUER,c=UE({entityId:((u=(l=n.addons)==null?void 0:l.samlp)==null?void 0:u.audience)||n.id,cert:i.toString("base64"),assertionConsumerServiceUrl:`${o}samlp/${e}`,singleLogoutServiceUrl:`${o}samlp/${e}/logout`});return new Response(c,{headers:{"Content-Type":"text/xml"}})}).openapi(s.createRoute({tags:["saml"],method:"get",path:"/{client_id}",request:{query:s.z.object({SAMLRequest:s.z.string(),RelayState:s.z.string().optional(),SigAlg:s.z.string().optional(),Signature:s.z.string().optional()}),params:s.z.object({client_id:s.z.string()})},responses:{200:{description:"Decoded SAML Request",content:{"text/xml":{schema:s.z.string()}}},400:{description:"Bad Request"}}}),async t=>{const{client_id:e}=t.req.valid("param"),{SAMLRequest:n,RelayState:r}=t.req.valid("query"),i=await t.env.data.clients.get(e);if(!i)throw new R(404,{message:"Client not found"});t.set("client_id",i.id),t.set("tenant_id",i.tenant.id);const o=await FE(n),c=o["samlp:AuthnRequest"]["saml:Issuer"]["#text"],l=await t.env.data.loginSessions.create(t.var.tenant_id,{csrf_token:qe(),authParams:{client_id:e,state:JSON.stringify({requestId:o["samlp:AuthnRequest"]["@_ID"],relayState:r}),response_mode:bn.SAML_POST,redirect_uri:o["samlp:AuthnRequest"]["@_AssertionConsumerServiceURL"],audience:c},expires_at:new Date(Date.now()+Ni*1e3).toISOString(),ip:t.get("ip"),useragent:t.get("useragent"),auth0Client:yr(t.get("auth0_client"))});return t.redirect(`/u/login/identifier?state=${l.id}`)});function qE(t){const e=new s.OpenAPIHono;e.use(async(r,i)=>{const o=es(r,t.dataAdapter),c=yl(o,{defaultTtl:3e5,cacheEntities:["tenants","connections","clients"]});return r.env.data=gl(r,c),i()}),e.use(_l).use(ml).use(af(e));const n=e.route("/",ME);return n.doc("/spec",{openapi:"3.0.0",info:{version:"1.0.0",title:"SAML API"},security:[{oauth2:["openid","email","profile"]}]}),sf(n),n}const VE="Account detected",HE="Account",KE="We have detected that you have already created an account through",GE="By signing in, you agree to our",WE="and",XE="email address",JE="email or phone number",YE="phone number",ZE="Callback URL mismatch",QE="The provided redirect_uri is not in the list of allowed callback URLs.",e9="continue with user",t9="Please click the button to create a new password account.",n9="Enter the code at {{vendorName}} to complete the login",r9="Welcome to {{vendorName}}! {{code}} is the login code",i9="Welcome to {{vendorName}}! {{code}} is the login code",o9="Code expired",s9="Invalid code",a9="Please check <0>{{username}}</0> and enter the six-digit code that we've sent you.",c9="The code is already used",l9="The code is valid for 30 minutes",u9="Confirm password",d9="Need Help?",p9="Contact us",f9="or continue with social account",h9="Continue with {{provider}}",g9="Would you like to continue with your existing account?",m9="Copyright © 2023 SESAMY. All rights reserved.",_9="©2023 Sesamy",y9="Choose a password with a mix of uppercase and lowercase letters, numbers, and symbols.",w9="Please enter a valid email address.",v9="The passwords didn't match. Try again.",b9="Choose password",x9="Password must be at least 8 characters long and contain at least one lowercase letter, one uppercase letter, one number and one symbol.",$9="Create new account",A9="Sign up with password",E9="You are currently logged in as <0>{{email}}</0>",S9="Email",k9="Email changed to <0>{{email}}</0> ",N9="Email or Phone Number",C9="Email address",I9="Your email address has been validated",T9="Now enter your password to login again",O9="An email has been sent to <0>{{email}}</0> with a verification link. Please click the link to verify your email address and set a password.",D9="Email verification sent",z9="Enter a code",R9="We'll send you a verification link to ensure you own this email address.",P9="Enter new email",B9="Enter new password",j9="Enter password",L9="Enter your email address and password to login.",F9="Enter your password",U9="The magic link has expired. Please click on the button below to receive a new link in your inbox.",M9="Hey! We updated our login experience. <0>Click here to learn more about it.</0>",q9="Send password reset email",V9="Click the button below and we’ll send instructions on how to reset your password.",H9="Password reset email sent",K9="Forgot password?",G9="Forgot password?",W9="Go back",X9="Hide password",J9="Invalid identifier",Y9="Invalid password",Z9=`The link is no longer valid.
|
|
285
285
|
|
|
286
286
|
Please make sure to open the login link in the same browser you started the login with.
|
|
287
287
|
|
|
288
|
-
You can click the link below to start a new login.`,
|
|
288
|
+
You can click the link below to start a new login.`,Q9="Invalid link",eS="Click the button to log in",tS="Login",nS="Or enter the code at {{vendorName}} to complete the login.",rS="Enter your email address to unlock this show on {{service}}",iS="Link your account with {{service}}",oS="You are logged in as",sS="Login",aS="Enter your email address to sign in.",cS="Enter your email address and we will send you a login code.",lS="Enter your email or phone number to sign in",uS="Enter your email address and we will send you a login link.",dS="Enter your phone number to sign in",pS="Enter your {{authMethod}} to sign in.",fS="Log out",hS="No, I want to use another account",gS="or",mS="Password",_S="The password has been reset",yS="Success",wS="Change password for your {{vendorName}} account",vS="Change password for your {{vendorName}} account",bS="Phone number",xS="Privacy Policy",$S="Redirecting",AS="Confirm password",ES="Register a new password",SS="Resend code",kS="Change password",NS="Enter your new password below for the email account: ",CS="Click the button to reset your password",IS="Click the button to reset your password",TS="Reset your password",OS="Change password for your {{vendorName}} account",DS="Reset password",zS="Send",RS="Send me a new magic link",PS="Remember to check your spam folder if the email did not arrive.",BS="Set password",jS="Show password",LS="Sign in",FS="Signup",US="Sign up successful",MS="{{code}} is your login code for {{vendorName}}",qS="It appears that your Spotify account is currently linked to another Sesamy account. But fear not, we're here to guide you through the process to get this fixed.",VS="Go to Spotify's Content Access page",HS=`Let's start by unlinking your Spotify account. Click the button below to go to Spotify's Content Access page. After you've logged in to your Spotify account, find Sesamy on the list of connected platforms. Click "Unlink" next to the Sesamy logo.`,KS="Step 1: Unlink Your Spotify Account",GS="Once you've successfully unlinked your Spotify account, you can relink it to Sesamy. Simply repeat the steps you previously took that led you to this page.",WS="Step 2: Relink Your Spotify Account to Sesamy",XS="Oops! Your Spotify Account Is Already Linked",JS="Success",YS="If you have questions or need assistance, you can contact our support team",ZS="Terms and Conditions",QS="Something went wrong. Please try again.",ek="Your email address needs validating. We have sent a new email to your inbox",tk="Update email",nk="User account does not exist",rk="User account does not exist",ik="We could not find a user with the provided email address. Please, try again.",ok="Try again.",sk="Validate code",ak="Check your inbox for email validation instructions.",ck="Signed up",lk="Click the button to verify your email address",uk="Validate your email address",dk="Validate your email address",pk="Verify account",fk="Verify your email",hk="Please check your email at <0>{{email}}</0> and enter the six-digit code that we've sent you.",gk="Welcome",mk="Welcome to your {{vendorName}} account!",_k="Continue with this account",yk="Yes, continue with {{text}}",wk="Yes, continue with existing account",vk={"Server error: Invalid code":"Invalid code",account_detected:VE,account_title:HE,account_with_sso_provider:KE,agree_to:GE,and:WE,auth_method_email:XE,auth_method_email_or_phone:JE,auth_method_phone:YE,callback_url_mismatch:ZE,callback_url_not_allowed:QE,check_email_title:e9,click_to_sign_up_description:t9,code_email_enter_code:n9,code_email_subject:r9,code_email_title:i9,code_expired:o9,code_invalid:s9,code_sent_template:a9,code_used:c9,code_valid_30_minutes:l9,confirm_password:u9,contact_support:d9,contact_us:p9,continue:"Continue",continue_social_login:f9,continue_with:h9,continue_with_sso_provider_headline:g9,copyright:m9,copyright_sesamy:_9,create_account_description:y9,create_account_email_invalid:w9,create_account_passwords_didnt_match:v9,create_account_title:b9,create_account_weak_password:x9,create_new_account_link:$9,create_password_account_title:A9,currently_logged_in_as:E9,email:S9,email_changed_to_template:k9,email_or_phone_placeholder:N9,email_placeholder:C9,email_validated:I9,email_validated_cta:T9,email_verification_for_signup_sent_description:O9,email_verification_for_signup_sent_title:D9,enter_a_code_btn:z9,enter_email_for_verification_description:R9,enter_new_email:P9,enter_new_password_placeholder:B9,enter_password:j9,enter_password_description:L9,enter_your_password_btn:F9,expired_code:U9,fokus_info_message:M9,forgot_password_cta:q9,forgot_password_description:V9,forgot_password_email_sent:H9,forgot_password_link:K9,forgot_password_title:G9,go_back:W9,hide_password:X9,"invalid-email":"Invalid email",invalid_identifier:J9,invalid_password:Y9,invalid_session_body:Z9,invalid_session_title:Q9,link_email_click_to_login:eS,link_email_login:tS,link_email_or_enter_code:nS,link_page_body:rS,link_page_headline:iS,logged_in_as:oS,login:sS,login_description:aS,login_description_code:cS,login_description_combined:lS,login_description_link:uS,login_description_phone:dS,login_description_template:pS,logout:fS,no_use_another:hS,or:gS,password:mS,password_has_been_reset:_S,password_has_been_reset_title:yS,password_reset_subject:wS,password_reset_title:vS,phone_placeholder:bS,privacy_policy:xS,redirecting:$S,reenter_new_password_placeholder:AS,register_password_account:ES,resend_code:SS,reset_password_cta:kS,reset_password_description:NS,reset_password_email_click_to_reset:CS,reset_password_email_cta:IS,reset_password_email_reset:TS,reset_password_subject:OS,reset_password_title:DS,send:zS,send_me_a_new_magic_link:RS,sent_code_spam:PS,set_password:BS,show_password:jS,sign_in:LS,signup:FS,signup_success:US,sms_code_text:MS,spotify_already_linked_body:qS,spotify_already_linked_cta:VS,spotify_already_linked_step1_body:HS,spotify_already_linked_step1_title:KS,spotify_already_linked_step2_body:GS,spotify_already_linked_step2_title:WS,spotify_already_linked_title:XS,success:JS,support_info:YS,terms:ZS,unexpected_error_try_again:QS,unverified_email:ek,update_email:tk,user_account_does_not_exist:nk,user_not_found:rk,user_not_found_body:ik,user_not_found_cta:ok,validate_code:sk,validate_email_body:ak,validate_email_title:ck,verify_email_click_to_verify:lk,verify_email_subject:uk,verify_email_title:dk,verify_email_verify:pk,verify_your_email:fk,we_sent_a_code_to:hk,welcome:gk,welcome_to_your_account:mk,yes_continue:_k,yes_continue_with:yk,yes_continue_with_existing_account:wk},bk="Account rilevato",xk="Conto",$k="Abbiamo rilevato che l'utente ha già creato un account tramite",Ak="Effettuando l'accesso, l'utente accetta la nostra",Ek="e",Sk="indirizzo e-mail",kk="e-mail o numero di telefono",Nk="numero di telefono",Ck="Mancata corrispondenza dell'URL di callback",Ik="Il redirect_uri fornito non è nell'elenco degli URL di callback consentiti.",Tk="continuare con l'utente",Ok="Fare clic sul pulsante per creare un nuovo account con password.",Dk="Inserite il codice all'indirizzo {{vendorName}} per completare il login.",zk="Benvenuti su {{vendorName}}! {{code}} è il codice di accesso",Rk="Benvenuti su {{vendorName}}! {{code}} è il codice di accesso",Pk="Codice scaduto",Bk="Codice non valido",jk="Controllare <0>{{username}}</0> e inserire il codice a sei cifre che vi abbiamo inviato.",Lk="Il codice è già utilizzato",Fk="Il codice è valido per 30 minuti",Uk="Confermare la password",Mk="Avete bisogno di aiuto?",qk="Contattateci",Vk="o continuare con il conto sociale",Hk="Continua con {{provider}}",Kk="Desidera continuare a utilizzare l'account esistente?",Gk="Copyright © 2023 SESAMY. Tutti i diritti riservati.",Wk="©2023 Sesamy",Xk="Scegliete una password con un mix di lettere maiuscole e minuscole, numeri e simboli.",Jk="Inserire un indirizzo e-mail valido.",Yk="Le password non corrispondono. Riprovare.",Zk="Scegliere la password",Qk="La password deve essere lunga almeno 8 caratteri e contenere almeno una lettera minuscola, una lettera maiuscola, un numero e un simbolo.",eN="Creare un nuovo account",tN="Iscriviti con la password",nN="Attualmente si è connessi come <0>{{email}}</0>",rN="Email",iN="L'e-mail è stata modificata in <0>{{email}}</0> ",oN="Indirizzo e-mail o numero di telefono",sN="Indirizzo e-mail",aN="Il tuo indirizzo e-mail è stato convalidato",cN="Ora inserire la password per accedere nuovamente",lN="È stata inviata un'e-mail a <0>{{email}}</0> con un link di verifica. Fare clic sul link per verificare l'indirizzo e-mail e impostare una password.",uN="Email di verifica inviata",dN="Inserire un codice",pN="Vi invieremo un link di verifica per assicurarvi di possedere questo indirizzo e-mail.",fN="Inserire un nuovo indirizzo e-mail",hN="Inserire la nuova password",gN="Inserire la password",mN="Inserire l'indirizzo e-mail e la password per accedere.",_N="Inserire la password",yN="Il link magico è scaduto. Cliccate sul pulsante sottostante per ricevere un nuovo link nella vostra casella di posta elettronica.",wN="Abbiamo aggiornato la nostra esperienza di accesso. <0>Clicca qui per saperne di più.</0>",vN="Inviare l'e-mail di reimpostazione della password",bN="Fare clic sul pulsante sottostante per ricevere le istruzioni su come reimpostare la password.",xN="Email di reimpostazione della password inviata",$N="Hai dimenticato la password?",AN="Hai dimenticato la password?",EN="Torna indietro",SN="Nascondere la password",kN="Identificatore non valido",NN="Password non valida",CN=`Il link non è più valido.
|
|
289
289
|
|
|
290
290
|
Assicuratevi di aprire il link di accesso con lo stesso browser con cui avete iniziato l'accesso.
|
|
291
291
|
|
|
292
|
-
Potete fare clic sul link sottostante per iniziare un nuovo accesso.`,
|
|
292
|
+
Potete fare clic sul link sottostante per iniziare un nuovo accesso.`,IN="Collegamento non valido",TN="Fare clic sul pulsante per accedere",ON="Accedi",DN="Oppure inserire il codice all'indirizzo {{vendorName}} per completare il login.",zN="Inserisci il tuo indirizzo e-mail per sbloccare questo spettacolo su {{service}}",RN="Collegate il vostro account con {{service}}",PN="L'utente ha effettuato l'accesso come",BN="Accesso",jN="Inserire l'indirizzo e-mail per accedere.",LN="Inserite il vostro indirizzo e-mail e vi invieremo un codice di accesso.",FN="Inserire l'e-mail o il numero di telefono per accedere",UN="Inserite il vostro indirizzo e-mail e vi invieremo un link di accesso.",MN="Inserire il numero di telefono per accedere",qN="Inserite il vostro {{authMethod}} per accedere.",VN="Disconnettersi",HN="No, voglio usare un altro account",KN="o",GN="Password",WN="La password è stata reimpostata",XN="Il successo",JN="Modifica della password dell'account {{vendorName}}",YN="Modifica della password dell'account {{vendorName}} ",ZN="Numero di telefono",QN="Informativa sulla privacy",e7="Reindirizzamento",t7="Confermare la password",n7="Registrazione di una nuova password",r7="Reinvio del codice",i7="Modifica della password",o7="Immettere di seguito la nuova password per l'account e-mail: ",s7="Fare clic sul pulsante per reimpostare la password",a7="Fare clic sul pulsante per reimpostare la password",c7="Reimpostare la password",l7="Modifica della password dell'account {{vendorName}} ",u7="Reimpostare la password",d7="Inviare",p7="Inviami un nuovo link magico",f7="Ricordate di controllare la cartella spam se l'e-mail non è arrivata.",h7="Impostare la password",g7="Mostra password",m7="Accedi",_7="Iscriviti",y7="Iscriviti con successo",w7="{{code}} è il codice di accesso per {{vendorName}}",v7="Sembra che il vostro account Spotify sia attualmente collegato a un altro account Sesamy. Ma non temete, siamo qui per guidarvi attraverso la procedura per risolvere il problema.",b7="Vai alla pagina di accesso ai contenuti di Spotify",x7=`Cominciamo con lo scollegare il vostro account Spotify. Fare clic sul pulsante sottostante per accedere alla pagina di accesso ai contenuti di Spotify. Dopo aver effettuato l'accesso al vostro account Spotify, trovate Sesamy nell'elenco delle piattaforme collegate. Fate clic su "Unlink" accanto al logo di Sesamy.`,$7="Passo 1: Disconnettere l'account Spotify",A7="Dopo aver scollegato con successo il proprio account Spotify, è possibile ricollegarlo a Sesamy. È sufficiente ripetere i passaggi precedenti che vi hanno portato a questa pagina.",E7="Passo 2: ricollegare l'account Spotify a Sesamy",S7="Ops! Il tuo account Spotify è già collegato",k7="Il successo",N7="Se avete domande o bisogno di assistenza, potete contattare il nostro team di supporto",C7="Termini e condizioni",I7="Qualcosa è andato storto. Riprovare.",T7="Il tuo indirizzo e-mail deve essere convalidato. Abbiamo inviato una nuova e-mail alla tua casella di posta.",O7="Aggiornamento e-mail",D7="L'account utente non esiste",z7="L'account utente non esiste",R7="Non è stato possibile trovare un utente con l'indirizzo e-mail fornito. Si prega di riprovare.",P7="Riprova.",B7="Convalida del codice",j7="Controllate la vostra casella di posta per le istruzioni di convalida dell'e-mail.",L7="Iscritta",F7="Fare clic sul pulsante per verificare l'indirizzo e-mail",U7="Convalidare l'indirizzo e-mail",M7="Convalidare l'indirizzo e-mail",q7="Verifica dell'account",V7="Verificare l'e-mail",H7="Controllate la vostra e-mail all'indirizzo <0>{{email}}</0> e inserisca il codice a sei cifre che le abbiamo inviato.",K7="Benvenuti",G7="Benvenuto nel tuo account {{vendorName}}!",W7="Continuare con questo account",X7="Sì, continuare con {{text}}",J7="Sì, continuare con l'account esistente",Y7={"Server error: Invalid code":"Codice non valido",account_detected:bk,account_title:xk,account_with_sso_provider:$k,agree_to:Ak,and:Ek,auth_method_email:Sk,auth_method_email_or_phone:kk,auth_method_phone:Nk,callback_url_mismatch:Ck,callback_url_not_allowed:Ik,check_email_title:Tk,click_to_sign_up_description:Ok,code_email_enter_code:Dk,code_email_subject:zk,code_email_title:Rk,code_expired:Pk,code_invalid:Bk,code_sent_template:jk,code_used:Lk,code_valid_30_minutes:Fk,confirm_password:Uk,contact_support:Mk,contact_us:qk,continue:"Continua",continue_social_login:Vk,continue_with:Hk,continue_with_sso_provider_headline:Kk,copyright:Gk,copyright_sesamy:Wk,create_account_description:Xk,create_account_email_invalid:Jk,create_account_passwords_didnt_match:Yk,create_account_title:Zk,create_account_weak_password:Qk,create_new_account_link:eN,create_password_account_title:tN,currently_logged_in_as:nN,email:rN,email_changed_to_template:iN,email_or_phone_placeholder:oN,email_placeholder:sN,email_validated:aN,email_validated_cta:cN,email_verification_for_signup_sent_description:lN,email_verification_for_signup_sent_title:uN,enter_a_code_btn:dN,enter_email_for_verification_description:pN,enter_new_email:fN,enter_new_password_placeholder:hN,enter_password:gN,enter_password_description:mN,enter_your_password_btn:_N,expired_code:yN,fokus_info_message:wN,forgot_password_cta:vN,forgot_password_description:bN,forgot_password_email_sent:xN,forgot_password_link:$N,forgot_password_title:AN,go_back:EN,hide_password:SN,"invalid-email":"Email non valida",invalid_identifier:kN,invalid_password:NN,invalid_session_body:CN,invalid_session_title:IN,link_email_click_to_login:TN,link_email_login:ON,link_email_or_enter_code:DN,link_page_body:zN,link_page_headline:RN,logged_in_as:PN,login:BN,login_description:jN,login_description_code:LN,login_description_combined:FN,login_description_link:UN,login_description_phone:MN,login_description_template:qN,logout:VN,no_use_another:HN,or:KN,password:GN,password_has_been_reset:WN,password_has_been_reset_title:XN,password_reset_subject:JN,password_reset_title:YN,phone_placeholder:ZN,privacy_policy:QN,redirecting:e7,reenter_new_password_placeholder:t7,register_password_account:n7,resend_code:r7,reset_password_cta:i7,reset_password_description:o7,reset_password_email_click_to_reset:s7,reset_password_email_cta:a7,reset_password_email_reset:c7,reset_password_subject:l7,reset_password_title:u7,send:d7,send_me_a_new_magic_link:p7,sent_code_spam:f7,set_password:h7,show_password:g7,sign_in:m7,signup:_7,signup_success:y7,sms_code_text:w7,spotify_already_linked_body:v7,spotify_already_linked_cta:b7,spotify_already_linked_step1_body:x7,spotify_already_linked_step1_title:$7,spotify_already_linked_step2_body:A7,spotify_already_linked_step2_title:E7,spotify_already_linked_title:S7,success:k7,support_info:N7,terms:C7,unexpected_error_try_again:I7,unverified_email:T7,update_email:O7,user_account_does_not_exist:D7,user_not_found:z7,user_not_found_body:R7,user_not_found_cta:P7,validate_code:B7,validate_email_body:j7,validate_email_title:L7,verify_email_click_to_verify:F7,verify_email_subject:U7,verify_email_title:M7,verify_email_verify:q7,verify_your_email:V7,we_sent_a_code_to:H7,welcome:K7,welcome_to_your_account:G7,yes_continue:W7,yes_continue_with:X7,yes_continue_with_existing_account:J7},Z7="Konto oppdaget",Q7="Konto",eC="Vi har oppdaget at du allerede har opprettet en konto gjennom",tC="Ved å logge på godtar du våre",nC="og",rC="e-postadresse",iC="e-post eller telefonnummer",oC="telefonnummer",sC="Callback-URLen samsvarer ikke",aC="Den oppgitte redirect_uri er ikke på listen over tillatte tilbakeringings-URLer.",cC="fortsett med bruker",lC="Klikk på knappen for å opprette en ny passordkonto.",uC="Skriv inn koden på {{vendorName}} for å fullføre påloggingen",dC="Velkommen til {{vendorName}} ! {{code}} er påloggingskoden",pC="Velkommen til {{vendorName}}! {{code}} er påloggingskoden",fC="Koden er utløpt",hC="Ugyldig kode",gC="Vennligst sjekk <0>{{username}}</0> og skriv inn den sekssifrede koden som vi har sendt deg.",mC="Koden er allerede brukt",_C="Koden er gyldig i 30 minutter",yC="Bekreft passord",wC="Trenger hjelp?",vC="Kontakt oss",bC="eller fortsett med sosial konto",xC="Fortsett med {{provider}}",$C="Vil du fortsette med din eksisterende konto?",AC="Opphavsrett © 2023 SESAMY. Alle rettigheter forbeholdt.",EC="©2023 Sesamy",SC="Velg et passord med en blanding av store og små bokstaver, tall og symboler.",kC="Vennligst skriv inn en gyldig e-postadresse.",NC="Passordene stemte ikke overens. Prøv igjen.",CC="Velg passord",IC="Passordet må være på minst 8 tegn og inneholde minst én liten bokstav, én stor bokstav, ett tall og ett symbol.",TC="Opprett ny konto",OC="Registrer deg med passord",DC="Du er logget på som <0> {{email}}</0>",zC="E-post",RC="E-post endret til <0>{{email}}</0> ",PC="E-post eller telefonnummer",BC="E-postadresse",jC="E-postadressen din har blitt validert",LC="Skriv nå inn passordet ditt for å logge inn igjen",FC="En e-post har blitt sendt til <0>{{email}}</0> med en bekreftelseslenke. Klikk på lenken for å bekrefte e-postadressen din og angi et passord.",UC="E-postbekreftelse sendt",MC="Angi en kode",qC="Vi sender deg en bekreftelseskobling for å sikre at du eier denne e-postadressen.",VC="Skriv inn ny e-post",HC="Skriv inn nytt passord",KC="Oppgi passord",GC="Skriv inn e-postadressen og passordet ditt for å logge inn.",WC="Skriv inn passordet ditt",XC="Den magiske lenken er utløpt. Vennligst klikk på knappen nedenfor for å motta en ny lenke i innboksen din.",JC="Hei! Vi oppdaterte påloggingsopplevelsen vår. <0>Klikk her for å lære mer om det.</0>",YC="Send e-post om tilbakestilling av passord",ZC="Klikk på knappen nedenfor, så sender vi deg instruksjoner om hvordan du tilbakestiller passordet ditt.",QC="E-post om tilbakestilling av passord sendt",eI="Har du glemt passordet?",tI="Har du glemt passordet?",nI="Gå tilbake",rI="Skjul passord",iI="Ugyldig identifikator",oI="Ugyldig passord",sI=`Lenken er ikke lenger gyldig.
|
|
293
293
|
|
|
294
294
|
Sørg for å åpne påloggingslenken i samme nettleser som du startet påloggingen med.
|
|
295
295
|
|
|
296
|
-
Du kan klikke på lenken nedenfor for å starte en ny pålogging.`,
|
|
296
|
+
Du kan klikke på lenken nedenfor for å starte en ny pålogging.`,aI="Ugyldig lenke",cI="Klikk på knappen for å logge inn",lI="Logg inn",uI="Eller skriv inn koden på {{vendorName}} for å fullføre påloggingen.",dI="Skriv inn e-postadressen din for å låse opp dette programmet på {{service}}",pI="Koble kontoen din til {{service}}",fI="Du er innlogget som",hI="Logg inn",gI="Skriv inn e-postadressen din for å logge på.",mI="Skriv inn e-postadressen din og vi sender deg en påloggingskode.",_I="Skriv inn e-postadressen eller telefonnummeret ditt for å logge på",yI="Skriv inn e-postadressen din og vi sender deg en påloggingslenke.",wI="Skriv inn telefonnummeret ditt for å logge på",vI="Skriv inn din {{authMethod}} for å logge inn.",bI="Logg ut",xI="Nei, jeg vil bruke en annen konto",$I="eller",AI="Passord",EI="Passordet har blitt tilbakestilt",SI="Suksess",kI="Endre passord for {{vendorName}} kontoen din",NI="Endre passord for {{vendorName}} kontoen din",CI="Telefonnummer",II="Personvernerklæring",TI="Omdirigerer",OI="Bekreft passord",DI="Registrer et nytt passord",zI="Send kode på nytt",RI="Endre passord",PI="Skriv inn det nye passordet for e-postkontoen nedenfor: ",BI="Klikk på knappen for å tilbakestille passordet ditt",jI="Klikk på knappen for å tilbakestille passordet ditt",LI="Tilbakestill passordet ditt",FI="Endre passord for {{vendorName}} -kontoen din",UI="Tilbakestill passord",MI="Send",qI="Send meg en ny magisk lenke",VI="Husk å sjekke søppelpostmappen din hvis e-posten ikke kom.",HI="Angi passord",KI="Vis passord",GI="Logg inn",WI="Påmelding",XI="Vellykket registrering",JI="{{code}} er innloggingskoden din for {{vendorName}}",YI="Det ser ut til at Spotify-kontoen din for øyeblikket er koblet til en annen Sesamy-konto. Men ikke vær redd, vi er her for å veilede deg gjennom prosessen for å få dette fikset.",ZI="Gå til Spotifys innholdstilgangsside",QI='La oss starte med å koble fra Spotify-kontoen din. Klikk på knappen nedenfor for å gå til Spotifys innholdstilgang-side. Etter at du har logget på Spotify-kontoen din, finner du Sesamy på listen over tilkoblede plattformer. Klikk "Fjern kobling" ved siden av Sesamy-logoen.',eT="Trinn 1: Koble fra Spotify-kontoen din",tT="Når du har koblet fra Spotify-kontoen din, kan du koble den til Sesamy på nytt. Bare gjenta trinnene du tidligere tok som førte deg til denne siden.",nT="Trinn 2: Koble Spotify-kontoen din til Sesamy på nytt",rT="Oops! Spotify-kontoen din er allerede koblet",iT="Ferdig",oT="Hvis du har spørsmål eller trenger hjelp, kan du kontakte supportteamet vårt",sT="vilkår",aT="Noe gikk galt. Vennligst prøv igjen.",cT="E-postadressen din må bekreftes. Vi har sendt en ny e-post til innboksen din.",lT="Oppdater e-post",uT="Brukerkonto eksisterer ikke",dT="Brukerkonto eksisterer ikke",pT="Vi kunne ikke finne en bruker med den oppgitte e-postadressen. Vær så snill, prøv på nytt.",fT="Prøv igjen.",hT="Bekreft koden",gT="Sjekk innboksen din for instruksjoner om e-postvalidering.",mT="Registrerte seg",_T="Klikk på knappen for å bekrefte e-postadressen din",yT="Bekreft e-postadressen din",wT="Bekreft e-postadressen din",vT="Bekreft konto",bT="Bekreft e-posten din",xT="Vennligst sjekk e-posten din på <0>{{email}}</0> og skriv inn den sekssifrede koden som vi har sendt deg.",$T="Velkommen",AT="Velkommen til din brukerkonto hos {{vendorName}} !",ET="Fortsett med denne kontoen",ST="Ja, fortsett med {{text}}",kT="Ja, fortsett med eksisterende konto",NT={"Server error: Invalid code":"Ugyldig kode",account_detected:Z7,account_title:Q7,account_with_sso_provider:eC,agree_to:tC,and:nC,auth_method_email:rC,auth_method_email_or_phone:iC,auth_method_phone:oC,callback_url_mismatch:sC,callback_url_not_allowed:aC,check_email_title:cC,click_to_sign_up_description:lC,code_email_enter_code:uC,code_email_subject:dC,code_email_title:pC,code_expired:fC,code_invalid:hC,code_sent_template:gC,code_used:mC,code_valid_30_minutes:_C,confirm_password:yC,contact_support:wC,contact_us:vC,continue:"Fortsette",continue_social_login:bC,continue_with:xC,continue_with_sso_provider_headline:$C,copyright:AC,copyright_sesamy:EC,create_account_description:SC,create_account_email_invalid:kC,create_account_passwords_didnt_match:NC,create_account_title:CC,create_account_weak_password:IC,create_new_account_link:TC,create_password_account_title:OC,currently_logged_in_as:DC,email:zC,email_changed_to_template:RC,email_or_phone_placeholder:PC,email_placeholder:BC,email_validated:jC,email_validated_cta:LC,email_verification_for_signup_sent_description:FC,email_verification_for_signup_sent_title:UC,enter_a_code_btn:MC,enter_email_for_verification_description:qC,enter_new_email:VC,enter_new_password_placeholder:HC,enter_password:KC,enter_password_description:GC,enter_your_password_btn:WC,expired_code:XC,fokus_info_message:JC,forgot_password_cta:YC,forgot_password_description:ZC,forgot_password_email_sent:QC,forgot_password_link:eI,forgot_password_title:tI,go_back:nI,hide_password:rI,"invalid-email":"Ugyldig epost",invalid_identifier:iI,invalid_password:oI,invalid_session_body:sI,invalid_session_title:aI,link_email_click_to_login:cI,link_email_login:lI,link_email_or_enter_code:uI,link_page_body:dI,link_page_headline:pI,logged_in_as:fI,login:hI,login_description:gI,login_description_code:mI,login_description_combined:_I,login_description_link:yI,login_description_phone:wI,login_description_template:vI,logout:bI,no_use_another:xI,or:$I,password:AI,password_has_been_reset:EI,password_has_been_reset_title:SI,password_reset_subject:kI,password_reset_title:NI,phone_placeholder:CI,privacy_policy:II,redirecting:TI,reenter_new_password_placeholder:OI,register_password_account:DI,resend_code:zI,reset_password_cta:RI,reset_password_description:PI,reset_password_email_click_to_reset:BI,reset_password_email_cta:jI,reset_password_email_reset:LI,reset_password_subject:FI,reset_password_title:UI,send:MI,send_me_a_new_magic_link:qI,sent_code_spam:VI,set_password:HI,show_password:KI,sign_in:GI,signup:WI,signup_success:XI,sms_code_text:JI,spotify_already_linked_body:YI,spotify_already_linked_cta:ZI,spotify_already_linked_step1_body:QI,spotify_already_linked_step1_title:eT,spotify_already_linked_step2_body:tT,spotify_already_linked_step2_title:nT,spotify_already_linked_title:rT,success:iT,support_info:oT,terms:sT,unexpected_error_try_again:aT,unverified_email:cT,update_email:lT,user_account_does_not_exist:uT,user_not_found:dT,user_not_found_body:pT,user_not_found_cta:fT,validate_code:hT,validate_email_body:gT,validate_email_title:mT,verify_email_click_to_verify:_T,verify_email_subject:yT,verify_email_title:wT,verify_email_verify:vT,verify_your_email:bT,we_sent_a_code_to:xT,welcome:$T,welcome_to_your_account:AT,yes_continue:ET,yes_continue_with:ST,yes_continue_with_existing_account:kT},CT="Fortsätt med existerande konto",IT="Konto",TT="Det verkar som att du redan har skapat ett konto genom",OT="Genom att logga in godkänner du våra",DT="och",zT="E-postadress",RT="e-post eller telefonnummer",PT="telefonnummer",BT="Callback URL mismatch",jT="The provided redirect_uri is not in the list of allowed callback URLs.",LT="fortsätt med användaren",FT="Klicka på knappen för att skapa ett nytt lösenordskonto.",UT="Skriv in koden på {{vendorName}} för att slutföra inloggningen",MT="Välkommen till {{vendorName}}! {{code}} är koden för att logga in",qT="Välkommen till {{vendorName}}! {{code}} är koden för att logga in",VT="Koden har löpt ut",HT="Ogiltig kod",KT="Vänligen kontrollera <0>{{username}}</0> och ange den sexsiffriga koden som vi har skickat till dig.",GT="Koden är redan använd",WT="Koden är giltig i 30 minuter",XT="Bekräfta lösenord",JT="Behöver du hjälp?",YT="Kontakta oss",ZT="eller via sociala medier",QT="Fortsätt med {{provider}}",eO="Vill du fortsätta med det här kontot?",tO="Copyright © 2023 SESAMY. Alla rättigheter förbehållna.",nO="©2023 Sesamy",rO="Välj ett lösenord med en blandning av stora och små bokstäver, siffror och symboler.",iO="Ange en giltig e-postadress.",oO="Lösenorden stämde inte överens. Försök igen.",sO="Välj lösenord",aO="Lösenordet måste vara minst 8 tecken långt och innehålla minst en gemen bokstav, en versal bokstav, en siffra och en symbol.",cO="Skapa nytt konto",lO="Registrera dig med lösenord",uO="Du är inloggad som <0>{{email}}</0>",dO="E-postadress",pO="E-postadressen ändrades till <0>{{email}}</0> ",fO="E-post eller telefonnummer",hO="E-postadress",gO="Din e-postadress har validerats",mO="Ange nu ditt lösenord för att logga in igen",_O="Ett e-postmeddelande har skickats till <0>{{email}}</0> med en verifieringslänk. Vänligen klicka på länken för att verifiera din e-postadress och välja ett lösenord.",yO="E-postverifiering skickad",wO="Logga in med kod",vO="Vi skickar dig en verifieringslänk för att säkerställa att du äger den här e-postadressen.",bO="Ange ny e-postadress",xO="Ange nytt lösenord",$O="Ange lösenord",AO="Ange din e-postadress och ditt lösenord för att logga in.",EO="Logga in med lösenord",SO="Länken är inte längre giltig. Klicka på knappen för att skicka en ny länk till din epost.",kO="Vi har bytt inloggningssystem, <0>här kan du läsa mer om vad det innebär</0>",NO="Skicka",CO="Klicka på knappen nedan så skickar vi instruktioner om hur du återställer ditt lösenord.",IO="Vi har skickat ett e-postmeddelande med instruktioner om hur du återställer ditt lösenord till den e-postadress du angav.",TO="Har du glömt lösenordet?",OO="Har du glömt lösenordet?",DO="Gå tillbaka",zO="Dölj lösenord",RO="Ogiltig identifierare",PO="Ogiltigt lösenord",BO=`Länken är inte längre giltig.
|
|
297
297
|
|
|
298
298
|
Vänligen se till att öppna inloggningslänken i samma webbläsare som du startade inloggningen med.
|
|
299
299
|
|
|
300
|
-
Du kan klicka på länken nedan för att starta en ny inloggning.`,
|
|
300
|
+
Du kan klicka på länken nedan för att starta en ny inloggning.`,jO="Ogiltig länk",LO="Klicka på knappen för att logga in",FO="Logga in",UO="Eller skriv in koden på {{vendorName}} för att slutföra inloggningen.",MO="Ange din epost för att låsa upp den här showen på {{service}}",qO="Koppla ditt konto till {{service}}",VO="Du är inloggad som",HO="Logga in",KO="Ange din e-postadress för att logga in.",GO="Ange din mejladress, så skickar vi en kod till dig som du kan logga in med.",WO="Ange din e-postadress eller ditt telefonnummer för att logga in",XO="Ange din mejladress, så skickar vi en länk till dig som du kan logga in med.",JO="Ange ditt telefonnummer för att logga in",YO="Ange din {{authMethod}} för att logga in.",ZO="Logga ut",QO="Nej, jag vill använda ett annat konto",eD="eller",tD="Lösenord",nD="Lösenordet har återställts",rD="Framgång",iD="Byt lösenord för ditt {{vendorName}} konto",oD="Byt lösenord för ditt {{vendorName}} konto",sD="Telefonnummer",aD="Integritetspolicy",cD="Du skickas vidare",lD="Bekräfta lösenord",uD="Registrera ett nytt lösenord",dD="Skicka koden igen",pD="Ändra lösenord",fD="Ange ditt nya lösenord nedan för e-postkontot: ",hD="Klicka på knappen för att återställa ditt lösenord",gD="Klicka på knappen för att återställa ditt lösenord",mD="Återställ ditt lösenord",_D="Byt lösenord för ditt {{vendorName}} konto",yD="Återställ lösenord",wD="Skicka",vD="Skicka en ny inloggninglänk",bD="Kom ihåg att kontrollera din skräppost om du inte kan hitta mailet vi har skickat.",xD="Välj lösenord",$D="Visa lösenord",AD="Logga in",ED="Registrera dig",SD="Registrera dig framgångsrik",kD="{{code}} är din inloggningskod för {{vendorName}}",ND="Det verkar som att ditt Spotify-konto för närvarande är kopplat till ett annat Sesamy-konto. Ingen fara, vi är här för att guida dig genom processen för att lösa detta.",CD="Gå till Spotify's Content Access sida",ID=`Vi börjar med att avlänka ditt Spotify-konto. Klicka på knappen nedan för att komma till Spotify's Content Access sida. När du har loggat in på ditt Spotify-konto, leta upp Sesamy i listan över anslutna plattformar. Klicka på "Unlink" bredvid Sesamys logotyp.`,TD="Steg 1: Avlänka ditt Spotify-konto",OD="När du har avlänkat ditt Spotify-konto kan du koppla det till Sesamy igen. Upprepa helt enkelt de steg du tog som ledde dig till den här sidan.",DD="Steg 2: Koppla ditt Spotify-konto till Sesamy igen",zD="Oj! Ditt Spotify-konto är redan kopplat",RD="Klart",PD="Om du har frågor eller behöver hjälp kan du kontakta vårt supportteam",BD="Villkor",jD="Något gick fel. Vänligen försök igen.",LD="Din e-postadress behöver valideras. Vi har skickat ett nytt e-postmeddelande till din inkorg",FD="Ändra e-post",UD="Kontot existerar inte",MD="Kontot extisterar inte",qD="Vi kan inte hitta en användare med denna eposten. Vänligen försök igen.",VD="Försök igen.",HD="Validera kod",KD="Kontrollera din inkorg för instruktioner om validering av e-post.",GD="Registrerad",WD="Klicka på knappen för att verifiera din e-postadress",XD="Bekräfta din e-postadress",JD="Bekräfta din e-postadress",YD="Verifiera konto",ZD="Ange engångskod",QD="Vänligen kontrollera din e-post för <0>{{email}}</0> och ange den sexsiffriga koden som vi har skickat till dig.",ez="Välkommen",tz="Välkommen till ditt {{vendorName}}-konto!",nz="Fortsätt med konto",rz="Ja, fortsätt med {{text}}",iz="Ja, fortsätt med detta kontot",oz={"Server error: Invalid code":"Koden är inte giltig",account_detected:CT,account_title:IT,account_with_sso_provider:TT,agree_to:OT,and:DT,auth_method_email:zT,auth_method_email_or_phone:RT,auth_method_phone:PT,callback_url_mismatch:BT,callback_url_not_allowed:jT,check_email_title:LT,click_to_sign_up_description:FT,code_email_enter_code:UT,code_email_subject:MT,code_email_title:qT,code_expired:VT,code_invalid:HT,code_sent_template:KT,code_used:GT,code_valid_30_minutes:WT,confirm_password:XT,contact_support:JT,contact_us:YT,continue:"Fortsätt",continue_social_login:ZT,continue_with:QT,continue_with_sso_provider_headline:eO,copyright:tO,copyright_sesamy:nO,create_account_description:rO,create_account_email_invalid:iO,create_account_passwords_didnt_match:oO,create_account_title:sO,create_account_weak_password:aO,create_new_account_link:cO,create_password_account_title:lO,currently_logged_in_as:uO,email:dO,email_changed_to_template:pO,email_or_phone_placeholder:fO,email_placeholder:hO,email_validated:gO,email_validated_cta:mO,email_verification_for_signup_sent_description:_O,email_verification_for_signup_sent_title:yO,enter_a_code_btn:wO,enter_email_for_verification_description:vO,enter_new_email:bO,enter_new_password_placeholder:xO,enter_password:$O,enter_password_description:AO,enter_your_password_btn:EO,expired_code:SO,fokus_info_message:kO,forgot_password_cta:NO,forgot_password_description:CO,forgot_password_email_sent:IO,forgot_password_link:TO,forgot_password_title:OO,go_back:DO,hide_password:zO,"invalid-email":"Ogiltig e-postadress",invalid_identifier:RO,invalid_password:PO,invalid_session_body:BO,invalid_session_title:jO,link_email_click_to_login:LO,link_email_login:FO,link_email_or_enter_code:UO,link_page_body:MO,link_page_headline:qO,logged_in_as:VO,login:HO,login_description:KO,login_description_code:GO,login_description_combined:WO,login_description_link:XO,login_description_phone:JO,login_description_template:YO,logout:ZO,no_use_another:QO,or:eD,password:tD,password_has_been_reset:nD,password_has_been_reset_title:rD,password_reset_subject:iD,password_reset_title:oD,phone_placeholder:sD,privacy_policy:aD,redirecting:cD,reenter_new_password_placeholder:lD,register_password_account:uD,resend_code:dD,reset_password_cta:pD,reset_password_description:fD,reset_password_email_click_to_reset:hD,reset_password_email_cta:gD,reset_password_email_reset:mD,reset_password_subject:_D,reset_password_title:yD,send:wD,send_me_a_new_magic_link:vD,sent_code_spam:bD,set_password:xD,show_password:$D,sign_in:AD,signup:ED,signup_success:SD,sms_code_text:kD,spotify_already_linked_body:ND,spotify_already_linked_cta:CD,spotify_already_linked_step1_body:ID,spotify_already_linked_step1_title:TD,spotify_already_linked_step2_body:OD,spotify_already_linked_step2_title:DD,spotify_already_linked_title:zD,success:RD,support_info:PD,terms:BD,unexpected_error_try_again:jD,unverified_email:LD,update_email:FD,user_account_does_not_exist:UD,user_not_found:MD,user_not_found_body:qD,user_not_found_cta:VD,validate_code:HD,validate_email_body:KD,validate_email_title:GD,verify_email_click_to_verify:WD,verify_email_subject:XD,verify_email_title:JD,verify_email_verify:YD,verify_your_email:ZD,we_sent_a_code_to:QD,welcome:ez,welcome_to_your_account:tz,yes_continue:nz,yes_continue_with:rz,yes_continue_with_existing_account:iz},sz="Wykryto konto",az="Konto",cz="Wykryliśmy, że użytkownik utworzył już konto za pośrednictwem",lz="Logując się, wyrażasz zgodę na nasze",uz="i",dz="adres e-mail",pz="e-mail lub numer telefonu",fz="numer telefonu",hz="Niezgodność adresu URL wywołania zwrotnego",gz="Podany adres redirect_uri nie znajduje się na liście dozwolonych adresów URL wywołania zwrotnego.",mz="kontynuować z użytkownikiem",_z="Kliknij przycisk, aby utworzyć nowe konto z hasłem.",yz="Wpisz kod na stronie {{vendorName}}, aby się zalogować.",wz="Witamy na {{vendorName}}! {{code}} to kod logowania do Twojego konta.",vz="Witamy na {{vendorName}}! {{code}} to kod logowania.",bz="Kod wygasł",xz="Nieprawidłowy kod",$z="Sprawdź <0>{{username}}</0> i wprowadź sześciocyfrowy kod, który wysłaliśmy.",Az="Kod jest już używany",Ez="Kod jest ważny przez 30 minut",Sz="Potwierdź hasło",kz="Potrzebujesz pomocy?",Nz="Skontaktuj się z nami",Cz="lub kontynuować korzystanie z konta społecznościowego",Iz="Kontynuuj {{provider}}",Tz="Czy chcesz kontynuować korzystanie z istniejącego konta?",Oz="Copyright © 2023 SESAMY. Wszelkie prawa zastrzeżone.",Dz="©2023 Sesamy",zz="Wybierz hasło składające się z małych i wielkich liter, cyfr i symboli.",Rz="Wprowadź prawidłowy adres e-mail.",Pz="Hasła nie są zgodne. Spróbuj ponownie.",Bz="Wybierz hasło",jz="Hasło musi mieć co najmniej 8 znaków i zawierać co najmniej jedną małą literę, jedną wielką literę, jedną cyfrę i jeden symbol.",Lz="Utwórz nowe konto",Fz="Zarejestruj się przy użyciu hasła",Uz="Jesteś obecnie zalogowany jako <0>{{email}}</0>",Mz="E-mail",qz="Zmieniono adres e-mail na <0>{{email}}</0> ",Vz="E-mail lub numer telefonu",Hz="Adres e-mail",Kz="Twój adres e-mail został zweryfikowany",Gz="Teraz wprowadź hasło, aby zalogować się ponownie",Wz="Wiadomość e-mail została wysłana do <0>{{email}}</0> z linkiem weryfikacyjnym. Kliknij łącze, aby zweryfikować swój adres e-mail i ustawić hasło.",Xz="Wysłano weryfikację e-mail",Jz="Wprowadź kod",Yz="Wyślemy Ci link weryfikacyjny, aby upewnić się, że posiadasz ten adres e-mail.",Zz="Wprowadź nowy adres e-mail",Qz="Wprowadź nowe hasło",eR="Wprowadź hasło",tR="Wprowadź swój adres e-mail i hasło, aby się zalogować.",nR="Wprowadź hasło",rR="Magiczny link wygasł. Kliknij poniższy przycisk, aby otrzymać nowy link w skrzynce odbiorczej.",iR="Zaktualizowaliśmy sposób logowania. <0>Kliknij tutaj, aby dowiedzieć się więcej.</0>",oR="Wyślij wiadomość e-mail z resetem hasła",sR="Kliknij poniższy przycisk, a my wyślemy Ci instrukcje, jak zresetować hasło.",aR="Wysłano wiadomość e-mail z resetem hasła",cR="Zapomniałeś hasła?",lR="Zapomniałeś hasła?",uR="Wróć",dR="Ukryj hasło",pR="Nieprawidłowy identyfikator",fR="Nieprawidłowe hasło",hR=`Link jest już nieaktualny.
|
|
301
301
|
|
|
302
302
|
Upewnij się, że otworzyłeś link logowania w tej samej przeglądarce, w której rozpocząłeś logowanie.
|
|
303
303
|
|
|
304
|
-
Możesz kliknąć poniższy link, aby rozpocząć nowe logowanie.`,
|
|
304
|
+
Możesz kliknąć poniższy link, aby rozpocząć nowe logowanie.`,gR="Nieprawidłowy link",mR="Kliknij przycisk, aby się zalogować",_R="Zaloguj się",yR="Lub wprowadź kod na stronie {{vendorName}}, aby dokończyć logowanie.",wR="Wprowadź swój adres e-mail, aby odblokować ten program na {{service}}",vR="Połącz swoje konto z {{service}}",bR="Jesteś zalogowany jako",xR="Logowanie",$R="Wprowadź swój adres e-mail, aby się zalogować.",AR="Wprowadź swój adres e-mail, a my wyślemy Ci kod logowania.",ER="Wprowadź swój adres e-mail lub numer telefonu, aby się zalogować",SR="Wprowadź swój adres e-mail, a my wyślemy Ci link do logowania.",kR="Wprowadź swój numer telefonu, aby się zalogować",NR="Wprowadź swój adres {{authMethod}}, aby się zalogować.",CR="Wylogowanie",IR="Nie, chcę użyć innego konta",TR="lub",OR="Hasło",DR="Hasło zostało zresetowane",zR="Sukces",RR="Zmień hasło do konta {{vendorName}} ",PR="Zmiana hasła do konta {{vendorName}} ",BR="Numer telefonu",jR="Polityka prywatności",LR="Przekierowanie",FR="Potwierdź hasło",UR="Zarejestruj nowe hasło",MR="Wyślij ponownie kod",qR="Zmiana hasła",VR="Wprowadź poniżej nowe hasło do konta e-mail: ",HR="Kliknij przycisk, aby zresetować hasło",KR="Kliknij przycisk, aby zresetować hasło",GR="Zmień hasło",WR="Zmiana hasła do konta {{vendorName}} ",XR="Resetowanie hasła",JR="Wyślij",YR="Wyślij mi nowy magiczny link",ZR="Pamiętaj, aby sprawdzić folder spamu, jeśli wiadomość e-mail nie dotarła.",QR="Ustaw hasło",eP="Pokaż hasło",tP="Zaloguj się",nP="Rejestracja",rP="Rejestracja zakończona sukcesem",iP="{{code}} to kod logowania do {{vendorName}}",oP="Wygląda na to, że Twoje konto Spotify jest obecnie połączone z innym kontem Sesamy. Ale nie martw się, jesteśmy tutaj, aby poprowadzić Cię przez proces, aby to naprawić.",sP="Przejdź do strony dostępu do treści Spotify",aP='Zacznijmy od odłączenia konta Spotify. Kliknij poniższy przycisk, aby przejść do strony dostępu do treści Spotify. Po zalogowaniu się na swoje konto Spotify, znajdź Sesamy na liście połączonych platform. Kliknij "Odłącz" obok logo Sesamy.',cP="Krok 1: Odłącz swoje konto Spotify",lP="Po pomyślnym odłączeniu konta Spotify możesz ponownie połączyć je z Sesamy. Wystarczy powtórzyć poprzednie kroki, które doprowadziły Cię do tej strony.",uP="Krok 2: Połącz ponownie swoje konto Spotify z Sesamy",dP="Ups! Twoje konto Spotify jest już połączone",pP="Gotowe",fP="Jeśli masz pytania lub potrzebujesz pomocy, skontaktuj się z nami",hP="Zasady i warunki",gP="Coś poszło nie tak. Spróbuj ponownie.",mP="Twój adres e-mail wymaga weryfikacji. Wysłaliśmy nową wiadomość e-mail na Twoją skrzynkę odbiorczą",_P="Aktualizacja wiadomości e-mail",yP="Konto użytkownika nie istnieje",wP="Konto użytkownika nie istnieje",vP="Nie mogliśmy znaleźć użytkownika o podanym adresie e-mail. Spróbuj ponownie.",bP="Spróbuj ponownie.",xP="Sprawdź poprawność kodu",$P="Sprawdź swoją skrzynkę odbiorczą, aby uzyskać instrukcje dotyczące weryfikacji wiadomości e-mail.",AP="Zarejestrowany",EP="Kliknij przycisk, aby zweryfikować swój adres e-mail",SP="Potwierdź swój adres e-mail",kP="Potwierdź swój adres e-mail",NP="Zweryfikuj konto",CP="Zweryfikuj swój adres e-mail",IP="Sprawdź swoją skrzynkę e-mail pod adresem <0>{{email}}</0> i wprowadź sześciocyfrowy kod, który wysłaliśmy.",TP="Witamy",OP="Witamy na koncie {{vendorName}}!",DP="Kontynuuj korzystanie z tego konta",zP="Tak, kontynuuj {{text}}",RP="Tak, kontynuuj korzystanie z istniejącego konta",PP={"Server error: Invalid code":"Nieprawidłowy kod",account_detected:sz,account_title:az,account_with_sso_provider:cz,agree_to:lz,and:uz,auth_method_email:dz,auth_method_email_or_phone:pz,auth_method_phone:fz,callback_url_mismatch:hz,callback_url_not_allowed:gz,check_email_title:mz,click_to_sign_up_description:_z,code_email_enter_code:yz,code_email_subject:wz,code_email_title:vz,code_expired:bz,code_invalid:xz,code_sent_template:$z,code_used:Az,code_valid_30_minutes:Ez,confirm_password:Sz,contact_support:kz,contact_us:Nz,continue:"Kontynuuj",continue_social_login:Cz,continue_with:Iz,continue_with_sso_provider_headline:Tz,copyright:Oz,copyright_sesamy:Dz,create_account_description:zz,create_account_email_invalid:Rz,create_account_passwords_didnt_match:Pz,create_account_title:Bz,create_account_weak_password:jz,create_new_account_link:Lz,create_password_account_title:Fz,currently_logged_in_as:Uz,email:Mz,email_changed_to_template:qz,email_or_phone_placeholder:Vz,email_placeholder:Hz,email_validated:Kz,email_validated_cta:Gz,email_verification_for_signup_sent_description:Wz,email_verification_for_signup_sent_title:Xz,enter_a_code_btn:Jz,enter_email_for_verification_description:Yz,enter_new_email:Zz,enter_new_password_placeholder:Qz,enter_password:eR,enter_password_description:tR,enter_your_password_btn:nR,expired_code:rR,fokus_info_message:iR,forgot_password_cta:oR,forgot_password_description:sR,forgot_password_email_sent:aR,forgot_password_link:cR,forgot_password_title:lR,go_back:uR,hide_password:dR,"invalid-email":"Nieprawidłowy adres e-mail",invalid_identifier:pR,invalid_password:fR,invalid_session_body:hR,invalid_session_title:gR,link_email_click_to_login:mR,link_email_login:_R,link_email_or_enter_code:yR,link_page_body:wR,link_page_headline:vR,logged_in_as:bR,login:xR,login_description:$R,login_description_code:AR,login_description_combined:ER,login_description_link:SR,login_description_phone:kR,login_description_template:NR,logout:CR,no_use_another:IR,or:TR,password:OR,password_has_been_reset:DR,password_has_been_reset_title:zR,password_reset_subject:RR,password_reset_title:PR,phone_placeholder:BR,privacy_policy:jR,redirecting:LR,reenter_new_password_placeholder:FR,register_password_account:UR,resend_code:MR,reset_password_cta:qR,reset_password_description:VR,reset_password_email_click_to_reset:HR,reset_password_email_cta:KR,reset_password_email_reset:GR,reset_password_subject:WR,reset_password_title:XR,send:JR,send_me_a_new_magic_link:YR,sent_code_spam:ZR,set_password:QR,show_password:eP,sign_in:tP,signup:nP,signup_success:rP,sms_code_text:iP,spotify_already_linked_body:oP,spotify_already_linked_cta:sP,spotify_already_linked_step1_body:aP,spotify_already_linked_step1_title:cP,spotify_already_linked_step2_body:lP,spotify_already_linked_step2_title:uP,spotify_already_linked_title:dP,success:pP,support_info:fP,terms:hP,unexpected_error_try_again:gP,unverified_email:mP,update_email:_P,user_account_does_not_exist:yP,user_not_found:wP,user_not_found_body:vP,user_not_found_cta:bP,validate_code:xP,validate_email_body:$P,validate_email_title:AP,verify_email_click_to_verify:EP,verify_email_subject:SP,verify_email_title:kP,verify_email_verify:NP,verify_your_email:CP,we_sent_a_code_to:IP,welcome:TP,welcome_to_your_account:OP,yes_continue:DP,yes_continue_with:zP,yes_continue_with_existing_account:RP},BP="Zjištěný účet",jP="Účet",LP="Zjistili jsme, že jste si již vytvořili účet prostřednictvím",FP="Přihlášením souhlasíte s našimi",UP="a",MP="e-mailová adresa",qP="e-mail nebo telefonní číslo",VP="telefonní číslo",HP="Neshoda adresy URL zpětného volání",KP="Zadané redirect_uri není v seznamu povolených zpětných adres URL.",GP="pokračovat s uživatelem",WP="Klikněte na tlačítko pro vytvoření nového účtu s heslem.",XP="Pro dokončení přihlášení zadejte kód na adrese {{vendorName}}.",JP="Vítejte na {{vendorName}}! {{code}} je přihlašovací kód.",YP="Vítejte na {{vendorName}}! {{code}} je přihlašovací kód.",ZP="Kód vypršel",QP="Neplatný kód",eB="Zkontrolujte prosím <0>{{username}}</0> a zadejte šestimístný kód, který jsme vám zaslali.",tB="Kód je již použit",nB="Kód je platný po dobu 30 minut",rB="Potvrzení hesla",iB="Potřebujete pomoc?",oB="Kontaktujte nás",sB="nebo pokračovat v sociálním účtu",aB="Pokračovat s {{provider}}",cB="Chcete pokračovat ve svém stávajícím účtu?",lB="Copyright © 2023 SESAMY. Všechna práva vyhrazena.",uB="©2023 Sesamy",dB="Zvolte heslo složené z velkých a malých písmen, číslic a symbolů.",pB="Zadejte prosím platnou e-mailovou adresu.",fB="Hesla se neshodovala. Zkuste to znovu.",hB="Zvolte heslo",gB="Heslo musí mít alespoň 8 znaků a obsahovat alespoň jedno malé písmeno, jedno velké písmeno, jednu číslici a jeden symbol.",mB="Vytvořit nový účet",_B="Zaregistrujte se pomocí hesla",yB="V současné době jste přihlášeni jako <0>{{email}}</0>",wB="E-mail",vB="E-mail se změnil na <0>{{email}}</0> ",bB="E-mail nebo telefonní číslo",xB="E-mailová adresa",$B="Vaše e-mailová adresa byla ověřena",AB="Nyní zadejte své heslo a znovu se přihlaste",EB="E-mail byl odeslán na adresu <0>{{email}}</0> s ověřovacím odkazem. Kliknutím na odkaz ověřte svou e-mailovou adresu a nastavte heslo.",SB="Ověření e-mailem odesláno",kB="Zadejte kód",NB="Pošleme vám ověřovací odkaz, abychom se ujistili, že tuto e-mailovou adresu vlastníte.",CB="Zadejte nový e-mail",IB="Zadejte nové heslo",TB="Zadejte heslo",OB="Pro přihlášení zadejte svou e-mailovou adresu a heslo.",DB="Zadejte své heslo",zB="Platnost kouzelného odkazu vypršela. Klikněte na tlačítko níže, abyste obdrželi nový odkaz do své e-mailové schránky.",RB="Ahoj! Aktualizovali jsme naše přihlašovací prostředí. <0>Klikněte sem a dozvíte se o něm více.</0>",PB="Odeslání e-mailu pro obnovení hesla",BB="Klikněte na tlačítko níže a my vám zašleme pokyny k obnovení hesla.",jB="Odeslání e-mailu s žádostí o obnovení hesla",LB="Zapomněli jste heslo?",FB="Zapomněli jste heslo?",UB="Vrátit se zpět",MB="Skrýt heslo",qB="Neplatný identifikátor",VB="Neplatné heslo",HB=`Odkaz již není platný.
|
|
305
305
|
|
|
306
306
|
Ujistěte se, že jste odkaz na přihlášení otevřeli ve stejném prohlížeči, ve kterém jste přihlášení zahájili.
|
|
307
307
|
|
|
308
|
-
Kliknutím na odkaz níže můžete zahájit nové přihlášení.`,
|
|
308
|
+
Kliknutím na odkaz níže můžete zahájit nové přihlášení.`,KB="Neplatný odkaz",GB="Kliknutím na tlačítko se přihlásíte",WB="Přihlášení",XB="Nebo zadejte kód na adrese {{vendorName}} a dokončete přihlášení.",JB="Zadejte svou e-mailovou adresu pro odemknutí tohoto pořadu na {{service}}",YB="Propojte svůj účet s {{service}}",ZB="Jste přihlášeni jako",QB="Přihlášení",ej="Pro přihlášení zadejte svou e-mailovou adresu.",tj="Zadejte svou e-mailovou adresu a my vám zašleme přihlašovací kód.",nj="Pro přihlášení zadejte svůj e-mail nebo telefonní číslo",rj="Zadejte svou e-mailovou adresu a my vám zašleme odkaz pro přihlášení.",ij="Zadejte své telefonní číslo a přihlaste se",oj="Pro přihlášení zadejte adresu {{authMethod}}.",sj="Odhlášení",aj="Ne, chci použít jiný účet",cj="nebo",lj="Heslo",uj="Heslo bylo resetováno",dj="Úspěch",pj="Změna hesla k účtu {{vendorName}} ",fj="Změna hesla k účtu {{vendorName}} ",hj="Telefonní číslo",gj="Zásady ochrany osobních údajů",mj="Přesměrování",_j="Potvrzení hesla",yj="Registrace nového hesla",wj="Opětovné odeslání kódu",vj="Změna hesla",bj="Níže zadejte nové heslo k e-mailovému účtu: ",xj="Kliknutím na tlačítko obnovíte své heslo",$j="Kliknutím na tlačítko obnovíte své heslo",Aj="Obnovení hesla",Ej="Změna hesla k účtu {{vendorName}} ",Sj="Obnovení hesla",kj="Odeslat",Nj="Pošlete mi nový kouzelný odkaz",Cj="Pokud e-mail nedorazil, nezapomeňte zkontrolovat složku nevyžádané pošty.",Ij="Nastavení hesla",Tj="Zobrazit heslo",Oj="Přihlásit se",Dj="Registrace",zj="Úspěšná registrace",Rj="{{code}} je váš přihlašovací kód pro {{vendorName}}",Pj="Zdá se, že váš účet Spotify je v současné době propojen s jiným účtem Sesamy. Ale nebojte se, jsme tu, abychom vás provedli procesem, jak to napravit.",Bj="Přejděte na stránku Spotify pro přístup k obsahu",jj='Začněme odpojením účtu Spotify. Kliknutím na tlačítko níže přejděte na stránku přístupu k obsahu služby Spotify. Po přihlášení k účtu Spotify najděte v seznamu připojených platforem položku Sesamy. Klikněte na tlačítko "Unlink" vedle loga Sesamy.',Lj="Krok 1: Odpojení účtu Spotify",Fj="Po úspěšném odpojení účtu Spotify jej můžete znovu propojit se službou Sesamy. Stačí zopakovat předchozí kroky, které vás přivedly na tuto stránku.",Uj="Krok 2: Propojení účtu Spotify s aplikací Sesamy",Mj="Ups! Váš účet Spotify je již propojen",qj="Hotovo",Vj="Pokud máte dotazy nebo potřebujete pomoc, můžete se obrátit na náš tým podpory.",Hj="Podmínky a pravidla",Kj="Něco se pokazilo. Zkuste to prosím znovu.",Gj="Vaši e-mailovou adresu je třeba ověřit. Do vaší e-mailové schránky jsme odeslali nový e-mail.",Wj="Aktualizace e-mailu",Xj="Uživatelský účet neexistuje",Jj="Uživatelský účet neexistuje",Yj="Nepodařilo se nám najít uživatele se zadanou e-mailovou adresou. Zkuste to prosím znovu.",Zj="Zkuste to znovu.",Qj="Ověření kódu",eL="Pokyny k ověření e-mailu najdete ve své e-mailové schránce.",tL="Zaregistrovali jste se",nL="Klikněte na tlačítko pro ověření e-mailové adresy",rL="Ověřte svou e-mailovou adresu",iL="Ověřte svou e-mailovou adresu",oL="Ověření účtu",sL="Ověření e-mailu",aL="Zkontrolujte si prosím svůj e-mail na adrese <0>{{email}}</0> a zadejte šestimístný kód, který jsme vám zaslali.",cL="Vítejte na",lL="Vítejte na svém účtu {{vendorName}}!",uL="Pokračujte s tímto účtem",dL="Ano, pokračujte {{text}}",pL="Ano, pokračujte ve stávajícím účtu",fL={"Server error: Invalid code":"Neplatný kód",account_detected:BP,account_title:jP,account_with_sso_provider:LP,agree_to:FP,and:UP,auth_method_email:MP,auth_method_email_or_phone:qP,auth_method_phone:VP,callback_url_mismatch:HP,callback_url_not_allowed:KP,check_email_title:GP,click_to_sign_up_description:WP,code_email_enter_code:XP,code_email_subject:JP,code_email_title:YP,code_expired:ZP,code_invalid:QP,code_sent_template:eB,code_used:tB,code_valid_30_minutes:nB,confirm_password:rB,contact_support:iB,contact_us:oB,continue:"Pokračovat",continue_social_login:sB,continue_with:aB,continue_with_sso_provider_headline:cB,copyright:lB,copyright_sesamy:uB,create_account_description:dB,create_account_email_invalid:pB,create_account_passwords_didnt_match:fB,create_account_title:hB,create_account_weak_password:gB,create_new_account_link:mB,create_password_account_title:_B,currently_logged_in_as:yB,email:wB,email_changed_to_template:vB,email_or_phone_placeholder:bB,email_placeholder:xB,email_validated:$B,email_validated_cta:AB,email_verification_for_signup_sent_description:EB,email_verification_for_signup_sent_title:SB,enter_a_code_btn:kB,enter_email_for_verification_description:NB,enter_new_email:CB,enter_new_password_placeholder:IB,enter_password:TB,enter_password_description:OB,enter_your_password_btn:DB,expired_code:zB,fokus_info_message:RB,forgot_password_cta:PB,forgot_password_description:BB,forgot_password_email_sent:jB,forgot_password_link:LB,forgot_password_title:FB,go_back:UB,hide_password:MB,"invalid-email":"Neplatný e-mail",invalid_identifier:qB,invalid_password:VB,invalid_session_body:HB,invalid_session_title:KB,link_email_click_to_login:GB,link_email_login:WB,link_email_or_enter_code:XB,link_page_body:JB,link_page_headline:YB,logged_in_as:ZB,login:QB,login_description:ej,login_description_code:tj,login_description_combined:nj,login_description_link:rj,login_description_phone:ij,login_description_template:oj,logout:sj,no_use_another:aj,or:cj,password:lj,password_has_been_reset:uj,password_has_been_reset_title:dj,password_reset_subject:pj,password_reset_title:fj,phone_placeholder:hj,privacy_policy:gj,redirecting:mj,reenter_new_password_placeholder:_j,register_password_account:yj,resend_code:wj,reset_password_cta:vj,reset_password_description:bj,reset_password_email_click_to_reset:xj,reset_password_email_cta:$j,reset_password_email_reset:Aj,reset_password_subject:Ej,reset_password_title:Sj,send:kj,send_me_a_new_magic_link:Nj,sent_code_spam:Cj,set_password:Ij,show_password:Tj,sign_in:Oj,signup:Dj,signup_success:zj,sms_code_text:Rj,spotify_already_linked_body:Pj,spotify_already_linked_cta:Bj,spotify_already_linked_step1_body:jj,spotify_already_linked_step1_title:Lj,spotify_already_linked_step2_body:Fj,spotify_already_linked_step2_title:Uj,spotify_already_linked_title:Mj,success:qj,support_info:Vj,terms:Hj,unexpected_error_try_again:Kj,unverified_email:Gj,update_email:Wj,user_account_does_not_exist:Xj,user_not_found:Jj,user_not_found_body:Yj,user_not_found_cta:Zj,validate_code:Qj,validate_email_body:eL,validate_email_title:tL,verify_email_click_to_verify:nL,verify_email_subject:rL,verify_email_title:iL,verify_email_verify:oL,verify_your_email:sL,we_sent_a_code_to:aL,welcome:cL,welcome_to_your_account:lL,yes_continue:uL,yes_continue_with:dL,yes_continue_with_existing_account:pL},hL="Tili havaittu",gL="Tili",mL="Olemme havainneet, että olet jo luonut tilin kautta",_L="Kirjautumalla sisään hyväksyt",yL="ja",wL="sähköpostiosoite",vL="sähköpostiosoite tai puhelinnumero",bL="puhelinnumero",xL="Takaisinkutsun URL-osoite ei vastaa toisiaan",$L="Annettu redirect_uri ei ole sallittujen takaisinsoitto-URL-osoitteiden luettelossa.",AL="jatka käyttäjän kanssa",EL="Klikkaa painiketta luodaksesi uuden salasanatilin.",SL="Kirjoita koodi osoitteessa {{vendorName}} kirjautumisen loppuun saattamiseksi.",kL="Tervetuloa osoitteeseen {{vendorName}}! {{code}} on kirjautumiskoodi.",NL="Tervetuloa osoitteeseen {{vendorName}}! {{code}} on kirjautumiskoodi.",CL="Koodi päättynyt",IL="Virheellinen koodi",TL="Tarkista <0>{{username}}</0> ja syötä lähettämämme kuusinumeroinen koodi.",OL="Koodi on jo käytössä",DL="Koodi on voimassa 30 minuuttia",zL="Vahvista salasana",RL="Tarvitsetko apua?",PL="Ota yhteyttä",BL="tai jatka sosiaalisella tilillä",jL="Jatka {{provider}}",LL="Haluatko jatkaa olemassa olevalla tililläsi?",FL="Copyright © 2023 SESAMY. Kaikki oikeudet pidätetään.",UL="©2023 Sesamy",ML="Valitse salasana, jossa on isoja ja pieniä kirjaimia, numeroita ja symboleja.",qL="Kirjoita voimassa oleva sähköpostiosoite.",VL="Salasanat eivät vastanneet toisiaan. Yritä uudelleen.",HL="Valitse salasana",KL="Salasanan on oltava vähintään 8 merkkiä pitkä ja sisällettävä vähintään yksi pieni kirjain, yksi iso kirjain, yksi numero ja yksi symboli.",GL="Luo uusi tili",WL="Rekisteröidy salasanalla",XL="Olet tällä hetkellä kirjautuneena sisään nimellä <0>{{email}}</0>",JL="Sähköposti",YL="Sähköposti muutettu muotoon <0>{{email}}</0> ",ZL="Sähköposti tai puhelinnumero",QL="Sähköpostiosoite",eF="Sähköpostiosoitteesi on vahvistettu",tF="Kirjoita nyt salasanasi kirjautuaksesi uudelleen",nF="Sähköposti on lähetetty osoitteeseen <0>{{email}}</0> jossa on vahvistuslinkki. Klikkaa linkkiä vahvistaaksesi sähköpostiosoitteesi ja asettaaksesi salasanan.",rF="Sähköpostivarmennus lähetetty",iF="Syötä koodi",oF="Lähetämme sinulle vahvistuslinkin varmistaaksemme, että omistat tämän sähköpostiosoitteen.",sF="Kirjoita uusi sähköpostiosoite",aF="Anna uusi salasana",cF="Anna salasana",lF="Anna sähköpostiosoitteesi ja salasanasi kirjautuaksesi sisään.",uF="Syötä salasanasi",dF="Taikalinkki on vanhentunut. Klikkaa alla olevaa painiketta saadaksesi uuden linkin sähköpostiisi.",pF="Hei! Päivitimme kirjautumiskokemuksemme. <0>Klikkaa tästä saadaksesi lisätietoja siitä.</0>",fF="Lähetä salasanan palautussähköposti",hF="Napsauta alla olevaa painiketta, niin lähetämme ohjeet salasanasi palauttamiseen.",gF="Salasanan palautussähköposti lähetetty",mF="Unohditko salasanan?",_F="Unohditko salasanan?",yF="Palaa takaisin",wF="Piilota salasana",vF="Virheellinen tunniste",bF="Virheellinen salasana",xF=`Linkki ei ole enää voimassa.
|
|
309
309
|
|
|
310
310
|
Varmista, että avaat kirjautumislinkin samalla selaimella, jolla aloitit kirjautumisen.
|
|
311
311
|
|
|
312
|
-
Voit aloittaa uuden kirjautumisen klikkaamalla alla olevaa linkkiä.`,xF="Virheellinen linkki",$F="Kirjaudu sisään napsauttamalla painiketta",AF="Kirjaudu sisään",EF="Tai kirjoita koodi osoitteessa {{vendorName}} kirjautumisen loppuun saattamiseksi.",SF="Kirjoita sähköpostiosoitteesi avataksesi tämän ohjelman osoitteessa {{service}}",kF="Yhdistä tilisi {{service}}",NF="Olet kirjautunut sisään nimellä",CF="Kirjaudu sisään",IF="Kirjoita sähköpostiosoitteesi kirjautuaksesi sisään.",TF="Anna sähköpostiosoitteesi, niin lähetämme sinulle kirjautumiskoodin.",OF="Kirjoita sähköpostiosoitteesi tai puhelinnumerosi kirjautuaksesi sisään",DF="Anna sähköpostiosoitteesi, niin lähetämme sinulle kirjautumislinkin.",zF="Anna puhelinnumerosi kirjautuaksesi sisään",RF="Kirjoita {{authMethod}} kirjautuaksesi sisään.",PF="Kirjaudu ulos",BF="Ei, haluan käyttää toista tiliä",jF="tai",LF="Salasana",FF="Salasana on nollattu",UF="Menestys",MF="Vaihda salasana tilillesi {{vendorName}} ",qF="Vaihda salasana tilillesi {{vendorName}} ",VF="Puhelinnumero",HF="Tietosuojakäytäntö",KF="Uudelleenohjaus",GF="Vahvista salasana",WF="Rekisteröi uusi salasana",XF="Lähetä koodi uudelleen",JF="Vaihda salasana",YF="Kirjoita alla oleva uusi salasanasi sähköpostitiliä varten: ",ZF="Napsauta painiketta salasanasi palauttamiseksi",QF="Napsauta painiketta salasanasi palauttamiseksi",eU="Nollaa salasanasi",tU="Vaihda salasana tilillesi {{vendorName}} ",nU="Nollaa salasana",rU="Lähetä",iU="Lähetä minulle uusi maaginen linkki",oU="Muista tarkistaa roskapostikansiosi, jos sähköposti ei ole saapunut.",sU="Aseta salasana",aU="Näytä salasana",cU="Kirjaudu sisään",lU="Rekisteröityminen",uU="Rekisteröidy onnistuneesti",dU="{{code}} on kirjautumiskoodisi {{vendorName}}",pU="Näyttää siltä, että Spotify-tilisi on tällä hetkellä yhdistetty toiseen Sesamy-tiliin. Mutta älä pelkää, me opastamme sinua prosessin läpi, jotta saat tämän korjattua.",fU="Siirry Spotifyn Content Access -sivulle",hU='Aloitetaan poistamalla Spotify-tilisi linkitys. Klikkaa alla olevaa painiketta siirtyäksesi Spotifyn Content Access -sivulle. Kun olet kirjautunut sisään Spotify-tilillesi, etsi Sesamy yhdistettyjen alustojen luettelosta. Napsauta "Unlink" Sesamyn logon vieressä.',gU="Vaihe 1: Poista Spotify-tilisi linkitys",mU="Kun olet onnistuneesti irrottanut Spotify-tilisi, voit yhdistää sen uudelleen Sesamyn kanssa. Toista vain aiemmin tekemäsi vaiheet, jotka johtivat sinut tälle sivulle.",_U="Vaihe 2: Yhdistä Spotify-tilisi uudelleen Sesamyn kanssa",yU="Hups! Spotify-tilisi on jo linkitetty",wU="Valmis",vU="Jos sinulla on kysyttävää tai tarvitset apua, voit ottaa yhteyttä tukitiimiimme.",bU="Ehdot ja edellytykset",xU="Jokin meni pieleen. Yritä uudelleen.",$U="Sähköpostiosoitteesi on vahvistettava. Olemme lähettäneet uuden sähköpostiviestin sähköpostiisi.",AU="Päivitä sähköposti",EU="Käyttäjätiliä ei ole olemassa",SU="Käyttäjätiliä ei ole olemassa",kU="Emme löytäneet käyttäjää, jolla on annettu sähköpostiosoite. Yritä uudelleen.",NU="Yritä uudelleen.",CU="Validoi koodi",IU="Tarkista sähköpostin vahvistusohjeet postilaatikostasi.",TU="Rekisteröitynyt",OU="Vahvista sähköpostiosoitteesi napsauttamalla painiketta",DU="Vahvista sähköpostiosoitteesi",zU="Vahvista sähköpostiosoitteesi",RU="Vahvista tili",PU="Vahvista sähköpostiosoitteesi",BU="Tarkista sähköpostisi osoitteesta <0>{{email}}</0> ja syötä lähettämämme kuusinumeroinen koodi.",jU="Tervetuloa",LU="Tervetuloa tilillesi {{vendorName}}!",FU="Jatka tällä tilillä",UU="Kyllä, jatka {{text}}",MU="Kyllä, jatka olemassa olevalla tilillä",qU={"Server error: Invalid code":"Virheellinen koodi",account_detected:fL,account_title:hL,account_with_sso_provider:gL,agree_to:mL,and:_L,auth_method_email:yL,auth_method_email_or_phone:wL,auth_method_phone:vL,callback_url_mismatch:bL,callback_url_not_allowed:xL,check_email_title:$L,click_to_sign_up_description:AL,code_email_enter_code:EL,code_email_subject:SL,code_email_title:kL,code_expired:NL,code_invalid:CL,code_sent_template:IL,code_used:TL,code_valid_30_minutes:OL,confirm_password:DL,contact_support:zL,contact_us:RL,continue:"Jatka",continue_social_login:PL,continue_with:BL,continue_with_sso_provider_headline:jL,copyright:LL,copyright_sesamy:FL,create_account_description:UL,create_account_email_invalid:ML,create_account_passwords_didnt_match:qL,create_account_title:VL,create_account_weak_password:HL,create_new_account_link:KL,create_password_account_title:GL,currently_logged_in_as:WL,email:XL,email_changed_to_template:JL,email_or_phone_placeholder:YL,email_placeholder:ZL,email_validated:QL,email_validated_cta:eF,email_verification_for_signup_sent_description:tF,email_verification_for_signup_sent_title:nF,enter_a_code_btn:rF,enter_email_for_verification_description:iF,enter_new_email:oF,enter_new_password_placeholder:sF,enter_password:aF,enter_password_description:cF,enter_your_password_btn:lF,expired_code:uF,fokus_info_message:dF,forgot_password_cta:pF,forgot_password_description:fF,forgot_password_email_sent:hF,forgot_password_link:gF,forgot_password_title:mF,go_back:_F,hide_password:yF,"invalid-email":"Virheellinen sähköpostiosoite",invalid_identifier:wF,invalid_password:vF,invalid_session_body:bF,invalid_session_title:xF,link_email_click_to_login:$F,link_email_login:AF,link_email_or_enter_code:EF,link_page_body:SF,link_page_headline:kF,logged_in_as:NF,login:CF,login_description:IF,login_description_code:TF,login_description_combined:OF,login_description_link:DF,login_description_phone:zF,login_description_template:RF,logout:PF,no_use_another:BF,or:jF,password:LF,password_has_been_reset:FF,password_has_been_reset_title:UF,password_reset_subject:MF,password_reset_title:qF,phone_placeholder:VF,privacy_policy:HF,redirecting:KF,reenter_new_password_placeholder:GF,register_password_account:WF,resend_code:XF,reset_password_cta:JF,reset_password_description:YF,reset_password_email_click_to_reset:ZF,reset_password_email_cta:QF,reset_password_email_reset:eU,reset_password_subject:tU,reset_password_title:nU,send:rU,send_me_a_new_magic_link:iU,sent_code_spam:oU,set_password:sU,show_password:aU,sign_in:cU,signup:lU,signup_success:uU,sms_code_text:dU,spotify_already_linked_body:pU,spotify_already_linked_cta:fU,spotify_already_linked_step1_body:hU,spotify_already_linked_step1_title:gU,spotify_already_linked_step2_body:mU,spotify_already_linked_step2_title:_U,spotify_already_linked_title:yU,success:wU,support_info:vU,terms:bU,unexpected_error_try_again:xU,unverified_email:$U,update_email:AU,user_account_does_not_exist:EU,user_not_found:SU,user_not_found_body:kU,user_not_found_cta:NU,validate_code:CU,validate_email_body:IU,validate_email_title:TU,verify_email_click_to_verify:OU,verify_email_subject:DU,verify_email_title:zU,verify_email_verify:RU,verify_your_email:PU,we_sent_a_code_to:BU,welcome:jU,welcome_to_your_account:LU,yes_continue:FU,yes_continue_with:UU,yes_continue_with_existing_account:MU},VU="Konto opdaget",HU="Konto",KU="Vi har opdaget, at du allerede har oprettet en konto gennem",GU="Når du logger ind, accepterer du vores",WU="og",XU="e-mail-adresse",JU="e-mail eller telefonnummer",YU="Telefonnummer",ZU="Uoverensstemmelse mellem URL og tilbagekald",QU="Den angivne redirect_uri er ikke på listen over tilladte tilbagekalds-URL'er.",eM="Fortsæt med brugeren",tM="Klik på knappen for at oprette en ny adgangskodekonto.",nM="Indtast koden på {{vendorName}} for at gennemføre login.",rM="Velkommen til {{vendorName}}! {{code}} er login-koden",iM="Velkommen til {{vendorName}}! {{code}} er login-koden",oM="Koden er udløbet",sM="Ugyldig kode",aM="Tjek venligst <0>{{username}}</0> og indtast den sekscifrede kode, som vi har sendt til dig.",cM="Koden er allerede brugt",lM="Koden er gyldig i 30 minutter",uM="Bekræft adgangskode",dM="Har du brug for hjælp?",pM="Kontakt os",fM="eller fortsæt med social konto",hM="Fortsæt med {{provider}}",gM="Vil du gerne fortsætte med din eksisterende konto?",mM="Ophavsret © 2023 SESAMY. Alle rettigheder forbeholdes.",_M="©2023 Sesamy",yM="Vælg en adgangskode med en blanding af store og små bogstaver, tal og symboler.",wM="Indtast venligst en gyldig e-mailadresse.",vM="Adgangskoderne stemte ikke overens. Prøv igen.",bM="Vælg adgangskode",xM="Adgangskoden skal være mindst 8 tegn lang og indeholde mindst et lille bogstav, et stort bogstav, et tal og et symbol.",$M="Opret ny konto",AM="Tilmeld dig med adgangskode",EM="Du er i øjeblikket logget ind som <0>{{email}}</0>",SM="E-mail",kM="E-mail ændret til <0>{{email}}</0> ",NM="E-mail eller telefonnummer",CM="E-mail-adresse",IM="Din e-mailadresse er blevet valideret",TM="Indtast nu din adgangskode for at logge ind igen",OM="Der er sendt en e-mail til <0>{{email}}</0> med et bekræftelseslink. Klik på linket for at bekræfte din e-mailadresse og angive en adgangskode.",DM="E-mail-bekræftelse sendt",zM="Indtast en kode",RM="Vi sender dig et bekræftelseslink for at sikre, at du ejer denne e-mailadresse.",PM="Indtast ny e-mail",BM="Indtast ny adgangskode",jM="Indtast adgangskode",LM="Indtast din e-mailadresse og adgangskode for at logge ind.",FM="Indtast din adgangskode",UM="Det magiske link er udløbet. Klik på knappen nedenfor for at modtage et nyt link i din indbakke.",MM="Hej! Vi har opdateret vores login-oplevelse. <0>Klik her for at lære mere om det.</0>",qM="Send e-mail til nulstilling af adgangskode",VM="Klik på knappen nedenfor, så sender vi instruktioner om, hvordan du nulstiller din adgangskode.",HM="E-mail til nulstilling af adgangskode sendt",KM="Har du glemt din adgangskode?",GM="Har du glemt din adgangskode?",WM="Gå tilbage",XM="Skjul adgangskode",JM="Ugyldig identifikator",YM="Ugyldig adgangskode",ZM="Linket er ikke længere gyldigt. Sørg for at åbne login-linket i den samme browser, som du startede login med. Du kan klikke på linket nedenfor for at starte et nyt login.",QM="Ugyldigt link",eq="Klik på knappen for at logge ind",tq="Login",nq="Eller indtast koden på {{vendorName}} for at gennemføre login.",rq="Indtast din e-mailadresse for at låse op for dette show på {{service}}",iq="Forbind din konto med {{service}}",oq="Du er logget ind som",sq="Login",aq="Indtast din e-mailadresse for at logge ind.",cq="Indtast din e-mailadresse, så sender vi dig en login-kode.",lq="Indtast din e-mail eller dit telefonnummer for at logge ind",uq="Indtast din e-mailadresse, så sender vi dig et login-link.",dq="Indtast dit telefonnummer for at logge ind",pq="Indtast din {{authMethod}} for at logge ind.",fq="Log ud",hq="Nej, jeg vil bruge en anden konto",gq="eller",mq="Adgangskode",_q="Adgangskoden er blevet nulstillet",yq="Succes",wq="Skift adgangskode til din {{vendorName}} -konto",vq="Skift adgangskode til din {{vendorName}} -konto",bq="Telefonnummer",xq="Politik for beskyttelse af personlige oplysninger",$q="Omdirigering",Aq="Bekræft adgangskode",Eq="Registrer en ny adgangskode",Sq="Send koden igen",kq="Skift adgangskode",Nq="Indtast din nye adgangskode til e-mailkontoen nedenfor: ",Cq="Klik på knappen for at nulstille din adgangskode",Iq="Klik på knappen for at nulstille din adgangskode",Tq="Nulstil din adgangskode",Oq="Skift adgangskode til din {{vendorName}} -konto",Dq="Nulstil adgangskode",zq="Send",Rq="Send mig et nyt magisk link",Pq="Husk at tjekke din spam-mappe, hvis e-mailen ikke er kommet frem.",Bq="Indstil adgangskode",jq="Vis adgangskode",Lq="Log ind",Fq="Tilmelding",Uq="Tilmeld dig med succes",Mq="{{code}} er din login-kode til {{vendorName}}",qq="Det ser ud til, at din Spotify-konto i øjeblikket er knyttet til en anden Sesamy-konto. Men frygt ikke, vi er her for at guide dig gennem processen med at få det løst.",Vq="Gå til Spotifys side for adgang til indhold",Hq='Lad os starte med at fjerne forbindelsen til din Spotify-konto. Klik på knappen nedenfor for at gå til Spotifys Content Access-side. Når du har logget ind på din Spotify-konto, skal du finde Sesamy på listen over tilsluttede platforme. Klik på "Unlink" ved siden af Sesamy-logoet.',Kq="Trin 1: Fjern forbindelsen til din Spotify-konto",Gq="Når du har afkoblet din Spotify-konto, kan du koble den til Sesamy igen. Du skal blot gentage de trin, du tidligere har taget, og som førte dig til denne side.",Wq="Trin 2: Relink din Spotify-konto til Sesamy",Xq="Ups! Din Spotify-konto er allerede forbundet",Jq="Færdig",Yq="Hvis du har spørgsmål eller brug for hjælp, kan du kontakte vores supportteam",Zq="Vilkår og betingelser",Qq="Noget gik galt. Prøv venligst igen.",eV="Din e-mailadresse skal valideres. Vi har sendt en ny e-mail til din indbakke",tV="Opdatering af e-mail",nV="Brugerkontoen findes ikke",rV="Brugerkontoen findes ikke",iV="Vi kunne ikke finde en bruger med den angivne e-mailadresse. Prøv venligst igen.",oV="Prøv igen.",sV="Valider koden",aV="Tjek din indbakke for instruktioner om validering af e-mail.",cV="Tilmeldte sig",lV="Klik på knappen for at bekræfte din e-mailadresse",uV="Bekræft din e-mailadresse",dV="Bekræft din e-mailadresse",pV="Bekræft konto",fV="Bekræft din e-mail",hV="Tjek venligst din e-mail på <0>{{email}}</0> og indtast den sekscifrede kode, vi har sendt dig.",gV="Velkommen",mV="Velkommen til din {{vendorName}} konto!",_V="Fortsæt med denne konto",yV="Ja, fortsæt med {{text}}",wV="Ja, fortsæt med eksisterende konto",vV={"Server error: Invalid code":"Ugyldig kode",account_detected:VU,account_title:HU,account_with_sso_provider:KU,agree_to:GU,and:WU,auth_method_email:XU,auth_method_email_or_phone:JU,auth_method_phone:YU,callback_url_mismatch:ZU,callback_url_not_allowed:QU,check_email_title:eM,click_to_sign_up_description:tM,code_email_enter_code:nM,code_email_subject:rM,code_email_title:iM,code_expired:oM,code_invalid:sM,code_sent_template:aM,code_used:cM,code_valid_30_minutes:lM,confirm_password:uM,contact_support:dM,contact_us:pM,continue:"Fortsæt",continue_social_login:fM,continue_with:hM,continue_with_sso_provider_headline:gM,copyright:mM,copyright_sesamy:_M,create_account_description:yM,create_account_email_invalid:wM,create_account_passwords_didnt_match:vM,create_account_title:bM,create_account_weak_password:xM,create_new_account_link:$M,create_password_account_title:AM,currently_logged_in_as:EM,email:SM,email_changed_to_template:kM,email_or_phone_placeholder:NM,email_placeholder:CM,email_validated:IM,email_validated_cta:TM,email_verification_for_signup_sent_description:OM,email_verification_for_signup_sent_title:DM,enter_a_code_btn:zM,enter_email_for_verification_description:RM,enter_new_email:PM,enter_new_password_placeholder:BM,enter_password:jM,enter_password_description:LM,enter_your_password_btn:FM,expired_code:UM,fokus_info_message:MM,forgot_password_cta:qM,forgot_password_description:VM,forgot_password_email_sent:HM,forgot_password_link:KM,forgot_password_title:GM,go_back:WM,hide_password:XM,"invalid-email":"Ugyldig e-mail",invalid_identifier:JM,invalid_password:YM,invalid_session_body:ZM,invalid_session_title:QM,link_email_click_to_login:eq,link_email_login:tq,link_email_or_enter_code:nq,link_page_body:rq,link_page_headline:iq,logged_in_as:oq,login:sq,login_description:aq,login_description_code:cq,login_description_combined:lq,login_description_link:uq,login_description_phone:dq,login_description_template:pq,logout:fq,no_use_another:hq,or:gq,password:mq,password_has_been_reset:_q,password_has_been_reset_title:yq,password_reset_subject:wq,password_reset_title:vq,phone_placeholder:bq,privacy_policy:xq,redirecting:$q,reenter_new_password_placeholder:Aq,register_password_account:Eq,resend_code:Sq,reset_password_cta:kq,reset_password_description:Nq,reset_password_email_click_to_reset:Cq,reset_password_email_cta:Iq,reset_password_email_reset:Tq,reset_password_subject:Oq,reset_password_title:Dq,send:zq,send_me_a_new_magic_link:Rq,sent_code_spam:Pq,set_password:Bq,show_password:jq,sign_in:Lq,signup:Fq,signup_success:Uq,sms_code_text:Mq,spotify_already_linked_body:qq,spotify_already_linked_cta:Vq,spotify_already_linked_step1_body:Hq,spotify_already_linked_step1_title:Kq,spotify_already_linked_step2_body:Gq,spotify_already_linked_step2_title:Wq,spotify_already_linked_title:Xq,success:Jq,support_info:Yq,terms:Zq,unexpected_error_try_again:Qq,unverified_email:eV,update_email:tV,user_account_does_not_exist:nV,user_not_found:rV,user_not_found_body:iV,user_not_found_cta:oV,validate_code:sV,validate_email_body:aV,validate_email_title:cV,verify_email_click_to_verify:lV,verify_email_subject:uV,verify_email_title:dV,verify_email_verify:pV,verify_your_email:fV,we_sent_a_code_to:hV,welcome:gV,welcome_to_your_account:mV,yes_continue:_V,yes_continue_with:yV,yes_continue_with_existing_account:wV},bV=t=>{const{theme:e,branding:n,client:r,authParams:i}=t,c=`/authorize?${new URLSearchParams({...i})}`;return v(nt,{theme:e,branding:n,client:r,title:F.t("user_not_found"),children:v("div",{className:"flex flex-1 flex-col justify-center",children:[v("p",{className:"mb-8 text-gray-300 text-lg",children:F.t("user_not_found_body")}),v(tt,{Component:"a",href:c,children:F.t("user_not_found_cta")})]})})};function xV(t,e){const{mainTenantId:n,mainClientId:r}=e;return{...t,clients:{get:async i=>{const o=await t.clients.get(i);if(!o)return null;const c=r?await t.clients.get(r):void 0,l=await t.connections.list(o.tenant.id),u=n?await t.connections.list(n):{connections:[]},d=l.connections.map(p=>{var A;const h=(A=u.connections)==null?void 0:A.find(m=>m.name===p.name);if(!(h!=null&&h.options))return p;const g=nn.parse({...h||{},...p});return g.options=xi.passthrough().parse({...h.options||{},...p.options}),g}).filter(p=>p);return{...o,web_origins:[...(c==null?void 0:c.web_origins)||[],...o.web_origins||[]],allowed_logout_urls:[...(c==null?void 0:c.allowed_logout_urls)||[],...o.allowed_logout_urls||[]],callbacks:[...(c==null?void 0:c.callbacks)||[],...o.callbacks||[]],connections:d,tenant:{...(c==null?void 0:c.tenant)||{},...o.tenant}}}},connections:{...t.connections,get:async(i,o)=>{const c=await t.connections.get(i,o);if(!c||!n)return c;const l=await t.connections.get(n,o);if(!l)return c;const u=nn.parse({...l,...c});return u.options=xi.passthrough().parse({...l.options||{},...c.options}),u},list:async(i,o)=>{const c=await t.connections.list(i,o);if(!n||i===n)return c;const l=await t.connections.list(n),u=c.connections.map(d=>{var g;const p=(g=l.connections)==null?void 0:g.find(A=>A.name===d.name);if(!(p!=null&&p.options))return d;const h=nn.parse({...p,...d});return h.options=xi.passthrough().parse({...p.options||{},...d.options}),h});return{...c,connections:u}}},applications:t.applications,branding:t.branding,codes:t.codes,customDomains:t.customDomains,emailProviders:t.emailProviders,forms:t.forms,hooks:t.hooks,keys:t.keys,loginSessions:t.loginSessions,logs:t.logs,passwords:t.passwords,promptSettings:t.promptSettings,refreshTokens:t.refreshTokens,sessions:t.sessions,tenants:t.tenants,themes:t.themes,users:t.users}}function $V(t,e){return xV(t,e)}F.init({supportedLngs:["en","it","nb","sv","pl","cs","fi","da"],fallbackLng:"en",resources:{en:{translation:wk},it:{translation:J7},nb:{translation:kT},sv:{translation:iz},pl:{translation:RP},cs:{translation:pL},fi:{translation:qU},da:{translation:vV}}});function AV(t){const e=new s.OpenAPIHono;e.get("/",c=>c.json({name:"authhero"}));const n=Mx(t);e.route("/api/v2",n);const r=A8(t);e.route("/u",r);const i=ME(t);e.route("/samlp",i);const o=o6(t);return e.route("/",o),{app:e,managementApp:n,oauthApp:o,samlApp:i,universalApp:r,createX509Certificate:Rd}}exports.AppLogo=Z1;exports.Auth0Client=Lm;exports.AuthorizationResponseMode=bn;exports.AuthorizationResponseType=tn;exports.Button=tt;exports.CheckEmailPage=gy;exports.CodeChallengeMethod=gc;exports.ComponentCategory=rp;exports.ComponentType=np;exports.EmailValidatedPage=yy;exports.EnterCodePage=Xd;exports.EnterPasswordPage=la;exports.ErrorMessage=Qn;exports.Footer=Q1;exports.ForgotPasswordPage=fy;exports.ForgotPasswordSentPage=hy;exports.FormComponent=Cn;exports.GoBack=un;exports.GoogleLogo=ny;exports.GrantType=wi;exports.Icon=et;exports.IdentifierPage=sa;exports.InvalidSession=_y;exports.Layout=nt;exports.LogTypes=Le;exports.Message=vr;exports.NodeType=$m;exports.PreSignUpConfirmationPage=wy;exports.PreSignUpPage=my;exports.ResetPasswordPage=mi;exports.SignUpPage=Tr;exports.SocialButton=mo;exports.Spinner=ty;exports.Trans=Mi;exports.UnverifiedEmailPage=py;exports.UserNotFoundPage=bV;exports.VippsLogo=ry;exports.applicationInsertSchema=ga;exports.applicationSchema=zr;exports.auth0FlowInsertSchema=Nw;exports.auth0FlowSchema=Im;exports.auth0UserResponseSchema=yn;exports.authParamsSchema=So;exports.baseUserSchema=fc;exports.bordersSchema=qm;exports.brandingSchema=uu;exports.buttonComponentSchema=ym;exports.codeInsertSchema=Om;exports.codeSchema=Iw;exports.codeTypeSchema=Tm;exports.colorsSchema=Vm;exports.componentSchema=xm;exports.connectionInsertSchema=ma;exports.connectionOptionsSchema=xi;exports.connectionSchema=nn;exports.coordinatesSchema=Ki;exports.customDomainInsertSchema=ip;exports.customDomainSchema=ar;exports.customDomainWithTenantIdSchema=Tw;exports.emailProviderSchema=Ws;exports.endingSchema=Cm;exports.fieldComponentSchema=vm;exports.flowNodeSchema=Em;exports.fontDetailsSchema=Ir;exports.fontsSchema=Hm;exports.formControlSchema=Ow;exports.formInsertSchema=ya;exports.formNodeComponentDefinition=zm;exports.formSchema=_i;exports.genericComponentSchema=bm;exports.genericNodeSchema=Sm;exports.hookInsertSchema=Hs;exports.hookSchema=yi;exports.identitySchema=gm;exports.init=AV;exports.injectTailwindCSS=y8;exports.jwksKeySchema=Bm;exports.jwksSchema=op;exports.legalComponentSchema=wm;exports.logSchema=wa;exports.loginSessionInsertSchema=jm;exports.loginSessionSchema=Bw;exports.nodeSchema=km;exports.openIDConfigurationSchema=du;exports.pageBackgroundSchema=Km;exports.parseUserId=qw;exports.passwordInsertSchema=Fm;exports.passwordSchema=Lw;exports.profileDataSchema=hm;exports.promptSettingSchema=Gs;exports.refreshTokenInsertSchema=ap;exports.refreshTokenSchema=Fw;exports.richTextComponentSchema=_m;exports.samlpAddon=mm;exports.sessionInsertSchema=Mm;exports.sessionSchema=_c;exports.signingKeySchema=pu;exports.smsProviderSchema=Mw;exports.smsSendParamsSchema=Uw;exports.startSchema=Nm;exports.stepNodeSchema=Am;exports.tailwindCss=Cf;exports.tenantInsertSchema=_a;exports.tenantSchema=$i;exports.themeInsertSchema=Wm;exports.themeSchema=Ks;exports.tokenResponseSchema=sp;exports.totalsSchema=Xn;exports.userInsertSchema=ha;exports.userResponseSchema=Ew;exports.userSchema=tp;exports.vendorSettingsSchema=Cw;exports.verificationMethodsSchema=Dm;exports.widgetSchema=Gm;exports.withMainTenantFallback=$V;
|
|
312
|
+
Voit aloittaa uuden kirjautumisen klikkaamalla alla olevaa linkkiä.`,$F="Virheellinen linkki",AF="Kirjaudu sisään napsauttamalla painiketta",EF="Kirjaudu sisään",SF="Tai kirjoita koodi osoitteessa {{vendorName}} kirjautumisen loppuun saattamiseksi.",kF="Kirjoita sähköpostiosoitteesi avataksesi tämän ohjelman osoitteessa {{service}}",NF="Yhdistä tilisi {{service}}",CF="Olet kirjautunut sisään nimellä",IF="Kirjaudu sisään",TF="Kirjoita sähköpostiosoitteesi kirjautuaksesi sisään.",OF="Anna sähköpostiosoitteesi, niin lähetämme sinulle kirjautumiskoodin.",DF="Kirjoita sähköpostiosoitteesi tai puhelinnumerosi kirjautuaksesi sisään",zF="Anna sähköpostiosoitteesi, niin lähetämme sinulle kirjautumislinkin.",RF="Anna puhelinnumerosi kirjautuaksesi sisään",PF="Kirjoita {{authMethod}} kirjautuaksesi sisään.",BF="Kirjaudu ulos",jF="Ei, haluan käyttää toista tiliä",LF="tai",FF="Salasana",UF="Salasana on nollattu",MF="Menestys",qF="Vaihda salasana tilillesi {{vendorName}} ",VF="Vaihda salasana tilillesi {{vendorName}} ",HF="Puhelinnumero",KF="Tietosuojakäytäntö",GF="Uudelleenohjaus",WF="Vahvista salasana",XF="Rekisteröi uusi salasana",JF="Lähetä koodi uudelleen",YF="Vaihda salasana",ZF="Kirjoita alla oleva uusi salasanasi sähköpostitiliä varten: ",QF="Napsauta painiketta salasanasi palauttamiseksi",eU="Napsauta painiketta salasanasi palauttamiseksi",tU="Nollaa salasanasi",nU="Vaihda salasana tilillesi {{vendorName}} ",rU="Nollaa salasana",iU="Lähetä",oU="Lähetä minulle uusi maaginen linkki",sU="Muista tarkistaa roskapostikansiosi, jos sähköposti ei ole saapunut.",aU="Aseta salasana",cU="Näytä salasana",lU="Kirjaudu sisään",uU="Rekisteröityminen",dU="Rekisteröidy onnistuneesti",pU="{{code}} on kirjautumiskoodisi {{vendorName}}",fU="Näyttää siltä, että Spotify-tilisi on tällä hetkellä yhdistetty toiseen Sesamy-tiliin. Mutta älä pelkää, me opastamme sinua prosessin läpi, jotta saat tämän korjattua.",hU="Siirry Spotifyn Content Access -sivulle",gU='Aloitetaan poistamalla Spotify-tilisi linkitys. Klikkaa alla olevaa painiketta siirtyäksesi Spotifyn Content Access -sivulle. Kun olet kirjautunut sisään Spotify-tilillesi, etsi Sesamy yhdistettyjen alustojen luettelosta. Napsauta "Unlink" Sesamyn logon vieressä.',mU="Vaihe 1: Poista Spotify-tilisi linkitys",_U="Kun olet onnistuneesti irrottanut Spotify-tilisi, voit yhdistää sen uudelleen Sesamyn kanssa. Toista vain aiemmin tekemäsi vaiheet, jotka johtivat sinut tälle sivulle.",yU="Vaihe 2: Yhdistä Spotify-tilisi uudelleen Sesamyn kanssa",wU="Hups! Spotify-tilisi on jo linkitetty",vU="Valmis",bU="Jos sinulla on kysyttävää tai tarvitset apua, voit ottaa yhteyttä tukitiimiimme.",xU="Ehdot ja edellytykset",$U="Jokin meni pieleen. Yritä uudelleen.",AU="Sähköpostiosoitteesi on vahvistettava. Olemme lähettäneet uuden sähköpostiviestin sähköpostiisi.",EU="Päivitä sähköposti",SU="Käyttäjätiliä ei ole olemassa",kU="Käyttäjätiliä ei ole olemassa",NU="Emme löytäneet käyttäjää, jolla on annettu sähköpostiosoite. Yritä uudelleen.",CU="Yritä uudelleen.",IU="Validoi koodi",TU="Tarkista sähköpostin vahvistusohjeet postilaatikostasi.",OU="Rekisteröitynyt",DU="Vahvista sähköpostiosoitteesi napsauttamalla painiketta",zU="Vahvista sähköpostiosoitteesi",RU="Vahvista sähköpostiosoitteesi",PU="Vahvista tili",BU="Vahvista sähköpostiosoitteesi",jU="Tarkista sähköpostisi osoitteesta <0>{{email}}</0> ja syötä lähettämämme kuusinumeroinen koodi.",LU="Tervetuloa",FU="Tervetuloa tilillesi {{vendorName}}!",UU="Jatka tällä tilillä",MU="Kyllä, jatka {{text}}",qU="Kyllä, jatka olemassa olevalla tilillä",VU={"Server error: Invalid code":"Virheellinen koodi",account_detected:hL,account_title:gL,account_with_sso_provider:mL,agree_to:_L,and:yL,auth_method_email:wL,auth_method_email_or_phone:vL,auth_method_phone:bL,callback_url_mismatch:xL,callback_url_not_allowed:$L,check_email_title:AL,click_to_sign_up_description:EL,code_email_enter_code:SL,code_email_subject:kL,code_email_title:NL,code_expired:CL,code_invalid:IL,code_sent_template:TL,code_used:OL,code_valid_30_minutes:DL,confirm_password:zL,contact_support:RL,contact_us:PL,continue:"Jatka",continue_social_login:BL,continue_with:jL,continue_with_sso_provider_headline:LL,copyright:FL,copyright_sesamy:UL,create_account_description:ML,create_account_email_invalid:qL,create_account_passwords_didnt_match:VL,create_account_title:HL,create_account_weak_password:KL,create_new_account_link:GL,create_password_account_title:WL,currently_logged_in_as:XL,email:JL,email_changed_to_template:YL,email_or_phone_placeholder:ZL,email_placeholder:QL,email_validated:eF,email_validated_cta:tF,email_verification_for_signup_sent_description:nF,email_verification_for_signup_sent_title:rF,enter_a_code_btn:iF,enter_email_for_verification_description:oF,enter_new_email:sF,enter_new_password_placeholder:aF,enter_password:cF,enter_password_description:lF,enter_your_password_btn:uF,expired_code:dF,fokus_info_message:pF,forgot_password_cta:fF,forgot_password_description:hF,forgot_password_email_sent:gF,forgot_password_link:mF,forgot_password_title:_F,go_back:yF,hide_password:wF,"invalid-email":"Virheellinen sähköpostiosoite",invalid_identifier:vF,invalid_password:bF,invalid_session_body:xF,invalid_session_title:$F,link_email_click_to_login:AF,link_email_login:EF,link_email_or_enter_code:SF,link_page_body:kF,link_page_headline:NF,logged_in_as:CF,login:IF,login_description:TF,login_description_code:OF,login_description_combined:DF,login_description_link:zF,login_description_phone:RF,login_description_template:PF,logout:BF,no_use_another:jF,or:LF,password:FF,password_has_been_reset:UF,password_has_been_reset_title:MF,password_reset_subject:qF,password_reset_title:VF,phone_placeholder:HF,privacy_policy:KF,redirecting:GF,reenter_new_password_placeholder:WF,register_password_account:XF,resend_code:JF,reset_password_cta:YF,reset_password_description:ZF,reset_password_email_click_to_reset:QF,reset_password_email_cta:eU,reset_password_email_reset:tU,reset_password_subject:nU,reset_password_title:rU,send:iU,send_me_a_new_magic_link:oU,sent_code_spam:sU,set_password:aU,show_password:cU,sign_in:lU,signup:uU,signup_success:dU,sms_code_text:pU,spotify_already_linked_body:fU,spotify_already_linked_cta:hU,spotify_already_linked_step1_body:gU,spotify_already_linked_step1_title:mU,spotify_already_linked_step2_body:_U,spotify_already_linked_step2_title:yU,spotify_already_linked_title:wU,success:vU,support_info:bU,terms:xU,unexpected_error_try_again:$U,unverified_email:AU,update_email:EU,user_account_does_not_exist:SU,user_not_found:kU,user_not_found_body:NU,user_not_found_cta:CU,validate_code:IU,validate_email_body:TU,validate_email_title:OU,verify_email_click_to_verify:DU,verify_email_subject:zU,verify_email_title:RU,verify_email_verify:PU,verify_your_email:BU,we_sent_a_code_to:jU,welcome:LU,welcome_to_your_account:FU,yes_continue:UU,yes_continue_with:MU,yes_continue_with_existing_account:qU},HU="Konto opdaget",KU="Konto",GU="Vi har opdaget, at du allerede har oprettet en konto gennem",WU="Når du logger ind, accepterer du vores",XU="og",JU="e-mail-adresse",YU="e-mail eller telefonnummer",ZU="Telefonnummer",QU="Uoverensstemmelse mellem URL og tilbagekald",eM="Den angivne redirect_uri er ikke på listen over tilladte tilbagekalds-URL'er.",tM="Fortsæt med brugeren",nM="Klik på knappen for at oprette en ny adgangskodekonto.",rM="Indtast koden på {{vendorName}} for at gennemføre login.",iM="Velkommen til {{vendorName}}! {{code}} er login-koden",oM="Velkommen til {{vendorName}}! {{code}} er login-koden",sM="Koden er udløbet",aM="Ugyldig kode",cM="Tjek venligst <0>{{username}}</0> og indtast den sekscifrede kode, som vi har sendt til dig.",lM="Koden er allerede brugt",uM="Koden er gyldig i 30 minutter",dM="Bekræft adgangskode",pM="Har du brug for hjælp?",fM="Kontakt os",hM="eller fortsæt med social konto",gM="Fortsæt med {{provider}}",mM="Vil du gerne fortsætte med din eksisterende konto?",_M="Ophavsret © 2023 SESAMY. Alle rettigheder forbeholdes.",yM="©2023 Sesamy",wM="Vælg en adgangskode med en blanding af store og små bogstaver, tal og symboler.",vM="Indtast venligst en gyldig e-mailadresse.",bM="Adgangskoderne stemte ikke overens. Prøv igen.",xM="Vælg adgangskode",$M="Adgangskoden skal være mindst 8 tegn lang og indeholde mindst et lille bogstav, et stort bogstav, et tal og et symbol.",AM="Opret ny konto",EM="Tilmeld dig med adgangskode",SM="Du er i øjeblikket logget ind som <0>{{email}}</0>",kM="E-mail",NM="E-mail ændret til <0>{{email}}</0> ",CM="E-mail eller telefonnummer",IM="E-mail-adresse",TM="Din e-mailadresse er blevet valideret",OM="Indtast nu din adgangskode for at logge ind igen",DM="Der er sendt en e-mail til <0>{{email}}</0> med et bekræftelseslink. Klik på linket for at bekræfte din e-mailadresse og angive en adgangskode.",zM="E-mail-bekræftelse sendt",RM="Indtast en kode",PM="Vi sender dig et bekræftelseslink for at sikre, at du ejer denne e-mailadresse.",BM="Indtast ny e-mail",jM="Indtast ny adgangskode",LM="Indtast adgangskode",FM="Indtast din e-mailadresse og adgangskode for at logge ind.",UM="Indtast din adgangskode",MM="Det magiske link er udløbet. Klik på knappen nedenfor for at modtage et nyt link i din indbakke.",qM="Hej! Vi har opdateret vores login-oplevelse. <0>Klik her for at lære mere om det.</0>",VM="Send e-mail til nulstilling af adgangskode",HM="Klik på knappen nedenfor, så sender vi instruktioner om, hvordan du nulstiller din adgangskode.",KM="E-mail til nulstilling af adgangskode sendt",GM="Har du glemt din adgangskode?",WM="Har du glemt din adgangskode?",XM="Gå tilbage",JM="Skjul adgangskode",YM="Ugyldig identifikator",ZM="Ugyldig adgangskode",QM="Linket er ikke længere gyldigt. Sørg for at åbne login-linket i den samme browser, som du startede login med. Du kan klikke på linket nedenfor for at starte et nyt login.",eq="Ugyldigt link",tq="Klik på knappen for at logge ind",nq="Login",rq="Eller indtast koden på {{vendorName}} for at gennemføre login.",iq="Indtast din e-mailadresse for at låse op for dette show på {{service}}",oq="Forbind din konto med {{service}}",sq="Du er logget ind som",aq="Login",cq="Indtast din e-mailadresse for at logge ind.",lq="Indtast din e-mailadresse, så sender vi dig en login-kode.",uq="Indtast din e-mail eller dit telefonnummer for at logge ind",dq="Indtast din e-mailadresse, så sender vi dig et login-link.",pq="Indtast dit telefonnummer for at logge ind",fq="Indtast din {{authMethod}} for at logge ind.",hq="Log ud",gq="Nej, jeg vil bruge en anden konto",mq="eller",_q="Adgangskode",yq="Adgangskoden er blevet nulstillet",wq="Succes",vq="Skift adgangskode til din {{vendorName}} -konto",bq="Skift adgangskode til din {{vendorName}} -konto",xq="Telefonnummer",$q="Politik for beskyttelse af personlige oplysninger",Aq="Omdirigering",Eq="Bekræft adgangskode",Sq="Registrer en ny adgangskode",kq="Send koden igen",Nq="Skift adgangskode",Cq="Indtast din nye adgangskode til e-mailkontoen nedenfor: ",Iq="Klik på knappen for at nulstille din adgangskode",Tq="Klik på knappen for at nulstille din adgangskode",Oq="Nulstil din adgangskode",Dq="Skift adgangskode til din {{vendorName}} -konto",zq="Nulstil adgangskode",Rq="Send",Pq="Send mig et nyt magisk link",Bq="Husk at tjekke din spam-mappe, hvis e-mailen ikke er kommet frem.",jq="Indstil adgangskode",Lq="Vis adgangskode",Fq="Log ind",Uq="Tilmelding",Mq="Tilmeld dig med succes",qq="{{code}} er din login-kode til {{vendorName}}",Vq="Det ser ud til, at din Spotify-konto i øjeblikket er knyttet til en anden Sesamy-konto. Men frygt ikke, vi er her for at guide dig gennem processen med at få det løst.",Hq="Gå til Spotifys side for adgang til indhold",Kq='Lad os starte med at fjerne forbindelsen til din Spotify-konto. Klik på knappen nedenfor for at gå til Spotifys Content Access-side. Når du har logget ind på din Spotify-konto, skal du finde Sesamy på listen over tilsluttede platforme. Klik på "Unlink" ved siden af Sesamy-logoet.',Gq="Trin 1: Fjern forbindelsen til din Spotify-konto",Wq="Når du har afkoblet din Spotify-konto, kan du koble den til Sesamy igen. Du skal blot gentage de trin, du tidligere har taget, og som førte dig til denne side.",Xq="Trin 2: Relink din Spotify-konto til Sesamy",Jq="Ups! Din Spotify-konto er allerede forbundet",Yq="Færdig",Zq="Hvis du har spørgsmål eller brug for hjælp, kan du kontakte vores supportteam",Qq="Vilkår og betingelser",eV="Noget gik galt. Prøv venligst igen.",tV="Din e-mailadresse skal valideres. Vi har sendt en ny e-mail til din indbakke",nV="Opdatering af e-mail",rV="Brugerkontoen findes ikke",iV="Brugerkontoen findes ikke",oV="Vi kunne ikke finde en bruger med den angivne e-mailadresse. Prøv venligst igen.",sV="Prøv igen.",aV="Valider koden",cV="Tjek din indbakke for instruktioner om validering af e-mail.",lV="Tilmeldte sig",uV="Klik på knappen for at bekræfte din e-mailadresse",dV="Bekræft din e-mailadresse",pV="Bekræft din e-mailadresse",fV="Bekræft konto",hV="Bekræft din e-mail",gV="Tjek venligst din e-mail på <0>{{email}}</0> og indtast den sekscifrede kode, vi har sendt dig.",mV="Velkommen",_V="Velkommen til din {{vendorName}} konto!",yV="Fortsæt med denne konto",wV="Ja, fortsæt med {{text}}",vV="Ja, fortsæt med eksisterende konto",bV={"Server error: Invalid code":"Ugyldig kode",account_detected:HU,account_title:KU,account_with_sso_provider:GU,agree_to:WU,and:XU,auth_method_email:JU,auth_method_email_or_phone:YU,auth_method_phone:ZU,callback_url_mismatch:QU,callback_url_not_allowed:eM,check_email_title:tM,click_to_sign_up_description:nM,code_email_enter_code:rM,code_email_subject:iM,code_email_title:oM,code_expired:sM,code_invalid:aM,code_sent_template:cM,code_used:lM,code_valid_30_minutes:uM,confirm_password:dM,contact_support:pM,contact_us:fM,continue:"Fortsæt",continue_social_login:hM,continue_with:gM,continue_with_sso_provider_headline:mM,copyright:_M,copyright_sesamy:yM,create_account_description:wM,create_account_email_invalid:vM,create_account_passwords_didnt_match:bM,create_account_title:xM,create_account_weak_password:$M,create_new_account_link:AM,create_password_account_title:EM,currently_logged_in_as:SM,email:kM,email_changed_to_template:NM,email_or_phone_placeholder:CM,email_placeholder:IM,email_validated:TM,email_validated_cta:OM,email_verification_for_signup_sent_description:DM,email_verification_for_signup_sent_title:zM,enter_a_code_btn:RM,enter_email_for_verification_description:PM,enter_new_email:BM,enter_new_password_placeholder:jM,enter_password:LM,enter_password_description:FM,enter_your_password_btn:UM,expired_code:MM,fokus_info_message:qM,forgot_password_cta:VM,forgot_password_description:HM,forgot_password_email_sent:KM,forgot_password_link:GM,forgot_password_title:WM,go_back:XM,hide_password:JM,"invalid-email":"Ugyldig e-mail",invalid_identifier:YM,invalid_password:ZM,invalid_session_body:QM,invalid_session_title:eq,link_email_click_to_login:tq,link_email_login:nq,link_email_or_enter_code:rq,link_page_body:iq,link_page_headline:oq,logged_in_as:sq,login:aq,login_description:cq,login_description_code:lq,login_description_combined:uq,login_description_link:dq,login_description_phone:pq,login_description_template:fq,logout:hq,no_use_another:gq,or:mq,password:_q,password_has_been_reset:yq,password_has_been_reset_title:wq,password_reset_subject:vq,password_reset_title:bq,phone_placeholder:xq,privacy_policy:$q,redirecting:Aq,reenter_new_password_placeholder:Eq,register_password_account:Sq,resend_code:kq,reset_password_cta:Nq,reset_password_description:Cq,reset_password_email_click_to_reset:Iq,reset_password_email_cta:Tq,reset_password_email_reset:Oq,reset_password_subject:Dq,reset_password_title:zq,send:Rq,send_me_a_new_magic_link:Pq,sent_code_spam:Bq,set_password:jq,show_password:Lq,sign_in:Fq,signup:Uq,signup_success:Mq,sms_code_text:qq,spotify_already_linked_body:Vq,spotify_already_linked_cta:Hq,spotify_already_linked_step1_body:Kq,spotify_already_linked_step1_title:Gq,spotify_already_linked_step2_body:Wq,spotify_already_linked_step2_title:Xq,spotify_already_linked_title:Jq,success:Yq,support_info:Zq,terms:Qq,unexpected_error_try_again:eV,unverified_email:tV,update_email:nV,user_account_does_not_exist:rV,user_not_found:iV,user_not_found_body:oV,user_not_found_cta:sV,validate_code:aV,validate_email_body:cV,validate_email_title:lV,verify_email_click_to_verify:uV,verify_email_subject:dV,verify_email_title:pV,verify_email_verify:fV,verify_your_email:hV,we_sent_a_code_to:gV,welcome:mV,welcome_to_your_account:_V,yes_continue:yV,yes_continue_with:wV,yes_continue_with_existing_account:vV},xV=t=>{const{theme:e,branding:n,client:r,authParams:i}=t,c=`/authorize?${new URLSearchParams({...i})}`;return v(nt,{theme:e,branding:n,client:r,title:F.t("user_not_found"),children:v("div",{className:"flex flex-1 flex-col justify-center",children:[v("p",{className:"mb-8 text-gray-300 text-lg",children:F.t("user_not_found_body")}),v(tt,{Component:"a",href:c,children:F.t("user_not_found_cta")})]})})};function $V(t,e){const{mainTenantId:n,mainClientId:r}=e;return{...t,clients:{get:async i=>{const o=await t.clients.get(i);if(!o)return null;const c=r?await t.clients.get(r):void 0,l=await t.connections.list(o.tenant.id),u=n?await t.connections.list(n):{connections:[]},d=l.connections.map(p=>{var A;const h=(A=u.connections)==null?void 0:A.find(m=>m.name===p.name);if(!(h!=null&&h.options))return p;const g=nn.parse({...h||{},...p});return g.options=xi.passthrough().parse({...h.options||{},...p.options}),g}).filter(p=>p);return{...o,web_origins:[...(c==null?void 0:c.web_origins)||[],...o.web_origins||[]],allowed_logout_urls:[...(c==null?void 0:c.allowed_logout_urls)||[],...o.allowed_logout_urls||[]],callbacks:[...(c==null?void 0:c.callbacks)||[],...o.callbacks||[]],connections:d,tenant:{...(c==null?void 0:c.tenant)||{},...o.tenant}}}},connections:{...t.connections,get:async(i,o)=>{const c=await t.connections.get(i,o);if(!c||!n)return c;const l=await t.connections.get(n,o);if(!l)return c;const u=nn.parse({...l,...c});return u.options=xi.passthrough().parse({...l.options||{},...c.options}),u},list:async(i,o)=>{const c=await t.connections.list(i,o);if(!n||i===n)return c;const l=await t.connections.list(n),u=c.connections.map(d=>{var g;const p=(g=l.connections)==null?void 0:g.find(A=>A.name===d.name);if(!(p!=null&&p.options))return d;const h=nn.parse({...p,...d});return h.options=xi.passthrough().parse({...p.options||{},...d.options}),h});return{...c,connections:u}}},applications:t.applications,branding:t.branding,codes:t.codes,customDomains:t.customDomains,emailProviders:t.emailProviders,forms:t.forms,hooks:t.hooks,keys:t.keys,loginSessions:t.loginSessions,logs:t.logs,passwords:t.passwords,promptSettings:t.promptSettings,refreshTokens:t.refreshTokens,sessions:t.sessions,tenants:t.tenants,themes:t.themes,users:t.users}}function AV(t,e){return $V(t,e)}F.init({supportedLngs:["en","it","nb","sv","pl","cs","fi","da"],fallbackLng:"en",resources:{en:{translation:vk},it:{translation:Y7},nb:{translation:NT},sv:{translation:oz},pl:{translation:PP},cs:{translation:fL},fi:{translation:VU},da:{translation:bV}}});function EV(t){const e=new s.OpenAPIHono;e.get("/",c=>c.json({name:"authhero"}));const n=Mx(t);e.route("/api/v2",n);const r=E8(t);e.route("/u",r);const i=qE(t);e.route("/samlp",i);const o=o6(t);return e.route("/",o),{app:e,managementApp:n,oauthApp:o,samlApp:i,universalApp:r,createX509Certificate:Rd}}exports.AppLogo=Z1;exports.Auth0Client=Lm;exports.AuthorizationResponseMode=bn;exports.AuthorizationResponseType=tn;exports.Button=tt;exports.CheckEmailPage=gy;exports.CodeChallengeMethod=gc;exports.ComponentCategory=rp;exports.ComponentType=np;exports.EmailValidatedPage=yy;exports.EnterCodePage=Xd;exports.EnterPasswordPage=la;exports.ErrorMessage=Qn;exports.Footer=Q1;exports.ForgotPasswordPage=fy;exports.ForgotPasswordSentPage=hy;exports.FormComponent=Cn;exports.GoBack=un;exports.GoogleLogo=ny;exports.GrantType=wi;exports.Icon=et;exports.IdentifierPage=sa;exports.InvalidSession=_y;exports.Layout=nt;exports.LogTypes=Le;exports.Message=vr;exports.NodeType=$m;exports.PreSignUpConfirmationPage=wy;exports.PreSignUpPage=my;exports.ResetPasswordPage=mi;exports.SignUpPage=Tr;exports.SocialButton=mo;exports.Spinner=ty;exports.Trans=Mi;exports.UnverifiedEmailPage=py;exports.UserNotFoundPage=xV;exports.VippsLogo=ry;exports.applicationInsertSchema=ga;exports.applicationSchema=zr;exports.auth0FlowInsertSchema=Nw;exports.auth0FlowSchema=Im;exports.auth0UserResponseSchema=yn;exports.authParamsSchema=So;exports.baseUserSchema=fc;exports.bordersSchema=qm;exports.brandingSchema=uu;exports.buttonComponentSchema=ym;exports.codeInsertSchema=Om;exports.codeSchema=Iw;exports.codeTypeSchema=Tm;exports.colorsSchema=Vm;exports.componentSchema=xm;exports.connectionInsertSchema=ma;exports.connectionOptionsSchema=xi;exports.connectionSchema=nn;exports.coordinatesSchema=Ki;exports.customDomainInsertSchema=ip;exports.customDomainSchema=ar;exports.customDomainWithTenantIdSchema=Tw;exports.emailProviderSchema=Ws;exports.endingSchema=Cm;exports.fieldComponentSchema=vm;exports.flowNodeSchema=Em;exports.fontDetailsSchema=Ir;exports.fontsSchema=Hm;exports.formControlSchema=Ow;exports.formInsertSchema=ya;exports.formNodeComponentDefinition=zm;exports.formSchema=_i;exports.genericComponentSchema=bm;exports.genericNodeSchema=Sm;exports.hookInsertSchema=Hs;exports.hookSchema=yi;exports.identitySchema=gm;exports.init=EV;exports.injectTailwindCSS=w8;exports.jwksKeySchema=Bm;exports.jwksSchema=op;exports.legalComponentSchema=wm;exports.logSchema=wa;exports.loginSessionInsertSchema=jm;exports.loginSessionSchema=Bw;exports.nodeSchema=km;exports.openIDConfigurationSchema=du;exports.pageBackgroundSchema=Km;exports.parseUserId=qw;exports.passwordInsertSchema=Fm;exports.passwordSchema=Lw;exports.profileDataSchema=hm;exports.promptSettingSchema=Gs;exports.refreshTokenInsertSchema=ap;exports.refreshTokenSchema=Fw;exports.richTextComponentSchema=_m;exports.samlpAddon=mm;exports.sessionInsertSchema=Mm;exports.sessionSchema=_c;exports.signingKeySchema=pu;exports.smsProviderSchema=Mw;exports.smsSendParamsSchema=Uw;exports.startSchema=Nm;exports.stepNodeSchema=Am;exports.tailwindCss=Cf;exports.tenantInsertSchema=_a;exports.tenantSchema=$i;exports.themeInsertSchema=Wm;exports.themeSchema=Ks;exports.tokenResponseSchema=sp;exports.totalsSchema=Xn;exports.userInsertSchema=ha;exports.userResponseSchema=Ew;exports.userSchema=tp;exports.vendorSettingsSchema=Cw;exports.verificationMethodsSchema=Dm;exports.widgetSchema=Gm;exports.withMainTenantFallback=AV;
|