builder.io 1.17.21 → 1.17.23

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/server/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- var l0=Object.create;var qs=Object.defineProperty;var c0=Object.getOwnPropertyDescriptor;var p0=Object.getOwnPropertyNames;var d0=Object.getPrototypeOf,f0=Object.prototype.hasOwnProperty;var m0=(e,t,r)=>t in e?qs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ve=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var P=(e,t)=>()=>(e&&(t=e(e=0)),t);var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),g0=(e,t)=>{for(var r in t)qs(e,r,{get:t[r],enumerable:!0})},h0=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of p0(t))!f0.call(e,n)&&n!==r&&qs(e,n,{get:()=>t[n],enumerable:!(o=c0(t,n))||o.enumerable});return e};var et=(e,t,r)=>(r=e!=null?l0(d0(e)):{},h0(t||!e||!e.__esModule?qs(r,"default",{value:e,enumerable:!0}):r,e));var ft=(e,t,r)=>m0(e,typeof t!="symbol"?t+"":t,r);var v0,rr,$r=P(()=>{"use strict";v0="1.17.21",rr=process.env.OVERRIDE_VERSION??v0});var Vu,Ho,Ws,Js,Vd,zn,Hu,Gu,Kn,Hd,Go=P(()=>{"use strict";Vu="preview-url",Ho="framework",Ws="platform",Js="node",Vd="/~builder-connect",zn="/~builder-connected",Hu="/~builder-dev-tools",Gu="/~builder-dev-tools.js",Kn="/~builder-dev-tools-close",Hd="/mappings"});function Ce(e,t=""){return e.ts.createSourceFile("module.tsx",typeof t=="string"?t:"",e.ts.ScriptTarget.Latest,void 0)}function Qs(e,t=""){let r=Ce(e,t?.trim());if(r.statements.length===0)throw new Error(`No statements found in code: ${t}`);return r.statements[0]}function ot(e,t,r){if(t){let o=e.ts.createPrinter({newLine:e.ts.NewLineKind.LineFeed,removeComments:r});return e.ts.isSourceFile(t)?o.printFile(t).trim()+`
2
+ var l0=Object.create;var qs=Object.defineProperty;var c0=Object.getOwnPropertyDescriptor;var p0=Object.getOwnPropertyNames;var d0=Object.getPrototypeOf,f0=Object.prototype.hasOwnProperty;var m0=(e,t,r)=>t in e?qs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ve=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var P=(e,t)=>()=>(e&&(t=e(e=0)),t);var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),g0=(e,t)=>{for(var r in t)qs(e,r,{get:t[r],enumerable:!0})},h0=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of p0(t))!f0.call(e,n)&&n!==r&&qs(e,n,{get:()=>t[n],enumerable:!(o=c0(t,n))||o.enumerable});return e};var et=(e,t,r)=>(r=e!=null?l0(d0(e)):{},h0(t||!e||!e.__esModule?qs(r,"default",{value:e,enumerable:!0}):r,e));var ft=(e,t,r)=>m0(e,typeof t!="symbol"?t+"":t,r);var v0,rr,$r=P(()=>{"use strict";v0="1.17.23",rr=process.env.OVERRIDE_VERSION??v0});var Vu,Ho,Ws,Js,Vd,zn,Hu,Gu,Kn,Hd,Go=P(()=>{"use strict";Vu="preview-url",Ho="framework",Ws="platform",Js="node",Vd="/~builder-connect",zn="/~builder-connected",Hu="/~builder-dev-tools",Gu="/~builder-dev-tools.js",Kn="/~builder-dev-tools-close",Hd="/mappings"});function Ce(e,t=""){return e.ts.createSourceFile("module.tsx",typeof t=="string"?t:"",e.ts.ScriptTarget.Latest,void 0)}function Qs(e,t=""){let r=Ce(e,t?.trim());if(r.statements.length===0)throw new Error(`No statements found in code: ${t}`);return r.statements[0]}function ot(e,t,r){if(t){let o=e.ts.createPrinter({newLine:e.ts.NewLineKind.LineFeed,removeComments:r});return e.ts.isSourceFile(t)?o.printFile(t).trim()+`
3
3
  `:o.printNode(e.ts.EmitHint.Unspecified,t,e.ts.createSourceFile("module.tsx","",e.ts.ScriptTarget.Latest)).trim()+`
4
4
  `}return""}var ze=P(()=>{"use strict"});var zd=U((G$,Gd)=>{"use strict";Gd.exports=function(){if(process.env.npm_config_user_agent)return D0(process.env.npm_config_user_agent)};function D0(e){let t=e.split(" ")[0],r=t.lastIndexOf("/"),o=t.substring(0,r);return{name:o==="npminstall"?"cnpm":o,version:t.substring(r+1)}}});function nr(e){return e.endsWith(".mapper.tsx")||e.endsWith(".mapper.jsx")||e.endsWith(".mapper.ts")||e.endsWith(".mapper.js")||e.endsWith(".mapper.mjs")}function be(e,t,r){t=xr(t),r=xr(r),t=e.dirname(t);let o=e.basename(r,e.extname(r));r=e.dirname(r);let n;return o==="index"?n=e.relative(t,r):n=e.relative(t,e.join(r,o)),n=xr(e.normalize(n)),n.startsWith(".")||(n="./"+n),n}function xr(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}function qn(e,t){let r=e.extname(t),o=e.basename(t,r).split(/[\/\\]/),n=o[o.length-1];return Kd(n==="index"?e.basename(e.dirname(t)):n)}function Kd(e){return Ne(e).replace(/ /g,"")}function or(e,t){let r=e.extname(t),o=xr(e.basename(t,r)).split("/").pop();return Ne(o==="index"?e.basename(e.dirname(t)):o)}function Be(e,t){let r=xr(e.relative(e.getAppRootDir(),t));r=r.split("/").filter(n=>n!=="."&&n!==".."&&n!=="").join("/"),r.endsWith(".tsx")||r.endsWith(".jsx")?r=r.slice(0,-4):(r.endsWith(".ts")||r.endsWith(".js"))&&(r=r.slice(0,-3));let o=e.getFrameworks();return r.startsWith("src/")&&(r=r.slice(4)),o.some(n=>n.name.includes("next"))?"@/"+r:"~/"+r}function Fe(e,t){let r=t,o=[];for(let n=0;n<2;n++){let s=e.basename(r);if(!s||s==="components")break;o.unshift(s),r=e.dirname(r)}return o.join("/")}function Ne(e){for(e=e.replace(/([A-Z])/g," $1").replace(/\./g," ").replace(/_/g," ").replace(/-/g," ").replace(/\s/g," ").trim();e.includes(" ");)e=e.replace(/ /g," ");return e.split(" ").map(t=>t.length>2?t[0].toUpperCase()+t.slice(1):t).join("").trim()}function Tt(e){return e.sort((t,r)=>t.name.toLocaleLowerCase().localeCompare(r.name.toLocaleLowerCase()))}async function Oe(e,t,r,o){if(typeof r!="string"||r==="")throw new Error(`getComponentId(), exportName must be a non-empty string, received: ${r}, ${t}`);return o&&(t=o),t=e.normalize(t),(await e.hash(t+"#"+r)).substring(0,8)}async function Wd(e){return(await e.hash(e.getAppRootDir())).substring(0,8)}function Gi(e){return typeof e=="number"}function zo(e){return typeof e=="boolean"}function xt(e){return typeof e=="string"}function Ko(e){return typeof e=="string"?/^[A-Z][A-Za-z0-9]*$/.test(e):!1}function Gt(e){return JSON.parse(JSON.stringify(e))}function Ys(e,t,r){for(let o of t)if(e.dirname(r).includes(o))return!0;return!1}function Jd(){try{let e=(0,qd.default)();if(e?.name)return e.name}catch{}return"npm"}function y0(){return process.platform.startsWith("win")}function Ke(){return y0()?'"@builder.io/dev-tools"':"builder.io"}var qd,Ee=P(()=>{"use strict";qd=et(zd(),1)});function St(e){let t=e.join(e.getAppRootDir(),"tsconfig.json");return e.exists(t)}async function Rt(e,t){async function r(n,s){if(s>10)return;let i=await e.readdir(n);for(let a of i){if(C0.includes(a))continue;let u=e.join(n,a),l=await e.stat(u);if(l){if(l.isFile()&&a.startsWith("builder-registry."))return u;if(l.isDirectory()){let c=await r(u,s+1);if(c)return c}}}}let o=await r(e.getAppRootDir(),0);if(!o){let s=`builder-registry.${await St(e)?"ts":"js"}`;return e.join(t,s)}return o}async function Sn(e,t){let r=e.resolve("/");for(let o=0;o<20;o++){let n=e.join(t,"package.json"),s=await e.readFile(n);if(s)return JSON.parse(s);if(t===r)break;t=e.dirname(t)}return null}async function Qd(e,t){for(let r=0;r<20;r++){let o=e.dirname(t),n=e.join(o,"node_modules");if(await e.exists(n))return n;if(t===e.getAppRootDir())break;t=e.dirname(t)}return e.join(e.getAppRootDir(),"node_modules")}async function zi(e,t,r){let o=await e.readdir(t);return o.includes(r)?e.join(t,r):(await Promise.all(o.map(async s=>{if(s.startsWith(".")||s==="node_modules")return;let i=e.join(t,s);if((await e.stat(i)).isDirectory()){let u=await zi(e,i,r);if(u)return u}}))).find(s=>typeof s=="string")}var C0,Et=P(()=>{"use strict";C0=["node_modules","dist","build","public"]});async function rt(e,t,r){if(!Array.isArray(t)||t.length===0)throw new Error(`createTsProgram() Invalid filePaths: ${t}`);let o=await Qd(e,t[0]),n=e.join(o,"typescript","lib"),s=new Map,i={fileExists:a=>{if(a=e.normalize(a),a.includes("node_modules")){let u=Ki.get(a);if(!u){try{e.statSync(a).isFile()?u={exists:!0,content:e.readFileSync(a)}:u={exists:!1}}catch{u={exists:!1}}Ki.set(a,u)}return u.exists}if(!s.has(a))if(e.existsSync(a)){let l=e.statSync(a);s.set(a,l.isFile())}else s.set(a,!1);return s.get(a)},getCanonicalFileName:a=>e.normalize(a),getCurrentDirectory:()=>e.cwd(),getDefaultLibFileName:()=>e.join(n,"lib.d.ts"),getDefaultLibLocation:()=>n,getNewLine:()=>`
5
5
  `,getSourceFile:a=>{if(a=e.normalize(a),a.includes("node_modules")){let l=Ki.get(a);if(l)return Ce(e,l.content)}let u;try{u=e.readFileSync(a)}catch{console.error(`Could not read: ${a}`),u==null}if(u==null){let l=e.basename(a),c=e.extname(l).toLowerCase();if(a.startsWith(n)&&c===".ts"&&(u=Zd.get(l),u==null&&typeof self<"u"&&typeof fetch=="function"))throw new Xs(l)}return a.includes("node_modules")&&(u?Ki.set(a,{exists:!0,content:u}):Ki.set(a,{exists:!1})),Ce(e,u)},readFile:a=>{let u=e.readFileSync(a);return typeof u=="string"?u:void 0},useCaseSensitiveFileNames:()=>!1,writeFile:()=>{}};for(;;)try{return b0(e,i,t,r)}catch(a){if(a instanceof Xs){await x0(e,a.libName);continue}throw e.Sentry?.captureException(a),new Error(`createTsProgram() Could not create program for: ${t[0]}`,{cause:a})}}function b0(e,t,r,o){let n={rootNames:[...r],host:t,options:{}},s=e.ts.findConfigFile(e.dirname(r[0]),i=>e.existsSync(i));if(s){let i=Yd.get(s);if(!i){let a=e.ts.readConfigFile(s,u=>{let l=e.readFileSync(u);return typeof l=="string"?l:void 0});a.error?e.Sentry?.captureException(new Error("Error reading tsconfig for createTsProgram"),{extra:{error:a.error,tsConfigPath:s}}):(i=e.ts.parseJsonConfigFileContent(a.config,e.ts.sys||{useCaseSensitiveFileNames:!1,readDirectory:(l,c)=>e.readdirSync(l),fileExists:l=>e.existsSync(l),readFile:l=>e.readFileSync(l)||void 0},e.dirname(s),void 0,s).options,Yd.set(s,i))}i&&(n.options=Gt(i))}return n.options.noEmit=!0,n.options.isolatedModules=!1,n.options.strict=!1,n.options.jsx=e.ts.JsxEmit.Preserve,n.options.allowJs=!0,Object.assign(n.options,o),e.ts.createProgram(n)}async function qo(e,t,r){r||(r=await rt(e,[t]));let o=r.getSourceFile(t);if(!o)throw new Error(`getTypeChecker() Could not find source file: ${t}`);return{typeChecker:r.getTypeChecker(),sourceFile:o}}async function x0(e,t){let r=`https://cdn.jsdelivr.net/npm/typescript@${e.ts.version}/lib/${t}`;Zs.has(t)||Zs.set(t,fetch(r).then(o=>o.text()).then(o=>{Zd.set(t,o)})),await Zs.get(t),Zs.delete(t)}async function Xd(e,t){let r=await e.readFile(t.filePath);return r==null?{diagnostics:[{messageText:`Error reading: ${t.filePath}`}],code:null,output:null}:zu(e,{code:r,filePath:t.filePath,compilerOptions:t.compilerOptions})}function zu(e,t){let r={diagnostics:[],code:t.code,output:null};try{let o=e.ts.transpileModule(t.code,{compilerOptions:t.compilerOptions,fileName:t.filePath??"module.tsx",reportDiagnostics:!0});o.diagnostics?.forEach(n=>{r.diagnostics.push({messageText:String(n.messageText)})}),r.output=o.outputText}catch(o){console.error("transpileModule",o),r.diagnostics.push({messageText:String(o)})}return r}var Xs,Zd,Zs,Ki,Yd,ir=P(()=>{"use strict";ze();Ee();Et();Xs=class{constructor(t){ft(this,"libName");this.libName=t}};Zd=new Map,Zs=new Map,Ki=new Map,Yd=new Map});var Ku=P(()=>{"use strict"});async function Wo(e){let t=[],r=await Sn(e,e.getRepoRootDir());if(r){let o=await tf(r,e);t.push(...o)}return t}async function tf(e,t){let r=[];if(e&&typeof e=="object"){let o=new Set(Object.keys({...e.dependencies,...e.devDependencies}));for(let n of S0)if(o.has(n)&&!r.some(s=>s.name===n)){let s={name:n};ef.has(n)&&(s.version=await ef.get(n)(t)),r.push(s)}}return r}function qu(e){let t=parseInt(e);return Number.isNaN(t)?void 0:t}var ef,S0,Wn=P(()=>{"use strict";Et();Ee();ef=new Map([["next",async e=>{if(!e.spawnSync)return;let t=Jd(),r=t==="npm"?"npx":t,{stdout:o}=e.spawnSync(r,["next","-v"],{encoding:"utf8"});if(!o)return;let n=o.match(/(Next.js v)([\d.]+)/g);if(!n)return;let s=n[0].split("Next.js v")[1],[i,a,u]=s.split(".");return{major:qu(i),minor:qu(a),patch:qu(u)}}]]),S0=["@shopify/remix-oxygen","@shopify/hydrogen","@builder.io/qwik-city","@remix-run/react","@sveltejs/kit","astro","gatsby","next","nuxt","@builder.io/qwik","@angular/core","react","solid-js","svelte","vue"]});import{access as iO,mkdir as w0,readdir as sO,readFile as P0,stat as aO,unlink as uO,writeFile as A0}from"node:fs/promises";import{homedir as F0,hostname as cO}from"node:os";import rf from"node:path";import fO from"typescript";import gO from"launch-editor";import*as T0 from"@sentry/node";import yO from"prettier";function nf(){let e=F0();return rf.join(e,".config","builder","dev-tools.json")}function Wu(e,t){return typeof e=="object"&&e!=null&&t in e}async function Jo(){let e=nf();try{let t=await P0(e,"utf-8");if(typeof t=="string")return JSON.parse(t)}catch(t){if(t.code==="ENOENT")return null}return null}async function Ju(e){let t=nf();e=typeof e=="object"&&e!=null?e:{},await w0(rf.dirname(t),{recursive:!0}),await A0(t,JSON.stringify(e??{},null,2))}var qi=P(()=>{"use strict";Ku();Wn();$r()});var re,Wi,it=P(()=>{"use strict";re={gen1:"Gen 1",gen2:"Gen 2"},Wi={CMS:"cms",VCP:"vcp",HYBRID:"hybrid"}});import{debug as R0}from"node:console";import{request as I0}from"node:http";import{request as _0}from"node:https";function Qo(e){let t=Date.now();return new Promise((r,o)=>{let s=k0(e.url)({protocol:e.url.protocol,host:e.url.host,port:e.url.port,path:e.url.pathname+e.url.search,method:e.method,headers:e.headers},i=>{let a="";i.on("data",u=>{a+=u}),i.on("end",()=>{if(R0(`${e.method} ${e.url.href}, duration: ${Date.now()-t}ms`),typeof i.statusCode=="number"&&i.statusCode>=200&&i.statusCode<300)if(typeof i.headers["content-type"]!="string"||!i.headers["content-type"].includes("application/json"))o(`Response from ${e.url.href} content-type is ${i.headers["content-type"]}`);else try{r(JSON.parse(a))}catch(u){o(`Response from ${e.url.href} is not valid JSON: ${a}
@@ -21,7 +21,7 @@ Restarting server after Builder Devtools update...
21
21
  <h3>How's Devtools working for you?</h3>
22
22
  <p>We'd love your feedback!</p>
23
23
  </div>
24
- \`,t.appendChild(e),setTimeout(()=>{e.classList.add("menu-toggle-tooltip-show"),e.addEventListener("click",()=>{e.classList.remove("menu-toggle-tooltip-show")})},1e3)};function ui(t){t.getElementById("go-to-builder").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(Nr(),"builder")}),t.getElementById("components-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();let u=t.querySelector(".nav-cmp-list .section-content");u.scrollTop=0,oe(t,"nav-cmp-list"),si(t)}),t.getElementById("settings-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),oe(t,"nav-settings")}),t.getElementById("add-page-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(je(),"builder")}),t.getElementById("import-from-figma").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open("https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more")})}function ci(t){let e=t.getElementById("enable-edit");e.addEventListener("change",r=>{r.stopPropagation(),Ft(e.checked)}),e.checked=it(),Ft(e.checked)}var At=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=\`<style>*,*:before,*:after{box-sizing:border-box}:host{--background-color: rgba(40, 40, 40, 1);--primary-color: rgba(72, 161, 255, 1);--primary-color-subdued: rgb(72, 161, 255, .6);--primary-color-highlight: rgb(126, 188, 255);--primary-contrast-color: white;--edit-color: #1d74e2;--edit-color-highlight: #1c6bd1;--edit-color-alpha: rgb(72, 161, 255, .15);--error-color: #ff2b55;--text-color: white;--text-color-highlight: white;--border-color: #454545;--button-background-color-hover: rgba(255, 255, 255, .1);--menu-width: 320px;--transition-time: .15s;--font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-family:var(--font-family);line-height:1.6}button{cursor:pointer;color:var(--text-color);-webkit-tap-highlight-color:transparent}input,select,button{font-family:var(--font-family)}.menu-toggle{position:absolute;right:0;bottom:0;pointer-events:auto;padding:8px;background:transparent;border:none;appearance:none}.menu-toggle div{position:relative;width:64px;height:64px;pointer-events:none;border-radius:50%;background:#000;border:1px solid white;box-shadow:#00000054 0 0 8px}.menu-toggle:hover div{background-color:var(--background-color);border:1px solid rgb(220,220,220)}.menu-toggle svg{position:absolute;top:15px;left:15px;width:33px;height:32px}div.highlight-bg{position:absolute;top:-1px;left:-1px;background-color:#1a1a1a;pointer-events:none;transition:all .4s ease-out;opacity:0}.menu-toggle-highlight-no-transition div.highlight-bg{transition:none}.menu-toggle-highlight div.highlight-bg{opacity:1}.menu-toggle-tooltip{position:absolute;bottom:0;right:0;width:382px;height:72px;padding:0;text-align:left;appearance:none;background-color:transparent;border:none;pointer-events:none;transform:translate3d(320px,0,0);opacity:0;transition:all .15s ease-in-out;color:#fff}.menu-toggle-tooltip.menu-toggle-tooltip-show{pointer-events:auto;opacity:1;transform:translateZ(0)}.menu-toggle-tooltip-content{position:absolute;inset:0 95px 10px 0;padding:8px 12px;background-color:var(--primary-color);box-shadow:#00000054 0 0 20px;border-radius:2px}.menu-toggle-tooltip-content:before{content:"";position:absolute;bottom:15px;right:-6px;width:30px;height:30px;background-color:var(--primary-color);transform:rotate(45deg)}.menu-toggle-tooltip:hover .menu-toggle-tooltip-content,.menu-toggle-tooltip:hover .menu-toggle-tooltip-content:before{background-color:var(--primary-color-highlight)}.menu-toggle-tooltip-content h3{margin:0;font-size:16px}.menu-toggle-tooltip-content p{margin:0;font-size:12px}section{position:absolute;display:grid;grid-template-rows:64px auto 64px;top:0;left:0;width:100%;height:100%;padding:0;pointer-events:none}.section-content{margin:0;padding:0 0 10px;font-weight:300;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;overflow-y:auto}.section-content .error{color:var(--error-color);font-weight:700}section a{text-decoration:none;color:var(--text-color)}section h3,section p{margin-left:16px;margin-right:16px}.info{font-size:12px}ul.list{list-style:none;padding:0;margin:0}ul.list li{display:block;padding:0;margin:0}ul.list a,ul.list button{display:grid;grid-template-columns:24px auto;grid-gap:16px;padding:12px;margin:8px 0;border:none;background:transparent;appearance:none;width:100%;font-weight:300;text-align:left;text-decoration:none;color:var(--text-color)}ul.list a:hover,ul.list button:hover{text-decoration:none;color:var(--text-color);background-color:var(--button-background-color-hover)}ul.list a span,ul.list button span{display:block;font-size:16px;font-weight:500;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header{position:relative;display:grid;grid-template-columns:44px 1fr;gap:8px;padding-left:8px;border-bottom:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}header>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-home header>div{margin-right:56px}header h2{margin:7px 0 0;font-size:18px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p{margin:2px 0 0;font-size:12px;font-weight:300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button{display:block;margin:0;padding:0;width:100%;font-size:12px;font-weight:300;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button:hover{text-decoration:underline;color:var(--primary-color)}.builder-logo{margin:12px 0 0 8px}#close{display:block;position:absolute;appearance:none;background:transparent;border:none;border-radius:50%;margin:0;padding:0;right:4px;top:8px;width:48px;height:48px;z-index:1;opacity:.7}#close:hover{opacity:1;background-color:var(--button-background-color-hover)}#close svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}.back-button{position:relative;display:block;margin:7px 0 0 -2px;width:48px;height:48px;background:transparent;border:none;appearance:none;border-radius:50%}.back-button:hover{background-color:var(--button-background-color-hover)}.back-button svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}footer{border-top:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}section.nav-cmp-list{grid-template-rows:64px auto 120px}footer a{text-decoration:underline;color:var(--primary-color)}footer a:hover{color:var(--primary-color);text-decoration:none}.nav-list{padding:2px 0}.nav-loading{pointer-events:none}.nav-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.nav-loading .nav-loading-icon{opacity:.5}.nav-list h4{margin:8px 8px 8px 10px;font-size:14px;font-weight:600}.nav-list .nav-list-item+h4{margin-top:30px}.nav-list-item{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:relative;margin:2px 0;padding:8px 28px 8px 46px;width:100%;font-size:14px;font-weight:300;text-align:left;border:none;background:transparent;appearance:none}.nav-list-item:hover{background-color:var(--button-background-color-hover)}.nav-list-item-icon{position:absolute;top:4px;left:10px;width:24px;height:24px;object-fit:contain;filter:invert(100%);background-size:24px 24px;background-repeat:no-repeat;background-position:center center}.nav-list-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.nav-list-item:after{display:block;position:absolute;content:"";background-image:url('data:image/svg+xml,<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L1 13" stroke="%23F2F2F2" stroke-opacity="0.5" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-repeat:no-repeat;background-position:12px 9px;top:0;right:0;width:32px;height:32px;pointer-events:none}.nav-list-item-note{opacity:0;font-size:12px;padding-top:1px;text-align:right}.nav-list-item:hover .nav-list-item-note{opacity:.5}.ui-select{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-select h3{margin:0;font-size:14px;font-weight:500}.ui-select p{margin:8px 0;font-size:12px;font-weight:300}.ui-select .select{position:relative;margin:8px 0;border-radius:4px;padding:0;line-height:1.1;overflow:hidden;border:1px solid var(--border-color)}.ui-select select{appearance:none;background-color:transparent;border:none;outline:none;padding:8px 32px 8px 8px;margin:0;width:100%;font-size:14px;cursor:pointer;text-overflow:ellipsis;opacity:.6;color:var(--text-color)}.ui-select .select:after{content:"";top:6px;right:5px;width:24px;height:24px;position:absolute;background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="%23F2F2F2" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>');background-repeat:no-repeat;background-position:center;pointer-events:none;opacity:.6}.ui-select .select:hover{border-color:var(--primary-color-subdued)}.ui-text-input .select:focus-within{border-color:var(--primary-color)}.ui-text-input .select:focus-within select{opacity:1}.spinner:after{content:" ";display:block;width:32px;height:32px;margin:0 auto;pointer-events:auto;border-radius:50%;border:3px solid var(--text-color);border-color:var(--text-color) transparent var(--text-color) transparent;animation:spinner .75s linear infinite}@keyframes spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ui-switch{display:grid;grid-template-columns:auto 48px;grid-gap:20px;margin:8px 0 16px;padding:8px 0 8px 16px;cursor:pointer}.ui-switch>*{pointer-events:none}.ui-switch input{display:none;visibility:hidden}.ui-switch .switcher{display:inline-block;border-radius:100px;width:35px;height:14px;background-color:#ccc;position:relative;top:6px;vertical-align:middle;cursor:pointer}.ui-switch input[type=checkbox]:checked+.switcher{background-color:var(--primary-color-subdued)}.ui-switch .switcher:before{content:"";display:block;width:20px;height:20px;background-color:var(--text-color);box-shadow:0 1px 3px #0009;border-radius:50%;position:absolute;top:-3px;left:0;margin-right:0;transition:all .15s}.ui-switch input[type=checkbox]:checked+.switcher:before{left:100%;margin-left:-20px;background-color:var(--primary-color)}.ui-switch h3{margin:0;font-size:14px;font-weight:500}.ui-switch p{margin:4px 0 0;font-size:12px;font-weight:300}.ui-text-input{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-text-input h3{margin:0;font-size:14px;font-weight:500}.ui-text-input p{margin:8px 0;font-size:12px;font-weight:300}.ui-text-input .input{position:relative;margin:8px 0;border:1px solid var(--border-color);border-radius:4px;background:transparent;padding:2px;overflow:hidden}.ui-text-input input{display:block;width:235px;font-size:14px;border:none;background:transparent;padding:6px;appearance:none;color:var(--text-color);opacity:.6;outline:none}.ui-text-input .input:hover{border-color:var(--primary-color-subdued)}.ui-text-input .input:focus-within{border-color:var(--primary-color)}.ui-text-input .input:focus-within input{opacity:1}.ui-text-input .input:after{content:"";position:absolute;top:5px;right:14px;width:8px;height:17px;border:2px solid rgba(51,181,51,1);border-top:none;border-left:none;transform:rotate(45deg);opacity:0;transition:opacity 80ms ease-in-out;pointer-events:none}.ui-text-input.saved .input:after{opacity:1}.ui-toast{position:fixed;bottom:8px;left:8px;right:8px;padding:6px 12px;font-size:14px;border-radius:4px;transform:translate3d(0,150%,0);opacity:0;transition:all var(--transition-time) ease-in-out;background-color:var(--primary-color-subdued);color:var(--text-color);pointer-events:none}.ui-toast.ui-toast-show{transform:translateZ(0);opacity:1;pointer-events:auto}[data-view=nav-home] .nav-home .section-content,[data-view=nav-cmp-list] .nav-cmp-list .section-content,[data-view=nav-cmp-detail] .nav-cmp-detail .section-content,[data-view=nav-cmp-input] .nav-cmp-input .section-content,[data-view=nav-settings] .nav-settings .section-content{transform:translateZ(0);pointer-events:auto}[data-view=nav-home] .nav-home header,[data-view=nav-home] .nav-home footer,[data-view=nav-cmp-list] .nav-cmp-list header,[data-view=nav-cmp-list] .nav-cmp-list footer,[data-view=nav-cmp-detail] .nav-cmp-detail header,[data-view=nav-cmp-detail] .nav-cmp-detail footer,[data-view=nav-cmp-input] .nav-cmp-input header,[data-view=nav-cmp-input] .nav-cmp-input footer,[data-view=nav-settings] .nav-settings header,[data-view=nav-settings] .nav-settings footer{opacity:1;pointer-events:auto}[data-view=nav-cmp-list] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-home .section-content,[data-view=nav-cmp-input] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-cmp-detail .section-content,[data-view=nav-settings] .nav-home .section-content{transform:translate3d(-105%,0,0)}.cmp-item .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.83 16.809C20.94 16.561 21 16.289 21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L7.988 3.99001M5.441 5.44801L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L18.544 18.56" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M14.532 10.538L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.27002 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 3L21 21" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');opacity:.3}.cmp-item.registered .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /></svg>');opacity:.8}.search-highlight{background-color:var(--primary-color-alpha);padding:0 2px;border-radius:2px;font-weight:500}.search-container{position:sticky;top:0;z-index:10;padding:12px 16px;background:var(--background-color);border-bottom:1px solid var(--border-color)}.search-input-wrapper{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:12px;color:var(--text-color-secondary);pointer-events:none}.component-search-input{width:100%;height:36px;padding:8px 36px;border:1px solid var(--border-color);border-radius:6px;background:var(--input-background);color:var(--text-color);font-size:14px;transition:border-color .2s,box-shadow .2s}.component-search-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 2px var(--primary-color-alpha)}.component-search-input::placeholder{color:var(--text-color-tertiary)}.clear-search-button{position:absolute;right:8px;padding:4px;color:var(--text-color-secondary);border:none;background:transparent;border-radius:4px;cursor:pointer;opacity:0;transition:opacity .2s,background-color .2s;display:flex;align-items:center;justify-content:center}.clear-search-button:hover{background-color:var(--hover-color)}.component-search-input:not(:placeholder-shown)+.clear-search-button{opacity:1}.no-results{padding:32px 16px;text-align:center;color:var(--text-color-secondary);font-size:14px}#cmp-detail{position:relative}.cmp-loading{pointer-events:none!important}.cmp-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.cmp-loading .cmp-loading-icon{opacity:.5}.cmp-cover{position:absolute;top:160px;left:0;width:100%;height:100vh;background:var(--background-color);transform:translateZ(0);pointer-events:none;display:none}[data-view=nav-cmp-detail] .cmp-cover{display:block;pointer-events:auto}.cmp-enabled .cmp-cover{transform:translate3d(0,105%,0);pointer-events:none}.section-ready .cmp-cover{transition:all var(--transition-time) ease-in-out}.cmp-detail-inputs-container{margin:8px 0 16px;padding:0}.cmp-detail-inputs-container h3{margin:0 0 6px;padding-left:16px;padding-right:8px;font-size:14px;font-weight:500;display:flex;justify-content:space-between;align-items:center}.cmp-detail-inputs-reload{font-weight:300;font-size:.9em;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cmp-detail-inputs-reload:hover{text-decoration:underline;color:var(--primary-color)}.cmp-detail-inputs-container .cmp-inputs-empty{padding:0;margin-top:12px;font-size:12px;font-weight:300;opacity:.5;font-style:italic}.cmp-detail-inputs-container .nav-list-item-icon{opacity:.8;background-size:20px 20px;background-position:4px center}.input-icon{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path></svg>')}.input-icon-array{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-6a2 2 0 1 1 4 0v6"></path> <path d="M10 13h4"></path></svg>')}.input-icon-boolean{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16h2a2 2 0 1 0 0 -4h-2h2a2 2 0 1 0 0 -4h-2v8z"></path></svg>')}.input-icon-number{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-8l4 8v-8"></path></svg>')}.input-icon-object{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M12 8a2 2 0 0 1 2 2v4a2 2 0 1 1 -4 0v-4a2 2 0 0 1 2 -2z"></path></svg>')}.input-icon-string{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 15a1 1 0 0 0 1 1h2a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1"></path></svg>')}.cmp-input-item-unregistered{opacity:.4}.cmp-input-item-unregistered .input-icon:after{content:"";position:absolute;top:11px;left:4px;width:20px;height:2px;background-color:#000;transform:rotate(-45deg)}.cmp-prop-info{border-bottom:1px solid var(--border-color)}.cmp-input-readonly{margin:16px 0;padding:0 16px;display:grid;grid-template-columns:50% 50%;gap:12px}.cmp-input-readonly h3{margin:0;font-size:14px;font-weight:500}.cmp-input-readonly span{margin-top:2px;font-size:12px;font-weight:300;opacity:.8}.cmp-input-detail{margin:16px 0}.cmp-input-detail a{color:var(--primary-color);text-decoration:none}.cmp-input-detail a:hover{text-decoration:underline}.input-cover{position:absolute;top:175px;left:0;width:100%;height:100%;background:var(--background-color);transform:translateZ(0);transition:all var(--transition-time) ease-in-out;pointer-events:auto}.input-enabled .input-cover{transform:translate3d(0,105%,0);pointer-events:none}.input-loading-icon{position:absolute;display:inline-block;top:190px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.input-loading .input-loading-icon{opacity:.5}:host{position:fixed;inset:0;z-index:2147483646;user-select:none;pointer-events:none;color:var(--text-color)}aside{position:absolute;top:0;right:0;width:var(--menu-width);height:100%;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;background:var(--background-color);box-shadow:#000000c9 5px 0 20px;overflow:hidden;z-index:1}:host(.show-builder-menu) aside{pointer-events:auto;transform:translateZ(0)}#hit{position:absolute;inset:0;display:none}:host(.show-builder-menu) #hit{display:block;pointer-events:auto}#version{position:absolute;bottom:6px;right:6px;font-size:8px;color:#9b9b9b}</style><div id="hit"></div> <aside data-view="nav-home"> <section class="nav-home"> <header> <svg class="builder-logo" viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> <div> <h2 class="builder-home-title">Builder Devtools</h2> <p><button id="go-to-builder">Go to Builder</button></p> </div> <button id="close" aria-label="Close Menu"> <svg viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M18 6l-12 12" /> <path d="M6 6l12 12" /> </svg> </button> </header> <div class="section-content"> <ul class="list"> <li> <button id="components-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Components</span> </button> </li> <li> <button id="settings-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M10.325 4.317C10.751 2.561 13.249 2.561 13.675 4.317C13.7389 4.5808 13.8642 4.82578 14.0407 5.032C14.2172 5.23822 14.4399 5.39985 14.6907 5.50375C14.9414 5.60764 15.2132 5.65085 15.4838 5.62987C15.7544 5.60889 16.0162 5.5243 16.248 5.383C17.791 4.443 19.558 6.209 18.618 7.753C18.4769 7.98466 18.3924 8.24634 18.3715 8.51677C18.3506 8.78721 18.3938 9.05877 18.4975 9.30938C18.6013 9.55999 18.7627 9.78258 18.9687 9.95905C19.1747 10.1355 19.4194 10.2609 19.683 10.325C21.439 10.751 21.439 13.249 19.683 13.675C19.4192 13.7389 19.1742 13.8642 18.968 14.0407C18.7618 14.2172 18.6001 14.4399 18.4963 14.6907C18.3924 14.9414 18.3491 15.2132 18.3701 15.4838C18.3911 15.7544 18.4757 16.0162 18.617 16.248C19.557 17.791 17.791 19.558 16.247 18.618C16.0153 18.4769 15.7537 18.3924 15.4832 18.3715C15.2128 18.3506 14.9412 18.3938 14.6906 18.4975C14.44 18.6013 14.2174 18.7627 14.0409 18.9687C13.8645 19.1747 13.7391 19.4194 13.675 19.683C13.249 21.439 10.751 21.439 10.325 19.683C10.2611 19.4192 10.1358 19.1742 9.95929 18.968C9.7828 18.7618 9.56011 18.6001 9.30935 18.4963C9.05859 18.3924 8.78683 18.3491 8.51621 18.3701C8.24559 18.3911 7.98375 18.4757 7.752 18.617C6.209 19.557 4.442 17.791 5.382 16.247C5.5231 16.0153 5.60755 15.7537 5.62848 15.4832C5.64942 15.2128 5.60624 14.9412 5.50247 14.6906C5.3987 14.44 5.23726 14.2174 5.03127 14.0409C4.82529 13.8645 4.58056 13.7391 4.317 13.675C2.561 13.249 2.561 10.751 4.317 10.325C4.5808 10.2611 4.82578 10.1358 5.032 9.95929C5.23822 9.7828 5.39985 9.56011 5.50375 9.30935C5.60764 9.05859 5.65085 8.78683 5.62987 8.51621C5.60889 8.24559 5.5243 7.98375 5.383 7.752C4.443 6.209 6.209 4.442 7.753 5.382C8.753 5.99 10.049 5.452 10.325 4.317Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Settings</span> </button> </li> <li> <button id="add-page-link"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M14 3v4a1 1 0 0 0 1 1h4" /> <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /> <path d="M12 11l0 6" /> <path d="M9 14l6 0" /> </svg> <span>Add Builder Page</span> </button> </li> <li> <button id="import-from-figma"> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-figma" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M15 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /> <path d="M6 3m0 3a3 3 0 0 1 3 -3h6a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3 -3z" /> <path d="M9 9a3 3 0 0 0 0 6h3m-3 0a3 3 0 1 0 3 3v-15" /> </svg> <span>Import From Figma</span> </button> </li> </ul> </div> <footer> <ul class="list"> <li> <a href="https://docs.google.com/forms/d/e/1FAIpQLSdqZcJpRtm_Ia5DTHP6SDY9Xa6LID3KiTjRWkjMzWyJRUtSHw/viewform" target="_blank" > <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M11.013 17.0114L10.013 18.0114L2.513 10.5834C2.0183 10.102 1.62864 9.52342 1.36854 8.88404C1.10845 8.24466 0.983558 7.55836 1.00173 6.86834C1.01991 6.17832 1.18076 5.49954 1.47415 4.87474C1.76755 4.24994 2.18713 3.69266 2.70648 3.23799C3.22583 2.78331 3.8337 2.4411 4.49181 2.23289C5.14991 2.02468 5.844 1.95499 6.53036 2.02821C7.21673 2.10143 7.8805 2.31596 8.47987 2.65831C9.07925 3.00066 9.60124 3.46341 10.013 4.01741C10.8086 2.95654 11.9931 2.2552 13.3059 2.06766C14.6186 1.88012 15.9521 2.22176 17.013 3.01741C18.0739 3.81306 18.7752 4.99755 18.9627 6.3103C19.1503 7.62305 18.8086 8.95654 18.013 10.0174" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> <path d="M18.2006 19.8175L16.0286 20.9555C15.9642 20.989 15.8917 21.004 15.8192 20.9987C15.7467 20.9934 15.6771 20.9681 15.6182 20.9256C15.5593 20.8831 15.5134 20.825 15.4855 20.7579C15.4577 20.6907 15.4491 20.6172 15.4606 20.5455L15.8756 18.1345L14.1186 16.4275C14.0662 16.3768 14.0291 16.3123 14.0115 16.2416C13.9939 16.1708 13.9966 16.0965 14.0192 16.0271C14.0418 15.9578 14.0835 15.8962 14.1394 15.8494C14.1954 15.8026 14.2634 15.7725 14.3356 15.7625L16.7636 15.4105L17.8496 13.2175C17.8821 13.1521 17.9322 13.0972 17.9942 13.0588C18.0562 13.0204 18.1277 13 18.2006 13C18.2736 13 18.3451 13.0204 18.4071 13.0588C18.4691 13.0972 18.5191 13.1521 18.5516 13.2175L19.6376 15.4105L22.0656 15.7625C22.1377 15.7728 22.2054 15.8031 22.2611 15.85C22.3168 15.8968 22.3583 15.9583 22.3809 16.0275C22.4034 16.0967 22.4062 16.1708 22.3888 16.2415C22.3715 16.3122 22.3347 16.3766 22.2826 16.4275L20.5256 18.1345L20.9396 20.5445C20.9521 20.6163 20.9441 20.6902 20.9166 20.7578C20.8891 20.8254 20.8433 20.8839 20.7842 20.9267C20.7252 20.9695 20.6553 20.9949 20.5825 21C20.5098 21.005 20.4371 20.9896 20.3726 20.9555L18.2006 19.8175Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Give Feedback</span> </a> </li> </ul> <div id="version"></div> </footer> </section> <section class="nav-cmp-list"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div class="search-container"> <div class="search-input-wrapper"> <svg class="search-icon" viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M15.5 15.5L20 20M10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17Z" /> </svg> <input type="text" id="component-search" class="component-search-input" placeholder="Search components..." autocomplete="off" spellcheck="false" /> <button id="clear-search" class="clear-search-button" type="button" aria-label="Clear search" > <svg viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M6 6l12 12M6 18L18 6" /> </svg> </button> </div> </div> <div> <h2>Custom Components</h2> <p> <button id="open-builder-registry"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-list" class="cmp-list nav-list"></div> </div> <div class="nav-loading-icon spinner"></div> <footer> <p class="info"> Expand on Builder's selection of built-in blocks by <a target="_blank" href="https://www.builder.io/c/docs/custom-components-intro" >registering components</a > from your codebase. This way, teammates can drag and drop your components within Builder's Visual Editor just like any other block. </p> </footer> </section> <section class="nav-cmp-detail"> <header> <button class="back-button" data-back="nav-cmp-list"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-detail-title"></h2> <p> <button id="cmp-open-source"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-error"></div> <label class="ui-switch"> <div> <h3>Register Component</h3> <p> Registers this component so it can be used within Builder Visual CMS </p> </div> <input type="checkbox" role="switch" id="cmp-register" /> <span class="switcher"></span> </label> <div id="cmp-detail"> <label class="ui-text-input"> <h3>Component Name</h3> <div class="input"> <input type="text" id="cmp-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="2" maxlength="30" required placeholder="e.g. My Counter" /> </div> <p> Unique name to identify this custom component within Builder. Press ESC to cancel </p> </label> <div class="cmp-detail-inputs-container"> <h3> <span>Builder Inputs (Props)</span> <button class="cmp-detail-inputs-reload" id="btn-inputs-reload"> Reload </button> </h3> <div id="cmp-detail-inputs"></div> </div> </div> </div> <div class="cmp-cover"></div> <div class="cmp-loading-icon spinner"></div> </section> <section class="nav-cmp-input"> <header> <button class="back-button" data-back="nav-cmp-detail"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-input-title"></h2> <p> <button id="input-open-source"></button> </p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable Input</h3> <p>Add this component prop as a Builder input</p> </div> <input type="checkbox" role="switch" id="input-register" /> <span class="switcher"></span> </label> <div class="cmp-prop-info"> <div class="cmp-input-readonly"> <h3>Prop Name</h3> <span id="cmp-prop-name"></span> </div> <div class="cmp-input-readonly"> <h3>Prop Type</h3> <span id="cmp-prop-type"></span> </div> </div> <div class="cmp-input-detail"> <label class="ui-text-input"> <h3>Builder Input Name</h3> <div class="input"> <input type="text" id="input-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="1" maxlength="30" required placeholder="e.g. Text" /> </div> <p> Friendly name to identify this component prop as a Builder input. Press ESC to cancel </p> </label> <label class="ui-select"> <h3>Builder Input Type</h3> <div class="select"> <select id="input-type"></select> </div> <p> Correlate to what editing UI is appropriate for this Builder input. <a href="https://www.builder.io/c/docs/custom-components-input-types" target="_blank" >Read more about input types.</a > </p> </label> </div> <div class="input-cover"></div> <div class="input-loading-icon spinner"></div> </div> </section> <section class="nav-settings"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2>Settings</h2> <p>Configure Builder's Devtools</p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable edit button in UI</h3> <p>Enables the edit button so you can edit content in Builder</p> </div> <input type="checkbox" role="switch" id="enable-edit" /> <span class="switcher"></span> </label> </div> </section> <div class="ui-toast" id="toast"></div> </aside> <button class="menu-toggle" aria-label="Toggle Builder Devtools"> <div> <div class="highlight-bg"></div> <svg viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> </div> </button>\`,ai(e),ui(e),oi(e),ri(e),ti(e),ci(e),this.setAttribute("aria-hidden","true"),e.getElementById("version").textContent="v1.17.21"}highlightOpener(){let e=this.shadowRoot.querySelector(".menu-toggle");e.classList.add("menu-toggle-highlight"),e.classList.add("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight")},20)},20)}};var lo=\`<style>*,*:before,*:after{box-sizing:border-box}html,body,:host{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:2147483646;margin:0;padding:0;line-height:1.8;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";background-color:#252525;color:#fff;transition:opacity .25s ease-in-out}:host([aria-hidden="true"]){opacity:0;pointer-events:none}main{position:absolute;top:0;left:0;width:100%;height:100vh}h1{margin-top:0;font-size:24px;font-weight:300;line-height:1.4}p{margin:20px 0;font-weight:300}button{cursor:pointer}aside{position:absolute;top:0;left:0;width:350px;height:100vh;padding:60px 0 0 50px;background-color:#121212}aside ul{margin:30px 0 0;padding:0;list-style:none}aside li{position:relative;margin:0;padding:20px 10px;font-weight:300}aside li.highlight{color:#48a1ff}aside li.active{font-weight:700}aside li .circle{position:absolute;top:20px;left:10px;width:24px;height:24px;border:3px solid white;border-radius:50%;font-size:14px}aside li.highlight .circle{border-color:#48a1ff}aside li.active .circle:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background-color:#48a1ff}aside li.completed .circle{background-color:#48a1ff}aside li.completed .circle:after{content:"";position:absolute;top:2px;left:6px;width:6px;height:13px;border:3px solid black;border-top:none;border-left:none;transform:rotate(45deg)}aside li .line{position:absolute;top:44px;left:21px;width:3px;height:45px;background-color:#fff}aside li.completed .line{background-color:#48a1ff}aside li span{display:block;margin-left:44px}nav{margin-top:30px}section{position:absolute;top:135px;left:350px;padding:0 80px 0 140px;transition:opacity .15s ease-in-out}section[aria-hidden=true]{pointer-events:none;opacity:0}section h1,section p{min-width:300px;max-width:600px}.button{position:relative;display:inline-block;color:#fff;background-color:#48a1ff;border-radius:4px;text-decoration:none;padding:10px 40px 10px 20px;white-space:nowrap}.button:hover{background-color:#48a1ffd9}#button-icon{position:absolute;top:1px;right:5px;bottom:0;width:30px;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="white" stroke-linecap="square" stroke-miterlimit="10" stroke-width="48" d="M184 112l144 144-144 144"/></svg>');background-repeat:no-repeat;background-position:center;background-size:24px 24px}.button[aria-disabled=true]{opacity:.9;background-color:#ffffff4d;pointer-events:none;padding-right:60px}.button[aria-disabled=true] #button-icon{top:21px;right:29px;width:8px;height:8px;border-radius:4px;background:#fff;color:#fff;animation:dot-flashing .5s infinite linear alternate;animation-delay:.25s}.button[aria-disabled=true] #button-icon:before,.button[aria-disabled=true] #button-icon:after{content:"";display:inline-block;position:absolute;top:0}.button[aria-disabled=true] #button-icon:before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:0s}.button[aria-disabled=true] #button-icon:after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:.5s}@keyframes dot-flashing{0%{background-color:#fff}50%,to{background-color:#ffffff4d}}.logo{margin-left:9px;background:url('data:image/svg+xml,<svg viewBox="0 0 150 32" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(%23clip0_4_304)"> <path d="M27.9858 8.99927C27.9872 10.3415 27.688 11.667 27.1101 12.8783C26.5321 14.0896 25.6902 15.156 24.6462 15.9989V15.9989L0.634502 2.36355C0.542657 2.31119 0.457444 2.24796 0.380701 2.17523C0.260289 2.05715 0.164605 1.91624 0.0992389 1.76075C0.0338732 1.60525 0.000136546 1.43828 0 1.26959C0 0.932873 0.133698 0.609948 0.371683 0.371854C0.609667 0.13376 0.932443 0 1.269 0L18.9906 0C21.3763 0 23.6642 0.948135 25.3512 2.63583C27.0381 4.32352 27.9858 6.61252 27.9858 8.99927V8.99927Z" fill="%2318B4F4" /> <path d="M27.9858 22.9986C27.9861 24.1806 27.7536 25.351 27.3017 26.4431C26.8498 27.5352 26.1873 28.5275 25.352 29.3634C24.5167 30.1993 23.5249 30.8624 22.4335 31.3147C21.342 31.7671 20.1721 32 18.9907 32H1.26906C1.01802 31.9973 0.77343 31.9202 0.566221 31.7784C0.359012 31.6366 0.198499 31.4364 0.104989 31.2034C0.0114791 30.9703 -0.0108254 30.7147 0.0408974 30.4689C0.0926201 30.2231 0.216046 29.9982 0.395559 29.8226V29.8226C0.467112 29.7508 0.547407 29.6882 0.634555 29.6364L10.0844 24.2703L24.6441 16.001C25.688 16.8438 26.53 17.9097 27.1083 19.1206C27.6866 20.3315 27.9864 21.6566 27.9858 22.9986V22.9986Z" fill="%23FD6B3C" /> <path d="M24.6461 15.9989L10.0843 24.2703L0.634458 29.6365C0.54372 29.6868 0.459841 29.7487 0.384888 29.8205C3.98804 26.1233 6.00266 21.1627 5.99812 15.9989C6.0049 10.8346 3.99085 5.87268 0.387003 2.17523C0.463746 2.24796 0.548959 2.31119 0.640803 2.36355L24.6461 15.9989Z" fill="%23A97FF2" /> <path d="M47.6659 11.7352C51.8177 11.7352 54.1632 15.0531 54.1632 19.0714C54.1632 23.0896 51.8177 26.3821 47.6659 26.3821C45.5086 26.3821 43.8589 25.5188 42.9473 24.0545L42.5709 26.052H39.9736V6.77115H43.1884V13.8914C43.971 12.6959 45.5086 11.7352 47.6659 11.7352ZM47.0187 23.5488C49.4446 23.5488 50.9547 21.5809 50.9547 19.0714C50.9547 16.5089 49.4446 14.5664 47.0187 14.5664C44.5928 14.5664 43.0806 16.5047 43.0806 19.0714C43.0806 21.583 44.5653 23.5488 47.0187 23.5488V23.5488Z" fill="white" /> <path d="M65.4595 20.2859V12.0611H68.668V20.123C68.668 23.7202 67.0246 26.3821 62.4943 26.3821C57.9639 26.3821 56.3206 23.7117 56.3206 20.123V12.0611H59.529V20.2859C59.529 22.4696 60.5527 23.5488 62.49 23.5488C64.4274 23.5488 65.4595 22.4696 65.4595 20.2859Z" fill="white" /> <path d="M71.2355 7.74451C71.2247 7.46284 71.2724 7.18199 71.3755 6.91968C71.4787 6.65737 71.6351 6.41929 71.8348 6.22047C72.0345 6.02165 72.2732 5.8664 72.5359 5.76452C72.7986 5.66264 73.0796 5.61633 73.3611 5.62853C74.5793 5.62853 75.4571 6.50666 75.4571 7.75509C75.4571 9.00352 74.5793 9.8224 73.3611 9.8224C72.1428 9.8224 71.2355 8.9612 71.2355 7.74451Z" fill="white" /> <path d="M128.476 7.74451C128.465 7.46376 128.513 7.18383 128.615 6.92227C128.718 6.66071 128.873 6.42315 129.072 6.22449C129.27 6.02583 129.508 5.87035 129.769 5.7678C130.031 5.66524 130.31 5.61783 130.591 5.62852C131.809 5.62852 132.687 6.50666 132.687 7.75509C132.687 9.00352 131.809 9.8224 130.591 9.8224C129.373 9.8224 128.476 8.9612 128.476 7.74451Z" fill="white" /> <path d="M122.302 24.1031C122.291 23.8223 122.339 23.5422 122.441 23.2805C122.543 23.0188 122.699 22.7811 122.897 22.5824C123.096 22.3837 123.334 22.2282 123.595 22.1258C123.857 22.0233 124.137 21.9761 124.417 21.9872C125.636 21.9872 126.513 22.8653 126.513 24.1031C126.513 25.341 125.636 26.1726 124.417 26.1726C123.199 26.1726 122.302 25.3219 122.302 24.1031Z" fill="white" /> <path d="M74.9516 12.059H71.7432V26.0583H74.9516V12.059Z" fill="white" /> <path d="M78.16 26.0583V6.77115H81.3685V26.0626L78.16 26.0583Z" fill="white" /> <path d="M94.6063 6.77115H97.8148V26.0626H95.2239L94.8474 24.0651C93.9591 25.523 92.3094 26.3927 90.131 26.3927C86.0046 26.3927 83.6591 23.0748 83.6591 19.0819C83.6591 15.0891 86.0046 11.7458 90.131 11.7458C92.3137 11.7458 93.8238 12.7149 94.6063 13.902V6.77115ZM90.7993 14.5707C88.3734 14.5707 86.8633 16.5131 86.8633 19.0756C86.8633 21.5851 88.3734 23.553 90.7993 23.553C93.2252 23.553 94.7354 21.5851 94.7354 19.0756C94.7396 16.5047 93.257 14.5664 90.8036 14.5664L90.7993 14.5707Z" fill="white" /> <path d="M113.479 22.2284C112.482 24.7359 110.162 26.3821 107.117 26.3821C102.887 26.3821 100.137 23.225 100.137 19.0439C100.137 14.9706 102.942 11.7353 107.093 11.7353C111.245 11.7353 113.969 14.8902 113.969 18.991C113.982 19.3255 113.953 19.6604 113.883 19.9876H103.288C103.53 22.2009 104.959 23.6292 107.197 23.6292C108.735 23.6292 110.001 22.8738 110.594 21.473L113.479 22.2284ZM103.341 17.6156H110.784C110.513 15.6731 109.166 14.3506 107.089 14.3506C105.012 14.3506 103.665 15.7006 103.341 17.6156V17.6156Z" fill="white" /> <path d="M123.779 14.9452C123.538 14.9117 123.295 14.8933 123.051 14.8902C120.786 14.8902 119.439 16.0772 119.439 18.7751V26.0583H116.23V12.0611H118.821L119.195 14.0014C119.707 13.1127 120.887 11.9257 123.322 11.9257C123.455 11.9257 123.779 11.9532 123.779 11.9532V14.9452Z" fill="white" /> <path d="M132.192 12.059H128.984V26.0583H132.192V12.059Z" fill="white" /> <path d="M134.483 19.0714C134.483 15.1335 137.287 11.7353 141.735 11.7353C146.183 11.7353 149.015 15.1335 149.015 19.0714C149.015 23.0092 146.213 26.3821 141.735 26.3821C137.258 26.3821 134.483 23.0092 134.483 19.0714ZM141.735 23.5488C144.083 23.5488 145.806 21.7692 145.806 19.0714C145.806 16.3735 144.083 14.5664 141.735 14.5664C139.387 14.5664 137.687 16.346 137.687 19.0714C137.687 21.7968 139.417 23.5488 141.735 23.5488V23.5488Z" fill="white" /> </g> <defs> <clipPath id="clip0_4_304"> <rect width="149.015" height="32" fill="white" /> </clipPath> </defs> </svg>');background-repeat:no-repeat;width:150px;height:32px}@media (max-width: 840px){aside{width:250px;padding:60px 0 0 20px}section{left:250px;padding:0 80px}}@media (max-width: 590px){aside{width:230px;padding:60px 0 0 10px}section{left:230px;padding:0 40px}}#modified-files-message a{color:#cbcbcb;font-weight:300;text-decoration:underline}#modified-files-message a:hover{color:#fff;text-decoration:none}#restart-warning{border-radius:4px;padding:8px 16px;border:1px solid #fd6b3c;background:#fd6b3c1a}#react-router-steps{margin:0 0 5px;padding:0 20px}#need-help{color:#48a1ff;text-decoration:none}#router-message{border-radius:4px;padding:16px;border:1px solid #48a1ff}#router-finish-button{margin-top:12px}#router-checkbox-div{display:flex;align-items:center}#router-checkbox{margin-right:10px;width:15px;height:15px}#success-title{display:flex;align-items:center;gap:10px}#success-title .check-icon{display:inline-block;width:24px;height:24px;border:2px solid #28a745;border-radius:50%;position:relative}#success-title .check-icon:before{content:"";position:absolute;top:50%;left:50%;width:6px;height:12px;border:solid #28a745;border-width:0 2px 2px 0;transform:translate(-50%,-60%) rotate(45deg)}
24
+ \`,t.appendChild(e),setTimeout(()=>{e.classList.add("menu-toggle-tooltip-show"),e.addEventListener("click",()=>{e.classList.remove("menu-toggle-tooltip-show")})},1e3)};function ui(t){t.getElementById("go-to-builder").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(Nr(),"builder")}),t.getElementById("components-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();let u=t.querySelector(".nav-cmp-list .section-content");u.scrollTop=0,oe(t,"nav-cmp-list"),si(t)}),t.getElementById("settings-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),oe(t,"nav-settings")}),t.getElementById("add-page-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(je(),"builder")}),t.getElementById("import-from-figma").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open("https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more")})}function ci(t){let e=t.getElementById("enable-edit");e.addEventListener("change",r=>{r.stopPropagation(),Ft(e.checked)}),e.checked=it(),Ft(e.checked)}var At=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=\`<style>*,*:before,*:after{box-sizing:border-box}:host{--background-color: rgba(40, 40, 40, 1);--primary-color: rgba(72, 161, 255, 1);--primary-color-subdued: rgb(72, 161, 255, .6);--primary-color-highlight: rgb(126, 188, 255);--primary-contrast-color: white;--edit-color: #1d74e2;--edit-color-highlight: #1c6bd1;--edit-color-alpha: rgb(72, 161, 255, .15);--error-color: #ff2b55;--text-color: white;--text-color-highlight: white;--border-color: #454545;--button-background-color-hover: rgba(255, 255, 255, .1);--menu-width: 320px;--transition-time: .15s;--font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-family:var(--font-family);line-height:1.6}button{cursor:pointer;color:var(--text-color);-webkit-tap-highlight-color:transparent}input,select,button{font-family:var(--font-family)}.menu-toggle{position:absolute;right:0;bottom:0;pointer-events:auto;padding:8px;background:transparent;border:none;appearance:none}.menu-toggle div{position:relative;width:64px;height:64px;pointer-events:none;border-radius:50%;background:#000;border:1px solid white;box-shadow:#00000054 0 0 8px}.menu-toggle:hover div{background-color:var(--background-color);border:1px solid rgb(220,220,220)}.menu-toggle svg{position:absolute;top:15px;left:15px;width:33px;height:32px}div.highlight-bg{position:absolute;top:-1px;left:-1px;background-color:#1a1a1a;pointer-events:none;transition:all .4s ease-out;opacity:0}.menu-toggle-highlight-no-transition div.highlight-bg{transition:none}.menu-toggle-highlight div.highlight-bg{opacity:1}.menu-toggle-tooltip{position:absolute;bottom:0;right:0;width:382px;height:72px;padding:0;text-align:left;appearance:none;background-color:transparent;border:none;pointer-events:none;transform:translate3d(320px,0,0);opacity:0;transition:all .15s ease-in-out;color:#fff}.menu-toggle-tooltip.menu-toggle-tooltip-show{pointer-events:auto;opacity:1;transform:translateZ(0)}.menu-toggle-tooltip-content{position:absolute;inset:0 95px 10px 0;padding:8px 12px;background-color:var(--primary-color);box-shadow:#00000054 0 0 20px;border-radius:2px}.menu-toggle-tooltip-content:before{content:"";position:absolute;bottom:15px;right:-6px;width:30px;height:30px;background-color:var(--primary-color);transform:rotate(45deg)}.menu-toggle-tooltip:hover .menu-toggle-tooltip-content,.menu-toggle-tooltip:hover .menu-toggle-tooltip-content:before{background-color:var(--primary-color-highlight)}.menu-toggle-tooltip-content h3{margin:0;font-size:16px}.menu-toggle-tooltip-content p{margin:0;font-size:12px}section{position:absolute;display:grid;grid-template-rows:64px auto 64px;top:0;left:0;width:100%;height:100%;padding:0;pointer-events:none}.section-content{margin:0;padding:0 0 10px;font-weight:300;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;overflow-y:auto}.section-content .error{color:var(--error-color);font-weight:700}section a{text-decoration:none;color:var(--text-color)}section h3,section p{margin-left:16px;margin-right:16px}.info{font-size:12px}ul.list{list-style:none;padding:0;margin:0}ul.list li{display:block;padding:0;margin:0}ul.list a,ul.list button{display:grid;grid-template-columns:24px auto;grid-gap:16px;padding:12px;margin:8px 0;border:none;background:transparent;appearance:none;width:100%;font-weight:300;text-align:left;text-decoration:none;color:var(--text-color)}ul.list a:hover,ul.list button:hover{text-decoration:none;color:var(--text-color);background-color:var(--button-background-color-hover)}ul.list a span,ul.list button span{display:block;font-size:16px;font-weight:500;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header{position:relative;display:grid;grid-template-columns:44px 1fr;gap:8px;padding-left:8px;border-bottom:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}header>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-home header>div{margin-right:56px}header h2{margin:7px 0 0;font-size:18px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p{margin:2px 0 0;font-size:12px;font-weight:300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button{display:block;margin:0;padding:0;width:100%;font-size:12px;font-weight:300;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button:hover{text-decoration:underline;color:var(--primary-color)}.builder-logo{margin:12px 0 0 8px}#close{display:block;position:absolute;appearance:none;background:transparent;border:none;border-radius:50%;margin:0;padding:0;right:4px;top:8px;width:48px;height:48px;z-index:1;opacity:.7}#close:hover{opacity:1;background-color:var(--button-background-color-hover)}#close svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}.back-button{position:relative;display:block;margin:7px 0 0 -2px;width:48px;height:48px;background:transparent;border:none;appearance:none;border-radius:50%}.back-button:hover{background-color:var(--button-background-color-hover)}.back-button svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}footer{border-top:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}section.nav-cmp-list{grid-template-rows:64px auto 120px}footer a{text-decoration:underline;color:var(--primary-color)}footer a:hover{color:var(--primary-color);text-decoration:none}.nav-list{padding:2px 0}.nav-loading{pointer-events:none}.nav-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.nav-loading .nav-loading-icon{opacity:.5}.nav-list h4{margin:8px 8px 8px 10px;font-size:14px;font-weight:600}.nav-list .nav-list-item+h4{margin-top:30px}.nav-list-item{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:relative;margin:2px 0;padding:8px 28px 8px 46px;width:100%;font-size:14px;font-weight:300;text-align:left;border:none;background:transparent;appearance:none}.nav-list-item:hover{background-color:var(--button-background-color-hover)}.nav-list-item-icon{position:absolute;top:4px;left:10px;width:24px;height:24px;object-fit:contain;filter:invert(100%);background-size:24px 24px;background-repeat:no-repeat;background-position:center center}.nav-list-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.nav-list-item:after{display:block;position:absolute;content:"";background-image:url('data:image/svg+xml,<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L1 13" stroke="%23F2F2F2" stroke-opacity="0.5" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-repeat:no-repeat;background-position:12px 9px;top:0;right:0;width:32px;height:32px;pointer-events:none}.nav-list-item-note{opacity:0;font-size:12px;padding-top:1px;text-align:right}.nav-list-item:hover .nav-list-item-note{opacity:.5}.ui-select{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-select h3{margin:0;font-size:14px;font-weight:500}.ui-select p{margin:8px 0;font-size:12px;font-weight:300}.ui-select .select{position:relative;margin:8px 0;border-radius:4px;padding:0;line-height:1.1;overflow:hidden;border:1px solid var(--border-color)}.ui-select select{appearance:none;background-color:transparent;border:none;outline:none;padding:8px 32px 8px 8px;margin:0;width:100%;font-size:14px;cursor:pointer;text-overflow:ellipsis;opacity:.6;color:var(--text-color)}.ui-select .select:after{content:"";top:6px;right:5px;width:24px;height:24px;position:absolute;background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="%23F2F2F2" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>');background-repeat:no-repeat;background-position:center;pointer-events:none;opacity:.6}.ui-select .select:hover{border-color:var(--primary-color-subdued)}.ui-text-input .select:focus-within{border-color:var(--primary-color)}.ui-text-input .select:focus-within select{opacity:1}.spinner:after{content:" ";display:block;width:32px;height:32px;margin:0 auto;pointer-events:auto;border-radius:50%;border:3px solid var(--text-color);border-color:var(--text-color) transparent var(--text-color) transparent;animation:spinner .75s linear infinite}@keyframes spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ui-switch{display:grid;grid-template-columns:auto 48px;grid-gap:20px;margin:8px 0 16px;padding:8px 0 8px 16px;cursor:pointer}.ui-switch>*{pointer-events:none}.ui-switch input{display:none;visibility:hidden}.ui-switch .switcher{display:inline-block;border-radius:100px;width:35px;height:14px;background-color:#ccc;position:relative;top:6px;vertical-align:middle;cursor:pointer}.ui-switch input[type=checkbox]:checked+.switcher{background-color:var(--primary-color-subdued)}.ui-switch .switcher:before{content:"";display:block;width:20px;height:20px;background-color:var(--text-color);box-shadow:0 1px 3px #0009;border-radius:50%;position:absolute;top:-3px;left:0;margin-right:0;transition:all .15s}.ui-switch input[type=checkbox]:checked+.switcher:before{left:100%;margin-left:-20px;background-color:var(--primary-color)}.ui-switch h3{margin:0;font-size:14px;font-weight:500}.ui-switch p{margin:4px 0 0;font-size:12px;font-weight:300}.ui-text-input{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-text-input h3{margin:0;font-size:14px;font-weight:500}.ui-text-input p{margin:8px 0;font-size:12px;font-weight:300}.ui-text-input .input{position:relative;margin:8px 0;border:1px solid var(--border-color);border-radius:4px;background:transparent;padding:2px;overflow:hidden}.ui-text-input input{display:block;width:235px;font-size:14px;border:none;background:transparent;padding:6px;appearance:none;color:var(--text-color);opacity:.6;outline:none}.ui-text-input .input:hover{border-color:var(--primary-color-subdued)}.ui-text-input .input:focus-within{border-color:var(--primary-color)}.ui-text-input .input:focus-within input{opacity:1}.ui-text-input .input:after{content:"";position:absolute;top:5px;right:14px;width:8px;height:17px;border:2px solid rgba(51,181,51,1);border-top:none;border-left:none;transform:rotate(45deg);opacity:0;transition:opacity 80ms ease-in-out;pointer-events:none}.ui-text-input.saved .input:after{opacity:1}.ui-toast{position:fixed;bottom:8px;left:8px;right:8px;padding:6px 12px;font-size:14px;border-radius:4px;transform:translate3d(0,150%,0);opacity:0;transition:all var(--transition-time) ease-in-out;background-color:var(--primary-color-subdued);color:var(--text-color);pointer-events:none}.ui-toast.ui-toast-show{transform:translateZ(0);opacity:1;pointer-events:auto}[data-view=nav-home] .nav-home .section-content,[data-view=nav-cmp-list] .nav-cmp-list .section-content,[data-view=nav-cmp-detail] .nav-cmp-detail .section-content,[data-view=nav-cmp-input] .nav-cmp-input .section-content,[data-view=nav-settings] .nav-settings .section-content{transform:translateZ(0);pointer-events:auto}[data-view=nav-home] .nav-home header,[data-view=nav-home] .nav-home footer,[data-view=nav-cmp-list] .nav-cmp-list header,[data-view=nav-cmp-list] .nav-cmp-list footer,[data-view=nav-cmp-detail] .nav-cmp-detail header,[data-view=nav-cmp-detail] .nav-cmp-detail footer,[data-view=nav-cmp-input] .nav-cmp-input header,[data-view=nav-cmp-input] .nav-cmp-input footer,[data-view=nav-settings] .nav-settings header,[data-view=nav-settings] .nav-settings footer{opacity:1;pointer-events:auto}[data-view=nav-cmp-list] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-home .section-content,[data-view=nav-cmp-input] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-cmp-detail .section-content,[data-view=nav-settings] .nav-home .section-content{transform:translate3d(-105%,0,0)}.cmp-item .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.83 16.809C20.94 16.561 21 16.289 21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L7.988 3.99001M5.441 5.44801L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L18.544 18.56" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M14.532 10.538L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.27002 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 3L21 21" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');opacity:.3}.cmp-item.registered .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /></svg>');opacity:.8}.search-highlight{background-color:var(--primary-color-alpha);padding:0 2px;border-radius:2px;font-weight:500}.search-container{position:sticky;top:0;z-index:10;padding:12px 16px;background:var(--background-color);border-bottom:1px solid var(--border-color)}.search-input-wrapper{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:12px;color:var(--text-color-secondary);pointer-events:none}.component-search-input{width:100%;height:36px;padding:8px 36px;border:1px solid var(--border-color);border-radius:6px;background:var(--input-background);color:var(--text-color);font-size:14px;transition:border-color .2s,box-shadow .2s}.component-search-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 2px var(--primary-color-alpha)}.component-search-input::placeholder{color:var(--text-color-tertiary)}.clear-search-button{position:absolute;right:8px;padding:4px;color:var(--text-color-secondary);border:none;background:transparent;border-radius:4px;cursor:pointer;opacity:0;transition:opacity .2s,background-color .2s;display:flex;align-items:center;justify-content:center}.clear-search-button:hover{background-color:var(--hover-color)}.component-search-input:not(:placeholder-shown)+.clear-search-button{opacity:1}.no-results{padding:32px 16px;text-align:center;color:var(--text-color-secondary);font-size:14px}#cmp-detail{position:relative}.cmp-loading{pointer-events:none!important}.cmp-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.cmp-loading .cmp-loading-icon{opacity:.5}.cmp-cover{position:absolute;top:160px;left:0;width:100%;height:100vh;background:var(--background-color);transform:translateZ(0);pointer-events:none;display:none}[data-view=nav-cmp-detail] .cmp-cover{display:block;pointer-events:auto}.cmp-enabled .cmp-cover{transform:translate3d(0,105%,0);pointer-events:none}.section-ready .cmp-cover{transition:all var(--transition-time) ease-in-out}.cmp-detail-inputs-container{margin:8px 0 16px;padding:0}.cmp-detail-inputs-container h3{margin:0 0 6px;padding-left:16px;padding-right:8px;font-size:14px;font-weight:500;display:flex;justify-content:space-between;align-items:center}.cmp-detail-inputs-reload{font-weight:300;font-size:.9em;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cmp-detail-inputs-reload:hover{text-decoration:underline;color:var(--primary-color)}.cmp-detail-inputs-container .cmp-inputs-empty{padding:0;margin-top:12px;font-size:12px;font-weight:300;opacity:.5;font-style:italic}.cmp-detail-inputs-container .nav-list-item-icon{opacity:.8;background-size:20px 20px;background-position:4px center}.input-icon{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path></svg>')}.input-icon-array{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-6a2 2 0 1 1 4 0v6"></path> <path d="M10 13h4"></path></svg>')}.input-icon-boolean{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16h2a2 2 0 1 0 0 -4h-2h2a2 2 0 1 0 0 -4h-2v8z"></path></svg>')}.input-icon-number{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-8l4 8v-8"></path></svg>')}.input-icon-object{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M12 8a2 2 0 0 1 2 2v4a2 2 0 1 1 -4 0v-4a2 2 0 0 1 2 -2z"></path></svg>')}.input-icon-string{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 15a1 1 0 0 0 1 1h2a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1"></path></svg>')}.cmp-input-item-unregistered{opacity:.4}.cmp-input-item-unregistered .input-icon:after{content:"";position:absolute;top:11px;left:4px;width:20px;height:2px;background-color:#000;transform:rotate(-45deg)}.cmp-prop-info{border-bottom:1px solid var(--border-color)}.cmp-input-readonly{margin:16px 0;padding:0 16px;display:grid;grid-template-columns:50% 50%;gap:12px}.cmp-input-readonly h3{margin:0;font-size:14px;font-weight:500}.cmp-input-readonly span{margin-top:2px;font-size:12px;font-weight:300;opacity:.8}.cmp-input-detail{margin:16px 0}.cmp-input-detail a{color:var(--primary-color);text-decoration:none}.cmp-input-detail a:hover{text-decoration:underline}.input-cover{position:absolute;top:175px;left:0;width:100%;height:100%;background:var(--background-color);transform:translateZ(0);transition:all var(--transition-time) ease-in-out;pointer-events:auto}.input-enabled .input-cover{transform:translate3d(0,105%,0);pointer-events:none}.input-loading-icon{position:absolute;display:inline-block;top:190px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.input-loading .input-loading-icon{opacity:.5}:host{position:fixed;inset:0;z-index:2147483646;user-select:none;pointer-events:none;color:var(--text-color)}aside{position:absolute;top:0;right:0;width:var(--menu-width);height:100%;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;background:var(--background-color);box-shadow:#000000c9 5px 0 20px;overflow:hidden;z-index:1}:host(.show-builder-menu) aside{pointer-events:auto;transform:translateZ(0)}#hit{position:absolute;inset:0;display:none}:host(.show-builder-menu) #hit{display:block;pointer-events:auto}#version{position:absolute;bottom:6px;right:6px;font-size:8px;color:#9b9b9b}</style><div id="hit"></div> <aside data-view="nav-home"> <section class="nav-home"> <header> <svg class="builder-logo" viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> <div> <h2 class="builder-home-title">Builder Devtools</h2> <p><button id="go-to-builder">Go to Builder</button></p> </div> <button id="close" aria-label="Close Menu"> <svg viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M18 6l-12 12" /> <path d="M6 6l12 12" /> </svg> </button> </header> <div class="section-content"> <ul class="list"> <li> <button id="components-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Components</span> </button> </li> <li> <button id="settings-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M10.325 4.317C10.751 2.561 13.249 2.561 13.675 4.317C13.7389 4.5808 13.8642 4.82578 14.0407 5.032C14.2172 5.23822 14.4399 5.39985 14.6907 5.50375C14.9414 5.60764 15.2132 5.65085 15.4838 5.62987C15.7544 5.60889 16.0162 5.5243 16.248 5.383C17.791 4.443 19.558 6.209 18.618 7.753C18.4769 7.98466 18.3924 8.24634 18.3715 8.51677C18.3506 8.78721 18.3938 9.05877 18.4975 9.30938C18.6013 9.55999 18.7627 9.78258 18.9687 9.95905C19.1747 10.1355 19.4194 10.2609 19.683 10.325C21.439 10.751 21.439 13.249 19.683 13.675C19.4192 13.7389 19.1742 13.8642 18.968 14.0407C18.7618 14.2172 18.6001 14.4399 18.4963 14.6907C18.3924 14.9414 18.3491 15.2132 18.3701 15.4838C18.3911 15.7544 18.4757 16.0162 18.617 16.248C19.557 17.791 17.791 19.558 16.247 18.618C16.0153 18.4769 15.7537 18.3924 15.4832 18.3715C15.2128 18.3506 14.9412 18.3938 14.6906 18.4975C14.44 18.6013 14.2174 18.7627 14.0409 18.9687C13.8645 19.1747 13.7391 19.4194 13.675 19.683C13.249 21.439 10.751 21.439 10.325 19.683C10.2611 19.4192 10.1358 19.1742 9.95929 18.968C9.7828 18.7618 9.56011 18.6001 9.30935 18.4963C9.05859 18.3924 8.78683 18.3491 8.51621 18.3701C8.24559 18.3911 7.98375 18.4757 7.752 18.617C6.209 19.557 4.442 17.791 5.382 16.247C5.5231 16.0153 5.60755 15.7537 5.62848 15.4832C5.64942 15.2128 5.60624 14.9412 5.50247 14.6906C5.3987 14.44 5.23726 14.2174 5.03127 14.0409C4.82529 13.8645 4.58056 13.7391 4.317 13.675C2.561 13.249 2.561 10.751 4.317 10.325C4.5808 10.2611 4.82578 10.1358 5.032 9.95929C5.23822 9.7828 5.39985 9.56011 5.50375 9.30935C5.60764 9.05859 5.65085 8.78683 5.62987 8.51621C5.60889 8.24559 5.5243 7.98375 5.383 7.752C4.443 6.209 6.209 4.442 7.753 5.382C8.753 5.99 10.049 5.452 10.325 4.317Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Settings</span> </button> </li> <li> <button id="add-page-link"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M14 3v4a1 1 0 0 0 1 1h4" /> <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /> <path d="M12 11l0 6" /> <path d="M9 14l6 0" /> </svg> <span>Add Builder Page</span> </button> </li> <li> <button id="import-from-figma"> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-figma" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M15 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /> <path d="M6 3m0 3a3 3 0 0 1 3 -3h6a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3 -3z" /> <path d="M9 9a3 3 0 0 0 0 6h3m-3 0a3 3 0 1 0 3 3v-15" /> </svg> <span>Import From Figma</span> </button> </li> </ul> </div> <footer> <ul class="list"> <li> <a href="https://docs.google.com/forms/d/e/1FAIpQLSdqZcJpRtm_Ia5DTHP6SDY9Xa6LID3KiTjRWkjMzWyJRUtSHw/viewform" target="_blank" > <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M11.013 17.0114L10.013 18.0114L2.513 10.5834C2.0183 10.102 1.62864 9.52342 1.36854 8.88404C1.10845 8.24466 0.983558 7.55836 1.00173 6.86834C1.01991 6.17832 1.18076 5.49954 1.47415 4.87474C1.76755 4.24994 2.18713 3.69266 2.70648 3.23799C3.22583 2.78331 3.8337 2.4411 4.49181 2.23289C5.14991 2.02468 5.844 1.95499 6.53036 2.02821C7.21673 2.10143 7.8805 2.31596 8.47987 2.65831C9.07925 3.00066 9.60124 3.46341 10.013 4.01741C10.8086 2.95654 11.9931 2.2552 13.3059 2.06766C14.6186 1.88012 15.9521 2.22176 17.013 3.01741C18.0739 3.81306 18.7752 4.99755 18.9627 6.3103C19.1503 7.62305 18.8086 8.95654 18.013 10.0174" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> <path d="M18.2006 19.8175L16.0286 20.9555C15.9642 20.989 15.8917 21.004 15.8192 20.9987C15.7467 20.9934 15.6771 20.9681 15.6182 20.9256C15.5593 20.8831 15.5134 20.825 15.4855 20.7579C15.4577 20.6907 15.4491 20.6172 15.4606 20.5455L15.8756 18.1345L14.1186 16.4275C14.0662 16.3768 14.0291 16.3123 14.0115 16.2416C13.9939 16.1708 13.9966 16.0965 14.0192 16.0271C14.0418 15.9578 14.0835 15.8962 14.1394 15.8494C14.1954 15.8026 14.2634 15.7725 14.3356 15.7625L16.7636 15.4105L17.8496 13.2175C17.8821 13.1521 17.9322 13.0972 17.9942 13.0588C18.0562 13.0204 18.1277 13 18.2006 13C18.2736 13 18.3451 13.0204 18.4071 13.0588C18.4691 13.0972 18.5191 13.1521 18.5516 13.2175L19.6376 15.4105L22.0656 15.7625C22.1377 15.7728 22.2054 15.8031 22.2611 15.85C22.3168 15.8968 22.3583 15.9583 22.3809 16.0275C22.4034 16.0967 22.4062 16.1708 22.3888 16.2415C22.3715 16.3122 22.3347 16.3766 22.2826 16.4275L20.5256 18.1345L20.9396 20.5445C20.9521 20.6163 20.9441 20.6902 20.9166 20.7578C20.8891 20.8254 20.8433 20.8839 20.7842 20.9267C20.7252 20.9695 20.6553 20.9949 20.5825 21C20.5098 21.005 20.4371 20.9896 20.3726 20.9555L18.2006 19.8175Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Give Feedback</span> </a> </li> </ul> <div id="version"></div> </footer> </section> <section class="nav-cmp-list"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div class="search-container"> <div class="search-input-wrapper"> <svg class="search-icon" viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M15.5 15.5L20 20M10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17Z" /> </svg> <input type="text" id="component-search" class="component-search-input" placeholder="Search components..." autocomplete="off" spellcheck="false" /> <button id="clear-search" class="clear-search-button" type="button" aria-label="Clear search" > <svg viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M6 6l12 12M6 18L18 6" /> </svg> </button> </div> </div> <div> <h2>Custom Components</h2> <p> <button id="open-builder-registry"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-list" class="cmp-list nav-list"></div> </div> <div class="nav-loading-icon spinner"></div> <footer> <p class="info"> Expand on Builder's selection of built-in blocks by <a target="_blank" href="https://www.builder.io/c/docs/custom-components-intro" >registering components</a > from your codebase. This way, teammates can drag and drop your components within Builder's Visual Editor just like any other block. </p> </footer> </section> <section class="nav-cmp-detail"> <header> <button class="back-button" data-back="nav-cmp-list"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-detail-title"></h2> <p> <button id="cmp-open-source"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-error"></div> <label class="ui-switch"> <div> <h3>Register Component</h3> <p> Registers this component so it can be used within Builder Visual CMS </p> </div> <input type="checkbox" role="switch" id="cmp-register" /> <span class="switcher"></span> </label> <div id="cmp-detail"> <label class="ui-text-input"> <h3>Component Name</h3> <div class="input"> <input type="text" id="cmp-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="2" maxlength="30" required placeholder="e.g. My Counter" /> </div> <p> Unique name to identify this custom component within Builder. Press ESC to cancel </p> </label> <div class="cmp-detail-inputs-container"> <h3> <span>Builder Inputs (Props)</span> <button class="cmp-detail-inputs-reload" id="btn-inputs-reload"> Reload </button> </h3> <div id="cmp-detail-inputs"></div> </div> </div> </div> <div class="cmp-cover"></div> <div class="cmp-loading-icon spinner"></div> </section> <section class="nav-cmp-input"> <header> <button class="back-button" data-back="nav-cmp-detail"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-input-title"></h2> <p> <button id="input-open-source"></button> </p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable Input</h3> <p>Add this component prop as a Builder input</p> </div> <input type="checkbox" role="switch" id="input-register" /> <span class="switcher"></span> </label> <div class="cmp-prop-info"> <div class="cmp-input-readonly"> <h3>Prop Name</h3> <span id="cmp-prop-name"></span> </div> <div class="cmp-input-readonly"> <h3>Prop Type</h3> <span id="cmp-prop-type"></span> </div> </div> <div class="cmp-input-detail"> <label class="ui-text-input"> <h3>Builder Input Name</h3> <div class="input"> <input type="text" id="input-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="1" maxlength="30" required placeholder="e.g. Text" /> </div> <p> Friendly name to identify this component prop as a Builder input. Press ESC to cancel </p> </label> <label class="ui-select"> <h3>Builder Input Type</h3> <div class="select"> <select id="input-type"></select> </div> <p> Correlate to what editing UI is appropriate for this Builder input. <a href="https://www.builder.io/c/docs/custom-components-input-types" target="_blank" >Read more about input types.</a > </p> </label> </div> <div class="input-cover"></div> <div class="input-loading-icon spinner"></div> </div> </section> <section class="nav-settings"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2>Settings</h2> <p>Configure Builder's Devtools</p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable edit button in UI</h3> <p>Enables the edit button so you can edit content in Builder</p> </div> <input type="checkbox" role="switch" id="enable-edit" /> <span class="switcher"></span> </label> </div> </section> <div class="ui-toast" id="toast"></div> </aside> <button class="menu-toggle" aria-label="Toggle Builder Devtools"> <div> <div class="highlight-bg"></div> <svg viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> </div> </button>\`,ai(e),ui(e),oi(e),ri(e),ti(e),ci(e),this.setAttribute("aria-hidden","true"),e.getElementById("version").textContent="v1.17.23"}highlightOpener(){let e=this.shadowRoot.querySelector(".menu-toggle");e.classList.add("menu-toggle-highlight"),e.classList.add("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight")},20)},20)}};var lo=\`<style>*,*:before,*:after{box-sizing:border-box}html,body,:host{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:2147483646;margin:0;padding:0;line-height:1.8;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";background-color:#252525;color:#fff;transition:opacity .25s ease-in-out}:host([aria-hidden="true"]){opacity:0;pointer-events:none}main{position:absolute;top:0;left:0;width:100%;height:100vh}h1{margin-top:0;font-size:24px;font-weight:300;line-height:1.4}p{margin:20px 0;font-weight:300}button{cursor:pointer}aside{position:absolute;top:0;left:0;width:350px;height:100vh;padding:60px 0 0 50px;background-color:#121212}aside ul{margin:30px 0 0;padding:0;list-style:none}aside li{position:relative;margin:0;padding:20px 10px;font-weight:300}aside li.highlight{color:#48a1ff}aside li.active{font-weight:700}aside li .circle{position:absolute;top:20px;left:10px;width:24px;height:24px;border:3px solid white;border-radius:50%;font-size:14px}aside li.highlight .circle{border-color:#48a1ff}aside li.active .circle:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background-color:#48a1ff}aside li.completed .circle{background-color:#48a1ff}aside li.completed .circle:after{content:"";position:absolute;top:2px;left:6px;width:6px;height:13px;border:3px solid black;border-top:none;border-left:none;transform:rotate(45deg)}aside li .line{position:absolute;top:44px;left:21px;width:3px;height:45px;background-color:#fff}aside li.completed .line{background-color:#48a1ff}aside li span{display:block;margin-left:44px}nav{margin-top:30px}section{position:absolute;top:135px;left:350px;padding:0 80px 0 140px;transition:opacity .15s ease-in-out}section[aria-hidden=true]{pointer-events:none;opacity:0}section h1,section p{min-width:300px;max-width:600px}.button{position:relative;display:inline-block;color:#fff;background-color:#48a1ff;border-radius:4px;text-decoration:none;padding:10px 40px 10px 20px;white-space:nowrap}.button:hover{background-color:#48a1ffd9}#button-icon{position:absolute;top:1px;right:5px;bottom:0;width:30px;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="white" stroke-linecap="square" stroke-miterlimit="10" stroke-width="48" d="M184 112l144 144-144 144"/></svg>');background-repeat:no-repeat;background-position:center;background-size:24px 24px}.button[aria-disabled=true]{opacity:.9;background-color:#ffffff4d;pointer-events:none;padding-right:60px}.button[aria-disabled=true] #button-icon{top:21px;right:29px;width:8px;height:8px;border-radius:4px;background:#fff;color:#fff;animation:dot-flashing .5s infinite linear alternate;animation-delay:.25s}.button[aria-disabled=true] #button-icon:before,.button[aria-disabled=true] #button-icon:after{content:"";display:inline-block;position:absolute;top:0}.button[aria-disabled=true] #button-icon:before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:0s}.button[aria-disabled=true] #button-icon:after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:.5s}@keyframes dot-flashing{0%{background-color:#fff}50%,to{background-color:#ffffff4d}}.logo{margin-left:9px;background:url('data:image/svg+xml,<svg viewBox="0 0 150 32" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(%23clip0_4_304)"> <path d="M27.9858 8.99927C27.9872 10.3415 27.688 11.667 27.1101 12.8783C26.5321 14.0896 25.6902 15.156 24.6462 15.9989V15.9989L0.634502 2.36355C0.542657 2.31119 0.457444 2.24796 0.380701 2.17523C0.260289 2.05715 0.164605 1.91624 0.0992389 1.76075C0.0338732 1.60525 0.000136546 1.43828 0 1.26959C0 0.932873 0.133698 0.609948 0.371683 0.371854C0.609667 0.13376 0.932443 0 1.269 0L18.9906 0C21.3763 0 23.6642 0.948135 25.3512 2.63583C27.0381 4.32352 27.9858 6.61252 27.9858 8.99927V8.99927Z" fill="%2318B4F4" /> <path d="M27.9858 22.9986C27.9861 24.1806 27.7536 25.351 27.3017 26.4431C26.8498 27.5352 26.1873 28.5275 25.352 29.3634C24.5167 30.1993 23.5249 30.8624 22.4335 31.3147C21.342 31.7671 20.1721 32 18.9907 32H1.26906C1.01802 31.9973 0.77343 31.9202 0.566221 31.7784C0.359012 31.6366 0.198499 31.4364 0.104989 31.2034C0.0114791 30.9703 -0.0108254 30.7147 0.0408974 30.4689C0.0926201 30.2231 0.216046 29.9982 0.395559 29.8226V29.8226C0.467112 29.7508 0.547407 29.6882 0.634555 29.6364L10.0844 24.2703L24.6441 16.001C25.688 16.8438 26.53 17.9097 27.1083 19.1206C27.6866 20.3315 27.9864 21.6566 27.9858 22.9986V22.9986Z" fill="%23FD6B3C" /> <path d="M24.6461 15.9989L10.0843 24.2703L0.634458 29.6365C0.54372 29.6868 0.459841 29.7487 0.384888 29.8205C3.98804 26.1233 6.00266 21.1627 5.99812 15.9989C6.0049 10.8346 3.99085 5.87268 0.387003 2.17523C0.463746 2.24796 0.548959 2.31119 0.640803 2.36355L24.6461 15.9989Z" fill="%23A97FF2" /> <path d="M47.6659 11.7352C51.8177 11.7352 54.1632 15.0531 54.1632 19.0714C54.1632 23.0896 51.8177 26.3821 47.6659 26.3821C45.5086 26.3821 43.8589 25.5188 42.9473 24.0545L42.5709 26.052H39.9736V6.77115H43.1884V13.8914C43.971 12.6959 45.5086 11.7352 47.6659 11.7352ZM47.0187 23.5488C49.4446 23.5488 50.9547 21.5809 50.9547 19.0714C50.9547 16.5089 49.4446 14.5664 47.0187 14.5664C44.5928 14.5664 43.0806 16.5047 43.0806 19.0714C43.0806 21.583 44.5653 23.5488 47.0187 23.5488V23.5488Z" fill="white" /> <path d="M65.4595 20.2859V12.0611H68.668V20.123C68.668 23.7202 67.0246 26.3821 62.4943 26.3821C57.9639 26.3821 56.3206 23.7117 56.3206 20.123V12.0611H59.529V20.2859C59.529 22.4696 60.5527 23.5488 62.49 23.5488C64.4274 23.5488 65.4595 22.4696 65.4595 20.2859Z" fill="white" /> <path d="M71.2355 7.74451C71.2247 7.46284 71.2724 7.18199 71.3755 6.91968C71.4787 6.65737 71.6351 6.41929 71.8348 6.22047C72.0345 6.02165 72.2732 5.8664 72.5359 5.76452C72.7986 5.66264 73.0796 5.61633 73.3611 5.62853C74.5793 5.62853 75.4571 6.50666 75.4571 7.75509C75.4571 9.00352 74.5793 9.8224 73.3611 9.8224C72.1428 9.8224 71.2355 8.9612 71.2355 7.74451Z" fill="white" /> <path d="M128.476 7.74451C128.465 7.46376 128.513 7.18383 128.615 6.92227C128.718 6.66071 128.873 6.42315 129.072 6.22449C129.27 6.02583 129.508 5.87035 129.769 5.7678C130.031 5.66524 130.31 5.61783 130.591 5.62852C131.809 5.62852 132.687 6.50666 132.687 7.75509C132.687 9.00352 131.809 9.8224 130.591 9.8224C129.373 9.8224 128.476 8.9612 128.476 7.74451Z" fill="white" /> <path d="M122.302 24.1031C122.291 23.8223 122.339 23.5422 122.441 23.2805C122.543 23.0188 122.699 22.7811 122.897 22.5824C123.096 22.3837 123.334 22.2282 123.595 22.1258C123.857 22.0233 124.137 21.9761 124.417 21.9872C125.636 21.9872 126.513 22.8653 126.513 24.1031C126.513 25.341 125.636 26.1726 124.417 26.1726C123.199 26.1726 122.302 25.3219 122.302 24.1031Z" fill="white" /> <path d="M74.9516 12.059H71.7432V26.0583H74.9516V12.059Z" fill="white" /> <path d="M78.16 26.0583V6.77115H81.3685V26.0626L78.16 26.0583Z" fill="white" /> <path d="M94.6063 6.77115H97.8148V26.0626H95.2239L94.8474 24.0651C93.9591 25.523 92.3094 26.3927 90.131 26.3927C86.0046 26.3927 83.6591 23.0748 83.6591 19.0819C83.6591 15.0891 86.0046 11.7458 90.131 11.7458C92.3137 11.7458 93.8238 12.7149 94.6063 13.902V6.77115ZM90.7993 14.5707C88.3734 14.5707 86.8633 16.5131 86.8633 19.0756C86.8633 21.5851 88.3734 23.553 90.7993 23.553C93.2252 23.553 94.7354 21.5851 94.7354 19.0756C94.7396 16.5047 93.257 14.5664 90.8036 14.5664L90.7993 14.5707Z" fill="white" /> <path d="M113.479 22.2284C112.482 24.7359 110.162 26.3821 107.117 26.3821C102.887 26.3821 100.137 23.225 100.137 19.0439C100.137 14.9706 102.942 11.7353 107.093 11.7353C111.245 11.7353 113.969 14.8902 113.969 18.991C113.982 19.3255 113.953 19.6604 113.883 19.9876H103.288C103.53 22.2009 104.959 23.6292 107.197 23.6292C108.735 23.6292 110.001 22.8738 110.594 21.473L113.479 22.2284ZM103.341 17.6156H110.784C110.513 15.6731 109.166 14.3506 107.089 14.3506C105.012 14.3506 103.665 15.7006 103.341 17.6156V17.6156Z" fill="white" /> <path d="M123.779 14.9452C123.538 14.9117 123.295 14.8933 123.051 14.8902C120.786 14.8902 119.439 16.0772 119.439 18.7751V26.0583H116.23V12.0611H118.821L119.195 14.0014C119.707 13.1127 120.887 11.9257 123.322 11.9257C123.455 11.9257 123.779 11.9532 123.779 11.9532V14.9452Z" fill="white" /> <path d="M132.192 12.059H128.984V26.0583H132.192V12.059Z" fill="white" /> <path d="M134.483 19.0714C134.483 15.1335 137.287 11.7353 141.735 11.7353C146.183 11.7353 149.015 15.1335 149.015 19.0714C149.015 23.0092 146.213 26.3821 141.735 26.3821C137.258 26.3821 134.483 23.0092 134.483 19.0714ZM141.735 23.5488C144.083 23.5488 145.806 21.7692 145.806 19.0714C145.806 16.3735 144.083 14.5664 141.735 14.5664C139.387 14.5664 137.687 16.346 137.687 19.0714C137.687 21.7968 139.417 23.5488 141.735 23.5488V23.5488Z" fill="white" /> </g> <defs> <clipPath id="clip0_4_304"> <rect width="149.015" height="32" fill="white" /> </clipPath> </defs> </svg>');background-repeat:no-repeat;width:150px;height:32px}@media (max-width: 840px){aside{width:250px;padding:60px 0 0 20px}section{left:250px;padding:0 80px}}@media (max-width: 590px){aside{width:230px;padding:60px 0 0 10px}section{left:230px;padding:0 40px}}#modified-files-message a{color:#cbcbcb;font-weight:300;text-decoration:underline}#modified-files-message a:hover{color:#fff;text-decoration:none}#restart-warning{border-radius:4px;padding:8px 16px;border:1px solid #fd6b3c;background:#fd6b3c1a}#react-router-steps{margin:0 0 5px;padding:0 20px}#need-help{color:#48a1ff;text-decoration:none}#router-message{border-radius:4px;padding:16px;border:1px solid #48a1ff}#router-finish-button{margin-top:12px}#router-checkbox-div{display:flex;align-items:center}#router-checkbox{margin-right:10px;width:15px;height:15px}#success-title{display:flex;align-items:center;gap:10px}#success-title .check-icon{display:inline-block;width:24px;height:24px;border:2px solid #28a745;border-radius:50%;position:relative}#success-title .check-icon:before{content:"";position:absolute;top:50%;left:50%;width:6px;height:12px;border:solid #28a745;border-width:0 2px 2px 0;transform:translate(-50%,-60%) rotate(45deg)}
25
25
  </style>\`,Dt=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=lo+\`<main>
26
26
  <aside>
27
27
  <div class="logo"></div>
@@ -60,7 +60,7 @@ Restarting server after Builder Devtools update...
60
60
  </nav>
61
61
  </section>
62
62
  </main>
63
- \`,po();let r=new URL(Vr,ot);r.searchParams.set(Mr,location.href);let n=e.querySelectorAll(".next-step");for(let i of n)i.setAttribute("href",r.href);ye("overview step viewed")}},po=()=>{let t=document.head.querySelector("link[rel='icon'], link[rel='icon shortcut']");t?(t.href="https://cdn.builder.io/favicon.ico",t.removeAttribute("type")):(t=document.createElement("link"),t.rel="icon",t.href="https://cdn.builder.io/favicon.ico",document.head.appendChild(t))};var li=async()=>{(await qr()).isValid||fo()},fo=()=>{customElements.get("builder-dev-tools-overview")||customElements.define("builder-dev-tools-overview",Dt);let t=document.querySelector("builder-dev-tools-overview");t||(t=document.createElement("builder-dev-tools-overview"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),setTimeout(()=>{t.removeAttribute("aria-hidden")},32)};var mo=()=>{try{customElements.get("builder-dev-tools-edit")||customElements.define("builder-dev-tools-edit",st),customElements.get("builder-dev-tools-menu")||customElements.define("builder-dev-tools-menu",At);let t=document.querySelector("builder-dev-tools-menu");t||(t=document.createElement("builder-dev-tools-menu"),t.setAttribute("data-version","1.17.21"),document.body.appendChild(t));let e=document.querySelector("builder-dev-tools-edit");e||(e=document.createElement("builder-dev-tools-edit"),document.body.appendChild(e));let r=document.getElementById("builder-dev-tools-style");r||(r=document.createElement("style"),r.id="builder-dev-tools-style",r.innerHTML=".builder-no-scroll{overflow:hidden !important}",document.head.appendChild(r)),li(),Jn()}catch(t){console.error("Builder Devtools:",t)}};window.location===window.parent.location&&(console.debug("Builder.io Devtools v1.17.21"),mo());})();`)}async function Cf(e){return bf(e,`<!doctype html>
63
+ \`,po();let r=new URL(Vr,ot);r.searchParams.set(Mr,location.href);let n=e.querySelectorAll(".next-step");for(let i of n)i.setAttribute("href",r.href);ye("overview step viewed")}},po=()=>{let t=document.head.querySelector("link[rel='icon'], link[rel='icon shortcut']");t?(t.href="https://cdn.builder.io/favicon.ico",t.removeAttribute("type")):(t=document.createElement("link"),t.rel="icon",t.href="https://cdn.builder.io/favicon.ico",document.head.appendChild(t))};var li=async()=>{(await qr()).isValid||fo()},fo=()=>{customElements.get("builder-dev-tools-overview")||customElements.define("builder-dev-tools-overview",Dt);let t=document.querySelector("builder-dev-tools-overview");t||(t=document.createElement("builder-dev-tools-overview"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),setTimeout(()=>{t.removeAttribute("aria-hidden")},32)};var mo=()=>{try{customElements.get("builder-dev-tools-edit")||customElements.define("builder-dev-tools-edit",st),customElements.get("builder-dev-tools-menu")||customElements.define("builder-dev-tools-menu",At);let t=document.querySelector("builder-dev-tools-menu");t||(t=document.createElement("builder-dev-tools-menu"),t.setAttribute("data-version","1.17.23"),document.body.appendChild(t));let e=document.querySelector("builder-dev-tools-edit");e||(e=document.createElement("builder-dev-tools-edit"),document.body.appendChild(e));let r=document.getElementById("builder-dev-tools-style");r||(r=document.createElement("style"),r.id="builder-dev-tools-style",r.innerHTML=".builder-no-scroll{overflow:hidden !important}",document.head.appendChild(r)),li(),Jn()}catch(t){console.error("Builder Devtools:",t)}};window.location===window.parent.location&&(console.debug("Builder.io Devtools v1.17.23"),mo());})();`)}async function Cf(e){return bf(e,`<!doctype html>
64
64
  <html lang="en" dir="ltr">
65
65
  <head>
66
66
  <meta charset="utf-8" />
@@ -1489,13 +1489,13 @@ Use ${(0,_.cyan)(`npx ${Ke()} figma help <command>`)} for detailed help about a
1489
1489
  `),t.write(D),t.write(`\r
1490
1490
  `)});let h=u(`HTTP/${e.httpVersion} ${f.statusCode} ${f.statusMessage}`,m.headers);t.destroyed?f.resume():(t.write(h),f.on("data",D=>{g(D)}),f.on("end",()=>{g(""),t.destroySoon()}))}),p.end()}yt.WS_PASSES={checkMethodAndHeader:my,XHeaders:gy,stream:hy}});var Dy=U(mr=>{"use strict";var jR=mr&&mr.__createBinding||(Object.create?(function(e,t,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}):(function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]})),UR=mr&&mr.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),vy=mr&&mr.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var o=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[o.length]=n);return o},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var o=e(t),n=0;n<o.length;n++)o[n]!=="default"&&jR(r,t,o[n]);return UR(r,t),r}})(),VR=mr&&mr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mr,"__esModule",{value:!0});mr.ProxyServer=void 0;var HR=vy(ve("node:http")),GR=vy(ve("node:http2")),zR=dy(),KR=fp(),qR=ve("node:events"),WR=VR(Ya()),JR=Fs(),eu=(0,WR.default)("http-proxy-3"),mp=class e extends qR.EventEmitter{constructor(t={}){super(),this.createRightProxy=r=>(eu("createRightProxy",{type:r}),o=>(...n)=>{let s=n[0];eu("proxy: ",{type:r,path:s.url});let i=n[1],a=r==="ws"?this.wsPasses:this.webPasses;r=="ws"&&i.on("error",d=>{this.emit("error",d,s,i)});let u=n.length-1,l,c;typeof n[u]=="function"&&(c=n[u],u--);let p;!(n[u]instanceof Buffer)&&n[u]!==i?(p={...o,...n[u]},u--):p={...o},n[u]instanceof Buffer&&(l=n[u]);for(let d of["target","forward"])typeof p[d]=="string"&&(p[d]=(0,JR.toURL)(p[d]));if(!p.target&&!p.forward){this.emit("error",new Error("Must set target or forward"),s,i);return}for(let d of a)if(d(s,i,p,l,this,c))break}),this.onError=r=>{if(this.listeners("error").length===1)throw r},this.listen=(r,o)=>{eu("listen",{port:r,hostname:o});let n=(s,i)=>{this.web(s,i)};return this._server=this.options.ssl?GR.createSecureServer({...this.options.ssl,allowHTTP1:!0},n):HR.createServer(n),this.options.ws&&this._server.on("upgrade",(s,i,a)=>{this.ws(s,i,a)}),this._server.listen(r,o),this},this.address=()=>this._server?.address(),this.close=r=>{if(this._server==null){r?.();return}this._server.close(o=>{this._server=null,r?.(o)})},this.before=(r,o,n)=>{if(r!=="ws"&&r!=="web")throw new Error("type must be `web` or `ws`");let s=r==="ws"?this.wsPasses:this.webPasses,i=!1;if(s.forEach((a,u)=>{a.name===o&&(i=u)}),i===!1)throw new Error("No such pass");s.splice(i,0,n)},this.after=(r,o,n)=>{if(r!=="ws"&&r!=="web")throw new Error("type must be `web` or `ws`");let s=r==="ws"?this.wsPasses:this.webPasses,i=!1;if(s.forEach((a,u)=>{a.name===o&&(i=u)}),i===!1)throw new Error("No such pass");s.splice(i++,0,n)},eu("creating a ProxyServer",t),t.prependPath=t.prependPath!==!1,this.options=t,this.web=this.createRightProxy("web")(t),this.ws=this.createRightProxy("ws")(t),this.webPasses=Object.values(zR.WEB_PASSES),this.wsPasses=Object.values(KR.WS_PASSES),this.on("error",this.onError)}static createProxyServer(t){return new e(t)}static createServer(t){return new e(t)}static createProxy(t){return new e(t)}};mr.ProxyServer=mp});var yy=U(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.numOpenSockets=Yr.ProxyServer=void 0;Yr.createProxyServer=hp;Yr.createServer=hp;Yr.createProxy=hp;var gp=Dy();Object.defineProperty(Yr,"ProxyServer",{enumerable:!0,get:function(){return gp.ProxyServer}});var QR=fp();Object.defineProperty(Yr,"numOpenSockets",{enumerable:!0,get:function(){return QR.numOpenSockets}});function hp(e={}){return new gp.ProxyServer(e)}Yr.default=gp.ProxyServer});var xy=U(vp=>{"use strict";vp.parse=nI;vp.serialize=oI;var YR=Object.prototype.toString,ZR=Object.prototype.hasOwnProperty,XR=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,eI=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,tI=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,rI=/^[\u0020-\u003A\u003D-\u007E]*$/;function nI(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");var r={},o=e.length;if(o<2)return r;var n=t&&t.decode||iI,s=0,i=0,a=0;do{if(i=e.indexOf("=",s),i===-1)break;if(a=e.indexOf(";",s),a===-1)a=o;else if(i>a){s=e.lastIndexOf(";",i-1)+1;continue}var u=Cy(e,s,i),l=by(e,i,u),c=e.slice(u,l);if(!ZR.call(r,c)){var p=Cy(e,i+1,a),d=by(e,a,p);e.charCodeAt(p)===34&&e.charCodeAt(d-1)===34&&(p++,d--);var f=e.slice(p,d);r[c]=aI(f,n)}s=a+1}while(s<o);return r}function Cy(e,t,r){do{var o=e.charCodeAt(t);if(o!==32&&o!==9)return t}while(++t<r);return r}function by(e,t,r){for(;t>r;){var o=e.charCodeAt(--t);if(o!==32&&o!==9)return t+1}return r}function oI(e,t,r){var o=r&&r.encode||encodeURIComponent;if(typeof o!="function")throw new TypeError("option encode is invalid");if(!XR.test(e))throw new TypeError("argument name is invalid");var n=o(t);if(!eI.test(n))throw new TypeError("argument val is invalid");var s=e+"="+n;if(!r)return s;if(r.maxAge!=null){var i=Math.floor(r.maxAge);if(!isFinite(i))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+i}if(r.domain){if(!tI.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!rI.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){var a=r.expires;if(!sI(a)||isNaN(a.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+a.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.partitioned&&(s+="; Partitioned"),r.priority){var u=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(u){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function iI(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function sI(e){return YR.call(e)==="[object Date]"}function aI(e,t){try{return t(e)}catch{return e}}});var wy=U(tu=>{var Ey=ve("crypto");tu.sign=function(e,t){if(typeof e!="string")throw new TypeError("Cookie value must be provided as a string.");if(typeof t!="string")throw new TypeError("Secret string must be provided.");return e+"."+Ey.createHmac("sha256",t).update(e).digest("base64").replace(/\=+$/,"")};tu.unsign=function(e,t){if(typeof e!="string")throw new TypeError("Signed cookie string must be provided.");if(typeof t!="string")throw new TypeError("Secret string must be provided.");var r=e.slice(0,e.lastIndexOf(".")),o=tu.sign(r,t);return Sy(o)==Sy(e)?r:!1};function Sy(e){return Ey.createHash("sha1").update(e).digest("hex")}});var Ty=U((uU,Ei)=>{"use strict";var uI=xy(),lI=wy();Ei.exports=cI;Ei.exports.JSONCookie=Py;Ei.exports.JSONCookies=Dp;Ei.exports.signedCookie=Ay;Ei.exports.signedCookies=Fy;function cI(e,t){var r=!e||Array.isArray(e)?e||[]:[e];return function(n,s,i){if(n.cookies)return i();var a=n.headers.cookie;if(n.secret=r[0],n.cookies=Object.create(null),n.signedCookies=Object.create(null),!a)return i();n.cookies=uI.parse(a,t),r.length!==0&&(n.signedCookies=Fy(n.cookies,r),n.signedCookies=Dp(n.signedCookies)),n.cookies=Dp(n.cookies),i()}}function Py(e){if(!(typeof e!="string"||e.substr(0,2)!=="j:"))try{return JSON.parse(e.slice(2))}catch{return}}function Dp(e){for(var t=Object.keys(e),r,o,n=0;n<t.length;n++)r=t[n],o=Py(e[r]),o&&(e[r]=o);return e}function Ay(e,t){if(typeof e=="string"){if(e.substr(0,2)!=="s:")return e;for(var r=!t||Array.isArray(t)?t||[]:[t],o=0;o<r.length;o++){var n=lI.unsign(e.slice(2),r[o]);if(n!==!1)return n}return!1}}function Fy(e,t){for(var r=Object.keys(e),o,n,s=Object.create(null),i,a=0;a<r.length;a++)n=r[a],i=e[n],o=Ay(i,t),i!==o&&(s[n]=o,delete e[n]);return s}});var pI,Ry,lU,Iy=P(()=>{"use strict";pI=et(Ty(),1),Ry="/_builder.io",lU=Ry+"/api"});var dI,_y=P(()=>{"use strict";dI=et(yy(),1);Iy()});var ru=P(()=>{"use strict"});var ky=P(()=>{"use strict"});var gU,$y=P(()=>{"use strict";gU=process.platform==="win32"?"C:\\Windows\\System32\\drivers\\etc\\hosts":"/etc/hosts"});var Oy=P(()=>{"use strict"});var yp=P(()=>{"use strict";hi();kD();zc();_y();ru();ky();Kt();$y();Oy()});import*as hI from"@sentry/node";var By=P(()=>{"use strict";La();La();Pc();ID();hi();_D();$a();zc();yp();Ss();ru();fi()});var My=P(()=>{"use strict"});var jy=P(()=>{"use strict"});var ge,Cp,q,Zr,ks=P(()=>{(function(e){e.assertEqual=n=>{};function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{let s={};for(let i of n)s[i]=i;return s},e.getValidEnumValues=n=>{let s=e.objectKeys(n).filter(a=>typeof n[n[a]]!="number"),i={};for(let a of s)i[a]=n[a];return e.objectValues(i)},e.objectValues=n=>e.objectKeys(n).map(function(s){return n[s]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let s=[];for(let i in n)Object.prototype.hasOwnProperty.call(n,i)&&s.push(i);return s},e.find=(n,s)=>{for(let i of n)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function o(n,s=" | "){return n.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=o,e.jsonStringifyReplacer=(n,s)=>typeof s=="bigint"?s.toString():s})(ge||(ge={}));(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Cp||(Cp={}));q=ge.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Zr=e=>{switch(typeof e){case"undefined":return q.undefined;case"string":return q.string;case"number":return Number.isNaN(e)?q.nan:q.number;case"boolean":return q.boolean;case"function":return q.function;case"bigint":return q.bigint;case"symbol":return q.symbol;case"object":return Array.isArray(e)?q.array:e===null?q.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?q.promise:typeof Map<"u"&&e instanceof Map?q.map:typeof Set<"u"&&e instanceof Set?q.set:typeof Date<"u"&&e instanceof Date?q.date:q.object;default:return q.unknown}}});var G,vI,Bt,nu=P(()=>{ks();G=ge.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),vI=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),Bt=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(s){return s.message},o={_errors:[]},n=s=>{for(let i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(n);else if(i.code==="invalid_return_type")n(i.returnTypeError);else if(i.code==="invalid_arguments")n(i.argumentsError);else if(i.path.length===0)o._errors.push(r(i));else{let a=o,u=0;for(;u<i.path.length;){let l=i.path[u];u===i.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(r(i))):a[l]=a[l]||{_errors:[]},a=a[l],u++}}};return n(this),o}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ge.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r={},o=[];for(let n of this.issues)if(n.path.length>0){let s=n.path[0];r[s]=r[s]||[],r[s].push(t(n))}else o.push(t(n));return{formErrors:o,fieldErrors:r}}get formErrors(){return this.flatten()}};Bt.create=e=>new Bt(e)});var DI,vn,bp=P(()=>{nu();ks();DI=(e,t)=>{let r;switch(e.code){case G.invalid_type:e.received===q.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case G.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ge.jsonStringifyReplacer)}`;break;case G.unrecognized_keys:r=`Unrecognized key(s) in object: ${ge.joinValues(e.keys,", ")}`;break;case G.invalid_union:r="Invalid input";break;case G.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ge.joinValues(e.options)}`;break;case G.invalid_enum_value:r=`Invalid enum value. Expected ${ge.joinValues(e.options)}, received '${e.received}'`;break;case G.invalid_arguments:r="Invalid function arguments";break;case G.invalid_return_type:r="Invalid function return type";break;case G.invalid_date:r="Invalid date";break;case G.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:ge.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case G.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case G.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case G.custom:r="Invalid input";break;case G.invalid_intersection_types:r="Intersection results could not be merged";break;case G.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case G.not_finite:r="Number must be finite";break;default:r=t.defaultError,ge.assertNever(e)}return{message:r}},vn=DI});function yI(e){Uy=e}function wi(){return Uy}var Uy,ou=P(()=>{bp();Uy=vn});function K(e,t){let r=wi(),o=$s({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===vn?void 0:vn].filter(n=>!!n)});e.common.issues.push(o)}var $s,CI,gt,ee,Do,Ct,iu,su,kn,Pi,xp=P(()=>{ou();bp();$s=e=>{let{data:t,path:r,errorMaps:o,issueData:n}=e,s=[...r,...n.path||[]],i={...n,path:s};if(n.message!==void 0)return{...n,path:s,message:n.message};let a="",u=o.filter(l=>!!l).slice().reverse();for(let l of u)a=l(i,{data:t,defaultError:a}).message;return{...n,path:s,message:a}},CI=[];gt=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let o=[];for(let n of r){if(n.status==="aborted")return ee;n.status==="dirty"&&t.dirty(),o.push(n.value)}return{status:t.value,value:o}}static async mergeObjectAsync(t,r){let o=[];for(let n of r){let s=await n.key,i=await n.value;o.push({key:s,value:i})}return e.mergeObjectSync(t,o)}static mergeObjectSync(t,r){let o={};for(let n of r){let{key:s,value:i}=n;if(s.status==="aborted"||i.status==="aborted")return ee;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||n.alwaysSet)&&(o[s.value]=i.value)}return{status:t.value,value:o}}},ee=Object.freeze({status:"aborted"}),Do=e=>({status:"dirty",value:e}),Ct=e=>({status:"valid",value:e}),iu=e=>e.status==="aborted",su=e=>e.status==="dirty",kn=e=>e.status==="valid",Pi=e=>typeof Promise<"u"&&e instanceof Promise});var Vy=P(()=>{});var Z,Hy=P(()=>{(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Z||(Z={}))});function ue(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:o,description:n}=e;if(t&&(r||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(i,a)=>{let{message:u}=e;return i.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:u??o??a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:u??r??a.defaultError}},description:n}}function qy(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function BI(e){return new RegExp(`^${qy(e)}$`)}function Wy(e){let t=`${Ky}T${qy(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function LI(e,t){return!!((t==="v4"||!t)&&RI.test(e)||(t==="v6"||!t)&&_I.test(e))}function MI(e,t){if(!PI.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let o=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(o));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||t&&n.alg!==t)}catch{return!1}}function jI(e,t){return!!((t==="v4"||!t)&&II.test(e)||(t==="v6"||!t)&&kI.test(e))}function UI(e,t){let r=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,n=r>o?r:o,s=Number.parseInt(e.toFixed(n).replace(".","")),i=Number.parseInt(t.toFixed(n).replace(".",""));return s%i/10**n}function Ai(e){if(e instanceof Lt){let t={};for(let r in e.shape){let o=e.shape[r];t[r]=gr.create(Ai(o))}return new Lt({...e._def,shape:()=>t})}else return e instanceof Cn?new Cn({...e._def,type:Ai(e.element)}):e instanceof gr?gr.create(Ai(e.unwrap())):e instanceof en?en.create(Ai(e.unwrap())):e instanceof Xr?Xr.create(e.items.map(t=>Ai(t))):e}function Ep(e,t){let r=Zr(e),o=Zr(t);if(e===t)return{valid:!0,data:e};if(r===q.object&&o===q.object){let n=ge.objectKeys(t),s=ge.objectKeys(e).filter(a=>n.indexOf(a)!==-1),i={...e,...t};for(let a of s){let u=Ep(e[a],t[a]);if(!u.valid)return{valid:!1};i[a]=u.data}return{valid:!0,data:i}}else if(r===q.array&&o===q.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let s=0;s<e.length;s++){let i=e[s],a=t[s],u=Ep(i,a);if(!u.valid)return{valid:!1};n.push(u.data)}return{valid:!0,data:n}}else return r===q.date&&o===q.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}function Jy(e,t){return new To({values:e,typeName:ne.ZodEnum,...ue(t)})}function zy(e,t){let r=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof r=="string"?{message:r}:r}function Qy(e,t={},r){return e?On.create().superRefine((o,n)=>{let s=e(o);if(s instanceof Promise)return s.then(i=>{if(!i){let a=zy(t,o),u=a.fatal??r??!0;n.addIssue({code:"custom",...a,fatal:u})}});if(!s){let i=zy(t,o),a=i.fatal??r??!0;n.addIssue({code:"custom",...i,fatal:a})}}):On.create()}var hr,Gy,fe,bI,xI,SI,EI,wI,PI,AI,FI,TI,Sp,RI,II,_I,kI,$I,OI,Ky,NI,$n,yo,Co,bo,xo,Fi,So,Eo,On,yn,Tr,Ti,Cn,Lt,wo,Dn,au,Po,Xr,uu,Ri,Ii,lu,Ao,Fo,To,Ro,Nn,vr,gr,en,Io,_o,_i,VI,Os,Ns,ko,HI,ne,GI,Yy,Zy,zI,KI,Xy,qI,WI,JI,QI,YI,ZI,XI,e1,t1,r1,n1,o1,i1,s1,a1,u1,l1,c1,p1,d1,f1,m1,g1,h1,v1,D1,y1,C1,b1,x1,S1,E1,w1,P1,eC=P(()=>{nu();ou();Hy();xp();ks();hr=class{constructor(t,r,o,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=o,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Gy=(e,t)=>{if(kn(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Bt(e.common.issues);return this._error=r,this._error}}};fe=class{get description(){return this._def.description}_getType(t){return Zr(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Zr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new gt,ctx:{common:t.parent.common,data:t.data,parsedType:Zr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(Pi(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let o=this.safeParse(t,r);if(o.success)return o.data;throw o.error}safeParse(t,r){let o={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Zr(t)},n=this._parseSync({data:t,path:o.path,parent:o});return Gy(o,n)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Zr(t)};if(!this["~standard"].async)try{let o=this._parseSync({data:t,path:[],parent:r});return kn(o)?{value:o.value}:{issues:r.common.issues}}catch(o){o?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(o=>kn(o)?{value:o.value}:{issues:r.common.issues})}async parseAsync(t,r){let o=await this.safeParseAsync(t,r);if(o.success)return o.data;throw o.error}async safeParseAsync(t,r){let o={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Zr(t)},n=this._parse({data:t,path:o.path,parent:o}),s=await(Pi(n)?n:Promise.resolve(n));return Gy(o,s)}refine(t,r){let o=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,s)=>{let i=t(n),a=()=>s.addIssue({code:G.custom,...o(n)});return typeof Promise<"u"&&i instanceof Promise?i.then(u=>u?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,r){return this._refinement((o,n)=>t(o)?!0:(n.addIssue(typeof r=="function"?r(o,n):r),!1))}_refinement(t){return new vr({schema:this,typeName:ne.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return gr.create(this,this._def)}nullable(){return en.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Cn.create(this)}promise(){return Nn.create(this,this._def)}or(t){return wo.create([this,t],this._def)}and(t){return Po.create(this,t,this._def)}transform(t){return new vr({...ue(this._def),schema:this,typeName:ne.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new Io({...ue(this._def),innerType:this,defaultValue:r,typeName:ne.ZodDefault})}brand(){return new Os({typeName:ne.ZodBranded,type:this,...ue(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new _o({...ue(this._def),innerType:this,catchValue:r,typeName:ne.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Ns.create(this,t)}readonly(){return ko.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},bI=/^c[^\s-]{8,}$/i,xI=/^[0-9a-z]+$/,SI=/^[0-9A-HJKMNP-TV-Z]{26}$/i,EI=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,wI=/^[a-z0-9_-]{21}$/i,PI=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,AI=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,FI=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,TI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",RI=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,II=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,_I=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,kI=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,$I=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,OI=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ky="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",NI=new RegExp(`^${Ky}$`);$n=class e extends fe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==q.string){let s=this._getOrReturnCtx(t);return K(s,{code:G.invalid_type,expected:q.string,received:s.parsedType}),ee}let o=new gt,n;for(let s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(n=this._getOrReturnCtx(t,n),K(n,{code:G.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),o.dirty());else if(s.kind==="max")t.data.length>s.value&&(n=this._getOrReturnCtx(t,n),K(n,{code:G.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),o.dirty());else if(s.kind==="length"){let i=t.data.length>s.value,a=t.data.length<s.value;(i||a)&&(n=this._getOrReturnCtx(t,n),i?K(n,{code:G.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&K(n,{code:G.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),o.dirty())}else if(s.kind==="email")FI.test(t.data)||(n=this._getOrReturnCtx(t,n),K(n,{validation:"email",code:G.invalid_string,message:s.message}),o.dirty());else if(s.kind==="emoji")Sp||(Sp=new RegExp(TI,"u")),Sp.test(t.data)||(n=this._getOrReturnCtx(t,n),K(n,{validation:"emoji",code:G.invalid_string,message:s.message}),o.dirty());else if(s.kind==="uuid")EI.test(t.data)||(n=this._getOrReturnCtx(t,n),K(n,{validation:"uuid",code:G.invalid_string,message:s.message}),o.dirty());else if(s.kind==="nanoid")wI.test(t.data)||(n=this._getOrReturnCtx(t,n),K(n,{validation:"nanoid",code:G.invalid_string,message:s.message}),o.dirty());else if(s.kind==="cuid")bI.test(t.data)||(n=this._getOrReturnCtx(t,n),K(n,{validation:"cuid",code:G.invalid_string,message:s.message}),o.dirty());else if(s.kind==="cuid2")xI.test(t.data)||(n=this._getOrReturnCtx(t,n),K(n,{validation:"cuid2",code:G.invalid_string,message:s.message}),o.dirty());else if(s.kind==="ulid")SI.test(t.data)||(n=this._getOrReturnCtx(t,n),K(n,{validation:"ulid",code:G.invalid_string,message:s.message}),o.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),K(n,{validation:"url",code:G.invalid_string,message:s.message}),o.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),K(n,{validation:"regex",code:G.invalid_string,message:s.message}),o.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(n=this._getOrReturnCtx(t,n),K(n,{code:G.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),o.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(n=this._getOrReturnCtx(t,n),K(n,{code:G.invalid_string,validation:{startsWith:s.value},message:s.message}),o.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(n=this._getOrReturnCtx(t,n),K(n,{code:G.invalid_string,validation:{endsWith:s.value},message:s.message}),o.dirty()):s.kind==="datetime"?Wy(s).test(t.data)||(n=this._getOrReturnCtx(t,n),K(n,{code:G.invalid_string,validation:"datetime",message:s.message}),o.dirty()):s.kind==="date"?NI.test(t.data)||(n=this._getOrReturnCtx(t,n),K(n,{code:G.invalid_string,validation:"date",message:s.message}),o.dirty()):s.kind==="time"?BI(s).test(t.data)||(n=this._getOrReturnCtx(t,n),K(n,{code:G.invalid_string,validation:"time",message:s.message}),o.dirty()):s.kind==="duration"?AI.test(t.data)||(n=this._getOrReturnCtx(t,n),K(n,{validation:"duration",code:G.invalid_string,message:s.message}),o.dirty()):s.kind==="ip"?LI(t.data,s.version)||(n=this._getOrReturnCtx(t,n),K(n,{validation:"ip",code:G.invalid_string,message:s.message}),o.dirty()):s.kind==="jwt"?MI(t.data,s.alg)||(n=this._getOrReturnCtx(t,n),K(n,{validation:"jwt",code:G.invalid_string,message:s.message}),o.dirty()):s.kind==="cidr"?jI(t.data,s.version)||(n=this._getOrReturnCtx(t,n),K(n,{validation:"cidr",code:G.invalid_string,message:s.message}),o.dirty()):s.kind==="base64"?$I.test(t.data)||(n=this._getOrReturnCtx(t,n),K(n,{validation:"base64",code:G.invalid_string,message:s.message}),o.dirty()):s.kind==="base64url"?OI.test(t.data)||(n=this._getOrReturnCtx(t,n),K(n,{validation:"base64url",code:G.invalid_string,message:s.message}),o.dirty()):ge.assertNever(s);return{status:o.value,value:t.data}}_regex(t,r,o){return this.refinement(n=>t.test(n),{validation:r,code:G.invalid_string,...Z.errToObj(o)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Z.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Z.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Z.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Z.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Z.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Z.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Z.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Z.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Z.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Z.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Z.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Z.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Z.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Z.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Z.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Z.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Z.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...Z.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Z.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Z.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Z.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Z.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Z.errToObj(r)})}nonempty(t){return this.min(1,Z.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};$n.create=e=>new $n({checks:[],typeName:ne.ZodString,coerce:e?.coerce??!1,...ue(e)});yo=class e extends fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==q.number){let s=this._getOrReturnCtx(t);return K(s,{code:G.invalid_type,expected:q.number,received:s.parsedType}),ee}let o,n=new gt;for(let s of this._def.checks)s.kind==="int"?ge.isInteger(t.data)||(o=this._getOrReturnCtx(t,o),K(o,{code:G.invalid_type,expected:"integer",received:"float",message:s.message}),n.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(o=this._getOrReturnCtx(t,o),K(o,{code:G.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),n.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(o=this._getOrReturnCtx(t,o),K(o,{code:G.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),n.dirty()):s.kind==="multipleOf"?UI(t.data,s.value)!==0&&(o=this._getOrReturnCtx(t,o),K(o,{code:G.not_multiple_of,multipleOf:s.value,message:s.message}),n.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(o=this._getOrReturnCtx(t,o),K(o,{code:G.not_finite,message:s.message}),n.dirty()):ge.assertNever(s);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Z.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Z.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Z.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Z.toString(r))}setLimit(t,r,o,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:o,message:Z.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Z.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Z.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Z.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Z.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Z.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Z.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Z.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Z.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Z.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ge.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(r===null||o.value>r)&&(r=o.value):o.kind==="max"&&(t===null||o.value<t)&&(t=o.value)}return Number.isFinite(r)&&Number.isFinite(t)}};yo.create=e=>new yo({checks:[],typeName:ne.ZodNumber,coerce:e?.coerce||!1,...ue(e)});Co=class e extends fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==q.bigint)return this._getInvalidInput(t);let o,n=new gt;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(o=this._getOrReturnCtx(t,o),K(o,{code:G.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),n.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(o=this._getOrReturnCtx(t,o),K(o,{code:G.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),n.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(o=this._getOrReturnCtx(t,o),K(o,{code:G.not_multiple_of,multipleOf:s.value,message:s.message}),n.dirty()):ge.assertNever(s);return{status:n.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return K(r,{code:G.invalid_type,expected:q.bigint,received:r.parsedType}),ee}gte(t,r){return this.setLimit("min",t,!0,Z.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Z.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Z.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Z.toString(r))}setLimit(t,r,o,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:o,message:Z.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Z.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Z.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Z.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Z.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Z.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};Co.create=e=>new Co({checks:[],typeName:ne.ZodBigInt,coerce:e?.coerce??!1,...ue(e)});bo=class extends fe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==q.boolean){let o=this._getOrReturnCtx(t);return K(o,{code:G.invalid_type,expected:q.boolean,received:o.parsedType}),ee}return Ct(t.data)}};bo.create=e=>new bo({typeName:ne.ZodBoolean,coerce:e?.coerce||!1,...ue(e)});xo=class e extends fe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==q.date){let s=this._getOrReturnCtx(t);return K(s,{code:G.invalid_type,expected:q.date,received:s.parsedType}),ee}if(Number.isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return K(s,{code:G.invalid_date}),ee}let o=new gt,n;for(let s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(n=this._getOrReturnCtx(t,n),K(n,{code:G.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),o.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(n=this._getOrReturnCtx(t,n),K(n,{code:G.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),o.dirty()):ge.assertNever(s);return{status:o.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Z.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Z.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};xo.create=e=>new xo({checks:[],coerce:e?.coerce||!1,typeName:ne.ZodDate,...ue(e)});Fi=class extends fe{_parse(t){if(this._getType(t)!==q.symbol){let o=this._getOrReturnCtx(t);return K(o,{code:G.invalid_type,expected:q.symbol,received:o.parsedType}),ee}return Ct(t.data)}};Fi.create=e=>new Fi({typeName:ne.ZodSymbol,...ue(e)});So=class extends fe{_parse(t){if(this._getType(t)!==q.undefined){let o=this._getOrReturnCtx(t);return K(o,{code:G.invalid_type,expected:q.undefined,received:o.parsedType}),ee}return Ct(t.data)}};So.create=e=>new So({typeName:ne.ZodUndefined,...ue(e)});Eo=class extends fe{_parse(t){if(this._getType(t)!==q.null){let o=this._getOrReturnCtx(t);return K(o,{code:G.invalid_type,expected:q.null,received:o.parsedType}),ee}return Ct(t.data)}};Eo.create=e=>new Eo({typeName:ne.ZodNull,...ue(e)});On=class extends fe{constructor(){super(...arguments),this._any=!0}_parse(t){return Ct(t.data)}};On.create=e=>new On({typeName:ne.ZodAny,...ue(e)});yn=class extends fe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ct(t.data)}};yn.create=e=>new yn({typeName:ne.ZodUnknown,...ue(e)});Tr=class extends fe{_parse(t){let r=this._getOrReturnCtx(t);return K(r,{code:G.invalid_type,expected:q.never,received:r.parsedType}),ee}};Tr.create=e=>new Tr({typeName:ne.ZodNever,...ue(e)});Ti=class extends fe{_parse(t){if(this._getType(t)!==q.undefined){let o=this._getOrReturnCtx(t);return K(o,{code:G.invalid_type,expected:q.void,received:o.parsedType}),ee}return Ct(t.data)}};Ti.create=e=>new Ti({typeName:ne.ZodVoid,...ue(e)});Cn=class e extends fe{_parse(t){let{ctx:r,status:o}=this._processInputParams(t),n=this._def;if(r.parsedType!==q.array)return K(r,{code:G.invalid_type,expected:q.array,received:r.parsedType}),ee;if(n.exactLength!==null){let i=r.data.length>n.exactLength.value,a=r.data.length<n.exactLength.value;(i||a)&&(K(r,{code:i?G.too_big:G.too_small,minimum:a?n.exactLength.value:void 0,maximum:i?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),o.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(K(r,{code:G.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),o.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(K(r,{code:G.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),o.dirty()),r.common.async)return Promise.all([...r.data].map((i,a)=>n.type._parseAsync(new hr(r,i,r.path,a)))).then(i=>gt.mergeArray(o,i));let s=[...r.data].map((i,a)=>n.type._parseSync(new hr(r,i,r.path,a)));return gt.mergeArray(o,s)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:Z.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:Z.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:Z.toString(r)}})}nonempty(t){return this.min(1,t)}};Cn.create=(e,t)=>new Cn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ne.ZodArray,...ue(t)});Lt=class e extends fe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=ge.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==q.object){let l=this._getOrReturnCtx(t);return K(l,{code:G.invalid_type,expected:q.object,received:l.parsedType}),ee}let{status:o,ctx:n}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Tr&&this._def.unknownKeys==="strip"))for(let l in n.data)i.includes(l)||a.push(l);let u=[];for(let l of i){let c=s[l],p=n.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new hr(n,p,n.path,l)),alwaysSet:l in n.data})}if(this._def.catchall instanceof Tr){let l=this._def.unknownKeys;if(l==="passthrough")for(let c of a)u.push({key:{status:"valid",value:c},value:{status:"valid",value:n.data[c]}});else if(l==="strict")a.length>0&&(K(n,{code:G.unrecognized_keys,keys:a}),o.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let c of a){let p=n.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new hr(n,p,n.path,c)),alwaysSet:c in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let l=[];for(let c of u){let p=await c.key,d=await c.value;l.push({key:p,value:d,alwaysSet:c.alwaysSet})}return l}).then(l=>gt.mergeObjectSync(o,l)):gt.mergeObjectSync(o,u)}get shape(){return this._def.shape()}strict(t){return Z.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,o)=>{let n=this._def.errorMap?.(r,o).message??o.defaultError;return r.code==="unrecognized_keys"?{message:Z.errToObj(t).message??n}:{message:n}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ne.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let o of ge.objectKeys(t))t[o]&&this.shape[o]&&(r[o]=this.shape[o]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let o of ge.objectKeys(this.shape))t[o]||(r[o]=this.shape[o]);return new e({...this._def,shape:()=>r})}deepPartial(){return Ai(this)}partial(t){let r={};for(let o of ge.objectKeys(this.shape)){let n=this.shape[o];t&&!t[o]?r[o]=n:r[o]=n.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let o of ge.objectKeys(this.shape))if(t&&!t[o])r[o]=this.shape[o];else{let s=this.shape[o];for(;s instanceof gr;)s=s._def.innerType;r[o]=s}return new e({...this._def,shape:()=>r})}keyof(){return Jy(ge.objectKeys(this.shape))}};Lt.create=(e,t)=>new Lt({shape:()=>e,unknownKeys:"strip",catchall:Tr.create(),typeName:ne.ZodObject,...ue(t)});Lt.strictCreate=(e,t)=>new Lt({shape:()=>e,unknownKeys:"strict",catchall:Tr.create(),typeName:ne.ZodObject,...ue(t)});Lt.lazycreate=(e,t)=>new Lt({shape:e,unknownKeys:"strip",catchall:Tr.create(),typeName:ne.ZodObject,...ue(t)});wo=class extends fe{_parse(t){let{ctx:r}=this._processInputParams(t),o=this._def.options;function n(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let i=s.map(a=>new Bt(a.ctx.common.issues));return K(r,{code:G.invalid_union,unionErrors:i}),ee}if(r.common.async)return Promise.all(o.map(async s=>{let i={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(n);{let s,i=[];for(let u of o){let l={...r,common:{...r.common,issues:[]},parent:null},c=u._parseSync({data:r.data,path:r.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!s&&(s={result:c,ctx:l}),l.common.issues.length&&i.push(l.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=i.map(u=>new Bt(u));return K(r,{code:G.invalid_union,unionErrors:a}),ee}}get options(){return this._def.options}};wo.create=(e,t)=>new wo({options:e,typeName:ne.ZodUnion,...ue(t)});Dn=e=>e instanceof Ao?Dn(e.schema):e instanceof vr?Dn(e.innerType()):e instanceof Fo?[e.value]:e instanceof To?e.options:e instanceof Ro?ge.objectValues(e.enum):e instanceof Io?Dn(e._def.innerType):e instanceof So?[void 0]:e instanceof Eo?[null]:e instanceof gr?[void 0,...Dn(e.unwrap())]:e instanceof en?[null,...Dn(e.unwrap())]:e instanceof Os||e instanceof ko?Dn(e.unwrap()):e instanceof _o?Dn(e._def.innerType):[],au=class e extends fe{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==q.object)return K(r,{code:G.invalid_type,expected:q.object,received:r.parsedType}),ee;let o=this.discriminator,n=r.data[o],s=this.optionsMap.get(n);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(K(r,{code:G.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[o]}),ee)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,o){let n=new Map;for(let s of r){let i=Dn(s.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of i){if(n.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);n.set(a,s)}}return new e({typeName:ne.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...ue(o)})}};Po=class extends fe{_parse(t){let{status:r,ctx:o}=this._processInputParams(t),n=(s,i)=>{if(iu(s)||iu(i))return ee;let a=Ep(s.value,i.value);return a.valid?((su(s)||su(i))&&r.dirty(),{status:r.value,value:a.data}):(K(o,{code:G.invalid_intersection_types}),ee)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([s,i])=>n(s,i)):n(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}};Po.create=(e,t,r)=>new Po({left:e,right:t,typeName:ne.ZodIntersection,...ue(r)});Xr=class e extends fe{_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==q.array)return K(o,{code:G.invalid_type,expected:q.array,received:o.parsedType}),ee;if(o.data.length<this._def.items.length)return K(o,{code:G.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ee;!this._def.rest&&o.data.length>this._def.items.length&&(K(o,{code:G.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...o.data].map((i,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new hr(o,i,o.path,a)):null}).filter(i=>!!i);return o.common.async?Promise.all(s).then(i=>gt.mergeArray(r,i)):gt.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Xr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Xr({items:e,typeName:ne.ZodTuple,rest:null,...ue(t)})};uu=class e extends fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==q.object)return K(o,{code:G.invalid_type,expected:q.object,received:o.parsedType}),ee;let n=[],s=this._def.keyType,i=this._def.valueType;for(let a in o.data)n.push({key:s._parse(new hr(o,a,o.path,a)),value:i._parse(new hr(o,o.data[a],o.path,a)),alwaysSet:a in o.data});return o.common.async?gt.mergeObjectAsync(r,n):gt.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,o){return r instanceof fe?new e({keyType:t,valueType:r,typeName:ne.ZodRecord,...ue(o)}):new e({keyType:$n.create(),valueType:t,typeName:ne.ZodRecord,...ue(r)})}},Ri=class extends fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==q.map)return K(o,{code:G.invalid_type,expected:q.map,received:o.parsedType}),ee;let n=this._def.keyType,s=this._def.valueType,i=[...o.data.entries()].map(([a,u],l)=>({key:n._parse(new hr(o,a,o.path,[l,"key"])),value:s._parse(new hr(o,u,o.path,[l,"value"]))}));if(o.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of i){let l=await u.key,c=await u.value;if(l.status==="aborted"||c.status==="aborted")return ee;(l.status==="dirty"||c.status==="dirty")&&r.dirty(),a.set(l.value,c.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let u of i){let l=u.key,c=u.value;if(l.status==="aborted"||c.status==="aborted")return ee;(l.status==="dirty"||c.status==="dirty")&&r.dirty(),a.set(l.value,c.value)}return{status:r.value,value:a}}}};Ri.create=(e,t,r)=>new Ri({valueType:t,keyType:e,typeName:ne.ZodMap,...ue(r)});Ii=class e extends fe{_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==q.set)return K(o,{code:G.invalid_type,expected:q.set,received:o.parsedType}),ee;let n=this._def;n.minSize!==null&&o.data.size<n.minSize.value&&(K(o,{code:G.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&o.data.size>n.maxSize.value&&(K(o,{code:G.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let s=this._def.valueType;function i(u){let l=new Set;for(let c of u){if(c.status==="aborted")return ee;c.status==="dirty"&&r.dirty(),l.add(c.value)}return{status:r.value,value:l}}let a=[...o.data.values()].map((u,l)=>s._parse(new hr(o,u,o.path,l)));return o.common.async?Promise.all(a).then(u=>i(u)):i(a)}min(t,r){return new e({...this._def,minSize:{value:t,message:Z.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:Z.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};Ii.create=(e,t)=>new Ii({valueType:e,minSize:null,maxSize:null,typeName:ne.ZodSet,...ue(t)});lu=class e extends fe{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==q.function)return K(r,{code:G.invalid_type,expected:q.function,received:r.parsedType}),ee;function o(a,u){return $s({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,wi(),vn].filter(l=>!!l),issueData:{code:G.invalid_arguments,argumentsError:u}})}function n(a,u){return $s({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,wi(),vn].filter(l=>!!l),issueData:{code:G.invalid_return_type,returnTypeError:u}})}let s={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof Nn){let a=this;return Ct(async function(...u){let l=new Bt([]),c=await a._def.args.parseAsync(u,s).catch(f=>{throw l.addIssue(o(u,f)),l}),p=await Reflect.apply(i,this,c);return await a._def.returns._def.type.parseAsync(p,s).catch(f=>{throw l.addIssue(n(p,f)),l})})}else{let a=this;return Ct(function(...u){let l=a._def.args.safeParse(u,s);if(!l.success)throw new Bt([o(u,l.error)]);let c=Reflect.apply(i,this,l.data),p=a._def.returns.safeParse(c,s);if(!p.success)throw new Bt([n(c,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Xr.create(t).rest(yn.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,o){return new e({args:t||Xr.create([]).rest(yn.create()),returns:r||yn.create(),typeName:ne.ZodFunction,...ue(o)})}},Ao=class extends fe{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Ao.create=(e,t)=>new Ao({getter:e,typeName:ne.ZodLazy,...ue(t)});Fo=class extends fe{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return K(r,{received:r.data,code:G.invalid_literal,expected:this._def.value}),ee}return{status:"valid",value:t.data}}get value(){return this._def.value}};Fo.create=(e,t)=>new Fo({value:e,typeName:ne.ZodLiteral,...ue(t)});To=class e extends fe{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),o=this._def.values;return K(r,{expected:ge.joinValues(o),received:r.parsedType,code:G.invalid_type}),ee}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),o=this._def.values;return K(r,{received:r.data,code:G.invalid_enum_value,options:o}),ee}return Ct(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(o=>!t.includes(o)),{...this._def,...r})}};To.create=Jy;Ro=class extends fe{_parse(t){let r=ge.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(t);if(o.parsedType!==q.string&&o.parsedType!==q.number){let n=ge.objectValues(r);return K(o,{expected:ge.joinValues(n),received:o.parsedType,code:G.invalid_type}),ee}if(this._cache||(this._cache=new Set(ge.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let n=ge.objectValues(r);return K(o,{received:o.data,code:G.invalid_enum_value,options:n}),ee}return Ct(t.data)}get enum(){return this._def.values}};Ro.create=(e,t)=>new Ro({values:e,typeName:ne.ZodNativeEnum,...ue(t)});Nn=class extends fe{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==q.promise&&r.common.async===!1)return K(r,{code:G.invalid_type,expected:q.promise,received:r.parsedType}),ee;let o=r.parsedType===q.promise?r.data:Promise.resolve(r.data);return Ct(o.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Nn.create=(e,t)=>new Nn({type:e,typeName:ne.ZodPromise,...ue(t)});vr=class extends fe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ne.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:o}=this._processInputParams(t),n=this._def.effect||null,s={addIssue:i=>{K(o,i),i.fatal?r.abort():r.dirty()},get path(){return o.path}};if(s.addIssue=s.addIssue.bind(s),n.type==="preprocess"){let i=n.transform(o.data,s);if(o.common.async)return Promise.resolve(i).then(async a=>{if(r.value==="aborted")return ee;let u=await this._def.schema._parseAsync({data:a,path:o.path,parent:o});return u.status==="aborted"?ee:u.status==="dirty"?Do(u.value):r.value==="dirty"?Do(u.value):u});{if(r.value==="aborted")return ee;let a=this._def.schema._parseSync({data:i,path:o.path,parent:o});return a.status==="aborted"?ee:a.status==="dirty"?Do(a.value):r.value==="dirty"?Do(a.value):a}}if(n.type==="refinement"){let i=a=>{let u=n.refinement(a,s);if(o.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(o.common.async===!1){let a=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return a.status==="aborted"?ee:(a.status==="dirty"&&r.dirty(),i(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(a=>a.status==="aborted"?ee:(a.status==="dirty"&&r.dirty(),i(a.value).then(()=>({status:r.value,value:a.value}))))}if(n.type==="transform")if(o.common.async===!1){let i=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!kn(i))return ee;let a=n.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(i=>kn(i)?Promise.resolve(n.transform(i.value,s)).then(a=>({status:r.value,value:a})):ee);ge.assertNever(n)}};vr.create=(e,t,r)=>new vr({schema:e,typeName:ne.ZodEffects,effect:t,...ue(r)});vr.createWithPreprocess=(e,t,r)=>new vr({schema:t,effect:{type:"preprocess",transform:e},typeName:ne.ZodEffects,...ue(r)});gr=class extends fe{_parse(t){return this._getType(t)===q.undefined?Ct(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};gr.create=(e,t)=>new gr({innerType:e,typeName:ne.ZodOptional,...ue(t)});en=class extends fe{_parse(t){return this._getType(t)===q.null?Ct(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};en.create=(e,t)=>new en({innerType:e,typeName:ne.ZodNullable,...ue(t)});Io=class extends fe{_parse(t){let{ctx:r}=this._processInputParams(t),o=r.data;return r.parsedType===q.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Io.create=(e,t)=>new Io({innerType:e,typeName:ne.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ue(t)});_o=class extends fe{_parse(t){let{ctx:r}=this._processInputParams(t),o={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return Pi(n)?n.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Bt(o.common.issues)},input:o.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Bt(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}};_o.create=(e,t)=>new _o({innerType:e,typeName:ne.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ue(t)});_i=class extends fe{_parse(t){if(this._getType(t)!==q.nan){let o=this._getOrReturnCtx(t);return K(o,{code:G.invalid_type,expected:q.nan,received:o.parsedType}),ee}return{status:"valid",value:t.data}}};_i.create=e=>new _i({typeName:ne.ZodNaN,...ue(e)});VI=Symbol("zod_brand"),Os=class extends fe{_parse(t){let{ctx:r}=this._processInputParams(t),o=r.data;return this._def.type._parse({data:o,path:r.path,parent:r})}unwrap(){return this._def.type}},Ns=class e extends fe{_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return s.status==="aborted"?ee:s.status==="dirty"?(r.dirty(),Do(s.value)):this._def.out._parseAsync({data:s.value,path:o.path,parent:o})})();{let n=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return n.status==="aborted"?ee:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:o.path,parent:o})}}static create(t,r){return new e({in:t,out:r,typeName:ne.ZodPipeline})}},ko=class extends fe{_parse(t){let r=this._def.innerType._parse(t),o=n=>(kn(n)&&(n.value=Object.freeze(n.value)),n);return Pi(r)?r.then(n=>o(n)):o(r)}unwrap(){return this._def.innerType}};ko.create=(e,t)=>new ko({innerType:e,typeName:ne.ZodReadonly,...ue(t)});HI={object:Lt.lazycreate};(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ne||(ne={}));GI=(e,t={message:`Input not instance of ${e.name}`})=>Qy(r=>r instanceof e,t),Yy=$n.create,Zy=yo.create,zI=_i.create,KI=Co.create,Xy=bo.create,qI=xo.create,WI=Fi.create,JI=So.create,QI=Eo.create,YI=On.create,ZI=yn.create,XI=Tr.create,e1=Ti.create,t1=Cn.create,r1=Lt.create,n1=Lt.strictCreate,o1=wo.create,i1=au.create,s1=Po.create,a1=Xr.create,u1=uu.create,l1=Ri.create,c1=Ii.create,p1=lu.create,d1=Ao.create,f1=Fo.create,m1=To.create,g1=Ro.create,h1=Nn.create,v1=vr.create,D1=gr.create,y1=en.create,C1=vr.createWithPreprocess,b1=Ns.create,x1=()=>Yy().optional(),S1=()=>Zy().optional(),E1=()=>Xy().optional(),w1={string:(e=>$n.create({...e,coerce:!0})),number:(e=>yo.create({...e,coerce:!0})),boolean:(e=>bo.create({...e,coerce:!0})),bigint:(e=>Co.create({...e,coerce:!0})),date:(e=>xo.create({...e,coerce:!0}))},P1=ee});var v={};g0(v,{BRAND:()=>VI,DIRTY:()=>Do,EMPTY_PATH:()=>CI,INVALID:()=>ee,NEVER:()=>P1,OK:()=>Ct,ParseStatus:()=>gt,Schema:()=>fe,ZodAny:()=>On,ZodArray:()=>Cn,ZodBigInt:()=>Co,ZodBoolean:()=>bo,ZodBranded:()=>Os,ZodCatch:()=>_o,ZodDate:()=>xo,ZodDefault:()=>Io,ZodDiscriminatedUnion:()=>au,ZodEffects:()=>vr,ZodEnum:()=>To,ZodError:()=>Bt,ZodFirstPartyTypeKind:()=>ne,ZodFunction:()=>lu,ZodIntersection:()=>Po,ZodIssueCode:()=>G,ZodLazy:()=>Ao,ZodLiteral:()=>Fo,ZodMap:()=>Ri,ZodNaN:()=>_i,ZodNativeEnum:()=>Ro,ZodNever:()=>Tr,ZodNull:()=>Eo,ZodNullable:()=>en,ZodNumber:()=>yo,ZodObject:()=>Lt,ZodOptional:()=>gr,ZodParsedType:()=>q,ZodPipeline:()=>Ns,ZodPromise:()=>Nn,ZodReadonly:()=>ko,ZodRecord:()=>uu,ZodSchema:()=>fe,ZodSet:()=>Ii,ZodString:()=>$n,ZodSymbol:()=>Fi,ZodTransformer:()=>vr,ZodTuple:()=>Xr,ZodType:()=>fe,ZodUndefined:()=>So,ZodUnion:()=>wo,ZodUnknown:()=>yn,ZodVoid:()=>Ti,addIssueToContext:()=>K,any:()=>YI,array:()=>t1,bigint:()=>KI,boolean:()=>Xy,coerce:()=>w1,custom:()=>Qy,date:()=>qI,datetimeRegex:()=>Wy,defaultErrorMap:()=>vn,discriminatedUnion:()=>i1,effect:()=>v1,enum:()=>m1,function:()=>p1,getErrorMap:()=>wi,getParsedType:()=>Zr,instanceof:()=>GI,intersection:()=>s1,isAborted:()=>iu,isAsync:()=>Pi,isDirty:()=>su,isValid:()=>kn,late:()=>HI,lazy:()=>d1,literal:()=>f1,makeIssue:()=>$s,map:()=>l1,nan:()=>zI,nativeEnum:()=>g1,never:()=>XI,null:()=>QI,nullable:()=>y1,number:()=>Zy,object:()=>r1,objectUtil:()=>Cp,oboolean:()=>E1,onumber:()=>S1,optional:()=>D1,ostring:()=>x1,pipeline:()=>b1,preprocess:()=>C1,promise:()=>h1,quotelessJson:()=>vI,record:()=>u1,set:()=>c1,setErrorMap:()=>yI,strictObject:()=>n1,string:()=>Yy,symbol:()=>WI,transformer:()=>v1,tuple:()=>a1,undefined:()=>JI,union:()=>o1,unknown:()=>ZI,util:()=>ge,void:()=>e1});var wp=P(()=>{ou();xp();Vy();ks();eC();nu()});var tC=P(()=>{wp();wp()});var pu,rC,nC,A1,Dr,Mt,Bs,tn,yr,du,F1,T1,R1,cu,I1,_1,Pp,Ap,k1,Ls,Ms,oC,$1,O1,N1,iC,B1,Fp,L1,Tp,fu,mu,sC,aC,Rp,uC,lC,M1,j1,cC,U1,pC,V1,dC,H1,G1,z1,K1,q1,W1,J1,fC,Q1,Ip,_p,kp,Y1,Z1,mC,X1,gC,e_,t_,r_,n_,hC,$p,_5,o_,i_,vC,s_,a_,u_,l_,c_,p_,d_,f_,m_,g_,h_,v_,D_,y_,C_,b_,x_,DC,S_,E_,w_,P_,k5,$5,O5,N5,B5,L5,gu=P(()=>{tC();pu="2.0",rC=v.union([v.string(),v.number().int()]),nC=v.string(),A1=v.object({progressToken:v.optional(rC)}).passthrough(),Dr=v.object({_meta:v.optional(A1)}).passthrough(),Mt=v.object({method:v.string(),params:v.optional(Dr)}),Bs=v.object({_meta:v.optional(v.object({}).passthrough())}).passthrough(),tn=v.object({method:v.string(),params:v.optional(Bs)}),yr=v.object({_meta:v.optional(v.object({}).passthrough())}).passthrough(),du=v.union([v.string(),v.number().int()]),F1=v.object({jsonrpc:v.literal(pu),id:du}).merge(Mt).strict(),T1=v.object({jsonrpc:v.literal(pu)}).merge(tn).strict(),R1=v.object({jsonrpc:v.literal(pu),id:du,result:yr}).strict();(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError"})(cu||(cu={}));I1=v.object({jsonrpc:v.literal(pu),id:du,error:v.object({code:v.number().int(),message:v.string(),data:v.optional(v.unknown())})}).strict(),_1=v.union([F1,T1,R1,I1]),Pp=yr.strict(),Ap=tn.extend({method:v.literal("notifications/cancelled"),params:Bs.extend({requestId:du,reason:v.string().optional()})}),k1=v.object({src:v.string(),mimeType:v.optional(v.string()),sizes:v.optional(v.array(v.string()))}).passthrough(),Ls=v.object({icons:v.array(k1).optional()}).passthrough(),Ms=v.object({name:v.string(),title:v.optional(v.string())}).passthrough(),oC=Ms.extend({version:v.string(),websiteUrl:v.optional(v.string())}).merge(Ls),$1=v.object({experimental:v.optional(v.object({}).passthrough()),sampling:v.optional(v.object({}).passthrough()),elicitation:v.optional(v.object({}).passthrough()),roots:v.optional(v.object({listChanged:v.optional(v.boolean())}).passthrough())}).passthrough(),O1=Mt.extend({method:v.literal("initialize"),params:Dr.extend({protocolVersion:v.string(),capabilities:$1,clientInfo:oC})}),N1=v.object({experimental:v.optional(v.object({}).passthrough()),logging:v.optional(v.object({}).passthrough()),completions:v.optional(v.object({}).passthrough()),prompts:v.optional(v.object({listChanged:v.optional(v.boolean())}).passthrough()),resources:v.optional(v.object({subscribe:v.optional(v.boolean()),listChanged:v.optional(v.boolean())}).passthrough()),tools:v.optional(v.object({listChanged:v.optional(v.boolean())}).passthrough())}).passthrough(),iC=yr.extend({protocolVersion:v.string(),capabilities:N1,serverInfo:oC,instructions:v.optional(v.string())}),B1=tn.extend({method:v.literal("notifications/initialized")}),Fp=Mt.extend({method:v.literal("ping")}),L1=v.object({progress:v.number(),total:v.optional(v.number()),message:v.optional(v.string())}).passthrough(),Tp=tn.extend({method:v.literal("notifications/progress"),params:Bs.merge(L1).extend({progressToken:rC})}),fu=Mt.extend({params:Dr.extend({cursor:v.optional(nC)}).optional()}),mu=yr.extend({nextCursor:v.optional(nC)}),sC=v.object({uri:v.string(),mimeType:v.optional(v.string()),_meta:v.optional(v.object({}).passthrough())}).passthrough(),aC=sC.extend({text:v.string()}),Rp=v.string().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),uC=sC.extend({blob:Rp}),lC=Ms.extend({uri:v.string(),description:v.optional(v.string()),mimeType:v.optional(v.string()),_meta:v.optional(v.object({}).passthrough())}).merge(Ls),M1=Ms.extend({uriTemplate:v.string(),description:v.optional(v.string()),mimeType:v.optional(v.string()),_meta:v.optional(v.object({}).passthrough())}).merge(Ls),j1=fu.extend({method:v.literal("resources/list")}),cC=mu.extend({resources:v.array(lC)}),U1=fu.extend({method:v.literal("resources/templates/list")}),pC=mu.extend({resourceTemplates:v.array(M1)}),V1=Mt.extend({method:v.literal("resources/read"),params:Dr.extend({uri:v.string()})}),dC=yr.extend({contents:v.array(v.union([aC,uC]))}),H1=tn.extend({method:v.literal("notifications/resources/list_changed")}),G1=Mt.extend({method:v.literal("resources/subscribe"),params:Dr.extend({uri:v.string()})}),z1=Mt.extend({method:v.literal("resources/unsubscribe"),params:Dr.extend({uri:v.string()})}),K1=tn.extend({method:v.literal("notifications/resources/updated"),params:Bs.extend({uri:v.string()})}),q1=v.object({name:v.string(),description:v.optional(v.string()),required:v.optional(v.boolean())}).passthrough(),W1=Ms.extend({description:v.optional(v.string()),arguments:v.optional(v.array(q1)),_meta:v.optional(v.object({}).passthrough())}).merge(Ls),J1=fu.extend({method:v.literal("prompts/list")}),fC=mu.extend({prompts:v.array(W1)}),Q1=Mt.extend({method:v.literal("prompts/get"),params:Dr.extend({name:v.string(),arguments:v.optional(v.record(v.string()))})}),Ip=v.object({type:v.literal("text"),text:v.string(),_meta:v.optional(v.object({}).passthrough())}).passthrough(),_p=v.object({type:v.literal("image"),data:Rp,mimeType:v.string(),_meta:v.optional(v.object({}).passthrough())}).passthrough(),kp=v.object({type:v.literal("audio"),data:Rp,mimeType:v.string(),_meta:v.optional(v.object({}).passthrough())}).passthrough(),Y1=v.object({type:v.literal("resource"),resource:v.union([aC,uC]),_meta:v.optional(v.object({}).passthrough())}).passthrough(),Z1=lC.extend({type:v.literal("resource_link")}),mC=v.union([Ip,_p,kp,Z1,Y1]),X1=v.object({role:v.enum(["user","assistant"]),content:mC}).passthrough(),gC=yr.extend({description:v.optional(v.string()),messages:v.array(X1)}),e_=tn.extend({method:v.literal("notifications/prompts/list_changed")}),t_=v.object({title:v.optional(v.string()),readOnlyHint:v.optional(v.boolean()),destructiveHint:v.optional(v.boolean()),idempotentHint:v.optional(v.boolean()),openWorldHint:v.optional(v.boolean())}).passthrough(),r_=Ms.extend({description:v.optional(v.string()),inputSchema:v.object({type:v.literal("object"),properties:v.optional(v.object({}).passthrough()),required:v.optional(v.array(v.string()))}).passthrough(),outputSchema:v.optional(v.object({type:v.literal("object"),properties:v.optional(v.object({}).passthrough()),required:v.optional(v.array(v.string()))}).passthrough()),annotations:v.optional(t_),_meta:v.optional(v.object({}).passthrough())}).merge(Ls),n_=fu.extend({method:v.literal("tools/list")}),hC=mu.extend({tools:v.array(r_)}),$p=yr.extend({content:v.array(mC).default([]),structuredContent:v.object({}).passthrough().optional(),isError:v.optional(v.boolean())}),_5=$p.or(yr.extend({toolResult:v.unknown()})),o_=Mt.extend({method:v.literal("tools/call"),params:Dr.extend({name:v.string(),arguments:v.optional(v.record(v.unknown()))})}),i_=tn.extend({method:v.literal("notifications/tools/list_changed")}),vC=v.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),s_=Mt.extend({method:v.literal("logging/setLevel"),params:Dr.extend({level:vC})}),a_=tn.extend({method:v.literal("notifications/message"),params:Bs.extend({level:vC,logger:v.optional(v.string()),data:v.unknown()})}),u_=v.object({name:v.string().optional()}).passthrough(),l_=v.object({hints:v.optional(v.array(u_)),costPriority:v.optional(v.number().min(0).max(1)),speedPriority:v.optional(v.number().min(0).max(1)),intelligencePriority:v.optional(v.number().min(0).max(1))}).passthrough(),c_=v.object({role:v.enum(["user","assistant"]),content:v.union([Ip,_p,kp])}).passthrough(),p_=Mt.extend({method:v.literal("sampling/createMessage"),params:Dr.extend({messages:v.array(c_),systemPrompt:v.optional(v.string()),includeContext:v.optional(v.enum(["none","thisServer","allServers"])),temperature:v.optional(v.number()),maxTokens:v.number().int(),stopSequences:v.optional(v.array(v.string())),metadata:v.optional(v.object({}).passthrough()),modelPreferences:v.optional(l_)})}),d_=yr.extend({model:v.string(),stopReason:v.optional(v.enum(["endTurn","stopSequence","maxTokens"]).or(v.string())),role:v.enum(["user","assistant"]),content:v.discriminatedUnion("type",[Ip,_p,kp])}),f_=v.object({type:v.literal("boolean"),title:v.optional(v.string()),description:v.optional(v.string()),default:v.optional(v.boolean())}).passthrough(),m_=v.object({type:v.literal("string"),title:v.optional(v.string()),description:v.optional(v.string()),minLength:v.optional(v.number()),maxLength:v.optional(v.number()),format:v.optional(v.enum(["email","uri","date","date-time"]))}).passthrough(),g_=v.object({type:v.enum(["number","integer"]),title:v.optional(v.string()),description:v.optional(v.string()),minimum:v.optional(v.number()),maximum:v.optional(v.number())}).passthrough(),h_=v.object({type:v.literal("string"),title:v.optional(v.string()),description:v.optional(v.string()),enum:v.array(v.string()),enumNames:v.optional(v.array(v.string()))}).passthrough(),v_=v.union([f_,m_,g_,h_]),D_=Mt.extend({method:v.literal("elicitation/create"),params:Dr.extend({message:v.string(),requestedSchema:v.object({type:v.literal("object"),properties:v.record(v.string(),v_),required:v.optional(v.array(v.string()))}).passthrough()})}),y_=yr.extend({action:v.enum(["accept","decline","cancel"]),content:v.optional(v.record(v.string(),v.unknown()))}),C_=v.object({type:v.literal("ref/resource"),uri:v.string()}).passthrough(),b_=v.object({type:v.literal("ref/prompt"),name:v.string()}).passthrough(),x_=Mt.extend({method:v.literal("completion/complete"),params:Dr.extend({ref:v.union([b_,C_]),argument:v.object({name:v.string(),value:v.string()}).passthrough(),context:v.optional(v.object({arguments:v.optional(v.record(v.string(),v.string()))}))})}),DC=yr.extend({completion:v.object({values:v.array(v.string()).max(100),total:v.optional(v.number().int()),hasMore:v.optional(v.boolean())}).passthrough()}),S_=v.object({uri:v.string().startsWith("file://"),name:v.optional(v.string()),_meta:v.optional(v.object({}).passthrough())}).passthrough(),E_=Mt.extend({method:v.literal("roots/list")}),w_=yr.extend({roots:v.array(S_)}),P_=tn.extend({method:v.literal("notifications/roots/list_changed")}),k5=v.union([Fp,O1,x_,s_,Q1,J1,j1,U1,V1,G1,z1,o_,n_]),$5=v.union([Ap,Tp,B1,P_]),O5=v.union([Pp,d_,y_,w_]),N5=v.union([Fp,p_,D_,E_]),B5=v.union([Ap,Tp,a_,K1,H1,i_,e_]),L5=v.union([Pp,iC,DC,gC,fC,cC,pC,dC,$p,hC])});var yC=P(()=>{gu()});var bC=U((hu,CC)=>{(function(e,t){typeof hu=="object"&&typeof CC<"u"?t(hu):typeof define=="function"&&define.amd?define(["exports"],t):t(e.URI=e.URI||{})})(hu,(function(e){"use strict";function t(){for(var S=arguments.length,y=Array(S),w=0;w<S;w++)y[w]=arguments[w];if(y.length>1){y[0]=y[0].slice(0,-1);for(var $=y.length-1,N=1;N<$;++N)y[N]=y[N].slice(1,-1);return y[$]=y[$].slice(1),y.join("")}else return y[0]}function r(S){return"(?:"+S+")"}function o(S){return S===void 0?"undefined":S===null?"null":Object.prototype.toString.call(S).split(" ").pop().split("]").shift().toLowerCase()}function n(S){return S.toUpperCase()}function s(S){return S!=null?S instanceof Array?S:typeof S.length!="number"||S.split||S.setInterval||S.call?[S]:Array.prototype.slice.call(S):[]}function i(S,y){var w=S;if(y)for(var $ in y)w[$]=y[$];return w}function a(S){var y="[A-Za-z]",w="[\\x0D]",$="[0-9]",N="[\\x22]",W=t($,"[A-Fa-f]"),le="[\\x0A]",Se="[\\x20]",Te=r(r("%[EFef]"+W+"%"+W+W+"%"+W+W)+"|"+r("%[89A-Fa-f]"+W+"%"+W+W)+"|"+r("%"+W+W)),Ze="[\\:\\/\\?\\#\\[\\]\\@]",ye="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",He=t(Ze,ye),Xe=S?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ue=S?"[\\uE000-\\uF8FF]":"[]",Pe=t(y,$,"[\\-\\.\\_\\~]",Xe),Ge=r(y+t(y,$,"[\\+\\-\\.]")+"*"),ke=r(r(Te+"|"+t(Pe,ye,"[\\:]"))+"*"),Vn=r(r("25[0-5]")+"|"+r("2[0-4]"+$)+"|"+r("1"+$+$)+"|"+r("[1-9]"+$)+"|"+$),Vt=r(r("25[0-5]")+"|"+r("2[0-4]"+$)+"|"+r("1"+$+$)+"|"+r("0?[1-9]"+$)+"|0?0?"+$),er=r(Vt+"\\."+Vt+"\\."+Vt+"\\."+Vt),$e=r(W+"{1,4}"),Ht=r(r($e+"\\:"+$e)+"|"+er),tr=r(r($e+"\\:")+"{6}"+Ht),kr=r("\\:\\:"+r($e+"\\:")+"{5}"+Ht),Hn=r(r($e)+"?\\:\\:"+r($e+"\\:")+"{4}"+Ht),nn=r(r(r($e+"\\:")+"{0,1}"+$e)+"?\\:\\:"+r($e+"\\:")+"{3}"+Ht),Mi=r(r(r($e+"\\:")+"{0,2}"+$e)+"?\\:\\:"+r($e+"\\:")+"{2}"+Ht),Gs=r(r(r($e+"\\:")+"{0,3}"+$e)+"?\\:\\:"+$e+"\\:"+Ht),zs=r(r(r($e+"\\:")+"{0,4}"+$e)+"?\\:\\:"+Ht),Bo=r(r(r($e+"\\:")+"{0,5}"+$e)+"?\\:\\:"+$e),Lo=r(r(r($e+"\\:")+"{0,6}"+$e)+"?\\:\\:"),on=r([tr,kr,Hn,nn,Mi,Gs,zs,Bo,Lo].join("|")),Mo=r(r(Pe+"|"+Te)+"+"),ju=r(on+"\\%25"+Mo),Gn=r(on+r("\\%25|\\%(?!"+W+"{2})")+Mo),r0=r("[vV]"+W+"+\\."+t(Pe,ye,"[\\:]")+"+"),n0=r("\\["+r(Gn+"|"+on+"|"+r0)+"\\]"),Ld=r(r(Te+"|"+t(Pe,ye))+"*"),ji=r(n0+"|"+er+"(?!"+Ld+")|"+Ld),Ui=r($+"*"),Md=r(r(ke+"@")+"?"+ji+r("\\:"+Ui)+"?"),Vi=r(Te+"|"+t(Pe,ye,"[\\:\\@]")),o0=r(Vi+"*"),jd=r(Vi+"+"),i0=r(r(Te+"|"+t(Pe,ye,"[\\@]"))+"+"),sn=r(r("\\/"+o0)+"*"),jo=r("\\/"+r(jd+sn)+"?"),Uu=r(i0+sn),Ks=r(jd+sn),Uo="(?!"+Vi+")",_$=r(sn+"|"+jo+"|"+Uu+"|"+Ks+"|"+Uo),Vo=r(r(Vi+"|"+t("[\\/\\?]",Ue))+"*"),Hi=r(r(Vi+"|[\\/\\?]")+"*"),Ud=r(r("\\/\\/"+Md+sn)+"|"+jo+"|"+Ks+"|"+Uo),s0=r(Ge+"\\:"+Ud+r("\\?"+Vo)+"?"+r("\\#"+Hi)+"?"),a0=r(r("\\/\\/"+Md+sn)+"|"+jo+"|"+Uu+"|"+Uo),u0=r(a0+r("\\?"+Vo)+"?"+r("\\#"+Hi)+"?"),k$=r(s0+"|"+u0),$$=r(Ge+"\\:"+Ud+r("\\?"+Vo)+"?"),O$="^("+Ge+")\\:"+r(r("\\/\\/("+r("("+ke+")@")+"?("+ji+")"+r("\\:("+Ui+")")+"?)")+"?("+sn+"|"+jo+"|"+Ks+"|"+Uo+")")+r("\\?("+Vo+")")+"?"+r("\\#("+Hi+")")+"?$",N$="^(){0}"+r(r("\\/\\/("+r("("+ke+")@")+"?("+ji+")"+r("\\:("+Ui+")")+"?)")+"?("+sn+"|"+jo+"|"+Uu+"|"+Uo+")")+r("\\?("+Vo+")")+"?"+r("\\#("+Hi+")")+"?$",B$="^("+Ge+")\\:"+r(r("\\/\\/("+r("("+ke+")@")+"?("+ji+")"+r("\\:("+Ui+")")+"?)")+"?("+sn+"|"+jo+"|"+Ks+"|"+Uo+")")+r("\\?("+Vo+")")+"?$",L$="^"+r("\\#("+Hi+")")+"?$",M$="^"+r("("+ke+")@")+"?("+ji+")"+r("\\:("+Ui+")")+"?$";return{NOT_SCHEME:new RegExp(t("[^]",y,$,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",Pe,ye),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",Pe,ye),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",Pe,ye),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",Pe,ye),"g"),NOT_QUERY:new RegExp(t("[^\\%]",Pe,ye,"[\\:\\@\\/\\?]",Ue),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",Pe,ye,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",Pe,ye),"g"),UNRESERVED:new RegExp(Pe,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",Pe,He),"g"),PCT_ENCODED:new RegExp(Te,"g"),IPV4ADDRESS:new RegExp("^("+er+")$"),IPV6ADDRESS:new RegExp("^\\[?("+on+")"+r(r("\\%25|\\%(?!"+W+"{2})")+"("+Mo+")")+"?\\]?$")}}var u=a(!1),l=a(!0),c=(function(){function S(y,w){var $=[],N=!0,W=!1,le=void 0;try{for(var Se=y[Symbol.iterator](),Te;!(N=(Te=Se.next()).done)&&($.push(Te.value),!(w&&$.length===w));N=!0);}catch(Ze){W=!0,le=Ze}finally{try{!N&&Se.return&&Se.return()}finally{if(W)throw le}}return $}return function(y,w){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return S(y,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),p=function(S){if(Array.isArray(S)){for(var y=0,w=Array(S.length);y<S.length;y++)w[y]=S[y];return w}else return Array.from(S)},d=2147483647,f=36,m=1,g=26,h=38,D=700,E=72,x=128,T="-",F=/^xn--/,A=/[^\0-\x7E]/,L=/[\x2E\u3002\uFF0E\uFF61]/g,B={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=f-m,k=Math.floor,C=String.fromCharCode;function j(S){throw new RangeError(B[S])}function O(S,y){for(var w=[],$=S.length;$--;)w[$]=y(S[$]);return w}function M(S,y){var w=S.split("@"),$="";w.length>1&&($=w[0]+"@",S=w[1]),S=S.replace(L,".");var N=S.split("."),W=O(N,y).join(".");return $+W}function b(S){for(var y=[],w=0,$=S.length;w<$;){var N=S.charCodeAt(w++);if(N>=55296&&N<=56319&&w<$){var W=S.charCodeAt(w++);(W&64512)==56320?y.push(((N&1023)<<10)+(W&1023)+65536):(y.push(N),w--)}else y.push(N)}return y}var R=function(y){return String.fromCodePoint.apply(String,p(y))},Y=function(y){return y-48<10?y-22:y-65<26?y-65:y-97<26?y-97:f},J=function(y,w){return y+22+75*(y<26)-((w!=0)<<5)},te=function(y,w,$){var N=0;for(y=$?k(y/D):y>>1,y+=k(y/w);y>I*g>>1;N+=f)y=k(y/I);return k(N+(I+1)*y/(y+h))},Q=function(y){var w=[],$=y.length,N=0,W=x,le=E,Se=y.lastIndexOf(T);Se<0&&(Se=0);for(var Te=0;Te<Se;++Te)y.charCodeAt(Te)>=128&&j("not-basic"),w.push(y.charCodeAt(Te));for(var Ze=Se>0?Se+1:0;Ze<$;){for(var ye=N,He=1,Xe=f;;Xe+=f){Ze>=$&&j("invalid-input");var Ue=Y(y.charCodeAt(Ze++));(Ue>=f||Ue>k((d-N)/He))&&j("overflow"),N+=Ue*He;var Pe=Xe<=le?m:Xe>=le+g?g:Xe-le;if(Ue<Pe)break;var Ge=f-Pe;He>k(d/Ge)&&j("overflow"),He*=Ge}var ke=w.length+1;le=te(N-ye,ke,ye==0),k(N/ke)>d-W&&j("overflow"),W+=k(N/ke),N%=ke,w.splice(N++,0,W)}return String.fromCodePoint.apply(String,w)},he=function(y){var w=[];y=b(y);var $=y.length,N=x,W=0,le=E,Se=!0,Te=!1,Ze=void 0;try{for(var ye=y[Symbol.iterator](),He;!(Se=(He=ye.next()).done);Se=!0){var Xe=He.value;Xe<128&&w.push(C(Xe))}}catch(Gn){Te=!0,Ze=Gn}finally{try{!Se&&ye.return&&ye.return()}finally{if(Te)throw Ze}}var Ue=w.length,Pe=Ue;for(Ue&&w.push(T);Pe<$;){var Ge=d,ke=!0,Vn=!1,Vt=void 0;try{for(var er=y[Symbol.iterator](),$e;!(ke=($e=er.next()).done);ke=!0){var Ht=$e.value;Ht>=N&&Ht<Ge&&(Ge=Ht)}}catch(Gn){Vn=!0,Vt=Gn}finally{try{!ke&&er.return&&er.return()}finally{if(Vn)throw Vt}}var tr=Pe+1;Ge-N>k((d-W)/tr)&&j("overflow"),W+=(Ge-N)*tr,N=Ge;var kr=!0,Hn=!1,nn=void 0;try{for(var Mi=y[Symbol.iterator](),Gs;!(kr=(Gs=Mi.next()).done);kr=!0){var zs=Gs.value;if(zs<N&&++W>d&&j("overflow"),zs==N){for(var Bo=W,Lo=f;;Lo+=f){var on=Lo<=le?m:Lo>=le+g?g:Lo-le;if(Bo<on)break;var Mo=Bo-on,ju=f-on;w.push(C(J(on+Mo%ju,0))),Bo=k(Mo/ju)}w.push(C(J(Bo,0))),le=te(W,tr,Pe==Ue),W=0,++Pe}}}catch(Gn){Hn=!0,nn=Gn}finally{try{!kr&&Mi.return&&Mi.return()}finally{if(Hn)throw nn}}++W,++N}return w.join("")},We=function(y){return M(y,function(w){return F.test(w)?Q(w.slice(4).toLowerCase()):w})},pt=function(y){return M(y,function(w){return A.test(w)?"xn--"+he(w):w})},me={version:"2.1.0",ucs2:{decode:b,encode:R},decode:Q,encode:he,toASCII:pt,toUnicode:We},Ie={};function X(S){var y=S.charCodeAt(0),w=void 0;return y<16?w="%0"+y.toString(16).toUpperCase():y<128?w="%"+y.toString(16).toUpperCase():y<2048?w="%"+(y>>6|192).toString(16).toUpperCase()+"%"+(y&63|128).toString(16).toUpperCase():w="%"+(y>>12|224).toString(16).toUpperCase()+"%"+(y>>6&63|128).toString(16).toUpperCase()+"%"+(y&63|128).toString(16).toUpperCase(),w}function Ye(S){for(var y="",w=0,$=S.length;w<$;){var N=parseInt(S.substr(w+1,2),16);if(N<128)y+=String.fromCharCode(N),w+=3;else if(N>=194&&N<224){if($-w>=6){var W=parseInt(S.substr(w+4,2),16);y+=String.fromCharCode((N&31)<<6|W&63)}else y+=S.substr(w,6);w+=6}else if(N>=224){if($-w>=9){var le=parseInt(S.substr(w+4,2),16),Se=parseInt(S.substr(w+7,2),16);y+=String.fromCharCode((N&15)<<12|(le&63)<<6|Se&63)}else y+=S.substr(w,9);w+=9}else y+=S.substr(w,3),w+=3}return y}function Rr(S,y){function w($){var N=Ye($);return N.match(y.UNRESERVED)?N:$}return S.scheme&&(S.scheme=String(S.scheme).replace(y.PCT_ENCODED,w).toLowerCase().replace(y.NOT_SCHEME,"")),S.userinfo!==void 0&&(S.userinfo=String(S.userinfo).replace(y.PCT_ENCODED,w).replace(y.NOT_USERINFO,X).replace(y.PCT_ENCODED,n)),S.host!==void 0&&(S.host=String(S.host).replace(y.PCT_ENCODED,w).toLowerCase().replace(y.NOT_HOST,X).replace(y.PCT_ENCODED,n)),S.path!==void 0&&(S.path=String(S.path).replace(y.PCT_ENCODED,w).replace(S.scheme?y.NOT_PATH:y.NOT_PATH_NOSCHEME,X).replace(y.PCT_ENCODED,n)),S.query!==void 0&&(S.query=String(S.query).replace(y.PCT_ENCODED,w).replace(y.NOT_QUERY,X).replace(y.PCT_ENCODED,n)),S.fragment!==void 0&&(S.fragment=String(S.fragment).replace(y.PCT_ENCODED,w).replace(y.NOT_FRAGMENT,X).replace(y.PCT_ENCODED,n)),S}function z(S){return S.replace(/^0*(.*)/,"$1")||"0"}function ie(S,y){var w=S.match(y.IPV4ADDRESS)||[],$=c(w,2),N=$[1];return N?N.split(".").map(z).join("."):S}function H(S,y){var w=S.match(y.IPV6ADDRESS)||[],$=c(w,3),N=$[1],W=$[2];if(N){for(var le=N.toLowerCase().split("::").reverse(),Se=c(le,2),Te=Se[0],Ze=Se[1],ye=Ze?Ze.split(":").map(z):[],He=Te.split(":").map(z),Xe=y.IPV4ADDRESS.test(He[He.length-1]),Ue=Xe?7:8,Pe=He.length-Ue,Ge=Array(Ue),ke=0;ke<Ue;++ke)Ge[ke]=ye[ke]||He[Pe+ke]||"";Xe&&(Ge[Ue-1]=ie(Ge[Ue-1],y));var Vn=Ge.reduce(function(tr,kr,Hn){if(!kr||kr==="0"){var nn=tr[tr.length-1];nn&&nn.index+nn.length===Hn?nn.length++:tr.push({index:Hn,length:1})}return tr},[]),Vt=Vn.sort(function(tr,kr){return kr.length-tr.length})[0],er=void 0;if(Vt&&Vt.length>1){var $e=Ge.slice(0,Vt.index),Ht=Ge.slice(Vt.index+Vt.length);er=$e.join(":")+"::"+Ht.join(":")}else er=Ge.join(":");return W&&(er+="%"+W),er}else return S}var se=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,pe="".match(/(){0}/)[1]===void 0;function oe(S){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w={},$=y.iri!==!1?l:u;y.reference==="suffix"&&(S=(y.scheme?y.scheme+":":"")+"//"+S);var N=S.match(se);if(N){pe?(w.scheme=N[1],w.userinfo=N[3],w.host=N[4],w.port=parseInt(N[5],10),w.path=N[6]||"",w.query=N[7],w.fragment=N[8],isNaN(w.port)&&(w.port=N[5])):(w.scheme=N[1]||void 0,w.userinfo=S.indexOf("@")!==-1?N[3]:void 0,w.host=S.indexOf("//")!==-1?N[4]:void 0,w.port=parseInt(N[5],10),w.path=N[6]||"",w.query=S.indexOf("?")!==-1?N[7]:void 0,w.fragment=S.indexOf("#")!==-1?N[8]:void 0,isNaN(w.port)&&(w.port=S.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?N[4]:void 0)),w.host&&(w.host=H(ie(w.host,$),$)),w.scheme===void 0&&w.userinfo===void 0&&w.host===void 0&&w.port===void 0&&!w.path&&w.query===void 0?w.reference="same-document":w.scheme===void 0?w.reference="relative":w.fragment===void 0?w.reference="absolute":w.reference="uri",y.reference&&y.reference!=="suffix"&&y.reference!==w.reference&&(w.error=w.error||"URI is not a "+y.reference+" reference.");var W=Ie[(y.scheme||w.scheme||"").toLowerCase()];if(!y.unicodeSupport&&(!W||!W.unicodeSupport)){if(w.host&&(y.domainHost||W&&W.domainHost))try{w.host=me.toASCII(w.host.replace($.PCT_ENCODED,Ye).toLowerCase())}catch(le){w.error=w.error||"Host's domain name can not be converted to ASCII via punycode: "+le}Rr(w,u)}else Rr(w,$);W&&W.parse&&W.parse(w,y)}else w.error=w.error||"URI can not be parsed.";return w}function _e(S,y){var w=y.iri!==!1?l:u,$=[];return S.userinfo!==void 0&&($.push(S.userinfo),$.push("@")),S.host!==void 0&&$.push(H(ie(String(S.host),w),w).replace(w.IPV6ADDRESS,function(N,W,le){return"["+W+(le?"%25"+le:"")+"]"})),(typeof S.port=="number"||typeof S.port=="string")&&($.push(":"),$.push(String(S.port))),$.length?$.join(""):void 0}var jt=/^\.\.?\//,Zt=/^\/\.(\/|$)/,Un=/^\/\.\.(\/|$)/,dt=/^\/?(?:.|\n)*?(?=\/|$)/;function Xt(S){for(var y=[];S.length;)if(S.match(jt))S=S.replace(jt,"");else if(S.match(Zt))S=S.replace(Zt,"/");else if(S.match(Un))S=S.replace(Un,"/"),y.pop();else if(S==="."||S==="..")S="";else{var w=S.match(dt);if(w){var $=w[0];S=S.slice($.length),y.push($)}else throw new Error("Unexpected dot segment condition")}return y.join("")}function Ft(S){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=y.iri?l:u,$=[],N=Ie[(y.scheme||S.scheme||"").toLowerCase()];if(N&&N.serialize&&N.serialize(S,y),S.host&&!w.IPV6ADDRESS.test(S.host)){if(y.domainHost||N&&N.domainHost)try{S.host=y.iri?me.toUnicode(S.host):me.toASCII(S.host.replace(w.PCT_ENCODED,Ye).toLowerCase())}catch(Se){S.error=S.error||"Host's domain name can not be converted to "+(y.iri?"Unicode":"ASCII")+" via punycode: "+Se}}Rr(S,w),y.reference!=="suffix"&&S.scheme&&($.push(S.scheme),$.push(":"));var W=_e(S,y);if(W!==void 0&&(y.reference!=="suffix"&&$.push("//"),$.push(W),S.path&&S.path.charAt(0)!=="/"&&$.push("/")),S.path!==void 0){var le=S.path;!y.absolutePath&&(!N||!N.absolutePath)&&(le=Xt(le)),W===void 0&&(le=le.replace(/^\/\//,"/%2F")),$.push(le)}return S.query!==void 0&&($.push("?"),$.push(S.query)),S.fragment!==void 0&&($.push("#"),$.push(S.fragment)),$.join("")}function bt(S,y){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$=arguments[3],N={};return $||(S=oe(Ft(S,w),w),y=oe(Ft(y,w),w)),w=w||{},!w.tolerant&&y.scheme?(N.scheme=y.scheme,N.userinfo=y.userinfo,N.host=y.host,N.port=y.port,N.path=Xt(y.path||""),N.query=y.query):(y.userinfo!==void 0||y.host!==void 0||y.port!==void 0?(N.userinfo=y.userinfo,N.host=y.host,N.port=y.port,N.path=Xt(y.path||""),N.query=y.query):(y.path?(y.path.charAt(0)==="/"?N.path=Xt(y.path):((S.userinfo!==void 0||S.host!==void 0||S.port!==void 0)&&!S.path?N.path="/"+y.path:S.path?N.path=S.path.slice(0,S.path.lastIndexOf("/")+1)+y.path:N.path=y.path,N.path=Xt(N.path)),N.query=y.query):(N.path=S.path,y.query!==void 0?N.query=y.query:N.query=S.query),N.userinfo=S.userinfo,N.host=S.host,N.port=S.port),N.scheme=S.scheme),N.fragment=y.fragment,N}function Ir(S,y,w){var $=i({scheme:"null"},w);return Ft(bt(oe(S,$),oe(y,$),$,!0),$)}function Ut(S,y){return typeof S=="string"?S=Ft(oe(S,y),y):o(S)==="object"&&(S=oe(Ft(S,y),y)),S}function Hs(S,y,w){return typeof S=="string"?S=Ft(oe(S,w),w):o(S)==="object"&&(S=Ft(S,w)),typeof y=="string"?y=Ft(oe(y,w),w):o(y)==="object"&&(y=Ft(y,w)),S===y}function Lu(S,y){return S&&S.toString().replace(!y||!y.iri?u.ESCAPE:l.ESCAPE,X)}function br(S,y){return S&&S.toString().replace(!y||!y.iri?u.PCT_ENCODED:l.PCT_ENCODED,Ye)}var Bi={scheme:"http",domainHost:!0,parse:function(y,w){return y.host||(y.error=y.error||"HTTP URIs must have a host."),y},serialize:function(y,w){var $=String(y.scheme).toLowerCase()==="https";return(y.port===($?443:80)||y.port==="")&&(y.port=void 0),y.path||(y.path="/"),y}},Rd={scheme:"https",domainHost:Bi.domainHost,parse:Bi.parse,serialize:Bi.serialize};function Id(S){return typeof S.secure=="boolean"?S.secure:String(S.scheme).toLowerCase()==="wss"}var Li={scheme:"ws",domainHost:!0,parse:function(y,w){var $=y;return $.secure=Id($),$.resourceName=($.path||"/")+($.query?"?"+$.query:""),$.path=void 0,$.query=void 0,$},serialize:function(y,w){if((y.port===(Id(y)?443:80)||y.port==="")&&(y.port=void 0),typeof y.secure=="boolean"&&(y.scheme=y.secure?"wss":"ws",y.secure=void 0),y.resourceName){var $=y.resourceName.split("?"),N=c($,2),W=N[0],le=N[1];y.path=W&&W!=="/"?W:void 0,y.query=le,y.resourceName=void 0}return y.fragment=void 0,y}},_d={scheme:"wss",domainHost:Li.domainHost,parse:Li.parse,serialize:Li.serialize},GS={},zS=!0,kd="[A-Za-z0-9\\-\\.\\_\\~"+(zS?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",_r="[0-9A-Fa-f]",KS=r(r("%[EFef]"+_r+"%"+_r+_r+"%"+_r+_r)+"|"+r("%[89A-Fa-f]"+_r+"%"+_r+_r)+"|"+r("%"+_r+_r)),qS="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",WS="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",JS=t(WS,'[\\"\\\\]'),QS="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",YS=new RegExp(kd,"g"),No=new RegExp(KS,"g"),ZS=new RegExp(t("[^]",qS,"[\\.]",'[\\"]',JS),"g"),$d=new RegExp(t("[^]",kd,QS),"g"),XS=$d;function Mu(S){var y=Ye(S);return y.match(YS)?y:S}var Od={scheme:"mailto",parse:function(y,w){var $=y,N=$.to=$.path?$.path.split(","):[];if($.path=void 0,$.query){for(var W=!1,le={},Se=$.query.split("&"),Te=0,Ze=Se.length;Te<Ze;++Te){var ye=Se[Te].split("=");switch(ye[0]){case"to":for(var He=ye[1].split(","),Xe=0,Ue=He.length;Xe<Ue;++Xe)N.push(He[Xe]);break;case"subject":$.subject=br(ye[1],w);break;case"body":$.body=br(ye[1],w);break;default:W=!0,le[br(ye[0],w)]=br(ye[1],w);break}}W&&($.headers=le)}$.query=void 0;for(var Pe=0,Ge=N.length;Pe<Ge;++Pe){var ke=N[Pe].split("@");if(ke[0]=br(ke[0]),w.unicodeSupport)ke[1]=br(ke[1],w).toLowerCase();else try{ke[1]=me.toASCII(br(ke[1],w).toLowerCase())}catch(Vn){$.error=$.error||"Email address's domain name can not be converted to ASCII via punycode: "+Vn}N[Pe]=ke.join("@")}return $},serialize:function(y,w){var $=y,N=s(y.to);if(N){for(var W=0,le=N.length;W<le;++W){var Se=String(N[W]),Te=Se.lastIndexOf("@"),Ze=Se.slice(0,Te).replace(No,Mu).replace(No,n).replace(ZS,X),ye=Se.slice(Te+1);try{ye=w.iri?me.toUnicode(ye):me.toASCII(br(ye,w).toLowerCase())}catch(Pe){$.error=$.error||"Email address's domain name can not be converted to "+(w.iri?"Unicode":"ASCII")+" via punycode: "+Pe}N[W]=Ze+"@"+ye}$.path=N.join(",")}var He=y.headers=y.headers||{};y.subject&&(He.subject=y.subject),y.body&&(He.body=y.body);var Xe=[];for(var Ue in He)He[Ue]!==GS[Ue]&&Xe.push(Ue.replace(No,Mu).replace(No,n).replace($d,X)+"="+He[Ue].replace(No,Mu).replace(No,n).replace(XS,X));return Xe.length&&($.query=Xe.join("&")),$}},e0=/^([^\:]+)\:(.*)/,Nd={scheme:"urn",parse:function(y,w){var $=y.path&&y.path.match(e0),N=y;if($){var W=w.scheme||N.scheme||"urn",le=$[1].toLowerCase(),Se=$[2],Te=W+":"+(w.nid||le),Ze=Ie[Te];N.nid=le,N.nss=Se,N.path=void 0,Ze&&(N=Ze.parse(N,w))}else N.error=N.error||"URN can not be parsed.";return N},serialize:function(y,w){var $=w.scheme||y.scheme||"urn",N=y.nid,W=$+":"+(w.nid||N),le=Ie[W];le&&(y=le.serialize(y,w));var Se=y,Te=y.nss;return Se.path=(N||w.nid)+":"+Te,Se}},t0=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Bd={scheme:"urn:uuid",parse:function(y,w){var $=y;return $.uuid=$.nss,$.nss=void 0,!w.tolerant&&(!$.uuid||!$.uuid.match(t0))&&($.error=$.error||"UUID is not valid."),$},serialize:function(y,w){var $=y;return $.nss=(y.uuid||"").toLowerCase(),$}};Ie[Bi.scheme]=Bi,Ie[Rd.scheme]=Rd,Ie[Li.scheme]=Li,Ie[_d.scheme]=_d,Ie[Od.scheme]=Od,Ie[Nd.scheme]=Nd,Ie[Bd.scheme]=Bd,e.SCHEMES=Ie,e.pctEncChar=X,e.pctDecChars=Ye,e.parse=oe,e.removeDotSegments=Xt,e.serialize=Ft,e.resolveComponents=bt,e.resolve=Ir,e.normalize=Ut,e.equal=Hs,e.escapeComponent=Lu,e.unescapeComponent=br,Object.defineProperty(e,"__esModule",{value:!0})}))});var vu=U((K5,xC)=>{"use strict";xC.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,n,s;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),o=s.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[n]))return!1;for(n=o;n--!==0;){var i=s[n];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r}});var EC=U((q5,SC)=>{"use strict";SC.exports=function(t){for(var r=0,o=t.length,n=0,s;n<o;)r++,s=t.charCodeAt(n++),s>=55296&&s<=56319&&n<o&&(s=t.charCodeAt(n),(s&64512)==56320&&n++);return r}});var $o=U((W5,AC)=>{"use strict";AC.exports={copy:F_,checkDataType:Op,checkDataTypes:T_,coerceToTypes:R_,toHash:Bp,getProperty:Lp,escapeQuotes:Mp,equal:vu(),ucs2length:EC(),varOccurences:k_,varReplace:$_,schemaHasRules:O_,schemaHasRulesExcept:N_,schemaUnknownRules:B_,toQuotedString:Np,getPathExpr:L_,getPath:M_,getData:V_,unescapeFragment:H_,unescapeJsonPointer:Up,escapeFragment:G_,escapeJsonPointer:jp};function F_(e,t){t=t||{};for(var r in e)t[r]=e[r];return t}function Op(e,t,r,o){var n=o?" !== ":" === ",s=o?" || ":" && ",i=o?"!":"",a=o?"":"!";switch(e){case"null":return t+n+"null";case"array":return i+"Array.isArray("+t+")";case"object":return"("+i+t+s+"typeof "+t+n+'"object"'+s+a+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+n+'"number"'+s+a+"("+t+" % 1)"+s+t+n+t+(r?s+i+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+n+'"'+e+'"'+(r?s+i+"isFinite("+t+")":"")+")";default:return"typeof "+t+n+'"'+e+'"'}}function T_(e,t,r){switch(e.length){case 1:return Op(e[0],t,r,!0);default:var o="",n=Bp(e);n.array&&n.object&&(o=n.null?"(":"(!"+t+" || ",o+="typeof "+t+' !== "object")',delete n.null,delete n.array,delete n.object),n.number&&delete n.integer;for(var s in n)o+=(o?" && ":"")+Op(s,t,r,!0);return o}}var wC=Bp(["string","number","integer","boolean","null"]);function R_(e,t){if(Array.isArray(t)){for(var r=[],o=0;o<t.length;o++){var n=t[o];(wC[n]||e==="array"&&n==="array")&&(r[r.length]=n)}if(r.length)return r}else{if(wC[t])return[t];if(e==="array"&&t==="array")return["array"]}}function Bp(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var I_=/^[a-z$_][a-z$_0-9]*$/i,__=/'|\\/g;function Lp(e){return typeof e=="number"?"["+e+"]":I_.test(e)?"."+e:"['"+Mp(e)+"']"}function Mp(e){return e.replace(__,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function k_(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0}function $_(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")}function O_(e,t){if(typeof e=="boolean")return!e;for(var r in e)if(t[r])return!0}function N_(e,t,r){if(typeof e=="boolean")return!e&&r!="not";for(var o in e)if(o!=r&&t[o])return!0}function B_(e,t){if(typeof e!="boolean"){for(var r in e)if(!t[r])return r}}function Np(e){return"'"+Mp(e)+"'"}function L_(e,t,r,o){var n=r?"'/' + "+t+(o?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):o?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'";return PC(e,n)}function M_(e,t,r){var o=Np(r?"/"+jp(t):Lp(t));return PC(e,o)}var j_=/^\/(?:[^~]|~0|~1)*$/,U_=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function V_(e,t,r){var o,n,s,i;if(e==="")return"rootData";if(e[0]=="/"){if(!j_.test(e))throw new Error("Invalid JSON-pointer: "+e);n=e,s="rootData"}else{if(i=e.match(U_),!i)throw new Error("Invalid JSON-pointer: "+e);if(o=+i[1],n=i[2],n=="#"){if(o>=t)throw new Error("Cannot access property/index "+o+" levels up, current level is "+t);return r[t-o]}if(o>t)throw new Error("Cannot access data "+o+" levels up, current level is "+t);if(s="data"+(t-o||""),!n)return s}for(var a=s,u=n.split("/"),l=0;l<u.length;l++){var c=u[l];c&&(s+=Lp(Up(c)),a+=" && "+s)}return a}function PC(e,t){return e=='""'?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function H_(e){return Up(decodeURIComponent(e))}function G_(e){return encodeURIComponent(jp(e))}function jp(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Up(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}});var Vp=U((J5,FC)=>{"use strict";var z_=$o();FC.exports=K_;function K_(e){z_.copy(e,this)}});var RC=U((Q5,TC)=>{"use strict";var Bn=TC.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var o=typeof r=="function"?r:r.pre||function(){},n=r.post||function(){};Du(t,o,n,e,"",e)};Bn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};Bn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Bn.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Bn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Du(e,t,r,o,n,s,i,a,u,l){if(o&&typeof o=="object"&&!Array.isArray(o)){t(o,n,s,i,a,u,l);for(var c in o){var p=o[c];if(Array.isArray(p)){if(c in Bn.arrayKeywords)for(var d=0;d<p.length;d++)Du(e,t,r,p[d],n+"/"+c+"/"+d,s,n,c,o,d)}else if(c in Bn.propsKeywords){if(p&&typeof p=="object")for(var f in p)Du(e,t,r,p[f],n+"/"+c+"/"+q_(f),s,n,c,o,f)}else(c in Bn.keywords||e.allKeys&&!(c in Bn.skipKeywords))&&Du(e,t,r,p,n+"/"+c,s,n,c,o)}r(o,n,s,i,a,u,l)}}function q_(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Eu=U((Y5,$C)=>{"use strict";var js=bC(),IC=vu(),xu=$o(),yu=Vp(),W_=RC();$C.exports=Mn;Mn.normalizeId=Ln;Mn.fullPath=Cu;Mn.url=bu;Mn.ids=X_;Mn.inlineRef=Hp;Mn.schema=Su;function Mn(e,t,r){var o=this._refs[r];if(typeof o=="string")if(this._refs[o])o=this._refs[o];else return Mn.call(this,e,t,o);if(o=o||this._schemas[r],o instanceof yu)return Hp(o.schema,this._opts.inlineRefs)?o.schema:o.validate||this._compile(o);var n=Su.call(this,t,r),s,i,a;return n&&(s=n.schema,t=n.root,a=n.baseId),s instanceof yu?i=s.validate||e.call(this,s.schema,t,void 0,a):s!==void 0&&(i=Hp(s,this._opts.inlineRefs)?s:e.call(this,s,t,void 0,a)),i}function Su(e,t){var r=js.parse(t),o=kC(r),n=Cu(this._getId(e.schema));if(Object.keys(e.schema).length===0||o!==n){var s=Ln(o),i=this._refs[s];if(typeof i=="string")return J_.call(this,e,i,r);if(i instanceof yu)i.validate||this._compile(i),e=i;else if(i=this._schemas[s],i instanceof yu){if(i.validate||this._compile(i),s==Ln(t))return{schema:i,root:e,baseId:n};e=i}else return;if(!e.schema)return;n=Cu(this._getId(e.schema))}return _C.call(this,r,n,e.schema,e)}function J_(e,t,r){var o=Su.call(this,e,t);if(o){var n=o.schema,s=o.baseId;e=o.root;var i=this._getId(n);return i&&(s=bu(s,i)),_C.call(this,r,s,n,e)}}var Q_=xu.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function _C(e,t,r,o){if(e.fragment=e.fragment||"",e.fragment.slice(0,1)=="/"){for(var n=e.fragment.split("/"),s=1;s<n.length;s++){var i=n[s];if(i){if(i=xu.unescapeFragment(i),r=r[i],r===void 0)break;var a;if(!Q_[i]&&(a=this._getId(r),a&&(t=bu(t,a)),r.$ref)){var u=bu(t,r.$ref),l=Su.call(this,o,u);l&&(r=l.schema,o=l.root,t=l.baseId)}}}if(r!==void 0&&r!==o.schema)return{schema:r,root:o,baseId:t}}}var Y_=xu.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Hp(e,t){if(t===!1)return!1;if(t===void 0||t===!0)return Gp(e);if(t)return zp(e)<=t}function Gp(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(t=e[r],typeof t=="object"&&!Gp(t))return!1}else for(var o in e)if(o=="$ref"||(t=e[o],typeof t=="object"&&!Gp(t)))return!1;return!0}function zp(e){var t=0,r;if(Array.isArray(e)){for(var o=0;o<e.length;o++)if(r=e[o],typeof r=="object"&&(t+=zp(r)),t==1/0)return 1/0}else for(var n in e){if(n=="$ref")return 1/0;if(Y_[n])t++;else if(r=e[n],typeof r=="object"&&(t+=zp(r)+1),t==1/0)return 1/0}return t}function Cu(e,t){t!==!1&&(e=Ln(e));var r=js.parse(e);return kC(r)}function kC(e){return js.serialize(e).split("#")[0]+"#"}var Z_=/#\/?$/;function Ln(e){return e?e.replace(Z_,""):""}function bu(e,t){return t=Ln(t),js.resolve(e,t)}function X_(e){var t=Ln(this._getId(e)),r={"":t},o={"":Cu(t,!1)},n={},s=this;return W_(e,{allKeys:!0},function(i,a,u,l,c,p,d){if(a!==""){var f=s._getId(i),m=r[l],g=o[l]+"/"+c;if(d!==void 0&&(g+="/"+(typeof d=="number"?d:xu.escapeFragment(d))),typeof f=="string"){f=m=Ln(m?js.resolve(m,f):f);var h=s._refs[f];if(typeof h=="string"&&(h=s._refs[h]),h&&h.schema){if(!IC(i,h.schema))throw new Error('id "'+f+'" resolves to more than one schema')}else if(f!=Ln(g))if(f[0]=="#"){if(n[f]&&!IC(i,n[f]))throw new Error('id "'+f+'" resolves to more than one schema');n[f]=i}else s._refs[f]=g}r[a]=m,o[a]=g}}),n}});var wu=U((Z5,NC)=>{"use strict";var Kp=Eu();NC.exports={Validation:OC(ek),MissingRef:OC(qp)};function ek(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0}qp.message=function(e,t){return"can't resolve reference "+t+" from id "+e};function qp(e,t,r){this.message=r||qp.message(e,t),this.missingRef=Kp.url(e,t),this.missingSchema=Kp.normalizeId(Kp.fullPath(this.missingRef))}function OC(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}});var Wp=U((X5,BC)=>{"use strict";BC.exports=function(e,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var r=typeof t.cycles=="boolean"?t.cycles:!1,o=t.cmp&&(function(s){return function(i){return function(a,u){var l={key:a,value:i[a]},c={key:u,value:i[u]};return s(l,c)}}})(t.cmp),n=[];return(function s(i){if(i&&i.toJSON&&typeof i.toJSON=="function"&&(i=i.toJSON()),i!==void 0){if(typeof i=="number")return isFinite(i)?""+i:"null";if(typeof i!="object")return JSON.stringify(i);var a,u;if(Array.isArray(i)){for(u="[",a=0;a<i.length;a++)a&&(u+=","),u+=s(i[a])||"null";return u+"]"}if(i===null)return"null";if(n.indexOf(i)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var l=n.push(i)-1,c=Object.keys(i).sort(o&&o(i));for(u="",a=0;a<c.length;a++){var p=c[a],d=s(i[p]);d&&(u&&(u+=","),u+=JSON.stringify(p)+":"+d)}return n.splice(l,1),"{"+u+"}"}})(e)}});var Jp=U((e7,LC)=>{"use strict";LC.exports=function(t,r,o){var n="",s=t.schema.$async===!0,i=t.util.schemaHasRulesExcept(t.schema,t.RULES.all,"$ref"),a=t.self._getId(t.schema);if(t.opts.strictKeywords){var u=t.util.schemaUnknownRules(t.schema,t.RULES.keywords);if(u){var l="unknown keyword: "+u;if(t.opts.strictKeywords==="log")t.logger.warn(l);else throw new Error(l)}}if(t.isTop&&(n+=" var validate = ",s&&(t.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(t.opts.sourceCode||t.opts.processCode)&&(n+=" "+("/*# sourceURL="+a+" */")+" ")),typeof t.schema=="boolean"||!(i||t.schema.$ref)){var r="false schema",c=t.level,p=t.dataLevel,d=t.schema[r],f=t.schemaPath+t.util.getProperty(r),m=t.errSchemaPath+"/"+r,F=!t.opts.allErrors,B,g="data"+(p||""),T="valid"+c;if(t.schema===!1){t.isTop?F=!0:n+=" var "+T+" = false; ";var h=h||[];h.push(n),n="",t.createErrors!==!1?(n+=" { keyword: '"+(B||"false schema")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(m)+" , params: {} ",t.opts.messages!==!1&&(n+=" , message: 'boolean schema is false' "),t.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+g+" "),n+=" } "):n+=" {} ";var D=n;n=h.pop(),!t.compositeRule&&F?t.async?n+=" throw new ValidationError(["+D+"]); ":n+=" validate.errors = ["+D+"]; return false; ":n+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else t.isTop?s?n+=" return data; ":n+=" validate.errors = null; return true; ":n+=" var "+T+" = true; ";return t.isTop&&(n+=" }; return validate; "),n}if(t.isTop){var E=t.isTop,c=t.level=0,p=t.dataLevel=0,g="data";if(t.rootId=t.resolve.fullPath(t.self._getId(t.root.schema)),t.baseId=t.baseId||t.rootId,delete t.isTop,t.dataPathArr=[""],t.schema.default!==void 0&&t.opts.useDefaults&&t.opts.strictDefaults){var x="default is ignored in the schema root";if(t.opts.strictDefaults==="log")t.logger.warn(x);else throw new Error(x)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{var c=t.level,p=t.dataLevel,g="data"+(p||"");if(a&&(t.baseId=t.resolve.url(t.baseId,a)),s&&!t.async)throw new Error("async schema in sync schema");n+=" var errs_"+c+" = errors;"}var T="valid"+c,F=!t.opts.allErrors,A="",L="",B,I=t.schema.type,k=Array.isArray(I);if(I&&t.opts.nullable&&t.schema.nullable===!0&&(k?I.indexOf("null")==-1&&(I=I.concat("null")):I!="null"&&(I=[I,"null"],k=!0)),k&&I.length==1&&(I=I[0],k=!1),t.schema.$ref&&i){if(t.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+t.errSchemaPath+'" (see option extendRefs)');t.opts.extendRefs!==!0&&(i=!1,t.logger.warn('$ref: keywords ignored in schema at path "'+t.errSchemaPath+'"'))}if(t.schema.$comment&&t.opts.$comment&&(n+=" "+t.RULES.all.$comment.code(t,"$comment")),I){if(t.opts.coerceTypes)var C=t.util.coerceToTypes(t.opts.coerceTypes,I);var j=t.RULES.types[I];if(C||k||j===!0||j&&!dt(j)){var f=t.schemaPath+".type",m=t.errSchemaPath+"/type",f=t.schemaPath+".type",m=t.errSchemaPath+"/type",O=k?"checkDataTypes":"checkDataType";if(n+=" if ("+t.util[O](I,g,t.opts.strictNumbers,!0)+") { ",C){var M="dataType"+c,b="coerced"+c;n+=" var "+M+" = typeof "+g+"; var "+b+" = undefined; ",t.opts.coerceTypes=="array"&&(n+=" if ("+M+" == 'object' && Array.isArray("+g+") && "+g+".length == 1) { "+g+" = "+g+"[0]; "+M+" = typeof "+g+"; if ("+t.util.checkDataType(t.schema.type,g,t.opts.strictNumbers)+") "+b+" = "+g+"; } "),n+=" if ("+b+" !== undefined) ; ";var R=C;if(R)for(var Y,J=-1,te=R.length-1;J<te;)Y=R[J+=1],Y=="string"?n+=" else if ("+M+" == 'number' || "+M+" == 'boolean') "+b+" = '' + "+g+"; else if ("+g+" === null) "+b+" = ''; ":Y=="number"||Y=="integer"?(n+=" else if ("+M+" == 'boolean' || "+g+" === null || ("+M+" == 'string' && "+g+" && "+g+" == +"+g+" ",Y=="integer"&&(n+=" && !("+g+" % 1)"),n+=")) "+b+" = +"+g+"; "):Y=="boolean"?n+=" else if ("+g+" === 'false' || "+g+" === 0 || "+g+" === null) "+b+" = false; else if ("+g+" === 'true' || "+g+" === 1) "+b+" = true; ":Y=="null"?n+=" else if ("+g+" === '' || "+g+" === 0 || "+g+" === false) "+b+" = null; ":t.opts.coerceTypes=="array"&&Y=="array"&&(n+=" else if ("+M+" == 'string' || "+M+" == 'number' || "+M+" == 'boolean' || "+g+" == null) "+b+" = ["+g+"]; ");n+=" else { ";var h=h||[];h.push(n),n="",t.createErrors!==!1?(n+=" { keyword: '"+(B||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(m)+" , params: { type: '",k?n+=""+I.join(","):n+=""+I,n+="' } ",t.opts.messages!==!1&&(n+=" , message: 'should be ",k?n+=""+I.join(","):n+=""+I,n+="' "),t.opts.verbose&&(n+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+g+" "),n+=" } "):n+=" {} ";var D=n;n=h.pop(),!t.compositeRule&&F?t.async?n+=" throw new ValidationError(["+D+"]); ":n+=" validate.errors = ["+D+"]; return false; ":n+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+b+" !== undefined) { ";var Q=p?"data"+(p-1||""):"parentData",he=p?t.dataPathArr[p]:"parentDataProperty";n+=" "+g+" = "+b+"; ",p||(n+="if ("+Q+" !== undefined)"),n+=" "+Q+"["+he+"] = "+b+"; } "}else{var h=h||[];h.push(n),n="",t.createErrors!==!1?(n+=" { keyword: '"+(B||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(m)+" , params: { type: '",k?n+=""+I.join(","):n+=""+I,n+="' } ",t.opts.messages!==!1&&(n+=" , message: 'should be ",k?n+=""+I.join(","):n+=""+I,n+="' "),t.opts.verbose&&(n+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+g+" "),n+=" } "):n+=" {} ";var D=n;n=h.pop(),!t.compositeRule&&F?t.async?n+=" throw new ValidationError(["+D+"]); ":n+=" validate.errors = ["+D+"]; return false; ":n+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } "}}if(t.schema.$ref&&!i)n+=" "+t.RULES.all.$ref.code(t,"$ref")+" ",F&&(n+=" } if (errors === ",E?n+="0":n+="errs_"+c,n+=") { ",L+="}");else{var We=t.RULES;if(We){for(var j,pt=-1,me=We.length-1;pt<me;)if(j=We[pt+=1],dt(j)){if(j.type&&(n+=" if ("+t.util.checkDataType(j.type,g,t.opts.strictNumbers)+") { "),t.opts.useDefaults){if(j.type=="object"&&t.schema.properties){var d=t.schema.properties,Ie=Object.keys(d),X=Ie;if(X)for(var Ye,Rr=-1,z=X.length-1;Rr<z;){Ye=X[Rr+=1];var ie=d[Ye];if(ie.default!==void 0){var H=g+t.util.getProperty(Ye);if(t.compositeRule){if(t.opts.strictDefaults){var x="default is ignored for: "+H;if(t.opts.strictDefaults==="log")t.logger.warn(x);else throw new Error(x)}}else n+=" if ("+H+" === undefined ",t.opts.useDefaults=="empty"&&(n+=" || "+H+" === null || "+H+" === '' "),n+=" ) "+H+" = ",t.opts.useDefaults=="shared"?n+=" "+t.useDefault(ie.default)+" ":n+=" "+JSON.stringify(ie.default)+" ",n+="; "}}}else if(j.type=="array"&&Array.isArray(t.schema.items)){var se=t.schema.items;if(se){for(var ie,J=-1,pe=se.length-1;J<pe;)if(ie=se[J+=1],ie.default!==void 0){var H=g+"["+J+"]";if(t.compositeRule){if(t.opts.strictDefaults){var x="default is ignored for: "+H;if(t.opts.strictDefaults==="log")t.logger.warn(x);else throw new Error(x)}}else n+=" if ("+H+" === undefined ",t.opts.useDefaults=="empty"&&(n+=" || "+H+" === null || "+H+" === '' "),n+=" ) "+H+" = ",t.opts.useDefaults=="shared"?n+=" "+t.useDefault(ie.default)+" ":n+=" "+JSON.stringify(ie.default)+" ",n+="; "}}}}var oe=j.rules;if(oe){for(var _e,jt=-1,Zt=oe.length-1;jt<Zt;)if(_e=oe[jt+=1],Xt(_e)){var Un=_e.code(t,_e.keyword,j.type);Un&&(n+=" "+Un+" ",F&&(A+="}"))}}if(F&&(n+=" "+A+" ",A=""),j.type&&(n+=" } ",I&&I===j.type&&!C)){n+=" else { ";var f=t.schemaPath+".type",m=t.errSchemaPath+"/type",h=h||[];h.push(n),n="",t.createErrors!==!1?(n+=" { keyword: '"+(B||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(m)+" , params: { type: '",k?n+=""+I.join(","):n+=""+I,n+="' } ",t.opts.messages!==!1&&(n+=" , message: 'should be ",k?n+=""+I.join(","):n+=""+I,n+="' "),t.opts.verbose&&(n+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+g+" "),n+=" } "):n+=" {} ";var D=n;n=h.pop(),!t.compositeRule&&F?t.async?n+=" throw new ValidationError(["+D+"]); ":n+=" validate.errors = ["+D+"]; return false; ":n+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "}F&&(n+=" if (errors === ",E?n+="0":n+="errs_"+c,n+=") { ",L+="}")}}}F&&(n+=" "+L+" "),E?(s?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+T+" = errors === errs_"+c+";";function dt(bt){for(var Ir=bt.rules,Ut=0;Ut<Ir.length;Ut++)if(Xt(Ir[Ut]))return!0}function Xt(bt){return t.schema[bt.keyword]!==void 0||bt.implements&&Ft(bt)}function Ft(bt){for(var Ir=bt.implements,Ut=0;Ut<Ir.length;Ut++)if(t.schema[Ir[Ut]]!==void 0)return!0}return n}});var HC=U((t7,VC)=>{"use strict";var Pu=Eu(),Fu=$o(),jC=wu(),tk=Wp(),MC=Jp(),rk=Fu.ucs2length,nk=vu(),ok=jC.Validation;VC.exports=Qp;function Qp(e,t,r,o){var n=this,s=this._opts,i=[void 0],a={},u=[],l={},c=[],p={},d=[];t=t||{schema:e,refVal:i,refs:a};var f=ik.call(this,e,t,o),m=this._compilations[f.index];if(f.compiling)return m.callValidate=x;var g=this._formats,h=this.RULES;try{var D=T(e,t,r,o);m.validate=D;var E=m.callValidate;return E&&(E.schema=D.schema,E.errors=null,E.refs=D.refs,E.refVal=D.refVal,E.root=D.root,E.$async=D.$async,s.sourceCode&&(E.source=D.source)),D}finally{sk.call(this,e,t,o)}function x(){var O=m.validate,M=O.apply(this,arguments);return x.errors=O.errors,M}function T(O,M,b,R){var Y=!M||M&&M.schema==O;if(M.schema!=t.schema)return Qp.call(n,O,M,b,R);var J=O.$async===!0,te=MC({isTop:!0,schema:O,isRoot:Y,baseId:R,root:M,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:jC.MissingRef,RULES:h,validate:MC,util:Fu,resolve:Pu,resolveRef:F,usePattern:k,useDefault:C,useCustomRule:j,opts:s,formats:g,logger:n.logger,self:n});te=Au(i,lk)+Au(u,ak)+Au(c,uk)+Au(d,ck)+te,s.processCode&&(te=s.processCode(te,O));var Q;try{var he=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",te);Q=he(n,h,g,t,i,c,d,nk,rk,ok),i[0]=Q}catch(We){throw n.logger.error("Error compiling schema, function code:",te),We}return Q.schema=O,Q.errors=null,Q.refs=a,Q.refVal=i,Q.root=Y?Q:M,J&&(Q.$async=!0),s.sourceCode===!0&&(Q.source={code:te,patterns:u,defaults:c}),Q}function F(O,M,b){M=Pu.url(O,M);var R=a[M],Y,J;if(R!==void 0)return Y=i[R],J="refVal["+R+"]",I(Y,J);if(!b&&t.refs){var te=t.refs[M];if(te!==void 0)return Y=t.refVal[te],J=A(M,Y),I(Y,J)}J=A(M);var Q=Pu.call(n,T,t,M);if(Q===void 0){var he=r&&r[M];he&&(Q=Pu.inlineRef(he,s.inlineRefs)?he:Qp.call(n,he,t,r,O))}if(Q===void 0)L(M);else return B(M,Q),I(Q,J)}function A(O,M){var b=i.length;return i[b]=M,a[O]=b,"refVal"+b}function L(O){delete a[O]}function B(O,M){var b=a[O];i[b]=M}function I(O,M){return typeof O=="object"||typeof O=="boolean"?{code:M,schema:O,inline:!0}:{code:M,$async:O&&!!O.$async}}function k(O){var M=l[O];return M===void 0&&(M=l[O]=u.length,u[M]=O),"pattern"+M}function C(O){switch(typeof O){case"boolean":case"number":return""+O;case"string":return Fu.toQuotedString(O);case"object":if(O===null)return"null";var M=tk(O),b=p[M];return b===void 0&&(b=p[M]=c.length,c[b]=O),"default"+b}}function j(O,M,b,R){if(n._opts.validateSchema!==!1){var Y=O.definition.dependencies;if(Y&&!Y.every(function(X){return Object.prototype.hasOwnProperty.call(b,X)}))throw new Error("parent schema must have all required keywords: "+Y.join(","));var J=O.definition.validateSchema;if(J){var te=J(M);if(!te){var Q="keyword schema is invalid: "+n.errorsText(J.errors);if(n._opts.validateSchema=="log")n.logger.error(Q);else throw new Error(Q)}}}var he=O.definition.compile,We=O.definition.inline,pt=O.definition.macro,me;if(he)me=he.call(n,M,b,R);else if(pt)me=pt.call(n,M,b,R),s.validateSchema!==!1&&n.validateSchema(me,!0);else if(We)me=We.call(n,R,O.keyword,M,b);else if(me=O.definition.validate,!me)return;if(me===void 0)throw new Error('custom keyword "'+O.keyword+'"failed to compile');var Ie=d.length;return d[Ie]=me,{code:"customRule"+Ie,validate:me}}}function ik(e,t,r){var o=UC.call(this,e,t,r);return o>=0?{index:o,compiling:!0}:(o=this._compilations.length,this._compilations[o]={schema:e,root:t,baseId:r},{index:o,compiling:!1})}function sk(e,t,r){var o=UC.call(this,e,t,r);o>=0&&this._compilations.splice(o,1)}function UC(e,t,r){for(var o=0;o<this._compilations.length;o++){var n=this._compilations[o];if(n.schema==e&&n.root==t&&n.baseId==r)return o}return-1}function ak(e,t){return"var pattern"+e+" = new RegExp("+Fu.toQuotedString(t[e])+");"}function uk(e){return"var default"+e+" = defaults["+e+"];"}function lk(e,t){return t[e]===void 0?"":"var refVal"+e+" = refVal["+e+"];"}function ck(e){return"var customRule"+e+" = customRules["+e+"];"}function Au(e,t){if(!e.length)return"";for(var r="",o=0;o<e.length;o++)r+=t(o,e);return r}});var zC=U((r7,GC)=>{"use strict";var Tu=GC.exports=function(){this._cache={}};Tu.prototype.put=function(t,r){this._cache[t]=r};Tu.prototype.get=function(t){return this._cache[t]};Tu.prototype.del=function(t){delete this._cache[t]};Tu.prototype.clear=function(){this._cache={}}});var nb=U((n7,rb)=>{"use strict";var pk=$o(),dk=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,fk=[0,31,28,31,30,31,30,31,31,30,31,30,31],mk=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,KC=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,gk=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,hk=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,qC=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,WC=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,JC=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,QC=/^(?:\/(?:[^~/]|~0|~1)*)*$/,YC=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,ZC=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;rb.exports=Ru;function Ru(e){return e=e=="full"?"full":"fast",pk.copy(Ru[e])}Ru.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":qC,url:WC,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:KC,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:tb,uuid:JC,"json-pointer":QC,"json-pointer-uri-fragment":YC,"relative-json-pointer":ZC};Ru.full={date:XC,time:eb,"date-time":yk,uri:bk,"uri-reference":hk,"uri-template":qC,url:WC,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:KC,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:tb,uuid:JC,"json-pointer":QC,"json-pointer-uri-fragment":YC,"relative-json-pointer":ZC};function vk(e){return e%4===0&&(e%100!==0||e%400===0)}function XC(e){var t=e.match(dk);if(!t)return!1;var r=+t[1],o=+t[2],n=+t[3];return o>=1&&o<=12&&n>=1&&n<=(o==2&&vk(r)?29:fk[o])}function eb(e,t){var r=e.match(mk);if(!r)return!1;var o=r[1],n=r[2],s=r[3],i=r[5];return(o<=23&&n<=59&&s<=59||o==23&&n==59&&s==60)&&(!t||i)}var Dk=/t|\s/i;function yk(e){var t=e.split(Dk);return t.length==2&&XC(t[0])&&eb(t[1],!0)}var Ck=/\/|:/;function bk(e){return Ck.test(e)&&gk.test(e)}var xk=/[^\\]\\Z/;function tb(e){if(xk.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var ib=U((o7,ob)=>{"use strict";ob.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.errSchemaPath+"/"+r,l=!t.opts.allErrors,c="data"+(i||""),p="valid"+s,d,f;if(a=="#"||a=="#/")t.isRoot?(d=t.async,f="validate"):(d=t.root.schema.$async===!0,f="root.refVal[0]");else{var m=t.resolveRef(t.baseId,a,t.isRoot);if(m===void 0){var g=t.MissingRefError.message(t.baseId,a);if(t.opts.missingRefs=="fail"){t.logger.error(g);var h=h||[];h.push(n),n="",t.createErrors!==!1?(n+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { ref: '"+t.util.escapeQuotes(a)+"' } ",t.opts.messages!==!1&&(n+=" , message: 'can\\'t resolve reference "+t.util.escapeQuotes(a)+"' "),t.opts.verbose&&(n+=" , schema: "+t.util.toQuotedString(a)+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ";var D=n;n=h.pop(),!t.compositeRule&&l?t.async?n+=" throw new ValidationError(["+D+"]); ":n+=" validate.errors = ["+D+"]; return false; ":n+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(n+=" if (false) { ")}else if(t.opts.missingRefs=="ignore")t.logger.warn(g),l&&(n+=" if (true) { ");else throw new t.MissingRefError(t.baseId,a,g)}else if(m.inline){var E=t.util.copy(t);E.level++;var x="valid"+E.level;E.schema=m.schema,E.schemaPath="",E.errSchemaPath=a;var T=t.validate(E).replace(/validate\.schema/g,m.code);n+=" "+T+" ",l&&(n+=" if ("+x+") { ")}else d=m.$async===!0||t.async&&m.$async!==!1,f=m.code}if(f){var h=h||[];h.push(n),n="",t.opts.passContext?n+=" "+f+".call(this, ":n+=" "+f+"( ",n+=" "+c+", (dataPath || '')",t.errorPath!='""'&&(n+=" + "+t.errorPath);var F=i?"data"+(i-1||""):"parentData",A=i?t.dataPathArr[i]:"parentDataProperty";n+=" , "+F+" , "+A+", rootData) ";var L=n;if(n=h.pop(),d){if(!t.async)throw new Error("async schema referenced by sync schema");l&&(n+=" var "+p+"; "),n+=" try { await "+L+"; ",l&&(n+=" "+p+" = true; "),n+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",l&&(n+=" "+p+" = false; "),n+=" } ",l&&(n+=" if ("+p+") { ")}else n+=" if (!"+L+") { if (vErrors === null) vErrors = "+f+".errors; else vErrors = vErrors.concat("+f+".errors); errors = vErrors.length; } ",l&&(n+=" else { ")}return n}});var ab=U((i7,sb)=>{"use strict";sb.exports=function(t,r,o){var n=" ",s=t.schema[r],i=t.schemaPath+t.util.getProperty(r),a=t.errSchemaPath+"/"+r,u=!t.opts.allErrors,l=t.util.copy(t),c="";l.level++;var p="valid"+l.level,d=l.baseId,f=!0,m=s;if(m)for(var g,h=-1,D=m.length-1;h<D;)g=m[h+=1],(t.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:t.util.schemaHasRules(g,t.RULES.all))&&(f=!1,l.schema=g,l.schemaPath=i+"["+h+"]",l.errSchemaPath=a+"/"+h,n+=" "+t.validate(l)+" ",l.baseId=d,u&&(n+=" if ("+p+") { ",c+="}"));return u&&(f?n+=" if (true) { ":n+=" "+c.slice(0,-1)+" "),n}});var lb=U((s7,ub)=>{"use strict";ub.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p="data"+(i||""),d="valid"+s,f="errs__"+s,m=t.util.copy(t),g="";m.level++;var h="valid"+m.level,D=a.every(function(B){return t.opts.strictKeywords?typeof B=="object"&&Object.keys(B).length>0||B===!1:t.util.schemaHasRules(B,t.RULES.all)});if(D){var E=m.baseId;n+=" var "+f+" = errors; var "+d+" = false; ";var x=t.compositeRule;t.compositeRule=m.compositeRule=!0;var T=a;if(T)for(var F,A=-1,L=T.length-1;A<L;)F=T[A+=1],m.schema=F,m.schemaPath=u+"["+A+"]",m.errSchemaPath=l+"/"+A,n+=" "+t.validate(m)+" ",m.baseId=E,n+=" "+d+" = "+d+" || "+h+"; if (!"+d+") { ",g+="}";t.compositeRule=m.compositeRule=x,n+=" "+g+" if (!"+d+") { var err = ",t.createErrors!==!1?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: {} ",t.opts.messages!==!1&&(n+=" , message: 'should match some schema in anyOf' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&c&&(t.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",t.opts.allErrors&&(n+=" } ")}else c&&(n+=" if (true) { ");return n}});var pb=U((a7,cb)=>{"use strict";cb.exports=function(t,r,o){var n=" ",s=t.schema[r],i=t.errSchemaPath+"/"+r,a=!t.opts.allErrors,u=t.util.toQuotedString(s);return t.opts.$comment===!0?n+=" console.log("+u+");":typeof t.opts.$comment=="function"&&(n+=" self._opts.$comment("+u+", "+t.util.toQuotedString(i)+", validate.root.schema);"),n}});var fb=U((u7,db)=>{"use strict";db.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p="data"+(i||""),d="valid"+s,f=t.opts.$data&&a&&a.$data,m;f?(n+=" var schema"+s+" = "+t.util.getData(a.$data,i,t.dataPathArr)+"; ",m="schema"+s):m=a,f||(n+=" var schema"+s+" = validate.schema"+u+";"),n+="var "+d+" = equal("+p+", schema"+s+"); if (!"+d+") { ";var g=g||[];g.push(n),n="",t.createErrors!==!1?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { allowedValue: schema"+s+" } ",t.opts.messages!==!1&&(n+=" , message: 'should be equal to constant' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var h=n;return n=g.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+h+"]); ":n+=" validate.errors = ["+h+"]; return false; ":n+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}});var gb=U((l7,mb)=>{"use strict";mb.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p="data"+(i||""),d="valid"+s,f="errs__"+s,m=t.util.copy(t),g="";m.level++;var h="valid"+m.level,D="i"+s,E=m.dataLevel=t.dataLevel+1,x="data"+E,T=t.baseId,F=t.opts.strictKeywords?typeof a=="object"&&Object.keys(a).length>0||a===!1:t.util.schemaHasRules(a,t.RULES.all);if(n+="var "+f+" = errors;var "+d+";",F){var A=t.compositeRule;t.compositeRule=m.compositeRule=!0,m.schema=a,m.schemaPath=u,m.errSchemaPath=l,n+=" var "+h+" = false; for (var "+D+" = 0; "+D+" < "+p+".length; "+D+"++) { ",m.errorPath=t.util.getPathExpr(t.errorPath,D,t.opts.jsonPointers,!0);var L=p+"["+D+"]";m.dataPathArr[E]=D;var B=t.validate(m);m.baseId=T,t.util.varOccurences(B,x)<2?n+=" "+t.util.varReplace(B,x,L)+" ":n+=" var "+x+" = "+L+"; "+B+" ",n+=" if ("+h+") break; } ",t.compositeRule=m.compositeRule=A,n+=" "+g+" if (!"+h+") {"}else n+=" if ("+p+".length == 0) {";var I=I||[];I.push(n),n="",t.createErrors!==!1?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: {} ",t.opts.messages!==!1&&(n+=" , message: 'should contain a valid item' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var k=n;return n=I.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",F&&(n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } "),t.opts.allErrors&&(n+=" } "),n}});var vb=U((c7,hb)=>{"use strict";hb.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p="data"+(i||""),d="errs__"+s,f=t.util.copy(t),m="";f.level++;var g="valid"+f.level,h={},D={},E=t.opts.ownProperties;for(A in a)if(A!="__proto__"){var x=a[A],T=Array.isArray(x)?D:h;T[A]=x}n+="var "+d+" = errors;";var F=t.errorPath;n+="var missing"+s+";";for(var A in D)if(T=D[A],T.length){if(n+=" if ( "+p+t.util.getProperty(A)+" !== undefined ",E&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(A)+"') "),c){n+=" && ( ";var L=T;if(L)for(var B,I=-1,k=L.length-1;I<k;){B=L[I+=1],I&&(n+=" || ");var C=t.util.getProperty(B),j=p+C;n+=" ( ( "+j+" === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(B)+"') "),n+=") && (missing"+s+" = "+t.util.toQuotedString(t.opts.jsonPointers?B:C)+") ) "}n+=")) { ";var O="missing"+s,M="' + "+O+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(F,O,!0):F+" + "+O);var b=b||[];b.push(n),n="",t.createErrors!==!1?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { property: '"+t.util.escapeQuotes(A)+"', missingProperty: '"+M+"', depsCount: "+T.length+", deps: '"+t.util.escapeQuotes(T.length==1?T[0]:T.join(", "))+"' } ",t.opts.messages!==!1&&(n+=" , message: 'should have ",T.length==1?n+="property "+t.util.escapeQuotes(T[0]):n+="properties "+t.util.escapeQuotes(T.join(", ")),n+=" when property "+t.util.escapeQuotes(A)+" is present' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var R=n;n=b.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+R+"]); ":n+=" validate.errors = ["+R+"]; return false; ":n+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var Y=T;if(Y)for(var B,J=-1,te=Y.length-1;J<te;){B=Y[J+=1];var C=t.util.getProperty(B),M=t.util.escapeQuotes(B),j=p+C;t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(F,B,t.opts.jsonPointers)),n+=" if ( "+j+" === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(B)+"') "),n+=") { var err = ",t.createErrors!==!1?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { property: '"+t.util.escapeQuotes(A)+"', missingProperty: '"+M+"', depsCount: "+T.length+", deps: '"+t.util.escapeQuotes(T.length==1?T[0]:T.join(", "))+"' } ",t.opts.messages!==!1&&(n+=" , message: 'should have ",T.length==1?n+="property "+t.util.escapeQuotes(T[0]):n+="properties "+t.util.escapeQuotes(T.join(", ")),n+=" when property "+t.util.escapeQuotes(A)+" is present' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",c&&(m+="}",n+=" else { ")}t.errorPath=F;var Q=f.baseId;for(var A in h){var x=h[A];(t.opts.strictKeywords?typeof x=="object"&&Object.keys(x).length>0||x===!1:t.util.schemaHasRules(x,t.RULES.all))&&(n+=" "+g+" = true; if ( "+p+t.util.getProperty(A)+" !== undefined ",E&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(A)+"') "),n+=") { ",f.schema=x,f.schemaPath=u+t.util.getProperty(A),f.errSchemaPath=l+"/"+t.util.escapeFragment(A),n+=" "+t.validate(f)+" ",f.baseId=Q,n+=" } ",c&&(n+=" if ("+g+") { ",m+="}"))}return c&&(n+=" "+m+" if ("+d+" == errors) {"),n}});var yb=U((p7,Db)=>{"use strict";Db.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p="data"+(i||""),d="valid"+s,f=t.opts.$data&&a&&a.$data,m;f?(n+=" var schema"+s+" = "+t.util.getData(a.$data,i,t.dataPathArr)+"; ",m="schema"+s):m=a;var g="i"+s,h="schema"+s;f||(n+=" var "+h+" = validate.schema"+u+";"),n+="var "+d+";",f&&(n+=" if (schema"+s+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+s+")) "+d+" = false; else {"),n+=""+d+" = false;for (var "+g+"=0; "+g+"<"+h+".length; "+g+"++) if (equal("+p+", "+h+"["+g+"])) { "+d+" = true; break; }",f&&(n+=" } "),n+=" if (!"+d+") { ";var D=D||[];D.push(n),n="",t.createErrors!==!1?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { allowedValues: schema"+s+" } ",t.opts.messages!==!1&&(n+=" , message: 'should be equal to one of the allowed values' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var E=n;return n=D.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}});var bb=U((d7,Cb)=>{"use strict";Cb.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p="data"+(i||"");if(t.opts.format===!1)return c&&(n+=" if (true) { "),n;var d=t.opts.$data&&a&&a.$data,f;d?(n+=" var schema"+s+" = "+t.util.getData(a.$data,i,t.dataPathArr)+"; ",f="schema"+s):f=a;var m=t.opts.unknownFormats,g=Array.isArray(m);if(d){var h="format"+s,D="isObject"+s,E="formatType"+s;n+=" var "+h+" = formats["+f+"]; var "+D+" = typeof "+h+" == 'object' && !("+h+" instanceof RegExp) && "+h+".validate; var "+E+" = "+D+" && "+h+".type || 'string'; if ("+D+") { ",t.async&&(n+=" var async"+s+" = "+h+".async; "),n+=" "+h+" = "+h+".validate; } if ( ",d&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (",m!="ignore"&&(n+=" ("+f+" && !"+h+" ",g&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+h+" && "+E+" == '"+o+"' && !(typeof "+h+" == 'function' ? ",t.async?n+=" (async"+s+" ? await "+h+"("+p+") : "+h+"("+p+")) ":n+=" "+h+"("+p+") ",n+=" : "+h+".test("+p+"))))) {"}else{var h=t.formats[a];if(!h){if(m=="ignore")return t.logger.warn('unknown format "'+a+'" ignored in schema at path "'+t.errSchemaPath+'"'),c&&(n+=" if (true) { "),n;if(g&&m.indexOf(a)>=0)return c&&(n+=" if (true) { "),n;throw new Error('unknown format "'+a+'" is used in schema at path "'+t.errSchemaPath+'"')}var D=typeof h=="object"&&!(h instanceof RegExp)&&h.validate,E=D&&h.type||"string";if(D){var x=h.async===!0;h=h.validate}if(E!=o)return c&&(n+=" if (true) { "),n;if(x){if(!t.async)throw new Error("async format in sync schema");var T="formats"+t.util.getProperty(a)+".validate";n+=" if (!(await "+T+"("+p+"))) { "}else{n+=" if (! ";var T="formats"+t.util.getProperty(a);D&&(T+=".validate"),typeof h=="function"?n+=" "+T+"("+p+") ":n+=" "+T+".test("+p+") ",n+=") { "}}var F=F||[];F.push(n),n="",t.createErrors!==!1?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { format: ",d?n+=""+f:n+=""+t.util.toQuotedString(a),n+=" } ",t.opts.messages!==!1&&(n+=` , message: 'should match format "`,d?n+="' + "+f+" + '":n+=""+t.util.escapeQuotes(a),n+=`"' `),t.opts.verbose&&(n+=" , schema: ",d?n+="validate.schema"+u:n+=""+t.util.toQuotedString(a),n+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var A=n;return n=F.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}});var Sb=U((f7,xb)=>{"use strict";xb.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p="data"+(i||""),d="valid"+s,f="errs__"+s,m=t.util.copy(t);m.level++;var g="valid"+m.level,h=t.schema.then,D=t.schema.else,E=h!==void 0&&(t.opts.strictKeywords?typeof h=="object"&&Object.keys(h).length>0||h===!1:t.util.schemaHasRules(h,t.RULES.all)),x=D!==void 0&&(t.opts.strictKeywords?typeof D=="object"&&Object.keys(D).length>0||D===!1:t.util.schemaHasRules(D,t.RULES.all)),T=m.baseId;if(E||x){var F;m.createErrors=!1,m.schema=a,m.schemaPath=u,m.errSchemaPath=l,n+=" var "+f+" = errors; var "+d+" = true; ";var A=t.compositeRule;t.compositeRule=m.compositeRule=!0,n+=" "+t.validate(m)+" ",m.baseId=T,m.createErrors=!0,n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",t.compositeRule=m.compositeRule=A,E?(n+=" if ("+g+") { ",m.schema=t.schema.then,m.schemaPath=t.schemaPath+".then",m.errSchemaPath=t.errSchemaPath+"/then",n+=" "+t.validate(m)+" ",m.baseId=T,n+=" "+d+" = "+g+"; ",E&&x?(F="ifClause"+s,n+=" var "+F+" = 'then'; "):F="'then'",n+=" } ",x&&(n+=" else { ")):n+=" if (!"+g+") { ",x&&(m.schema=t.schema.else,m.schemaPath=t.schemaPath+".else",m.errSchemaPath=t.errSchemaPath+"/else",n+=" "+t.validate(m)+" ",m.baseId=T,n+=" "+d+" = "+g+"; ",E&&x?(F="ifClause"+s,n+=" var "+F+" = 'else'; "):F="'else'",n+=" } "),n+=" if (!"+d+") { var err = ",t.createErrors!==!1?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { failingKeyword: "+F+" } ",t.opts.messages!==!1&&(n+=` , message: 'should match "' + `+F+` + '" schema' `),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&c&&(t.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}});var wb=U((m7,Eb)=>{"use strict";Eb.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p="data"+(i||""),d="valid"+s,f="errs__"+s,m=t.util.copy(t),g="";m.level++;var h="valid"+m.level,D="i"+s,E=m.dataLevel=t.dataLevel+1,x="data"+E,T=t.baseId;if(n+="var "+f+" = errors;var "+d+";",Array.isArray(a)){var F=t.schema.additionalItems;if(F===!1){n+=" "+d+" = "+p+".length <= "+a.length+"; ";var A=l;l=t.errSchemaPath+"/additionalItems",n+=" if (!"+d+") { ";var L=L||[];L.push(n),n="",t.createErrors!==!1?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { limit: "+a.length+" } ",t.opts.messages!==!1&&(n+=" , message: 'should NOT have more than "+a.length+" items' "),t.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var B=n;n=L.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+B+"]); ":n+=" validate.errors = ["+B+"]; return false; ":n+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",l=A,c&&(g+="}",n+=" else { ")}var I=a;if(I){for(var k,C=-1,j=I.length-1;C<j;)if(k=I[C+=1],t.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:t.util.schemaHasRules(k,t.RULES.all)){n+=" "+h+" = true; if ("+p+".length > "+C+") { ";var O=p+"["+C+"]";m.schema=k,m.schemaPath=u+"["+C+"]",m.errSchemaPath=l+"/"+C,m.errorPath=t.util.getPathExpr(t.errorPath,C,t.opts.jsonPointers,!0),m.dataPathArr[E]=C;var M=t.validate(m);m.baseId=T,t.util.varOccurences(M,x)<2?n+=" "+t.util.varReplace(M,x,O)+" ":n+=" var "+x+" = "+O+"; "+M+" ",n+=" } ",c&&(n+=" if ("+h+") { ",g+="}")}}if(typeof F=="object"&&(t.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===!1:t.util.schemaHasRules(F,t.RULES.all))){m.schema=F,m.schemaPath=t.schemaPath+".additionalItems",m.errSchemaPath=t.errSchemaPath+"/additionalItems",n+=" "+h+" = true; if ("+p+".length > "+a.length+") { for (var "+D+" = "+a.length+"; "+D+" < "+p+".length; "+D+"++) { ",m.errorPath=t.util.getPathExpr(t.errorPath,D,t.opts.jsonPointers,!0);var O=p+"["+D+"]";m.dataPathArr[E]=D;var M=t.validate(m);m.baseId=T,t.util.varOccurences(M,x)<2?n+=" "+t.util.varReplace(M,x,O)+" ":n+=" var "+x+" = "+O+"; "+M+" ",c&&(n+=" if (!"+h+") break; "),n+=" } } ",c&&(n+=" if ("+h+") { ",g+="}")}}else if(t.opts.strictKeywords?typeof a=="object"&&Object.keys(a).length>0||a===!1:t.util.schemaHasRules(a,t.RULES.all)){m.schema=a,m.schemaPath=u,m.errSchemaPath=l,n+=" for (var "+D+" = 0; "+D+" < "+p+".length; "+D+"++) { ",m.errorPath=t.util.getPathExpr(t.errorPath,D,t.opts.jsonPointers,!0);var O=p+"["+D+"]";m.dataPathArr[E]=D;var M=t.validate(m);m.baseId=T,t.util.varOccurences(M,x)<2?n+=" "+t.util.varReplace(M,x,O)+" ":n+=" var "+x+" = "+O+"; "+M+" ",c&&(n+=" if (!"+h+") break; "),n+=" }"}return c&&(n+=" "+g+" if ("+f+" == errors) {"),n}});var Yp=U((g7,Pb)=>{"use strict";Pb.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,T,p="data"+(i||""),d=t.opts.$data&&a&&a.$data,f;d?(n+=" var schema"+s+" = "+t.util.getData(a.$data,i,t.dataPathArr)+"; ",f="schema"+s):f=a;var m=r=="maximum",g=m?"exclusiveMaximum":"exclusiveMinimum",h=t.schema[g],D=t.opts.$data&&h&&h.$data,E=m?"<":">",x=m?">":"<",T=void 0;if(!(d||typeof a=="number"||a===void 0))throw new Error(r+" must be number");if(!(D||h===void 0||typeof h=="number"||typeof h=="boolean"))throw new Error(g+" must be number or boolean");if(D){var F=t.util.getData(h.$data,i,t.dataPathArr),A="exclusive"+s,L="exclType"+s,B="exclIsNumber"+s,I="op"+s,k="' + "+I+" + '";n+=" var schemaExcl"+s+" = "+F+"; ",F="schemaExcl"+s,n+=" var "+A+"; var "+L+" = typeof "+F+"; if ("+L+" != 'boolean' && "+L+" != 'undefined' && "+L+" != 'number') { ";var T=g,C=C||[];C.push(n),n="",t.createErrors!==!1?(n+=" { keyword: '"+(T||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: {} ",t.opts.messages!==!1&&(n+=" , message: '"+g+" should be boolean' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var j=n;n=C.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+j+"]); ":n+=" validate.errors = ["+j+"]; return false; ":n+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else if ( ",d&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+L+" == 'number' ? ( ("+A+" = "+f+" === undefined || "+F+" "+E+"= "+f+") ? "+p+" "+x+"= "+F+" : "+p+" "+x+" "+f+" ) : ( ("+A+" = "+F+" === true) ? "+p+" "+x+"= "+f+" : "+p+" "+x+" "+f+" ) || "+p+" !== "+p+") { var op"+s+" = "+A+" ? '"+E+"' : '"+E+"='; ",a===void 0&&(T=g,l=t.errSchemaPath+"/"+g,f=F,d=D)}else{var B=typeof h=="number",k=E;if(B&&d){var I="'"+k+"'";n+=" if ( ",d&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" ( "+f+" === undefined || "+h+" "+E+"= "+f+" ? "+p+" "+x+"= "+h+" : "+p+" "+x+" "+f+" ) || "+p+" !== "+p+") { "}else{B&&a===void 0?(A=!0,T=g,l=t.errSchemaPath+"/"+g,f=h,x+="="):(B&&(f=Math[m?"min":"max"](h,a)),h===(B?f:!0)?(A=!0,T=g,l=t.errSchemaPath+"/"+g,x+="="):(A=!1,k+="="));var I="'"+k+"'";n+=" if ( ",d&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+p+" "+x+" "+f+" || "+p+" !== "+p+") { "}}T=T||r;var C=C||[];C.push(n),n="",t.createErrors!==!1?(n+=" { keyword: '"+(T||"_limit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { comparison: "+I+", limit: "+f+", exclusive: "+A+" } ",t.opts.messages!==!1&&(n+=" , message: 'should be "+k+" ",d?n+="' + "+f:n+=""+f+"'"),t.opts.verbose&&(n+=" , schema: ",d?n+="validate.schema"+u:n+=""+a,n+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var j=n;return n=C.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+j+"]); ":n+=" validate.errors = ["+j+"]; return false; ":n+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}});var Zp=U((h7,Ab)=>{"use strict";Ab.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,g,p="data"+(i||""),d=t.opts.$data&&a&&a.$data,f;if(d?(n+=" var schema"+s+" = "+t.util.getData(a.$data,i,t.dataPathArr)+"; ",f="schema"+s):f=a,!(d||typeof a=="number"))throw new Error(r+" must be number");var m=r=="maxItems"?">":"<";n+="if ( ",d&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+p+".length "+m+" "+f+") { ";var g=r,h=h||[];h.push(n),n="",t.createErrors!==!1?(n+=" { keyword: '"+(g||"_limitItems")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { limit: "+f+" } ",t.opts.messages!==!1&&(n+=" , message: 'should NOT have ",r=="maxItems"?n+="more":n+="fewer",n+=" than ",d?n+="' + "+f+" + '":n+=""+a,n+=" items' "),t.opts.verbose&&(n+=" , schema: ",d?n+="validate.schema"+u:n+=""+a,n+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var D=n;return n=h.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+D+"]); ":n+=" validate.errors = ["+D+"]; return false; ":n+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}});var Xp=U((v7,Fb)=>{"use strict";Fb.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,g,p="data"+(i||""),d=t.opts.$data&&a&&a.$data,f;if(d?(n+=" var schema"+s+" = "+t.util.getData(a.$data,i,t.dataPathArr)+"; ",f="schema"+s):f=a,!(d||typeof a=="number"))throw new Error(r+" must be number");var m=r=="maxLength"?">":"<";n+="if ( ",d&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),t.opts.unicode===!1?n+=" "+p+".length ":n+=" ucs2length("+p+") ",n+=" "+m+" "+f+") { ";var g=r,h=h||[];h.push(n),n="",t.createErrors!==!1?(n+=" { keyword: '"+(g||"_limitLength")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { limit: "+f+" } ",t.opts.messages!==!1&&(n+=" , message: 'should NOT be ",r=="maxLength"?n+="longer":n+="shorter",n+=" than ",d?n+="' + "+f+" + '":n+=""+a,n+=" characters' "),t.opts.verbose&&(n+=" , schema: ",d?n+="validate.schema"+u:n+=""+a,n+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var D=n;return n=h.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+D+"]); ":n+=" validate.errors = ["+D+"]; return false; ":n+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}});var ed=U((D7,Tb)=>{"use strict";Tb.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,g,p="data"+(i||""),d=t.opts.$data&&a&&a.$data,f;if(d?(n+=" var schema"+s+" = "+t.util.getData(a.$data,i,t.dataPathArr)+"; ",f="schema"+s):f=a,!(d||typeof a=="number"))throw new Error(r+" must be number");var m=r=="maxProperties"?">":"<";n+="if ( ",d&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" Object.keys("+p+").length "+m+" "+f+") { ";var g=r,h=h||[];h.push(n),n="",t.createErrors!==!1?(n+=" { keyword: '"+(g||"_limitProperties")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { limit: "+f+" } ",t.opts.messages!==!1&&(n+=" , message: 'should NOT have ",r=="maxProperties"?n+="more":n+="fewer",n+=" than ",d?n+="' + "+f+" + '":n+=""+a,n+=" properties' "),t.opts.verbose&&(n+=" , schema: ",d?n+="validate.schema"+u:n+=""+a,n+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var D=n;return n=h.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+D+"]); ":n+=" validate.errors = ["+D+"]; return false; ":n+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}});var Ib=U((y7,Rb)=>{"use strict";Rb.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p="data"+(i||""),d=t.opts.$data&&a&&a.$data,f;if(d?(n+=" var schema"+s+" = "+t.util.getData(a.$data,i,t.dataPathArr)+"; ",f="schema"+s):f=a,!(d||typeof a=="number"))throw new Error(r+" must be number");n+="var division"+s+";if (",d&&(n+=" "+f+" !== undefined && ( typeof "+f+" != 'number' || "),n+=" (division"+s+" = "+p+" / "+f+", ",t.opts.multipleOfPrecision?n+=" Math.abs(Math.round(division"+s+") - division"+s+") > 1e-"+t.opts.multipleOfPrecision+" ":n+=" division"+s+" !== parseInt(division"+s+") ",n+=" ) ",d&&(n+=" ) "),n+=" ) { ";var m=m||[];m.push(n),n="",t.createErrors!==!1?(n+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { multipleOf: "+f+" } ",t.opts.messages!==!1&&(n+=" , message: 'should be multiple of ",d?n+="' + "+f:n+=""+f+"'"),t.opts.verbose&&(n+=" , schema: ",d?n+="validate.schema"+u:n+=""+a,n+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}});var kb=U((C7,_b)=>{"use strict";_b.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p="data"+(i||""),d="errs__"+s,f=t.util.copy(t);f.level++;var m="valid"+f.level;if(t.opts.strictKeywords?typeof a=="object"&&Object.keys(a).length>0||a===!1:t.util.schemaHasRules(a,t.RULES.all)){f.schema=a,f.schemaPath=u,f.errSchemaPath=l,n+=" var "+d+" = errors; ";var g=t.compositeRule;t.compositeRule=f.compositeRule=!0,f.createErrors=!1;var h;f.opts.allErrors&&(h=f.opts.allErrors,f.opts.allErrors=!1),n+=" "+t.validate(f)+" ",f.createErrors=!0,h&&(f.opts.allErrors=h),t.compositeRule=f.compositeRule=g,n+=" if ("+m+") { ";var D=D||[];D.push(n),n="",t.createErrors!==!1?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: {} ",t.opts.messages!==!1&&(n+=" , message: 'should NOT be valid' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var E=n;n=D.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",t.opts.allErrors&&(n+=" } ")}else n+=" var err = ",t.createErrors!==!1?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: {} ",t.opts.messages!==!1&&(n+=" , message: 'should NOT be valid' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(n+=" if (false) { ");return n}});var Ob=U((b7,$b)=>{"use strict";$b.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p="data"+(i||""),d="valid"+s,f="errs__"+s,m=t.util.copy(t),g="";m.level++;var h="valid"+m.level,D=m.baseId,E="prevValid"+s,x="passingSchemas"+s;n+="var "+f+" = errors , "+E+" = false , "+d+" = false , "+x+" = null; ";var T=t.compositeRule;t.compositeRule=m.compositeRule=!0;var F=a;if(F)for(var A,L=-1,B=F.length-1;L<B;)A=F[L+=1],(t.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:t.util.schemaHasRules(A,t.RULES.all))?(m.schema=A,m.schemaPath=u+"["+L+"]",m.errSchemaPath=l+"/"+L,n+=" "+t.validate(m)+" ",m.baseId=D):n+=" var "+h+" = true; ",L&&(n+=" if ("+h+" && "+E+") { "+d+" = false; "+x+" = ["+x+", "+L+"]; } else { ",g+="}"),n+=" if ("+h+") { "+d+" = "+E+" = true; "+x+" = "+L+"; }";return t.compositeRule=m.compositeRule=T,n+=""+g+"if (!"+d+") { var err = ",t.createErrors!==!1?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { passingSchemas: "+x+" } ",t.opts.messages!==!1&&(n+=" , message: 'should match exactly one schema in oneOf' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&c&&(t.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; }",t.opts.allErrors&&(n+=" } "),n}});var Bb=U((x7,Nb)=>{"use strict";Nb.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p="data"+(i||""),d=t.opts.$data&&a&&a.$data,f;d?(n+=" var schema"+s+" = "+t.util.getData(a.$data,i,t.dataPathArr)+"; ",f="schema"+s):f=a;var m=d?"(new RegExp("+f+"))":t.usePattern(a);n+="if ( ",d&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" !"+m+".test("+p+") ) { ";var g=g||[];g.push(n),n="",t.createErrors!==!1?(n+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { pattern: ",d?n+=""+f:n+=""+t.util.toQuotedString(a),n+=" } ",t.opts.messages!==!1&&(n+=` , message: 'should match pattern "`,d?n+="' + "+f+" + '":n+=""+t.util.escapeQuotes(a),n+=`"' `),t.opts.verbose&&(n+=" , schema: ",d?n+="validate.schema"+u:n+=""+t.util.toQuotedString(a),n+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var h=n;return n=g.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+h+"]); ":n+=" validate.errors = ["+h+"]; return false; ":n+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}});var Mb=U((S7,Lb)=>{"use strict";Lb.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p="data"+(i||""),d="errs__"+s,f=t.util.copy(t),m="";f.level++;var g="valid"+f.level,h="key"+s,D="idx"+s,E=f.dataLevel=t.dataLevel+1,x="data"+E,T="dataProperties"+s,F=Object.keys(a||{}).filter(J),A=t.schema.patternProperties||{},L=Object.keys(A).filter(J),B=t.schema.additionalProperties,I=F.length||L.length,k=B===!1,C=typeof B=="object"&&Object.keys(B).length,j=t.opts.removeAdditional,O=k||C||j,M=t.opts.ownProperties,b=t.baseId,R=t.schema.required;if(R&&!(t.opts.$data&&R.$data)&&R.length<t.opts.loopRequired)var Y=t.util.toHash(R);function J(br){return br!=="__proto__"}if(n+="var "+d+" = errors;var "+g+" = true;",M&&(n+=" var "+T+" = undefined;"),O){if(M?n+=" "+T+" = "+T+" || Object.keys("+p+"); for (var "+D+"=0; "+D+"<"+T+".length; "+D+"++) { var "+h+" = "+T+"["+D+"]; ":n+=" for (var "+h+" in "+p+") { ",I){if(n+=" var isAdditional"+s+" = !(false ",F.length)if(F.length>8)n+=" || validate.schema"+u+".hasOwnProperty("+h+") ";else{var te=F;if(te)for(var Q,he=-1,We=te.length-1;he<We;)Q=te[he+=1],n+=" || "+h+" == "+t.util.toQuotedString(Q)+" "}if(L.length){var pt=L;if(pt)for(var me,Ie=-1,X=pt.length-1;Ie<X;)me=pt[Ie+=1],n+=" || "+t.usePattern(me)+".test("+h+") "}n+=" ); if (isAdditional"+s+") { "}if(j=="all")n+=" delete "+p+"["+h+"]; ";else{var Ye=t.errorPath,Rr="' + "+h+" + '";if(t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(t.errorPath,h,t.opts.jsonPointers)),k)if(j)n+=" delete "+p+"["+h+"]; ";else{n+=" "+g+" = false; ";var z=l;l=t.errSchemaPath+"/additionalProperties";var ie=ie||[];ie.push(n),n="",t.createErrors!==!1?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { additionalProperty: '"+Rr+"' } ",t.opts.messages!==!1&&(n+=" , message: '",t.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),t.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var H=n;n=ie.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+H+"]); ":n+=" validate.errors = ["+H+"]; return false; ":n+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=z,c&&(n+=" break; ")}else if(C)if(j=="failing"){n+=" var "+d+" = errors; ";var se=t.compositeRule;t.compositeRule=f.compositeRule=!0,f.schema=B,f.schemaPath=t.schemaPath+".additionalProperties",f.errSchemaPath=t.errSchemaPath+"/additionalProperties",f.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,h,t.opts.jsonPointers);var pe=p+"["+h+"]";f.dataPathArr[E]=h;var oe=t.validate(f);f.baseId=b,t.util.varOccurences(oe,x)<2?n+=" "+t.util.varReplace(oe,x,pe)+" ":n+=" var "+x+" = "+pe+"; "+oe+" ",n+=" if (!"+g+") { errors = "+d+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+p+"["+h+"]; } ",t.compositeRule=f.compositeRule=se}else{f.schema=B,f.schemaPath=t.schemaPath+".additionalProperties",f.errSchemaPath=t.errSchemaPath+"/additionalProperties",f.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,h,t.opts.jsonPointers);var pe=p+"["+h+"]";f.dataPathArr[E]=h;var oe=t.validate(f);f.baseId=b,t.util.varOccurences(oe,x)<2?n+=" "+t.util.varReplace(oe,x,pe)+" ":n+=" var "+x+" = "+pe+"; "+oe+" ",c&&(n+=" if (!"+g+") break; ")}t.errorPath=Ye}I&&(n+=" } "),n+=" } ",c&&(n+=" if ("+g+") { ",m+="}")}var _e=t.opts.useDefaults&&!t.compositeRule;if(F.length){var jt=F;if(jt)for(var Q,Zt=-1,Un=jt.length-1;Zt<Un;){Q=jt[Zt+=1];var dt=a[Q];if(t.opts.strictKeywords?typeof dt=="object"&&Object.keys(dt).length>0||dt===!1:t.util.schemaHasRules(dt,t.RULES.all)){var Xt=t.util.getProperty(Q),pe=p+Xt,Ft=_e&&dt.default!==void 0;f.schema=dt,f.schemaPath=u+Xt,f.errSchemaPath=l+"/"+t.util.escapeFragment(Q),f.errorPath=t.util.getPath(t.errorPath,Q,t.opts.jsonPointers),f.dataPathArr[E]=t.util.toQuotedString(Q);var oe=t.validate(f);if(f.baseId=b,t.util.varOccurences(oe,x)<2){oe=t.util.varReplace(oe,x,pe);var bt=pe}else{var bt=x;n+=" var "+x+" = "+pe+"; "}if(Ft)n+=" "+oe+" ";else{if(Y&&Y[Q]){n+=" if ( "+bt+" === undefined ",M&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(Q)+"') "),n+=") { "+g+" = false; ";var Ye=t.errorPath,z=l,Ir=t.util.escapeQuotes(Q);t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(Ye,Q,t.opts.jsonPointers)),l=t.errSchemaPath+"/required";var ie=ie||[];ie.push(n),n="",t.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { missingProperty: '"+Ir+"' } ",t.opts.messages!==!1&&(n+=" , message: '",t.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+Ir+"\\'",n+="' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var H=n;n=ie.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+H+"]); ":n+=" validate.errors = ["+H+"]; return false; ":n+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=z,t.errorPath=Ye,n+=" } else { "}else c?(n+=" if ( "+bt+" === undefined ",M&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(Q)+"') "),n+=") { "+g+" = true; } else { "):(n+=" if ("+bt+" !== undefined ",M&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(Q)+"') "),n+=" ) { ");n+=" "+oe+" } "}}c&&(n+=" if ("+g+") { ",m+="}")}}if(L.length){var Ut=L;if(Ut)for(var me,Hs=-1,Lu=Ut.length-1;Hs<Lu;){me=Ut[Hs+=1];var dt=A[me];if(t.opts.strictKeywords?typeof dt=="object"&&Object.keys(dt).length>0||dt===!1:t.util.schemaHasRules(dt,t.RULES.all)){f.schema=dt,f.schemaPath=t.schemaPath+".patternProperties"+t.util.getProperty(me),f.errSchemaPath=t.errSchemaPath+"/patternProperties/"+t.util.escapeFragment(me),M?n+=" "+T+" = "+T+" || Object.keys("+p+"); for (var "+D+"=0; "+D+"<"+T+".length; "+D+"++) { var "+h+" = "+T+"["+D+"]; ":n+=" for (var "+h+" in "+p+") { ",n+=" if ("+t.usePattern(me)+".test("+h+")) { ",f.errorPath=t.util.getPathExpr(t.errorPath,h,t.opts.jsonPointers);var pe=p+"["+h+"]";f.dataPathArr[E]=h;var oe=t.validate(f);f.baseId=b,t.util.varOccurences(oe,x)<2?n+=" "+t.util.varReplace(oe,x,pe)+" ":n+=" var "+x+" = "+pe+"; "+oe+" ",c&&(n+=" if (!"+g+") break; "),n+=" } ",c&&(n+=" else "+g+" = true; "),n+=" } ",c&&(n+=" if ("+g+") { ",m+="}")}}}return c&&(n+=" "+m+" if ("+d+" == errors) {"),n}});var Ub=U((E7,jb)=>{"use strict";jb.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p="data"+(i||""),d="errs__"+s,f=t.util.copy(t),m="";f.level++;var g="valid"+f.level;if(n+="var "+d+" = errors;",t.opts.strictKeywords?typeof a=="object"&&Object.keys(a).length>0||a===!1:t.util.schemaHasRules(a,t.RULES.all)){f.schema=a,f.schemaPath=u,f.errSchemaPath=l;var h="key"+s,D="idx"+s,E="i"+s,x="' + "+h+" + '",T=f.dataLevel=t.dataLevel+1,F="data"+T,A="dataProperties"+s,L=t.opts.ownProperties,B=t.baseId;L&&(n+=" var "+A+" = undefined; "),L?n+=" "+A+" = "+A+" || Object.keys("+p+"); for (var "+D+"=0; "+D+"<"+A+".length; "+D+"++) { var "+h+" = "+A+"["+D+"]; ":n+=" for (var "+h+" in "+p+") { ",n+=" var startErrs"+s+" = errors; ";var I=h,k=t.compositeRule;t.compositeRule=f.compositeRule=!0;var C=t.validate(f);f.baseId=B,t.util.varOccurences(C,F)<2?n+=" "+t.util.varReplace(C,F,I)+" ":n+=" var "+F+" = "+I+"; "+C+" ",t.compositeRule=f.compositeRule=k,n+=" if (!"+g+") { for (var "+E+"=startErrs"+s+"; "+E+"<errors; "+E+"++) { vErrors["+E+"].propertyName = "+h+"; } var err = ",t.createErrors!==!1?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { propertyName: '"+x+"' } ",t.opts.messages!==!1&&(n+=" , message: 'property name \\'"+x+"\\' is invalid' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&c&&(t.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),c&&(n+=" break; "),n+=" } }"}return c&&(n+=" "+m+" if ("+d+" == errors) {"),n}});var Hb=U((w7,Vb)=>{"use strict";Vb.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p="data"+(i||""),d="valid"+s,f=t.opts.$data&&a&&a.$data,m;f?(n+=" var schema"+s+" = "+t.util.getData(a.$data,i,t.dataPathArr)+"; ",m="schema"+s):m=a;var g="schema"+s;if(!f)if(a.length<t.opts.loopRequired&&t.schema.properties&&Object.keys(t.schema.properties).length){var h=[],D=a;if(D)for(var E,x=-1,T=D.length-1;x<T;){E=D[x+=1];var F=t.schema.properties[E];F&&(t.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===!1:t.util.schemaHasRules(F,t.RULES.all))||(h[h.length]=E)}}else var h=a;if(f||h.length){var A=t.errorPath,L=f||h.length>=t.opts.loopRequired,B=t.opts.ownProperties;if(c)if(n+=" var missing"+s+"; ",L){f||(n+=" var "+g+" = validate.schema"+u+"; ");var I="i"+s,k="schema"+s+"["+I+"]",C="' + "+k+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(A,k,t.opts.jsonPointers)),n+=" var "+d+" = true; ",f&&(n+=" if (schema"+s+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+s+")) "+d+" = false; else {"),n+=" for (var "+I+" = 0; "+I+" < "+g+".length; "+I+"++) { "+d+" = "+p+"["+g+"["+I+"]] !== undefined ",B&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", "+g+"["+I+"]) "),n+="; if (!"+d+") break; } ",f&&(n+=" } "),n+=" if (!"+d+") { ";var j=j||[];j.push(n),n="",t.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { missingProperty: '"+C+"' } ",t.opts.messages!==!1&&(n+=" , message: '",t.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+C+"\\'",n+="' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var O=n;n=j.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+O+"]); ":n+=" validate.errors = ["+O+"]; return false; ":n+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var M=h;if(M)for(var b,I=-1,R=M.length-1;I<R;){b=M[I+=1],I&&(n+=" || ");var Y=t.util.getProperty(b),J=p+Y;n+=" ( ( "+J+" === undefined ",B&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(b)+"') "),n+=") && (missing"+s+" = "+t.util.toQuotedString(t.opts.jsonPointers?b:Y)+") ) "}n+=") { ";var k="missing"+s,C="' + "+k+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(A,k,!0):A+" + "+k);var j=j||[];j.push(n),n="",t.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { missingProperty: '"+C+"' } ",t.opts.messages!==!1&&(n+=" , message: '",t.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+C+"\\'",n+="' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var O=n;n=j.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+O+"]); ":n+=" validate.errors = ["+O+"]; return false; ":n+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(L){f||(n+=" var "+g+" = validate.schema"+u+"; ");var I="i"+s,k="schema"+s+"["+I+"]",C="' + "+k+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(A,k,t.opts.jsonPointers)),f&&(n+=" if ("+g+" && !Array.isArray("+g+")) { var err = ",t.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { missingProperty: '"+C+"' } ",t.opts.messages!==!1&&(n+=" , message: '",t.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+C+"\\'",n+="' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+g+" !== undefined) { "),n+=" for (var "+I+" = 0; "+I+" < "+g+".length; "+I+"++) { if ("+p+"["+g+"["+I+"]] === undefined ",B&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", "+g+"["+I+"]) "),n+=") { var err = ",t.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { missingProperty: '"+C+"' } ",t.opts.messages!==!1&&(n+=" , message: '",t.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+C+"\\'",n+="' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",f&&(n+=" } ")}else{var te=h;if(te)for(var b,Q=-1,he=te.length-1;Q<he;){b=te[Q+=1];var Y=t.util.getProperty(b),C=t.util.escapeQuotes(b),J=p+Y;t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(A,b,t.opts.jsonPointers)),n+=" if ( "+J+" === undefined ",B&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+t.util.escapeQuotes(b)+"') "),n+=") { var err = ",t.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { missingProperty: '"+C+"' } ",t.opts.messages!==!1&&(n+=" , message: '",t.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+C+"\\'",n+="' "),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t.errorPath=A}else c&&(n+=" if (true) {");return n}});var zb=U((P7,Gb)=>{"use strict";Gb.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p="data"+(i||""),d="valid"+s,f=t.opts.$data&&a&&a.$data,m;if(f?(n+=" var schema"+s+" = "+t.util.getData(a.$data,i,t.dataPathArr)+"; ",m="schema"+s):m=a,(a||f)&&t.opts.uniqueItems!==!1){f&&(n+=" var "+d+"; if ("+m+" === false || "+m+" === undefined) "+d+" = true; else if (typeof "+m+" != 'boolean') "+d+" = false; else { "),n+=" var i = "+p+".length , "+d+" = true , j; if (i > 1) { ";var g=t.schema.items&&t.schema.items.type,h=Array.isArray(g);if(!g||g=="object"||g=="array"||h&&(g.indexOf("object")>=0||g.indexOf("array")>=0))n+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+d+" = false; break outer; } } } ";else{n+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var D="checkDataType"+(h?"s":"");n+=" if ("+t.util[D](g,"item",t.opts.strictNumbers,!0)+") continue; ",h&&(n+=` if (typeof item == 'string') item = '"' + item; `),n+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}n+=" } ",f&&(n+=" } "),n+=" if (!"+d+") { ";var E=E||[];E.push(n),n="",t.createErrors!==!1?(n+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { i: i, j: j } ",t.opts.messages!==!1&&(n+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),t.opts.verbose&&(n+=" , schema: ",f?n+="validate.schema"+u:n+=""+a,n+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var x=n;n=E.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+x+"]); ":n+=" validate.errors = ["+x+"]; return false; ":n+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}});var qb=U((A7,Kb)=>{"use strict";Kb.exports={$ref:ib(),allOf:ab(),anyOf:lb(),$comment:pb(),const:fb(),contains:gb(),dependencies:vb(),enum:yb(),format:bb(),if:Sb(),items:wb(),maximum:Yp(),minimum:Yp(),maxItems:Zp(),minItems:Zp(),maxLength:Xp(),minLength:Xp(),maxProperties:ed(),minProperties:ed(),multipleOf:Ib(),not:kb(),oneOf:Ob(),pattern:Bb(),properties:Mb(),propertyNames:Ub(),required:Hb(),uniqueItems:zb(),validate:Jp()}});var Qb=U((F7,Jb)=>{"use strict";var Wb=qb(),td=$o().toHash;Jb.exports=function(){var t=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],r=["type","$comment"],o=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],n=["number","integer","string","array","object","boolean","null"];return t.all=td(r),t.types=td(n),t.forEach(function(s){s.rules=s.rules.map(function(i){var a;if(typeof i=="object"){var u=Object.keys(i)[0];a=i[u],i=u,a.forEach(function(c){r.push(c),t.all[c]=!0})}r.push(i);var l=t.all[i]={keyword:i,code:Wb[i],implements:a};return l}),t.all.$comment={keyword:"$comment",code:Wb.$comment},s.type&&(t.types[s.type]=s)}),t.keywords=td(r.concat(o)),t.custom={},t}});var Xb=U((T7,Zb)=>{"use strict";var Yb=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];Zb.exports=function(e,t){for(var r=0;r<t.length;r++){e=JSON.parse(JSON.stringify(e));var o=t[r].split("/"),n=e,s;for(s=1;s<o.length;s++)n=n[o[s]];for(s=0;s<Yb.length;s++){var i=Yb[s],a=n[i];a&&(n[i]={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}});var rx=U((R7,tx)=>{"use strict";var Sk=wu().MissingRef;tx.exports=ex;function ex(e,t,r){var o=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof t=="function"&&(r=t,t=void 0);var n=s(e).then(function(){var a=o._addSchema(e,void 0,t);return a.validate||i(a)});return r&&n.then(function(a){r(null,a)},r),n;function s(a){var u=a.$schema;return u&&!o.getSchema(u)?ex.call(o,{$ref:u},!0):Promise.resolve()}function i(a){try{return o._compile(a)}catch(l){if(l instanceof Sk)return u(l);throw l}function u(l){var c=l.missingSchema;if(f(c))throw new Error("Schema "+c+" is loaded but "+l.missingRef+" cannot be resolved");var p=o._loadingSchemas[c];return p||(p=o._loadingSchemas[c]=o._opts.loadSchema(c),p.then(d,d)),p.then(function(m){if(!f(c))return s(m).then(function(){f(c)||o.addSchema(m,c,void 0,t)})}).then(function(){return i(a)});function d(){delete o._loadingSchemas[c]}function f(m){return o._refs[m]||o._schemas[m]}}}}});var ox=U((I7,nx)=>{"use strict";nx.exports=function(t,r,o){var n=" ",s=t.level,i=t.dataLevel,a=t.schema[r],u=t.schemaPath+t.util.getProperty(r),l=t.errSchemaPath+"/"+r,c=!t.opts.allErrors,p,d="data"+(i||""),f="valid"+s,m="errs__"+s,g=t.opts.$data&&a&&a.$data,h;g?(n+=" var schema"+s+" = "+t.util.getData(a.$data,i,t.dataPathArr)+"; ",h="schema"+s):h=a;var D=this,E="definition"+s,x=D.definition,T="",F,A,L,B,I;if(g&&x.$data){I="keywordValidate"+s;var k=x.validateSchema;n+=" var "+E+" = RULES.custom['"+r+"'].definition; var "+I+" = "+E+".validate;"}else{if(B=t.useCustomRule(D,a,t.schema,t),!B)return;h="validate.schema"+u,I=B.code,F=x.compile,A=x.inline,L=x.macro}var C=I+".errors",j="i"+s,O="ruleErr"+s,M=x.async;if(M&&!t.async)throw new Error("async keyword in sync schema");if(A||L||(n+=""+C+" = null;"),n+="var "+m+" = errors;var "+f+";",g&&x.$data&&(T+="}",n+=" if ("+h+" === undefined) { "+f+" = true; } else { ",k&&(T+="}",n+=" "+f+" = "+E+".validateSchema("+h+"); if ("+f+") { ")),A)x.statements?n+=" "+B.validate+" ":n+=" "+f+" = "+B.validate+"; ";else if(L){var b=t.util.copy(t),T="";b.level++;var R="valid"+b.level;b.schema=B.validate,b.schemaPath="";var Y=t.compositeRule;t.compositeRule=b.compositeRule=!0;var J=t.validate(b).replace(/validate\.schema/g,I);t.compositeRule=b.compositeRule=Y,n+=" "+J}else{var te=te||[];te.push(n),n="",n+=" "+I+".call( ",t.opts.passContext?n+="this":n+="self",F||x.schema===!1?n+=" , "+d+" ":n+=" , "+h+" , "+d+" , validate.schema"+t.schemaPath+" ",n+=" , (dataPath || '')",t.errorPath!='""'&&(n+=" + "+t.errorPath);var Q=i?"data"+(i-1||""):"parentData",he=i?t.dataPathArr[i]:"parentDataProperty";n+=" , "+Q+" , "+he+" , rootData ) ";var We=n;n=te.pop(),x.errors===!1?(n+=" "+f+" = ",M&&(n+="await "),n+=""+We+"; "):M?(C="customErrors"+s,n+=" var "+C+" = null; try { "+f+" = await "+We+"; } catch (e) { "+f+" = false; if (e instanceof ValidationError) "+C+" = e.errors; else throw e; } "):n+=" "+C+" = null; "+f+" = "+We+"; "}if(x.modifying&&(n+=" if ("+Q+") "+d+" = "+Q+"["+he+"];"),n+=""+T,x.valid)c&&(n+=" if (true) { ");else{n+=" if ( ",x.valid===void 0?(n+=" !",L?n+=""+R:n+=""+f):n+=" "+!x.valid+" ",n+=") { ",p=D.keyword;var te=te||[];te.push(n),n="";var te=te||[];te.push(n),n="",t.createErrors!==!1?(n+=" { keyword: '"+(p||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { keyword: '"+D.keyword+"' } ",t.opts.messages!==!1&&(n+=` , message: 'should pass "`+D.keyword+`" keyword validation' `),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),n+=" } "):n+=" {} ";var pt=n;n=te.pop(),!t.compositeRule&&c?t.async?n+=" throw new ValidationError(["+pt+"]); ":n+=" validate.errors = ["+pt+"]; return false; ":n+=" var err = "+pt+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var me=n;n=te.pop(),A?x.errors?x.errors!="full"&&(n+=" for (var "+j+"="+m+"; "+j+"<errors; "+j+"++) { var "+O+" = vErrors["+j+"]; if ("+O+".dataPath === undefined) "+O+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+O+".schemaPath === undefined) { "+O+'.schemaPath = "'+l+'"; } ',t.opts.verbose&&(n+=" "+O+".schema = "+h+"; "+O+".data = "+d+"; "),n+=" } "):x.errors===!1?n+=" "+me+" ":(n+=" if ("+m+" == errors) { "+me+" } else { for (var "+j+"="+m+"; "+j+"<errors; "+j+"++) { var "+O+" = vErrors["+j+"]; if ("+O+".dataPath === undefined) "+O+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+O+".schemaPath === undefined) { "+O+'.schemaPath = "'+l+'"; } ',t.opts.verbose&&(n+=" "+O+".schema = "+h+"; "+O+".data = "+d+"; "),n+=" } } "):L?(n+=" var err = ",t.createErrors!==!1?(n+=" { keyword: '"+(p||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { keyword: '"+D.keyword+"' } ",t.opts.messages!==!1&&(n+=` , message: 'should pass "`+D.keyword+`" keyword validation' `),t.opts.verbose&&(n+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+d+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&c&&(t.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; ")):x.errors===!1?n+=" "+me+" ":(n+=" if (Array.isArray("+C+")) { if (vErrors === null) vErrors = "+C+"; else vErrors = vErrors.concat("+C+"); errors = vErrors.length; for (var "+j+"="+m+"; "+j+"<errors; "+j+"++) { var "+O+" = vErrors["+j+"]; if ("+O+".dataPath === undefined) "+O+".dataPath = (dataPath || '') + "+t.errorPath+"; "+O+'.schemaPath = "'+l+'"; ',t.opts.verbose&&(n+=" "+O+".schema = "+h+"; "+O+".data = "+d+"; "),n+=" } } else { "+me+" } "),n+=" } ",c&&(n+=" else { ")}return n}});var rd=U((_7,Ek)=>{Ek.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var ax=U((k7,sx)=>{"use strict";var ix=rd();sx.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:ix.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:ix.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var lx=U(($7,ux)=>{"use strict";var wk=/^[a-z_$][a-z0-9_$-]*$/i,Pk=ox(),Ak=ax();ux.exports={add:Fk,get:Tk,remove:Rk,validate:nd};function Fk(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!wk.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var o=t.type;if(Array.isArray(o))for(var n=0;n<o.length;n++)i(e,o[n],t);else i(e,o,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(s,!0))}r.keywords[e]=r.all[e]=!0;function i(a,u,l){for(var c,p=0;p<r.length;p++){var d=r[p];if(d.type==u){c=d;break}}c||(c={type:u,rules:[]},r.push(c));var f={keyword:a,definition:l,custom:!0,code:Pk,implements:l.implements};c.rules.push(f),r.custom[a]=f}return this}function Tk(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1}function Rk(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var o=t[r].rules,n=0;n<o.length;n++)if(o[n].keyword==e){o.splice(n,1);break}return this}function nd(e,t){nd.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(Ak,!0);if(r(e))return!0;if(nd.errors=r.errors,t)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}});var cx=U((O7,Ik)=>{Ik.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Cx=U((N7,yx)=>{"use strict";var dx=HC(),Oo=Eu(),_k=zC(),fx=Vp(),kk=Wp(),$k=nb(),Ok=Qb(),mx=Xb(),gx=$o();yx.exports=qe;qe.prototype.validate=Bk;qe.prototype.compile=Lk;qe.prototype.addSchema=Mk;qe.prototype.addMetaSchema=jk;qe.prototype.validateSchema=Uk;qe.prototype.getSchema=Hk;qe.prototype.removeSchema=zk;qe.prototype.addFormat=Xk;qe.prototype.errorsText=Zk;qe.prototype._addSchema=Kk;qe.prototype._compile=qk;qe.prototype.compileAsync=rx();var ku=lx();qe.prototype.addKeyword=ku.add;qe.prototype.getKeyword=ku.get;qe.prototype.removeKeyword=ku.remove;qe.prototype.validateKeyword=ku.validate;var hx=wu();qe.ValidationError=hx.Validation;qe.MissingRefError=hx.MissingRef;qe.$dataMetaSchema=mx;var _u="http://json-schema.org/draft-07/schema",px=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Nk=["/properties"];function qe(e){if(!(this instanceof qe))return new qe(e);e=this._opts=gx.copy(e)||{},i2(this),this._schemas={},this._refs={},this._fragments={},this._formats=$k(e.format),this._cache=e.cache||new _k,this._loadingSchemas={},this._compilations=[],this.RULES=Ok(),this._getId=Wk(e),e.loopRequired=e.loopRequired||1/0,e.errorDataPath=="property"&&(e._errorDataPathProperty=!0),e.serialize===void 0&&(e.serialize=kk),this._metaOpts=o2(this),e.formats&&r2(this),e.keywords&&n2(this),e2(this),typeof e.meta=="object"&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),t2(this)}function Bk(e,t){var r;if(typeof e=="string"){if(r=this.getSchema(e),!r)throw new Error('no schema with key or ref "'+e+'"')}else{var o=this._addSchema(e);r=o.validate||this._compile(o)}var n=r(t);return r.$async!==!0&&(this.errors=r.errors),n}function Lk(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)}function Mk(e,t,r,o){if(Array.isArray(e)){for(var n=0;n<e.length;n++)this.addSchema(e[n],void 0,r,o);return this}var s=this._getId(e);if(s!==void 0&&typeof s!="string")throw new Error("schema id must be string");return t=Oo.normalizeId(t||s),Dx(this,t),this._schemas[t]=this._addSchema(e,r,o,!0),this}function jk(e,t,r){return this.addSchema(e,t,r,!0),this}function Uk(e,t){var r=e.$schema;if(r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this._opts.defaultMeta||Vk(this),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var o=this.validate(r,e);if(!o&&t){var n="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(n);else throw new Error(n)}return o}function Vk(e){var t=e._opts.meta;return e._opts.defaultMeta=typeof t=="object"?e._getId(t)||t:e.getSchema(_u)?_u:void 0,e._opts.defaultMeta}function Hk(e){var t=vx(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return Gk(this,e)}}function Gk(e,t){var r=Oo.schema.call(e,{schema:{}},t);if(r){var o=r.schema,n=r.root,s=r.baseId,i=dx.call(e,o,n,void 0,s);return e._fragments[t]=new fx({ref:t,fragment:!0,schema:o,root:n,baseId:s,validate:i}),i}}function vx(e,t){return t=Oo.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function zk(e){if(e instanceof RegExp)return Iu(this,this._schemas,e),Iu(this,this._refs,e),this;switch(typeof e){case"undefined":return Iu(this,this._schemas),Iu(this,this._refs),this._cache.clear(),this;case"string":var t=vx(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var r=this._opts.serialize,o=r?r(e):e;this._cache.del(o);var n=this._getId(e);n&&(n=Oo.normalizeId(n),delete this._schemas[n],delete this._refs[n])}return this}function Iu(e,t,r){for(var o in t){var n=t[o];!n.meta&&(!r||r.test(o))&&(e._cache.del(n.cacheKey),delete t[o])}}function Kk(e,t,r,o){if(typeof e!="object"&&typeof e!="boolean")throw new Error("schema should be object or boolean");var n=this._opts.serialize,s=n?n(e):e,i=this._cache.get(s);if(i)return i;o=o||this._opts.addUsedSchema!==!1;var a=Oo.normalizeId(this._getId(e));a&&o&&Dx(this,a);var u=this._opts.validateSchema!==!1&&!t,l;u&&!(l=a&&a==Oo.normalizeId(e.$schema))&&this.validateSchema(e,!0);var c=Oo.ids.call(this,e),p=new fx({id:a,schema:e,localRefs:c,cacheKey:s,meta:r});return a[0]!="#"&&o&&(this._refs[a]=p),this._cache.put(s,p),u&&l&&this.validateSchema(e,!0),p}function qk(e,t){if(e.compiling)return e.validate=n,n.schema=e.schema,n.errors=null,n.root=t||n,e.schema.$async===!0&&(n.$async=!0),n;e.compiling=!0;var r;e.meta&&(r=this._opts,this._opts=this._metaOpts);var o;try{o=dx.call(this,e.schema,t,e.localRefs)}catch(s){throw delete e.validate,s}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=o,e.refs=o.refs,e.refVal=o.refVal,e.root=o.root,o;function n(){var s=e.validate,i=s.apply(this,arguments);return n.errors=s.errors,i}}function Wk(e){switch(e.schemaId){case"auto":return Yk;case"id":return Jk;default:return Qk}}function Jk(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function Qk(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function Yk(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function Zk(e,t){if(e=e||this.errors,!e)return"No errors";t=t||{};for(var r=t.separator===void 0?", ":t.separator,o=t.dataVar===void 0?"data":t.dataVar,n="",s=0;s<e.length;s++){var i=e[s];i&&(n+=o+i.dataPath+" "+i.message+r)}return n.slice(0,-r.length)}function Xk(e,t){return typeof t=="string"&&(t=new RegExp(t)),this._formats[e]=t,this}function e2(e){var t;if(e._opts.$data&&(t=cx(),e.addMetaSchema(t,t.$id,!0)),e._opts.meta!==!1){var r=rd();e._opts.$data&&(r=mx(r,Nk)),e.addMetaSchema(r,_u,!0),e._refs["http://json-schema.org/schema"]=_u}}function t2(e){var t=e._opts.schemas;if(t)if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}function r2(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}function n2(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}function Dx(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function o2(e){for(var t=gx.copy(e._opts),r=0;r<px.length;r++)delete t[px[r]];return t}function i2(e){var t=e._opts.logger;if(t===!1)e.logger={log:od,warn:od,error:od};else{if(t===void 0&&(t=console),!(typeof t=="object"&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}function od(){}});var s2,bx=P(()=>{yC();gu();s2=et(Cx(),1)});var Px=U((G7,wx)=>{wx.exports=Ex;Ex.sync=u2;var xx=ve("fs");function a2(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var o=0;o<r.length;o++){var n=r[o].toLowerCase();if(n&&e.substr(-n.length).toLowerCase()===n)return!0}return!1}function Sx(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:a2(t,r)}function Ex(e,t,r){xx.stat(e,function(o,n){r(o,o?!1:Sx(n,e,t))})}function u2(e,t){return Sx(xx.statSync(e),e,t)}});var Ix=U((z7,Rx)=>{Rx.exports=Fx;Fx.sync=l2;var Ax=ve("fs");function Fx(e,t,r){Ax.stat(e,function(o,n){r(o,o?!1:Tx(n,t))})}function l2(e,t){return Tx(Ax.statSync(e),t)}function Tx(e,t){return e.isFile()&&c2(e,t)}function c2(e,t){var r=e.mode,o=e.uid,n=e.gid,s=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),i=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),l=parseInt("001",8),c=a|u,p=r&l||r&u&&n===i||r&a&&o===s||r&c&&s===0;return p}});var kx=U((q7,_x)=>{var K7=ve("fs"),$u;process.platform==="win32"||global.TESTING_WINDOWS?$u=Px():$u=Ix();_x.exports=id;id.sync=p2;function id(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(o,n){id(e,t||{},function(s,i){s?n(s):o(i)})})}$u(e,t||{},function(o,n){o&&(o.code==="EACCES"||t&&t.ignoreErrors)&&(o=null,n=!1),r(o,n)})}function p2(e,t){try{return $u.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var jx=U((W7,Mx)=>{var ki=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",$x=ve("path"),d2=ki?";":":",Ox=kx(),Nx=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Bx=(e,t)=>{let r=t.colon||d2,o=e.match(/\//)||ki&&e.match(/\\/)?[""]:[...ki?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],n=ki?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=ki?n.split(r):[""];return ki&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:o,pathExt:s,pathExtExe:n}},Lx=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:o,pathExt:n,pathExtExe:s}=Bx(e,t),i=[],a=l=>new Promise((c,p)=>{if(l===o.length)return t.all&&i.length?c(i):p(Nx(e));let d=o[l],f=/^".*"$/.test(d)?d.slice(1,-1):d,m=$x.join(f,e),g=!f&&/^\.[\\\/]/.test(e)?e.slice(0,2)+m:m;c(u(g,l,0))}),u=(l,c,p)=>new Promise((d,f)=>{if(p===n.length)return d(a(c+1));let m=n[p];Ox(l+m,{pathExt:s},(g,h)=>{if(!g&&h)if(t.all)i.push(l+m);else return d(l+m);return d(u(l,c,p+1))})});return r?a(0).then(l=>r(null,l),r):a(0)},f2=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:o,pathExtExe:n}=Bx(e,t),s=[];for(let i=0;i<r.length;i++){let a=r[i],u=/^".*"$/.test(a)?a.slice(1,-1):a,l=$x.join(u,e),c=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let p=0;p<o.length;p++){let d=c+o[p];try{if(Ox.sync(d,{pathExt:n}))if(t.all)s.push(d);else return d}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw Nx(e)};Mx.exports=Lx;Lx.sync=f2});var Vx=U((J7,sd)=>{"use strict";var Ux=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(o=>o.toUpperCase()==="PATH")||"Path"};sd.exports=Ux;sd.exports.default=Ux});var Kx=U((Q7,zx)=>{"use strict";var Hx=ve("path"),m2=jx(),g2=Vx();function Gx(e,t){let r=e.options.env||process.env,o=process.cwd(),n=e.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch{}let i;try{i=m2.sync(e.command,{path:r[g2({env:r})],pathExt:t?Hx.delimiter:void 0})}catch{}finally{s&&process.chdir(o)}return i&&(i=Hx.resolve(n?e.options.cwd:"",i)),i}function h2(e){return Gx(e)||Gx(e,!0)}zx.exports=h2});var qx=U((Y7,ud)=>{"use strict";var ad=/([()\][%!^"`<>&|;, *?])/g;function v2(e){return e=e.replace(ad,"^$1"),e}function D2(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(ad,"^$1"),t&&(e=e.replace(ad,"^$1")),e}ud.exports.command=v2;ud.exports.argument=D2});var Jx=U((Z7,Wx)=>{"use strict";Wx.exports=/^#!(.*)/});var Yx=U((X7,Qx)=>{"use strict";var y2=Jx();Qx.exports=(e="")=>{let t=e.match(y2);if(!t)return null;let[r,o]=t[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?o:o?`${n} ${o}`:n}});var Xx=U((eV,Zx)=>{"use strict";var ld=ve("fs"),C2=Yx();function b2(e){let r=Buffer.alloc(150),o;try{o=ld.openSync(e,"r"),ld.readSync(o,r,0,150,0),ld.closeSync(o)}catch{}return C2(r.toString())}Zx.exports=b2});var nS=U((tV,rS)=>{"use strict";var x2=ve("path"),eS=Kx(),tS=qx(),S2=Xx(),E2=process.platform==="win32",w2=/\.(?:com|exe)$/i,P2=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function A2(e){e.file=eS(e);let t=e.file&&S2(e.file);return t?(e.args.unshift(e.file),e.command=t,eS(e)):e.file}function F2(e){if(!E2)return e;let t=A2(e),r=!w2.test(t);if(e.options.forceShell||r){let o=P2.test(t);e.command=x2.normalize(e.command),e.command=tS.command(e.command),e.args=e.args.map(s=>tS.argument(s,o));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function T2(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let o={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?o:F2(o)}rS.exports=T2});var sS=U((rV,iS)=>{"use strict";var cd=process.platform==="win32";function pd(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function R2(e,t){if(!cd)return;let r=e.emit;e.emit=function(o,n){if(o==="exit"){let s=oS(n,t);if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}}function oS(e,t){return cd&&e===1&&!t.file?pd(t.original,"spawn"):null}function I2(e,t){return cd&&e===1&&!t.file?pd(t.original,"spawnSync"):null}iS.exports={hookChildProcess:R2,verifyENOENT:oS,verifyENOENTSync:I2,notFoundError:pd}});var lS=U((nV,$i)=>{"use strict";var aS=ve("child_process"),dd=nS(),fd=sS();function uS(e,t,r){let o=dd(e,t,r),n=aS.spawn(o.command,o.args,o.options);return fd.hookChildProcess(n,o),n}function _2(e,t,r){let o=dd(e,t,r),n=aS.spawnSync(o.command,o.args,o.options);return n.error=n.error||fd.verifyENOENTSync(n.status,o),n}$i.exports=uS;$i.exports.spawn=uS;$i.exports.sync=_2;$i.exports._parse=dd;$i.exports._enoent=fd});var cS=P(()=>{gu()});import $2 from"node:process";var k2,cV,pS=P(()=>{k2=et(lS(),1);cS();cV=$2.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"]});var dS=U((dV,O2)=>{O2.exports={name:"dotenv",version:"16.3.2",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://github.com/motdotla/dotenv?sponsor=1",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3",decache:"^4.6.1",sinon:"^14.0.1",standard:"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0",tap:"^16.3.0",tar:"^6.1.11",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var hS=U((fV,bn)=>{var fS=ve("fs"),md=ve("path"),N2=ve("os"),B2=ve("crypto"),L2=dS(),gd=L2.version,M2=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function j2(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
1491
1491
  `);let o;for(;(o=M2.exec(r))!=null;){let n=o[1],s=o[2]||"";s=s.trim();let i=s[0];s=s.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),i==='"'&&(s=s.replace(/\\n/g,`
1492
- `),s=s.replace(/\\r/g,"\r")),t[n]=s}return t}function U2(e){let t=gS(e),r=ct.configDotenv({path:t});if(!r.parsed)throw new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);let o=mS(e).split(","),n=o.length,s;for(let i=0;i<n;i++)try{let a=o[i].trim(),u=G2(r,a);s=ct.decrypt(u.ciphertext,u.key);break}catch(a){if(i+1>=n)throw a}return ct.parse(s)}function V2(e){console.log(`[dotenv@${gd}][INFO] ${e}`)}function H2(e){console.log(`[dotenv@${gd}][WARN] ${e}`)}function Ou(e){console.log(`[dotenv@${gd}][DEBUG] ${e}`)}function mS(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function G2(e,t){let r;try{r=new URL(t)}catch(a){throw a.code==="ERR_INVALID_URL"?new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenv.org/vault/.env.vault?environment=development"):a}let o=r.password;if(!o)throw new Error("INVALID_DOTENV_KEY: Missing key part");let n=r.searchParams.get("environment");if(!n)throw new Error("INVALID_DOTENV_KEY: Missing environment part");let s=`DOTENV_VAULT_${n.toUpperCase()}`,i=e.parsed[s];if(!i)throw new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${s} in your .env.vault file.`);return{ciphertext:i,key:o}}function gS(e){let t=md.resolve(process.cwd(),".env");return e&&e.path&&e.path.length>0&&(t=e.path),t.endsWith(".vault")?t:`${t}.vault`}function z2(e){return e[0]==="~"?md.join(N2.homedir(),e.slice(1)):e}function K2(e){V2("Loading env from encrypted .env.vault");let t=ct._parseVault(e),r=process.env;return e&&e.processEnv!=null&&(r=e.processEnv),ct.populate(r,t,e),{parsed:t}}function q2(e){let t=md.resolve(process.cwd(),".env"),r="utf8",o=!!(e&&e.debug);e&&(e.path!=null&&(t=z2(e.path)),e.encoding!=null?r=e.encoding:o&&Ou("No encoding is specified. UTF-8 is used by default"));try{let n=ct.parse(fS.readFileSync(t,{encoding:r})),s=process.env;return e&&e.processEnv!=null&&(s=e.processEnv),ct.populate(s,n,e),{parsed:n}}catch(n){return o&&Ou(`Failed to load ${t} ${n.message}`),{error:n}}}function W2(e){let t=gS(e);return mS(e).length===0?ct.configDotenv(e):fS.existsSync(t)?ct._configVault(e):(H2(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),ct.configDotenv(e))}function J2(e,t){let r=Buffer.from(t.slice(-64),"hex"),o=Buffer.from(e,"base64"),n=o.subarray(0,12),s=o.subarray(-16);o=o.subarray(12,-16);try{let i=B2.createDecipheriv("aes-256-gcm",r,n);return i.setAuthTag(s),`${i.update(o)}${i.final()}`}catch(i){let a=i instanceof RangeError,u=i.message==="Invalid key length",l=i.message==="Unsupported state or unable to authenticate data";if(a||u){let c="INVALID_DOTENV_KEY: It must be 64 characters long (or more)";throw new Error(c)}else if(l){let c="DECRYPTION_FAILED: Please check your DOTENV_KEY";throw new Error(c)}else throw console.error("Error: ",i.code),console.error("Error: ",i.message),i}}function Q2(e,t,r={}){let o=!!(r&&r.debug),n=!!(r&&r.override);if(typeof t!="object")throw new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");for(let s of Object.keys(t))Object.prototype.hasOwnProperty.call(e,s)?(n===!0&&(e[s]=t[s]),o&&Ou(n===!0?`"${s}" is already defined and WAS overwritten`:`"${s}" is already defined and was NOT overwritten`)):e[s]=t[s]}var ct={configDotenv:q2,_configVault:K2,_parseVault:U2,config:W2,decrypt:J2,parse:j2,populate:Q2};bn.exports.configDotenv=ct.configDotenv;bn.exports._configVault=ct._configVault;bn.exports._parseVault=ct._parseVault;bn.exports.config=ct.config;bn.exports.decrypt=ct.decrypt;bn.exports.parse=ct.parse;bn.exports.populate=ct.populate;bn.exports=ct});import*as Z2 from"@sentry/node";var X2,vS=P(()=>{"use strict";bx();pS();Oa();X2=et(hS(),1);hi()});var DS=P(()=>{"use strict"});var yS=P(()=>{"use strict"});var CS=P(()=>{"use strict"});import mH from"prettier";var Ss=P(()=>{"use strict";hc();dv();po();gi();uo();mn();fv();mv();fi();gv();Sv();By();Kt();mc();ru();My();jy();Gc();La();$a();vS();wc();DS();yS();CS();Pc();yp()});import bS from"node:process";function hd(){let{env:e}=bS,{TERM:t,TERM_PROGRAM:r}=e;return bS.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||r==="Terminus-Sublime"||r==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var xS=P(()=>{});var vd,Oi,Us,yd,Dd,Nu,t$,r$,n$,o$,Cd=P(()=>{"use strict";xS();vd=et(Jn(),1),Oi=et(ea(),1),Us=et(Jn(),1),yd=()=>{let e=Dd?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],t=Dd?80:120,r,o=!1,n="",s="",i="",a=h=>{let D=h>1?"Something went wrong":"Canceled";o&&f(D,h)},u=(h,D)=>{console.error(D,h),a(2)},l=()=>a(1),c=()=>{process.on("uncaughtExceptionMonitor",u),process.on("unhandledRejection",u),process.on("SIGINT",l),process.on("SIGTERM",l),process.on("exit",a)},p=()=>{process.removeListener("uncaughtExceptionMonitor",u),process.removeListener("unhandledRejection",u),process.removeListener("SIGINT",l),process.removeListener("SIGTERM",l),process.removeListener("exit",a)},d=(h="")=>{o=!0,n=h.replace(/\.+$/,""),process.stdout.write(`${vd.default.gray(t$)}
1492
+ `),s=s.replace(/\\r/g,"\r")),t[n]=s}return t}function U2(e){let t=gS(e),r=ct.configDotenv({path:t});if(!r.parsed)throw new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);let o=mS(e).split(","),n=o.length,s;for(let i=0;i<n;i++)try{let a=o[i].trim(),u=G2(r,a);s=ct.decrypt(u.ciphertext,u.key);break}catch(a){if(i+1>=n)throw a}return ct.parse(s)}function V2(e){console.log(`[dotenv@${gd}][INFO] ${e}`)}function H2(e){console.log(`[dotenv@${gd}][WARN] ${e}`)}function Ou(e){console.log(`[dotenv@${gd}][DEBUG] ${e}`)}function mS(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function G2(e,t){let r;try{r=new URL(t)}catch(a){throw a.code==="ERR_INVALID_URL"?new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenv.org/vault/.env.vault?environment=development"):a}let o=r.password;if(!o)throw new Error("INVALID_DOTENV_KEY: Missing key part");let n=r.searchParams.get("environment");if(!n)throw new Error("INVALID_DOTENV_KEY: Missing environment part");let s=`DOTENV_VAULT_${n.toUpperCase()}`,i=e.parsed[s];if(!i)throw new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${s} in your .env.vault file.`);return{ciphertext:i,key:o}}function gS(e){let t=md.resolve(process.cwd(),".env");return e&&e.path&&e.path.length>0&&(t=e.path),t.endsWith(".vault")?t:`${t}.vault`}function z2(e){return e[0]==="~"?md.join(N2.homedir(),e.slice(1)):e}function K2(e){V2("Loading env from encrypted .env.vault");let t=ct._parseVault(e),r=process.env;return e&&e.processEnv!=null&&(r=e.processEnv),ct.populate(r,t,e),{parsed:t}}function q2(e){let t=md.resolve(process.cwd(),".env"),r="utf8",o=!!(e&&e.debug);e&&(e.path!=null&&(t=z2(e.path)),e.encoding!=null?r=e.encoding:o&&Ou("No encoding is specified. UTF-8 is used by default"));try{let n=ct.parse(fS.readFileSync(t,{encoding:r})),s=process.env;return e&&e.processEnv!=null&&(s=e.processEnv),ct.populate(s,n,e),{parsed:n}}catch(n){return o&&Ou(`Failed to load ${t} ${n.message}`),{error:n}}}function W2(e){let t=gS(e);return mS(e).length===0?ct.configDotenv(e):fS.existsSync(t)?ct._configVault(e):(H2(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),ct.configDotenv(e))}function J2(e,t){let r=Buffer.from(t.slice(-64),"hex"),o=Buffer.from(e,"base64"),n=o.subarray(0,12),s=o.subarray(-16);o=o.subarray(12,-16);try{let i=B2.createDecipheriv("aes-256-gcm",r,n);return i.setAuthTag(s),`${i.update(o)}${i.final()}`}catch(i){let a=i instanceof RangeError,u=i.message==="Invalid key length",l=i.message==="Unsupported state or unable to authenticate data";if(a||u){let c="INVALID_DOTENV_KEY: It must be 64 characters long (or more)";throw new Error(c)}else if(l){let c="DECRYPTION_FAILED: Please check your DOTENV_KEY";throw new Error(c)}else throw console.error("Error: ",i.code),console.error("Error: ",i.message),i}}function Q2(e,t,r={}){let o=!!(r&&r.debug),n=!!(r&&r.override);if(typeof t!="object")throw new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");for(let s of Object.keys(t))Object.prototype.hasOwnProperty.call(e,s)?(n===!0&&(e[s]=t[s]),o&&Ou(n===!0?`"${s}" is already defined and WAS overwritten`:`"${s}" is already defined and was NOT overwritten`)):e[s]=t[s]}var ct={configDotenv:q2,_configVault:K2,_parseVault:U2,config:W2,decrypt:J2,parse:j2,populate:Q2};bn.exports.configDotenv=ct.configDotenv;bn.exports._configVault=ct._configVault;bn.exports._parseVault=ct._parseVault;bn.exports.config=ct.config;bn.exports.decrypt=ct.decrypt;bn.exports.parse=ct.parse;bn.exports.populate=ct.populate;bn.exports=ct});import*as Z2 from"@sentry/node";var X2,vS=P(()=>{"use strict";bx();pS();Oa();X2=et(hS(),1);hi()});var DS=P(()=>{"use strict"});var yS=P(()=>{"use strict"});var CS=P(()=>{"use strict"});import hH from"prettier";var Ss=P(()=>{"use strict";hc();dv();po();gi();uo();mn();fv();mv();fi();gv();Sv();By();Kt();mc();ru();My();jy();Gc();La();$a();vS();wc();DS();yS();CS();Pc();yp()});import bS from"node:process";function hd(){let{env:e}=bS,{TERM:t,TERM_PROGRAM:r}=e;return bS.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||r==="Terminus-Sublime"||r==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var xS=P(()=>{});var vd,Oi,Us,yd,Dd,Nu,t$,r$,n$,o$,Cd=P(()=>{"use strict";xS();vd=et(Jn(),1),Oi=et(ea(),1),Us=et(Jn(),1),yd=()=>{let e=Dd?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],t=Dd?80:120,r,o=!1,n="",s="",i="",a=h=>{let D=h>1?"Something went wrong":"Canceled";o&&f(D,h)},u=(h,D)=>{console.error(D,h),a(2)},l=()=>a(1),c=()=>{process.on("uncaughtExceptionMonitor",u),process.on("unhandledRejection",u),process.on("SIGINT",l),process.on("SIGTERM",l),process.on("exit",a)},p=()=>{process.removeListener("uncaughtExceptionMonitor",u),process.removeListener("unhandledRejection",u),process.removeListener("SIGINT",l),process.removeListener("SIGTERM",l),process.removeListener("exit",a)},d=(h="")=>{o=!0,n=h.replace(/\.+$/,""),process.stdout.write(`${vd.default.gray(t$)}
1493
1493
  `);let D=0,E=0;c(),process.env.CI||(r=setInterval(()=>{let x=vd.default.magenta(e[D]),T=".".repeat(Math.floor(E)).slice(0,3);process.stdout.write(Oi.cursor.move(-999,-i.split(`
1494
1494
  `).length+1)),process.stdout.write(Oi.erase.down(i.split(`
1495
1495
  `).length));let F=`${x} ${n}${T}${s}`;process.stdout.write(F),D=D+1<e.length?D+1:0,E=E<e.length?E+.125:0,i=F},t))},f=(h,D=0)=>{n=h??n,o=!1,clearInterval(r);let E=D===0?(0,Us.green)(o$):D===1?(0,Us.red)(r$):(0,Us.red)(n$);process.stdout.write(Oi.cursor.move(-999,-i.split(`
1496
1496
  `).length+1)),process.stdout.write(Oi.erase.down(i.split(`
1497
1497
  `).length)),process.stdout.write(`${E} ${n}
1498
- `),i=n,p()};return{start:d,stop:f,message:(h="")=>{n=h??n},extra:(h="")=>{s=h}}},Dd=hd(),Nu=(e,t)=>Dd?e:t,t$=Nu("\u2502","|"),r$=Nu("\u25A0","x"),n$=Nu("\u25B2","x"),o$=Nu("\u25C7","o")});async function bd(e){let{default:t}=await import("open");await t(e)}var xd=P(()=>{"use strict"});var SS=P(()=>{"use strict";Na();Kt()});import*as i$ from"@sentry/node";var ES=P(()=>{"use strict";Et();Ss();po();uo();mn();fi();Kt()});var rn,vG,wS=P(()=>{"use strict";rn=et(Jn(),1);hc();Kt();po();gi();yc();Et();$r();Na();Ss();Cd();ao();xd();SS();ES();vG=`
1498
+ `),i=n,p()};return{start:d,stop:f,message:(h="")=>{n=h??n},extra:(h="")=>{s=h}}},Dd=hd(),Nu=(e,t)=>Dd?e:t,t$=Nu("\u2502","|"),r$=Nu("\u25A0","x"),n$=Nu("\u25B2","x"),o$=Nu("\u25C7","o")});async function bd(e){let{default:t}=await import("open");await t(e)}var xd=P(()=>{"use strict"});var SS=P(()=>{"use strict";Na();Kt()});import*as i$ from"@sentry/node";var ES=P(()=>{"use strict";Et();Ss();po();uo();mn();fi();Kt()});var rn,yG,wS=P(()=>{"use strict";rn=et(Jn(),1);hc();Kt();po();gi();yc();Et();$r();Na();Ss();Cd();ao();xd();SS();ES();yG=`
1499
1499
  `+(0,rn.dim)("ESC to interrupt")});import*as Cr from"typescript";function Sd(e){return!(e.category!==Cr.DiagnosticCategory.Error||!e.file||e.code===6133||e.code===6138||e.code===6305||e.code===6196||e.code===6192||e.code===6198||e.code===6199||e.code===6205||e.code===1449||e.code===2578||e.code===7006||e.code===5074||e.code===7026||e.code===2503||e.code===2695||e.code===2322)}var PS=P(()=>{"use strict"});import ce from"typescript";async function s$(e,t,r){let o=[],n=[t],s=e.relative(e.getAppRootDir(),t.fileName);for(;n.length>0;){let i=n.shift();if(p$(i,t)){let a=u$(e,i,t,r),{line:u,character:l}=t.getLineAndCharacterOfPosition(i.getStart());a&&(a.loc=`${s}:${u+1}:${l+1}`,o.push(a))}n.push(...i.getChildren(t))}return o}function u$(e,t,r,o){let[n]=t.arguments;if(!n)throw new Error("Invalid figmaMapping call, no arguments found");if(!ce.isObjectLiteralExpression(n))throw new Error("Invalid figmaMapping call, argument is not an object literal");let s=n.properties;if(!s)throw new Error("Invalid figmaMapping call, argument has no properties");let i="",a,u,l,c="-",p=e.basename(r.fileName).replace(/\.mapper\.[tsxjm]+$/,""),d,f,m,g,h;if(t.typeArguments&&t.typeArguments.length>0){let L=AS(t.typeArguments[0].getText(r));L&&(p=L)}for(let L of s){let B=L.name?.getText(r);if(!B)throw new Error("Invalid figmaMapping call, property has no name");switch(B){case"componentName":{if(!("initializer"in L))throw new Error("Invalid figmaMapping call, componentName has no initializer");let I=L.initializer;if(!ce.isStringLiteral(I))throw new Error("Invalid figmaMapping call, componentName is not a string literal");a=I.text;break}case"url":{if(!("initializer"in L))throw new Error("Invalid figmaMapping call, url has no initializer");let I=L.initializer;if(!ce.isStringLiteral(I))throw new Error("Invalid figmaMapping call, url is not a string literal");g=I.text;break}case"componentKey":{if(!("initializer"in L))throw new Error("Invalid figmaMapping call, componentKey has no initializer");let I=L.initializer;if(!ce.isStringLiteral(I))throw new Error("Invalid figmaMapping call, componentKey is not a string literal");i=I.text;break}case"meta":{if(!("initializer"in L))throw new Error("Invalid figmaMapping call, meta has no initializer");let I=L.initializer;if(ce.isObjectLiteralExpression(I)){h={imports:[]};for(let k of I.properties)ce.isPropertyAssignment(k)&&ce.isIdentifier(k.name)&&k.name.text==="imports"&&ce.isArrayLiteralExpression(k.initializer)&&(h.imports=k.initializer.elements.map(j=>{if(ce.isStringLiteral(j))return j.text;if(ce.isObjectLiteralExpression(j)){let O={};for(let M of j.properties)if(ce.isPropertyAssignment(M)&&ce.isIdentifier(M.name)){let b=M.name.text;ce.isStringLiteral(M.initializer)&&(O[b]=M.initializer.text)}return O}return null}).filter(Boolean))}break}case"mapper":if(ce.isMethodDeclaration(L)){let I=function(C){let O=o.getSymbolAtLocation(C)?.getDeclarations()?.[0];if(O){let M=c$(O);if(M?.importClause){let b=M.importClause.name?.getText(r);return b===c?(d="default",f=b):M.importClause.namedBindings&&ce.isNamedImports(M.importClause.namedBindings)&&(d="named",M.importClause.namedBindings.elements.forEach(R=>{R.name.getText(r)===c&&(f=R.name.getText(r))})),f&&ce.isStringLiteral(M.moduleSpecifier)&&(m=M.moduleSpecifier.text),!0}}return!1},k=function(C){if((ce.isJsxOpeningElement(C)||ce.isJsxSelfClosingElement(C))&&ce.isIdentifier(C.tagName)){c=C.tagName.getText(r),I(C.tagName);return}else if(ce.isTaggedTemplateExpression(C)&&ce.isIdentifier(C.tag)&&(C.tag.escapedText==="html"||C.tag.escapedText==="tmpl")){if(ce.isTemplateExpression(C.template)){let O=C.template.templateSpans.find(M=>ce.isIdentifier(M.expression)&&l$(M.expression.text)&&I(M.expression));if(O&&ce.isIdentifier(O.expression)){c=O.expression.text;return}}let j=C.template.getText(r).match(/^`\s*<([^\s]+)/);if(j){c=j[1];return}if(j=C.template.getText(r).match(/^`\s*([^\s]+)/),j){c=j[1];return}}else ce.forEachChild(C,k)};var F=I,A=k;if(L.parameters&&L.parameters.length>0&&L.parameters[0]&&L.parameters[0].type){let C=L.parameters[0].type.getText(r),j=AS(C);j&&(p=j)}ce.forEachChild(L,k),l=L.getText(r).replace(/^mapper/,"function Mapper"),u=Ed(l);break}case"designTokenMapper":if(ce.isMethodDeclaration(L)){l=L.getText(r).replace(/^designTokenMapper/,"function Mapper"),u=Ed(l),i="design-tokens";break}case"genericMapper":if(ce.isMethodDeclaration(L)){l=L.getText(r).replace(/^genericMapper/,"function Mapper"),u=Ed(l),i="*";break}}}if(!i&&!g)throw new Error("Invalid figmaMapping call, no componentKey or url found");if(!i&&!u)throw new Error("Invalid figmaMapping call, no mapper found");if(!i&&!l)throw new Error("Invalid figmaMapping call, no original mapper found");let D=m$(r),E=h?.imports??[],x=[],T=[];x.push(...D);for(let L of E)typeof L=="string"?T.push(L):x.push(L);return{builderName:c,figmaName:a??p,figmaKey:i,figmaUrl:g,inputMapper:u,exportType:d,importName:f,importPath:m,originalInputMapper:l,imports:x,importStrings:T.length>0?T:void 0,source:"cli"}}function l$(e){return e.charAt(0)===e.charAt(0).toUpperCase()}function Ed(e){return ce.transpile(e,{target:ce.ScriptTarget.Latest,allowNonTsExtensions:!0,moduleResolution:ce.ModuleResolutionKind.NodeJs,module:ce.ModuleKind.CommonJS,noImplicitAny:!1,esModuleInterop:!0,noUnusedLocals:!1,noUnusedParameters:!1,jsx:ce.JsxEmit.React,jsxFactory:"React.createElement",jsxFragmentFactory:"React.Fragment",allowJs:!0,checkJs:!0,strict:!0,suppressImplicitAnyIndexErrors:!0,typeRoots:["node_modules/@types"],inlineSources:!0,inlineSourceMap:!0})}function c$(e){let t=e;for(;t;){if(ce.isImportDeclaration(t))return t;t=t.parent}}function p$(e,t){return ce.isCallExpression(e)&&e.expression.getText(t)===a$}async function FS(e){let t=["node_modules","dist","build","public"];return(await e.readdirRecursive(e.getAppRootDir(),t)).filter(o=>nr(o))}function AS(e){let t=e.match(/^Figma(\w+)Props$/);if(t&&typeof t[1]=="string")return t[1]}async function TS(e,t,r,o=!1){try{return r||(r=await Ta(e)),(await r.setPublicApiKey({publicApiKey:t})).modifiedType==="permission-error"?{success:!1,error:"permission-error"}:(o&&await r.ensureFigmaImportPage(),{success:!0})}catch(n){let s="unknown-error";return n instanceof Error?s=n.message:typeof n=="string"&&(s=n),{success:!1,error:s}}}function f$(e){return ce.formatDiagnosticsWithColorAndContext(e,d$)}async function RS({sys:e,mappingFiles:t,typeCheck:r}){if(e.Sentry?.setContext("findMappings",{mappingFiles:t}),!t.length)return{mapperFiles:[],figmaBuilderLinks:[],figmaLinksToResolve:[],diagnostics:[]};let o=[],n=[],s=[],i=await rt(e,t),a=i.getTypeChecker(),u=i.getSyntacticDiagnostics().filter(Sd).filter(p=>p.file?.fileName?t.includes(p.file.fileName):!1);if(u.length>0)return xe.error(`At least one of the mappings contain syntactic errors:
1500
1500
 
1501
1501
  ${f$(u)}`),dn(1);let l=[...r?i.getSemanticDiagnostics():[]].filter(Sd);for(let p of t)try{let d=i.getSourceFile(p);if(!d){e.Sentry?.captureException(new Error("Could not find source file"),{extra:{file:p,sourceFiles:i.getSourceFiles().map(g=>g.fileName)},level:"warning"});continue}let f=d?.fileName;if(n.push({filePath:p,content:d.getText()}),f){let g=l.filter(h=>h.file?.fileName===f);g.length>0&&s.push(...g)}let m=await s$(e,d,a);o.push(...m)}catch(d){return e.Sentry?.captureException(d),await dn(1)}let c=o.filter(p=>p.figmaUrl&&!p.figmaKey).map(p=>p.figmaUrl);return{mapperFiles:n,figmaBuilderLinks:o,figmaLinksToResolve:c,diagnostics:s}}function m$(e){let t=[];for(let r of e.statements){if(!ce.isImportDeclaration(r)||!r.importClause||r.importClause.isTypeOnly||!ce.isStringLiteral(r.moduleSpecifier))continue;let o=r.moduleSpecifier.text;if(o.startsWith("@builder.io"))continue;r.importClause.name&&t.push({importType:"default",importName:r.importClause.name.text,importPath:o});let n=r.importClause.namedBindings;if(n&&ce.isNamedImports(n))for(let s of n.elements)s.isTypeOnly||t.push({importType:"named",importName:s.name.text,importPath:o})}return t}var a$,d$,wd=P(()=>{"use strict";po();Kt();ir();Ra();ao();uo();Ee();gi();mn();$r();Oa();Wh();wS();PS();a$="figmaMapping";d$={getCanonicalFileName:e=>e,getCurrentDirectory:()=>ce.sys.getCurrentDirectory(),getNewLine:()=>ce.sys.newLine}});import{createServer as g$}from"http";import{platform as h$}from"node:os";import{dirname as IS,join as xn}from"node:path";import{existsSync as Fd,mkdirSync as _S,readFileSync as $S,writeFileSync as Bu}from"node:fs";import{randomUUID as v$}from"crypto";async function x$(e){let t=v$();return OS({sys:e,name:"Figma",initialPort:D$,requestListener:async(r,o,n,s,i)=>{let a=new URL(o.url||"",`http://localhost:${r}`);if(a.pathname==="/figma-connect"){let u=a.searchParams.get("code"),l=a.searchParams.get("state"),c="nrGCqw6TLl95QJhVDi097A",p=b$,f=`Basic ${Buffer.from(`${c}:${p}`).toString("base64")}`;if(u&&t===l){let g=await(await fn("https://api.figma.com/v1/oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:f},body:new URLSearchParams({redirect_uri:`http://localhost:${r}/figma-connect`,code:u,grant_type:"authorization_code"}).toString()})).json();n.end(`<!doctype html>