@builder.io/dev-tools 0.2.24 → 0.2.26

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,43 +1,30 @@
1
- import{createServer as oe,request as ne}from"http";var v="preview-url";var S="framework",y="platform",_="node",C="/~builder-connect",g="/~builder-connected",T="/~builder-dev-tools",w="/~builder-dev-tools.js",p="/~builder-dev-tools-close";import{debug as q}from"console";import{request as Q}from"http";import{request as x}from"https";function m(e){let t=Date.now();return new Promise((r,o)=>{let a=J(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},n=>{let i="";n.on("data",l=>{i+=l}),n.on("end",()=>{if(q(`${e.method} ${e.url.href}, duration: ${Date.now()-t}ms`),typeof n.statusCode=="number"&&n.statusCode>=200&&n.statusCode<300)if(typeof n.headers["content-type"]!="string"||!n.headers["content-type"].includes("application/json"))o(`Response from ${e.url.href} content-type is ${n.headers["content-type"]}`);else try{r(JSON.parse(i))}catch(l){o(`Response from ${e.url.href} is not valid JSON: ${i}
2
- ${l}`)}else o(`Request to ${e.url.href} failed with status ${n.statusCode}: ${i}`)})}).on("error",n=>{o(`Error fetching ${e.url.href}, ${n}`)});e.body&&(a.setHeader("Content-Type","application/json"),a.write(e.body)),a.end()})}function J(e){if(e.protocol==="https:")return x;if(e.protocol==="http:")return Q;throw new Error(`Unsupported protocol ${e.protocol}`)}async function A(e,t){let r=new URL("https://cdn.builder.io/api/v2/admin"),o={query:`query {
1
+ import{createServer as se,request as ie}from"http";var v="preview-url";var S="framework",y="platform",w="node",_="/~builder-connect",g="/~builder-connected",T="/~builder-dev-tools",D="/~builder-dev-tools.js",d="/~builder-dev-tools-close";async function E(e){return(await e.hash(e.getRootDir())).substring(0,8)}async function A(e,t){let r=await e.readFile(t.filePath);return r==null?{diagnostics:[{messageText:`Error reading: ${t.filePath}`}],code:null,output:null}:b(e,{code:r,filePath:t.filePath,compilerOptions:t.compilerOptions})}function b(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(s=>{r.diagnostics.push({messageText:String(s.messageText)})}),r.output=o.outputText}catch(o){console.error("transpileModule",o),r.diagnostics.push({messageText:String(o)})}return r}import{debug as q}from"console";import{request as Q}from"http";import{request as G}from"https";function m(e){let t=Date.now();return new Promise((r,o)=>{let i=W(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},n=>{let a="";n.on("data",l=>{a+=l}),n.on("end",()=>{if(q(`${e.method} ${e.url.href}, duration: ${Date.now()-t}ms`),typeof n.statusCode=="number"&&n.statusCode>=200&&n.statusCode<300)if(typeof n.headers["content-type"]!="string"||!n.headers["content-type"].includes("application/json"))o(`Response from ${e.url.href} content-type is ${n.headers["content-type"]}`);else try{r(JSON.parse(a))}catch(l){o(`Response from ${e.url.href} is not valid JSON: ${a}
2
+ ${l}`)}else o(`Request to ${e.url.href} failed with status ${n.statusCode}: ${a}`)})}).on("error",n=>{o(`Error fetching ${e.url.href}, ${n}`)});e.body&&(i.setHeader("Content-Type","application/json"),i.write(e.body)),i.end()})}function W(e){if(e.protocol==="https:")return G;if(e.protocol==="http:")return Q;throw new Error(`Unsupported protocol ${e.protocol}`)}async function R(e,t){let r=new URL("https://cdn.builder.io/api/v2/admin"),o={query:`query {
3
3
  models {
4
4
  id
5
5
  name
6
6
  }
7
- }`};e.debug(`Get model id for model name "${t.model}"`);let a=(await m({url:r,method:"POST",headers:{Authorization:`Bearer ${t.privateAuthKey}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(o)})).data.models.find(l=>l.name===t.model);if(!a)return e.debug(`No model found for model name "${t.model}"`),!1;e.debug(`Data query, modelId: "${a.id}", urlPath: "${t.pageUrl}"`);let n=new URL("https://cdn.builder.io/api/v3/data");n.searchParams.set("limit","1"),n.searchParams.set("cachebust","true"),n.searchParams.set("collection","content"),n.searchParams.set("query.published.$ne","archived"),n.searchParams.set("query.query.$elemMatch.$and[0].property","urlPath"),n.searchParams.set("query.query.$elemMatch.$and[0].operator","is"),n.searchParams.set("query.query.$elemMatch.$and[0].value",t.pageUrl),n.searchParams.set("query.modelId",a.id),n.searchParams.set("apiKey",t.publicApiKey);let i=await m({url:n,method:"GET"});return e.debug(`Data results (${i.results.length}): ${n.href}`),i.results.length>0}async function h(e,t){let r=new URL(`https://cdn.builder.io/api/v3/content/${t.model}`);r.searchParams.set("apiKey",t.publicApiKey),r.searchParams.set("cachebust","true"),r.searchParams.set("cb",Date.now().toString()),t.pageUrl&&(r.searchParams.set("url",t.pageUrl),e.debug(`get model: "${t.model}", pageUrl: "${t.pageUrl}":`,r.href)),t.id&&(r.searchParams.set("query.id",t.id),e.debug(`get model: "${t.model}", id: "${t.id}":`,r.href));let o=await m({url:r,method:"GET"});return e.debug(`get content results: ${o.results.length}`),o}async function D(e,t){let r=new URL(`https://cdn.builder.io/api/v1/write/${t.model}`);e.debug(`writing "${t.model}" content:`,r.href),await m({url:r,method:"POST",headers:{Authorization:`Bearer ${t.privateAuthKey}`},body:t.body})}var d="page",R="integration-welcome-screens",E="8d9ee72a33344b4b867918b442ebd0af";async function O(e,t){let r=await h(e,{model:R,publicApiKey:E,id:t.templateContentId});if(!Array.isArray(r?.results)||r.results.length===0||!r.results[0].data?.blocks)throw new Error(`No Builder content found for id ${t.templateContentId}`);let o=JSON.stringify(r.results[0].data.blocks),s=G(t.publicApiKey,t.pathname,t.title,o);await D(e,{privateAuthKey:t.privateAuthKey,model:d,body:s})}function G(e,t,r,o){return JSON.stringify({name:r,ownerId:e,published:"published",query:[{property:"urlPath",value:[t],operator:"is"}],data:{title:r,blocksString:o}})}async function P(e,t,r){e.debug(`connect builder with public key: ${t}`),e.publicApiKey=t;let o=e.closeAppServer(),s=await e.setPublicApiKey({publicApiKey:t});e.debug(`set public key: process.env.${s.envKey}=${t}`),process.env[s.envKey]=t;let a=await e.builderPageOptions();e.debug(`builder model: ${d}, path: ${a.pathname}, template: ${a.templateContentId}`),await A(e,{model:d,pageUrl:a.pathname,publicApiKey:t,privateAuthKey:r})||await O(e,{templateContentId:a.templateContentId,pathname:a.pathname,title:a.title,publicApiKey:t,privateAuthKey:r}),await o,e.debug("ensure builder setup");let i=await e.ensureBuilderSetup();s.modifiedType&&i.push({filePath:s.file,modifiedType:s.modifiedType}),i.forEach(u=>{u.displayFilePath=e.relative(e.getRootDir(),u.filePath)}),i.sort((u,j)=>u.filePath.localeCompare(j.filePath)),i.length>0?(e.debug(`modified files: ${i.map(u=>u.displayFilePath).join(", ")}`),await e.restartAppServer(),await new Promise(u=>setTimeout(u,500))):e.debug("no modified files");let l={success:!0,pathname:a.localePathname||a.pathname,modifiedFiles:i,platform:e.platform()};return e.debug(`connected builder: ${l.pathname}`),l}async function I(e){let t=await e.builderPageOptions();e.debug(`validateBuilder, pathname: ${t.pathname}, localePathname: ${t.localePathname}, isValid: ${e.isValid}`);let r={isValid:e.isValid,pathname:t.localePathname||t.pathname,platform:e.platform()};if(e.isValid)return r;let o=await e.getPublicApiKey();return o.envValue?(e.debug(`public api key: ${o.envValue}, ${o.file}`),e.publicApiKey=o.envValue,(await h(e,{model:d,publicApiKey:o.envValue})).results.length===0?(e.debug("missing homepage content"),r):(e.debug("builder connection is valid"),r.isValid=!0,e.isValid=!0,r)):(e.debug("missing public api key"),r)}async function L(e,t){let r={type:t.type};switch(t.type){case"getCache":{r.data=await e.getCache();break}case"setCache":{await e.setCache(t.data);break}case"connectBuilder":{r.data=await P(e,t.data.publicApiKey,t.data.privateAuthKey);break}case"enableDevTools":{r.data=z(e,t.data.enabled);break}case"getRegistry":{r.data=await e.getRegistry(t.data);break}case"launchEditor":{r.data=await e.launchEditor(t.data);break}case"validateBuilder":{r.data=await I(e);break}case"loadComponent":{r.data=await e.loadComponent(t.data);break}case"registerComponent":{r.data=await e.registerComponent(t.data),e.serverShouldRestart=!0;break}case"setComponentInfo":{r.data=await e.setRegisteredComponentInfo(t.data),e.serverShouldRestart=!0;break}case"setComponentInput":{r.data=await e.setRegisteredComponentInput(t.data),e.serverShouldRestart=!0;break}case"unregisterComponent":{r.data=await e.unregisterComponent(t.data),e.serverShouldRestart=!0;break}case"getFrameworks":{r.data=e.getFrameworks();break}case"readdir":{b(t.path)?r.data=await e.readdir(t.path,!0):r.errors=[`Invalid file request: ${t.path}`];break}case"readFile":{b(t.path)?r.data=await e.readFile(t.path):r.errors=[`Invalid file request: ${t.path}`];break}case"writeFile":{b(t.path)?await e.writeFile(t.path,t.content):r.errors=[`Invalid file request: ${t.path}`];break}case"ensureFigmaImportPage":{r.data=await e.ensureFigmaImportPage();break}default:{r.errors=[`Unknown request type: ${JSON.stringify(t)}`];let o=t}}return r}function b(e){if(!e||e.includes(".."))return!1;e=e.replace(/\\/g,"/");let t=e.split("/"),r=t[t.length-1];if(r.length>0){let o=r.split(".").pop();if(o&&(o=`.${o}`.toLocaleLowerCase(),o=o.split("?")[0],!W.includes(o)))return!1}return!0}var W=[".js",".jsx",".ts",".tsx",".json",".css",".scss",".sass",".less",".html",".htm",".xml",".svg",".png",".jpg",".jpeg",".gif",".ico",".webp",".woff",".woff2",".ttf",".eot",".mp4",".webm",".ogg",".md",".txt",".csv",".pdf"];function z(e,t){return!t&&e.serverShouldRestart&&setTimeout(()=>{console.log(`
7
+ }`};e.debug(`Get model id for model name "${t.model}"`);let i=(await m({url:r,method:"POST",headers:{Authorization:`Bearer ${t.privateAuthKey}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(o)})).data.models.find(l=>l.name===t.model);if(!i)return e.debug(`No model found for model name "${t.model}"`),!1;e.debug(`Data query, modelId: "${i.id}", urlPath: "${t.pageUrl}"`);let n=new URL("https://cdn.builder.io/api/v3/data");n.searchParams.set("limit","1"),n.searchParams.set("cachebust","true"),n.searchParams.set("collection","content"),n.searchParams.set("query.published.$ne","archived"),n.searchParams.set("query.query.$elemMatch.$and[0].property","urlPath"),n.searchParams.set("query.query.$elemMatch.$and[0].operator","is"),n.searchParams.set("query.query.$elemMatch.$and[0].value",t.pageUrl),n.searchParams.set("query.modelId",i.id),n.searchParams.set("apiKey",t.publicApiKey);let a=await m({url:n,method:"GET"});return e.debug(`Data results (${a.results.length}): ${n.href}`),a.results.length>0}async function f(e,t){let r=new URL(`https://cdn.builder.io/api/v3/content/${t.model}`);r.searchParams.set("apiKey",t.publicApiKey),r.searchParams.set("cachebust","true"),r.searchParams.set("cb",Date.now().toString()),t.pageUrl&&(r.searchParams.set("url",t.pageUrl),e.debug(`get model: "${t.model}", pageUrl: "${t.pageUrl}":`,r.href)),t.id&&(r.searchParams.set("query.id",t.id),e.debug(`get model: "${t.model}", id: "${t.id}":`,r.href));let o=await m({url:r,method:"GET"});return e.debug(`get content results: ${o.results.length}`),o}async function O(e,t){let r=new URL(`https://cdn.builder.io/api/v1/write/${t.model}`);e.debug(`writing "${t.model}" content:`,r.href),await m({url:r,method:"POST",headers:{Authorization:`Bearer ${t.privateAuthKey}`},body:t.body})}var p="page",P="integration-welcome-screens",L="8d9ee72a33344b4b867918b442ebd0af";async function $(e,t){let r=await f(e,{model:P,publicApiKey:L,id:t.templateContentId});if(!Array.isArray(r?.results)||r.results.length===0||!r.results[0].data?.blocks)throw new Error(`No Builder content found for id ${t.templateContentId}`);let o=JSON.stringify(r.results[0].data.blocks),s=z(t.publicApiKey,t.pathname,t.title,o);await O(e,{privateAuthKey:t.privateAuthKey,model:p,body:s})}function z(e,t,r,o){return JSON.stringify({name:r,ownerId:e,published:"published",query:[{property:"urlPath",value:[t],operator:"is"}],data:{title:r,blocksString:o}})}async function I(e,t,r){e.debug(`connect builder with public key: ${t}`),e.publicApiKey=t;let o=e.closeAppServer(),s=await e.setPublicApiKey({publicApiKey:t});e.debug(`set public key: process.env.${s.envKey}=${t}`),process.env[s.envKey]=t;let i=await e.builderPageOptions();e.debug(`builder model: ${p}, path: ${i.pathname}, template: ${i.templateContentId}`),await R(e,{model:p,pageUrl:i.pathname,publicApiKey:t,privateAuthKey:r})||await $(e,{templateContentId:i.templateContentId,pathname:i.pathname,title:i.title,publicApiKey:t,privateAuthKey:r}),await o,e.debug("ensure builder setup");let a=await e.ensureBuilderSetup();s.modifiedType&&a.push({filePath:s.file,modifiedType:s.modifiedType}),a.forEach(u=>{u.displayFilePath=e.relative(e.getRootDir(),u.filePath)}),a.sort((u,J)=>u.filePath.localeCompare(J.filePath)),a.length>0?(e.debug(`modified files: ${a.map(u=>u.displayFilePath).join(", ")}`),await e.restartAppServer(),await new Promise(u=>setTimeout(u,500))):e.debug("no modified files");let l={success:!0,pathname:i.localePathname||i.pathname,modifiedFiles:a,platform:e.platform()};return e.debug(`connected builder: ${l.pathname}`),l}async function U(e){let t=await e.builderPageOptions();e.debug(`validateBuilder, pathname: ${t.pathname}, localePathname: ${t.localePathname}, isValid: ${e.isValid}`);let r={isValid:e.isValid,pathname:t.localePathname||t.pathname,platform:e.platform()};if(e.isValid)return r;let o=await e.getPublicApiKey();return o.envValue?(e.debug(`public api key: ${o.envValue}, ${o.file}`),e.publicApiKey=o.envValue,(await f(e,{model:p,publicApiKey:o.envValue})).results.length===0?(e.debug("missing homepage content"),r):(e.debug("builder connection is valid"),r.isValid=!0,e.isValid=!0,r)):(e.debug("missing public api key"),r)}async function N(e,t){let r={type:t.type};switch(t.type){case"getCache":{r.data=await e.getCache();break}case"setCache":{await e.setCache(t.data);break}case"connectBuilder":{r.data=await I(e,t.data.publicApiKey,t.data.privateAuthKey);break}case"enableDevTools":{r.data=X(e,t.data.enabled);break}case"getRegistry":{r.data=await e.getRegistry(t.data);break}case"launchEditor":{r.data=await e.launchEditor(t.data);break}case"validateBuilder":{r.data=await U(e);break}case"loadComponent":{r.data=await e.loadComponent(t.data);break}case"registerComponent":{r.data=await e.registerComponent(t.data),e.serverShouldRestart=!0;break}case"setComponentInfo":{r.data=await e.setRegisteredComponentInfo(t.data),e.serverShouldRestart=!0;break}case"setComponentInput":{r.data=await e.setRegisteredComponentInput(t.data),e.serverShouldRestart=!0;break}case"unregisterComponent":{r.data=await e.unregisterComponent(t.data),e.serverShouldRestart=!0;break}case"getFrameworks":{r.data=e.getFrameworks();break}case"readdir":{C(t.path)?r.data=await e.readdir(t.path,!0):r.errors=[`Invalid file request: ${t.path}`];break}case"readFile":{C(t.path)?r.data=await e.readFile(t.path):r.errors=[`Invalid file request: ${t.path}`];break}case"writeFile":{C(t.path)?await e.writeFile(t.path,t.content):r.errors=[`Invalid file request: ${t.path}`];break}case"ensureFigmaImportPage":{r.data=await e.ensureFigmaImportPage();break}case"transileFile":{r.data=await A(e,t);break}case"transileModule":{r.data=b(e,t);break}default:{r.errors=[`Unknown request type: ${JSON.stringify(t)}`];let o=t}}return r}function C(e){if(!e||e.includes(".."))return!1;e=e.replace(/\\/g,"/");let t=e.split("/"),r=t[t.length-1];if(r.length>0){let o=r.split(".").pop();if(o&&(o=`.${o}`.toLocaleLowerCase(),o=o.split("?")[0],!Y.includes(o)))return!1}return!0}var Y=[".js",".jsx",".ts",".tsx",".json",".css",".scss",".sass",".less",".html",".htm",".xml",".svg",".png",".jpg",".jpeg",".gif",".ico",".webp",".woff",".woff2",".ttf",".eot",".mp4",".webm",".ogg",".md",".txt",".csv",".pdf"];function X(e,t){return!t&&e.serverShouldRestart&&setTimeout(()=>{console.log(`
8
8
  Restarting server after Builder Devtools update...
9
- `),e.restartAppServer()},10),e.enableAppWatch(!t),{enabled:t,platform:e.platform()}}async function $(e){return(await e.hash(e.getRootDir())).substring(0,8)}async function U(e){return k(e,`"use strict";(()=>{var lb=Object.create;var Va=Object.defineProperty;var gb=Object.getOwnPropertyDescriptor;var fb=Object.getOwnPropertyNames;var db=Object.getPrototypeOf,pb=Object.prototype.hasOwnProperty;var Wa=(o,r)=>()=>(r||o((r={exports:{}}).exports,r),r.exports),mb=(o,r)=>{for(var i in r)Va(o,i,{get:r[i],enumerable:!0})},wb=(o,r,i,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of fb(r))!pb.call(o,c)&&c!==i&&Va(o,c,{get:()=>r[c],enumerable:!(a=gb(r,c))||a.enumerable});return o};var Xn=(o,r,i)=>(i=o!=null?lb(db(o)):{},wb(r||!o||!o.__esModule?Va(i,"default",{value:o,enumerable:!0}):i,o));var ef=Wa((Jr,_i)=>{(function(o,r){"use strict";var i="0.7.33",a="",c="?",u="function",d="undefined",b="object",T="string",m="major",g="model",w="name",h="type",y="vendor",E="version",M="architecture",L="console",O="mobile",P="tablet",U="smarttv",Q="wearable",oe="embedded",Z=350,fe="Amazon",de="Apple",xe="ASUS",He="BlackBerry",Ie="Browser",ee="Chrome",Jt="Edge",nt="Firefox",ze="Google",Je="Huawei",Lt="LG",st="Microsoft",Ve="Motorola",dt="Opera",xt="Samsung",Wt="Sharp",je="Sony",pt="Xiaomi",Gt="Zebra",ge="Facebook",Tt=function(j,ne){var Y={};for(var F in j)ne[F]&&ne[F].length%2===0?Y[F]=ne[F].concat(j[F]):Y[F]=j[F];return Y},ao=function(j){for(var ne={},Y=0;Y<j.length;Y++)ne[j[Y].toUpperCase()]=j[Y];return ne},eo=function(j,ne){return typeof j===T?Dt(ne).indexOf(Dt(j))!==-1:!1},Dt=function(j){return j.toLowerCase()},so=function(j){return typeof j===T?j.replace(/[^\\d\\.]/g,a).split(".")[0]:r},Ye=function(j,ne){if(typeof j===T)return j=j.replace(/^\\s\\s*/,a),typeof ne===d?j:j.substring(0,Z)},et=function(j,ne){for(var Y=0,F,q,H,z,$e,_e;Y<ne.length&&!$e;){var ie=ne[Y],V=ne[Y+1];for(F=q=0;F<ie.length&&!$e;)if($e=ie[F++].exec(j),$e)for(H=0;H<V.length;H++)_e=$e[++q],z=V[H],typeof z===b&&z.length>0?z.length===2?typeof z[1]==u?this[z[0]]=z[1].call(this,_e):this[z[0]]=z[1]:z.length===3?typeof z[1]===u&&!(z[1].exec&&z[1].test)?this[z[0]]=_e?z[1].call(this,_e,z[2]):r:this[z[0]]=_e?_e.replace(z[1],z[2]):r:z.length===4&&(this[z[0]]=_e?z[3].call(this,_e.replace(z[1],z[2])):r):this[z]=_e||r;Y+=2}},Ho=function(j,ne){for(var Y in ne)if(typeof ne[Y]===b&&ne[Y].length>0){for(var F=0;F<ne[Y].length;F++)if(eo(ne[Y][F],j))return Y===c?r:Y}else if(eo(ne[Y],j))return Y===c?r:Y;return j},ct={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Kt={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},To={browser:[[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],[E,[w,"Chrome"]],[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],[E,[w,"Edge"]],[/(opera mini)\\/([-\\w\\.]+)/i,/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i],[w,E],[/opios[\\/ ]+([\\w\\.]+)/i],[E,[w,dt+" Mini"]],[/\\bopr\\/([\\w\\.]+)/i],[E,[w,dt]],[/(kindle)\\/([\\w\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\/ ]?([\\w\\.]*)/i,/(ba?idubrowser)[\\/ ]?([\\w\\.]+)/i,/(?:ms|\\()(ie) ([\\w\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,/(weibo)__([\\d\\.]+)/i],[w,E],[/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i],[E,[w,"UC"+Ie]],[/microm.+\\bqbcore\\/([\\w\\.]+)/i,/\\bqbcore\\/([\\w\\.]+).+microm/i],[E,[w,"WeChat(Win) Desktop"]],[/micromessenger\\/([\\w\\.]+)/i],[E,[w,"WeChat"]],[/konqueror\\/([\\w\\.]+)/i],[E,[w,"Konqueror"]],[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],[E,[w,"IE"]],[/yabrowser\\/([\\w\\.]+)/i],[E,[w,"Yandex"]],[/(avast|avg)\\/([\\w\\.]+)/i],[[w,/(.+)/,"$1 Secure "+Ie],E],[/\\bfocus\\/([\\w\\.]+)/i],[E,[w,nt+" Focus"]],[/\\bopt\\/([\\w\\.]+)/i],[E,[w,dt+" Touch"]],[/coc_coc\\w+\\/([\\w\\.]+)/i],[E,[w,"Coc Coc"]],[/dolfin\\/([\\w\\.]+)/i],[E,[w,"Dolphin"]],[/coast\\/([\\w\\.]+)/i],[E,[w,dt+" Coast"]],[/miuibrowser\\/([\\w\\.]+)/i],[E,[w,"MIUI "+Ie]],[/fxios\\/([-\\w\\.]+)/i],[E,[w,nt]],[/\\bqihu|(qi?ho?o?|360)browser/i],[[w,"360 "+Ie]],[/(oculus|samsung|sailfish|huawei)browser\\/([\\w\\.]+)/i],[[w,/(.+)/,"$1 "+Ie],E],[/(comodo_dragon)\\/([\\w\\.]+)/i],[[w,/_/g," "],E],[/(electron)\\/([\\w\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\/ ]?([\\w\\.]+)/i],[w,E],[/(metasr)[\\/ ]?([\\w\\.]+)/i,/(lbbrowser)/i,/\\[(linkedin)app\\]/i],[w],[/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i],[[w,ge],E],[/safari (line)\\/([\\w\\.]+)/i,/\\b(line)\\/([\\w\\.]+)\\/iab/i,/(chromium|instagram)[\\/ ]([-\\w\\.]+)/i],[w,E],[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],[E,[w,"GSA"]],[/headlesschrome(?:\\/([\\w\\.]+)| )/i],[E,[w,ee+" Headless"]],[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],[[w,ee+" WebView"],E],[/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i],[E,[w,"Android "+Ie]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i],[w,E],[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],[E,[w,"Mobile Safari"]],[/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i],[E,w],[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],[w,[E,Ho,ct]],[/(webkit|khtml)\\/([\\w\\.]+)/i],[w,E],[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],[[w,"Netscape"],E],[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],[E,[w,nt+" Reality"]],[/ekiohf.+(flow)\\/([\\w\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,/(firefox)\\/([\\w\\.]+)/i,/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,/(links) \\(([\\w\\.]+)/i],[w,E],[/(cobalt)\\/([\\w\\.]+)/i],[w,[E,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],[[M,"amd64"]],[/(ia32(?=;))/i],[[M,Dt]],[/((?:i[346]|x)86)[;\\)]/i],[[M,"ia32"]],[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],[[M,"arm64"]],[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],[[M,"armhf"]],[/windows (ce|mobile); ppc;/i],[[M,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],[[M,/ower/,a,Dt]],[/(sun4\\w)[;\\)]/i],[[M,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i],[[M,Dt]]],device:[[/\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[g,[y,xt],[h,P]],[/\\b((?:s[cgp]h|gt|sm)-\\w+|galaxy nexus)/i,/samsung[- ]([-\\w]+)/i,/sec-(sgh\\w+)/i],[g,[y,xt],[h,O]],[/((ipod|iphone)\\d+,\\d+)/i],[g,[y,de],[h,O]],[/(ipad\\d+,\\d+)/i],[g,[y,de],[h,P]],[/\\((ip(?:hone|od)[\\w ]*);/i],[g,[y,de],[h,O]],[/\\((ipad);[-\\w\\),; ]+apple/i,/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i],[g,[y,de],[h,P]],[/(macintosh);/i],[g,[y,de]],[/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i],[g,[y,Je],[h,P]],[/(?:huawei|honor)([-\\w ]+)[;\\)]/i,/\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i],[g,[y,Je],[h,O]],[/\\b(poco[\\w ]+)(?: bui|\\))/i,/\\b; (\\w+) build\\/hm\\1/i,/\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i,/\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i,/\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i],[[g,/_/g," "],[y,pt],[h,O]],[/\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i],[[g,/_/g," "],[y,pt],[h,P]],[/; (\\w+) bui.+ oppo/i,/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i],[g,[y,"OPPO"],[h,O]],[/vivo (\\w+)(?: bui|\\))/i,/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i],[g,[y,"Vivo"],[h,O]],[/\\b(rmx[12]\\d{3})(?: bui|;|\\))/i],[g,[y,"Realme"],[h,O]],[/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,/\\bmot(?:orola)?[- ](\\w*)/i,/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i],[g,[y,Ve],[h,O]],[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],[g,[y,Ve],[h,P]],[/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i],[g,[y,Lt],[h,P]],[/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,/\\blg-?([\\d\\w]+) bui/i],[g,[y,Lt],[h,O]],[/(ideatab[-\\w ]+)/i,/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i],[g,[y,"Lenovo"],[h,P]],[/(?:maemo|nokia).*(n900|lumia \\d+)/i,/nokia[-_ ]?([-\\w\\.]*)/i],[[g,/_/g," "],[y,"Nokia"],[h,O]],[/(pixel c)\\b/i],[g,[y,ze],[h,P]],[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],[g,[y,ze],[h,O]],[/droid.+ (a?\\d[0-2]{2}so|[c-g]\\d{4}|so[-gl]\\w+|xq-a\\w[4-7][12])(?= bui|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i],[g,[y,je],[h,O]],[/sony tablet [ps]/i,/\\b(?:sony)?sgp\\w+(?: bui|\\))/i],[[g,"Xperia Tablet"],[y,je],[h,P]],[/ (kb2005|in20[12]5|be20[12][59])\\b/i,/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i],[g,[y,"OnePlus"],[h,O]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\\))/i,/(kf[a-z]+)( bui|\\)).+silk\\//i],[g,[y,fe],[h,P]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],[[g,/(.+)/g,"Fire Phone $1"],[y,fe],[h,O]],[/(playbook);[-\\w\\),; ]+(rim)/i],[g,y,[h,P]],[/\\b((?:bb[a-f]|st[hv])100-\\d)/i,/\\(bb10; (\\w+)/i],[g,[y,He],[h,O]],[/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i],[g,[y,xe],[h,P]],[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],[g,[y,xe],[h,O]],[/(nexus 9)/i],[g,[y,"HTC"],[h,P]],[/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\\w]*)/i],[y,[g,/_/g," "],[h,O]],[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],[g,[y,"Acer"],[h,P]],[/droid.+; (m[1-5] note) bui/i,/\\bmz-([-\\w]{2,})/i],[g,[y,"Meizu"],[h,O]],[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],[g,[y,Wt],[h,O]],[/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\w]*)/i,/(hp) ([\\w ]+\\w)/i,/(asus)-?(\\w+)/i,/(microsoft); (lumia[\\w ]+)/i,/(lenovo)[-_ ]?([-\\w]+)/i,/(jolla)/i,/(oppo) ?([\\w ]+) bui/i],[y,g,[h,O]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\/([\\w\\.]+)/i,/(nook)[\\w ]+build\\/(\\w+)/i,/(dell) (strea[kpr\\d ]*[\\dko])/i,/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,/(trinity)[- ]*(t\\d{3}) bui/i,/(gigaset)[- ]+(q\\w{1,9}) bui/i,/(vodafone) ([\\w ]+)(?:\\)| bui)/i],[y,g,[h,P]],[/(surface duo)/i],[g,[y,st],[h,P]],[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],[g,[y,"Fairphone"],[h,O]],[/(u304aa)/i],[g,[y,"AT&T"],[h,O]],[/\\bsie-(\\w*)/i],[g,[y,"Siemens"],[h,O]],[/\\b(rct\\w+) b/i],[g,[y,"RCA"],[h,P]],[/\\b(venue[\\d ]{2,7}) b/i],[g,[y,"Dell"],[h,P]],[/\\b(q(?:mv|ta)\\w+) b/i],[g,[y,"Verizon"],[h,P]],[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],[g,[y,"Barnes & Noble"],[h,P]],[/\\b(tm\\d{3}\\w+) b/i],[g,[y,"NuVision"],[h,P]],[/\\b(k88) b/i],[g,[y,"ZTE"],[h,P]],[/\\b(nx\\d{3}j) b/i],[g,[y,"ZTE"],[h,O]],[/\\b(gen\\d{3}) b.+49h/i],[g,[y,"Swiss"],[h,O]],[/\\b(zur\\d{3}) b/i],[g,[y,"Swiss"],[h,P]],[/\\b((zeki)?tb.*\\b) b/i],[g,[y,"Zeki"],[h,P]],[/\\b([yr]\\d{2}) b/i,/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i],[[y,"Dragon Touch"],g,[h,P]],[/\\b(ns-?\\w{0,9}) b/i],[g,[y,"Insignia"],[h,P]],[/\\b((nxa|next)-?\\w{0,9}) b/i],[g,[y,"NextBook"],[h,P]],[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[y,"Voice"],g,[h,O]],[/\\b(lvtel\\-)?(v1[12]) b/i],[[y,"LvTel"],g,[h,O]],[/\\b(ph-1) /i],[g,[y,"Essential"],[h,O]],[/\\b(v(100md|700na|7011|917g).*\\b) b/i],[g,[y,"Envizen"],[h,P]],[/\\b(trio[-\\w\\. ]+) b/i],[g,[y,"MachSpeed"],[h,P]],[/\\btu_(1491) b/i],[g,[y,"Rotor"],[h,P]],[/(shield[\\w ]+) b/i],[g,[y,"Nvidia"],[h,P]],[/(sprint) (\\w+)/i],[y,g,[h,O]],[/(kin\\.[onetw]{3})/i],[[g,/\\./g," "],[y,st],[h,O]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i],[g,[y,Gt],[h,P]],[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],[g,[y,Gt],[h,O]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[y,g,[h,L]],[/droid.+; (shield) bui/i],[g,[y,"Nvidia"],[h,L]],[/(playstation [345portablevi]+)/i],[g,[y,je],[h,L]],[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],[g,[y,st],[h,L]],[/smart-tv.+(samsung)/i],[y,[h,U]],[/hbbtv.+maple;(\\d+)/i],[[g,/^/,"SmartTV"],[y,xt],[h,U]],[/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i],[[y,Lt],[h,U]],[/(apple) ?tv/i],[y,[g,de+" TV"],[h,U]],[/crkey/i],[[g,ee+"cast"],[y,ze],[h,U]],[/droid.+aft(\\w)( bui|\\))/i],[g,[y,fe],[h,U]],[/\\(dtv[\\);].+(aquos)/i,/(aquos-tv[\\w ]+)\\)/i],[g,[y,Wt],[h,U]],[/(bravia[\\w ]+)( bui|\\))/i],[g,[y,je],[h,U]],[/(mitv-\\w{5}) bui/i],[g,[y,pt],[h,U]],[/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w ]*; *(\\w[^;]*);([^;]*)/i],[[y,Ye],[g,Ye],[h,U]],[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],[[h,U]],[/((pebble))app/i],[y,g,[h,Q]],[/droid.+; (glass) \\d/i],[g,[y,ze],[h,Q]],[/droid.+; (wt63?0{2,3})\\)/i],[g,[y,Gt],[h,Q]],[/(quest( 2)?)/i],[g,[y,ge],[h,Q]],[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],[y,[h,oe]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+? mobile safari/i],[g,[h,O]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i],[g,[h,P]],[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],[[h,P]],[/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i],[[h,O]],[/(android[-\\w\\. ]{0,9});.+buil/i],[g,[y,"Generic"]]],engine:[[/windows.+ edge\\/([\\w\\.]+)/i],[E,[w,Jt+"HTML"]],[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],[E,[w,"Blink"]],[/(presto)\\/([\\w\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,/ekioh(flow)\\/([\\w\\.]+)/i,/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i],[w,E],[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],[E,w]],os:[[/microsoft (windows) (vista|xp)/i],[w,E],[/(windows) nt 6\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i,/(windows)[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i],[w,[E,Ho,Kt]],[/(win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],[[w,"Windows"],[E,Ho,Kt]],[/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,/cfnetwork\\/.+darwin/i],[[E,/_/g,"."],[w,"iOS"]],[/(mac os x) ?([\\w\\. ]*)/i,/(macintosh|mac_powerpc\\b)(?!.+haiku)/i],[[w,"Mac OS"],[E,/_/g,"."]],[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],[E,w],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,/(blackberry)\\w*\\/([\\w\\.]*)/i,/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,/\\((series40);/i],[w,E],[/\\(bb(10);/i],[E,[w,He]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i],[E,[w,"Symbian"]],[/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i],[E,[w,nt+" OS"]],[/web0s;.+rt(tv)/i,/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i],[E,[w,"webOS"]],[/crkey\\/([\\d\\.]+)/i],[E,[w,ee+"cast"]],[/(cros) [\\w]+ ([\\w\\.]+\\w)/i],[[w,"Chromium OS"],E],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\);]+)/i,/\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i,/(mint)[\\/\\(\\) ]?(\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,/(hurd|linux) ?([\\w\\.]*)/i,/(gnu) ?([\\w\\.]*)/i,/\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,/(haiku) (\\w+)/i],[w,E],[/(sunos) ?([\\w\\.\\d]*)/i],[[w,"Solaris"],E],[/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\\w\\.]*)/i],[w,E]]},Le=function(j,ne){if(typeof j===b&&(ne=j,j=r),!(this instanceof Le))return new Le(j,ne).getResult();var Y=j||(typeof o!==d&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:a),F=ne?Tt(To,ne):To;return this.getBrowser=function(){var q={};return q[w]=r,q[E]=r,et.call(q,Y,F.browser),q.major=so(q.version),q},this.getCPU=function(){var q={};return q[M]=r,et.call(q,Y,F.cpu),q},this.getDevice=function(){var q={};return q[y]=r,q[g]=r,q[h]=r,et.call(q,Y,F.device),q},this.getEngine=function(){var q={};return q[w]=r,q[E]=r,et.call(q,Y,F.engine),q},this.getOS=function(){var q={};return q[w]=r,q[E]=r,et.call(q,Y,F.os),q},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Y},this.setUA=function(q){return Y=typeof q===T&&q.length>Z?Ye(q,Z):q,this},this.setUA(Y),this};Le.VERSION=i,Le.BROWSER=ao([w,E,m]),Le.CPU=ao([M]),Le.DEVICE=ao([g,y,h,L,O,U,P,Q,oe]),Le.ENGINE=Le.OS=ao([w,E]),typeof Jr!==d?(typeof _i!==d&&_i.exports&&(Jr=_i.exports=Le),Jr.UAParser=Le):typeof define===u&&define.amd?define(function(){return Le}):typeof o!==d&&(o.UAParser=Le);var De=typeof o!==d&&(o.jQuery||o.Zepto);if(De&&!De.ua){var St=new Le;De.ua=St.getResult(),De.ua.get=function(){return St.getUA()},De.ua.set=function(j){St.setUA(j);var ne=St.getResult();for(var Y in ne)De.ua[Y]=ne[Y]}}})(typeof window=="object"?window:Jr)});var nc=Wa((Or,en)=>{(function(){var o,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",u="Invalid \`variable\` option passed into \`_.template\`",d="__lodash_hash_undefined__",b=500,T="__lodash_placeholder__",m=1,g=2,w=4,h=1,y=2,E=1,M=2,L=4,O=8,P=16,U=32,Q=64,oe=128,Z=256,fe=512,de=30,xe="...",He=800,Ie=16,ee=1,Jt=2,nt=3,ze=1/0,Je=9007199254740991,Lt=17976931348623157e292,st=0/0,Ve=4294967295,dt=Ve-1,xt=Ve>>>1,Wt=[["ary",oe],["bind",E],["bindKey",M],["curry",O],["curryRight",P],["flip",fe],["partial",U],["partialRight",Q],["rearg",Z]],je="[object Arguments]",pt="[object Array]",Gt="[object AsyncFunction]",ge="[object Boolean]",Tt="[object Date]",ao="[object DOMException]",eo="[object Error]",Dt="[object Function]",so="[object GeneratorFunction]",Ye="[object Map]",et="[object Number]",Ho="[object Null]",ct="[object Object]",Kt="[object Promise]",To="[object Proxy]",Le="[object RegExp]",De="[object Set]",St="[object String]",j="[object Symbol]",ne="[object Undefined]",Y="[object WeakMap]",F="[object WeakSet]",q="[object ArrayBuffer]",H="[object DataView]",z="[object Float32Array]",$e="[object Float64Array]",_e="[object Int8Array]",ie="[object Int16Array]",V="[object Int32Array]",mt="[object Uint8Array]",Vo="[object Uint8ClampedArray]",cr="[object Uint16Array]",Ai="[object Uint32Array]",Af=/\\b__p \\+= '';/g,Cf=/\\b(__p \\+=) '' \\+/g,Lf=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,mc=/&(?:amp|lt|gt|quot|#39);/g,wc=/[&<>"']/g,Df=RegExp(mc.source),Mf=RegExp(wc.source),qf=/<%-([\\s\\S]+?)%>/g,Uf=/<%([\\s\\S]+?)%>/g,hc=/<%=([\\s\\S]+?)%>/g,Nf=/\\.|\\[(?:[^[\\]]*|(["'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,Bf=/^\\w*$/,Ff=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,Ci=/[\\\\^$.*+?()[\\]{}|]/g,zf=RegExp(Ci.source),Li=/^\\s+/,jf=/\\s/,Hf=/\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,Vf=/\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,Wf=/,? & /,Gf=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g,Kf=/[()=,{}\\[\\]\\/\\s]/,Yf=/\\\\(\\\\)?/g,$f=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,vc=/\\w*$/,Xf=/^[-+]0x[0-9a-f]+$/i,Qf=/^0b[01]+$/i,Zf=/^\\[object .+?Constructor\\]$/,Jf=/^0o[0-7]+$/i,ed=/^(?:0|[1-9]\\d*)$/,td=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,cn=/($^)/,od=/['\\n\\r\\u2028\\u2029\\\\]/g,un="\\\\ud800-\\\\udfff",rd="\\\\u0300-\\\\u036f",nd="\\\\ufe20-\\\\ufe2f",id="\\\\u20d0-\\\\u20ff",yc=rd+nd+id,bc="\\\\u2700-\\\\u27bf",_c="a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff",ad="\\\\xac\\\\xb1\\\\xd7\\\\xf7",sd="\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf",cd="\\\\u2000-\\\\u206f",ud=" \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000",Ec="A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde",xc="\\\\ufe0e\\\\ufe0f",Tc=ad+sd+cd+ud,Di="['\\u2019]",ld="["+un+"]",Sc="["+Tc+"]",ln="["+yc+"]",Ic="\\\\d+",gd="["+bc+"]",Oc="["+_c+"]",kc="[^"+un+Tc+Ic+bc+_c+Ec+"]",Mi="\\\\ud83c[\\\\udffb-\\\\udfff]",fd="(?:"+ln+"|"+Mi+")",Pc="[^"+un+"]",qi="(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}",Ui="[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]",ur="["+Ec+"]",Rc="\\\\u200d",Ac="(?:"+Oc+"|"+kc+")",dd="(?:"+ur+"|"+kc+")",Cc="(?:"+Di+"(?:d|ll|m|re|s|t|ve))?",Lc="(?:"+Di+"(?:D|LL|M|RE|S|T|VE))?",Dc=fd+"?",Mc="["+xc+"]?",pd="(?:"+Rc+"(?:"+[Pc,qi,Ui].join("|")+")"+Mc+Dc+")*",md="\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])",wd="\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])",qc=Mc+Dc+pd,hd="(?:"+[gd,qi,Ui].join("|")+")"+qc,vd="(?:"+[Pc+ln+"?",ln,qi,Ui,ld].join("|")+")",yd=RegExp(Di,"g"),bd=RegExp(ln,"g"),Ni=RegExp(Mi+"(?="+Mi+")|"+vd+qc,"g"),_d=RegExp([ur+"?"+Oc+"+"+Cc+"(?="+[Sc,ur,"$"].join("|")+")",dd+"+"+Lc+"(?="+[Sc,ur+Ac,"$"].join("|")+")",ur+"?"+Ac+"+"+Cc,ur+"+"+Lc,wd,md,Ic,hd].join("|"),"g"),Ed=RegExp("["+Rc+un+yc+xc+"]"),xd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Td=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Sd=-1,Ee={};Ee[z]=Ee[$e]=Ee[_e]=Ee[ie]=Ee[V]=Ee[mt]=Ee[Vo]=Ee[cr]=Ee[Ai]=!0,Ee[je]=Ee[pt]=Ee[q]=Ee[ge]=Ee[H]=Ee[Tt]=Ee[eo]=Ee[Dt]=Ee[Ye]=Ee[et]=Ee[ct]=Ee[Le]=Ee[De]=Ee[St]=Ee[Y]=!1;var be={};be[je]=be[pt]=be[q]=be[H]=be[ge]=be[Tt]=be[z]=be[$e]=be[_e]=be[ie]=be[V]=be[Ye]=be[et]=be[ct]=be[Le]=be[De]=be[St]=be[j]=be[mt]=be[Vo]=be[cr]=be[Ai]=!0,be[eo]=be[Dt]=be[Y]=!1;var Id={\\u00C0:"A",\\u00C1:"A",\\u00C2:"A",\\u00C3:"A",\\u00C4:"A",\\u00C5:"A",\\u00E0:"a",\\u00E1:"a",\\u00E2:"a",\\u00E3:"a",\\u00E4:"a",\\u00E5:"a",\\u00C7:"C",\\u00E7:"c",\\u00D0:"D",\\u00F0:"d",\\u00C8:"E",\\u00C9:"E",\\u00CA:"E",\\u00CB:"E",\\u00E8:"e",\\u00E9:"e",\\u00EA:"e",\\u00EB:"e",\\u00CC:"I",\\u00CD:"I",\\u00CE:"I",\\u00CF:"I",\\u00EC:"i",\\u00ED:"i",\\u00EE:"i",\\u00EF:"i",\\u00D1:"N",\\u00F1:"n",\\u00D2:"O",\\u00D3:"O",\\u00D4:"O",\\u00D5:"O",\\u00D6:"O",\\u00D8:"O",\\u00F2:"o",\\u00F3:"o",\\u00F4:"o",\\u00F5:"o",\\u00F6:"o",\\u00F8:"o",\\u00D9:"U",\\u00DA:"U",\\u00DB:"U",\\u00DC:"U",\\u00F9:"u",\\u00FA:"u",\\u00FB:"u",\\u00FC:"u",\\u00DD:"Y",\\u00FD:"y",\\u00FF:"y",\\u00C6:"Ae",\\u00E6:"ae",\\u00DE:"Th",\\u00FE:"th",\\u00DF:"ss",\\u0100:"A",\\u0102:"A",\\u0104:"A",\\u0101:"a",\\u0103:"a",\\u0105:"a",\\u0106:"C",\\u0108:"C",\\u010A:"C",\\u010C:"C",\\u0107:"c",\\u0109:"c",\\u010B:"c",\\u010D:"c",\\u010E:"D",\\u0110:"D",\\u010F:"d",\\u0111:"d",\\u0112:"E",\\u0114:"E",\\u0116:"E",\\u0118:"E",\\u011A:"E",\\u0113:"e",\\u0115:"e",\\u0117:"e",\\u0119:"e",\\u011B:"e",\\u011C:"G",\\u011E:"G",\\u0120:"G",\\u0122:"G",\\u011D:"g",\\u011F:"g",\\u0121:"g",\\u0123:"g",\\u0124:"H",\\u0126:"H",\\u0125:"h",\\u0127:"h",\\u0128:"I",\\u012A:"I",\\u012C:"I",\\u012E:"I",\\u0130:"I",\\u0129:"i",\\u012B:"i",\\u012D:"i",\\u012F:"i",\\u0131:"i",\\u0134:"J",\\u0135:"j",\\u0136:"K",\\u0137:"k",\\u0138:"k",\\u0139:"L",\\u013B:"L",\\u013D:"L",\\u013F:"L",\\u0141:"L",\\u013A:"l",\\u013C:"l",\\u013E:"l",\\u0140:"l",\\u0142:"l",\\u0143:"N",\\u0145:"N",\\u0147:"N",\\u014A:"N",\\u0144:"n",\\u0146:"n",\\u0148:"n",\\u014B:"n",\\u014C:"O",\\u014E:"O",\\u0150:"O",\\u014D:"o",\\u014F:"o",\\u0151:"o",\\u0154:"R",\\u0156:"R",\\u0158:"R",\\u0155:"r",\\u0157:"r",\\u0159:"r",\\u015A:"S",\\u015C:"S",\\u015E:"S",\\u0160:"S",\\u015B:"s",\\u015D:"s",\\u015F:"s",\\u0161:"s",\\u0162:"T",\\u0164:"T",\\u0166:"T",\\u0163:"t",\\u0165:"t",\\u0167:"t",\\u0168:"U",\\u016A:"U",\\u016C:"U",\\u016E:"U",\\u0170:"U",\\u0172:"U",\\u0169:"u",\\u016B:"u",\\u016D:"u",\\u016F:"u",\\u0171:"u",\\u0173:"u",\\u0174:"W",\\u0175:"w",\\u0176:"Y",\\u0177:"y",\\u0178:"Y",\\u0179:"Z",\\u017B:"Z",\\u017D:"Z",\\u017A:"z",\\u017C:"z",\\u017E:"z",\\u0132:"IJ",\\u0133:"ij",\\u0152:"Oe",\\u0153:"oe",\\u0149:"'n",\\u017F:"s"},Od={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},kd={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Pd={"\\\\":"\\\\","'":"'","\\n":"n","\\r":"r","\\u2028":"u2028","\\u2029":"u2029"},Rd=parseFloat,Ad=parseInt,Uc=typeof global=="object"&&global&&global.Object===Object&&global,Cd=typeof self=="object"&&self&&self.Object===Object&&self,Xe=Uc||Cd||Function("return this")(),Bi=typeof Or=="object"&&Or&&!Or.nodeType&&Or,Wo=Bi&&typeof en=="object"&&en&&!en.nodeType&&en,Nc=Wo&&Wo.exports===Bi,Fi=Nc&&Uc.process,Mt=function(){try{var x=Wo&&Wo.require&&Wo.require("util").types;return x||Fi&&Fi.binding&&Fi.binding("util")}catch{}}(),Bc=Mt&&Mt.isArrayBuffer,Fc=Mt&&Mt.isDate,zc=Mt&&Mt.isMap,jc=Mt&&Mt.isRegExp,Hc=Mt&&Mt.isSet,Vc=Mt&&Mt.isTypedArray;function It(x,k,I){switch(I.length){case 0:return x.call(k);case 1:return x.call(k,I[0]);case 2:return x.call(k,I[0],I[1]);case 3:return x.call(k,I[0],I[1],I[2])}return x.apply(k,I)}function Ld(x,k,I,N){for(var $=-1,pe=x==null?0:x.length;++$<pe;){var We=x[$];k(N,We,I(We),x)}return N}function qt(x,k){for(var I=-1,N=x==null?0:x.length;++I<N&&k(x[I],I,x)!==!1;);return x}function Dd(x,k){for(var I=x==null?0:x.length;I--&&k(x[I],I,x)!==!1;);return x}function Wc(x,k){for(var I=-1,N=x==null?0:x.length;++I<N;)if(!k(x[I],I,x))return!1;return!0}function So(x,k){for(var I=-1,N=x==null?0:x.length,$=0,pe=[];++I<N;){var We=x[I];k(We,I,x)&&(pe[$++]=We)}return pe}function gn(x,k){var I=x==null?0:x.length;return!!I&&lr(x,k,0)>-1}function zi(x,k,I){for(var N=-1,$=x==null?0:x.length;++N<$;)if(I(k,x[N]))return!0;return!1}function Te(x,k){for(var I=-1,N=x==null?0:x.length,$=Array(N);++I<N;)$[I]=k(x[I],I,x);return $}function Io(x,k){for(var I=-1,N=k.length,$=x.length;++I<N;)x[$+I]=k[I];return x}function ji(x,k,I,N){var $=-1,pe=x==null?0:x.length;for(N&&pe&&(I=x[++$]);++$<pe;)I=k(I,x[$],$,x);return I}function Md(x,k,I,N){var $=x==null?0:x.length;for(N&&$&&(I=x[--$]);$--;)I=k(I,x[$],$,x);return I}function Hi(x,k){for(var I=-1,N=x==null?0:x.length;++I<N;)if(k(x[I],I,x))return!0;return!1}var qd=Vi("length");function Ud(x){return x.split("")}function Nd(x){return x.match(Gf)||[]}function Gc(x,k,I){var N;return I(x,function($,pe,We){if(k($,pe,We))return N=pe,!1}),N}function fn(x,k,I,N){for(var $=x.length,pe=I+(N?1:-1);N?pe--:++pe<$;)if(k(x[pe],pe,x))return pe;return-1}function lr(x,k,I){return k===k?Xd(x,k,I):fn(x,Kc,I)}function Bd(x,k,I,N){for(var $=I-1,pe=x.length;++$<pe;)if(N(x[$],k))return $;return-1}function Kc(x){return x!==x}function Yc(x,k){var I=x==null?0:x.length;return I?Gi(x,k)/I:st}function Vi(x){return function(k){return k==null?o:k[x]}}function Wi(x){return function(k){return x==null?o:x[k]}}function $c(x,k,I,N,$){return $(x,function(pe,We,ye){I=N?(N=!1,pe):k(I,pe,We,ye)}),I}function Fd(x,k){var I=x.length;for(x.sort(k);I--;)x[I]=x[I].value;return x}function Gi(x,k){for(var I,N=-1,$=x.length;++N<$;){var pe=k(x[N]);pe!==o&&(I=I===o?pe:I+pe)}return I}function Ki(x,k){for(var I=-1,N=Array(x);++I<x;)N[I]=k(I);return N}function zd(x,k){return Te(k,function(I){return[I,x[I]]})}function Xc(x){return x&&x.slice(0,eu(x)+1).replace(Li,"")}function Ot(x){return function(k){return x(k)}}function Yi(x,k){return Te(k,function(I){return x[I]})}function Rr(x,k){return x.has(k)}function Qc(x,k){for(var I=-1,N=x.length;++I<N&&lr(k,x[I],0)>-1;);return I}function Zc(x,k){for(var I=x.length;I--&&lr(k,x[I],0)>-1;);return I}function jd(x,k){for(var I=x.length,N=0;I--;)x[I]===k&&++N;return N}var Hd=Wi(Id),Vd=Wi(Od);function Wd(x){return"\\\\"+Pd[x]}function Gd(x,k){return x==null?o:x[k]}function gr(x){return Ed.test(x)}function Kd(x){return xd.test(x)}function Yd(x){for(var k,I=[];!(k=x.next()).done;)I.push(k.value);return I}function $i(x){var k=-1,I=Array(x.size);return x.forEach(function(N,$){I[++k]=[$,N]}),I}function Jc(x,k){return function(I){return x(k(I))}}function Oo(x,k){for(var I=-1,N=x.length,$=0,pe=[];++I<N;){var We=x[I];(We===k||We===T)&&(x[I]=T,pe[$++]=I)}return pe}function dn(x){var k=-1,I=Array(x.size);return x.forEach(function(N){I[++k]=N}),I}function $d(x){var k=-1,I=Array(x.size);return x.forEach(function(N){I[++k]=[N,N]}),I}function Xd(x,k,I){for(var N=I-1,$=x.length;++N<$;)if(x[N]===k)return N;return-1}function Qd(x,k,I){for(var N=I+1;N--;)if(x[N]===k)return N;return N}function fr(x){return gr(x)?Jd(x):qd(x)}function Yt(x){return gr(x)?ep(x):Ud(x)}function eu(x){for(var k=x.length;k--&&jf.test(x.charAt(k)););return k}var Zd=Wi(kd);function Jd(x){for(var k=Ni.lastIndex=0;Ni.test(x);)++k;return k}function ep(x){return x.match(Ni)||[]}function tp(x){return x.match(_d)||[]}var op=function x(k){k=k==null?Xe:ko.defaults(Xe.Object(),k,ko.pick(Xe,Td));var I=k.Array,N=k.Date,$=k.Error,pe=k.Function,We=k.Math,ye=k.Object,Xi=k.RegExp,rp=k.String,Ut=k.TypeError,pn=I.prototype,np=pe.prototype,dr=ye.prototype,mn=k["__core-js_shared__"],wn=np.toString,we=dr.hasOwnProperty,ip=0,tu=function(){var e=/[^.]+$/.exec(mn&&mn.keys&&mn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),hn=dr.toString,ap=wn.call(ye),sp=Xe._,cp=Xi("^"+wn.call(we).replace(Ci,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$"),vn=Nc?k.Buffer:o,Po=k.Symbol,yn=k.Uint8Array,ou=vn?vn.allocUnsafe:o,bn=Jc(ye.getPrototypeOf,ye),ru=ye.create,nu=dr.propertyIsEnumerable,_n=pn.splice,iu=Po?Po.isConcatSpreadable:o,Ar=Po?Po.iterator:o,Go=Po?Po.toStringTag:o,En=function(){try{var e=Qo(ye,"defineProperty");return e({},"",{}),e}catch{}}(),up=k.clearTimeout!==Xe.clearTimeout&&k.clearTimeout,lp=N&&N.now!==Xe.Date.now&&N.now,gp=k.setTimeout!==Xe.setTimeout&&k.setTimeout,xn=We.ceil,Tn=We.floor,Qi=ye.getOwnPropertySymbols,fp=vn?vn.isBuffer:o,au=k.isFinite,dp=pn.join,pp=Jc(ye.keys,ye),Ge=We.max,it=We.min,mp=N.now,wp=k.parseInt,su=We.random,hp=pn.reverse,Zi=Qo(k,"DataView"),Cr=Qo(k,"Map"),Ji=Qo(k,"Promise"),pr=Qo(k,"Set"),Lr=Qo(k,"WeakMap"),Dr=Qo(ye,"create"),Sn=Lr&&new Lr,mr={},vp=Zo(Zi),yp=Zo(Cr),bp=Zo(Ji),_p=Zo(pr),Ep=Zo(Lr),In=Po?Po.prototype:o,Mr=In?In.valueOf:o,cu=In?In.toString:o;function f(e){if(Pe(e)&&!X(e)&&!(e instanceof se)){if(e instanceof Nt)return e;if(we.call(e,"__wrapped__"))return ul(e)}return new Nt(e)}var wr=function(){function e(){}return function(t){if(!Oe(t))return{};if(ru)return ru(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function On(){}function Nt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}f.templateSettings={escape:qf,evaluate:Uf,interpolate:hc,variable:"",imports:{_:f}},f.prototype=On.prototype,f.prototype.constructor=f,Nt.prototype=wr(On.prototype),Nt.prototype.constructor=Nt;function se(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ve,this.__views__=[]}function xp(){var e=new se(this.__wrapped__);return e.__actions__=wt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=wt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=wt(this.__views__),e}function Tp(){if(this.__filtered__){var e=new se(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Sp(){var e=this.__wrapped__.value(),t=this.__dir__,n=X(e),s=t<0,l=n?e.length:0,p=Um(0,l,this.__views__),v=p.start,_=p.end,S=_-v,R=s?_:v-1,A=this.__iteratees__,C=A.length,D=0,B=it(S,this.__takeCount__);if(!n||!s&&l==S&&B==S)return Cu(e,this.__actions__);var G=[];e:for(;S--&&D<B;){R+=t;for(var te=-1,K=e[R];++te<C;){var ae=A[te],ce=ae.iteratee,Rt=ae.type,gt=ce(K);if(Rt==Jt)K=gt;else if(!gt){if(Rt==ee)continue e;break e}}G[D++]=K}return G}se.prototype=wr(On.prototype),se.prototype.constructor=se;function Ko(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function Ip(){this.__data__=Dr?Dr(null):{},this.size=0}function Op(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function kp(e){var t=this.__data__;if(Dr){var n=t[e];return n===d?o:n}return we.call(t,e)?t[e]:o}function Pp(e){var t=this.__data__;return Dr?t[e]!==o:we.call(t,e)}function Rp(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Dr&&t===o?d:t,this}Ko.prototype.clear=Ip,Ko.prototype.delete=Op,Ko.prototype.get=kp,Ko.prototype.has=Pp,Ko.prototype.set=Rp;function co(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function Ap(){this.__data__=[],this.size=0}function Cp(e){var t=this.__data__,n=kn(t,e);if(n<0)return!1;var s=t.length-1;return n==s?t.pop():_n.call(t,n,1),--this.size,!0}function Lp(e){var t=this.__data__,n=kn(t,e);return n<0?o:t[n][1]}function Dp(e){return kn(this.__data__,e)>-1}function Mp(e,t){var n=this.__data__,s=kn(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}co.prototype.clear=Ap,co.prototype.delete=Cp,co.prototype.get=Lp,co.prototype.has=Dp,co.prototype.set=Mp;function uo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function qp(){this.size=0,this.__data__={hash:new Ko,map:new(Cr||co),string:new Ko}}function Up(e){var t=Fn(this,e).delete(e);return this.size-=t?1:0,t}function Np(e){return Fn(this,e).get(e)}function Bp(e){return Fn(this,e).has(e)}function Fp(e,t){var n=Fn(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}uo.prototype.clear=qp,uo.prototype.delete=Up,uo.prototype.get=Np,uo.prototype.has=Bp,uo.prototype.set=Fp;function Yo(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new uo;++t<n;)this.add(e[t])}function zp(e){return this.__data__.set(e,d),this}function jp(e){return this.__data__.has(e)}Yo.prototype.add=Yo.prototype.push=zp,Yo.prototype.has=jp;function $t(e){var t=this.__data__=new co(e);this.size=t.size}function Hp(){this.__data__=new co,this.size=0}function Vp(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Wp(e){return this.__data__.get(e)}function Gp(e){return this.__data__.has(e)}function Kp(e,t){var n=this.__data__;if(n instanceof co){var s=n.__data__;if(!Cr||s.length<i-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new uo(s)}return n.set(e,t),this.size=n.size,this}$t.prototype.clear=Hp,$t.prototype.delete=Vp,$t.prototype.get=Wp,$t.prototype.has=Gp,$t.prototype.set=Kp;function uu(e,t){var n=X(e),s=!n&&Jo(e),l=!n&&!s&&Do(e),p=!n&&!s&&!l&&br(e),v=n||s||l||p,_=v?Ki(e.length,rp):[],S=_.length;for(var R in e)(t||we.call(e,R))&&!(v&&(R=="length"||l&&(R=="offset"||R=="parent")||p&&(R=="buffer"||R=="byteLength"||R=="byteOffset")||po(R,S)))&&_.push(R);return _}function lu(e){var t=e.length;return t?e[la(0,t-1)]:o}function Yp(e,t){return zn(wt(e),$o(t,0,e.length))}function $p(e){return zn(wt(e))}function ea(e,t,n){(n!==o&&!Xt(e[t],n)||n===o&&!(t in e))&&lo(e,t,n)}function qr(e,t,n){var s=e[t];(!(we.call(e,t)&&Xt(s,n))||n===o&&!(t in e))&&lo(e,t,n)}function kn(e,t){for(var n=e.length;n--;)if(Xt(e[n][0],t))return n;return-1}function Xp(e,t,n,s){return Ro(e,function(l,p,v){t(s,l,n(l),v)}),s}function gu(e,t){return e&&oo(t,Qe(t),e)}function Qp(e,t){return e&&oo(t,vt(t),e)}function lo(e,t,n){t=="__proto__"&&En?En(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ta(e,t){for(var n=-1,s=t.length,l=I(s),p=e==null;++n<s;)l[n]=p?o:Ma(e,t[n]);return l}function $o(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function Bt(e,t,n,s,l,p){var v,_=t&m,S=t&g,R=t&w;if(n&&(v=l?n(e,s,l,p):n(e)),v!==o)return v;if(!Oe(e))return e;var A=X(e);if(A){if(v=Bm(e),!_)return wt(e,v)}else{var C=at(e),D=C==Dt||C==so;if(Do(e))return Mu(e,_);if(C==ct||C==je||D&&!l){if(v=S||D?{}:el(e),!_)return S?km(e,Qp(v,e)):Om(e,gu(v,e))}else{if(!be[C])return l?e:{};v=Fm(e,C,_)}}p||(p=new $t);var B=p.get(e);if(B)return B;p.set(e,v),Pl(e)?e.forEach(function(K){v.add(Bt(K,t,n,K,e,p))}):Ol(e)&&e.forEach(function(K,ae){v.set(ae,Bt(K,t,n,ae,e,p))});var G=R?S?_a:ba:S?vt:Qe,te=A?o:G(e);return qt(te||e,function(K,ae){te&&(ae=K,K=e[ae]),qr(v,ae,Bt(K,t,n,ae,e,p))}),v}function Zp(e){var t=Qe(e);return function(n){return fu(n,e,t)}}function fu(e,t,n){var s=n.length;if(e==null)return!s;for(e=ye(e);s--;){var l=n[s],p=t[l],v=e[l];if(v===o&&!(l in e)||!p(v))return!1}return!0}function du(e,t,n){if(typeof e!="function")throw new Ut(c);return Hr(function(){e.apply(o,n)},t)}function Ur(e,t,n,s){var l=-1,p=gn,v=!0,_=e.length,S=[],R=t.length;if(!_)return S;n&&(t=Te(t,Ot(n))),s?(p=zi,v=!1):t.length>=i&&(p=Rr,v=!1,t=new Yo(t));e:for(;++l<_;){var A=e[l],C=n==null?A:n(A);if(A=s||A!==0?A:0,v&&C===C){for(var D=R;D--;)if(t[D]===C)continue e;S.push(A)}else p(t,C,s)||S.push(A)}return S}var Ro=Fu(to),pu=Fu(ra,!0);function Jp(e,t){var n=!0;return Ro(e,function(s,l,p){return n=!!t(s,l,p),n}),n}function Pn(e,t,n){for(var s=-1,l=e.length;++s<l;){var p=e[s],v=t(p);if(v!=null&&(_===o?v===v&&!Pt(v):n(v,_)))var _=v,S=p}return S}function em(e,t,n,s){var l=e.length;for(n=J(n),n<0&&(n=-n>l?0:l+n),s=s===o||s>l?l:J(s),s<0&&(s+=l),s=n>s?0:Al(s);n<s;)e[n++]=t;return e}function mu(e,t){var n=[];return Ro(e,function(s,l,p){t(s,l,p)&&n.push(s)}),n}function tt(e,t,n,s,l){var p=-1,v=e.length;for(n||(n=jm),l||(l=[]);++p<v;){var _=e[p];t>0&&n(_)?t>1?tt(_,t-1,n,s,l):Io(l,_):s||(l[l.length]=_)}return l}var oa=zu(),wu=zu(!0);function to(e,t){return e&&oa(e,t,Qe)}function ra(e,t){return e&&wu(e,t,Qe)}function Rn(e,t){return So(t,function(n){return mo(e[n])})}function Xo(e,t){t=Co(t,e);for(var n=0,s=t.length;e!=null&&n<s;)e=e[ro(t[n++])];return n&&n==s?e:o}function hu(e,t,n){var s=t(e);return X(e)?s:Io(s,n(e))}function ut(e){return e==null?e===o?ne:Ho:Go&&Go in ye(e)?qm(e):$m(e)}function na(e,t){return e>t}function tm(e,t){return e!=null&&we.call(e,t)}function om(e,t){return e!=null&&t in ye(e)}function rm(e,t,n){return e>=it(t,n)&&e<Ge(t,n)}function ia(e,t,n){for(var s=n?zi:gn,l=e[0].length,p=e.length,v=p,_=I(p),S=1/0,R=[];v--;){var A=e[v];v&&t&&(A=Te(A,Ot(t))),S=it(A.length,S),_[v]=!n&&(t||l>=120&&A.length>=120)?new Yo(v&&A):o}A=e[0];var C=-1,D=_[0];e:for(;++C<l&&R.length<S;){var B=A[C],G=t?t(B):B;if(B=n||B!==0?B:0,!(D?Rr(D,G):s(R,G,n))){for(v=p;--v;){var te=_[v];if(!(te?Rr(te,G):s(e[v],G,n)))continue e}D&&D.push(G),R.push(B)}}return R}function nm(e,t,n,s){return to(e,function(l,p,v){t(s,n(l),p,v)}),s}function Nr(e,t,n){t=Co(t,e),e=nl(e,t);var s=e==null?e:e[ro(zt(t))];return s==null?o:It(s,e,n)}function vu(e){return Pe(e)&&ut(e)==je}function im(e){return Pe(e)&&ut(e)==q}function am(e){return Pe(e)&&ut(e)==Tt}function Br(e,t,n,s,l){return e===t?!0:e==null||t==null||!Pe(e)&&!Pe(t)?e!==e&&t!==t:sm(e,t,n,s,Br,l)}function sm(e,t,n,s,l,p){var v=X(e),_=X(t),S=v?pt:at(e),R=_?pt:at(t);S=S==je?ct:S,R=R==je?ct:R;var A=S==ct,C=R==ct,D=S==R;if(D&&Do(e)){if(!Do(t))return!1;v=!0,A=!1}if(D&&!A)return p||(p=new $t),v||br(e)?Qu(e,t,n,s,l,p):Dm(e,t,S,n,s,l,p);if(!(n&h)){var B=A&&we.call(e,"__wrapped__"),G=C&&we.call(t,"__wrapped__");if(B||G){var te=B?e.value():e,K=G?t.value():t;return p||(p=new $t),l(te,K,n,s,p)}}return D?(p||(p=new $t),Mm(e,t,n,s,l,p)):!1}function cm(e){return Pe(e)&&at(e)==Ye}function aa(e,t,n,s){var l=n.length,p=l,v=!s;if(e==null)return!p;for(e=ye(e);l--;){var _=n[l];if(v&&_[2]?_[1]!==e[_[0]]:!(_[0]in e))return!1}for(;++l<p;){_=n[l];var S=_[0],R=e[S],A=_[1];if(v&&_[2]){if(R===o&&!(S in e))return!1}else{var C=new $t;if(s)var D=s(R,A,S,e,t,C);if(!(D===o?Br(A,R,h|y,s,C):D))return!1}}return!0}function yu(e){if(!Oe(e)||Vm(e))return!1;var t=mo(e)?cp:Zf;return t.test(Zo(e))}function um(e){return Pe(e)&&ut(e)==Le}function lm(e){return Pe(e)&&at(e)==De}function gm(e){return Pe(e)&&Kn(e.length)&&!!Ee[ut(e)]}function bu(e){return typeof e=="function"?e:e==null?yt:typeof e=="object"?X(e)?xu(e[0],e[1]):Eu(e):jl(e)}function sa(e){if(!jr(e))return pp(e);var t=[];for(var n in ye(e))we.call(e,n)&&n!="constructor"&&t.push(n);return t}function fm(e){if(!Oe(e))return Ym(e);var t=jr(e),n=[];for(var s in e)s=="constructor"&&(t||!we.call(e,s))||n.push(s);return n}function ca(e,t){return e<t}function _u(e,t){var n=-1,s=ht(e)?I(e.length):[];return Ro(e,function(l,p,v){s[++n]=t(l,p,v)}),s}function Eu(e){var t=xa(e);return t.length==1&&t[0][2]?ol(t[0][0],t[0][1]):function(n){return n===e||aa(n,e,t)}}function xu(e,t){return Sa(e)&&tl(t)?ol(ro(e),t):function(n){var s=Ma(n,e);return s===o&&s===t?qa(n,e):Br(t,s,h|y)}}function An(e,t,n,s,l){e!==t&&oa(t,function(p,v){if(l||(l=new $t),Oe(p))dm(e,t,v,n,An,s,l);else{var _=s?s(Oa(e,v),p,v+"",e,t,l):o;_===o&&(_=p),ea(e,v,_)}},vt)}function dm(e,t,n,s,l,p,v){var _=Oa(e,n),S=Oa(t,n),R=v.get(S);if(R){ea(e,n,R);return}var A=p?p(_,S,n+"",e,t,v):o,C=A===o;if(C){var D=X(S),B=!D&&Do(S),G=!D&&!B&&br(S);A=S,D||B||G?X(_)?A=_:Me(_)?A=wt(_):B?(C=!1,A=Mu(S,!0)):G?(C=!1,A=qu(S,!0)):A=[]:Vr(S)||Jo(S)?(A=_,Jo(_)?A=Cl(_):(!Oe(_)||mo(_))&&(A=el(S))):C=!1}C&&(v.set(S,A),l(A,S,s,p,v),v.delete(S)),ea(e,n,A)}function Tu(e,t){var n=e.length;if(n)return t+=t<0?n:0,po(t,n)?e[t]:o}function Su(e,t,n){t.length?t=Te(t,function(p){return X(p)?function(v){return Xo(v,p.length===1?p[0]:p)}:p}):t=[yt];var s=-1;t=Te(t,Ot(W()));var l=_u(e,function(p,v,_){var S=Te(t,function(R){return R(p)});return{criteria:S,index:++s,value:p}});return Fd(l,function(p,v){return Im(p,v,n)})}function pm(e,t){return Iu(e,t,function(n,s){return qa(e,s)})}function Iu(e,t,n){for(var s=-1,l=t.length,p={};++s<l;){var v=t[s],_=Xo(e,v);n(_,v)&&Fr(p,Co(v,e),_)}return p}function mm(e){return function(t){return Xo(t,e)}}function ua(e,t,n,s){var l=s?Bd:lr,p=-1,v=t.length,_=e;for(e===t&&(t=wt(t)),n&&(_=Te(e,Ot(n)));++p<v;)for(var S=0,R=t[p],A=n?n(R):R;(S=l(_,A,S,s))>-1;)_!==e&&_n.call(_,S,1),_n.call(e,S,1);return e}function Ou(e,t){for(var n=e?t.length:0,s=n-1;n--;){var l=t[n];if(n==s||l!==p){var p=l;po(l)?_n.call(e,l,1):da(e,l)}}return e}function la(e,t){return e+Tn(su()*(t-e+1))}function wm(e,t,n,s){for(var l=-1,p=Ge(xn((t-e)/(n||1)),0),v=I(p);p--;)v[s?p:++l]=e,e+=n;return v}function ga(e,t){var n="";if(!e||t<1||t>Je)return n;do t%2&&(n+=e),t=Tn(t/2),t&&(e+=e);while(t);return n}function re(e,t){return ka(rl(e,t,yt),e+"")}function hm(e){return lu(_r(e))}function vm(e,t){var n=_r(e);return zn(n,$o(t,0,n.length))}function Fr(e,t,n,s){if(!Oe(e))return e;t=Co(t,e);for(var l=-1,p=t.length,v=p-1,_=e;_!=null&&++l<p;){var S=ro(t[l]),R=n;if(S==="__proto__"||S==="constructor"||S==="prototype")return e;if(l!=v){var A=_[S];R=s?s(A,S,_):o,R===o&&(R=Oe(A)?A:po(t[l+1])?[]:{})}qr(_,S,R),_=_[S]}return e}var ku=Sn?function(e,t){return Sn.set(e,t),e}:yt,ym=En?function(e,t){return En(e,"toString",{configurable:!0,enumerable:!1,value:Na(t),writable:!0})}:yt;function bm(e){return zn(_r(e))}function Ft(e,t,n){var s=-1,l=e.length;t<0&&(t=-t>l?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var p=I(l);++s<l;)p[s]=e[s+t];return p}function _m(e,t){var n;return Ro(e,function(s,l,p){return n=t(s,l,p),!n}),!!n}function Cn(e,t,n){var s=0,l=e==null?s:e.length;if(typeof t=="number"&&t===t&&l<=xt){for(;s<l;){var p=s+l>>>1,v=e[p];v!==null&&!Pt(v)&&(n?v<=t:v<t)?s=p+1:l=p}return l}return fa(e,t,yt,n)}function fa(e,t,n,s){var l=0,p=e==null?0:e.length;if(p===0)return 0;t=n(t);for(var v=t!==t,_=t===null,S=Pt(t),R=t===o;l<p;){var A=Tn((l+p)/2),C=n(e[A]),D=C!==o,B=C===null,G=C===C,te=Pt(C);if(v)var K=s||G;else R?K=G&&(s||D):_?K=G&&D&&(s||!B):S?K=G&&D&&!B&&(s||!te):B||te?K=!1:K=s?C<=t:C<t;K?l=A+1:p=A}return it(p,dt)}function Pu(e,t){for(var n=-1,s=e.length,l=0,p=[];++n<s;){var v=e[n],_=t?t(v):v;if(!n||!Xt(_,S)){var S=_;p[l++]=v===0?0:v}}return p}function Ru(e){return typeof e=="number"?e:Pt(e)?st:+e}function kt(e){if(typeof e=="string")return e;if(X(e))return Te(e,kt)+"";if(Pt(e))return cu?cu.call(e):"";var t=e+"";return t=="0"&&1/e==-ze?"-0":t}function Ao(e,t,n){var s=-1,l=gn,p=e.length,v=!0,_=[],S=_;if(n)v=!1,l=zi;else if(p>=i){var R=t?null:Cm(e);if(R)return dn(R);v=!1,l=Rr,S=new Yo}else S=t?[]:_;e:for(;++s<p;){var A=e[s],C=t?t(A):A;if(A=n||A!==0?A:0,v&&C===C){for(var D=S.length;D--;)if(S[D]===C)continue e;t&&S.push(C),_.push(A)}else l(S,C,n)||(S!==_&&S.push(C),_.push(A))}return _}function da(e,t){return t=Co(t,e),e=nl(e,t),e==null||delete e[ro(zt(t))]}function Au(e,t,n,s){return Fr(e,t,n(Xo(e,t)),s)}function Ln(e,t,n,s){for(var l=e.length,p=s?l:-1;(s?p--:++p<l)&&t(e[p],p,e););return n?Ft(e,s?0:p,s?p+1:l):Ft(e,s?p+1:0,s?l:p)}function Cu(e,t){var n=e;return n instanceof se&&(n=n.value()),ji(t,function(s,l){return l.func.apply(l.thisArg,Io([s],l.args))},n)}function pa(e,t,n){var s=e.length;if(s<2)return s?Ao(e[0]):[];for(var l=-1,p=I(s);++l<s;)for(var v=e[l],_=-1;++_<s;)_!=l&&(p[l]=Ur(p[l]||v,e[_],t,n));return Ao(tt(p,1),t,n)}function Lu(e,t,n){for(var s=-1,l=e.length,p=t.length,v={};++s<l;){var _=s<p?t[s]:o;n(v,e[s],_)}return v}function ma(e){return Me(e)?e:[]}function wa(e){return typeof e=="function"?e:yt}function Co(e,t){return X(e)?e:Sa(e,t)?[e]:cl(me(e))}var Em=re;function Lo(e,t,n){var s=e.length;return n=n===o?s:n,!t&&n>=s?e:Ft(e,t,n)}var Du=up||function(e){return Xe.clearTimeout(e)};function Mu(e,t){if(t)return e.slice();var n=e.length,s=ou?ou(n):new e.constructor(n);return e.copy(s),s}function ha(e){var t=new e.constructor(e.byteLength);return new yn(t).set(new yn(e)),t}function xm(e,t){var n=t?ha(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Tm(e){var t=new e.constructor(e.source,vc.exec(e));return t.lastIndex=e.lastIndex,t}function Sm(e){return Mr?ye(Mr.call(e)):{}}function qu(e,t){var n=t?ha(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Uu(e,t){if(e!==t){var n=e!==o,s=e===null,l=e===e,p=Pt(e),v=t!==o,_=t===null,S=t===t,R=Pt(t);if(!_&&!R&&!p&&e>t||p&&v&&S&&!_&&!R||s&&v&&S||!n&&S||!l)return 1;if(!s&&!p&&!R&&e<t||R&&n&&l&&!s&&!p||_&&n&&l||!v&&l||!S)return-1}return 0}function Im(e,t,n){for(var s=-1,l=e.criteria,p=t.criteria,v=l.length,_=n.length;++s<v;){var S=Uu(l[s],p[s]);if(S){if(s>=_)return S;var R=n[s];return S*(R=="desc"?-1:1)}}return e.index-t.index}function Nu(e,t,n,s){for(var l=-1,p=e.length,v=n.length,_=-1,S=t.length,R=Ge(p-v,0),A=I(S+R),C=!s;++_<S;)A[_]=t[_];for(;++l<v;)(C||l<p)&&(A[n[l]]=e[l]);for(;R--;)A[_++]=e[l++];return A}function Bu(e,t,n,s){for(var l=-1,p=e.length,v=-1,_=n.length,S=-1,R=t.length,A=Ge(p-_,0),C=I(A+R),D=!s;++l<A;)C[l]=e[l];for(var B=l;++S<R;)C[B+S]=t[S];for(;++v<_;)(D||l<p)&&(C[B+n[v]]=e[l++]);return C}function wt(e,t){var n=-1,s=e.length;for(t||(t=I(s));++n<s;)t[n]=e[n];return t}function oo(e,t,n,s){var l=!n;n||(n={});for(var p=-1,v=t.length;++p<v;){var _=t[p],S=s?s(n[_],e[_],_,n,e):o;S===o&&(S=e[_]),l?lo(n,_,S):qr(n,_,S)}return n}function Om(e,t){return oo(e,Ta(e),t)}function km(e,t){return oo(e,Zu(e),t)}function Dn(e,t){return function(n,s){var l=X(n)?Ld:Xp,p=t?t():{};return l(n,e,W(s,2),p)}}function hr(e){return re(function(t,n){var s=-1,l=n.length,p=l>1?n[l-1]:o,v=l>2?n[2]:o;for(p=e.length>3&&typeof p=="function"?(l--,p):o,v&&lt(n[0],n[1],v)&&(p=l<3?o:p,l=1),t=ye(t);++s<l;){var _=n[s];_&&e(t,_,s,p)}return t})}function Fu(e,t){return function(n,s){if(n==null)return n;if(!ht(n))return e(n,s);for(var l=n.length,p=t?l:-1,v=ye(n);(t?p--:++p<l)&&s(v[p],p,v)!==!1;);return n}}function zu(e){return function(t,n,s){for(var l=-1,p=ye(t),v=s(t),_=v.length;_--;){var S=v[e?_:++l];if(n(p[S],S,p)===!1)break}return t}}function Pm(e,t,n){var s=t&E,l=zr(e);function p(){var v=this&&this!==Xe&&this instanceof p?l:e;return v.apply(s?n:this,arguments)}return p}function ju(e){return function(t){t=me(t);var n=gr(t)?Yt(t):o,s=n?n[0]:t.charAt(0),l=n?Lo(n,1).join(""):t.slice(1);return s[e]()+l}}function vr(e){return function(t){return ji(Fl(Bl(t).replace(yd,"")),e,"")}}function zr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=wr(e.prototype),s=e.apply(n,t);return Oe(s)?s:n}}function Rm(e,t,n){var s=zr(e);function l(){for(var p=arguments.length,v=I(p),_=p,S=yr(l);_--;)v[_]=arguments[_];var R=p<3&&v[0]!==S&&v[p-1]!==S?[]:Oo(v,S);if(p-=R.length,p<n)return Ku(e,t,Mn,l.placeholder,o,v,R,o,o,n-p);var A=this&&this!==Xe&&this instanceof l?s:e;return It(A,this,v)}return l}function Hu(e){return function(t,n,s){var l=ye(t);if(!ht(t)){var p=W(n,3);t=Qe(t),n=function(_){return p(l[_],_,l)}}var v=e(t,n,s);return v>-1?l[p?t[v]:v]:o}}function Vu(e){return fo(function(t){var n=t.length,s=n,l=Nt.prototype.thru;for(e&&t.reverse();s--;){var p=t[s];if(typeof p!="function")throw new Ut(c);if(l&&!v&&Bn(p)=="wrapper")var v=new Nt([],!0)}for(s=v?s:n;++s<n;){p=t[s];var _=Bn(p),S=_=="wrapper"?Ea(p):o;S&&Ia(S[0])&&S[1]==(oe|O|U|Z)&&!S[4].length&&S[9]==1?v=v[Bn(S[0])].apply(v,S[3]):v=p.length==1&&Ia(p)?v[_]():v.thru(p)}return function(){var R=arguments,A=R[0];if(v&&R.length==1&&X(A))return v.plant(A).value();for(var C=0,D=n?t[C].apply(this,R):A;++C<n;)D=t[C].call(this,D);return D}})}function Mn(e,t,n,s,l,p,v,_,S,R){var A=t&oe,C=t&E,D=t&M,B=t&(O|P),G=t&fe,te=D?o:zr(e);function K(){for(var ae=arguments.length,ce=I(ae),Rt=ae;Rt--;)ce[Rt]=arguments[Rt];if(B)var gt=yr(K),At=jd(ce,gt);if(s&&(ce=Nu(ce,s,l,B)),p&&(ce=Bu(ce,p,v,B)),ae-=At,B&&ae<R){var qe=Oo(ce,gt);return Ku(e,t,Mn,K.placeholder,n,ce,qe,_,S,R-ae)}var Qt=C?n:this,ho=D?Qt[e]:e;return ae=ce.length,_?ce=Xm(ce,_):G&&ae>1&&ce.reverse(),A&&S<ae&&(ce.length=S),this&&this!==Xe&&this instanceof K&&(ho=te||zr(ho)),ho.apply(Qt,ce)}return K}function Wu(e,t){return function(n,s){return nm(n,e,t(s),{})}}function qn(e,t){return function(n,s){var l;if(n===o&&s===o)return t;if(n!==o&&(l=n),s!==o){if(l===o)return s;typeof n=="string"||typeof s=="string"?(n=kt(n),s=kt(s)):(n=Ru(n),s=Ru(s)),l=e(n,s)}return l}}function va(e){return fo(function(t){return t=Te(t,Ot(W())),re(function(n){var s=this;return e(t,function(l){return It(l,s,n)})})})}function Un(e,t){t=t===o?" ":kt(t);var n=t.length;if(n<2)return n?ga(t,e):t;var s=ga(t,xn(e/fr(t)));return gr(t)?Lo(Yt(s),0,e).join(""):s.slice(0,e)}function Am(e,t,n,s){var l=t&E,p=zr(e);function v(){for(var _=-1,S=arguments.length,R=-1,A=s.length,C=I(A+S),D=this&&this!==Xe&&this instanceof v?p:e;++R<A;)C[R]=s[R];for(;S--;)C[R++]=arguments[++_];return It(D,l?n:this,C)}return v}function Gu(e){return function(t,n,s){return s&&typeof s!="number"&&lt(t,n,s)&&(n=s=o),t=wo(t),n===o?(n=t,t=0):n=wo(n),s=s===o?t<n?1:-1:wo(s),wm(t,n,s,e)}}function Nn(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=jt(t),n=jt(n)),e(t,n)}}function Ku(e,t,n,s,l,p,v,_,S,R){var A=t&O,C=A?v:o,D=A?o:v,B=A?p:o,G=A?o:p;t|=A?U:Q,t&=~(A?Q:U),t&L||(t&=~(E|M));var te=[e,t,l,B,C,G,D,_,S,R],K=n.apply(o,te);return Ia(e)&&il(K,te),K.placeholder=s,al(K,e,t)}function ya(e){var t=We[e];return function(n,s){if(n=jt(n),s=s==null?0:it(J(s),292),s&&au(n)){var l=(me(n)+"e").split("e"),p=t(l[0]+"e"+(+l[1]+s));return l=(me(p)+"e").split("e"),+(l[0]+"e"+(+l[1]-s))}return t(n)}}var Cm=pr&&1/dn(new pr([,-0]))[1]==ze?function(e){return new pr(e)}:za;function Yu(e){return function(t){var n=at(t);return n==Ye?$i(t):n==De?$d(t):zd(t,e(t))}}function go(e,t,n,s,l,p,v,_){var S=t&M;if(!S&&typeof e!="function")throw new Ut(c);var R=s?s.length:0;if(R||(t&=~(U|Q),s=l=o),v=v===o?v:Ge(J(v),0),_=_===o?_:J(_),R-=l?l.length:0,t&Q){var A=s,C=l;s=l=o}var D=S?o:Ea(e),B=[e,t,n,s,l,A,C,p,v,_];if(D&&Km(B,D),e=B[0],t=B[1],n=B[2],s=B[3],l=B[4],_=B[9]=B[9]===o?S?0:e.length:Ge(B[9]-R,0),!_&&t&(O|P)&&(t&=~(O|P)),!t||t==E)var G=Pm(e,t,n);else t==O||t==P?G=Rm(e,t,_):(t==U||t==(E|U))&&!l.length?G=Am(e,t,n,s):G=Mn.apply(o,B);var te=D?ku:il;return al(te(G,B),e,t)}function $u(e,t,n,s){return e===o||Xt(e,dr[n])&&!we.call(s,n)?t:e}function Xu(e,t,n,s,l,p){return Oe(e)&&Oe(t)&&(p.set(t,e),An(e,t,o,Xu,p),p.delete(t)),e}function Lm(e){return Vr(e)?o:e}function Qu(e,t,n,s,l,p){var v=n&h,_=e.length,S=t.length;if(_!=S&&!(v&&S>_))return!1;var R=p.get(e),A=p.get(t);if(R&&A)return R==t&&A==e;var C=-1,D=!0,B=n&y?new Yo:o;for(p.set(e,t),p.set(t,e);++C<_;){var G=e[C],te=t[C];if(s)var K=v?s(te,G,C,t,e,p):s(G,te,C,e,t,p);if(K!==o){if(K)continue;D=!1;break}if(B){if(!Hi(t,function(ae,ce){if(!Rr(B,ce)&&(G===ae||l(G,ae,n,s,p)))return B.push(ce)})){D=!1;break}}else if(!(G===te||l(G,te,n,s,p))){D=!1;break}}return p.delete(e),p.delete(t),D}function Dm(e,t,n,s,l,p,v){switch(n){case H:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case q:return!(e.byteLength!=t.byteLength||!p(new yn(e),new yn(t)));case ge:case Tt:case et:return Xt(+e,+t);case eo:return e.name==t.name&&e.message==t.message;case Le:case St:return e==t+"";case Ye:var _=$i;case De:var S=s&h;if(_||(_=dn),e.size!=t.size&&!S)return!1;var R=v.get(e);if(R)return R==t;s|=y,v.set(e,t);var A=Qu(_(e),_(t),s,l,p,v);return v.delete(e),A;case j:if(Mr)return Mr.call(e)==Mr.call(t)}return!1}function Mm(e,t,n,s,l,p){var v=n&h,_=ba(e),S=_.length,R=ba(t),A=R.length;if(S!=A&&!v)return!1;for(var C=S;C--;){var D=_[C];if(!(v?D in t:we.call(t,D)))return!1}var B=p.get(e),G=p.get(t);if(B&&G)return B==t&&G==e;var te=!0;p.set(e,t),p.set(t,e);for(var K=v;++C<S;){D=_[C];var ae=e[D],ce=t[D];if(s)var Rt=v?s(ce,ae,D,t,e,p):s(ae,ce,D,e,t,p);if(!(Rt===o?ae===ce||l(ae,ce,n,s,p):Rt)){te=!1;break}K||(K=D=="constructor")}if(te&&!K){var gt=e.constructor,At=t.constructor;gt!=At&&"constructor"in e&&"constructor"in t&&!(typeof gt=="function"&&gt instanceof gt&&typeof At=="function"&&At instanceof At)&&(te=!1)}return p.delete(e),p.delete(t),te}function fo(e){return ka(rl(e,o,fl),e+"")}function ba(e){return hu(e,Qe,Ta)}function _a(e){return hu(e,vt,Zu)}var Ea=Sn?function(e){return Sn.get(e)}:za;function Bn(e){for(var t=e.name+"",n=mr[t],s=we.call(mr,t)?n.length:0;s--;){var l=n[s],p=l.func;if(p==null||p==e)return l.name}return t}function yr(e){var t=we.call(f,"placeholder")?f:e;return t.placeholder}function W(){var e=f.iteratee||Ba;return e=e===Ba?bu:e,arguments.length?e(arguments[0],arguments[1]):e}function Fn(e,t){var n=e.__data__;return Hm(t)?n[typeof t=="string"?"string":"hash"]:n.map}function xa(e){for(var t=Qe(e),n=t.length;n--;){var s=t[n],l=e[s];t[n]=[s,l,tl(l)]}return t}function Qo(e,t){var n=Gd(e,t);return yu(n)?n:o}function qm(e){var t=we.call(e,Go),n=e[Go];try{e[Go]=o;var s=!0}catch{}var l=hn.call(e);return s&&(t?e[Go]=n:delete e[Go]),l}var Ta=Qi?function(e){return e==null?[]:(e=ye(e),So(Qi(e),function(t){return nu.call(e,t)}))}:ja,Zu=Qi?function(e){for(var t=[];e;)Io(t,Ta(e)),e=bn(e);return t}:ja,at=ut;(Zi&&at(new Zi(new ArrayBuffer(1)))!=H||Cr&&at(new Cr)!=Ye||Ji&&at(Ji.resolve())!=Kt||pr&&at(new pr)!=De||Lr&&at(new Lr)!=Y)&&(at=function(e){var t=ut(e),n=t==ct?e.constructor:o,s=n?Zo(n):"";if(s)switch(s){case vp:return H;case yp:return Ye;case bp:return Kt;case _p:return De;case Ep:return Y}return t});function Um(e,t,n){for(var s=-1,l=n.length;++s<l;){var p=n[s],v=p.size;switch(p.type){case"drop":e+=v;break;case"dropRight":t-=v;break;case"take":t=it(t,e+v);break;case"takeRight":e=Ge(e,t-v);break}}return{start:e,end:t}}function Nm(e){var t=e.match(Vf);return t?t[1].split(Wf):[]}function Ju(e,t,n){t=Co(t,e);for(var s=-1,l=t.length,p=!1;++s<l;){var v=ro(t[s]);if(!(p=e!=null&&n(e,v)))break;e=e[v]}return p||++s!=l?p:(l=e==null?0:e.length,!!l&&Kn(l)&&po(v,l)&&(X(e)||Jo(e)))}function Bm(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&we.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function el(e){return typeof e.constructor=="function"&&!jr(e)?wr(bn(e)):{}}function Fm(e,t,n){var s=e.constructor;switch(t){case q:return ha(e);case ge:case Tt:return new s(+e);case H:return xm(e,n);case z:case $e:case _e:case ie:case V:case mt:case Vo:case cr:case Ai:return qu(e,n);case Ye:return new s;case et:case St:return new s(e);case Le:return Tm(e);case De:return new s;case j:return Sm(e)}}function zm(e,t){var n=t.length;if(!n)return e;var s=n-1;return t[s]=(n>1?"& ":"")+t[s],t=t.join(n>2?", ":" "),e.replace(Hf,\`{
10
- /* [wrapped with \`+t+\`] */
11
- \`)}function jm(e){return X(e)||Jo(e)||!!(iu&&e&&e[iu])}function po(e,t){var n=typeof e;return t=t??Je,!!t&&(n=="number"||n!="symbol"&&ed.test(e))&&e>-1&&e%1==0&&e<t}function lt(e,t,n){if(!Oe(n))return!1;var s=typeof t;return(s=="number"?ht(n)&&po(t,n.length):s=="string"&&t in n)?Xt(n[t],e):!1}function Sa(e,t){if(X(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Pt(e)?!0:Bf.test(e)||!Nf.test(e)||t!=null&&e in ye(t)}function Hm(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ia(e){var t=Bn(e),n=f[t];if(typeof n!="function"||!(t in se.prototype))return!1;if(e===n)return!0;var s=Ea(n);return!!s&&e===s[0]}function Vm(e){return!!tu&&tu in e}var Wm=mn?mo:Ha;function jr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||dr;return e===n}function tl(e){return e===e&&!Oe(e)}function ol(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==o||e in ye(n))}}function Gm(e){var t=Wn(e,function(s){return n.size===b&&n.clear(),s}),n=t.cache;return t}function Km(e,t){var n=e[1],s=t[1],l=n|s,p=l<(E|M|oe),v=s==oe&&n==O||s==oe&&n==Z&&e[7].length<=t[8]||s==(oe|Z)&&t[7].length<=t[8]&&n==O;if(!(p||v))return e;s&E&&(e[2]=t[2],l|=n&E?0:L);var _=t[3];if(_){var S=e[3];e[3]=S?Nu(S,_,t[4]):_,e[4]=S?Oo(e[3],T):t[4]}return _=t[5],_&&(S=e[5],e[5]=S?Bu(S,_,t[6]):_,e[6]=S?Oo(e[5],T):t[6]),_=t[7],_&&(e[7]=_),s&oe&&(e[8]=e[8]==null?t[8]:it(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}function Ym(e){var t=[];if(e!=null)for(var n in ye(e))t.push(n);return t}function $m(e){return hn.call(e)}function rl(e,t,n){return t=Ge(t===o?e.length-1:t,0),function(){for(var s=arguments,l=-1,p=Ge(s.length-t,0),v=I(p);++l<p;)v[l]=s[t+l];l=-1;for(var _=I(t+1);++l<t;)_[l]=s[l];return _[t]=n(v),It(e,this,_)}}function nl(e,t){return t.length<2?e:Xo(e,Ft(t,0,-1))}function Xm(e,t){for(var n=e.length,s=it(t.length,n),l=wt(e);s--;){var p=t[s];e[s]=po(p,n)?l[p]:o}return e}function Oa(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var il=sl(ku),Hr=gp||function(e,t){return Xe.setTimeout(e,t)},ka=sl(ym);function al(e,t,n){var s=t+"";return ka(e,zm(s,Qm(Nm(s),n)))}function sl(e){var t=0,n=0;return function(){var s=mp(),l=Ie-(s-n);if(n=s,l>0){if(++t>=He)return arguments[0]}else t=0;return e.apply(o,arguments)}}function zn(e,t){var n=-1,s=e.length,l=s-1;for(t=t===o?s:t;++n<t;){var p=la(n,l),v=e[p];e[p]=e[n],e[n]=v}return e.length=t,e}var cl=Gm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ff,function(n,s,l,p){t.push(l?p.replace(Yf,"$1"):s||n)}),t});function ro(e){if(typeof e=="string"||Pt(e))return e;var t=e+"";return t=="0"&&1/e==-ze?"-0":t}function Zo(e){if(e!=null){try{return wn.call(e)}catch{}try{return e+""}catch{}}return""}function Qm(e,t){return qt(Wt,function(n){var s="_."+n[0];t&n[1]&&!gn(e,s)&&e.push(s)}),e.sort()}function ul(e){if(e instanceof se)return e.clone();var t=new Nt(e.__wrapped__,e.__chain__);return t.__actions__=wt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Zm(e,t,n){(n?lt(e,t,n):t===o)?t=1:t=Ge(J(t),0);var s=e==null?0:e.length;if(!s||t<1)return[];for(var l=0,p=0,v=I(xn(s/t));l<s;)v[p++]=Ft(e,l,l+=t);return v}function Jm(e){for(var t=-1,n=e==null?0:e.length,s=0,l=[];++t<n;){var p=e[t];p&&(l[s++]=p)}return l}function ew(){var e=arguments.length;if(!e)return[];for(var t=I(e-1),n=arguments[0],s=e;s--;)t[s-1]=arguments[s];return Io(X(n)?wt(n):[n],tt(t,1))}var tw=re(function(e,t){return Me(e)?Ur(e,tt(t,1,Me,!0)):[]}),ow=re(function(e,t){var n=zt(t);return Me(n)&&(n=o),Me(e)?Ur(e,tt(t,1,Me,!0),W(n,2)):[]}),rw=re(function(e,t){var n=zt(t);return Me(n)&&(n=o),Me(e)?Ur(e,tt(t,1,Me,!0),o,n):[]});function nw(e,t,n){var s=e==null?0:e.length;return s?(t=n||t===o?1:J(t),Ft(e,t<0?0:t,s)):[]}function iw(e,t,n){var s=e==null?0:e.length;return s?(t=n||t===o?1:J(t),t=s-t,Ft(e,0,t<0?0:t)):[]}function aw(e,t){return e&&e.length?Ln(e,W(t,3),!0,!0):[]}function sw(e,t){return e&&e.length?Ln(e,W(t,3),!0):[]}function cw(e,t,n,s){var l=e==null?0:e.length;return l?(n&&typeof n!="number"&&lt(e,t,n)&&(n=0,s=l),em(e,t,n,s)):[]}function ll(e,t,n){var s=e==null?0:e.length;if(!s)return-1;var l=n==null?0:J(n);return l<0&&(l=Ge(s+l,0)),fn(e,W(t,3),l)}function gl(e,t,n){var s=e==null?0:e.length;if(!s)return-1;var l=s-1;return n!==o&&(l=J(n),l=n<0?Ge(s+l,0):it(l,s-1)),fn(e,W(t,3),l,!0)}function fl(e){var t=e==null?0:e.length;return t?tt(e,1):[]}function uw(e){var t=e==null?0:e.length;return t?tt(e,ze):[]}function lw(e,t){var n=e==null?0:e.length;return n?(t=t===o?1:J(t),tt(e,t)):[]}function gw(e){for(var t=-1,n=e==null?0:e.length,s={};++t<n;){var l=e[t];s[l[0]]=l[1]}return s}function dl(e){return e&&e.length?e[0]:o}function fw(e,t,n){var s=e==null?0:e.length;if(!s)return-1;var l=n==null?0:J(n);return l<0&&(l=Ge(s+l,0)),lr(e,t,l)}function dw(e){var t=e==null?0:e.length;return t?Ft(e,0,-1):[]}var pw=re(function(e){var t=Te(e,ma);return t.length&&t[0]===e[0]?ia(t):[]}),mw=re(function(e){var t=zt(e),n=Te(e,ma);return t===zt(n)?t=o:n.pop(),n.length&&n[0]===e[0]?ia(n,W(t,2)):[]}),ww=re(function(e){var t=zt(e),n=Te(e,ma);return t=typeof t=="function"?t:o,t&&n.pop(),n.length&&n[0]===e[0]?ia(n,o,t):[]});function hw(e,t){return e==null?"":dp.call(e,t)}function zt(e){var t=e==null?0:e.length;return t?e[t-1]:o}function vw(e,t,n){var s=e==null?0:e.length;if(!s)return-1;var l=s;return n!==o&&(l=J(n),l=l<0?Ge(s+l,0):it(l,s-1)),t===t?Qd(e,t,l):fn(e,Kc,l,!0)}function yw(e,t){return e&&e.length?Tu(e,J(t)):o}var bw=re(pl);function pl(e,t){return e&&e.length&&t&&t.length?ua(e,t):e}function _w(e,t,n){return e&&e.length&&t&&t.length?ua(e,t,W(n,2)):e}function Ew(e,t,n){return e&&e.length&&t&&t.length?ua(e,t,o,n):e}var xw=fo(function(e,t){var n=e==null?0:e.length,s=ta(e,t);return Ou(e,Te(t,function(l){return po(l,n)?+l:l}).sort(Uu)),s});function Tw(e,t){var n=[];if(!(e&&e.length))return n;var s=-1,l=[],p=e.length;for(t=W(t,3);++s<p;){var v=e[s];t(v,s,e)&&(n.push(v),l.push(s))}return Ou(e,l),n}function Pa(e){return e==null?e:hp.call(e)}function Sw(e,t,n){var s=e==null?0:e.length;return s?(n&&typeof n!="number"&&lt(e,t,n)?(t=0,n=s):(t=t==null?0:J(t),n=n===o?s:J(n)),Ft(e,t,n)):[]}function Iw(e,t){return Cn(e,t)}function Ow(e,t,n){return fa(e,t,W(n,2))}function kw(e,t){var n=e==null?0:e.length;if(n){var s=Cn(e,t);if(s<n&&Xt(e[s],t))return s}return-1}function Pw(e,t){return Cn(e,t,!0)}function Rw(e,t,n){return fa(e,t,W(n,2),!0)}function Aw(e,t){var n=e==null?0:e.length;if(n){var s=Cn(e,t,!0)-1;if(Xt(e[s],t))return s}return-1}function Cw(e){return e&&e.length?Pu(e):[]}function Lw(e,t){return e&&e.length?Pu(e,W(t,2)):[]}function Dw(e){var t=e==null?0:e.length;return t?Ft(e,1,t):[]}function Mw(e,t,n){return e&&e.length?(t=n||t===o?1:J(t),Ft(e,0,t<0?0:t)):[]}function qw(e,t,n){var s=e==null?0:e.length;return s?(t=n||t===o?1:J(t),t=s-t,Ft(e,t<0?0:t,s)):[]}function Uw(e,t){return e&&e.length?Ln(e,W(t,3),!1,!0):[]}function Nw(e,t){return e&&e.length?Ln(e,W(t,3)):[]}var Bw=re(function(e){return Ao(tt(e,1,Me,!0))}),Fw=re(function(e){var t=zt(e);return Me(t)&&(t=o),Ao(tt(e,1,Me,!0),W(t,2))}),zw=re(function(e){var t=zt(e);return t=typeof t=="function"?t:o,Ao(tt(e,1,Me,!0),o,t)});function jw(e){return e&&e.length?Ao(e):[]}function Hw(e,t){return e&&e.length?Ao(e,W(t,2)):[]}function Vw(e,t){return t=typeof t=="function"?t:o,e&&e.length?Ao(e,o,t):[]}function Ra(e){if(!(e&&e.length))return[];var t=0;return e=So(e,function(n){if(Me(n))return t=Ge(n.length,t),!0}),Ki(t,function(n){return Te(e,Vi(n))})}function ml(e,t){if(!(e&&e.length))return[];var n=Ra(e);return t==null?n:Te(n,function(s){return It(t,o,s)})}var Ww=re(function(e,t){return Me(e)?Ur(e,t):[]}),Gw=re(function(e){return pa(So(e,Me))}),Kw=re(function(e){var t=zt(e);return Me(t)&&(t=o),pa(So(e,Me),W(t,2))}),Yw=re(function(e){var t=zt(e);return t=typeof t=="function"?t:o,pa(So(e,Me),o,t)}),$w=re(Ra);function Xw(e,t){return Lu(e||[],t||[],qr)}function Qw(e,t){return Lu(e||[],t||[],Fr)}var Zw=re(function(e){var t=e.length,n=t>1?e[t-1]:o;return n=typeof n=="function"?(e.pop(),n):o,ml(e,n)});function wl(e){var t=f(e);return t.__chain__=!0,t}function Jw(e,t){return t(e),e}function jn(e,t){return t(e)}var eh=fo(function(e){var t=e.length,n=t?e[0]:0,s=this.__wrapped__,l=function(p){return ta(p,e)};return t>1||this.__actions__.length||!(s instanceof se)||!po(n)?this.thru(l):(s=s.slice(n,+n+(t?1:0)),s.__actions__.push({func:jn,args:[l],thisArg:o}),new Nt(s,this.__chain__).thru(function(p){return t&&!p.length&&p.push(o),p}))});function th(){return wl(this)}function oh(){return new Nt(this.value(),this.__chain__)}function rh(){this.__values__===o&&(this.__values__=Rl(this.value()));var e=this.__index__>=this.__values__.length,t=e?o:this.__values__[this.__index__++];return{done:e,value:t}}function nh(){return this}function ih(e){for(var t,n=this;n instanceof On;){var s=ul(n);s.__index__=0,s.__values__=o,t?l.__wrapped__=s:t=s;var l=s;n=n.__wrapped__}return l.__wrapped__=e,t}function ah(){var e=this.__wrapped__;if(e instanceof se){var t=e;return this.__actions__.length&&(t=new se(this)),t=t.reverse(),t.__actions__.push({func:jn,args:[Pa],thisArg:o}),new Nt(t,this.__chain__)}return this.thru(Pa)}function sh(){return Cu(this.__wrapped__,this.__actions__)}var ch=Dn(function(e,t,n){we.call(e,n)?++e[n]:lo(e,n,1)});function uh(e,t,n){var s=X(e)?Wc:Jp;return n&&lt(e,t,n)&&(t=o),s(e,W(t,3))}function lh(e,t){var n=X(e)?So:mu;return n(e,W(t,3))}var gh=Hu(ll),fh=Hu(gl);function dh(e,t){return tt(Hn(e,t),1)}function ph(e,t){return tt(Hn(e,t),ze)}function mh(e,t,n){return n=n===o?1:J(n),tt(Hn(e,t),n)}function hl(e,t){var n=X(e)?qt:Ro;return n(e,W(t,3))}function vl(e,t){var n=X(e)?Dd:pu;return n(e,W(t,3))}var wh=Dn(function(e,t,n){we.call(e,n)?e[n].push(t):lo(e,n,[t])});function hh(e,t,n,s){e=ht(e)?e:_r(e),n=n&&!s?J(n):0;var l=e.length;return n<0&&(n=Ge(l+n,0)),Yn(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&lr(e,t,n)>-1}var vh=re(function(e,t,n){var s=-1,l=typeof t=="function",p=ht(e)?I(e.length):[];return Ro(e,function(v){p[++s]=l?It(t,v,n):Nr(v,t,n)}),p}),yh=Dn(function(e,t,n){lo(e,n,t)});function Hn(e,t){var n=X(e)?Te:_u;return n(e,W(t,3))}function bh(e,t,n,s){return e==null?[]:(X(t)||(t=t==null?[]:[t]),n=s?o:n,X(n)||(n=n==null?[]:[n]),Su(e,t,n))}var _h=Dn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Eh(e,t,n){var s=X(e)?ji:$c,l=arguments.length<3;return s(e,W(t,4),n,l,Ro)}function xh(e,t,n){var s=X(e)?Md:$c,l=arguments.length<3;return s(e,W(t,4),n,l,pu)}function Th(e,t){var n=X(e)?So:mu;return n(e,Gn(W(t,3)))}function Sh(e){var t=X(e)?lu:hm;return t(e)}function Ih(e,t,n){(n?lt(e,t,n):t===o)?t=1:t=J(t);var s=X(e)?Yp:vm;return s(e,t)}function Oh(e){var t=X(e)?$p:bm;return t(e)}function kh(e){if(e==null)return 0;if(ht(e))return Yn(e)?fr(e):e.length;var t=at(e);return t==Ye||t==De?e.size:sa(e).length}function Ph(e,t,n){var s=X(e)?Hi:_m;return n&&lt(e,t,n)&&(t=o),s(e,W(t,3))}var Rh=re(function(e,t){if(e==null)return[];var n=t.length;return n>1&&lt(e,t[0],t[1])?t=[]:n>2&&lt(t[0],t[1],t[2])&&(t=[t[0]]),Su(e,tt(t,1),[])}),Vn=lp||function(){return Xe.Date.now()};function Ah(e,t){if(typeof t!="function")throw new Ut(c);return e=J(e),function(){if(--e<1)return t.apply(this,arguments)}}function yl(e,t,n){return t=n?o:t,t=e&&t==null?e.length:t,go(e,oe,o,o,o,o,t)}function bl(e,t){var n;if(typeof t!="function")throw new Ut(c);return e=J(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Aa=re(function(e,t,n){var s=E;if(n.length){var l=Oo(n,yr(Aa));s|=U}return go(e,s,t,n,l)}),_l=re(function(e,t,n){var s=E|M;if(n.length){var l=Oo(n,yr(_l));s|=U}return go(t,s,e,n,l)});function El(e,t,n){t=n?o:t;var s=go(e,O,o,o,o,o,o,t);return s.placeholder=El.placeholder,s}function xl(e,t,n){t=n?o:t;var s=go(e,P,o,o,o,o,o,t);return s.placeholder=xl.placeholder,s}function Tl(e,t,n){var s,l,p,v,_,S,R=0,A=!1,C=!1,D=!0;if(typeof e!="function")throw new Ut(c);t=jt(t)||0,Oe(n)&&(A=!!n.leading,C="maxWait"in n,p=C?Ge(jt(n.maxWait)||0,t):p,D="trailing"in n?!!n.trailing:D);function B(qe){var Qt=s,ho=l;return s=l=o,R=qe,v=e.apply(ho,Qt),v}function G(qe){return R=qe,_=Hr(ae,t),A?B(qe):v}function te(qe){var Qt=qe-S,ho=qe-R,Hl=t-Qt;return C?it(Hl,p-ho):Hl}function K(qe){var Qt=qe-S,ho=qe-R;return S===o||Qt>=t||Qt<0||C&&ho>=p}function ae(){var qe=Vn();if(K(qe))return ce(qe);_=Hr(ae,te(qe))}function ce(qe){return _=o,D&&s?B(qe):(s=l=o,v)}function Rt(){_!==o&&Du(_),R=0,s=S=l=_=o}function gt(){return _===o?v:ce(Vn())}function At(){var qe=Vn(),Qt=K(qe);if(s=arguments,l=this,S=qe,Qt){if(_===o)return G(S);if(C)return Du(_),_=Hr(ae,t),B(S)}return _===o&&(_=Hr(ae,t)),v}return At.cancel=Rt,At.flush=gt,At}var Ch=re(function(e,t){return du(e,1,t)}),Lh=re(function(e,t,n){return du(e,jt(t)||0,n)});function Dh(e){return go(e,fe)}function Wn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Ut(c);var n=function(){var s=arguments,l=t?t.apply(this,s):s[0],p=n.cache;if(p.has(l))return p.get(l);var v=e.apply(this,s);return n.cache=p.set(l,v)||p,v};return n.cache=new(Wn.Cache||uo),n}Wn.Cache=uo;function Gn(e){if(typeof e!="function")throw new Ut(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Mh(e){return bl(2,e)}var qh=Em(function(e,t){t=t.length==1&&X(t[0])?Te(t[0],Ot(W())):Te(tt(t,1),Ot(W()));var n=t.length;return re(function(s){for(var l=-1,p=it(s.length,n);++l<p;)s[l]=t[l].call(this,s[l]);return It(e,this,s)})}),Ca=re(function(e,t){var n=Oo(t,yr(Ca));return go(e,U,o,t,n)}),Sl=re(function(e,t){var n=Oo(t,yr(Sl));return go(e,Q,o,t,n)}),Uh=fo(function(e,t){return go(e,Z,o,o,o,t)});function Nh(e,t){if(typeof e!="function")throw new Ut(c);return t=t===o?t:J(t),re(e,t)}function Bh(e,t){if(typeof e!="function")throw new Ut(c);return t=t==null?0:Ge(J(t),0),re(function(n){var s=n[t],l=Lo(n,0,t);return s&&Io(l,s),It(e,this,l)})}function Fh(e,t,n){var s=!0,l=!0;if(typeof e!="function")throw new Ut(c);return Oe(n)&&(s="leading"in n?!!n.leading:s,l="trailing"in n?!!n.trailing:l),Tl(e,t,{leading:s,maxWait:t,trailing:l})}function zh(e){return yl(e,1)}function jh(e,t){return Ca(wa(t),e)}function Hh(){if(!arguments.length)return[];var e=arguments[0];return X(e)?e:[e]}function Vh(e){return Bt(e,w)}function Wh(e,t){return t=typeof t=="function"?t:o,Bt(e,w,t)}function Gh(e){return Bt(e,m|w)}function Kh(e,t){return t=typeof t=="function"?t:o,Bt(e,m|w,t)}function Yh(e,t){return t==null||fu(e,t,Qe(t))}function Xt(e,t){return e===t||e!==e&&t!==t}var $h=Nn(na),Xh=Nn(function(e,t){return e>=t}),Jo=vu(function(){return arguments}())?vu:function(e){return Pe(e)&&we.call(e,"callee")&&!nu.call(e,"callee")},X=I.isArray,Qh=Bc?Ot(Bc):im;function ht(e){return e!=null&&Kn(e.length)&&!mo(e)}function Me(e){return Pe(e)&&ht(e)}function Zh(e){return e===!0||e===!1||Pe(e)&&ut(e)==ge}var Do=fp||Ha,Jh=Fc?Ot(Fc):am;function ev(e){return Pe(e)&&e.nodeType===1&&!Vr(e)}function tv(e){if(e==null)return!0;if(ht(e)&&(X(e)||typeof e=="string"||typeof e.splice=="function"||Do(e)||br(e)||Jo(e)))return!e.length;var t=at(e);if(t==Ye||t==De)return!e.size;if(jr(e))return!sa(e).length;for(var n in e)if(we.call(e,n))return!1;return!0}function ov(e,t){return Br(e,t)}function rv(e,t,n){n=typeof n=="function"?n:o;var s=n?n(e,t):o;return s===o?Br(e,t,o,n):!!s}function La(e){if(!Pe(e))return!1;var t=ut(e);return t==eo||t==ao||typeof e.message=="string"&&typeof e.name=="string"&&!Vr(e)}function nv(e){return typeof e=="number"&&au(e)}function mo(e){if(!Oe(e))return!1;var t=ut(e);return t==Dt||t==so||t==Gt||t==To}function Il(e){return typeof e=="number"&&e==J(e)}function Kn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Je}function Oe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Pe(e){return e!=null&&typeof e=="object"}var Ol=zc?Ot(zc):cm;function iv(e,t){return e===t||aa(e,t,xa(t))}function av(e,t,n){return n=typeof n=="function"?n:o,aa(e,t,xa(t),n)}function sv(e){return kl(e)&&e!=+e}function cv(e){if(Wm(e))throw new $(a);return yu(e)}function uv(e){return e===null}function lv(e){return e==null}function kl(e){return typeof e=="number"||Pe(e)&&ut(e)==et}function Vr(e){if(!Pe(e)||ut(e)!=ct)return!1;var t=bn(e);if(t===null)return!0;var n=we.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&wn.call(n)==ap}var Da=jc?Ot(jc):um;function gv(e){return Il(e)&&e>=-Je&&e<=Je}var Pl=Hc?Ot(Hc):lm;function Yn(e){return typeof e=="string"||!X(e)&&Pe(e)&&ut(e)==St}function Pt(e){return typeof e=="symbol"||Pe(e)&&ut(e)==j}var br=Vc?Ot(Vc):gm;function fv(e){return e===o}function dv(e){return Pe(e)&&at(e)==Y}function pv(e){return Pe(e)&&ut(e)==F}var mv=Nn(ca),wv=Nn(function(e,t){return e<=t});function Rl(e){if(!e)return[];if(ht(e))return Yn(e)?Yt(e):wt(e);if(Ar&&e[Ar])return Yd(e[Ar]());var t=at(e),n=t==Ye?$i:t==De?dn:_r;return n(e)}function wo(e){if(!e)return e===0?e:0;if(e=jt(e),e===ze||e===-ze){var t=e<0?-1:1;return t*Lt}return e===e?e:0}function J(e){var t=wo(e),n=t%1;return t===t?n?t-n:t:0}function Al(e){return e?$o(J(e),0,Ve):0}function jt(e){if(typeof e=="number")return e;if(Pt(e))return st;if(Oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Xc(e);var n=Qf.test(e);return n||Jf.test(e)?Ad(e.slice(2),n?2:8):Xf.test(e)?st:+e}function Cl(e){return oo(e,vt(e))}function hv(e){return e?$o(J(e),-Je,Je):e===0?e:0}function me(e){return e==null?"":kt(e)}var vv=hr(function(e,t){if(jr(t)||ht(t)){oo(t,Qe(t),e);return}for(var n in t)we.call(t,n)&&qr(e,n,t[n])}),Ll=hr(function(e,t){oo(t,vt(t),e)}),$n=hr(function(e,t,n,s){oo(t,vt(t),e,s)}),yv=hr(function(e,t,n,s){oo(t,Qe(t),e,s)}),bv=fo(ta);function _v(e,t){var n=wr(e);return t==null?n:gu(n,t)}var Ev=re(function(e,t){e=ye(e);var n=-1,s=t.length,l=s>2?t[2]:o;for(l&&lt(t[0],t[1],l)&&(s=1);++n<s;)for(var p=t[n],v=vt(p),_=-1,S=v.length;++_<S;){var R=v[_],A=e[R];(A===o||Xt(A,dr[R])&&!we.call(e,R))&&(e[R]=p[R])}return e}),xv=re(function(e){return e.push(o,Xu),It(Dl,o,e)});function Tv(e,t){return Gc(e,W(t,3),to)}function Sv(e,t){return Gc(e,W(t,3),ra)}function Iv(e,t){return e==null?e:oa(e,W(t,3),vt)}function Ov(e,t){return e==null?e:wu(e,W(t,3),vt)}function kv(e,t){return e&&to(e,W(t,3))}function Pv(e,t){return e&&ra(e,W(t,3))}function Rv(e){return e==null?[]:Rn(e,Qe(e))}function Av(e){return e==null?[]:Rn(e,vt(e))}function Ma(e,t,n){var s=e==null?o:Xo(e,t);return s===o?n:s}function Cv(e,t){return e!=null&&Ju(e,t,tm)}function qa(e,t){return e!=null&&Ju(e,t,om)}var Lv=Wu(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=hn.call(t)),e[t]=n},Na(yt)),Dv=Wu(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=hn.call(t)),we.call(e,t)?e[t].push(n):e[t]=[n]},W),Mv=re(Nr);function Qe(e){return ht(e)?uu(e):sa(e)}function vt(e){return ht(e)?uu(e,!0):fm(e)}function qv(e,t){var n={};return t=W(t,3),to(e,function(s,l,p){lo(n,t(s,l,p),s)}),n}function Uv(e,t){var n={};return t=W(t,3),to(e,function(s,l,p){lo(n,l,t(s,l,p))}),n}var Nv=hr(function(e,t,n){An(e,t,n)}),Dl=hr(function(e,t,n,s){An(e,t,n,s)}),Bv=fo(function(e,t){var n={};if(e==null)return n;var s=!1;t=Te(t,function(p){return p=Co(p,e),s||(s=p.length>1),p}),oo(e,_a(e),n),s&&(n=Bt(n,m|g|w,Lm));for(var l=t.length;l--;)da(n,t[l]);return n});function Fv(e,t){return Ml(e,Gn(W(t)))}var zv=fo(function(e,t){return e==null?{}:pm(e,t)});function Ml(e,t){if(e==null)return{};var n=Te(_a(e),function(s){return[s]});return t=W(t),Iu(e,n,function(s,l){return t(s,l[0])})}function jv(e,t,n){t=Co(t,e);var s=-1,l=t.length;for(l||(l=1,e=o);++s<l;){var p=e==null?o:e[ro(t[s])];p===o&&(s=l,p=n),e=mo(p)?p.call(e):p}return e}function Hv(e,t,n){return e==null?e:Fr(e,t,n)}function Vv(e,t,n,s){return s=typeof s=="function"?s:o,e==null?e:Fr(e,t,n,s)}var ql=Yu(Qe),Ul=Yu(vt);function Wv(e,t,n){var s=X(e),l=s||Do(e)||br(e);if(t=W(t,4),n==null){var p=e&&e.constructor;l?n=s?new p:[]:Oe(e)?n=mo(p)?wr(bn(e)):{}:n={}}return(l?qt:to)(e,function(v,_,S){return t(n,v,_,S)}),n}function Gv(e,t){return e==null?!0:da(e,t)}function Kv(e,t,n){return e==null?e:Au(e,t,wa(n))}function Yv(e,t,n,s){return s=typeof s=="function"?s:o,e==null?e:Au(e,t,wa(n),s)}function _r(e){return e==null?[]:Yi(e,Qe(e))}function $v(e){return e==null?[]:Yi(e,vt(e))}function Xv(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=jt(n),n=n===n?n:0),t!==o&&(t=jt(t),t=t===t?t:0),$o(jt(e),t,n)}function Qv(e,t,n){return t=wo(t),n===o?(n=t,t=0):n=wo(n),e=jt(e),rm(e,t,n)}function Zv(e,t,n){if(n&&typeof n!="boolean"&&lt(e,t,n)&&(t=n=o),n===o&&(typeof t=="boolean"?(n=t,t=o):typeof e=="boolean"&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=wo(e),t===o?(t=e,e=0):t=wo(t)),e>t){var s=e;e=t,t=s}if(n||e%1||t%1){var l=su();return it(e+l*(t-e+Rd("1e-"+((l+"").length-1))),t)}return la(e,t)}var Jv=vr(function(e,t,n){return t=t.toLowerCase(),e+(n?Nl(t):t)});function Nl(e){return Ua(me(e).toLowerCase())}function Bl(e){return e=me(e),e&&e.replace(td,Hd).replace(bd,"")}function ey(e,t,n){e=me(e),t=kt(t);var s=e.length;n=n===o?s:$o(J(n),0,s);var l=n;return n-=t.length,n>=0&&e.slice(n,l)==t}function ty(e){return e=me(e),e&&Mf.test(e)?e.replace(wc,Vd):e}function oy(e){return e=me(e),e&&zf.test(e)?e.replace(Ci,"\\\\$&"):e}var ry=vr(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),ny=vr(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),iy=ju("toLowerCase");function ay(e,t,n){e=me(e),t=J(t);var s=t?fr(e):0;if(!t||s>=t)return e;var l=(t-s)/2;return Un(Tn(l),n)+e+Un(xn(l),n)}function sy(e,t,n){e=me(e),t=J(t);var s=t?fr(e):0;return t&&s<t?e+Un(t-s,n):e}function cy(e,t,n){e=me(e),t=J(t);var s=t?fr(e):0;return t&&s<t?Un(t-s,n)+e:e}function uy(e,t,n){return n||t==null?t=0:t&&(t=+t),wp(me(e).replace(Li,""),t||0)}function ly(e,t,n){return(n?lt(e,t,n):t===o)?t=1:t=J(t),ga(me(e),t)}function gy(){var e=arguments,t=me(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var fy=vr(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function dy(e,t,n){return n&&typeof n!="number"&&lt(e,t,n)&&(t=n=o),n=n===o?Ve:n>>>0,n?(e=me(e),e&&(typeof t=="string"||t!=null&&!Da(t))&&(t=kt(t),!t&&gr(e))?Lo(Yt(e),0,n):e.split(t,n)):[]}var py=vr(function(e,t,n){return e+(n?" ":"")+Ua(t)});function my(e,t,n){return e=me(e),n=n==null?0:$o(J(n),0,e.length),t=kt(t),e.slice(n,n+t.length)==t}function wy(e,t,n){var s=f.templateSettings;n&&lt(e,t,n)&&(t=o),e=me(e),t=$n({},t,s,$u);var l=$n({},t.imports,s.imports,$u),p=Qe(l),v=Yi(l,p),_,S,R=0,A=t.interpolate||cn,C="__p += '",D=Xi((t.escape||cn).source+"|"+A.source+"|"+(A===hc?$f:cn).source+"|"+(t.evaluate||cn).source+"|$","g"),B="//# sourceURL="+(we.call(t,"sourceURL")?(t.sourceURL+"").replace(/\\s/g," "):"lodash.templateSources["+ ++Sd+"]")+\`
12
- \`;e.replace(D,function(K,ae,ce,Rt,gt,At){return ce||(ce=Rt),C+=e.slice(R,At).replace(od,Wd),ae&&(_=!0,C+=\`' +
13
- __e(\`+ae+\`) +
14
- '\`),gt&&(S=!0,C+=\`';
15
- \`+gt+\`;
16
- __p += '\`),ce&&(C+=\`' +
17
- ((__t = (\`+ce+\`)) == null ? '' : __t) +
18
- '\`),R=At+K.length,K}),C+=\`';
19
- \`;var G=we.call(t,"variable")&&t.variable;if(!G)C=\`with (obj) {
20
- \`+C+\`
21
- }
22
- \`;else if(Kf.test(G))throw new $(u);C=(S?C.replace(Af,""):C).replace(Cf,"$1").replace(Lf,"$1;"),C="function("+(G||"obj")+\`) {
23
- \`+(G?"":\`obj || (obj = {});
24
- \`)+"var __t, __p = ''"+(_?", __e = _.escape":"")+(S?\`, __j = Array.prototype.join;
25
- function print() { __p += __j.call(arguments, '') }
26
- \`:\`;
27
- \`)+C+\`return __p
28
- }\`;var te=zl(function(){return pe(p,B+"return "+C).apply(o,v)});if(te.source=C,La(te))throw te;return te}function hy(e){return me(e).toLowerCase()}function vy(e){return me(e).toUpperCase()}function yy(e,t,n){if(e=me(e),e&&(n||t===o))return Xc(e);if(!e||!(t=kt(t)))return e;var s=Yt(e),l=Yt(t),p=Qc(s,l),v=Zc(s,l)+1;return Lo(s,p,v).join("")}function by(e,t,n){if(e=me(e),e&&(n||t===o))return e.slice(0,eu(e)+1);if(!e||!(t=kt(t)))return e;var s=Yt(e),l=Zc(s,Yt(t))+1;return Lo(s,0,l).join("")}function _y(e,t,n){if(e=me(e),e&&(n||t===o))return e.replace(Li,"");if(!e||!(t=kt(t)))return e;var s=Yt(e),l=Qc(s,Yt(t));return Lo(s,l).join("")}function Ey(e,t){var n=de,s=xe;if(Oe(t)){var l="separator"in t?t.separator:l;n="length"in t?J(t.length):n,s="omission"in t?kt(t.omission):s}e=me(e);var p=e.length;if(gr(e)){var v=Yt(e);p=v.length}if(n>=p)return e;var _=n-fr(s);if(_<1)return s;var S=v?Lo(v,0,_).join(""):e.slice(0,_);if(l===o)return S+s;if(v&&(_+=S.length-_),Da(l)){if(e.slice(_).search(l)){var R,A=S;for(l.global||(l=Xi(l.source,me(vc.exec(l))+"g")),l.lastIndex=0;R=l.exec(A);)var C=R.index;S=S.slice(0,C===o?_:C)}}else if(e.indexOf(kt(l),_)!=_){var D=S.lastIndexOf(l);D>-1&&(S=S.slice(0,D))}return S+s}function xy(e){return e=me(e),e&&Df.test(e)?e.replace(mc,Zd):e}var Ty=vr(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ua=ju("toUpperCase");function Fl(e,t,n){return e=me(e),t=n?o:t,t===o?Kd(e)?tp(e):Nd(e):e.match(t)||[]}var zl=re(function(e,t){try{return It(e,o,t)}catch(n){return La(n)?n:new $(n)}}),Sy=fo(function(e,t){return qt(t,function(n){n=ro(n),lo(e,n,Aa(e[n],e))}),e});function Iy(e){var t=e==null?0:e.length,n=W();return e=t?Te(e,function(s){if(typeof s[1]!="function")throw new Ut(c);return[n(s[0]),s[1]]}):[],re(function(s){for(var l=-1;++l<t;){var p=e[l];if(It(p[0],this,s))return It(p[1],this,s)}})}function Oy(e){return Zp(Bt(e,m))}function Na(e){return function(){return e}}function ky(e,t){return e==null||e!==e?t:e}var Py=Vu(),Ry=Vu(!0);function yt(e){return e}function Ba(e){return bu(typeof e=="function"?e:Bt(e,m))}function Ay(e){return Eu(Bt(e,m))}function Cy(e,t){return xu(e,Bt(t,m))}var Ly=re(function(e,t){return function(n){return Nr(n,e,t)}}),Dy=re(function(e,t){return function(n){return Nr(e,n,t)}});function Fa(e,t,n){var s=Qe(t),l=Rn(t,s);n==null&&!(Oe(t)&&(l.length||!s.length))&&(n=t,t=e,e=this,l=Rn(t,Qe(t)));var p=!(Oe(n)&&"chain"in n)||!!n.chain,v=mo(e);return qt(l,function(_){var S=t[_];e[_]=S,v&&(e.prototype[_]=function(){var R=this.__chain__;if(p||R){var A=e(this.__wrapped__),C=A.__actions__=wt(this.__actions__);return C.push({func:S,args:arguments,thisArg:e}),A.__chain__=R,A}return S.apply(e,Io([this.value()],arguments))})}),e}function My(){return Xe._===this&&(Xe._=sp),this}function za(){}function qy(e){return e=J(e),re(function(t){return Tu(t,e)})}var Uy=va(Te),Ny=va(Wc),By=va(Hi);function jl(e){return Sa(e)?Vi(ro(e)):mm(e)}function Fy(e){return function(t){return e==null?o:Xo(e,t)}}var zy=Gu(),jy=Gu(!0);function ja(){return[]}function Ha(){return!1}function Hy(){return{}}function Vy(){return""}function Wy(){return!0}function Gy(e,t){if(e=J(e),e<1||e>Je)return[];var n=Ve,s=it(e,Ve);t=W(t),e-=Ve;for(var l=Ki(s,t);++n<e;)t(n);return l}function Ky(e){return X(e)?Te(e,ro):Pt(e)?[e]:wt(cl(me(e)))}function Yy(e){var t=++ip;return me(e)+t}var $y=qn(function(e,t){return e+t},0),Xy=ya("ceil"),Qy=qn(function(e,t){return e/t},1),Zy=ya("floor");function Jy(e){return e&&e.length?Pn(e,yt,na):o}function eb(e,t){return e&&e.length?Pn(e,W(t,2),na):o}function tb(e){return Yc(e,yt)}function ob(e,t){return Yc(e,W(t,2))}function rb(e){return e&&e.length?Pn(e,yt,ca):o}function nb(e,t){return e&&e.length?Pn(e,W(t,2),ca):o}var ib=qn(function(e,t){return e*t},1),ab=ya("round"),sb=qn(function(e,t){return e-t},0);function cb(e){return e&&e.length?Gi(e,yt):0}function ub(e,t){return e&&e.length?Gi(e,W(t,2)):0}return f.after=Ah,f.ary=yl,f.assign=vv,f.assignIn=Ll,f.assignInWith=$n,f.assignWith=yv,f.at=bv,f.before=bl,f.bind=Aa,f.bindAll=Sy,f.bindKey=_l,f.castArray=Hh,f.chain=wl,f.chunk=Zm,f.compact=Jm,f.concat=ew,f.cond=Iy,f.conforms=Oy,f.constant=Na,f.countBy=ch,f.create=_v,f.curry=El,f.curryRight=xl,f.debounce=Tl,f.defaults=Ev,f.defaultsDeep=xv,f.defer=Ch,f.delay=Lh,f.difference=tw,f.differenceBy=ow,f.differenceWith=rw,f.drop=nw,f.dropRight=iw,f.dropRightWhile=aw,f.dropWhile=sw,f.fill=cw,f.filter=lh,f.flatMap=dh,f.flatMapDeep=ph,f.flatMapDepth=mh,f.flatten=fl,f.flattenDeep=uw,f.flattenDepth=lw,f.flip=Dh,f.flow=Py,f.flowRight=Ry,f.fromPairs=gw,f.functions=Rv,f.functionsIn=Av,f.groupBy=wh,f.initial=dw,f.intersection=pw,f.intersectionBy=mw,f.intersectionWith=ww,f.invert=Lv,f.invertBy=Dv,f.invokeMap=vh,f.iteratee=Ba,f.keyBy=yh,f.keys=Qe,f.keysIn=vt,f.map=Hn,f.mapKeys=qv,f.mapValues=Uv,f.matches=Ay,f.matchesProperty=Cy,f.memoize=Wn,f.merge=Nv,f.mergeWith=Dl,f.method=Ly,f.methodOf=Dy,f.mixin=Fa,f.negate=Gn,f.nthArg=qy,f.omit=Bv,f.omitBy=Fv,f.once=Mh,f.orderBy=bh,f.over=Uy,f.overArgs=qh,f.overEvery=Ny,f.overSome=By,f.partial=Ca,f.partialRight=Sl,f.partition=_h,f.pick=zv,f.pickBy=Ml,f.property=jl,f.propertyOf=Fy,f.pull=bw,f.pullAll=pl,f.pullAllBy=_w,f.pullAllWith=Ew,f.pullAt=xw,f.range=zy,f.rangeRight=jy,f.rearg=Uh,f.reject=Th,f.remove=Tw,f.rest=Nh,f.reverse=Pa,f.sampleSize=Ih,f.set=Hv,f.setWith=Vv,f.shuffle=Oh,f.slice=Sw,f.sortBy=Rh,f.sortedUniq=Cw,f.sortedUniqBy=Lw,f.split=dy,f.spread=Bh,f.tail=Dw,f.take=Mw,f.takeRight=qw,f.takeRightWhile=Uw,f.takeWhile=Nw,f.tap=Jw,f.throttle=Fh,f.thru=jn,f.toArray=Rl,f.toPairs=ql,f.toPairsIn=Ul,f.toPath=Ky,f.toPlainObject=Cl,f.transform=Wv,f.unary=zh,f.union=Bw,f.unionBy=Fw,f.unionWith=zw,f.uniq=jw,f.uniqBy=Hw,f.uniqWith=Vw,f.unset=Gv,f.unzip=Ra,f.unzipWith=ml,f.update=Kv,f.updateWith=Yv,f.values=_r,f.valuesIn=$v,f.without=Ww,f.words=Fl,f.wrap=jh,f.xor=Gw,f.xorBy=Kw,f.xorWith=Yw,f.zip=$w,f.zipObject=Xw,f.zipObjectDeep=Qw,f.zipWith=Zw,f.entries=ql,f.entriesIn=Ul,f.extend=Ll,f.extendWith=$n,Fa(f,f),f.add=$y,f.attempt=zl,f.camelCase=Jv,f.capitalize=Nl,f.ceil=Xy,f.clamp=Xv,f.clone=Vh,f.cloneDeep=Gh,f.cloneDeepWith=Kh,f.cloneWith=Wh,f.conformsTo=Yh,f.deburr=Bl,f.defaultTo=ky,f.divide=Qy,f.endsWith=ey,f.eq=Xt,f.escape=ty,f.escapeRegExp=oy,f.every=uh,f.find=gh,f.findIndex=ll,f.findKey=Tv,f.findLast=fh,f.findLastIndex=gl,f.findLastKey=Sv,f.floor=Zy,f.forEach=hl,f.forEachRight=vl,f.forIn=Iv,f.forInRight=Ov,f.forOwn=kv,f.forOwnRight=Pv,f.get=Ma,f.gt=$h,f.gte=Xh,f.has=Cv,f.hasIn=qa,f.head=dl,f.identity=yt,f.includes=hh,f.indexOf=fw,f.inRange=Qv,f.invoke=Mv,f.isArguments=Jo,f.isArray=X,f.isArrayBuffer=Qh,f.isArrayLike=ht,f.isArrayLikeObject=Me,f.isBoolean=Zh,f.isBuffer=Do,f.isDate=Jh,f.isElement=ev,f.isEmpty=tv,f.isEqual=ov,f.isEqualWith=rv,f.isError=La,f.isFinite=nv,f.isFunction=mo,f.isInteger=Il,f.isLength=Kn,f.isMap=Ol,f.isMatch=iv,f.isMatchWith=av,f.isNaN=sv,f.isNative=cv,f.isNil=lv,f.isNull=uv,f.isNumber=kl,f.isObject=Oe,f.isObjectLike=Pe,f.isPlainObject=Vr,f.isRegExp=Da,f.isSafeInteger=gv,f.isSet=Pl,f.isString=Yn,f.isSymbol=Pt,f.isTypedArray=br,f.isUndefined=fv,f.isWeakMap=dv,f.isWeakSet=pv,f.join=hw,f.kebabCase=ry,f.last=zt,f.lastIndexOf=vw,f.lowerCase=ny,f.lowerFirst=iy,f.lt=mv,f.lte=wv,f.max=Jy,f.maxBy=eb,f.mean=tb,f.meanBy=ob,f.min=rb,f.minBy=nb,f.stubArray=ja,f.stubFalse=Ha,f.stubObject=Hy,f.stubString=Vy,f.stubTrue=Wy,f.multiply=ib,f.nth=yw,f.noConflict=My,f.noop=za,f.now=Vn,f.pad=ay,f.padEnd=sy,f.padStart=cy,f.parseInt=uy,f.random=Zv,f.reduce=Eh,f.reduceRight=xh,f.repeat=ly,f.replace=gy,f.result=jv,f.round=ab,f.runInContext=x,f.sample=Sh,f.size=kh,f.snakeCase=fy,f.some=Ph,f.sortedIndex=Iw,f.sortedIndexBy=Ow,f.sortedIndexOf=kw,f.sortedLastIndex=Pw,f.sortedLastIndexBy=Rw,f.sortedLastIndexOf=Aw,f.startCase=py,f.startsWith=my,f.subtract=sb,f.sum=cb,f.sumBy=ub,f.template=wy,f.times=Gy,f.toFinite=wo,f.toInteger=J,f.toLength=Al,f.toLower=hy,f.toNumber=jt,f.toSafeInteger=hv,f.toString=me,f.toUpper=vy,f.trim=yy,f.trimEnd=by,f.trimStart=_y,f.truncate=Ey,f.unescape=xy,f.uniqueId=Yy,f.upperCase=Ty,f.upperFirst=Ua,f.each=hl,f.eachRight=vl,f.first=dl,Fa(f,function(){var e={};return to(f,function(t,n){we.call(f.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),f.VERSION=r,qt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){f[e].placeholder=f}),qt(["drop","take"],function(e,t){se.prototype[e]=function(n){n=n===o?1:Ge(J(n),0);var s=this.__filtered__&&!t?new se(this):this.clone();return s.__filtered__?s.__takeCount__=it(n,s.__takeCount__):s.__views__.push({size:it(n,Ve),type:e+(s.__dir__<0?"Right":"")}),s},se.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),qt(["filter","map","takeWhile"],function(e,t){var n=t+1,s=n==ee||n==nt;se.prototype[e]=function(l){var p=this.clone();return p.__iteratees__.push({iteratee:W(l,3),type:n}),p.__filtered__=p.__filtered__||s,p}}),qt(["head","last"],function(e,t){var n="take"+(t?"Right":"");se.prototype[e]=function(){return this[n](1).value()[0]}}),qt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");se.prototype[e]=function(){return this.__filtered__?new se(this):this[n](1)}}),se.prototype.compact=function(){return this.filter(yt)},se.prototype.find=function(e){return this.filter(e).head()},se.prototype.findLast=function(e){return this.reverse().find(e)},se.prototype.invokeMap=re(function(e,t){return typeof e=="function"?new se(this):this.map(function(n){return Nr(n,e,t)})}),se.prototype.reject=function(e){return this.filter(Gn(W(e)))},se.prototype.slice=function(e,t){e=J(e);var n=this;return n.__filtered__&&(e>0||t<0)?new se(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(t=J(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},se.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},se.prototype.toArray=function(){return this.take(Ve)},to(se.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),s=/^(?:head|last)$/.test(t),l=f[s?"take"+(t=="last"?"Right":""):t],p=s||/^find/.test(t);l&&(f.prototype[t]=function(){var v=this.__wrapped__,_=s?[1]:arguments,S=v instanceof se,R=_[0],A=S||X(v),C=function(ae){var ce=l.apply(f,Io([ae],_));return s&&D?ce[0]:ce};A&&n&&typeof R=="function"&&R.length!=1&&(S=A=!1);var D=this.__chain__,B=!!this.__actions__.length,G=p&&!D,te=S&&!B;if(!p&&A){v=te?v:new se(this);var K=e.apply(v,_);return K.__actions__.push({func:jn,args:[C],thisArg:o}),new Nt(K,D)}return G&&te?e.apply(this,_):(K=this.thru(C),G?s?K.value()[0]:K.value():K)})}),qt(["pop","push","shift","sort","splice","unshift"],function(e){var t=pn[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",s=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var l=arguments;if(s&&!this.__chain__){var p=this.value();return t.apply(X(p)?p:[],l)}return this[n](function(v){return t.apply(X(v)?v:[],l)})}}),to(se.prototype,function(e,t){var n=f[t];if(n){var s=n.name+"";we.call(mr,s)||(mr[s]=[]),mr[s].push({name:t,func:n})}}),mr[Mn(o,M).name]=[{name:"wrapper",func:o}],se.prototype.clone=xp,se.prototype.reverse=Tp,se.prototype.value=Sp,f.prototype.at=eh,f.prototype.chain=th,f.prototype.commit=oh,f.prototype.next=rh,f.prototype.plant=ih,f.prototype.reverse=ah,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=sh,f.prototype.first=f.prototype.head,Ar&&(f.prototype[Ar]=nh),f},ko=op();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Xe._=ko,define(function(){return ko})):Wo?((Wo.exports=ko)._=ko,Bi._=ko):Xe._=ko}).call(Or)});var lf=Wa((tn,Si)=>{(function(o,r){"use strict";var i="1.0.36",a="",c="?",u="function",d="undefined",b="object",T="string",m="major",g="model",w="name",h="type",y="vendor",E="version",M="architecture",L="console",O="mobile",P="tablet",U="smarttv",Q="wearable",oe="embedded",Z=350,fe="Amazon",de="Apple",xe="ASUS",He="BlackBerry",Ie="Browser",ee="Chrome",Jt="Edge",nt="Firefox",ze="Google",Je="Huawei",Lt="LG",st="Microsoft",Ve="Motorola",dt="Opera",xt="Samsung",Wt="Sharp",je="Sony",pt="Viera",Gt="Xiaomi",ge="Zebra",Tt="Facebook",ao="Chromium OS",eo="Mac OS",Dt=function(F,q){var H={};for(var z in F)q[z]&&q[z].length%2===0?H[z]=q[z].concat(F[z]):H[z]=F[z];return H},so=function(F){for(var q={},H=0;H<F.length;H++)q[F[H].toUpperCase()]=F[H];return q},Ye=function(F,q){return typeof F===T?et(q).indexOf(et(F))!==-1:!1},et=function(F){return F.toLowerCase()},Ho=function(F){return typeof F===T?F.replace(/[^\\d\\.]/g,a).split(".")[0]:r},ct=function(F,q){if(typeof F===T)return F=F.replace(/^\\s\\s*/,a),typeof q===d?F:F.substring(0,Z)},Kt=function(F,q){for(var H=0,z,$e,_e,ie,V,mt;H<q.length&&!V;){var Vo=q[H],cr=q[H+1];for(z=$e=0;z<Vo.length&&!V&&Vo[z];)if(V=Vo[z++].exec(F),V)for(_e=0;_e<cr.length;_e++)mt=V[++$e],ie=cr[_e],typeof ie===b&&ie.length>0?ie.length===2?typeof ie[1]==u?this[ie[0]]=ie[1].call(this,mt):this[ie[0]]=ie[1]:ie.length===3?typeof ie[1]===u&&!(ie[1].exec&&ie[1].test)?this[ie[0]]=mt?ie[1].call(this,mt,ie[2]):r:this[ie[0]]=mt?mt.replace(ie[1],ie[2]):r:ie.length===4&&(this[ie[0]]=mt?ie[3].call(this,mt.replace(ie[1],ie[2])):r):this[ie]=mt||r;H+=2}},To=function(F,q){for(var H in q)if(typeof q[H]===b&&q[H].length>0){for(var z=0;z<q[H].length;z++)if(Ye(q[H][z],F))return H===c?r:H}else if(Ye(q[H],F))return H===c?r:H;return F},Le={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},De={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},St={browser:[[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],[E,[w,"Chrome"]],[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],[E,[w,"Edge"]],[/(opera mini)\\/([-\\w\\.]+)/i,/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i],[w,E],[/opios[\\/ ]+([\\w\\.]+)/i],[E,[w,dt+" Mini"]],[/\\bopr\\/([\\w\\.]+)/i],[E,[w,dt]],[/(kindle)\\/([\\w\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\/ ]?([\\w\\.]*)/i,/(ba?idubrowser)[\\/ ]?([\\w\\.]+)/i,/(?:ms|\\()(ie) ([\\w\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,/(heytap|ovi)browser\\/([\\d\\.]+)/i,/(weibo)__([\\d\\.]+)/i],[w,E],[/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i],[E,[w,"UC"+Ie]],[/microm.+\\bqbcore\\/([\\w\\.]+)/i,/\\bqbcore\\/([\\w\\.]+).+microm/i],[E,[w,"WeChat(Win) Desktop"]],[/micromessenger\\/([\\w\\.]+)/i],[E,[w,"WeChat"]],[/konqueror\\/([\\w\\.]+)/i],[E,[w,"Konqueror"]],[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],[E,[w,"IE"]],[/ya(?:search)?browser\\/([\\w\\.]+)/i],[E,[w,"Yandex"]],[/(avast|avg)\\/([\\w\\.]+)/i],[[w,/(.+)/,"$1 Secure "+Ie],E],[/\\bfocus\\/([\\w\\.]+)/i],[E,[w,nt+" Focus"]],[/\\bopt\\/([\\w\\.]+)/i],[E,[w,dt+" Touch"]],[/coc_coc\\w+\\/([\\w\\.]+)/i],[E,[w,"Coc Coc"]],[/dolfin\\/([\\w\\.]+)/i],[E,[w,"Dolphin"]],[/coast\\/([\\w\\.]+)/i],[E,[w,dt+" Coast"]],[/miuibrowser\\/([\\w\\.]+)/i],[E,[w,"MIUI "+Ie]],[/fxios\\/([-\\w\\.]+)/i],[E,[w,nt]],[/\\bqihu|(qi?ho?o?|360)browser/i],[[w,"360 "+Ie]],[/(oculus|samsung|sailfish|huawei)browser\\/([\\w\\.]+)/i],[[w,/(.+)/,"$1 "+Ie],E],[/(comodo_dragon)\\/([\\w\\.]+)/i],[[w,/_/g," "],E],[/(electron)\\/([\\w\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\/ ]?([\\w\\.]+)/i],[w,E],[/(metasr)[\\/ ]?([\\w\\.]+)/i,/(lbbrowser)/i,/\\[(linkedin)app\\]/i],[w],[/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i],[[w,Tt],E],[/(kakao(?:talk|story))[\\/ ]([\\w\\.]+)/i,/(naver)\\(.*?(\\d+\\.[\\w\\.]+).*\\)/i,/safari (line)\\/([\\w\\.]+)/i,/\\b(line)\\/([\\w\\.]+)\\/iab/i,/(chromium|instagram|snapchat)[\\/ ]([-\\w\\.]+)/i],[w,E],[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],[E,[w,"GSA"]],[/musical_ly(?:.+app_?version\\/|_)([\\w\\.]+)/i],[E,[w,"TikTok"]],[/headlesschrome(?:\\/([\\w\\.]+)| )/i],[E,[w,ee+" Headless"]],[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],[[w,ee+" WebView"],E],[/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i],[E,[w,"Android "+Ie]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i],[w,E],[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],[E,[w,"Mobile Safari"]],[/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i],[E,w],[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],[w,[E,To,Le]],[/(webkit|khtml)\\/([\\w\\.]+)/i],[w,E],[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],[[w,"Netscape"],E],[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],[E,[w,nt+" Reality"]],[/ekiohf.+(flow)\\/([\\w\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,/(firefox)\\/([\\w\\.]+)/i,/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,/(links) \\(([\\w\\.]+)/i,/panasonic;(viera)/i],[w,E],[/(cobalt)\\/([\\w\\.]+)/i],[w,[E,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],[[M,"amd64"]],[/(ia32(?=;))/i],[[M,et]],[/((?:i[346]|x)86)[;\\)]/i],[[M,"ia32"]],[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],[[M,"arm64"]],[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],[[M,"armhf"]],[/windows (ce|mobile); ppc;/i],[[M,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],[[M,/ower/,a,et]],[/(sun4\\w)[;\\)]/i],[[M,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i],[[M,et]]],device:[[/\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[g,[y,xt],[h,P]],[/\\b((?:s[cgp]h|gt|sm)-\\w+|sc[g-]?[\\d]+a?|galaxy nexus)/i,/samsung[- ]([-\\w]+)/i,/sec-(sgh\\w+)/i],[g,[y,xt],[h,O]],[/(?:\\/|\\()(ip(?:hone|od)[\\w, ]*)(?:\\/|;)/i],[g,[y,de],[h,O]],[/\\((ipad);[-\\w\\),; ]+apple/i,/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i],[g,[y,de],[h,P]],[/(macintosh);/i],[g,[y,de]],[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],[g,[y,Wt],[h,O]],[/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i],[g,[y,Je],[h,P]],[/(?:huawei|honor)([-\\w ]+)[;\\)]/i,/\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i],[g,[y,Je],[h,O]],[/\\b(poco[\\w ]+|m2\\d{3}j\\d\\d[a-z]{2})(?: bui|\\))/i,/\\b; (\\w+) build\\/hm\\1/i,/\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i,/\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i,/\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i],[[g,/_/g," "],[y,Gt],[h,O]],[/\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i],[[g,/_/g," "],[y,Gt],[h,P]],[/; (\\w+) bui.+ oppo/i,/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i],[g,[y,"OPPO"],[h,O]],[/vivo (\\w+)(?: bui|\\))/i,/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i],[g,[y,"Vivo"],[h,O]],[/\\b(rmx[12]\\d{3})(?: bui|;|\\))/i],[g,[y,"Realme"],[h,O]],[/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,/\\bmot(?:orola)?[- ](\\w*)/i,/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i],[g,[y,Ve],[h,O]],[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],[g,[y,Ve],[h,P]],[/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i],[g,[y,Lt],[h,P]],[/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,/\\blg-?([\\d\\w]+) bui/i],[g,[y,Lt],[h,O]],[/(ideatab[-\\w ]+)/i,/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i],[g,[y,"Lenovo"],[h,P]],[/(?:maemo|nokia).*(n900|lumia \\d+)/i,/nokia[-_ ]?([-\\w\\.]*)/i],[[g,/_/g," "],[y,"Nokia"],[h,O]],[/(pixel c)\\b/i],[g,[y,ze],[h,P]],[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],[g,[y,ze],[h,O]],[/droid.+ (a?\\d[0-2]{2}so|[c-g]\\d{4}|so[-gl]\\w+|xq-a\\w[4-7][12])(?= bui|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i],[g,[y,je],[h,O]],[/sony tablet [ps]/i,/\\b(?:sony)?sgp\\w+(?: bui|\\))/i],[[g,"Xperia Tablet"],[y,je],[h,P]],[/ (kb2005|in20[12]5|be20[12][59])\\b/i,/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i],[g,[y,"OnePlus"],[h,O]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\))/i,/(kf[a-z]+)( bui|\\)).+silk\\//i],[g,[y,fe],[h,P]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],[[g,/(.+)/g,"Fire Phone $1"],[y,fe],[h,O]],[/(playbook);[-\\w\\),; ]+(rim)/i],[g,y,[h,P]],[/\\b((?:bb[a-f]|st[hv])100-\\d)/i,/\\(bb10; (\\w+)/i],[g,[y,He],[h,O]],[/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i],[g,[y,xe],[h,P]],[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],[g,[y,xe],[h,O]],[/(nexus 9)/i],[g,[y,"HTC"],[h,P]],[/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\.))|sony(?!-bra))[-_ ]?([-\\w]*)/i],[y,[g,/_/g," "],[h,O]],[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],[g,[y,"Acer"],[h,P]],[/droid.+; (m[1-5] note) bui/i,/\\bmz-([-\\w]{2,})/i],[g,[y,"Meizu"],[h,O]],[/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\\w]*)/i,/(hp) ([\\w ]+\\w)/i,/(asus)-?(\\w+)/i,/(microsoft); (lumia[\\w ]+)/i,/(lenovo)[-_ ]?([-\\w]+)/i,/(jolla)/i,/(oppo) ?([\\w ]+) bui/i],[y,g,[h,O]],[/(kobo)\\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\/([\\w\\.]+)/i,/(nook)[\\w ]+build\\/(\\w+)/i,/(dell) (strea[kpr\\d ]*[\\dko])/i,/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,/(trinity)[- ]*(t\\d{3}) bui/i,/(gigaset)[- ]+(q\\w{1,9}) bui/i,/(vodafone) ([\\w ]+)(?:\\)| bui)/i],[y,g,[h,P]],[/(surface duo)/i],[g,[y,st],[h,P]],[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],[g,[y,"Fairphone"],[h,O]],[/(u304aa)/i],[g,[y,"AT&T"],[h,O]],[/\\bsie-(\\w*)/i],[g,[y,"Siemens"],[h,O]],[/\\b(rct\\w+) b/i],[g,[y,"RCA"],[h,P]],[/\\b(venue[\\d ]{2,7}) b/i],[g,[y,"Dell"],[h,P]],[/\\b(q(?:mv|ta)\\w+) b/i],[g,[y,"Verizon"],[h,P]],[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],[g,[y,"Barnes & Noble"],[h,P]],[/\\b(tm\\d{3}\\w+) b/i],[g,[y,"NuVision"],[h,P]],[/\\b(k88) b/i],[g,[y,"ZTE"],[h,P]],[/\\b(nx\\d{3}j) b/i],[g,[y,"ZTE"],[h,O]],[/\\b(gen\\d{3}) b.+49h/i],[g,[y,"Swiss"],[h,O]],[/\\b(zur\\d{3}) b/i],[g,[y,"Swiss"],[h,P]],[/\\b((zeki)?tb.*\\b) b/i],[g,[y,"Zeki"],[h,P]],[/\\b([yr]\\d{2}) b/i,/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i],[[y,"Dragon Touch"],g,[h,P]],[/\\b(ns-?\\w{0,9}) b/i],[g,[y,"Insignia"],[h,P]],[/\\b((nxa|next)-?\\w{0,9}) b/i],[g,[y,"NextBook"],[h,P]],[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[y,"Voice"],g,[h,O]],[/\\b(lvtel\\-)?(v1[12]) b/i],[[y,"LvTel"],g,[h,O]],[/\\b(ph-1) /i],[g,[y,"Essential"],[h,O]],[/\\b(v(100md|700na|7011|917g).*\\b) b/i],[g,[y,"Envizen"],[h,P]],[/\\b(trio[-\\w\\. ]+) b/i],[g,[y,"MachSpeed"],[h,P]],[/\\btu_(1491) b/i],[g,[y,"Rotor"],[h,P]],[/(shield[\\w ]+) b/i],[g,[y,"Nvidia"],[h,P]],[/(sprint) (\\w+)/i],[y,g,[h,O]],[/(kin\\.[onetw]{3})/i],[[g,/\\./g," "],[y,st],[h,O]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i],[g,[y,ge],[h,P]],[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],[g,[y,ge],[h,O]],[/smart-tv.+(samsung)/i],[y,[h,U]],[/hbbtv.+maple;(\\d+)/i],[[g,/^/,"SmartTV"],[y,xt],[h,U]],[/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i],[[y,Lt],[h,U]],[/(apple) ?tv/i],[y,[g,de+" TV"],[h,U]],[/crkey/i],[[g,ee+"cast"],[y,ze],[h,U]],[/droid.+aft(\\w+)( bui|\\))/i],[g,[y,fe],[h,U]],[/\\(dtv[\\);].+(aquos)/i,/(aquos-tv[\\w ]+)\\)/i],[g,[y,Wt],[h,U]],[/(bravia[\\w ]+)( bui|\\))/i],[g,[y,je],[h,U]],[/(mitv-\\w{5}) bui/i],[g,[y,Gt],[h,U]],[/Hbbtv.*(technisat) (.*);/i],[y,g,[h,U]],[/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w\\+ ]*; *([\\w\\d][^;]*);([^;]*)/i],[[y,ct],[g,ct],[h,U]],[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],[[h,U]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[y,g,[h,L]],[/droid.+; (shield) bui/i],[g,[y,"Nvidia"],[h,L]],[/(playstation [345portablevi]+)/i],[g,[y,je],[h,L]],[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],[g,[y,st],[h,L]],[/((pebble))app/i],[y,g,[h,Q]],[/(watch)(?: ?os[,\\/]|\\d,\\d\\/)[\\d\\.]+/i],[g,[y,de],[h,Q]],[/droid.+; (glass) \\d/i],[g,[y,ze],[h,Q]],[/droid.+; (wt63?0{2,3})\\)/i],[g,[y,ge],[h,Q]],[/(quest( 2| pro)?)/i],[g,[y,Tt],[h,Q]],[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],[y,[h,oe]],[/(aeobc)\\b/i],[g,[y,fe],[h,oe]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+? mobile safari/i],[g,[h,O]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i],[g,[h,P]],[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],[[h,P]],[/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i],[[h,O]],[/(android[-\\w\\. ]{0,9});.+buil/i],[g,[y,"Generic"]]],engine:[[/windows.+ edge\\/([\\w\\.]+)/i],[E,[w,Jt+"HTML"]],[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],[E,[w,"Blink"]],[/(presto)\\/([\\w\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,/ekioh(flow)\\/([\\w\\.]+)/i,/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i,/\\b(libweb)/i],[w,E],[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],[E,w]],os:[[/microsoft (windows) (vista|xp)/i],[w,E],[/(windows) nt 6\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i,/(windows)[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i],[w,[E,To,De]],[/(win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],[[w,"Windows"],[E,To,De]],[/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,/(?:ios;fbsv\\/|iphone.+ios[\\/ ])([\\d\\.]+)/i,/cfnetwork\\/.+darwin/i],[[E,/_/g,"."],[w,"iOS"]],[/(mac os x) ?([\\w\\. ]*)/i,/(macintosh|mac_powerpc\\b)(?!.+haiku)/i],[[w,eo],[E,/_/g,"."]],[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],[E,w],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,/(blackberry)\\w*\\/([\\w\\.]*)/i,/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,/\\((series40);/i],[w,E],[/\\(bb(10);/i],[E,[w,He]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i],[E,[w,"Symbian"]],[/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i],[E,[w,nt+" OS"]],[/web0s;.+rt(tv)/i,/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i],[E,[w,"webOS"]],[/watch(?: ?os[,\\/]|\\d,\\d\\/)([\\d\\.]+)/i],[E,[w,"watchOS"]],[/crkey\\/([\\d\\.]+)/i],[E,[w,ee+"cast"]],[/(cros) [\\w]+(?:\\)| ([\\w\\.]+)\\b)/i],[[w,ao],E],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\\/(\\d+\\.[\\w\\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\);]+)/i,/\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i,/(mint)[\\/\\(\\) ]?(\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,/(hurd|linux) ?([\\w\\.]*)/i,/(gnu) ?([\\w\\.]*)/i,/\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,/(haiku) (\\w+)/i],[w,E],[/(sunos) ?([\\w\\.\\d]*)/i],[[w,"Solaris"],E],[/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\\w\\.]*)/i],[w,E]]},j=function(F,q){if(typeof F===b&&(q=F,F=r),!(this instanceof j))return new j(F,q).getResult();var H=typeof o!==d&&o.navigator?o.navigator:r,z=F||(H&&H.userAgent?H.userAgent:a),$e=H&&H.userAgentData?H.userAgentData:r,_e=q?Dt(St,q):St,ie=H&&H.userAgent==z;return this.getBrowser=function(){var V={};return V[w]=r,V[E]=r,Kt.call(V,z,_e.browser),V[m]=Ho(V[E]),ie&&H&&H.brave&&typeof H.brave.isBrave==u&&(V[w]="Brave"),V},this.getCPU=function(){var V={};return V[M]=r,Kt.call(V,z,_e.cpu),V},this.getDevice=function(){var V={};return V[y]=r,V[g]=r,V[h]=r,Kt.call(V,z,_e.device),ie&&!V[h]&&$e&&$e.mobile&&(V[h]=O),ie&&V[g]=="Macintosh"&&H&&typeof H.standalone!==d&&H.maxTouchPoints&&H.maxTouchPoints>2&&(V[g]="iPad",V[h]=P),V},this.getEngine=function(){var V={};return V[w]=r,V[E]=r,Kt.call(V,z,_e.engine),V},this.getOS=function(){var V={};return V[w]=r,V[E]=r,Kt.call(V,z,_e.os),ie&&!V[w]&&$e&&$e.platform!="Unknown"&&(V[w]=$e.platform.replace(/chrome os/i,ao).replace(/macos/i,eo)),V},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return z},this.setUA=function(V){return z=typeof V===T&&V.length>Z?ct(V,Z):V,this},this.setUA(z),this};j.VERSION=i,j.BROWSER=so([w,E,m]),j.CPU=so([M]),j.DEVICE=so([g,y,h,L,O,U,P,Q,oe]),j.ENGINE=j.OS=so([w,E]),typeof tn!==d?(typeof Si!==d&&Si.exports&&(tn=Si.exports=j),tn.UAParser=j):typeof define===u&&define.amd?define(function(){return j}):typeof o!==d&&(o.UAParser=j);var ne=typeof o!==d&&(o.jQuery||o.Zepto);if(ne&&!ne.ua){var Y=new j;ne.ua=Y.getResult(),ne.ua.get=function(){return Y.getUA()},ne.ua.set=function(F){Y.setUA(F);var q=Y.getResult();for(var H in q)ne.ua[H]=q[H]}}})(typeof window=="object"?window:tn)});var no=(o,r)=>{Ka(o);let i=o.querySelector("aside");i.dataset.view=r,i.classList.remove("section-ready"),setTimeout(()=>{i.classList.add("section-ready")},200)},Vl=o=>{Array.from(o.querySelectorAll(".back-button")).forEach(r=>{r.addEventListener("click",i=>{Ka(o),i.preventDefault(),i.stopPropagation();let a=i.target;no(o,a?.dataset.back||"nav-home")})})},Ga=(o,r)=>{Ka(o);let i=o.querySelector("aside"),a=document.createElement("div");a.className="ui-toast",a.innerHTML=r,i.appendChild(a),setTimeout(()=>{a.classList.add("ui-toast-show"),setTimeout(()=>{a.classList.remove("ui-toast-show"),setTimeout(()=>{a.remove()},500)},4e3)},30)},Ka=o=>{let r=o.querySelector("aside");Array.from(r.querySelectorAll(".ui-toast")).forEach(a=>{a.classList.remove("ui-toast-show")})},Qn=()=>{let o=Wl();return localStorage.getItem(o)!=="true"},Ya=o=>{let r=Wl();o?localStorage.removeItem(r):localStorage.setItem(r,"true")},Wl=()=>hb("disableEdit"),hb=o=>\`builder.__LOCAL_APP_ID__.\${o}\`,Gl=()=>{let r=document.body.querySelector("[builder-content-id]")?.getAttribute("builder-content-id");return Wr(r)},Wr=(o,r)=>{let i="/content";o&&(i+="/"+o+"/edit");let a=new URL(i,"https://builder.io");o&&r&&a.searchParams.set("selectedBlock",r);let c=new URL(location.pathname,location.href);return a.searchParams.set("overridePreviewUrl",c.href),a.href},Zn="__DEV_TOOLS_URL__",Ke={components:[],registryPath:"",registryDisplayPath:"",frameworks:[],dependencies:[],publicApiKey:void 0},vo=o=>{Ke.components=o.components,Ke.registryPath=o.registryPath,Ke.registryDisplayPath=o.registryDisplayPath,Ke.dependencies=o.dependencies,Ke.publicApiKey=o.publicApiKey};function Kl(o){let r=null,i=document.querySelector("builder-dev-tools-menu"),a=()=>{o.hide()},c=b=>{let T=b.target;if(!T){a();return}if(T.closest("builder-dev-tools-edit"))return;let m=T.closest("[builder-content-id]"),g=T.closest("[builder-id]");if(!m||!g){o.hide();return}let w=o.show(m,g);!w||w===r||(i.highlightOpener(),r=w)};document.addEventListener("pointerover",c,{passive:!0}),document.addEventListener("pointerleave",a,{passive:!0}),document.addEventListener("pointercancel",a,{passive:!0}),document.addEventListener("visibilitychange",a,{passive:!0}),window.addEventListener("popstate",a,{passive:!0});let u=history.pushState;history.pushState=function(...b){o.hide(),u.apply(this,b)};let d=history.replaceState;history.replaceState=function(...b){o.hide(),d.apply(this,b)}}var Jn=class extends HTMLElement{constructor(){super();this.openInBuilder=null;this.block=null}connectedCallback(){this.setAttribute("aria-hidden","true");let i=this.attachShadow({mode:"open"});i.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)}:host{display:none;position:absolute;top:0;left:0;width:100%;height:100%;z-index:2147483646;user-select:none;pointer-events:none;color:var(--text-color)}#content-highlight,#block{position:absolute}#content-highlight{border:3px solid var(--primary-color);background-color:var(--primary-color-alpha)}a{position:absolute;top:-33px;left:0;display:block;padding:5px 10px 8px;pointer-events:auto;z-index:100;text-decoration:none}a:hover{text-decoration:none}a span{display:block;padding:3px 6px;font-size:10px;font-weight:300;border-radius:3px;text-align:center;text-decoration:none;pointer-events:none;background-color:var(--edit-color);color:var(--text-color);white-space:nowrap}a:hover span{background-color:var(--edit-color-highlight)}a:hover~.outline{border-color:var(--edit-color-highlight)}#open-in-editor{display:none}.outline{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid var(--edit-color);background-color:var(--edit-color-alpha)}</style><div id="block"> <a id="open-in-builder" target="builder"><span>Open In Builder</span></a> <a id="open-in-editor" href="#open-in-editor"><span>Open In Editor</span></a> <div class="outline"></div> </div>',this.openInBuilder=i.getElementById("open-in-builder"),this.block=i.getElementById("block"),Kl(this)}show(i,a){if(!Qn())return this.hide(),null;let c=i.getAttribute("builder-content-id"),u=a.getAttribute("builder-id");if(!c||!u)return this.hide(),null;let d=this.block,b=this.openInBuilder,T=a.getBoundingClientRect();d.style.top=T.top+window.scrollY-1+"px",d.style.left=T.left+window.scrollX+"px",d.style.width=T.width+"px",d.style.height=T.height+1+"px";let m=b.getBoundingClientRect();if(m.width>T.width){let g=m.width-T.width;b.style.left=g/2*-1+"px"}else b.style.left="";return b.href=Wr(c,u),this.style.display="block",u}hide(){this.style.display=""}};var Yl="preview-url";var $l="_b-uid";var Xl="/~builder-connect";var Ql="/~builder-dev-tools";var Zl="https://cdn.builder.io/api/v1/proxy-api?url=https://api2.amplitude.com/2/httpapi";var Jl=()=>yo({type:"validateBuilder"}),Er=o=>yo({type:"launchEditor",data:o}),eg=o=>yo({type:"getRegistry",data:o}),tg=o=>yo({type:"loadComponent",data:o}),og=o=>yo({type:"registerComponent",data:o}),rg=o=>yo({type:"setComponentInfo",data:o}),ei=o=>yo({type:"setComponentInput",data:o}),ng=o=>yo({type:"unregisterComponent",data:o}),ig=o=>yo({type:"enableDevTools",data:{enabled:o}}),yo=async o=>{let r=new URL(Ql,Zn),i;try{i=await fetch(r,{method:"POST",body:JSON.stringify(o)})}catch(c){throw console.error(\`Devtools Fetch Error, \${r.href}\`,c),new Error("Builder Devtools Fetch Error")}if((i.headers.get("content-type")||"").includes("application/json")){let c=await i.json();if(i.ok)return c.data;if(Array.isArray(c.errors)&&c.errors.length>0)throw c.errors.forEach(u=>console.error(u)),new Error(\`Builder Devtools Fetch Error: \${c.errors[0]}\`)}throw new Error(\`Builder Devtools Fetch Error: \${i.status}, \${await i.text()}\`)};var ag=[{value:"boolean",text:"boolean"},{value:"color",text:"color (provides a color in hex or rgb)"},{value:"date",text:"date (same format as the Date constructor)"},{value:"email",text:"email"},{value:"file",text:"file (uploads a file and provides a url)"},{value:"list",text:"list (collection of items)"},{value:"longText",text:"longText (multiline text editor)"},{value:"number",text:"number"},{value:"object",text:"object (set of specific names and values)"},{value:"richText",text:"richText (provides value as html)"},{value:"string",text:"string"}],ti=["color","date","email","file","longText","richText","string"],oi=["number"],ri=["boolean"],ni=["list"],ii=["object"];function ai(o){return ti.includes(o)?"string":oi.includes(o)?"number":ri.includes(o)?"boolean":ni.includes(o)?"array":ii.includes(o)?"object":"string"}var A_=new Set(["about","accessKey","accessKeyLabel","asChild","autoCapitalize","autoCorrect","autoFocus","autoSave","blur","contentEditable","contextMenu","dangerouslySetInnerHTML","datatype","defaultChecked","defaultValue","dir","draggable","enterKeyHint","focus","form","formAction","formEncType","formMethod","formNoValidate","formTarget","inlist","innerText","inputMode","is","isContentEditable","itemID","itemProp","itemRef","itemScope","itemType","lang","nonce","offsetHeight","offsetLeft","offsetTop","offsetWidth","outerText","prefix","property","radioGroup","rel","resource","results","rev","role","security","slot","spellCheck","suppressContentEditableWarning","suppressHydrationWarning","tabIndex","translate","typeof","unselectable","vocab"].map(o=>o.toLowerCase()));var Se=function(){return Se=Object.assign||function(r){for(var i,a=1,c=arguments.length;a<c;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(r[u]=i[u])}return r},Se.apply(this,arguments)};function sg(o,r){var i={};for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&r.indexOf(a)<0&&(i[a]=o[a]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(o);c<a.length;c++)r.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(o,a[c])&&(i[a[c]]=o[a[c]]);return i}function Ue(o,r,i,a){function c(u){return u instanceof i?u:new i(function(d){d(u)})}return new(i||(i=Promise))(function(u,d){function b(g){try{m(a.next(g))}catch(w){d(w)}}function T(g){try{m(a.throw(g))}catch(w){d(w)}}function m(g){g.done?u(g.value):c(g.value).then(b,T)}m((a=a.apply(o,r||[])).next())})}function Ne(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},a,c,u,d;return d={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function b(m){return function(g){return T([m,g])}}function T(m){if(a)throw new TypeError("Generator is already executing.");for(;d&&(d=0,m[0]&&(i=0)),i;)try{if(a=1,c&&(u=m[0]&2?c.return:m[0]?c.throw||((u=c.return)&&u.call(c),0):c.next)&&!(u=u.call(c,m[1])).done)return u;switch(c=0,u&&(m=[m[0]&2,u.value]),m[0]){case 0:case 1:u=m;break;case 4:return i.label++,{value:m[1],done:!1};case 5:i.label++,c=m[1],m=[0];continue;case 7:m=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(m[0]===6||m[0]===2)){i=0;continue}if(m[0]===3&&(!u||m[1]>u[0]&&m[1]<u[3])){i.label=m[1];break}if(m[0]===6&&i.label<u[1]){i.label=u[1],u=m;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(m);break}u[2]&&i.ops.pop(),i.trys.pop();continue}m=r.call(o,i)}catch(g){m=[6,g],c=0}finally{a=u=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}function io(o){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&o[r],a=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&a>=o.length&&(o=void 0),{value:o&&o[a++],done:!o}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ct(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var a=i.call(o),c,u=[],d;try{for(;(r===void 0||r-- >0)&&!(c=a.next()).done;)u.push(c.value)}catch(b){d={error:b}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(d)throw d.error}}return u}function bo(o,r,i){if(i||arguments.length===2)for(var a=0,c=r.length,u;a<c;a++)(u||!(a in r))&&(u||(u=Array.prototype.slice.call(r,0,a)),u[a]=r[a]);return o.concat(u||Array.prototype.slice.call(r))}var Be;(function(o){o.SET="$set",o.SET_ONCE="$setOnce",o.ADD="$add",o.APPEND="$append",o.PREPEND="$prepend",o.REMOVE="$remove",o.PREINSERT="$preInsert",o.POSTINSERT="$postInsert",o.UNSET="$unset",o.CLEAR_ALL="$clearAll"})(Be||(Be={}));var _o;(function(o){o.REVENUE_PRODUCT_ID="$productId",o.REVENUE_QUANTITY="$quantity",o.REVENUE_PRICE="$price",o.REVENUE_TYPE="$revenueType",o.REVENUE="$revenue"})(_o||(_o={}));var Mo;(function(o){o.IDENTIFY="$identify",o.GROUP_IDENTIFY="$groupidentify",o.REVENUE="revenue_amount"})(Mo||(Mo={}));var ft;(function(o){o[o.None=0]="None",o[o.Error=1]="Error",o[o.Warn=2]="Warn",o[o.Verbose=3]="Verbose",o[o.Debug=4]="Debug"})(ft||(ft={}));var ve;(function(o){o.BEFORE="before",o.ENRICHMENT="enrichment",o.DESTINATION="destination"})(ve||(ve={}));var xr;(function(o){o.US="US",o.EU="EU"})(xr||(xr={}));var ke;(function(o){o.Unknown="unknown",o.Skipped="skipped",o.Success="success",o.RateLimit="rate_limit",o.PayloadTooLarge="payload_too_large",o.Invalid="invalid",o.Failed="failed",o.Timeout="Timeout",o.SystemError="SystemError"})(ke||(ke={}));var Tr;(function(o){o.XHR="xhr",o.SendBeacon="beacon",o.Fetch="fetch"})(Tr||(Tr={}));var $a="-",er="AMP",Xa="".concat(er,"_unsent"),Qa="https://api2.amplitude.com/2/httpapi",cg="https://api.eu.amplitude.com/2/httpapi",ug="https://api2.amplitude.com/batch",lg="https://api.eu.amplitude.com/batch";var yb=1e3,si=function(o){if(Object.keys(o).length>yb)return!1;for(var r in o){var i=o[r];if(!Za(r,i))return!1}return!0},Za=function(o,r){var i,a;if(typeof o!="string")return!1;if(Array.isArray(r)){var c=!0;try{for(var u=io(r),d=u.next();!d.done;d=u.next()){var b=d.value;if(Array.isArray(b))return!1;if(typeof b=="object")c=c&&si(b);else if(!["number","string"].includes(typeof b))return!1;if(!c)return!1}}catch(T){i={error:T}}finally{try{d&&!d.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}}else{if(r==null)return!1;if(typeof r=="object")return si(r);if(!["number","string","boolean"].includes(typeof r))return!1}return!0};var Ht=function(){function o(){this._propertySet=new Set,this._properties={}}return o.prototype.getUserProperties=function(){return Se({},this._properties)},o.prototype.set=function(r,i){return this._safeSet(Be.SET,r,i),this},o.prototype.setOnce=function(r,i){return this._safeSet(Be.SET_ONCE,r,i),this},o.prototype.append=function(r,i){return this._safeSet(Be.APPEND,r,i),this},o.prototype.prepend=function(r,i){return this._safeSet(Be.PREPEND,r,i),this},o.prototype.postInsert=function(r,i){return this._safeSet(Be.POSTINSERT,r,i),this},o.prototype.preInsert=function(r,i){return this._safeSet(Be.PREINSERT,r,i),this},o.prototype.remove=function(r,i){return this._safeSet(Be.REMOVE,r,i),this},o.prototype.add=function(r,i){return this._safeSet(Be.ADD,r,i),this},o.prototype.unset=function(r){return this._safeSet(Be.UNSET,r,$a),this},o.prototype.clearAll=function(){return this._properties={},this._properties[Be.CLEAR_ALL]=$a,this},o.prototype._safeSet=function(r,i,a){if(this._validate(r,i,a)){var c=this._properties[r];return c===void 0&&(c={},this._properties[r]=c),c[i]=a,this._propertySet.add(i),!0}return!1},o.prototype._validate=function(r,i,a){return this._properties[Be.CLEAR_ALL]!==void 0||this._propertySet.has(i)?!1:r===Be.ADD?typeof a=="number":r!==Be.UNSET&&r!==Be.REMOVE?Za(i,a):!0},o}();var gg=function(o,r,i){var a=typeof o=="string"?{event_type:o}:o;return Se(Se(Se({},a),i),r&&{event_properties:r})},Gr=function(o,r){var i=Se(Se({},r),{event_type:Mo.IDENTIFY,user_properties:o.getUserProperties()});return i},fg=function(o,r,i,a){var c,u=Se(Se({},a),{event_type:Mo.GROUP_IDENTIFY,group_properties:i.getUserProperties(),groups:(c={},c[o]=r,c)});return u},dg=function(o,r,i){var a,c=new Ht;c.set(o,r);var u=Se(Se({},i),{event_type:Mo.IDENTIFY,user_properties:c.getUserProperties(),groups:(a={},a[o]=r,a)});return u},pg=function(o,r){return Se(Se({},r),{event_type:Mo.REVENUE,event_properties:o.getEventProperties()})};var qo=function(o,r,i){return r===void 0&&(r=0),i===void 0&&(i=ke.Unknown),{event:o,code:r,message:i}};var mg=function(){function o(r){this.client=r,this.queue=[],this.applying=!1,this.plugins=[]}return o.prototype.register=function(r,i){return Ue(this,void 0,void 0,function(){return Ne(this,function(a){switch(a.label){case 0:return[4,r.setup(i,this.client)];case 1:return a.sent(),this.plugins.push(r),[2]}})})},o.prototype.deregister=function(r){var i;return Ue(this,void 0,void 0,function(){var a,c;return Ne(this,function(u){switch(u.label){case 0:return a=this.plugins.findIndex(function(d){return d.name===r}),c=this.plugins[a],this.plugins.splice(a,1),[4,(i=c.teardown)===null||i===void 0?void 0:i.call(c)];case 1:return u.sent(),[2]}})})},o.prototype.reset=function(r){this.applying=!1;var i=this.plugins;i.map(function(a){var c;return(c=a.teardown)===null||c===void 0?void 0:c.call(a)}),this.plugins=[],this.client=r},o.prototype.push=function(r){var i=this;return new Promise(function(a){i.queue.push([r,a]),i.scheduleApply(0)})},o.prototype.scheduleApply=function(r){var i=this;this.applying||(this.applying=!0,setTimeout(function(){i.apply(i.queue.shift()).then(function(){i.applying=!1,i.queue.length>0&&i.scheduleApply(0)})},r))},o.prototype.apply=function(r){return Ue(this,void 0,void 0,function(){var i,a,c,u,d,b,T,y,E,m,g,w,h,y,E,M,L,O,P,U,Q,oe;return Ne(this,function(Z){switch(Z.label){case 0:if(!r)return[2];i=Ct(r,1),a=i[0],c=Ct(r,2),u=c[1],d=this.plugins.filter(function(fe){return fe.type===ve.BEFORE}),Z.label=1;case 1:Z.trys.push([1,6,7,8]),b=io(d),T=b.next(),Z.label=2;case 2:return T.done?[3,5]:(y=T.value,[4,y.execute(Se({},a))]);case 3:if(E=Z.sent(),E===null)return u({event:a,code:0,message:""}),[2];a=E,Z.label=4;case 4:return T=b.next(),[3,2];case 5:return[3,8];case 6:return m=Z.sent(),P={error:m},[3,8];case 7:try{T&&!T.done&&(U=b.return)&&U.call(b)}finally{if(P)throw P.error}return[7];case 8:g=this.plugins.filter(function(fe){return fe.type===ve.ENRICHMENT}),Z.label=9;case 9:Z.trys.push([9,14,15,16]),w=io(g),h=w.next(),Z.label=10;case 10:return h.done?[3,13]:(y=h.value,[4,y.execute(Se({},a))]);case 11:if(E=Z.sent(),E===null)return u({event:a,code:0,message:""}),[2];a=E,Z.label=12;case 12:return h=w.next(),[3,10];case 13:return[3,16];case 14:return M=Z.sent(),Q={error:M},[3,16];case 15:try{h&&!h.done&&(oe=w.return)&&oe.call(w)}finally{if(Q)throw Q.error}return[7];case 16:return L=this.plugins.filter(function(fe){return fe.type===ve.DESTINATION}),O=L.map(function(fe){var de=Se({},a);return fe.execute(de).catch(function(xe){return qo(de,0,String(xe))})}),Promise.all(O).then(function(fe){var de=Ct(fe,1),xe=de[0];u(xe)}),[2]}})})},o.prototype.flush=function(){return Ue(this,void 0,void 0,function(){var r,i,a,c=this;return Ne(this,function(u){switch(u.label){case 0:return r=this.queue,this.queue=[],[4,Promise.all(r.map(function(d){return c.apply(d)}))];case 1:return u.sent(),i=this.plugins.filter(function(d){return d.type===ve.DESTINATION}),a=i.map(function(d){return d.flush&&d.flush()}),[4,Promise.all(a)];case 2:return u.sent(),[2]}})})},o}();var wg="Event tracked successfully",hg="Unexpected error occurred",vg="Event rejected due to exceeded retry count",yg="Event skipped due to optOut config",bg="Event rejected due to missing API key",_g="Invalid API key",Eg="Client not initialized";var bt=function(o){return{promise:o||Promise.resolve()}};var Ja=function(){function o(r){r===void 0&&(r="$default"),this.initializing=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new mg(this),this.name=r}return o.prototype._init=function(r){return Ue(this,void 0,void 0,function(){return Ne(this,function(i){switch(i.label){case 0:return this.config=r,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return i.sent(),[2]}})})},o.prototype.runQueuedFunctions=function(r){return Ue(this,void 0,void 0,function(){var i,a,c,u,d,b,T;return Ne(this,function(m){switch(m.label){case 0:i=this[r],this[r]=[],m.label=1;case 1:m.trys.push([1,6,7,8]),a=io(i),c=a.next(),m.label=2;case 2:return c.done?[3,5]:(u=c.value,[4,u()]);case 3:m.sent(),m.label=4;case 4:return c=a.next(),[3,2];case 5:return[3,8];case 6:return d=m.sent(),b={error:d},[3,8];case 7:try{c&&!c.done&&(T=a.return)&&T.call(a)}finally{if(b)throw b.error}return[7];case 8:return[2]}})})},o.prototype.track=function(r,i,a){var c=gg(r,i,a);return bt(this.dispatch(c))},o.prototype.identify=function(r,i){var a=Gr(r,i);return bt(this.dispatch(a))},o.prototype.groupIdentify=function(r,i,a,c){var u=fg(r,i,a,c);return bt(this.dispatch(u))},o.prototype.setGroup=function(r,i,a){var c=dg(r,i,a);return bt(this.dispatch(c))},o.prototype.revenue=function(r,i){var a=pg(r,i);return bt(this.dispatch(a))},o.prototype.add=function(r){return this.config?bt(this.timeline.register(r,this.config)):(this.q.push(this.add.bind(this,r)),bt())},o.prototype.remove=function(r){return this.config?bt(this.timeline.deregister(r)):(this.q.push(this.remove.bind(this,r)),bt())},o.prototype.dispatchWithCallback=function(r,i){if(!this.config)return i(qo(r,0,Eg));this.process(r).then(i)},o.prototype.dispatch=function(r){return Ue(this,void 0,void 0,function(){var i=this;return Ne(this,function(a){return this.config?[2,this.process(r)]:[2,new Promise(function(c){i.dispatchQ.push(i.dispatchWithCallback.bind(i,r,c))})]})})},o.prototype.process=function(r){return Ue(this,void 0,void 0,function(){var c,i,a,c;return Ne(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),this.config.optOut?[2,qo(r,0,yg)]:[4,this.timeline.push(r)];case 1:return c=u.sent(),c.code===200?this.config.loggerProvider.log(c.message):this.config.loggerProvider.error(c.message),[2,c];case 2:return i=u.sent(),a=String(i),this.config.loggerProvider.error(a),c=qo(r,0,a),[2,c];case 3:return[2]}})})},o.prototype.setOptOut=function(r){if(!this.config){this.q.push(this.setOptOut.bind(this,!!r));return}this.config.optOut=!!r},o.prototype.flush=function(){return bt(this.timeline.flush())},o}();var ci=function(){function o(){this.productId="",this.quantity=1,this.price=0}return o.prototype.setProductId=function(r){return this.productId=r,this},o.prototype.setQuantity=function(r){return r>0&&(this.quantity=r),this},o.prototype.setPrice=function(r){return this.price=r,this},o.prototype.setRevenueType=function(r){return this.revenueType=r,this},o.prototype.setRevenue=function(r){return this.revenue=r,this},o.prototype.setEventProperties=function(r){return si(r)&&(this.properties=r),this},o.prototype.getEventProperties=function(){var r=this.properties?Se({},this.properties):{};return r[_o.REVENUE_PRODUCT_ID]=this.productId,r[_o.REVENUE_QUANTITY]=this.quantity,r[_o.REVENUE_PRICE]=this.price,r[_o.REVENUE_TYPE]=this.revenueType,r[_o.REVENUE]=this.revenue,r},o}();var xg=function(o,r){var i=Math.max(r,1);return o.reduce(function(a,c,u){var d=Math.floor(u/i);return a[d]||(a[d]=[]),a[d].push(c),a},[])};var ui="Amplitude Logger ",Tg=function(){function o(){this.logLevel=ft.None}return o.prototype.disable=function(){this.logLevel=ft.None},o.prototype.enable=function(r){r===void 0&&(r=ft.Warn),this.logLevel=r},o.prototype.log=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this.logLevel<ft.Verbose||console.log("".concat(ui,"[Log]: ").concat(r.join(" ")))},o.prototype.warn=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this.logLevel<ft.Warn||console.warn("".concat(ui,"[Warn]: ").concat(r.join(" ")))},o.prototype.error=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this.logLevel<ft.Error||console.error("".concat(ui,"[Error]: ").concat(r.join(" ")))},o.prototype.debug=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this.logLevel<ft.Debug||console.log("".concat(ui,"[Debug]: ").concat(r.join(" ")))},o}();var li=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:"$default_instance",logLevel:ft.Warn,loggerProvider:new Tg,optOut:!1,serverUrl:Qa,serverZone:xr.US,useBatch:!1}},es=function(){function o(r){var i,a,c,u;this._optOut=!1;var d=li();this.apiKey=r.apiKey,this.flushIntervalMillis=(i=r.flushIntervalMillis)!==null&&i!==void 0?i:d.flushIntervalMillis,this.flushMaxRetries=r.flushMaxRetries||d.flushMaxRetries,this.flushQueueSize=r.flushQueueSize||d.flushQueueSize,this.instanceName=r.instanceName||d.instanceName,this.loggerProvider=r.loggerProvider||d.loggerProvider,this.logLevel=(a=r.logLevel)!==null&&a!==void 0?a:d.logLevel,this.minIdLength=r.minIdLength,this.plan=r.plan,this.ingestionMetadata=r.ingestionMetadata,this.optOut=(c=r.optOut)!==null&&c!==void 0?c:d.optOut,this.serverUrl=r.serverUrl,this.serverZone=r.serverZone||d.serverZone,this.storageProvider=r.storageProvider,this.transportProvider=r.transportProvider,this.useBatch=(u=r.useBatch)!==null&&u!==void 0?u:d.useBatch,this.loggerProvider.enable(this.logLevel);var b=ts(r.serverUrl,r.serverZone,r.useBatch);this.serverZone=b.serverZone,this.serverUrl=b.serverUrl}return Object.defineProperty(o.prototype,"optOut",{get:function(){return this._optOut},set:function(r){this._optOut=r},enumerable:!1,configurable:!0}),o}();var bb=function(o,r){return o===xr.EU?r?lg:cg:r?ug:Qa},ts=function(o,r,i){if(o===void 0&&(o=""),r===void 0&&(r=li().serverZone),i===void 0&&(i=li().useBatch),o)return{serverUrl:o,serverZone:void 0};var a=["US","EU"].includes(r)?r:li().serverZone;return{serverZone:a,serverUrl:bb(a,i)}};function _b(o){return o instanceof Error?o.message:String(o)}function gi(o){var r="";try{"body"in o&&(r=JSON.stringify(o.body))}catch{}return r}var os=function(){function o(){this.name="amplitude",this.type=ve.DESTINATION,this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduled=null,this.queue=[]}return o.prototype.setup=function(r){var i;return Ue(this,void 0,void 0,function(){var a,c=this;return Ne(this,function(u){switch(u.label){case 0:return this.config=r,this.storageKey="".concat(Xa,"_").concat(this.config.apiKey.substring(0,10)),[4,(i=this.config.storageProvider)===null||i===void 0?void 0:i.get(this.storageKey)];case 1:return a=u.sent(),this.saveEvents(),a&&a.length>0&&Promise.all(a.map(function(d){return c.execute(d)})).catch(),[2,Promise.resolve(void 0)]}})})},o.prototype.execute=function(r){var i=this;return new Promise(function(a){var c={event:r,attempts:0,callback:function(u){return a(u)},timeout:0};i.addToQueue(c)})},o.prototype.addToQueue=function(){for(var r=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var c=i.filter(function(u){return u.attempts<r.config.flushMaxRetries?(u.attempts+=1,!0):(r.fulfillRequest([u],500,vg),!1)});c.forEach(function(u){if(r.queue=r.queue.concat(u),u.timeout===0){r.schedule(r.config.flushIntervalMillis);return}setTimeout(function(){u.timeout=0,r.schedule(0)},u.timeout)}),this.saveEvents()},o.prototype.schedule=function(r){var i=this;this.scheduled||(this.scheduled=setTimeout(function(){i.flush(!0).then(function(){i.queue.length>0&&i.schedule(r)})},r))},o.prototype.flush=function(r){return r===void 0&&(r=!1),Ue(this,void 0,void 0,function(){var i,a,c,u=this;return Ne(this,function(d){switch(d.label){case 0:return i=[],a=[],this.queue.forEach(function(b){return b.timeout===0?i.push(b):a.push(b)}),this.queue=a,this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),c=xg(i,this.config.flushQueueSize),[4,Promise.all(c.map(function(b){return u.send(b,r)}))];case 1:return d.sent(),[2]}})})},o.prototype.send=function(r,i){return i===void 0&&(i=!0),Ue(this,void 0,void 0,function(){var a,c,u,d,b;return Ne(this,function(T){switch(T.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(r,400,bg)];a={api_key:this.config.apiKey,events:r.map(function(m){var g=m.event,w=g.extra,h=sg(g,["extra"]);return h}),options:{min_id_length:this.config.minIdLength}},T.label=1;case 1:return T.trys.push([1,3,,4]),c=ts(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(c,a)];case 2:return u=T.sent(),u===null?(this.fulfillRequest(r,0,hg),[2]):i?(this.handleResponse(u,r),[3,4]):("body"in u?this.fulfillRequest(r,u.statusCode,"".concat(u.status,": ").concat(gi(u))):this.fulfillRequest(r,u.statusCode,u.status),[2]);case 3:return d=T.sent(),b=_b(d),this.config.loggerProvider.error(b),this.fulfillRequest(r,0,b),[3,4];case 4:return[2]}})})},o.prototype.handleResponse=function(r,i){var a=r.status;switch(a){case ke.Success:{this.handleSuccessResponse(r,i);break}case ke.Invalid:{this.handleInvalidResponse(r,i);break}case ke.PayloadTooLarge:{this.handlePayloadTooLargeResponse(r,i);break}case ke.RateLimit:{this.handleRateLimitResponse(r,i);break}default:{this.config.loggerProvider.warn(\`{code: 0, error: "Status '\`.concat(a,"' provided for ").concat(i.length,' events"}')),this.handleOtherResponse(i);break}}},o.prototype.handleSuccessResponse=function(r,i){this.fulfillRequest(i,r.statusCode,wg)},o.prototype.handleInvalidResponse=function(r,i){var a=this;if(r.body.missingField||r.body.error.startsWith(_g)){this.fulfillRequest(i,r.statusCode,r.body.error);return}var c=bo(bo(bo(bo([],Ct(Object.values(r.body.eventsWithInvalidFields)),!1),Ct(Object.values(r.body.eventsWithMissingFields)),!1),Ct(Object.values(r.body.eventsWithInvalidIdLengths)),!1),Ct(r.body.silencedEvents),!1).flat(),u=new Set(c),d=i.filter(function(b,T){if(u.has(T)){a.fulfillRequest([b],r.statusCode,r.body.error);return}return!0});d.length>0&&this.config.loggerProvider.warn(gi(r)),this.addToQueue.apply(this,bo([],Ct(d),!1))},o.prototype.handlePayloadTooLargeResponse=function(r,i){if(i.length===1){this.fulfillRequest(i,r.statusCode,r.body.error);return}this.config.loggerProvider.warn(gi(r)),this.config.flushQueueSize/=2,this.addToQueue.apply(this,bo([],Ct(i),!1))},o.prototype.handleRateLimitResponse=function(r,i){var a=this,c=Object.keys(r.body.exceededDailyQuotaUsers),u=Object.keys(r.body.exceededDailyQuotaDevices),d=r.body.throttledEvents,b=new Set(c),T=new Set(u),m=new Set(d),g=i.filter(function(w,h){if(w.event.user_id&&b.has(w.event.user_id)||w.event.device_id&&T.has(w.event.device_id)){a.fulfillRequest([w],r.statusCode,r.body.error);return}return m.has(h)&&(w.timeout=a.throttleTimeout),!0});g.length>0&&this.config.loggerProvider.warn(gi(r)),this.addToQueue.apply(this,bo([],Ct(g),!1))},o.prototype.handleOtherResponse=function(r){var i=this;this.addToQueue.apply(this,bo([],Ct(r.map(function(a){return a.timeout=a.attempts*i.retryTimeout,a})),!1))},o.prototype.fulfillRequest=function(r,i,a){this.saveEvents(),r.forEach(function(c){return c.callback(qo(c.event,i,a))})},o.prototype.saveEvents=function(){if(this.config.storageProvider){var r=Array.from(this.queue.map(function(i){return i.event}));this.config.storageProvider.set(this.storageKey,r)}},o}();var Eb=function(o){o===void 0&&(o=0);var r=new Error().stack||"";return r.split(\`
29
- \`).slice(2+o).map(function(i){return i.trim()})},Re=function(o){return function(){var r=Se({},o.config),i=r.loggerProvider,a=r.logLevel;return{logger:i,logLevel:a}}},xb=function(o,r){var i,a;r=r.replace(/\\[(\\w+)\\]/g,".$1"),r=r.replace(/^\\./,"");try{for(var c=io(r.split(".")),u=c.next();!u.done;u=c.next()){var d=u.value;if(d in o)o=o[d];else return}}catch(b){i={error:b}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return o},Ae=function(o,r){return function(){var i,a,c={};try{for(var u=io(r),d=u.next();!d.done;d=u.next()){var b=d.value;c[b]=xb(o,b)}}catch(T){i={error:T}}finally{try{d&&!d.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}return c}},Ce=function(o,r,i,a,c){return c===void 0&&(c=null),function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];var b=i(),T=b.logger,m=b.logLevel;if(m&&m<ft.Debug||!m||!T)return o.apply(c,u);var g={type:"invoke public method",name:r,args:u,stacktrace:Eb(1),time:{start:new Date().toISOString()},states:{}};a&&g.states&&(g.states.before=a());var w=o.apply(c,u);return w&&w.promise?w.promise.then(function(){a&&g.states&&(g.states.after=a()),g.time&&(g.time.end=new Date().toISOString()),T.debug(JSON.stringify(g,null,2))}):(a&&g.states&&(g.states.after=a()),g.time&&(g.time.end=new Date().toISOString()),T.debug(JSON.stringify(g,null,2))),w}};var Uo=function(o){return o?(o^Math.random()*16>>o/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,Uo)};var fi=function(){function o(){this.memoryStorage=new Map}return o.prototype.isEnabled=function(){return Ue(this,void 0,void 0,function(){return Ne(this,function(r){return[2,!0]})})},o.prototype.get=function(r){return Ue(this,void 0,void 0,function(){return Ne(this,function(i){return[2,this.memoryStorage.get(r)]})})},o.prototype.getRaw=function(r){return Ue(this,void 0,void 0,function(){var i;return Ne(this,function(a){switch(a.label){case 0:return[4,this.get(r)];case 1:return i=a.sent(),[2,i?JSON.stringify(i):void 0]}})})},o.prototype.set=function(r,i){return Ue(this,void 0,void 0,function(){return Ne(this,function(a){return this.memoryStorage.set(r,i),[2]})})},o.prototype.remove=function(r){return Ue(this,void 0,void 0,function(){return Ne(this,function(i){return this.memoryStorage.delete(r),[2]})})},o.prototype.reset=function(){return Ue(this,void 0,void 0,function(){return Ne(this,function(r){return this.memoryStorage.clear(),[2]})})},o}();var tr=function(){function o(){}return o.prototype.send=function(r,i){return Promise.resolve(null)},o.prototype.buildResponse=function(r){var i,a,c,u,d,b,T,m,g,w,h,y,E,M,L,O,P,U,Q,oe,Z,fe;if(typeof r!="object")return null;var de=r.code||0,xe=this.buildStatus(de);switch(xe){case ke.Success:return{status:xe,statusCode:de,body:{eventsIngested:(i=r.events_ingested)!==null&&i!==void 0?i:0,payloadSizeBytes:(a=r.payload_size_bytes)!==null&&a!==void 0?a:0,serverUploadTime:(c=r.server_upload_time)!==null&&c!==void 0?c:0}};case ke.Invalid:return{status:xe,statusCode:de,body:{error:(u=r.error)!==null&&u!==void 0?u:"",missingField:(d=r.missing_field)!==null&&d!==void 0?d:"",eventsWithInvalidFields:(b=r.events_with_invalid_fields)!==null&&b!==void 0?b:{},eventsWithMissingFields:(T=r.events_with_missing_fields)!==null&&T!==void 0?T:{},eventsWithInvalidIdLengths:(m=r.events_with_invalid_id_lengths)!==null&&m!==void 0?m:{},epsThreshold:(g=r.eps_threshold)!==null&&g!==void 0?g:0,exceededDailyQuotaDevices:(w=r.exceeded_daily_quota_devices)!==null&&w!==void 0?w:{},silencedDevices:(h=r.silenced_devices)!==null&&h!==void 0?h:[],silencedEvents:(y=r.silenced_events)!==null&&y!==void 0?y:[],throttledDevices:(E=r.throttled_devices)!==null&&E!==void 0?E:{},throttledEvents:(M=r.throttled_events)!==null&&M!==void 0?M:[]}};case ke.PayloadTooLarge:return{status:xe,statusCode:de,body:{error:(L=r.error)!==null&&L!==void 0?L:""}};case ke.RateLimit:return{status:xe,statusCode:de,body:{error:(O=r.error)!==null&&O!==void 0?O:"",epsThreshold:(P=r.eps_threshold)!==null&&P!==void 0?P:0,throttledDevices:(U=r.throttled_devices)!==null&&U!==void 0?U:{},throttledUsers:(Q=r.throttled_users)!==null&&Q!==void 0?Q:{},exceededDailyQuotaDevices:(oe=r.exceeded_daily_quota_devices)!==null&&oe!==void 0?oe:{},exceededDailyQuotaUsers:(Z=r.exceeded_daily_quota_users)!==null&&Z!==void 0?Z:{},throttledEvents:(fe=r.throttled_events)!==null&&fe!==void 0?fe:[]}};case ke.Timeout:default:return{status:xe,statusCode:de}}},o.prototype.buildStatus=function(r){return r>=200&&r<300?ke.Success:r===429?ke.RateLimit:r===413?ke.PayloadTooLarge:r===408?ke.Timeout:r>=400&&r<500?ke.Invalid:r>=500?ke.Failed:ke.Unknown},o}();var rs=function(o,r){return rs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(i[c]=a[c])},rs(o,r)};function No(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");rs(o,r);function i(){this.constructor=o}o.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var he=function(){return he=Object.assign||function(r){for(var i,a=1,c=arguments.length;a<c;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(r[u]=i[u])}return r},he.apply(this,arguments)};function ue(o,r,i,a){function c(u){return u instanceof i?u:new i(function(d){d(u)})}return new(i||(i=Promise))(function(u,d){function b(g){try{m(a.next(g))}catch(w){d(w)}}function T(g){try{m(a.throw(g))}catch(w){d(w)}}function m(g){g.done?u(g.value):c(g.value).then(b,T)}m((a=a.apply(o,r||[])).next())})}function le(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},a,c,u,d;return d={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function b(m){return function(g){return T([m,g])}}function T(m){if(a)throw new TypeError("Generator is already executing.");for(;d&&(d=0,m[0]&&(i=0)),i;)try{if(a=1,c&&(u=m[0]&2?c.return:m[0]?c.throw||((u=c.return)&&u.call(c),0):c.next)&&!(u=u.call(c,m[1])).done)return u;switch(c=0,u&&(m=[m[0]&2,u.value]),m[0]){case 0:case 1:u=m;break;case 4:return i.label++,{value:m[1],done:!1};case 5:i.label++,c=m[1],m=[0];continue;case 7:m=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(m[0]===6||m[0]===2)){i=0;continue}if(m[0]===3&&(!u||m[1]>u[0]&&m[1]<u[3])){i.label=m[1];break}if(m[0]===6&&i.label<u[1]){i.label=u[1],u=m;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(m);break}u[2]&&i.ops.pop(),i.trys.pop();continue}m=r.call(o,i)}catch(g){m=[6,g],c=0}finally{a=u=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}function Sg(o){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&o[r],a=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&a>=o.length&&(o=void 0),{value:o&&o[a++],done:!o}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function di(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var a=i.call(o),c,u=[],d;try{for(;(r===void 0||r-- >0)&&!(c=a.next()).done;)u.push(c.value)}catch(b){d={error:b}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(d)throw d.error}}return u}var Tb=function(){function o(){}return o.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:Sb(),platform:"Web",os:void 0,deviceModel:void 0}},o}(),Sb=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},Ib=function(){function o(){this.queue=[]}return o.prototype.logEvent=function(r){this.receiver?this.receiver(r):this.queue.length<512&&this.queue.push(r)},o.prototype.setEventReceiver=function(r){this.receiver=r,this.queue.length>0&&(this.queue.forEach(function(i){r(i)}),this.queue=[])},o}(),Bo=function(){return Bo=Object.assign||function(r){for(var i,a=1,c=arguments.length;a<c;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(r[u]=i[u])}return r},Bo.apply(this,arguments)},pi=function(o,r){var i=["string","number","boolean","undefined"],a=typeof o,c=typeof r;if(a!==c)return!1;for(var u=0,d=i;u<d.length;u++){var b=d[u];if(b===a)return o===r}if(o==null&&r==null)return!0;if(o==null||r==null||o.length!==r.length)return!1;var T=Array.isArray(o),m=Array.isArray(r);if(T!==m)return!1;if(T&&m){for(var g=0;g<o.length;g++)if(!pi(o[g],r[g]))return!1}else{var w=Object.keys(o).sort(),h=Object.keys(r).sort();if(!pi(w,h))return!1;var y=!0;return Object.keys(o).forEach(function(E){pi(o[E],r[E])||(y=!1)}),y}return!0},Ob="$set",kb="$unset",Pb="$clearAll";Object.entries||(Object.entries=function(o){for(var r=Object.keys(o),i=r.length,a=new Array(i);i--;)a[i]=[r[i],o[r[i]]];return a});var Rb=function(){function o(){this.identity={userProperties:{}},this.listeners=new Set}return o.prototype.editIdentity=function(){var r=this,i=Bo({},this.identity.userProperties),a=Bo(Bo({},this.identity),{userProperties:i});return{setUserId:function(c){return a.userId=c,this},setDeviceId:function(c){return a.deviceId=c,this},setUserProperties:function(c){return a.userProperties=c,this},setOptOut:function(c){return a.optOut=c,this},updateUserProperties:function(c){for(var u=a.userProperties||{},d=0,b=Object.entries(c);d<b.length;d++){var T=b[d],m=T[0],g=T[1];switch(m){case Ob:for(var w=0,h=Object.entries(g);w<h.length;w++){var y=h[w],E=y[0],M=y[1];u[E]=M}break;case kb:for(var L=0,O=Object.keys(g);L<O.length;L++){var E=O[L];delete u[E]}break;case Pb:u={};break}}return a.userProperties=u,this},commit:function(){return r.setIdentity(a),this}}},o.prototype.getIdentity=function(){return Bo({},this.identity)},o.prototype.setIdentity=function(r){var i=Bo({},this.identity);this.identity=Bo({},r),pi(i,this.identity)||this.listeners.forEach(function(a){a(r)})},o.prototype.addIdentityListener=function(r){this.listeners.add(r)},o.prototype.removeIdentityListener=function(r){this.listeners.delete(r)},o}(),Kr=typeof globalThis<"u"?globalThis:typeof global<"u"?global:self,Ig=function(){function o(){this.identityStore=new Rb,this.eventBridge=new Ib,this.applicationContextProvider=new Tb}return o.getInstance=function(r){return Kr.analyticsConnectorInstances||(Kr.analyticsConnectorInstances={}),Kr.analyticsConnectorInstances[r]||(Kr.analyticsConnectorInstances[r]=new o),Kr.analyticsConnectorInstances[r]},o}();var Eo=function(o){return o===void 0&&(o="$default_instance"),Ig.getInstance(o)},ns=function(o,r){Eo(r).identityStore.editIdentity().setUserId(o).commit()},is=function(o,r){Eo(r).identityStore.editIdentity().setDeviceId(o).commit()},as=function(o,r){Eo(r).identityStore.editIdentity().setOptOut(o).commit()};var ss=function(o,r){return ss=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(i[c]=a[c])},ss(o,r)};function Og(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");ss(o,r);function i(){this.constructor=o}o.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var xo=function(){return xo=Object.assign||function(r){for(var i,a=1,c=arguments.length;a<c;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(r[u]=i[u])}return r},xo.apply(this,arguments)};function _t(o,r,i,a){function c(u){return u instanceof i?u:new i(function(d){d(u)})}return new(i||(i=Promise))(function(u,d){function b(g){try{m(a.next(g))}catch(w){d(w)}}function T(g){try{m(a.throw(g))}catch(w){d(w)}}function m(g){g.done?u(g.value):c(g.value).then(b,T)}m((a=a.apply(o,r||[])).next())})}function Et(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},a,c,u,d;return d={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function b(m){return function(g){return T([m,g])}}function T(m){if(a)throw new TypeError("Generator is already executing.");for(;d&&(d=0,m[0]&&(i=0)),i;)try{if(a=1,c&&(u=m[0]&2?c.return:m[0]?c.throw||((u=c.return)&&u.call(c),0):c.next)&&!(u=u.call(c,m[1])).done)return u;switch(c=0,u&&(m=[m[0]&2,u.value]),m[0]){case 0:case 1:u=m;break;case 4:return i.label++,{value:m[1],done:!1};case 5:i.label++,c=m[1],m=[0];continue;case 7:m=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(m[0]===6||m[0]===2)){i=0;continue}if(m[0]===3&&(!u||m[1]>u[0]&&m[1]<u[3])){i.label=m[1];break}if(m[0]===6&&i.label<u[1]){i.label=u[1],u=m;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(m);break}u[2]&&i.ops.pop(),i.trys.pop();continue}m=r.call(o,i)}catch(g){m=[6,g],c=0}finally{a=u=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}var ot=function(){if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global};var Sr=function(){var o,r=ot();if(!(!((o=r?.location)===null||o===void 0)&&o.search))return{};var i=r.location.search.substring(1).split("&").filter(Boolean),a=i.reduce(function(c,u){var d=u.split("=",2),b=kg(d[0]),T=kg(d[1]);return T&&(c[b]=T),c},{});return a},kg=function(o){o===void 0&&(o="");try{return decodeURIComponent(o)}catch{return""}};var Pg="utm_campaign",Rg="utm_content",Ag="utm_id",Cg="utm_medium",Lg="utm_source",Dg="utm_term",cs="dclid",us="fbclid",ls="gbraid",gs="gclid",fs="ko_click_id",ds="li_fat_id",ps="msclkid",ms="rtd_cid",ws="ttclid",hs="twclid",vs="wbraid";var or={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0};var Yr=function(){function o(){}return o.prototype.parse=function(){return _t(this,void 0,void 0,function(){return Et(this,function(r){return[2,xo(xo(xo(xo({},or),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},o.prototype.getUtmParam=function(){var r=Sr(),i=r[Pg],a=r[Rg],c=r[Ag],u=r[Cg],d=r[Lg],b=r[Dg];return{utm_campaign:i,utm_content:a,utm_id:c,utm_medium:u,utm_source:d,utm_term:b}},o.prototype.getReferrer=function(){var r,i,a={referrer:void 0,referring_domain:void 0};try{a.referrer=document.referrer||void 0,a.referring_domain=(i=(r=a.referrer)===null||r===void 0?void 0:r.split("/")[2])!==null&&i!==void 0?i:void 0}catch{}return a},o.prototype.getClickIds=function(){var r,i=Sr();return r={},r[cs]=i[cs],r[us]=i[us],r[ls]=i[ls],r[gs]=i[gs],r[fs]=i[fs],r[ds]=i[ds],r[ps]=i[ps],r[ms]=i[ms],r[ws]=i[ws],r[hs]=i[hs],r[vs]=i[vs],r},o}();var $r=function(o,r,i){return r===void 0&&(r=""),i===void 0&&(i=10),[er,r,o.substring(0,i)].filter(Boolean).join("_")},ys=function(o){return"".concat(er.toLowerCase(),"_").concat(o.substring(0,6))};var bs=function(o){return typeof o=="boolean"?o:!!o?.fileDownloads},_s=function(o){return typeof o=="boolean"?o:!!o?.formInteractions},Mg=function(o){return typeof o=="boolean"?o:!!(o?.pageViews===!0||o?.pageViews&&typeof o.pageViews=="object")},Es=function(o){return typeof o=="boolean"?o:!!o?.sessions},xs=function(o){var r,i=!((r=o.attribution)===null||r===void 0)&&r.trackPageViews?"attribution":function(){return!1},a=void 0,c="Page View",u=Mg(o.defaultTracking);return u&&(i=void 0,c=void 0,o.defaultTracking&&typeof o.defaultTracking=="object"&&o.defaultTracking.pageViews&&typeof o.defaultTracking.pageViews=="object"&&("trackOn"in o.defaultTracking.pageViews&&(i=o.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in o.defaultTracking.pageViews&&(a=o.defaultTracking.pageViews.trackHistoryChanges),"eventType"in o.defaultTracking.pageViews&&o.defaultTracking.pageViews.eventType&&(c=o.defaultTracking.pageViews.eventType))),{trackOn:i,trackHistoryChanges:a,eventType:c}};var Ts=function(){var o,r,i,a;if(typeof navigator>"u")return"";var c=navigator.userLanguage;return(a=(i=(r=(o=navigator.languages)===null||o===void 0?void 0:o[0])!==null&&r!==void 0?r:navigator.language)!==null&&i!==void 0?i:c)!==null&&a!==void 0?a:""};var Ss=function(){function o(){this.name="identity",this.type=ve.BEFORE,this.identityStore=Eo().identityStore}return o.prototype.execute=function(r){return _t(this,void 0,void 0,function(){var i;return Et(this,function(a){return i=r.user_properties,i&&this.identityStore.editIdentity().updateUserProperties(i).commit(),[2,r]})})},o.prototype.setup=function(r){return _t(this,void 0,void 0,function(){return Et(this,function(i){return r.instanceName&&(this.identityStore=Eo(r.instanceName).identityStore),[2]})})},o}();var Xr=function(){function o(r){this.options=xo({},r)}return o.prototype.isEnabled=function(){return _t(this,void 0,void 0,function(){var r,i,a,c;return Et(this,function(u){switch(u.label){case 0:if(!ot())return[2,!1];o.testValue=String(Date.now()),r=new o(this.options),i="AMP_TEST",u.label=1;case 1:return u.trys.push([1,4,5,7]),[4,r.set(i,o.testValue)];case 2:return u.sent(),[4,r.get(i)];case 3:return a=u.sent(),[2,a===o.testValue];case 4:return c=u.sent(),[2,!1];case 5:return[4,r.remove(i)];case 6:return u.sent(),[7];case 7:return[2]}})})},o.prototype.get=function(r){return _t(this,void 0,void 0,function(){var i;return Et(this,function(a){switch(a.label){case 0:return[4,this.getRaw(r)];case 1:if(i=a.sent(),!i)return[2,void 0];try{try{i=decodeURIComponent(atob(i))}catch{}return[2,JSON.parse(i)]}catch{return[2,void 0]}return[2]}})})},o.prototype.getRaw=function(r){var i;return _t(this,void 0,void 0,function(){var a,c,u;return Et(this,function(d){return a=ot(),c=(i=a?.document.cookie.split("; "))!==null&&i!==void 0?i:[],u=c.find(function(b){return b.indexOf(r+"=")===0}),u?[2,u.substring(r.length+1)]:[2,void 0]})})},o.prototype.set=function(r,i){var a;return _t(this,void 0,void 0,function(){var c,u,d,b,T,m;return Et(this,function(g){try{c=(a=this.options.expirationDays)!==null&&a!==void 0?a:0,u=i!==null?c:-1,d=void 0,u&&(b=new Date,b.setTime(b.getTime()+u*24*60*60*1e3),d=b),T="".concat(r,"=").concat(btoa(encodeURIComponent(JSON.stringify(i)))),d&&(T+="; expires=".concat(d.toUTCString())),T+="; path=/",this.options.domain&&(T+="; domain=".concat(this.options.domain)),this.options.secure&&(T+="; Secure"),this.options.sameSite&&(T+="; SameSite=".concat(this.options.sameSite)),m=ot(),m&&(m.document.cookie=T)}catch{}return[2]})})},o.prototype.remove=function(r){return _t(this,void 0,void 0,function(){return Et(this,function(i){switch(i.label){case 0:return[4,this.set(r,null)];case 1:return i.sent(),[2]}})})},o.prototype.reset=function(){return _t(this,void 0,void 0,function(){return Et(this,function(r){return[2]})})},o}();var Is=function(o){Og(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.send=function(i,a){return _t(this,void 0,void 0,function(){var c,u,d;return Et(this,function(b){switch(b.label){case 0:if(typeof fetch>"u")throw new Error("FetchTransport is not supported");return c={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(a),method:"POST"},[4,fetch(i,c)];case 1:return u=b.sent(),[4,u.json()];case 2:return d=b.sent(),[2,this.buildResponse(d)]}})})},r}(tr);var rr=function(){return rr=Object.assign||function(r){for(var i,a=1,c=arguments.length;a<c;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(r[u]=i[u])}return r},rr.apply(this,arguments)};function nr(o,r,i,a){function c(u){return u instanceof i?u:new i(function(d){d(u)})}return new(i||(i=Promise))(function(u,d){function b(g){try{m(a.next(g))}catch(w){d(w)}}function T(g){try{m(a.throw(g))}catch(w){d(w)}}function m(g){g.done?u(g.value):c(g.value).then(b,T)}m((a=a.apply(o,r||[])).next())})}function ir(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},a,c,u,d;return d={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function b(m){return function(g){return T([m,g])}}function T(m){if(a)throw new TypeError("Generator is already executing.");for(;d&&(d=0,m[0]&&(i=0)),i;)try{if(a=1,c&&(u=m[0]&2?c.return:m[0]?c.throw||((u=c.return)&&u.call(c),0):c.next)&&!(u=u.call(c,m[1])).done)return u;switch(c=0,u&&(m=[m[0]&2,u.value]),m[0]){case 0:case 1:u=m;break;case 4:return i.label++,{value:m[1],done:!1};case 5:i.label++,c=m[1],m=[0];continue;case 7:m=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(m[0]===6||m[0]===2)){i=0;continue}if(m[0]===3&&(!u||m[1]>u[0]&&m[1]<u[3])){i.label=m[1];break}if(m[0]===6&&i.label<u[1]){i.label=u[1],u=m;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(m);break}u[2]&&i.ops.pop(),i.trys.pop();continue}m=r.call(o,i)}catch(g){m=[6,g],c=0}finally{a=u=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}function Qr(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var a=i.call(o),c,u=[],d;try{for(;(r===void 0||r-- >0)&&!(c=a.next()).done;)u.push(c.value)}catch(b){d={error:b}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(d)throw d.error}}return u}function Os(o,r,i){if(i||arguments.length===2)for(var a=0,c=r.length,u;a<c;a++)(u||!(a in r))&&(u||(u=Array.prototype.slice.call(r,0,a)),u[a]=r[a]);return o.concat(u||Array.prototype.slice.call(r))}var qg=function(o){var r={};for(var i in o){var a=o[i];a&&(r[i]=a)}return r};var ks=function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i,a={},c=ot(),u=void 0,d,b=Qr(o,2),T=b[0],m=b[1];T&&"init"in T?(i=T,m&&(a=m)):T&&(a=T);var g=function(){return nr(void 0,void 0,void 0,function(){var L,O,P;return ir(this,function(U){switch(U.label){case 0:return O={event_type:(P=a.eventType)!==null&&P!==void 0?P:"Page View"},L=[{}],[4,Ab()];case 1:return[2,(O.event_properties=rr.apply(void 0,[rr.apply(void 0,L.concat([U.sent()])),{page_domain:typeof location<"u"&&location.hostname||"",page_location:typeof location<"u"&&location.href||"",page_path:typeof location<"u"&&location.pathname||"",page_title:typeof document<"u"&&document.title||"",page_url:typeof location<"u"&&location.href.split("?")[0]||""}]),O)]}})})},w=function(){return typeof a.trackOn>"u"||typeof a.trackOn=="function"&&a.trackOn()},h=typeof location<"u"?location.href:null,y=function(){return nr(void 0,void 0,void 0,function(){var L,O,P,U,Q;return ir(this,function(oe){switch(oe.label){case 0:return L=location.href,O=Lb(a.trackHistoryChanges,L,h||"")&&w(),h=L,O?(u?.log("Tracking page view event"),i!=null?[3,1]:(P=void 0,[3,3])):[3,4];case 1:return Q=(U=i).track,[4,g()];case 2:P=Q.apply(U,[oe.sent()]),oe.label=3;case 3:oe.label=4;case 4:return[2]}})})},E=function(){y()},M={name:"page-view-tracking",type:ve.ENRICHMENT,setup:function(L,O){return nr(void 0,void 0,void 0,function(){var P,U,Q,oe,Z;return ir(this,function(fe){switch(fe.label){case 0:return i=i??O,i?(u=L.loggerProvider,u.log("Installing @amplitude/plugin-page-view-tracking-browser"),a.trackOn=!((oe=L.attribution)===null||oe===void 0)&&oe.trackPageViews?"attribution":a.trackOn,!O&&(!((Z=L.attribution)===null||Z===void 0)&&Z.trackPageViews)&&(u.warn("@amplitude/plugin-page-view-tracking-browser overrides page view tracking behavior defined in @amplitude/analytics-browser. Resolve by disabling page view tracking in @amplitude/analytics-browser."),L.attribution.trackPageViews=!1),a.trackHistoryChanges&&c&&(c.addEventListener("popstate",E),d=c.history.pushState,c.history.pushState=new Proxy(c.history.pushState,{apply:function(de,xe,He){var Ie=Qr(He,3),ee=Ie[0],Jt=Ie[1],nt=Ie[2];de.apply(xe,[ee,Jt,nt]),y()}})),w()?(u.log("Tracking page view event"),Q=(U=i).track,[4,g()]):[3,2]):(P=T?"Options":"undefined",L.loggerProvider.error("Argument of type '".concat(P,"' is not assignable to parameter of type 'BrowserClient'.")),[2]);case 1:Q.apply(U,[fe.sent()]),fe.label=2;case 2:return[2]}})})},execute:function(L){return nr(void 0,void 0,void 0,function(){var O;return ir(this,function(P){switch(P.label){case 0:return a.trackOn==="attribution"&&Cb(L)?(u?.log("Enriching campaign event to page view event with campaign parameters"),[4,g()]):[3,2];case 1:O=P.sent(),L.event_type=O.event_type,L.event_properties=rr(rr({},L.event_properties),O.event_properties),P.label=2;case 2:return[2,L]}})})},teardown:function(){return nr(void 0,void 0,void 0,function(){return ir(this,function(L){return c&&(c.removeEventListener("popstate",E),d&&(c.history.pushState=d)),[2]})})}};return M.__trackHistoryPageView=y,M},Ab=function(){return nr(void 0,void 0,void 0,function(){var o;return ir(this,function(r){switch(r.label){case 0:return o=qg,[4,new Yr().parse()];case 1:return[2,o.apply(void 0,[r.sent()])]}})})},Cb=function(o){if(o.event_type==="$identify"&&o.user_properties){var r=o.user_properties,i=r[Be.SET]||{},a=r[Be.UNSET]||{},c=Os(Os([],Qr(Object.keys(i)),!1),Qr(Object.keys(a)),!1);return Object.keys(or).every(function(u){return c.includes(u)})}return!1},Lb=function(o,r,i){switch(o){case"pathOnly":return r.split("?")[0]!==i.split("?")[0];default:return r!==i}};var Fo=function(){return Fo=Object.assign||function(r){for(var i,a=1,c=arguments.length;a<c;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(r[u]=i[u])}return r},Fo.apply(this,arguments)};function Ps(o,r){var i={};for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&r.indexOf(a)<0&&(i[a]=o[a]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(o);c<a.length;c++)r.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(o,a[c])&&(i[a[c]]=o[a[c]]);return i}function Rs(o,r,i,a){function c(u){return u instanceof i?u:new i(function(d){d(u)})}return new(i||(i=Promise))(function(u,d){function b(g){try{m(a.next(g))}catch(w){d(w)}}function T(g){try{m(a.throw(g))}catch(w){d(w)}}function m(g){g.done?u(g.value):c(g.value).then(b,T)}m((a=a.apply(o,r||[])).next())})}function As(o,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},a,c,u,d;return d={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function b(m){return function(g){return T([m,g])}}function T(m){if(a)throw new TypeError("Generator is already executing.");for(;d&&(d=0,m[0]&&(i=0)),i;)try{if(a=1,c&&(u=m[0]&2?c.return:m[0]?c.throw||((u=c.return)&&u.call(c),0):c.next)&&!(u=u.call(c,m[1])).done)return u;switch(c=0,u&&(m=[m[0]&2,u.value]),m[0]){case 0:case 1:u=m;break;case 4:return i.label++,{value:m[1],done:!1};case 5:i.label++,c=m[1],m=[0];continue;case 7:m=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(m[0]===6||m[0]===2)){i=0;continue}if(m[0]===3&&(!u||m[1]>u[0]&&m[1]<u[3])){i.label=m[1];break}if(m[0]===6&&i.label<u[1]){i.label=u[1],u=m;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(m);break}u[2]&&i.ops.pop(),i.trys.pop();continue}m=r.call(o,i)}catch(g){m=[6,g],c=0}finally{a=u=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}function Zr(o,r){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var a=i.call(o),c,u=[],d;try{for(;(r===void 0||r-- >0)&&!(c=a.next()).done;)u.push(c.value)}catch(b){d={error:b}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(d)throw d.error}}return u}var Ng=function(o,r,i){return r===void 0&&(r=""),i===void 0&&(i=10),[er,r,o.substring(0,i)].filter(Boolean).join("_")},Ug=function(o){var r=o.split(".");return r.length<=2?o:r.slice(r.length-2,r.length).join(".")},Bg=function(o,r,i){var a,c=o.referrer,u=o.referring_domain,d=Ps(o,["referrer","referring_domain"]),b=r||{},T=b.referrer,m=b.referring_domain,g=Ps(b,["referrer","referring_domain"]);if(o.referring_domain&&(!((a=i.excludeReferrers)===null||a===void 0)&&a.includes(o.referring_domain)))return!1;var w=JSON.stringify(d)!==JSON.stringify(g),h=Ug(u||"")!==Ug(m||"");return!r||w||h},Fg=function(o,r){var i=Fo(Fo({},or),o),a=Object.entries(i).reduce(function(c,u){var d,b=Zr(u,2),T=b[0],m=b[1];return c.setOnce("initial_".concat(T),(d=m??r.initialEmptyValue)!==null&&d!==void 0?d:"EMPTY"),m?c.set(T,m):c.unset(T)},new Ht);return Gr(a)};var Cs=function(){for(var o=this,r,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var c,u={},d=Zr(i,2),b=d[0],T=d[1];b&&"init"in b?(c=b,T&&(u=T)):b&&(u=b);var m=(r=u.excludeReferrers)!==null&&r!==void 0?r:[];typeof location<"u"&&m.unshift(location.hostname),u=Fo(Fo({disabled:!1,initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1},u),{excludeReferrers:m});var g={name:"web-attribution",type:ve.BEFORE,setup:function(w,h){var y;return Rs(this,void 0,void 0,function(){var E,M,L,O,P,U,Q,oe;return As(this,function(Z){switch(Z.label){case 0:return c=c??h,c?u.disabled?(w.loggerProvider.log("@amplitude/plugin-web-attribution-browser is disabled. Attribution is not tracked."),[2]):(w.loggerProvider.log("Installing @amplitude/plugin-web-attribution-browser."),!h&&!(!((y=w.attribution)===null||y===void 0)&&y.disabled)&&(w.loggerProvider.warn("@amplitude/plugin-web-attribution-browser overrides web attribution behavior defined in @amplitude/analytics-browser. Resolve by disabling web attribution tracking in @amplitude/analytics-browser."),w.attribution={disabled:!0}),M=w.cookieStorage,L=Ng(w.apiKey,"MKTG"),[4,Promise.all([new Yr().parse(),M.get(L)])]):(E=b?"Options":"undefined",w.loggerProvider.error("Argument of type '".concat(E,"' is not assignable to parameter of type 'BrowserClient'.")),[2]);case 1:return O=Zr.apply(void 0,[Z.sent(),2]),P=O[0],U=O[1],Q=this.__pluginEnabledOverride,(Q??Bg(P,U,u))&&(u.resetSessionOnNewCampaign&&(c.setSessionId(Date.now()),w.loggerProvider.log("Created a new session for new campaign.")),w.loggerProvider.log("Tracking attribution."),oe=Fg(P,u),c.track(oe),M.set(L,P)),[2]}})})},execute:function(w){return Rs(o,void 0,void 0,function(){return As(this,function(h){return[2,w]})})}};return g.__pluginEnabledOverride=void 0,g};var mi=1e3,Ls=function(){function o(r){this.loggerProvider=r?.loggerProvider}return o.prototype.isEnabled=function(){return ue(this,void 0,void 0,function(){var r,i,a,c,u;return le(this,function(d){switch(d.label){case 0:if(!ot())return[2,!1];r=String(Date.now()),i=new o,a="AMP_TEST",d.label=1;case 1:return d.trys.push([1,4,5,7]),[4,i.set(a,r)];case 2:return d.sent(),[4,i.get(a)];case 3:return c=d.sent(),[2,c===r];case 4:return u=d.sent(),[2,!1];case 5:return[4,i.remove(a)];case 6:return d.sent(),[7];case 7:return[2]}})})},o.prototype.get=function(r){return ue(this,void 0,void 0,function(){var i,a;return le(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,this.getRaw(r)];case 1:return i=c.sent(),i?[2,JSON.parse(i)]:[2,void 0];case 2:return a=c.sent(),[2,void 0];case 3:return[2]}})})},o.prototype.getRaw=function(r){var i;return ue(this,void 0,void 0,function(){return le(this,function(a){return[2,((i=ot())===null||i===void 0?void 0:i.localStorage.getItem(r))||void 0]})})},o.prototype.set=function(r,i){var a,c;return ue(this,void 0,void 0,function(){var u,d,b;return le(this,function(T){u=Array.isArray(i)&&i.length>mi;try{d=JSON.stringify(u?i.slice(0,mi):i),(a=ot())===null||a===void 0||a.localStorage.setItem(r,d)}catch{}return u&&(b=i.length-mi,(c=this.loggerProvider)===null||c===void 0||c.error("Failed to save ".concat(b," events because the queue length exceeded ").concat(mi,"."))),[2]})})},o.prototype.remove=function(r){var i;return ue(this,void 0,void 0,function(){return le(this,function(a){try{(i=ot())===null||i===void 0||i.localStorage.removeItem(r)}catch{}return[2]})})},o.prototype.reset=function(){var r;return ue(this,void 0,void 0,function(){return le(this,function(i){try{(r=ot())===null||r===void 0||r.localStorage.clear()}catch{}return[2]})})},o}();var zg=function(o){No(r,o);function r(){var i=o!==null&&o.apply(this,arguments)||this;return i.state={done:4},i}return r.prototype.send=function(i,a){return ue(this,void 0,void 0,function(){var c=this;return le(this,function(u){return[2,new Promise(function(d,b){typeof XMLHttpRequest>"u"&&b(new Error("XHRTransport is not supported."));var T=new XMLHttpRequest;T.open("POST",i,!0),T.onreadystatechange=function(){if(T.readyState===c.state.done)try{var m=T.responseText,g=JSON.parse(m),w=c.buildResponse(g);d(w)}catch(h){b(h)}},T.setRequestHeader("Content-Type","application/json"),T.setRequestHeader("Accept","*/*"),T.send(JSON.stringify(a))})]})})},r}(tr);var jg=function(o){No(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.send=function(i,a){return ue(this,void 0,void 0,function(){var c=this;return le(this,function(u){return[2,new Promise(function(d,b){var T=ot();if(!T?.navigator.sendBeacon)throw new Error("SendBeaconTransport is not supported");try{var m=JSON.stringify(a),g=T.navigator.sendBeacon(i,JSON.stringify(a));return d(g?c.buildResponse({code:200,events_ingested:a.events.length,payload_size_bytes:m.length,server_upload_time:Date.now()}):c.buildResponse({code:500}))}catch(w){b(w)}})]})})},r}(tr);var Ir=function(){var o=new fi,r={deviceManufacturer:!0,deviceModel:!0,ipAddress:!0,language:!0,osName:!0,osVersion:!0,platform:!0};return{cookieExpiration:365,cookieSameSite:"Lax",cookieSecure:!1,cookieStorage:o,cookieUpgrade:!0,disableCookies:!1,domain:"",sessionTimeout:30*60*1e3,trackingOptions:r,transportProvider:new Is}},Hg=function(o){No(r,o);function r(i,a){var c=this,u,d,b,T,m,g,w,h,y,E=Ir();return c=o.call(this,he(he({flushIntervalMillis:1e3,flushMaxRetries:5,flushQueueSize:30,transportProvider:E.transportProvider},a),{apiKey:i}))||this,c._optOut=!1,c.cookieStorage=(u=a?.cookieStorage)!==null&&u!==void 0?u:E.cookieStorage,c.deviceId=a?.deviceId,c.lastEventId=a?.lastEventId,c.lastEventTime=a?.lastEventTime,c.optOut=!!a?.optOut,c.sessionId=a?.sessionId,c.userId=a?.userId,c.appVersion=a?.appVersion,c.attribution=a?.attribution,c.cookieExpiration=(d=a?.cookieExpiration)!==null&&d!==void 0?d:E.cookieExpiration,c.cookieSameSite=(b=a?.cookieSameSite)!==null&&b!==void 0?b:E.cookieSameSite,c.cookieSecure=(T=a?.cookieSecure)!==null&&T!==void 0?T:E.cookieSecure,c.cookieUpgrade=(m=a?.cookieUpgrade)!==null&&m!==void 0?m:E.cookieUpgrade,c.defaultTracking=a?.defaultTracking,c.disableCookies=(g=a?.disableCookies)!==null&&g!==void 0?g:E.disableCookies,c.defaultTracking=a?.defaultTracking,c.domain=(w=a?.domain)!==null&&w!==void 0?w:E.domain,c.partnerId=a?.partnerId,c.sessionTimeout=(h=a?.sessionTimeout)!==null&&h!==void 0?h:E.sessionTimeout,c.trackingOptions=(y=a?.trackingOptions)!==null&&y!==void 0?y:E.trackingOptions,c}return Object.defineProperty(r.prototype,"deviceId",{get:function(){return this._deviceId},set:function(i){this._deviceId!==i&&(this._deviceId=i,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"userId",{get:function(){return this._userId},set:function(i){this._userId!==i&&(this._userId=i,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sessionId",{get:function(){return this._sessionId},set:function(i){this._sessionId!==i&&(this._sessionId=i,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"optOut",{get:function(){return this._optOut},set:function(i){this._optOut!==i&&(this._optOut=i,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(i){this._lastEventTime!==i&&(this._lastEventTime=i,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(i){this._lastEventId!==i&&(this._lastEventId=i,this.updateStorage())},enumerable:!1,configurable:!0}),r.prototype.updateStorage=function(){var i,a={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId};(i=this.cookieStorage)===null||i===void 0||i.set($r(this.apiKey),a)},r}(es);var Vg=function(o,r){return ue(void 0,void 0,void 0,function(){var i,a,c,u,d,b,T,m,g,w,h,y,E,M,L;return le(this,function(O){switch(O.label){case 0:return i=Ir(),a=(M=r?.deviceId)!==null&&M!==void 0?M:Uo(),c=r?.lastEventId,u=r?.lastEventTime,d=r?.optOut,b=r?.sessionId,T=r?.userId,m=r?.cookieStorage,g=r?.domain,w=Hg.bind,h=[void 0,o],y=[he({},r)],E={cookieStorage:m,deviceId:a,domain:g,lastEventId:c,lastEventTime:u,optOut:d,sessionId:b},[4,Mb(r)];case 1:return[2,new(w.apply(Hg,h.concat([he.apply(void 0,y.concat([(E.storageProvider=O.sent(),E.trackingOptions=he(he({},i.trackingOptions),r?.trackingOptions),E.transportProvider=(L=r?.transportProvider)!==null&&L!==void 0?L:Ds(r?.transport),E.userId=T,E)]))])))]}})})},wi=function(o,r){return r===void 0&&(r=Ir()),ue(void 0,void 0,void 0,function(){var i,a,c;return le(this,function(u){switch(u.label){case 0:return i=he(he({},r),o),a=o?.cookieStorage,c=!a,c?[3,2]:[4,a.isEnabled()];case 1:c=!u.sent(),u.label=2;case 2:return c?[2,Db(i)]:[2,a]}})})},Db=function(o){return ue(void 0,void 0,void 0,function(){var r,i;return le(this,function(a){switch(a.label){case 0:return r=new Xr({domain:o.domain,expirationDays:o.cookieExpiration,sameSite:o.cookieSameSite,secure:o.cookieSecure}),i=o.disableCookies,i?[3,2]:[4,r.isEnabled()];case 1:i=!a.sent(),a.label=2;case 2:return i?(r=new Ls,[4,r.isEnabled()]):[3,4];case 3:a.sent()||(r=new fi),a.label=4;case 4:return[2,r]}})})},Mb=function(o){return ue(void 0,void 0,void 0,function(){var r,i,a,c,u,d,b,T,m;return le(this,function(g){switch(g.label){case 0:if(r=o&&Object.prototype.hasOwnProperty.call(o,"storageProvider"),i=o&&o.loggerProvider,!(!r||o.storageProvider))return[3,9];g.label=1;case 1:g.trys.push([1,7,8,9]),a=Sg([o?.storageProvider,new Ls({loggerProvider:i})]),c=a.next(),g.label=2;case 2:return c.done?[3,6]:(u=c.value,d=u,d?[4,u.isEnabled()]:[3,4]);case 3:d=g.sent(),g.label=4;case 4:if(d)return[2,u];g.label=5;case 5:return c=a.next(),[3,2];case 6:return[3,9];case 7:return b=g.sent(),T={error:b},[3,9];case 8:try{c&&!c.done&&(m=a.return)&&m.call(a)}finally{if(T)throw T.error}return[7];case 9:return[2,void 0]}})})},Ds=function(o){return o===Tr.XHR?new zg:o===Tr.SendBeacon?new jg:Ir().transportProvider},Wg=function(o){return ue(void 0,void 0,void 0,function(){var r,i,a,c,u,u,d,b,T,m;return le(this,function(g){switch(g.label){case 0:return[4,new Xr().isEnabled()];case 1:if(!g.sent()||!o&&typeof location>"u")return[2,""];for(r=o??location.hostname,i=r.split("."),a=[],c="AMP_TLDTEST",u=i.length-2;u>=0;--u)a.push(i.slice(u).join("."));u=0,g.label=2;case 2:return u<a.length?(d=a[u],b={domain:"."+d},T=new Xr(b),[4,T.set(c,1)]):[3,7];case 3:return g.sent(),[4,T.get(c)];case 4:return m=g.sent(),m?[4,T.remove(c)]:[3,6];case 5:return g.sent(),[2,"."+d];case 6:return u++,[3,2];case 7:return[2,""]}})})};var Ze="[Amplitude]",hi="".concat(Ze," Page Viewed"),Ms="".concat(Ze," Form Started"),Gg="".concat(Ze," Form Submitted"),Kg="".concat(Ze," File Downloaded"),qs="session_start",Us="session_end",Yg="".concat(Ze," File Extension"),$g="".concat(Ze," File Name"),Xg="".concat(Ze," Link ID"),Qg="".concat(Ze," Link Text"),Zg="".concat(Ze," Link URL"),vi="".concat(Ze," Form ID"),yi="".concat(Ze," Form Name"),bi="".concat(Ze," Form Destination");var Jg=function(o,r){return ue(void 0,void 0,void 0,function(){var i,a,c,u,d,b,T,m,g,w,h;return le(this,function(y){switch(y.label){case 0:return[4,wi(r)];case 1:return i=y.sent(),a=ys(o),[4,i.getRaw(a)];case 2:return c=y.sent(),c?((h=r.cookieUpgrade)!==null&&h!==void 0?h:Ir().cookieUpgrade)?[4,i.remove(a)]:[3,4]:[2,{optOut:!1}];case 3:y.sent(),y.label=4;case 4:return u=di(c.split("."),6),d=u[0],b=u[1],T=u[2],m=u[3],g=u[4],w=u[5],[2,{deviceId:d,userId:qb(b),sessionId:Ns(m),lastEventId:Ns(w),lastEventTime:Ns(g),optOut:!!T}]}})})},Ns=function(o){var r=parseInt(o,32);if(!isNaN(r))return r},qb=function(o){if(!(!atob||!escape||!o))try{return decodeURIComponent(escape(atob(o)))}catch{return}};var of=Xn(ef());var tf="1.13.0";var Ub="Web",Nb="$remote",rf=function(){function o(){this.name="context",this.type=ve.BEFORE,this.library="amplitude-ts/".concat(tf),typeof navigator<"u"&&(this.userAgent=navigator.userAgent),this.uaResult=new of.default(this.userAgent).getResult()}return o.prototype.setup=function(r){return this.config=r,Promise.resolve(void 0)},o.prototype.execute=function(r){var i,a;return ue(this,void 0,void 0,function(){var c,u,d,b,T,m,g,w;return le(this,function(h){return c=new Date().getTime(),u=this.uaResult.browser.name,d=this.uaResult.browser.version,b=this.uaResult.device.model||this.uaResult.os.name,T=this.uaResult.device.vendor,m=(i=this.config.lastEventId)!==null&&i!==void 0?i:-1,g=(a=r.event_id)!==null&&a!==void 0?a:m+1,this.config.lastEventId=g,r.time||(this.config.lastEventTime=c),w=he(he(he(he(he(he(he(he(he(he(he(he({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:c},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:Ub}),this.config.trackingOptions.osName&&{os_name:u}),this.config.trackingOptions.osVersion&&{os_version:d}),this.config.trackingOptions.deviceManufacturer&&{device_manufacturer:T}),this.config.trackingOptions.deviceModel&&{device_model:b}),this.config.trackingOptions.language&&{language:Ts()}),this.config.trackingOptions.ipAddress&&{ip:Nb}),{insert_id:Uo(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),r),{event_id:g,library:this.library,user_agent:this.userAgent}),[2,w]})})},o}();var Bb={page_domain:"".concat(Ze," Page Domain"),page_location:"".concat(Ze," Page Location"),page_path:"".concat(Ze," Page Path"),page_title:"".concat(Ze," Page Title"),page_url:"".concat(Ze," Page URL")},nf=function(){var o="@amplitude/plugin-default-page-view-event-enrichment-browser",r=ve.ENRICHMENT,i=function(){return ue(void 0,void 0,void 0,function(){return le(this,function(c){return[2,void 0]})})},a=function(c){return ue(void 0,void 0,void 0,function(){return le(this,function(u){return c.event_type===hi&&c.event_properties&&(c.event_properties=Object.entries(c.event_properties).reduce(function(d,b){var T=di(b,2),m=T[0],g=T[1],w=Bb[m];return w?d[w]=g:d[m]=g,d},{})),[2,c]})})};return{name:o,type:r,setup:i,execute:a}};var af=function(){var o,r=[],i=function(m,g,w){m.addEventListener(g,w),r.push({element:m,type:g,handler:w})},a=function(){r.forEach(function(m){var g=m.element,w=m.type,h=m.handler;g?.removeEventListener(w,h)}),r=[]},c="@amplitude/plugin-file-download-tracking-browser",u=ve.ENRICHMENT,d=function(m,g){return ue(void 0,void 0,void 0,function(){var w,h,y;return le(this,function(E){return g?typeof document>"u"?[2]:(w=function(M){var L;try{L=new URL(M.href,window.location.href)}catch{return}var O=h.exec(L.href),P=O?.[1];P&&i(M,"click",function(){var U;P&&g.track(Kg,(U={},U[Yg]=P,U[$g]=L.pathname,U[Xg]=M.id,U[Qg]=M.text,U[Zg]=M.href,U))})},h=/\\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)$/,y=Array.from(document.getElementsByTagName("a")),y.forEach(w),typeof MutationObserver<"u"&&(o=new MutationObserver(function(M){M.forEach(function(L){L.addedNodes.forEach(function(O){O.nodeName==="A"&&w(O),"querySelectorAll"in O&&typeof O.querySelectorAll=="function"&&Array.from(O.querySelectorAll("a")).map(w)})})}),o.observe(document.body,{subtree:!0,childList:!0})),[2]):(m.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked."),[2])})})},b=function(m){return ue(void 0,void 0,void 0,function(){return le(this,function(g){return[2,m]})})},T=function(){return ue(void 0,void 0,void 0,function(){return le(this,function(m){return o?.disconnect(),a(),[2]})})};return{name:c,type:u,setup:d,execute:b,teardown:T}};var sf=function(){var o,r=[],i=function(m,g,w){m.addEventListener(g,w),r.push({element:m,type:g,handler:w})},a=function(){r.forEach(function(m){var g=m.element,w=m.type,h=m.handler;g?.removeEventListener(w,h)}),r=[]},c="@amplitude/plugin-form-interaction-tracking-browser",u=ve.ENRICHMENT,d=function(m,g){return ue(void 0,void 0,void 0,function(){var w,h;return le(this,function(y){return g?typeof document>"u"?[2]:(w=function(E){var M=!1;i(E,"change",function(){var L;M||g.track(Ms,(L={},L[vi]=E.id,L[yi]=E.name,L[bi]=E.action,L)),M=!0}),i(E,"submit",function(){var L,O;M||g.track(Ms,(L={},L[vi]=E.id,L[yi]=E.name,L[bi]=E.action,L)),g.track(Gg,(O={},O[vi]=E.id,O[yi]=E.name,O[bi]=E.action,O)),M=!1})},h=Array.from(document.getElementsByTagName("form")),h.forEach(w),typeof MutationObserver<"u"&&(o=new MutationObserver(function(E){E.forEach(function(M){M.addedNodes.forEach(function(L){L.nodeName==="FORM"&&w(L),"querySelectorAll"in L&&typeof L.querySelectorAll=="function"&&Array.from(L.querySelectorAll("form")).map(w)})})}),o.observe(document.body,{subtree:!0,childList:!0})),[2]):(m.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked."),[2])})})},b=function(m){return ue(void 0,void 0,void 0,function(){return le(this,function(g){return[2,m]})})},T=function(){return ue(void 0,void 0,void 0,function(){return le(this,function(m){return o?.disconnect(),a(),[2]})})};return{name:c,type:u,setup:d,execute:b,teardown:T}};var Ei=function(o,r){for(var i=0;i<r.length;i++){var a=r[i],c=a.name,u=a.args,d=a.resolve,b=o&&o[c];if(typeof b=="function"){var T=b.apply(o,u);typeof d=="function"&&d(T?.promise)}}return o},xi=function(o){var r=o;return r&&r._q!==void 0};var cf=function(o){No(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}return r.prototype.init=function(i,a,c){return i===void 0&&(i=""),bt(this._init(he(he({},c),{userId:a,apiKey:i})))},r.prototype._init=function(i){var a,c,u,d,b,T,m,g,w,h,y,E,M,L,O,P,U,Q,oe,Z;return ue(this,void 0,void 0,function(){var fe,de,xe,He,Ie,ee,Jt,nt,ze,Je,Lt,st,Ve,dt,xt,Wt,je,pt,Gt=this;return le(this,function(ge){switch(ge.label){case 0:return this.initializing?[2]:(this.initializing=!0,fe=i,i.disableCookies?(de="",[3,5]):[3,1]);case 1:return(a=i.domain)!==null&&a!==void 0?(xe=a,[3,4]):[3,2];case 2:return[4,Wg()];case 3:xe=ge.sent(),ge.label=4;case 4:de=xe,ge.label=5;case 5:return fe.domain=de,[4,Jg(i.apiKey,i)];case 6:return He=ge.sent(),[4,wi(i)];case 7:return Ie=ge.sent(),[4,Ie.get($r(i.apiKey))];case 8:return ee=ge.sent(),Jt=Sr(),nt=(d=(u=(c=i.deviceId)!==null&&c!==void 0?c:Jt.deviceId)!==null&&u!==void 0?u:ee?.deviceId)!==null&&d!==void 0?d:He.deviceId,ze=(b=ee?.sessionId)!==null&&b!==void 0?b:He.sessionId,Je=(m=(T=i.optOut)!==null&&T!==void 0?T:ee?.optOut)!==null&&m!==void 0?m:He.optOut,Lt=(g=ee?.lastEventId)!==null&&g!==void 0?g:He.lastEventId,st=(w=ee?.lastEventTime)!==null&&w!==void 0?w:He.lastEventTime,Ve=(y=(h=i.userId)!==null&&h!==void 0?h:ee?.userId)!==null&&y!==void 0?y:He.userId,this.previousSessionDeviceId=(E=ee?.deviceId)!==null&&E!==void 0?E:He.deviceId,this.previousSessionUserId=(M=ee?.userId)!==null&&M!==void 0?M:He.userId,[4,Vg(i.apiKey,he(he({},i),{deviceId:nt,sessionId:ze,optOut:Je,lastEventId:Lt,lastEventTime:st,userId:Ve,cookieStorage:Ie}))];case 9:return dt=ge.sent(),[4,o.prototype._init.call(this,dt)];case 10:return ge.sent(),xt=!1,(!this.config.lastEventTime||!this.config.sessionId||this.config.lastEventTime&&Date.now()-this.config.lastEventTime>this.config.sessionTimeout)&&(this.setSessionId((O=(L=i.sessionId)!==null&&L!==void 0?L:this.config.sessionId)!==null&&O!==void 0?O:Date.now()),xt=!0),Wt=Eo(i.instanceName),Wt.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),[4,this.add(new os).promise];case 11:return ge.sent(),[4,this.add(new rf).promise];case 12:return ge.sent(),[4,this.add(new Ss).promise];case 13:return ge.sent(),bs(this.config.defaultTracking)?[4,this.add(af()).promise]:[3,15];case 14:ge.sent(),ge.label=15;case 15:return _s(this.config.defaultTracking)?[4,this.add(sf()).promise]:[3,17];case 16:ge.sent(),ge.label=17;case 17:return!((P=this.config.attribution)===null||P===void 0)&&P.disabled?[3,19]:(je=Cs({excludeReferrers:(U=this.config.attribution)===null||U===void 0?void 0:U.excludeReferrers,initialEmptyValue:(Q=this.config.attribution)===null||Q===void 0?void 0:Q.initialEmptyValue,resetSessionOnNewCampaign:(oe=this.config.attribution)===null||oe===void 0?void 0:oe.resetSessionOnNewCampaign}),je.__pluginEnabledOverride=xt||!((Z=this.config.attribution)===null||Z===void 0)&&Z.trackNewCampaigns?void 0:!1,[4,this.add(je).promise]);case 18:ge.sent(),ge.label=19;case 19:return pt=xs(this.config),pt.eventType=pt.eventType||hi,[4,this.add(ks(pt)).promise];case 20:return ge.sent(),[4,this.add(nf()).promise];case 21:return ge.sent(),this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 22:return ge.sent(),Wt.eventBridge.setEventReceiver(function(Tt){Gt.track(Tt.eventType,Tt.eventProperties)}),[2]}})})},r.prototype.getUserId=function(){var i;return(i=this.config)===null||i===void 0?void 0:i.userId},r.prototype.setUserId=function(i){if(!this.config){this.q.push(this.setUserId.bind(this,i));return}(i!==this.config.userId||i===void 0)&&(this.config.userId=i,ns(i,this.config.instanceName))},r.prototype.getDeviceId=function(){var i;return(i=this.config)===null||i===void 0?void 0:i.deviceId},r.prototype.setDeviceId=function(i){if(!this.config){this.q.push(this.setDeviceId.bind(this,i));return}this.config.deviceId=i,is(i,this.config.instanceName)},r.prototype.setOptOut=function(i){as(i,this.config.instanceName),o.prototype.setOptOut.call(this,i)},r.prototype.reset=function(){this.setDeviceId(Uo()),this.setUserId(void 0)},r.prototype.getSessionId=function(){var i;return(i=this.config)===null||i===void 0?void 0:i.sessionId},r.prototype.setSessionId=function(i){var a;if(!this.config){this.q.push(this.setSessionId.bind(this,i));return}if(i!==this.config.sessionId){var c=this.getSessionId(),u=this.config.lastEventTime,d=(a=this.config.lastEventId)!==null&&a!==void 0?a:-1;this.config.sessionId=i,this.config.lastEventTime=void 0,Es(this.config.defaultTracking)&&(c&&u&&this.track(Us,void 0,{device_id:this.previousSessionDeviceId,event_id:++d,session_id:c,time:u+1,user_id:this.previousSessionUserId}),this.config.lastEventTime=this.config.sessionId,this.track(qs,void 0,{event_id:++d,session_id:this.config.sessionId,time:this.config.lastEventTime})),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId}},r.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},r.prototype.setTransport=function(i){if(!this.config){this.q.push(this.setTransport.bind(this,i));return}this.config.transportProvider=Ds(i)},r.prototype.identify=function(i,a){if(xi(i)){var c=i._q;i._q=[],i=Ei(new Ht,c)}return a?.user_id&&this.setUserId(a.user_id),a?.device_id&&this.setDeviceId(a.device_id),o.prototype.identify.call(this,i,a)},r.prototype.groupIdentify=function(i,a,c,u){if(xi(c)){var d=c._q;c._q=[],c=Ei(new Ht,d)}return o.prototype.groupIdentify.call(this,i,a,c,u)},r.prototype.revenue=function(i,a){if(xi(i)){var c=i._q;i._q=[],i=Ei(new ci,c)}return o.prototype.revenue.call(this,i,a)},r.prototype.process=function(i){return ue(this,void 0,void 0,function(){var a,c,u;return le(this,function(d){return a=Date.now(),c=this.config.lastEventTime||Date.now(),u=a-c,i.event_type!==qs&&i.event_type!==Us&&(!i.session_id||i.session_id===this.getSessionId())&&u>this.config.sessionTimeout&&this.setSessionId(a),[2,o.prototype.process.call(this,i)]})})},r}(Ja);var Ti=function(){var o=new cf;return{init:Ce(o.init.bind(o),"init",Re(o),Ae(o,["config"])),add:Ce(o.add.bind(o),"add",Re(o),Ae(o,["config.apiKey","timeline.plugins"])),remove:Ce(o.remove.bind(o),"remove",Re(o),Ae(o,["config.apiKey","timeline.plugins"])),track:Ce(o.track.bind(o),"track",Re(o),Ae(o,["config.apiKey","timeline.queue.length"])),logEvent:Ce(o.logEvent.bind(o),"logEvent",Re(o),Ae(o,["config.apiKey","timeline.queue.length"])),identify:Ce(o.identify.bind(o),"identify",Re(o),Ae(o,["config.apiKey","timeline.queue.length"])),groupIdentify:Ce(o.groupIdentify.bind(o),"groupIdentify",Re(o),Ae(o,["config.apiKey","timeline.queue.length"])),setGroup:Ce(o.setGroup.bind(o),"setGroup",Re(o),Ae(o,["config.apiKey","timeline.queue.length"])),revenue:Ce(o.revenue.bind(o),"revenue",Re(o),Ae(o,["config.apiKey","timeline.queue.length"])),flush:Ce(o.flush.bind(o),"flush",Re(o),Ae(o,["config.apiKey","timeline.queue.length"])),getUserId:Ce(o.getUserId.bind(o),"getUserId",Re(o),Ae(o,["config","config.userId"])),setUserId:Ce(o.setUserId.bind(o),"setUserId",Re(o),Ae(o,["config","config.userId"])),getDeviceId:Ce(o.getDeviceId.bind(o),"getDeviceId",Re(o),Ae(o,["config","config.deviceId"])),setDeviceId:Ce(o.setDeviceId.bind(o),"setDeviceId",Re(o),Ae(o,["config","config.deviceId"])),reset:Ce(o.reset.bind(o),"reset",Re(o),Ae(o,["config","config.userId","config.deviceId"])),getSessionId:Ce(o.getSessionId.bind(o),"getSessionId",Re(o),Ae(o,["config"])),setSessionId:Ce(o.setSessionId.bind(o),"setSessionId",Re(o),Ae(o,["config"])),extendSession:Ce(o.extendSession.bind(o),"extendSession",Re(o),Ae(o,["config"])),setOptOut:Ce(o.setOptOut.bind(o),"setOptOut",Re(o),Ae(o,["config"])),setTransport:Ce(o.setTransport.bind(o),"setTransport",Re(o),Ae(o,["config"]))}},Fe=Ti();var yT=Fe.add,bT=Fe.extendSession,_T=Fe.flush,ET=Fe.getDeviceId,xT=Fe.getSessionId,TT=Fe.getUserId,ST=Fe.groupIdentify,IT=Fe.identify,OT=Fe.init,kT=Fe.logEvent,PT=Fe.remove,RT=Fe.reset,AT=Fe.revenue,CT=Fe.setDeviceId,LT=Fe.setGroup,DT=Fe.setOptOut,MT=Fe.setSessionId,qT=Fe.setTransport,UT=Fe.setUserId,NT=Fe.track;var rc={production:"2532be1b0436a18cb938b21fc7fa9faf",development:"505fe4ab68b1153d294164683402fccb"},zb=Object.assign({plan:{version:"13",branch:"main",source:"web",versionId:"d34b078f-b5b3-4362-b66a-9527b9cacff6"}},{ingestionMetadata:{sourceName:"browser-typescript-ampli",sourceVersion:"2.0.0"}});var Bs=class{constructor(){this.event_type="api key copied"}},Fs=class{constructor(r){this.event_properties=r,this.event_type="complete onboarding",this.event_properties=r}},zs=class{constructor(r){this.event_properties=r,this.event_type="environment opened",this.event_properties=r}},js=class{constructor(r){this.event_properties=r,this.event_type="error",this.event_properties=r}},Hs=class{constructor(r){this.event_properties=r,this.event_type="impression",this.event_properties=r}},Vs=class{constructor(r){this.event_properties=r,this.event_type="insert block",this.event_properties=r}},Ws=class{constructor(r){this.event_properties=r,this.event_type="insert custom component",this.event_properties=r}},Gs=class{constructor(r){this.event_properties=r,this.event_type="integration failed",this.event_properties=r}},Ks=class{constructor(r){this.event_properties=r,this.event_type="interaction",this.event_properties=r}},Ys=class{constructor(r){this.event_properties=r,this.event_type="model saved",this.event_properties=r}},$s=class{constructor(r){this.event_properties=r,this.event_type="page viewed",this.event_properties=r}},Xs=class{constructor(r){this.event_properties=r,this.event_type="preview error",this.event_properties=r}},Qs=class{constructor(r){this.event_properties=r,this.event_type="site integrated",this.event_properties=r}},Zs=class{constructor(r){this.event_properties=r,this.event_type="start web import",this.event_properties=r}},Js=class{constructor(r){this.event_properties=r,this.event_type="subscribe clicked",this.event_properties=r}},ec=class{constructor(r){this.event_properties=r,this.event_type="subscription options viewed",this.event_properties=r}},tc=class{constructor(r){this.event_properties=r,this.event_type="user invited",this.event_properties=r}},ar=()=>({promise:Promise.resolve()}),oc=class{constructor(){this.disabled=!1}get client(){return this.isInitializedAndEnabled(),this.amplitude}get isLoaded(){return this.amplitude!=null}isInitializedAndEnabled(){return this.amplitude?!this.disabled:(console.error("ERROR: Ampli is not yet initialized. Have you called ampli.load() on app start?"),!1)}load(r){var i;if(this.disabled=(i=r.disabled)!==null&&i!==void 0?i:!1,this.amplitude)return console.warn("WARNING: Ampli is already intialized. Ampli.load() should be called once at application startup."),ar();let a=null;if(r.client&&"apiKey"in r.client?a=r.client.apiKey:"environment"in r&&(a=rc[r.environment]),r.client&&"instance"in r.client)this.amplitude=r.client.instance;else if(a){this.amplitude=Ti();let c=r.client&&"configuration"in r.client?r.client.configuration:{};return this.amplitude.init(a,void 0,Object.assign(Object.assign({},zb),c))}else console.error("ERROR: ampli.load() requires 'environment', 'client.apiKey', or 'client.instance'");return ar()}identify(r,i,a){if(!this.isInitializedAndEnabled())return ar();r&&(a=Object.assign(Object.assign({},a),{user_id:r}));let c=new Ht,u=i;if(u!=null)for(let[d,b]of Object.entries(u))c.set(d,b);return this.amplitude.identify(c,a)}setGroup(r,i,a){return this.isInitializedAndEnabled()?this.amplitude.setGroup(r,i,a):ar()}groupIdentify(r,i,a,c){if(!this.isInitializedAndEnabled())return ar();let u=new Ht,d=a;if(d!=null)for(let[b,T]of Object.entries(d))u.set(b,T);return this.amplitude.groupIdentify(r,i,u,c)}flush(){return this.isInitializedAndEnabled()?this.amplitude.flush():ar()}track(r,i){return this.isInitializedAndEnabled()?this.amplitude.track(r,void 0,i):ar()}apiKeyCopied(r){return this.track(new Bs,r)}completeOnboarding(r,i){return this.track(new Fs(r),i)}environmentOpened(r,i){return this.track(new zs(r),i)}error(r,i){return this.track(new js(r),i)}impression(r,i){return this.track(new Hs(r),i)}insertBlock(r,i){return this.track(new Vs(r),i)}insertCustomComponent(r,i){return this.track(new Ws(r),i)}integrationFailed(r,i){return this.track(new Gs(r),i)}interaction(r,i){return this.track(new Ks(r),i)}modelSaved(r,i){return this.track(new Ys(r),i)}pageViewed(r,i){return this.track(new $s(r),i)}previewError(r,i){return this.track(new Xs(r),i)}siteIntegrated(r,i){return this.track(new Qs(r),i)}startWebImport(r,i){return this.track(new Zs(r),i)}subscribeClicked(r,i){return this.track(new Js(r),i)}subscriptionOptionsViewed(r,i){return this.track(new ec(r),i)}userInvited(r,i){return this.track(new tc(r),i)}},uf=new oc;var Oi=Xn(nc()),yf=Xn(lf());var pf=Xn(nc());function gf(o){o=o+"=";let i=decodeURIComponent(document.cookie).split(";");for(let a=0;a<i.length;a++){let c=i[a];for(;c.charAt(0)===" ";)c=c.substring(1);if(c.indexOf(o)===0)return c.substring(o.length,c.length)}return""}var ic={};mb(ic,{default:()=>Kb,email:()=>Wb,internal:()=>jb,search:()=>Vb,social:()=>Gb,unknown:()=>Hb});var jb={},Hb={Outbrain:{domains:["paid.outbrain.com"]},Google:{domains:["support.google.com","developers.google.com","maps.google.com","accounts.google.com","drive.google.com","sites.google.com","groups.google.com","groups.google.co.uk","news.google.co.uk"]},Taboola:{domains:["trc.taboola.com","api.taboola.com"]},"Yahoo!":{domains:["finance.yahoo.com","news.yahoo.com","eurosport.yahoo.com","sports.yahoo.com","astrology.yahoo.com","travel.yahoo.com","answers.yahoo.com","screen.yahoo.com","weather.yahoo.com","messenger.yahoo.com","games.yahoo.com","shopping.yahoo.net","movies.yahoo.com","cars.yahoo.com","lifestyle.yahoo.com","omg.yahoo.com","match.yahoo.net"]}},Vb={TalkTalk:{domains:["www.talktalk.co.uk"],parameters:["query"]},"1.cz":{domains:["1.cz"],parameters:["q"]},Softonic:{domains:["search.softonic.com"],parameters:["q"]},GAIS:{domains:["gais.cs.ccu.edu.tw"],parameters:["q"]},Freecause:{domains:["search.freecause.com"],parameters:["p"]},"360.cn":{domains:["so.360.cn","www.so.com"],parameters:["q"]},RPMFind:{domains:["rpmfind.net","fr2.rpmfind.net"],parameters:["query"]},Comcast:{domains:["serach.comcast.net"],parameters:["q"]},Voila:{domains:["search.ke.voila.fr","www.lemoteur.fr"],parameters:["rdata","kw"]},Nifty:{domains:["search.nifty.com"],parameters:["q"]},Atlas:{domains:["searchatlas.centrum.cz"],parameters:["q"]},"Lo.st":{domains:["lo.st"],parameters:["x_query"]},DasTelefonbuch:{domains:["www1.dastelefonbuch.de"],parameters:["kw"]},Fireball:{domains:["www.fireball.de"],parameters:["q"]},"1und1":{domains:["search.1und1.de"],parameters:["su"]},Virgilio:{domains:["ricerca.virgilio.it","ricercaimmagini.virgilio.it","ricercavideo.virgilio.it","ricercanews.virgilio.it","mobile.virgilio.it"],parameters:["qs"]},"Web.nl":{domains:["www.web.nl"],parameters:["zoekwoord"]},Plazoo:{domains:["www.plazoo.com"],parameters:["q"]},"Goyellow.de":{domains:["www.goyellow.de"],parameters:["MDN"]},AOL:{domains:["search.aol.com","search.aol.it","aolsearch.aol.com","aolsearch.com","www.aolrecherche.aol.fr","www.aolrecherches.aol.fr","www.aolimages.aol.fr","aim.search.aol.com","www.recherche.aol.fr","find.web.aol.com","recherche.aol.ca","aolsearch.aol.co.uk","search.aol.co.uk","aolrecherche.aol.fr","sucheaol.aol.de","suche.aol.de","suche.aolsvc.de","aolbusqueda.aol.com.mx","alicesuche.aol.de","alicesuchet.aol.de","suchet2.aol.de","search.hp.my.aol.com.au","search.hp.my.aol.de","search.hp.my.aol.it","search-intl.netscape.com"],parameters:["q","query"]},Acoon:{domains:["www.acoon.de"],parameters:["begriff"]},Free:{domains:["search.free.fr","search1-2.free.fr","search1-1.free.fr"],parameters:["q"]},"Apollo Latvia":{domains:["apollo.lv/portal/search/"],parameters:["q"]},HighBeam:{domains:["www.highbeam.com"],parameters:["q"]},"I-play":{domains:["start.iplay.com"],parameters:["q"]},FriendFeed:{domains:["friendfeed.com"],parameters:["q"]},Yasni:{domains:["www.yasni.de","www.yasni.com","www.yasni.co.uk","www.yasni.ch","www.yasni.at"],parameters:["query"]},Gigablast:{domains:["www.gigablast.com","dir.gigablast.com"],parameters:["q"]},arama:{domains:["arama.com"],parameters:["q"]},Fixsuche:{domains:["www.fixsuche.de"],parameters:["q"]},Apontador:{domains:["apontador.com.br","www.apontador.com.br"],parameters:["q"]},"Search.com":{domains:["www.search.com"],parameters:["q"]},Monstercrawler:{domains:["www.monstercrawler.com"],parameters:["qry"]},"Google Images":{domains:["google.ac/imgres","google.ad/imgres","google.ae/imgres","google.am/imgres","google.as/imgres","google.at/imgres","google.az/imgres","google.ba/imgres","google.be/imgres","google.bf/imgres","google.bg/imgres","google.bi/imgres","google.bj/imgres","google.bs/imgres","google.by/imgres","google.ca/imgres","google.cat/imgres","google.cc/imgres","google.cd/imgres","google.cf/imgres","google.cg/imgres","google.ch/imgres","google.ci/imgres","google.cl/imgres","google.cm/imgres","google.cn/imgres","google.co.bw/imgres","google.co.ck/imgres","google.co.cr/imgres","google.co.id/imgres","google.co.il/imgres","google.co.in/imgres","google.co.jp/imgres","google.co.ke/imgres","google.co.kr/imgres","google.co.ls/imgres","google.co.ma/imgres","google.co.mz/imgres","google.co.nz/imgres","google.co.th/imgres","google.co.tz/imgres","google.co.ug/imgres","google.co.uk/imgres","google.co.uz/imgres","google.co.ve/imgres","google.co.vi/imgres","google.co.za/imgres","google.co.zm/imgres","google.co.zw/imgres","google.com/imgres","google.com.af/imgres","google.com.ag/imgres","google.com.ai/imgres","google.com.ar/imgres","google.com.au/imgres","google.com.bd/imgres","google.com.bh/imgres","google.com.bn/imgres","google.com.bo/imgres","google.com.br/imgres","google.com.by/imgres","google.com.bz/imgres","google.com.co/imgres","google.com.cu/imgres","google.com.cy/imgres","google.com.do/imgres","google.com.ec/imgres","google.com.eg/imgres","google.com.et/imgres","google.com.fj/imgres","google.com.gh/imgres","google.com.gi/imgres","google.com.gt/imgres","google.com.hk/imgres","google.com.jm/imgres","google.com.kh/imgres","google.com.kw/imgres","google.com.lb/imgres","google.com.lc/imgres","google.com.ly/imgres","google.com.mt/imgres","google.com.mx/imgres","google.com.my/imgres","google.com.na/imgres","google.com.nf/imgres","google.com.ng/imgres","google.com.ni/imgres","google.com.np/imgres","google.com.om/imgres","google.com.pa/imgres","google.com.pe/imgres","google.com.ph/imgres","google.com.pk/imgres","google.com.pr/imgres","google.com.py/imgres","google.com.qa/imgres","google.com.sa/imgres","google.com.sb/imgres","google.com.sg/imgres","google.com.sl/imgres","google.com.sv/imgres","google.com.tj/imgres","google.com.tn/imgres","google.com.tr/imgres","google.com.tw/imgres","google.com.ua/imgres","google.com.uy/imgres","google.com.vc/imgres","google.com.vn/imgres","google.cv/imgres","google.cz/imgres","google.de/imgres","google.dj/imgres","google.dk/imgres","google.dm/imgres","google.dz/imgres","google.ee/imgres","google.es/imgres","google.fi/imgres","google.fm/imgres","google.fr/imgres","google.ga/imgres","google.gd/imgres","google.ge/imgres","google.gf/imgres","google.gg/imgres","google.gl/imgres","google.gm/imgres","google.gp/imgres","google.gr/imgres","google.gy/imgres","google.hn/imgres","google.hr/imgres","google.ht/imgres","google.hu/imgres","google.ie/imgres","google.im/imgres","google.io/imgres","google.iq/imgres","google.is/imgres","google.it/imgres","google.it.ao/imgres","google.je/imgres","google.jo/imgres","google.kg/imgres","google.ki/imgres","google.kz/imgres","google.la/imgres","google.li/imgres","google.lk/imgres","google.lt/imgres","google.lu/imgres","google.lv/imgres","google.md/imgres","google.me/imgres","google.mg/imgres","google.mk/imgres","google.ml/imgres","google.mn/imgres","google.ms/imgres","google.mu/imgres","google.mv/imgres","google.mw/imgres","google.ne/imgres","google.nl/imgres","google.no/imgres","google.nr/imgres","google.nu/imgres","google.pl/imgres","google.pn/imgres","google.ps/imgres","google.pt/imgres","google.ro/imgres","google.rs/imgres","google.ru/imgres","google.rw/imgres","google.sc/imgres","google.se/imgres","google.sh/imgres","google.si/imgres","google.sk/imgres","google.sm/imgres","google.sn/imgres","google.so/imgres","google.st/imgres","google.td/imgres","google.tg/imgres","google.tk/imgres","google.tl/imgres","google.tm/imgres","google.to/imgres","google.tt/imgres","google.us/imgres","google.vg/imgres","google.vu/imgres","images.google.ws","images.google.ac","images.google.ad","images.google.ae","images.google.am","images.google.as","images.google.at","images.google.az","images.google.ba","images.google.be","images.google.bf","images.google.bg","images.google.bi","images.google.bj","images.google.bs","images.google.by","images.google.ca","images.google.cat","images.google.cc","images.google.cd","images.google.cf","images.google.cg","images.google.ch","images.google.ci","images.google.cl","images.google.cm","images.google.cn","images.google.co.bw","images.google.co.ck","images.google.co.cr","images.google.co.id","images.google.co.il","images.google.co.in","images.google.co.jp","images.google.co.ke","images.google.co.kr","images.google.co.ls","images.google.co.ma","images.google.co.mz","images.google.co.nz","images.google.co.th","images.google.co.tz","images.google.co.ug","images.google.co.uk","images.google.co.uz","images.google.co.ve","images.google.co.vi","images.google.co.za","images.google.co.zm","images.google.co.zw","images.google.com","images.google.com.af","images.google.com.ag","images.google.com.ai","images.google.com.ar","images.google.com.au","images.google.com.bd","images.google.com.bh","images.google.com.bn","images.google.com.bo","images.google.com.br","images.google.com.by","images.google.com.bz","images.google.com.co","images.google.com.cu","images.google.com.cy","images.google.com.do","images.google.com.ec","images.google.com.eg","images.google.com.et","images.google.com.fj","images.google.com.gh","images.google.com.gi","images.google.com.gt","images.google.com.hk","images.google.com.jm","images.google.com.kh","images.google.com.kh","images.google.com.kw","images.google.com.lb","images.google.com.lc","images.google.com.ly","images.google.com.mt","images.google.com.mx","images.google.com.my","images.google.com.na","images.google.com.nf","images.google.com.ng","images.google.com.ni","images.google.com.np","images.google.com.om","images.google.com.pa","images.google.com.pe","images.google.com.ph","images.google.com.pk","images.google.com.pr","images.google.com.py","images.google.com.qa","images.google.com.sa","images.google.com.sb","images.google.com.sg","images.google.com.sl","images.google.com.sv","images.google.com.tj","images.google.com.tn","images.google.com.tr","images.google.com.tw","images.google.com.ua","images.google.com.uy","images.google.com.vc","images.google.com.vn","images.google.cv","images.google.cz","images.google.de","images.google.dj","images.google.dk","images.google.dm","images.google.dz","images.google.ee","images.google.es","images.google.fi","images.google.fm","images.google.fr","images.google.ga","images.google.gd","images.google.ge","images.google.gf","images.google.gg","images.google.gl","images.google.gm","images.google.gp","images.google.gr","images.google.gy","images.google.hn","images.google.hr","images.google.ht","images.google.hu","images.google.ie","images.google.im","images.google.io","images.google.iq","images.google.is","images.google.it","images.google.it.ao","images.google.je","images.google.jo","images.google.kg","images.google.ki","images.google.kz","images.google.la","images.google.li","images.google.lk","images.google.lt","images.google.lu","images.google.lv","images.google.md","images.google.me","images.google.mg","images.google.mk","images.google.ml","images.google.mn","images.google.ms","images.google.mu","images.google.mv","images.google.mw","images.google.ne","images.google.nl","images.google.no","images.google.nr","images.google.nu","images.google.pl","images.google.pn","images.google.ps","images.google.pt","images.google.ro","images.google.rs","images.google.ru","images.google.rw","images.google.sc","images.google.se","images.google.sh","images.google.si","images.google.sk","images.google.sm","images.google.sn","images.google.so","images.google.st","images.google.td","images.google.tg","images.google.tk","images.google.tl","images.google.tm","images.google.to","images.google.tt","images.google.us","images.google.vg","images.google.vu","images.google.ws"],parameters:["q"]},ABCs\\u00F8k:{domains:["abcsolk.no","verden.abcsok.no"],parameters:["q"]},"Google Product Search":{domains:["google.ac/products","google.ad/products","google.ae/products","google.am/products","google.as/products","google.at/products","google.az/products","google.ba/products","google.be/products","google.bf/products","google.bg/products","google.bi/products","google.bj/products","google.bs/products","google.by/products","google.ca/products","google.cat/products","google.cc/products","google.cd/products","google.cf/products","google.cg/products","google.ch/products","google.ci/products","google.cl/products","google.cm/products","google.cn/products","google.co.bw/products","google.co.ck/products","google.co.cr/products","google.co.id/products","google.co.il/products","google.co.in/products","google.co.jp/products","google.co.ke/products","google.co.kr/products","google.co.ls/products","google.co.ma/products","google.co.mz/products","google.co.nz/products","google.co.th/products","google.co.tz/products","google.co.ug/products","google.co.uk/products","google.co.uz/products","google.co.ve/products","google.co.vi/products","google.co.za/products","google.co.zm/products","google.co.zw/products","google.com/products","google.com.af/products","google.com.ag/products","google.com.ai/products","google.com.ar/products","google.com.au/products","google.com.bd/products","google.com.bh/products","google.com.bn/products","google.com.bo/products","google.com.br/products","google.com.by/products","google.com.bz/products","google.com.co/products","google.com.cu/products","google.com.cy/products","google.com.do/products","google.com.ec/products","google.com.eg/products","google.com.et/products","google.com.fj/products","google.com.gh/products","google.com.gi/products","google.com.gt/products","google.com.hk/products","google.com.jm/products","google.com.kh/products","google.com.kh/products","google.com.kw/products","google.com.lb/products","google.com.lc/products","google.com.ly/products","google.com.mt/products","google.com.mx/products","google.com.my/products","google.com.na/products","google.com.nf/products","google.com.ng/products","google.com.ni/products","google.com.np/products","google.com.om/products","google.com.pa/products","google.com.pe/products","google.com.ph/products","google.com.pk/products","google.com.pr/products","google.com.py/products","google.com.qa/products","google.com.sa/products","google.com.sb/products","google.com.sg/products","google.com.sl/products","google.com.sv/products","google.com.tj/products","google.com.tn/products","google.com.tr/products","google.com.tw/products","google.com.ua/products","google.com.uy/products","google.com.vc/products","google.com.vn/products","google.cv/products","google.cz/products","google.de/products","google.dj/products","google.dk/products","google.dm/products","google.dz/products","google.ee/products","google.es/products","google.fi/products","google.fm/products","google.fr/products","google.ga/products","google.gd/products","google.ge/products","google.gf/products","google.gg/products","google.gl/products","google.gm/products","google.gp/products","google.gr/products","google.gy/products","google.hn/products","google.hr/products","google.ht/products","google.hu/products","google.ie/products","google.im/products","google.io/products","google.iq/products","google.is/products","google.it/products","google.it.ao/products","google.je/products","google.jo/products","google.kg/products","google.ki/products","google.kz/products","google.la/products","google.li/products","google.lk/products","google.lt/products","google.lu/products","google.lv/products","google.md/products","google.me/products","google.mg/products","google.mk/products","google.ml/products","google.mn/products","google.ms/products","google.mu/products","google.mv/products","google.mw/products","google.ne/products","google.nl/products","google.no/products","google.nr/products","google.nu/products","google.pl/products","google.pn/products","google.ps/products","google.pt/products","google.ro/products","google.rs/products","google.ru/products","google.rw/products","google.sc/products","google.se/products","google.sh/products","google.si/products","google.sk/products","google.sm/products","google.sn/products","google.so/products","google.st/products","google.td/products","google.tg/products","google.tk/products","google.tl/products","google.tm/products","google.to/products","google.tt/products","google.us/products","google.vg/products","google.vu/products","google.ws/products","www.google.ac/products","www.google.ad/products","www.google.ae/products","www.google.am/products","www.google.as/products","www.google.at/products","www.google.az/products","www.google.ba/products","www.google.be/products","www.google.bf/products","www.google.bg/products","www.google.bi/products","www.google.bj/products","www.google.bs/products","www.google.by/products","www.google.ca/products","www.google.cat/products","www.google.cc/products","www.google.cd/products","www.google.cf/products","www.google.cg/products","www.google.ch/products","www.google.ci/products","www.google.cl/products","www.google.cm/products","www.google.cn/products","www.google.co.bw/products","www.google.co.ck/products","www.google.co.cr/products","www.google.co.id/products","www.google.co.il/products","www.google.co.in/products","www.google.co.jp/products","www.google.co.ke/products","www.google.co.kr/products","www.google.co.ls/products","www.google.co.ma/products","www.google.co.mz/products","www.google.co.nz/products","www.google.co.th/products","www.google.co.tz/products","www.google.co.ug/products","www.google.co.uk/products","www.google.co.uz/products","www.google.co.ve/products","www.google.co.vi/products","www.google.co.za/products","www.google.co.zm/products","www.google.co.zw/products","www.google.com/products","www.google.com.af/products","www.google.com.ag/products","www.google.com.ai/products","www.google.com.ar/products","www.google.com.au/products","www.google.com.bd/products","www.google.com.bh/products","www.google.com.bn/products","www.google.com.bo/products","www.google.com.br/products","www.google.com.by/products","www.google.com.bz/products","www.google.com.co/products","www.google.com.cu/products","www.google.com.cy/products","www.google.com.do/products","www.google.com.ec/products","www.google.com.eg/products","www.google.com.et/products","www.google.com.fj/products","www.google.com.gh/products","www.google.com.gi/products","www.google.com.gt/products","www.google.com.hk/products","www.google.com.jm/products","www.google.com.kh/products","www.google.com.kh/products","www.google.com.kw/products","www.google.com.lb/products","www.google.com.lc/products","www.google.com.ly/products","www.google.com.mt/products","www.google.com.mx/products","www.google.com.my/products","www.google.com.na/products","www.google.com.nf/products","www.google.com.ng/products","www.google.com.ni/products","www.google.com.np/products","www.google.com.om/products","www.google.com.pa/products","www.google.com.pe/products","www.google.com.ph/products","www.google.com.pk/products","www.google.com.pr/products","www.google.com.py/products","www.google.com.qa/products","www.google.com.sa/products","www.google.com.sb/products","www.google.com.sg/products","www.google.com.sl/products","www.google.com.sv/products","www.google.com.tj/products","www.google.com.tn/products","www.google.com.tr/products","www.google.com.tw/products","www.google.com.ua/products","www.google.com.uy/products","www.google.com.vc/products","www.google.com.vn/products","www.google.cv/products","www.google.cz/products","www.google.de/products","www.google.dj/products","www.google.dk/products","www.google.dm/products","www.google.dz/products","www.google.ee/products","www.google.es/products","www.google.fi/products","www.google.fm/products","www.google.fr/products","www.google.ga/products","www.google.gd/products","www.google.ge/products","www.google.gf/products","www.google.gg/products","www.google.gl/products","www.google.gm/products","www.google.gp/products","www.google.gr/products","www.google.gy/products","www.google.hn/products","www.google.hr/products","www.google.ht/products","www.google.hu/products","www.google.ie/products","www.google.im/products","www.google.io/products","www.google.iq/products","www.google.is/products","www.google.it/products","www.google.it.ao/products","www.google.je/products","www.google.jo/products","www.google.kg/products","www.google.ki/products","www.google.kz/products","www.google.la/products","www.google.li/products","www.google.lk/products","www.google.lt/products","www.google.lu/products","www.google.lv/products","www.google.md/products","www.google.me/products","www.google.mg/products","www.google.mk/products","www.google.ml/products","www.google.mn/products","www.google.ms/products","www.google.mu/products","www.google.mv/products","www.google.mw/products","www.google.ne/products","www.google.nl/products","www.google.no/products","www.google.nr/products","www.google.nu/products","www.google.pl/products","www.google.pn/products","www.google.ps/products","www.google.pt/products","www.google.ro/products","www.google.rs/products","www.google.ru/products","www.google.rw/products","www.google.sc/products","www.google.se/products","www.google.sh/products","www.google.si/products","www.google.sk/products","www.google.sm/products","www.google.sn/products","www.google.so/products","www.google.st/products","www.google.td/products","www.google.tg/products","www.google.tk/products","www.google.tl/products","www.google.tm/products","www.google.to/products","www.google.tt/products","www.google.us/products","www.google.vg/products","www.google.vu/products","www.google.ws/products"],parameters:["q"]},DasOertliche:{domains:["www.dasoertliche.de"],parameters:["kw"]},InfoSpace:{domains:["infospace.com","dogpile.com","www.dogpile.com","metacrawler.com","webfetch.com","webcrawler.com","search.kiwee.com","isearch.babylon.com","start.facemoods.com","search.magnetic.com","search.searchcompletion.com","clusty.com"],parameters:["q","s"]},Weborama:{domains:["www.weborama.com"],parameters:["QUERY"]},Bluewin:{domains:["search.bluewin.ch"],parameters:["searchTerm"]},Neti:{domains:["www.neti.ee"],parameters:["query"]},Winamp:{domains:["search.winamp.com"],parameters:["q"]},Nigma:{domains:["nigma.ru"],parameters:["s"]},"Yahoo! Images":{domains:["image.yahoo.cn","images.search.yahoo.com"],parameters:["p","q"]},Exalead:{domains:["www.exalead.fr","www.exalead.com"],parameters:["q"]},Teoma:{domains:["www.teoma.com"],parameters:["q"]},Needtofind:{domains:["ko.search.need2find.com"],parameters:["searchfor"]},Looksmart:{domains:["www.looksmart.com"],parameters:["key"]},"Wirtualna Polska":{domains:["szukaj.wp.pl"],parameters:["szukaj"]},Toolbarhome:{domains:["www.toolbarhome.com","vshare.toolbarhome.com"],parameters:["q"]},Searchalot:{domains:["searchalot.com"],parameters:["q"]},Yandex:{domains:["yandex.ru","yandex.ua","yandex.com","yandex.by","www.yandex.ru","www.yandex.ua","www.yandex.com","www.yandex.by"],parameters:["text"]},"canoe.ca":{domains:["web.canoe.ca"],parameters:["q"]},Compuserve:{domains:["websearch.cs.com"],parameters:["query"]},Blogdigger:{domains:["www.blogdigger.com"],parameters:["q"]},Startpagina:{domains:["startgoogle.startpagina.nl"],parameters:["q"]},eo:{domains:["eo.st"],parameters:["x_query"]},Zhongsou:{domains:["p.zhongsou.com"],parameters:["w"]},"La Toile Du Quebec Via Google":{domains:["www.toile.com","web.toile.com"],parameters:["q"]},Paperball:{domains:["www.paperball.de"],parameters:["q"]},"Jungle Spider":{domains:["www.jungle-spider.de"],parameters:["q"]},PeoplePC:{domains:["search.peoplepc.com"],parameters:["q"]},"MetaCrawler.de":{domains:["s1.metacrawler.de","s2.metacrawler.de","s3.metacrawler.de"],parameters:["qry"]},Orange:{domains:["busca.orange.es","search.orange.co.uk"],parameters:["q"]},"Gule Sider":{domains:["www.gulesider.no"],parameters:["q"]},Francite:{domains:["recherche.francite.com"],parameters:["name"]},"Ask Toolbar":{domains:["search.tb.ask.com"],parameters:["searchfor"]},"Trusted-Search":{domains:["www.trusted--search.com"],parameters:["w"]},goo:{domains:["search.goo.ne.jp","ocnsearch.goo.ne.jp"],parameters:["MT"]},"Fast Browser Search":{domains:["www.fastbrowsersearch.com"],parameters:["q"]},Blogpulse:{domains:["www.blogpulse.com"],parameters:["query"]},Volny:{domains:["web.volny.cz"],parameters:["search"]},Icerockeet:{domains:["blogs.icerocket.com"],parameters:["q"]},Terra:{domains:["buscador.terra.es","buscador.terra.cl","buscador.terra.com.br"],parameters:["query"]},Amazon:{domains:["amazon.com","www.amazon.com"],parameters:["keywords"]},Onet:{domains:["szukaj.onet.pl"],parameters:["qt"]},Digg:{domains:["digg.com"],parameters:["s"]},Abacho:{domains:["www.abacho.de","www.abacho.com","www.abacho.co.uk","www.se.abacho.com","www.tr.abacho.com","www.abacho.at","www.abacho.fr","www.abacho.es","www.abacho.ch","www.abacho.it"],parameters:["q"]},maailm:{domains:["www.maailm.com"],parameters:["tekst"]},Flix:{domains:["www.flix.de"],parameters:["keyword"]},Suchnase:{domains:["www.suchnase.de"],parameters:["q"]},Freenet:{domains:["suche.freenet.de"],parameters:["query","Keywords"]},"Poisk.ru":{domains:["www.plazoo.com"],parameters:["q"]},Sharelook:{domains:["www.sharelook.fr"],parameters:["keyword"]},Najdi:{domains:["www.najdi.si"],parameters:["q"]},Picsearch:{domains:["www.picsearch.com"],parameters:["q"]},"Mail.ru":{domains:["go.mail.ru"],parameters:["q"]},Alexa:{domains:["alexa.com","search.toolbars.alexa.com"],parameters:["q"]},Metager:{domains:["meta.rrzn.uni-hannover.de","www.metager.de"],parameters:["eingabe"]},Technorati:{domains:["technorati.com"],parameters:["q"]},Globososo:{domains:["searches.globososo.com","search.globososo.com"],parameters:["q"]},WWW:{domains:["search.www.ee"],parameters:["query"]},"Trouvez.com":{domains:["www.trouvez.com"],parameters:["query"]},IXquick:{domains:["ixquick.com","www.eu.ixquick.com","ixquick.de","www.ixquick.de","us.ixquick.com","s1.us.ixquick.com","s2.us.ixquick.com","s3.us.ixquick.com","s4.us.ixquick.com","s5.us.ixquick.com","eu.ixquick.com","s8-eu.ixquick.com","s1-eu.ixquick.de"],parameters:["query"]},"Naver Images":{domains:["image.search.naver.com","imagesearch.naver.com"],parameters:["query"]},Zapmeta:{domains:["www.zapmeta.com","www.zapmeta.nl","www.zapmeta.de","uk.zapmeta.com"],parameters:["q","query"]},Yippy:{domains:["search.yippy.com"],parameters:["q","query"]},Gomeo:{domains:["www.gomeo.com"],parameters:["Keywords"]},Walhello:{domains:["www.walhello.info","www.walhello.com","www.walhello.de","www.walhello.nl"],parameters:["key"]},Meta:{domains:["meta.ua"],parameters:["q"]},Skynet:{domains:["www.skynet.be"],parameters:["q"]},Searchy:{domains:["www.searchy.co.uk"],parameters:["q"]},Findwide:{domains:["search.findwide.com"],parameters:["k"]},WebSearch:{domains:["www.websearch.com"],parameters:["qkw","q"]},Rambler:{domains:["nova.rambler.ru"],parameters:["query","words"]},Latne:{domains:["www.latne.lv"],parameters:["q"]},MySearch:{domains:["www.mysearch.com","ms114.mysearch.com","ms146.mysearch.com","kf.mysearch.myway.com","ki.mysearch.myway.com","search.myway.com","search.mywebsearch.com"],parameters:["searchfor","searchFor"]},Cuil:{domains:["www.cuil.com"],parameters:["q"]},Tixuma:{domains:["www.tixuma.de"],parameters:["sc"]},Sapo:{domains:["pesquisa.sapo.pt"],parameters:["q"]},Gnadenmeer:{domains:["www.gnadenmeer.de"],parameters:["keyword"]},Arcor:{domains:["www.arcor.de"],parameters:["Keywords"]},Naver:{domains:["search.naver.com"],parameters:["query"]},Zoeken:{domains:["www.zoeken.nl"],parameters:["q"]},Startsiden:{domains:["www.startsiden.no"],parameters:["q"]},Yam:{domains:["search.yam.com"],parameters:["k"]},Eniro:{domains:["www.eniro.se"],parameters:["q","search_word"]},APOLL07:{domains:["apollo7.de"],parameters:["query"]},Biglobe:{domains:["cgi.search.biglobe.ne.jp"],parameters:["q"]},Mozbot:{domains:["www.mozbot.fr","www.mozbot.co.uk","www.mozbot.com"],parameters:["q"]},ICQ:{domains:["www.icq.com","search.icq.com"],parameters:["q"]},Baidu:{domains:["www.baidu.com","www1.baidu.com","zhidao.baidu.com","tieba.baidu.com","news.baidu.com","web.gougou.com"],parameters:["wd","word","kw","k"]},Conduit:{domains:["search.conduit.com"],parameters:["q"]},Vindex:{domains:["www.vindex.nl","search.vindex.nl"],parameters:["search_for"]},Babylon:{domains:["search.babylon.com","searchassist.babylon.com"],parameters:["q"]},TrovaRapido:{domains:["www.trovarapido.com"],parameters:["q"]},"Suchmaschine.com":{domains:["www.suchmaschine.com"],parameters:["suchstr"]},Lycos:{domains:["search.lycos.com","www.lycos.com","lycos.com"],parameters:["query"]},Vinden:{domains:["www.vinden.nl"],parameters:["q"]},Altavista:{domains:["www.altavista.com","search.altavista.com","listings.altavista.com","altavista.de","altavista.fr","be-nl.altavista.com","be-fr.altavista.com"],parameters:["q"]},dmoz:{domains:["dmoz.org","editors.dmoz.org"],parameters:["q"]},Ecosia:{domains:["ecosia.org"],parameters:["q"]},Maxwebsearch:{domains:["maxwebsearch.com"],parameters:["query"]},Euroseek:{domains:["www.euroseek.com"],parameters:["string"]},Bing:{domains:["bing.com","www.bing.com","msnbc.msn.com","dizionario.it.msn.com","cc.bingj.com","m.bing.com"],parameters:["q","Q"]},"X-recherche":{domains:["www.x-recherche.com"],parameters:["MOTS"]},"Yandex Images":{domains:["images.yandex.ru","images.yandex.ua","images.yandex.com"],parameters:["text"]},GMX:{domains:["suche.gmx.net"],parameters:["su"]},"Daemon search":{domains:["daemon-search.com","my.daemon-search.com"],parameters:["q"]},"Jungle Key":{domains:["junglekey.com","junglekey.fr"],parameters:["query"]},Firstfind:{domains:["www.firstsfind.com"],parameters:["qry"]},Crawler:{domains:["www.crawler.com"],parameters:["q"]},Holmes:{domains:["holmes.ge"],parameters:["q"]},Charter:{domains:["www.charter.net"],parameters:["q"]},Ilse:{domains:["www.ilse.nl"],parameters:["search_for"]},earthlink:{domains:["search.earthlink.net"],parameters:["q"]},Qualigo:{domains:["www.qualigo.at","www.qualigo.ch","www.qualigo.de","www.qualigo.nl"],parameters:["q"]},"El Mundo":{domains:["ariadna.elmundo.es"],parameters:["q"]},Metager2:{domains:["metager2.de"],parameters:["q"]},Forestle:{domains:["forestle.org","www.forestle.org","forestle.mobi"],parameters:["q"]},"Search.ch":{domains:["www.search.ch"],parameters:["q"]},Meinestadt:{domains:["www.meinestadt.de"],parameters:["words"]},Freshweather:{domains:["www.fresh-weather.com"],parameters:["q"]},AllTheWeb:{domains:["www.alltheweb.com"],parameters:["q"]},Snapdo:{domains:["search.snapdo.com"],parameters:["q"]},Zoek:{domains:["www3.zoek.nl"],parameters:["q"]},Daum:{domains:["search.daum.net"],parameters:["q"]},Marktplaats:{domains:["www.marktplaats.nl"],parameters:["query"]},"suche.info":{domains:["suche.info"],parameters:["q"]},"Google News":{domains:["news.google.ac","news.google.ad","news.google.ae","news.google.am","news.google.as","news.google.at","news.google.az","news.google.ba","news.google.be","news.google.bf","news.google.bg","news.google.bi","news.google.bj","news.google.bs","news.google.by","news.google.ca","news.google.cat","news.google.cc","news.google.cd","news.google.cf","news.google.cg","news.google.ch","news.google.ci","news.google.cl","news.google.cm","news.google.cn","news.google.co.bw","news.google.co.ck","news.google.co.cr","news.google.co.id","news.google.co.il","news.google.co.in","news.google.co.jp","news.google.co.ke","news.google.co.kr","news.google.co.ls","news.google.co.ma","news.google.co.mz","news.google.co.nz","news.google.co.th","news.google.co.tz","news.google.co.ug","news.google.co.uk","news.google.co.uz","news.google.co.ve","news.google.co.vi","news.google.co.za","news.google.co.zm","news.google.co.zw","news.google.com","news.google.com.af","news.google.com.ag","news.google.com.ai","news.google.com.ar","news.google.com.au","news.google.com.bd","news.google.com.bh","news.google.com.bn","news.google.com.bo","news.google.com.br","news.google.com.by","news.google.com.bz","news.google.com.co","news.google.com.cu","news.google.com.cy","news.google.com.do","news.google.com.ec","news.google.com.eg","news.google.com.et","news.google.com.fj","news.google.com.gh","news.google.com.gi","news.google.com.gt","news.google.com.hk","news.google.com.jm","news.google.com.kh","news.google.com.kh","news.google.com.kw","news.google.com.lb","news.google.com.lc","news.google.com.ly","news.google.com.mt","news.google.com.mx","news.google.com.my","news.google.com.na","news.google.com.nf","news.google.com.ng","news.google.com.ni","news.google.com.np","news.google.com.om","news.google.com.pa","news.google.com.pe","news.google.com.ph","news.google.com.pk","news.google.com.pr","news.google.com.py","news.google.com.qa","news.google.com.sa","news.google.com.sb","news.google.com.sg","news.google.com.sl","news.google.com.sv","news.google.com.tj","news.google.com.tn","news.google.com.tr","news.google.com.tw","news.google.com.ua","news.google.com.uy","news.google.com.vc","news.google.com.vn","news.google.cv","news.google.cz","news.google.de","news.google.dj","news.google.dk","news.google.dm","news.google.dz","news.google.ee","news.google.es","news.google.fi","news.google.fm","news.google.fr","news.google.ga","news.google.gd","news.google.ge","news.google.gf","news.google.gg","news.google.gl","news.google.gm","news.google.gp","news.google.gr","news.google.gy","news.google.hn","news.google.hr","news.google.ht","news.google.hu","news.google.ie","news.google.im","news.google.io","news.google.iq","news.google.is","news.google.it","news.google.it.ao","news.google.je","news.google.jo","news.google.kg","news.google.ki","news.google.kz","news.google.la","news.google.li","news.google.lk","news.google.lt","news.google.lu","news.google.lv","news.google.md","news.google.me","news.google.mg","news.google.mk","news.google.ml","news.google.mn","news.google.ms","news.google.mu","news.google.mv","news.google.mw","news.google.ne","news.google.nl","news.google.no","news.google.nr","news.google.nu","news.google.pl","news.google.pn","news.google.ps","news.google.pt","news.google.ro","news.google.rs","news.google.ru","news.google.rw","news.google.sc","news.google.se","news.google.sh","news.google.si","news.google.sk","news.google.sm","news.google.sn","news.google.so","news.google.st","news.google.td","news.google.tg","news.google.tk","news.google.tl","news.google.tm","news.google.to","news.google.tt","news.google.us","news.google.vg","news.google.vu","news.google.ws"],parameters:["q"]},Zoohoo:{domains:["zoohoo.cz"],parameters:["q"]},Seznam:{domains:["search.seznam.cz"],parameters:["q"]},"Online.no":{domains:["online.no"],parameters:["q"]},Eurip:{domains:["www.eurip.com"],parameters:["q"]},"all.by":{domains:["all.by"],parameters:["query"]},"Road Runner Search":{domains:["search.rr.com"],parameters:["q"]},"Opplysningen 1881":{domains:["www.1881.no"],parameters:["Query"]},YouGoo:{domains:["www.yougoo.fr"],parameters:["q"]},"Bing Images":{domains:["bing.com/images/search","www.bing.com/images/search"],parameters:["q","Q"]},Geona:{domains:["geona.net"],parameters:["q"]},Nate:{domains:["search.nate.com"],parameters:["q"]},DuckDuckGo:{domains:["duckduckgo.com"],parameters:["q"]},Hotbot:{domains:["www.hotbot.com"],parameters:["query"]},Kvasir:{domains:["www.kvasir.no"],parameters:["q"]},Austronaut:{domains:["www2.austronaut.at","www1.astronaut.at"],parameters:["q"]},Excite:{domains:["search.excite.it","search.excite.fr","search.excite.de","search.excite.co.uk","serach.excite.es","search.excite.nl","msxml.excite.com","www.excite.co.jp"],parameters:["q","search"]},qip:{domains:["search.qip.ru"],parameters:["query"]},"Certified-Toolbar":{domains:["search.certified-toolbar.com"],parameters:["q"]},"Yahoo!":{domains:["search.yahoo.com","yahoo.com","ar.search.yahoo.com","ar.yahoo.com","au.search.yahoo.com","au.yahoo.com","br.search.yahoo.com","br.yahoo.com","cade.searchde.yahoo.com","cade.yahoo.com","chinese.searchinese.yahoo.com","chinese.yahoo.com","cn.search.yahoo.com","cn.yahoo.com","de.search.yahoo.com","de.yahoo.com","dk.search.yahoo.com","dk.yahoo.com","es.search.yahoo.com","es.yahoo.com","espanol.searchpanol.yahoo.com","espanol.searchpanol.yahoo.com","espanol.yahoo.com","espanol.yahoo.com","fr.search.yahoo.com","fr.yahoo.com","ie.search.yahoo.com","ie.yahoo.com","it.search.yahoo.com","it.yahoo.com","kr.search.yahoo.com","kr.yahoo.com","mx.search.yahoo.com","mx.yahoo.com","no.search.yahoo.com","no.yahoo.com","nz.search.yahoo.com","nz.yahoo.com","one.cn.yahoo.com","one.searchn.yahoo.com","qc.search.yahoo.com","qc.search.yahoo.com","qc.search.yahoo.com","qc.yahoo.com","qc.yahoo.com","se.search.yahoo.com","se.search.yahoo.com","se.yahoo.com","search.searcharch.yahoo.com","search.yahoo.com","uk.search.yahoo.com","uk.yahoo.com","www.yahoo.co.jp","search.yahoo.co.jp","www.cercato.it","search.offerbox.com","ys.mirostart.com"],parameters:["p","q"]},"URL.ORGanizier":{domains:["www.url.org"],parameters:["q"]},Witch:{domains:["www.witch.de"],parameters:["search"]},"Mister Wong":{domains:["www.mister-wong.com","www.mister-wong.de"],parameters:["Keywords"]},Aport:{domains:["sm.aport.ru"],parameters:["r"]},"Web.de":{domains:["suche.web.de"],parameters:["su"]},Ask:{domains:["ask.com","www.ask.com","web.ask.com","int.ask.com","mws.ask.com","uk.ask.com","images.ask.com","ask.reference.com","www.askkids.com","iwon.ask.com","www.ask.co.uk","www.qbyrd.com","search-results.com","uk.search-results.com","www.search-results.com","int.search-results.com"],parameters:["q"]},Centrum:{domains:["serach.centrum.cz","morfeo.centrum.cz"],parameters:["q"]},Everyclick:{domains:["www.everyclick.com"],parameters:["keyword"]},"Google Video":{domains:["video.google.com"],parameters:["q"]},Delfi:{domains:["otsing.delfi.ee"],parameters:["q"]},blekko:{domains:["blekko.com"],parameters:["q"]},Jyxo:{domains:["jyxo.1188.cz"],parameters:["q"]},Kataweb:{domains:["www.kataweb.it"],parameters:["q"]},"uol.com.br":{domains:["busca.uol.com.br"],parameters:["q"]},Arianna:{domains:["arianna.libero.it","www.arianna.com"],parameters:["query"]},Mamma:{domains:["www.mamma.com","mamma75.mamma.com"],parameters:["query"]},Yatedo:{domains:["www.yatedo.com","www.yatedo.fr"],parameters:["q"]},Twingly:{domains:["www.twingly.com"],parameters:["q"]},"Delfi latvia":{domains:["smart.delfi.lv"],parameters:["q"]},PriceRunner:{domains:["www.pricerunner.co.uk"],parameters:["q"]},Rakuten:{domains:["websearch.rakuten.co.jp"],parameters:["qt"]},Google:{domains:["www.google.com","www.google.ac","www.google.ad","www.google.com.af","www.google.com.ag","www.google.com.ai","www.google.am","www.google.it.ao","www.google.com.ar","www.google.as","www.google.at","www.google.com.au","www.google.az","www.google.ba","www.google.com.bd","www.google.be","www.google.bf","www.google.bg","www.google.com.bh","www.google.bi","www.google.bj","www.google.com.bn","www.google.com.bo","www.google.com.br","www.google.bs","www.google.co.bw","www.google.com.by","www.google.by","www.google.com.bz","www.google.ca","www.google.com.kh","www.google.cc","www.google.cd","www.google.cf","www.google.cat","www.google.cg","www.google.ch","www.google.ci","www.google.co.ck","www.google.cl","www.google.cm","www.google.cn","www.google.com.co","www.google.co.cr","www.google.com.cu","www.google.cv","www.google.com.cy","www.google.cz","www.google.de","www.google.dj","www.google.dk","www.google.dm","www.google.com.do","www.google.dz","www.google.com.ec","www.google.ee","www.google.com.eg","www.google.es","www.google.com.et","www.google.fi","www.google.com.fj","www.google.fm","www.google.fr","www.google.ga","www.google.gd","www.google.ge","www.google.gf","www.google.gg","www.google.com.gh","www.google.com.gi","www.google.gl","www.google.gm","www.google.gp","www.google.gr","www.google.com.gt","www.google.gy","www.google.com.hk","www.google.hn","www.google.hr","www.google.ht","www.google.hu","www.google.co.id","www.google.iq","www.google.ie","www.google.co.il","www.google.im","www.google.co.in","www.google.io","www.google.is","www.google.it","www.google.je","www.google.com.jm","www.google.jo","www.google.co.jp","www.google.co.ke","www.google.com.kh","www.google.ki","www.google.kg","www.google.co.kr","www.google.com.kw","www.google.kz","www.google.la","www.google.com.lb","www.google.com.lc","www.google.li","www.google.lk","www.google.co.ls","www.google.lt","www.google.lu","www.google.lv","www.google.com.ly","www.google.co.ma","www.google.md","www.google.me","www.google.mg","www.google.mk","www.google.ml","www.google.mn","www.google.ms","www.google.com.mt","www.google.mu","www.google.mv","www.google.mw","www.google.com.mx","www.google.com.my","www.google.co.mz","www.google.com.na","www.google.ne","www.google.com.nf","www.google.com.ng","www.google.com.ni","www.google.nl","www.google.no","www.google.com.np","www.google.nr","www.google.nu","www.google.co.nz","www.google.com.om","www.google.com.pa","www.google.com.pe","www.google.com.ph","www.google.com.pk","www.google.pl","www.google.pn","www.google.com.pr","www.google.ps","www.google.pt","www.google.com.py","www.google.com.qa","www.google.ro","www.google.rs","www.google.ru","www.google.rw","www.google.com.sa","www.google.com.sb","www.google.sc","www.google.se","www.google.com.sg","www.google.sh","www.google.si","www.google.sk","www.google.com.sl","www.google.sn","www.google.sm","www.google.so","www.google.st","www.google.com.sv","www.google.td","www.google.tg","www.google.co.th","www.google.com.tj","www.google.tk","www.google.tl","www.google.tm","www.google.to","www.google.com.tn","www.google.com.tr","www.google.tt","www.google.com.tw","www.google.co.tz","www.google.com.ua","www.google.co.ug","www.google.ae","www.google.co.uk","www.google.us","www.google.com.uy","www.google.co.uz","www.google.com.vc","www.google.co.ve","www.google.vg","www.google.co.vi","www.google.com.vn","www.google.vu","www.google.ws","www.google.co.za","www.google.co.zm","www.google.co.zw","google.com","google.ac","google.ad","google.com.af","google.com.ag","google.com.ai","google.am","google.it.ao","google.com.ar","google.as","google.at","google.com.au","google.az","google.ba","google.com.bd","google.be","google.bf","google.bg","google.com.bh","google.bi","google.bj","google.com.bn","google.com.bo","google.com.br","google.bs","google.co.bw","google.com.by","google.by","google.com.bz","google.ca","google.com.kh","google.cc","google.cd","google.cf","google.cat","google.cg","google.ch","google.ci","google.co.ck","google.cl","google.cm","google.cn","google.com.co","google.co.cr","google.com.cu","google.cv","google.com.cy","google.cz","google.de","google.dj","google.dk","google.dm","google.com.do","google.dz","google.com.ec","google.ee","google.com.eg","google.es","google.com.et","google.fi","google.com.fj","google.fm","google.fr","google.ga","google.gd","google.ge","google.gf","google.gg","google.com.gh","google.com.gi","google.gl","google.gm","google.gp","google.gr","google.com.gt","google.gy","google.com.hk","google.hn","google.hr","google.ht","google.hu","google.co.id","google.iq","google.ie","google.co.il","google.im","google.co.in","google.io","google.is","google.it","google.je","google.com.jm","google.jo","google.co.jp","google.co.ke","google.com.kh","google.ki","google.kg","google.co.kr","google.com.kw","google.kz","google.la","google.com.lb","google.com.lc","google.li","google.lk","google.co.ls","google.lt","google.lu","google.lv","google.com.ly","google.co.ma","google.md","google.me","google.mg","google.mk","google.ml","google.mn","google.ms","google.com.mt","google.mu","google.mv","google.mw","google.com.mx","google.com.my","google.co.mz","google.com.na","google.ne","google.com.nf","google.com.ng","google.com.ni","google.nl","google.no","google.com.np","google.nr","google.nu","google.co.nz","google.com.om","google.com.pa","google.com.pe","google.com.ph","google.com.pk","google.pl","google.pn","google.com.pr","google.ps","google.pt","google.com.py","google.com.qa","google.ro","google.rs","google.ru","google.rw","google.com.sa","google.com.sb","google.sc","google.se","google.com.sg","google.sh","google.si","google.sk","google.com.sl","google.sn","google.sm","google.so","google.st","google.com.sv","google.td","google.tg","google.co.th","google.com.tj","google.tk","google.tl","google.tm","google.to","google.com.tn","google.com.tr","google.tt","google.com.tw","google.co.tz","google.com.ua","google.co.ug","google.ae","google.co.uk","google.us","google.com.uy","google.co.uz","google.com.vc","google.co.ve","google.vg","google.co.vi","google.com.vn","google.vu","google.ws","google.co.za","google.co.zm","google.co.zw","search.avg.com","isearch.avg.com","www.cnn.com","darkoogle.com","search.darkoogle.com","search.foxtab.com","www.gooofullsearch.com","search.hiyo.com","search.incredimail.com","search1.incredimail.com","search2.incredimail.com","search3.incredimail.com","search4.incredimail.com","search.incredibar.com","search.sweetim.com","www.fastweb.it","search.juno.com","find.tdc.dk","searchresults.verizon.com","search.walla.co.il","search.alot.com","www.googleearth.de","www.googleearth.fr","webcache.googleusercontent.com","encrypted.google.com","googlesyndicatedsearch.com"],parameters:["q","query","Keywords"]},"Hooseek.com":{domains:["www.hooseek.com"],parameters:["recherche"]},Dalesearch:{domains:["www.dalesearch.com"],parameters:["q"]},"Alice Adsl":{domains:["rechercher.aliceadsl.fr"],parameters:["q"]},"T-Online":{domains:["suche.t-online.de","brisbane.t-online.de","navigationshilfe.t-online.de"],parameters:["q"]},"soso.com":{domains:["www.soso.com"],parameters:["w"]},Sogou:{domains:["www.sougou.com"],parameters:["query"]},"Hit-Parade":{domains:["req.-hit-parade.com","class.hit-parade.com","www.hit-parade.com"],parameters:["p7"]},SearchCanvas:{domains:["www.searchcanvas.com"],parameters:["q"]},Interia:{domains:["www.google.interia.pl"],parameters:["q"]},Genieo:{domains:["search.genieo.com"],parameters:["q"]},Tiscali:{domains:["search.tiscali.it","search-dyn.tiscali.it","hledani.tiscali.cz"],parameters:["q","key"]},Clix:{domains:["pesquisa.clix.pt"],parameters:["question"]}},Wb={Bigpond:{domains:["webmail.bigpond.com","webmail2.bigpond.com"]},"Naver Mail":{domains:["mail.naver.com"]},"Optus Zoo":{domains:["webmail.optuszoo.com.au"]},"Seznam Mail":{domains:["email.seznam.cz"]},"126 Mail":{domains:["mail.126.com"]},"Outlook.com":{domains:["mail.live.com"]},"AOL Mail":{domains:["mail.aol.com"]},"Daum Mail":{domains:["mail2.daum.net"]},"Yahoo! Mail":{domains:["mail.yahoo.net","mail.yahoo.com","mail.yahoo.co.uk","mail.yahoo.co.jp"]},"163 Mail":{domains:["mail.163.com"]},"Orange Webmail":{domains:["orange.fr/webmail"]},"QQ Mail":{domains:["mail.qq.com"]},"Mynet Mail":{domains:["mail.mynet.com"]},Gmail:{domains:["mail.google.com"]}},Gb={hi5:{domains:["hi5.com"]},Friendster:{domains:["friendster.com"]},Weibo:{domains:["weibo.com","t.cn"]},Xanga:{domains:["xanga.com"]},Myspace:{domains:["myspace.com"]},Buzznet:{domains:["wayn.com"]},MyLife:{domains:["mylife.ru"]},Flickr:{domains:["flickr.com"]},"Sonico.com":{domains:["sonico.com"]},Odnoklassniki:{domains:["odnoklassniki.ru"]},GitHub:{domains:["github.com"]},Classmates:{domains:["classmates.com"]},"Friends Reunited":{domains:["friendsreunited.com"]},Renren:{domains:["renren.com"]},Quora:{domains:["quora.com"]},"Gaia Online":{domains:["gaiaonline.com"]},Netlog:{domains:["netlog.com"]},Orkut:{domains:["orkut.com"]},MyHeritage:{domains:["myheritage.com"]},Multiply:{domains:["multiply.com"]},myYearbook:{domains:["myyearbook.com"]},WeeWorld:{domains:["weeworld.com"]},Vimeo:{domains:["vimeo.com"]},"Eksi Sozluk":{domains:["Sozluk.com","sourtimes.org"]},Geni:{domains:["geni.com"]},"Uludag Sozluk":{domains:["uludagsozluk.com","ulusozluk.com"]},SourceForge:{domains:["sourceforge.net"]},Plaxo:{domains:["plaxo.com"]},"Taringa!":{domains:["taringa.net"]},Tagged:{domains:["login.tagged.com"]},XING:{domains:["xing.com"]},Instagram:{domains:["instagram.com"]},Vkontakte:{domains:["vk.com","vkontakte.ru"]},Twitter:{domains:["twitter.com","t.co"]},"vKruguDruzei.ru":{domains:["vkrugudruzei.ru"]},Donanimhaber:{domains:["donanimhaber.com"]},WAYN:{domains:["wayn.com"]},Tuenti:{domains:["tuenti.com"]},"Mail.ru":{domains:["my.mail.ru"]},Badoo:{domains:["badoo.com"]},Instela:{domains:["instela.com"]},Habbo:{domains:["habbo.com"]},Pinterest:{domains:["pinterest.com"]},LinkedIn:{domains:["linkedin.com","lnkd.in"]},Foursquare:{domains:["foursquare.com"]},Flixster:{domains:["flixster.com"]},"Windows Live Spaces":{domains:["login.live.com"]},BlackPlanet:{domains:["blackplanet.com"]},Cyworld:{domains:["global.cyworld.com"]},Pocket:{domains:["itusozluk.com"],"ITU Sozluk":null},Skyrock:{domains:["skyrock.com"]},Facebook:{domains:["facebook.com","fb.me","m.facebook.com","l.facebook.com","lm.facebook.com"]},Disqus:{domains:["redirect.disqus.com","disq.us","disqus.com"]},StudiVZ:{domains:["studivz.net"]},Fotolog:{domains:["fotolog.com"]},"Google+":{domains:["url.google.com","plus.google.com"]},"Nasza-klasa.pl":{domains:["nk.pl"]},Qzone:{domains:["qzone.qq.com"]},Douban:{domains:["douban.com"]},Bebo:{domains:["bebo.com"]},Youtube:{domains:["youtube.com","youtu.be"]},Reddit:{domains:["reddit.com"]},"Identi.ca":{domains:["identi.ca"]},StackOverflow:{domains:["stackoverflow.com"]},Mixi:{domains:["mixi.jp"]},StumbleUpon:{domains:["stumbleupon.com"]},"Inci Sozluk":{domains:["inci.sozlukspot.com","incisozluk.com","incisozluk.cc"]},Viadeo:{domains:["viadeo.com"]},"Last.fm":{domains:["lastfm.ru"]},LiveJournal:{domains:["livejournal.ru"]},Tumblr:{domains:["tumblr.com"]},"Hacker News":{domains:["news.ycombinator.com"]},"Hocam.com":{domains:["hocam.com"]},Delicious:{domains:["delicious.com"]},Hyves:{domains:["hyves.nl"]},"Paper.li":{domains:["paper.li"]},"MoiKrug.ru":{domains:["moikrug.ru"]}},Kb={internal:jb,unknown:Hb,search:Vb,email:Wb,social:Gb};var Yb=ic||{};function ff(o){return Object.entries(o).filter(([r])=>o.hasOwnProperty(r))}var df=function(){let o={};return ff(Yb).forEach(([r,i])=>{i&&ff(i).forEach(([a,c])=>{c?.domains&&c.domains.forEach(u=>{var d;o[u]={name:a,medium:r,params:(d=c.parameters)===null||d===void 0?void 0:d.map(b=>b.toLowerCase())}})})}),o}();function sc(o,r=""){var i;let a={known:!1,referrer:void 0,medium:"unknown",searchParameter:void 0,searchTerm:void 0,uri:new URL(o)};if(!["http:","https:"].includes(a.uri.protocol))return a;try{if(new URL(r).hostname===a.uri.hostname)return a.medium="internal",a}catch{}let c=ac(a.uri.hostname,a.uri.pathname)||ac(a.uri.hostname,void 0);return c?(a.referrer=c.name,a.medium=c.medium,c.medium==="search"&&!((i=c.params)===null||i===void 0)&&i.length&&a.uri.searchParams.forEach((u,d)=>{var b;!((b=c.params)===null||b===void 0)&&b.includes(d.toLowerCase())&&(a.searchParameter=d,a.searchTerm=u)}),a):(a.medium="unknown",a)}function ac(o,r){let i=df[o+(r||"")];if(!i&&r){let a=r.split("/");a.length>1&&(i=df[o+"/"+a[1]])}if(!i){let a=o.indexOf(".");return a===-1?void 0:ac(o.slice(a+1),r)}return i}function mf(){let o=(0,pf.fromPairs)(["referrer","initial_referrer","visitor","utm_source","utm_medium","utm_campaign"].map(r=>[r,gf("b_"+r)]).map(([r,i])=>[r,i||void 0]));return Object.assign(Object.assign({},o),{attribution:o.referrer?sc(o.referrer):void 0,initial_attribution:o.initial_referrer?sc(o.initial_referrer):void 0})}function cc(o){return JSON.parse(JSON.stringify(o,(r,i)=>i===1/0?"Infinity":i),(r,i)=>i==="Infinity"?1/0:i)}var Ii,$b=new Uint8Array(16);function uc(){if(!Ii&&(Ii=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ii))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ii($b)}var rt=[];for(let o=0;o<256;++o)rt.push((o+256).toString(16).slice(1));function wf(o,r=0){return rt[o[r+0]]+rt[o[r+1]]+rt[o[r+2]]+rt[o[r+3]]+"-"+rt[o[r+4]]+rt[o[r+5]]+"-"+rt[o[r+6]]+rt[o[r+7]]+"-"+rt[o[r+8]]+rt[o[r+9]]+"-"+rt[o[r+10]]+rt[o[r+11]]+rt[o[r+12]]+rt[o[r+13]]+rt[o[r+14]]+rt[o[r+15]]}var Xb=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),lc={randomUUID:Xb};function Qb(o,r,i){if(lc.randomUUID&&!r&&!o)return lc.randomUUID();o=o||{};let a=o.random||(o.rng||uc)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,r){i=i||0;for(let c=0;c<16;++c)r[i+c]=a[c];return r}return wf(a)}var gc=Qb;function hf(){return gc().replace(/-/g,"")}function vf(){let o=hf();try{return typeof sessionStorage<"u"&&(o=sessionStorage.getItem("builder.sessionId")||o,sessionStorage.setItem("builder.sessionId",o)),o}catch{return o}}var Zb={},Pr=new yf.UAParser(navigator.userAgent);var on=class{constructor(r){return this.name="default-data",this.type=ve.ENRICHMENT,this.options={},this.options=r,this}async setup(r){}async execute(r){return r.event_properties=this.setDataDefaults(r.event_properties),r}setDataDefaults(r){var i,a;let c=mf(),u=r;return cc((0,Oi.omit)(u,"roles","nonInteraction","line","isDev","from","filename","error","column")),u=(0,Oi.defaults)(u,{app:"app",host:location.hostname,url:location.href,sessionId:vf(),userId:this.options.userId,userEmail:this.options.userEmail,organizationId:this.options.organizationId,rootOrganizationId:this.options.rootOrganizationId,organizationType:this.options.organizationType,userLoggedIn:this.options.userLoggedIn,accountType:this.options.accountType,parentFrameUrl:window.top!==window&&document.referrer,timestamp:Date.now(),date:new Date().toUTCString(),user:Zb,sessionUrl:this.options.fullStorySessionUrl,utmMedium:c.utm_medium,utmCampaign:c.utm_campaign,utmSource:c.utm_source,referrer:c.referrer,initialReferrer:c.initial_referrer,attributionBucket:(i=c.attribution)===null||i===void 0?void 0:i.medium,initialAttributionBucket:(a=c.initial_attribution)===null||a===void 0?void 0:a.medium,visitorId:c.visitor,contentId:this.options.contentId,model:this.options.model,modelName:this.options.modelName,userAgent:navigator.userAgent,browser:Pr.getBrowser().name,browserVersion:Pr.getBrowser().version,os:Pr.getOS().name,osVersion:Pr.getOS().version,deviceType:Pr.getDevice().type,deviceVendor:Pr.getDevice().vendor}),u}};function fc(o,r,i={}){for(let a in o){let c=o[a],u=r?r+"."+a:a;c&&typeof c=="object"?fc(c,u,i):i[u]=c}return i}var rn=class{constructor(r={}){return this.name="internal-tracking",this.type=ve.DESTINATION,this.apiRoot="https://qa.builder.io",r?.apiRoot&&(this.apiRoot=r.apiRoot),this}async setup(r){}async execute(r){let i=r.event_type,a=r.event_properties,c=await fetch(\`\${this.apiRoot}/api/v1/event\`,{method:"POST",body:JSON.stringify({events:[{name:i,data:fc(a||{})}]}),headers:{"content-type":"application/json; charset=utf-8"}});return{event:r,code:c.status,message:"Tracking event sent"}}};var Zt=uf;var Vt=o=>{window.dispatchEvent(new CustomEvent("builderdevtools",{detail:{eventName:o}}))},bf=()=>{let o=new URL(window.location.href),r=o.hash,i=\`#\${$l}=\`,a="anonymous";r.startsWith(i)&&(a=r.slice(i.length),a&&(Jb(a),o.hash="",window.history.replaceState({},"",o.href))),Zt.isLoaded||(Zt.load({client:{apiKey:rc.production,configuration:{serverUrl:Zl}}}),Zt.client.add(new rn({apiRoot:"https://cdn.builder.io"})),Zt.client.add(new on({user_id:a,position:"dev-tools-menu"}))),Vt("init")};var Jb=o=>{if(typeof o=="string"&&o.length>0){let r=an();nn({...r,builderUserId:o})}},an=()=>{let o=localStorage.getItem(_f);if(o)try{let r=JSON.parse(o);return(!r.ctas||typeof r.ctas!="object")&&(r=nn({...r,ctas:{}})),r.menuOpenedTs&&(r=nn({...r,ctas:{...r.ctas,menuOpened:r.menuOpenedTs}}),delete r.menuOpenedTs),r}catch(r){console.error(r)}return nn({firstVisitTs:Date.now(),ctas:{},builderUserId:""})},nn=o=>{try{localStorage.setItem(_f,JSON.stringify(o))}catch(r){console.error(r)}return o},dc=o=>!!an().ctas[o],pc=o=>{let r=an();return nn({...r,ctas:{...r.ctas,[o]:Date.now()}})},_f="builderDevtools";function Ef(o){e_(o),t_(o),o_(o),r_(o)}function e_(o){let r=o.getElementById("input-register");r.addEventListener("change",async i=>{i.stopPropagation();let a=o.getElementById("input-name"),c=o.querySelector(".nav-cmp-input");c.classList.add("input-loading"),c.classList.remove("input-enabled");let u=a.dataset.id,d=a.dataset.prop,b=await ei({cmpId:u,name:d,registerInput:r.checked});Vt("registryUpdate"),vo(b),sn(o,u,d),zo(o,u),c.classList.remove("input-loading")})}function t_(o){o.getElementById("input-open-source").addEventListener("click",i=>{i.preventDefault(),i.stopPropagation();let a=i.target,c=Ke.components.find(u=>u.id===a?.dataset.id);c&&Er({filePath:c.filePath})})}function o_(o){let r=o.getElementById("input-name"),i=r.closest(".ui-text-input"),a="",c;r.addEventListener("focus",u=>{clearTimeout(c),i.classList.remove("saved"),u.stopPropagation(),a=r.value}),r.addEventListener("blur",async u=>{if(u.stopPropagation(),clearTimeout(c),i.classList.remove("saved"),r.value!==a){if(r.value.trim().length<3){r.value=a;return}i.classList.add("saved"),c=setTimeout(()=>{i.classList.remove("saved")},3e3);let d=r.dataset.id,b=r.dataset.prop,T=await ei({cmpId:d,name:b,friendlyName:r.value});Vt("registryUpdate"),vo(T),sr(o),zo(o,d),sn(o,d,b)}}),r.addEventListener("keyup",u=>{u.stopPropagation(),clearTimeout(c),i.classList.remove("saved"),u.key==="Escape"?(r.value=a,r.blur()):u.key==="Enter"&&r.blur()})}function r_(o){let r=o.getElementById("input-type");r.addEventListener("change",async i=>{i.stopPropagation();let a=r.dataset.id,c=r.dataset.prop,u=await ei({cmpId:a,name:c,type:r.value});Vt("registryUpdate"),vo(u),sr(o),zo(o,a),sn(o,a,c)})}function sn(o,r,i){let a=Ke.components.find(h=>h.id===r);if(!a)return null;let c=a.inputs.find(h=>h.name===i);if(!c)return null;let u=o.querySelector(".nav-cmp-input");c.isRegistered?u.classList.add("input-enabled"):u.classList.remove("input-enabled");let d=o.getElementById("input-register");d.checked=!!c.isRegistered;let b=o.getElementById("cmp-input-title");b.innerText=a.name+": "+(c.friendlyName||c.name);let T=o.getElementById("input-open-source");T.innerText=\`Open \${a.displayFilePath}\`,T.dataset.id=a.id;let m=o.getElementById("cmp-prop-name");m.innerText=c.name;let g=o.getElementById("cmp-prop-type");g.innerText=ai(c.type);let w=o.getElementById("input-name");return w.dataset.id=a.id,w.dataset.prop=c.name,w.value=c.friendlyName||c.name,n_(o,a,c),c}function n_(o,r,i){let a=o.getElementById("input-type");a.dataset.id=r.id,a.dataset.prop=i.name,a.innerHTML="";let c=i.type,u=ti.includes(c),d=oi.includes(c),b=ri.includes(c),T=ni.includes(c),m=ii.includes(c);ag.forEach(g=>{let w=document.createElement("option");w.value=g.value,w.innerText=g.text,w.disabled=ti.includes(g.value)&&!u||oi.includes(g.value)&&!d||ri.includes(g.value)&&!b||ni.includes(g.value)&&!T||ii.includes(g.value)&&!m,a.appendChild(w)}),a.value=c}function xf(o){i_(o),a_(o),s_(o),u_(o),c_(o)}function i_(o){o.getElementById("cmp-register").addEventListener("change",i=>{i.stopPropagation(),ki(o,"update")})}async function ki(o,r){let i=o.querySelector(".nav-cmp-detail"),a=o.getElementById("cmp-error"),c=o.getElementById("cmp-register"),u=c.closest(".ui-switch");i.classList.remove("cmp-enabled"),c.checked&&i.classList.add("cmp-loading");try{let d=c.dataset.id,b;r==="load"?b=await tg({cmpId:d}):c.checked?(b=await og({cmpId:d}),Vt("registryUpdate"),Zt.interaction({type:"click",name:"register component",detail:d})):(b=await ng({cmpId:d}),Vt("registryUpdate"),Zt.interaction({type:"click",name:"unregister component",detail:d})),vo(b),sr(o);let T=zo(o,d);r==="update"&&T&&(c.checked?(i.classList.add("cmp-enabled"),Ga(o,\`<strong>\${T.name}</strong> is now registered in <strong>\${Ke.registryDisplayPath}</strong> and available for use in the Builder Visual Editor\`)):Ga(o,\`<strong>\${T.name}</strong> has been unregistered from <strong>\${Ke.registryDisplayPath}</strong> and removed from the Builder Visual Editor\`))}catch(d){console.error(d),a.innerHTML=\`<p class="error">Error loading components</p><p class="error">\${d.message||d}</p>\`,u.style.display="none"}i.classList.remove("cmp-loading")}function a_(o){let r=o.getElementById("cmp-name"),i=r.closest(".ui-text-input"),a="",c;r.addEventListener("focus",u=>{clearTimeout(c),i.classList.remove("saved"),u.stopPropagation(),a=r.value}),r.addEventListener("blur",async u=>{if(u.stopPropagation(),clearTimeout(c),i.classList.remove("saved"),r.value!==a){if(r.value.trim().length<3){r.value=a;return}i.classList.add("saved"),c=setTimeout(()=>{i.classList.remove("saved")},3e3);let d=r.dataset.id,b=await rg({cmpId:d,name:r.value});Vt("registryUpdate"),vo(b),sr(o),zo(o,d)}}),r.addEventListener("keyup",u=>{u.stopPropagation(),clearTimeout(c),i.classList.remove("saved"),u.key==="Escape"?(r.value=a,r.blur()):u.key==="Enter"&&r.blur()})}function zo(o,r){let i=Ke.components.find(g=>g.id===r);if(!i)return null;let a=o.getElementById("cmp-register"),c=o.getElementById("cmp-error"),u=a.closest(".ui-switch");u.style.display="",c.innerHTML="",a.dataset.id=i.id,a.checked=!!i.isRegistered;let d=o.querySelector(".nav-cmp-detail");i.isRegistered?d.classList.add("cmp-enabled"):d.classList.remove("cmp-enabled");let b=o.getElementById("cmp-name");b.dataset.id=i.id,b.value=i.name;let T=o.getElementById("cmp-open-source");T.innerText=\`Open \${i.displayFilePath}\`,T.dataset.id=i.id;let m=o.getElementById("cmp-detail-title");return m.innerText=\`\${i.name} Component\`,l_(o,i),i}function s_(o){o.getElementById("cmp-open-source").addEventListener("click",i=>{i.preventDefault(),i.stopPropagation();let a=i.target,c=Ke.components.find(u=>u.id===a?.dataset.id);c&&(Er({filePath:c.filePath}),Zt.interaction({type:"click",name:"open component source file",detail:c.filePath}))})}function c_(o){o.getElementById("btn-inputs-reload").addEventListener("click",i=>{i.preventDefault(),i.stopPropagation(),ki(o,"load")})}function u_(o){o.getElementById("cmp-detail-inputs").addEventListener("click",i=>{i.preventDefault(),i.stopPropagation();let c=i.target?.closest("button"),u=c?.dataset.id,d=c?.dataset.propName;sn(o,u,d)&&no(o,"nav-cmp-input")})}function l_(o,r){let i=o.getElementById("cmp-detail-inputs"),a=r.inputs.filter(c=>!c.hideFromUI);a.length>0?(i.innerHTML="",a.forEach(c=>{i.appendChild(g_(r,c))})):i.innerHTML=\`<p class="cmp-inputs-empty">\${r.name} component does not have any props</p>\`}function g_(o,r){let i=document.createElement("button");i.dataset.id=o.id,i.dataset.propName=r.name,i.className="cmp-input-item nav-list-item",r.isRegistered||i.classList.add("cmp-input-item-unregistered");let a=document.createElement("span"),c=ai(r.type);a.className=\`nav-list-item-icon input-icon input-icon-\${c}\`,i.appendChild(a);let u=document.createElement("span");u.innerText=r.friendlyName||r.name,i.appendChild(u);let d=document.createElement("span");return d.className="nav-list-item-note",d.innerText=r.type,i.appendChild(d),i}function Sf(o){o.getElementById("open-builder-registry").addEventListener("click",a=>{a.preventDefault(),a.stopPropagation(),Er({filePath:Ke.registryPath,line:1,column:1})}),o.getElementById("cmp-list").addEventListener("click",a=>{a.preventDefault(),a.stopPropagation();let u=a.target?.dataset.id,d=Ke.components.find(b=>b.id===u);if(d){let b=o.querySelector(".nav-cmp-detail .section-content");b.scrollTop=0,zo(o,d.id),no(o,"nav-cmp-detail"),d.isRegistered&&ki(o,"load")}})}function If(o){let r=eg();f_(o,r)}async function f_(o,r){let i=o.getElementById("cmp-list");i.classList.add("nav-loading");let a=o.getElementById("open-builder-registry");try{let c=await r;vo(c),sr(o),Ke.registryDisplayPath?a.innerText="Open "+c.registryDisplayPath:a.innerText=""}catch(c){i.innerHTML=\`<p class="error">Error loading components</p><p class="error">\${c.message||c}</p>\`,console.error(c)}i.classList.remove("nav-loading")}function sr(o){let r=o.getElementById("cmp-list");r.innerHTML="";let i=Ke.components.filter(c=>c.isRegistered),a=Ke.components.filter(c=>!c.isRegistered);Tf(r,"Registered Components",i),Tf(r,"Unregistered Components",a)}function Tf(o,r,i){if(i.length>0){let a=document.createElement("h4");a.innerText=r,o.appendChild(a),i.forEach(c=>{o.appendChild(d_(c))})}}function d_(o){let r=document.createElement("button");r.dataset.id=o.id,r.className="cmp-item nav-list-item",o.isRegistered&&r.classList.add("registered");let i=document.createElement("span");i.className="nav-list-item-icon",o.image&&(i.style.backgroundImage=\`url(\${o.image})\`),r.appendChild(i);let a=document.createElement("span");a.className="nav-list-item-name",a.innerText=o.name,r.appendChild(a);let c=document.createElement("span");return c.className="nav-list-item-note",c.innerText=o.displayFilePath||"",r.appendChild(c),r}var Of=o=>{o.querySelector(".menu-toggle").addEventListener("click",r=>{r.preventDefault(),r.stopPropagation(),jo(o,!0)}),o.getElementById("close").addEventListener("click",r=>{r.preventDefault(),r.stopPropagation(),jo(o,!1)}),o.getElementById("hit").addEventListener("click",r=>{r.preventDefault(),r.stopPropagation(),jo(o,!1)}),Vl(o),o.addEventListener("click",r=>r.stopPropagation()),p_(o)},jo=(o,r)=>{r?(document.body.classList.add("builder-no-scroll"),o.host.classList.add("show-builder-menu"),Vt("menuOpen"),pc("menuOpened"),Zt.interaction({type:"click",name:"open dev-tools menu"})):(document.body.classList.remove("builder-no-scroll"),o.host.classList.remove("show-builder-menu"),Vt("menuClose"),setTimeout(()=>{no(o,"nav-home")},300)),ig(r)},p_=o=>{if(!dc("menuOpened")){m_(o);return}let r=an();if(!((Date.now()-r.firstVisitTs)/1e3/60<10)&&!dc("feedback")){pc("feedback"),w_(o);return}},m_=o=>{let r=document.createElement("a");r.classList.add("menu-toggle-tooltip"),r.href="#open-dev-tools",r.innerHTML=\`
9
+ `),e.restartAppServer()},10),e.enableAppWatch(!t),{enabled:t,platform:e.platform()}}async function F(e){return M(e,`"use strict";(()=>{var Br=Object.defineProperty;var Fr=(t,e)=>{for(var n in e)Br(t,n,{get:e[n],enumerable:!0})};var W=(t,e)=>{Tt(t);let n=t.querySelector("aside");n.dataset.view=e,n.classList.remove("section-ready"),setTimeout(()=>{n.classList.add("section-ready")},200)},pn=t=>{Array.from(t.querySelectorAll(".back-button")).forEach(e=>{e.addEventListener("click",n=>{Tt(t),n.preventDefault(),n.stopPropagation();let r=n.target;W(t,r?.dataset.back||"nav-home")})})},Et=(t,e)=>{Tt(t);let n=t.querySelector("aside"),r=document.createElement("div");r.className="ui-toast",r.innerHTML=e,n.appendChild(r),setTimeout(()=>{r.classList.add("ui-toast-show"),setTimeout(()=>{r.classList.remove("ui-toast-show"),setTimeout(()=>{r.remove()},500)},4e3)},30)},Tt=t=>{let e=t.querySelector("aside");Array.from(e.querySelectorAll(".ui-toast")).forEach(r=>{r.classList.remove("ui-toast-show")})},ke=()=>{let t=fn();return localStorage.getItem(t)!=="true"},It=t=>{let e=fn();t?localStorage.removeItem(e):localStorage.setItem(e,"true")},fn=()=>Vr("disableEdit"),Vr=t=>\`builder.__LOCAL_APP_ID__.\${t}\`,mn=()=>{let e=document.body.querySelector("[builder-content-id]")?.getAttribute("builder-content-id");return Ee(e)},Ee=(t,e)=>{let n="/content";t&&(n+="/"+t+"/edit");let r=new URL(n,"https://builder.io");t&&e&&r.searchParams.set("selectedBlock",e);let i=new URL(location.pathname,location.href);return r.searchParams.set("overridePreviewUrl",i.href),r.href},Oe="__DEV_TOOLS_URL__",O={components:[],registryPath:"",registryDisplayPath:"",frameworks:[],dependencies:[],publicApiKey:void 0,devToolsVersion:""},X=t=>{O.components=t.components,O.registryPath=t.registryPath,O.registryDisplayPath=t.registryDisplayPath,O.dependencies=t.dependencies,O.publicApiKey=t.publicApiKey};function vn(t){let e=null,n=document.querySelector("builder-dev-tools-menu"),r=()=>{t.hide()},i=u=>{let c=u.target;if(!c){r();return}if(c.closest("builder-dev-tools-edit"))return;let a=c.closest("[builder-content-id]"),l=c.closest("[builder-id]");if(!a||!l){t.hide();return}let d=t.show(a,l);!d||d===e||(n.highlightOpener(),e=d)};document.addEventListener("pointerover",i,{passive:!0}),document.addEventListener("pointerleave",r,{passive:!0}),document.addEventListener("pointercancel",r,{passive:!0}),document.addEventListener("visibilitychange",r,{passive:!0}),window.addEventListener("popstate",r,{passive:!0});let o=history.pushState;history.pushState=function(...u){t.hide(),o.apply(this,u)};let s=history.replaceState;history.replaceState=function(...u){t.hide(),s.apply(this,u)}}var Ue=class extends HTMLElement{constructor(){super();this.openInBuilder=null;this.block=null}connectedCallback(){this.setAttribute("aria-hidden","true");let n=this.attachShadow({mode:"open"});n.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)}:host{display:none;position:absolute;top:0;left:0;width:100%;height:100%;z-index:2147483646;user-select:none;pointer-events:none;color:var(--text-color)}#content-highlight,#block{position:absolute}#content-highlight{border:3px solid var(--primary-color);background-color:var(--primary-color-alpha)}a{position:absolute;top:-33px;left:0;display:block;padding:5px 10px 8px;pointer-events:auto;z-index:100;text-decoration:none}a:hover{text-decoration:none}a span{display:block;padding:3px 6px;font-size:10px;font-weight:300;border-radius:3px;text-align:center;text-decoration:none;pointer-events:none;background-color:var(--edit-color);color:var(--text-color);white-space:nowrap}a:hover span{background-color:var(--edit-color-highlight)}a:hover~.outline{border-color:var(--edit-color-highlight)}#open-in-editor{display:none}.outline{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid var(--edit-color);background-color:var(--edit-color-alpha)}</style><div id="block"> <a id="open-in-builder" target="builder"><span>Open In Builder</span></a> <a id="open-in-editor" href="#open-in-editor"><span>Open In Editor</span></a> <div class="outline"></div> </div>',this.openInBuilder=n.getElementById("open-in-builder"),this.block=n.getElementById("block"),vn(this)}show(n,r){if(!ke())return this.hide(),null;let i=n.getAttribute("builder-content-id"),o=r.getAttribute("builder-id");if(!i||!o)return this.hide(),null;let s=this.block,u=this.openInBuilder,c=r.getBoundingClientRect();s.style.top=c.top+window.scrollY-1+"px",s.style.left=c.left+window.scrollX+"px",s.style.width=c.width+"px",s.style.height=c.height+1+"px";let a=u.getBoundingClientRect();if(a.width>c.width){let l=a.width-c.width;u.style.left=l/2*-1+"px"}else u.style.left="";return u.href=Ee(i,o),this.style.display="block",o}hide(){this.style.display=""}};var gn="preview-url";var hn="_b-uid";var yn="/~builder-connect";var _n="/~builder-dev-tools";var En="https://cdn.builder.io/api/v1/proxy-api?url=https://api2.amplitude.com/2/httpapi";var Tn=()=>z({type:"validateBuilder"}),ve=t=>z({type:"launchEditor",data:t}),In=t=>z({type:"getRegistry",data:t}),bn=t=>z({type:"loadComponent",data:t}),Sn=t=>z({type:"registerComponent",data:t}),xn=t=>z({type:"setComponentInfo",data:t}),Me=t=>z({type:"setComponentInput",data:t}),wn=t=>z({type:"unregisterComponent",data:t}),Ln=t=>z({type:"enableDevTools",data:{enabled:t}}),z=async t=>{let e=new URL(_n,Oe),n;try{n=await fetch(e,{method:"POST",body:JSON.stringify(t)})}catch(i){throw console.error(\`Devtools Fetch Error, \${e.href}\`,i),new Error("Builder Devtools Fetch Error")}if((n.headers.get("content-type")||"").includes("application/json")){let i=await n.json();if(n.ok)return i.data;if(Array.isArray(i.errors)&&i.errors.length>0)throw i.errors.forEach(o=>console.error(o)),new Error(\`Builder Devtools Fetch Error: \${i.errors[0]}\`)}throw new Error(\`Builder Devtools Fetch Error: \${n.status}, \${await n.text()}\`)};var Pn=[{value:"boolean",text:"boolean"},{value:"color",text:"color (provides a color in hex or rgb)"},{value:"date",text:"date (same format as the Date constructor)"},{value:"email",text:"email"},{value:"file",text:"file (uploads a file and provides a url)"},{value:"list",text:"list (collection of items)"},{value:"longText",text:"longText (multiline text editor)"},{value:"number",text:"number"},{value:"object",text:"object (set of specific names and values)"},{value:"richText",text:"richText (provides value as html)"},{value:"string",text:"string"}],Ne=["color","date","email","file","longText","richText","string"],Be=["number"],Fe=["boolean"],Ve=["list"],He=["object"];function qe(t){return Ne.includes(t)?"string":Be.includes(t)?"number":Fe.includes(t)?"boolean":Ve.includes(t)?"array":He.includes(t)?"object":"string"}var ji=new Set(["about","accessKey","accessKeyLabel","asChild","autoCapitalize","autoCorrect","autoFocus","autoSave","blur","contentEditable","contextMenu","dangerouslySetInnerHTML","datatype","defaultChecked","defaultValue","dir","draggable","enterKeyHint","focus","form","formAction","formEncType","formMethod","formNoValidate","formTarget","inlist","innerText","inputMode","is","isContentEditable","itemID","itemProp","itemRef","itemScope","itemType","lang","nonce","offsetHeight","offsetLeft","offsetTop","offsetWidth","outerText","prefix","property","radioGroup","rel","resource","results","rev","role","security","slot","spellCheck","suppressContentEditableWarning","suppressHydrationWarning","tabIndex","translate","typeof","unselectable","vocab"].map(t=>t.toLowerCase()));var bt=function(t,e){return bt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},bt(t,e)};function V(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");bt(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var v=function(){return v=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},v.apply(this,arguments)};function Te(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function p(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function u(l){try{a(r.next(l))}catch(d){s(d)}}function c(l){try{a(r.throw(l))}catch(d){s(d)}}function a(l){l.done?o(l.value):i(l.value).then(u,c)}a((r=r.apply(t,e||[])).next())})}function f(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(a){return function(l){return c([a,l])}}function c(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(n=0)),n;)try{if(r=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,i=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1],o=a;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(a);break}o[2]&&n.ops.pop(),n.trys.pop();continue}a=e.call(t,n)}catch(l){a=[6,l],i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function K(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(u){s={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function q(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}var Cn="Event tracked successfully",Rn="Unexpected error occurred",Dn="Event rejected due to exceeded retry count",An="Event skipped due to optOut config",kn="Event rejected due to missing API key",On="Invalid API key",Un="Client not initialized";var We={};Fr(We,{IdentifyOperation:()=>L,LogLevel:()=>M,OfflineDisabled:()=>Ge,RevenueProperty:()=>$,ServerZone:()=>je,SpecialEventType:()=>Z,Status:()=>x});var L;(function(t){t.SET="$set",t.SET_ONCE="$setOnce",t.ADD="$add",t.APPEND="$append",t.PREPEND="$prepend",t.REMOVE="$remove",t.PREINSERT="$preInsert",t.POSTINSERT="$postInsert",t.UNSET="$unset",t.CLEAR_ALL="$clearAll"})(L||(L={}));var $;(function(t){t.REVENUE_PRODUCT_ID="$productId",t.REVENUE_QUANTITY="$quantity",t.REVENUE_PRICE="$price",t.REVENUE_TYPE="$revenueType",t.REVENUE="$revenue"})($||($={}));var Z;(function(t){t.IDENTIFY="$identify",t.GROUP_IDENTIFY="$groupidentify",t.REVENUE="revenue_amount"})(Z||(Z={}));var M;(function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Warn=2]="Warn",t[t.Verbose=3]="Verbose",t[t.Debug=4]="Debug"})(M||(M={}));var je;(function(t){t.US="US",t.EU="EU"})(je||(je={}));var x;(function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.PayloadTooLarge="payload_too_large",t.Invalid="invalid",t.Failed="failed",t.Timeout="Timeout",t.SystemError="SystemError"})(x||(x={}));var Ge=null;var J=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=x.Unknown),{event:t,code:e,message:n}};var Y=function(t){return t?(t^Math.random()*16>>t/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,Y)};var Mn=function(){function t(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return t.prototype.register=function(e,n){var r,i,o;return p(this,void 0,void 0,function(){return f(this,function(s){switch(s.label){case 0:return e.name=(r=e.name)!==null&&r!==void 0?r:Y(),e.type=(i=e.type)!==null&&i!==void 0?i:"enrichment",[4,(o=e.setup)===null||o===void 0?void 0:o.call(e,n,this.client)];case 1:return s.sent(),this.plugins.push(e),[2]}})})},t.prototype.deregister=function(e){var n;return p(this,void 0,void 0,function(){var r,i;return f(this,function(o){switch(o.label){case 0:return r=this.plugins.findIndex(function(s){return s.name===e}),i=this.plugins[r],this.plugins.splice(r,1),[4,(n=i.teardown)===null||n===void 0?void 0:n.call(i)];case 1:return o.sent(),[2]}})})},t.prototype.reset=function(e){this.applying=!1;var n=this.plugins;n.map(function(r){var i;return(i=r.teardown)===null||i===void 0?void 0:i.call(r)}),this.plugins=[],this.client=e},t.prototype.push=function(e){var n=this;return new Promise(function(r){n.queue.push([e,r]),n.scheduleApply(0)})},t.prototype.scheduleApply=function(e){var n=this;this.applying||(this.applying=!0,setTimeout(function(){n.apply(n.queue.shift()).then(function(){n.applying=!1,n.queue.length>0&&n.scheduleApply(0)})},e))},t.prototype.apply=function(e){return p(this,void 0,void 0,function(){var n,r,i,o,s,u,c,y,g,a,l,d,m,y,g,T,h,_,U,I,A,F;return f(this,function(b){switch(b.label){case 0:if(!e)return[2];n=w(e,1),r=n[0],i=w(e,2),o=i[1],s=this.plugins.filter(function(S){return S.type==="before"}),b.label=1;case 1:b.trys.push([1,6,7,8]),u=K(s),c=u.next(),b.label=2;case 2:return c.done?[3,5]:(y=c.value,y.execute?[4,y.execute(v({},r))]:[3,4]);case 3:if(g=b.sent(),g===null)return o({event:r,code:0,message:""}),[2];r=g,b.label=4;case 4:return c=u.next(),[3,2];case 5:return[3,8];case 6:return a=b.sent(),U={error:a},[3,8];case 7:try{c&&!c.done&&(I=u.return)&&I.call(u)}finally{if(U)throw U.error}return[7];case 8:l=this.plugins.filter(function(S){return S.type==="enrichment"||S.type===void 0}),b.label=9;case 9:b.trys.push([9,14,15,16]),d=K(l),m=d.next(),b.label=10;case 10:return m.done?[3,13]:(y=m.value,y.execute?[4,y.execute(v({},r))]:[3,12]);case 11:if(g=b.sent(),g===null)return o({event:r,code:0,message:""}),[2];r=g,b.label=12;case 12:return m=d.next(),[3,10];case 13:return[3,16];case 14:return T=b.sent(),A={error:T},[3,16];case 15:try{m&&!m.done&&(F=d.return)&&F.call(d)}finally{if(A)throw A.error}return[7];case 16:return h=this.plugins.filter(function(S){return S.type==="destination"}),_=h.map(function(S){var k=v({},r);return S.execute(k).catch(function(B){return J(k,0,String(B))})}),Promise.all(_).then(function(S){var k=w(S,1),B=k[0],Q=B||J(r,100,"Event not tracked, no destination plugins on the instance");o(Q)}),[2]}})})},t.prototype.flush=function(){return p(this,void 0,void 0,function(){var e,n,r,i=this;return f(this,function(o){switch(o.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(s){return i.apply(s)}))];case 1:return o.sent(),n=this.plugins.filter(function(s){return s.type==="destination"}),r=n.map(function(s){return s.flush&&s.flush()}),[4,Promise.all(r)];case 2:return o.sent(),[2]}})})},t}();var St="-",le="AMP",xt="".concat(le,"_unsent"),wt="https://api2.amplitude.com/2/httpapi",Nn="https://api.eu.amplitude.com/2/httpapi",Bn="https://api2.amplitude.com/batch",Fn="https://api.eu.amplitude.com/batch";var Hr=1e3,Ke=function(t){if(Object.keys(t).length>Hr)return!1;for(var e in t){var n=t[e];if(!Lt(e,n))return!1}return!0},Lt=function(t,e){var n,r;if(typeof t!="string")return!1;if(Array.isArray(e)){var i=!0;try{for(var o=K(e),s=o.next();!s.done;s=o.next()){var u=s.value;if(Array.isArray(u))return!1;if(typeof u=="object")i=i&&Ke(u);else if(!["number","string"].includes(typeof u))return!1;if(!i)return!1}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}else{if(e==null)return!1;if(typeof e=="object")return Ke(e);if(!["number","string","boolean"].includes(typeof e))return!1}return!0};var ne=function(){function t(){this._propertySet=new Set,this._properties={}}return t.prototype.getUserProperties=function(){return v({},this._properties)},t.prototype.set=function(e,n){return this._safeSet(L.SET,e,n),this},t.prototype.setOnce=function(e,n){return this._safeSet(L.SET_ONCE,e,n),this},t.prototype.append=function(e,n){return this._safeSet(L.APPEND,e,n),this},t.prototype.prepend=function(e,n){return this._safeSet(L.PREPEND,e,n),this},t.prototype.postInsert=function(e,n){return this._safeSet(L.POSTINSERT,e,n),this},t.prototype.preInsert=function(e,n){return this._safeSet(L.PREINSERT,e,n),this},t.prototype.remove=function(e,n){return this._safeSet(L.REMOVE,e,n),this},t.prototype.add=function(e,n){return this._safeSet(L.ADD,e,n),this},t.prototype.unset=function(e){return this._safeSet(L.UNSET,e,St),this},t.prototype.clearAll=function(){return this._properties={},this._properties[L.CLEAR_ALL]=St,this},t.prototype._safeSet=function(e,n,r){if(this._validate(e,n,r)){var i=this._properties[e];return i===void 0&&(i={},this._properties[e]=i),i[n]=r,this._propertySet.add(n),!0}return!1},t.prototype._validate=function(e,n,r){return this._properties[L.CLEAR_ALL]!==void 0||this._propertySet.has(n)?!1:e===L.ADD?typeof r=="number":e!==L.UNSET&&e!==L.REMOVE?Lt(n,r):!0},t}();var Vn=function(t,e,n){var r=typeof t=="string"?{event_type:t}:t;return v(v(v({},r),n),e&&{event_properties:e})},Ie=function(t,e){var n=v(v({},e),{event_type:Z.IDENTIFY,user_properties:t.getUserProperties()});return n},Hn=function(t,e,n,r){var i,o=v(v({},r),{event_type:Z.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:(i={},i[t]=e,i)});return o},qn=function(t,e,n){var r,i=new ne;i.set(t,e);var o=v(v({},n),{event_type:Z.IDENTIFY,user_properties:i.getUserProperties(),groups:(r={},r[t]=e,r)});return o},jn=function(t,e){return v(v({},e),{event_type:Z.REVENUE,event_properties:t.getEventProperties()})};var H=function(t){return{promise:t||Promise.resolve()}};var Pt=function(){function t(e){e===void 0&&(e="$default"),this.initializing=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new Mn(this),this.name=e}return t.prototype._init=function(e){return p(this,void 0,void 0,function(){return f(this,function(n){switch(n.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return n.sent(),[2]}})})},t.prototype.runQueuedFunctions=function(e){return p(this,void 0,void 0,function(){var n,r,i,o,s,u,c;return f(this,function(a){switch(a.label){case 0:n=this[e],this[e]=[],a.label=1;case 1:a.trys.push([1,6,7,8]),r=K(n),i=r.next(),a.label=2;case 2:return i.done?[3,5]:(o=i.value,[4,o()]);case 3:a.sent(),a.label=4;case 4:return i=r.next(),[3,2];case 5:return[3,8];case 6:return s=a.sent(),u={error:s},[3,8];case 7:try{i&&!i.done&&(c=r.return)&&c.call(r)}finally{if(u)throw u.error}return[7];case 8:return[2]}})})},t.prototype.track=function(e,n,r){var i=Vn(e,n,r);return H(this.dispatch(i))},t.prototype.identify=function(e,n){var r=Ie(e,n);return H(this.dispatch(r))},t.prototype.groupIdentify=function(e,n,r,i){var o=Hn(e,n,r,i);return H(this.dispatch(o))},t.prototype.setGroup=function(e,n,r){var i=qn(e,n,r);return H(this.dispatch(i))},t.prototype.revenue=function(e,n){var r=jn(e,n);return H(this.dispatch(r))},t.prototype.add=function(e){return this.config?H(this.timeline.register(e,this.config)):(this.q.push(this.add.bind(this,e)),H())},t.prototype.remove=function(e){return this.config?H(this.timeline.deregister(e)):(this.q.push(this.remove.bind(this,e)),H())},t.prototype.dispatchWithCallback=function(e,n){if(!this.config)return n(J(e,0,Un));this.process(e).then(n)},t.prototype.dispatch=function(e){return p(this,void 0,void 0,function(){var n=this;return f(this,function(r){return this.config?[2,this.process(e)]:[2,new Promise(function(i){n.dispatchQ.push(n.dispatchWithCallback.bind(n,e,i))})]})})},t.prototype.process=function(e){return p(this,void 0,void 0,function(){var i,n,r,i;return f(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),this.config.optOut?[2,J(e,0,An)]:[4,this.timeline.push(e)];case 1:return i=o.sent(),i.code===200?this.config.loggerProvider.log(i.message):i.code===100?this.config.loggerProvider.warn(i.message):this.config.loggerProvider.error(i.message),[2,i];case 2:return n=o.sent(),r=String(n),this.config.loggerProvider.error(r),i=J(e,0,r),[2,i];case 3:return[2]}})})},t.prototype.setOptOut=function(e){if(!this.config){this.q.push(this.setOptOut.bind(this,!!e));return}this.config.optOut=!!e},t.prototype.flush=function(){return H(this.timeline.flush())},t}();var Ct=function(){function t(){this.productId="",this.quantity=1,this.price=0}return t.prototype.setProductId=function(e){return this.productId=e,this},t.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},t.prototype.setPrice=function(e){return this.price=e,this},t.prototype.setRevenueType=function(e){return this.revenueType=e,this},t.prototype.setRevenue=function(e){return this.revenue=e,this},t.prototype.setEventProperties=function(e){return Ke(e)&&(this.properties=e),this},t.prototype.getEventProperties=function(){var e=this.properties?v({},this.properties):{};return e[$.REVENUE_PRODUCT_ID]=this.productId,e[$.REVENUE_QUANTITY]=this.quantity,e[$.REVENUE_PRICE]=this.price,e[$.REVENUE_TYPE]=this.revenueType,e[$.REVENUE]=this.revenue,e},t}();var Gn=function(t,e){var n=Math.max(e,1);return t.reduce(function(r,i,o){var s=Math.floor(o/n);return r[s]||(r[s]=[]),r[s].push(i),r},[])};var $e="Amplitude Logger ",be=function(){function t(){this.logLevel=M.None}return t.prototype.disable=function(){this.logLevel=M.None},t.prototype.enable=function(e){e===void 0&&(e=M.Warn),this.logLevel=e},t.prototype.log=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.logLevel<M.Verbose||console.log("".concat($e,"[Log]: ").concat(e.join(" ")))},t.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.logLevel<M.Warn||console.warn("".concat($e,"[Warn]: ").concat(e.join(" ")))},t.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.logLevel<M.Error||console.error("".concat($e,"[Error]: ").concat(e.join(" ")))},t.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.logLevel<M.Debug||console.log("".concat($e,"[Debug]: ").concat(e.join(" ")))},t}();var Ye=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:"$default_instance",logLevel:M.Warn,loggerProvider:new be,offline:!1,optOut:!1,serverUrl:wt,serverZone:"US",useBatch:!1}},Rt=function(){function t(e){var n,r,i,o;this._optOut=!1;var s=Ye();this.apiKey=e.apiKey,this.flushIntervalMillis=(n=e.flushIntervalMillis)!==null&&n!==void 0?n:s.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||s.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||s.flushQueueSize,this.instanceName=e.instanceName||s.instanceName,this.loggerProvider=e.loggerProvider||s.loggerProvider,this.logLevel=(r=e.logLevel)!==null&&r!==void 0?r:s.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=e.offline!==void 0?e.offline:s.offline,this.optOut=(i=e.optOut)!==null&&i!==void 0?i:s.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||s.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=(o=e.useBatch)!==null&&o!==void 0?o:s.useBatch,this.loggerProvider.enable(this.logLevel);var u=Dt(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=u.serverZone,this.serverUrl=u.serverUrl}return Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e},enumerable:!1,configurable:!0}),t}();var qr=function(t,e){return t==="EU"?e?Fn:Nn:e?Bn:wt},Dt=function(t,e,n){if(t===void 0&&(t=""),e===void 0&&(e=Ye().serverZone),n===void 0&&(n=Ye().useBatch),t)return{serverUrl:t,serverZone:void 0};var r=["US","EU"].includes(e)?e:Ye().serverZone;return{serverZone:r,serverUrl:qr(r,n)}};function jr(t){return t instanceof Error?t.message:String(t)}function Qe(t){var e="";try{"body"in t&&(e=JSON.stringify(t.body,null,2))}catch{}return e}var At=function(){function t(){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduled=null,this.queue=[]}return t.prototype.setup=function(e){var n;return p(this,void 0,void 0,function(){var r,i=this;return f(this,function(o){switch(o.label){case 0:return this.config=e,this.storageKey="".concat(xt,"_").concat(this.config.apiKey.substring(0,10)),[4,(n=this.config.storageProvider)===null||n===void 0?void 0:n.get(this.storageKey)];case 1:return r=o.sent(),this.saveEvents(),r&&r.length>0&&Promise.all(r.map(function(s){return i.execute(s)})).catch(),[2,Promise.resolve(void 0)]}})})},t.prototype.execute=function(e){var n=this;return new Promise(function(r){var i={event:e,attempts:0,callback:function(o){return r(o)},timeout:0};n.addToQueue(i)})},t.prototype.addToQueue=function(){for(var e=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.filter(function(o){return o.attempts<e.config.flushMaxRetries?(o.attempts+=1,!0):(e.fulfillRequest([o],500,Dn),!1)});i.forEach(function(o){if(e.queue=e.queue.concat(o),o.timeout===0){e.schedule(e.config.flushIntervalMillis);return}setTimeout(function(){o.timeout=0,e.schedule(0)},o.timeout)}),this.saveEvents()},t.prototype.schedule=function(e){var n=this;this.scheduled||this.config.offline||(this.scheduled=setTimeout(function(){n.flush(!0).then(function(){n.queue.length>0&&n.schedule(e)})},e))},t.prototype.flush=function(e){return e===void 0&&(e=!1),p(this,void 0,void 0,function(){var n,r,i,o=this;return f(this,function(s){switch(s.label){case 0:return this.config.offline?(this.config.loggerProvider.debug("Skipping flush while offline."),[2]):(n=[],r=[],this.queue.forEach(function(u){return u.timeout===0?n.push(u):r.push(u)}),this.queue=r,this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),i=Gn(n,this.config.flushQueueSize),[4,Promise.all(i.map(function(u){return o.send(u,e)}))]);case 1:return s.sent(),[2]}})})},t.prototype.send=function(e,n){return n===void 0&&(n=!0),p(this,void 0,void 0,function(){var r,i,o,s,u;return f(this,function(c){switch(c.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,kn)];r={api_key:this.config.apiKey,events:e.map(function(a){var l=a.event,d=l.extra,m=Te(l,["extra"]);return m}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString()},c.label=1;case 1:return c.trys.push([1,3,,4]),i=Dt(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(i,r)];case 2:return o=c.sent(),o===null?(this.fulfillRequest(e,0,Rn),[2]):n?(this.handleResponse(o,e),[3,4]):("body"in o?this.fulfillRequest(e,o.statusCode,"".concat(o.status,": ").concat(Qe(o))):this.fulfillRequest(e,o.statusCode,o.status),[2]);case 3:return s=c.sent(),u=jr(s),this.config.loggerProvider.error(u),this.fulfillRequest(e,0,u),[3,4];case 4:return[2]}})})},t.prototype.handleResponse=function(e,n){var r=e.status;switch(r){case x.Success:{this.handleSuccessResponse(e,n);break}case x.Invalid:{this.handleInvalidResponse(e,n);break}case x.PayloadTooLarge:{this.handlePayloadTooLargeResponse(e,n);break}case x.RateLimit:{this.handleRateLimitResponse(e,n);break}default:{this.config.loggerProvider.warn(\`{code: 0, error: "Status '\`.concat(r,"' provided for ").concat(n.length,' events"}')),this.handleOtherResponse(n);break}}},t.prototype.handleSuccessResponse=function(e,n){this.fulfillRequest(n,e.statusCode,Cn)},t.prototype.handleInvalidResponse=function(e,n){var r=this;if(e.body.missingField||e.body.error.startsWith(On)){this.fulfillRequest(n,e.statusCode,e.body.error);return}var i=q(q(q(q([],w(Object.values(e.body.eventsWithInvalidFields)),!1),w(Object.values(e.body.eventsWithMissingFields)),!1),w(Object.values(e.body.eventsWithInvalidIdLengths)),!1),w(e.body.silencedEvents),!1).flat(),o=new Set(i),s=n.filter(function(u,c){if(o.has(c)){r.fulfillRequest([u],e.statusCode,e.body.error);return}return!0});s.length>0&&this.config.loggerProvider.warn(Qe(e)),this.addToQueue.apply(this,q([],w(s),!1))},t.prototype.handlePayloadTooLargeResponse=function(e,n){if(n.length===1){this.fulfillRequest(n,e.statusCode,e.body.error);return}this.config.loggerProvider.warn(Qe(e)),this.config.flushQueueSize/=2,this.addToQueue.apply(this,q([],w(n),!1))},t.prototype.handleRateLimitResponse=function(e,n){var r=this,i=Object.keys(e.body.exceededDailyQuotaUsers),o=Object.keys(e.body.exceededDailyQuotaDevices),s=e.body.throttledEvents,u=new Set(i),c=new Set(o),a=new Set(s),l=n.filter(function(d,m){if(d.event.user_id&&u.has(d.event.user_id)||d.event.device_id&&c.has(d.event.device_id)){r.fulfillRequest([d],e.statusCode,e.body.error);return}return a.has(m)&&(d.timeout=r.throttleTimeout),!0});l.length>0&&this.config.loggerProvider.warn(Qe(e)),this.addToQueue.apply(this,q([],w(l),!1))},t.prototype.handleOtherResponse=function(e){var n=this;this.addToQueue.apply(this,q([],w(e.map(function(r){return r.timeout=r.attempts*n.retryTimeout,r})),!1))},t.prototype.fulfillRequest=function(e,n,r){this.saveEvents(),e.forEach(function(i){return i.callback(J(i.event,n,r))})},t.prototype.saveEvents=function(){if(this.config.storageProvider){var e=Array.from(this.queue.map(function(n){return n.event}));this.config.storageProvider.set(this.storageKey,e)}},t}();var Gr=function(t){t===void 0&&(t=0);var e=new Error().stack||"";return e.split(\`
10
+ \`).slice(2+t).map(function(n){return n.trim()})},P=function(t){return function(){var e=v({},t.config),n=e.loggerProvider,r=e.logLevel;return{logger:n,logLevel:r}}},Wr=function(t,e){var n,r;e=e.replace(/\\[(\\w+)\\]/g,".$1"),e=e.replace(/^\\./,"");try{for(var i=K(e.split(".")),o=i.next();!o.done;o=i.next()){var s=o.value;if(s in t)t=t[s];else return}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},C=function(t,e){return function(){var n,r,i={};try{for(var o=K(e),s=o.next();!s.done;s=o.next()){var u=s.value;i[u]=Wr(t,u)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}},R=function(t,e,n,r,i){return i===void 0&&(i=null),function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var u=n(),c=u.logger,a=u.logLevel;if(a&&a<M.Debug||!a||!c)return t.apply(i,o);var l={type:"invoke public method",name:e,args:o,stacktrace:Gr(1),time:{start:new Date().toISOString()},states:{}};r&&l.states&&(l.states.before=r());var d=t.apply(i,o);return d&&d.promise?d.promise.then(function(){r&&l.states&&(l.states.after=r()),l.time&&(l.time.end=new Date().toISOString()),c.debug(JSON.stringify(l,null,2))}):(r&&l.states&&(l.states.after=r()),l.time&&(l.time.end=new Date().toISOString()),c.debug(JSON.stringify(l,null,2))),d}};var Xe=function(){function t(){this.memoryStorage=new Map}return t.prototype.isEnabled=function(){return p(this,void 0,void 0,function(){return f(this,function(e){return[2,!0]})})},t.prototype.get=function(e){return p(this,void 0,void 0,function(){return f(this,function(n){return[2,this.memoryStorage.get(e)]})})},t.prototype.getRaw=function(e){return p(this,void 0,void 0,function(){var n;return f(this,function(r){switch(r.label){case 0:return[4,this.get(e)];case 1:return n=r.sent(),[2,n?JSON.stringify(n):void 0]}})})},t.prototype.set=function(e,n){return p(this,void 0,void 0,function(){return f(this,function(r){return this.memoryStorage.set(e,n),[2]})})},t.prototype.remove=function(e){return p(this,void 0,void 0,function(){return f(this,function(n){return this.memoryStorage.delete(e),[2]})})},t.prototype.reset=function(){return p(this,void 0,void 0,function(){return f(this,function(e){return this.memoryStorage.clear(),[2]})})},t}();var de=function(){function t(){}return t.prototype.send=function(e,n){return Promise.resolve(null)},t.prototype.buildResponse=function(e){var n,r,i,o,s,u,c,a,l,d,m,y,g,T,h,_,U,I,A,F,b,S;if(typeof e!="object")return null;var k=e.code||0,B=this.buildStatus(k);switch(B){case x.Success:return{status:B,statusCode:k,body:{eventsIngested:(n=e.events_ingested)!==null&&n!==void 0?n:0,payloadSizeBytes:(r=e.payload_size_bytes)!==null&&r!==void 0?r:0,serverUploadTime:(i=e.server_upload_time)!==null&&i!==void 0?i:0}};case x.Invalid:return{status:B,statusCode:k,body:{error:(o=e.error)!==null&&o!==void 0?o:"",missingField:(s=e.missing_field)!==null&&s!==void 0?s:"",eventsWithInvalidFields:(u=e.events_with_invalid_fields)!==null&&u!==void 0?u:{},eventsWithMissingFields:(c=e.events_with_missing_fields)!==null&&c!==void 0?c:{},eventsWithInvalidIdLengths:(a=e.events_with_invalid_id_lengths)!==null&&a!==void 0?a:{},epsThreshold:(l=e.eps_threshold)!==null&&l!==void 0?l:0,exceededDailyQuotaDevices:(d=e.exceeded_daily_quota_devices)!==null&&d!==void 0?d:{},silencedDevices:(m=e.silenced_devices)!==null&&m!==void 0?m:[],silencedEvents:(y=e.silenced_events)!==null&&y!==void 0?y:[],throttledDevices:(g=e.throttled_devices)!==null&&g!==void 0?g:{},throttledEvents:(T=e.throttled_events)!==null&&T!==void 0?T:[]}};case x.PayloadTooLarge:return{status:B,statusCode:k,body:{error:(h=e.error)!==null&&h!==void 0?h:""}};case x.RateLimit:return{status:B,statusCode:k,body:{error:(_=e.error)!==null&&_!==void 0?_:"",epsThreshold:(U=e.eps_threshold)!==null&&U!==void 0?U:0,throttledDevices:(I=e.throttled_devices)!==null&&I!==void 0?I:{},throttledUsers:(A=e.throttled_users)!==null&&A!==void 0?A:{},exceededDailyQuotaDevices:(F=e.exceeded_daily_quota_devices)!==null&&F!==void 0?F:{},exceededDailyQuotaUsers:(b=e.exceeded_daily_quota_users)!==null&&b!==void 0?b:{},throttledEvents:(S=e.throttled_events)!==null&&S!==void 0?S:[]}};case x.Timeout:default:return{status:B,statusCode:k}}},t.prototype.buildStatus=function(e){return e>=200&&e<300?x.Success:e===429?x.RateLimit:e===413?x.PayloadTooLarge:e===408?x.Timeout:e>=400&&e<500?x.Invalid:e>=500?x.Failed:x.Unknown},t}();var N=function(){if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global};var ge=function(){var t,e=N();if(!(!((t=e?.location)===null||t===void 0)&&t.search))return{};var n=e.location.search.substring(1).split("&").filter(Boolean),r=n.reduce(function(i,o){var s=o.split("=",2),u=Wn(s[0]),c=Wn(s[1]);return c&&(i[u]=c),i},{});return r},Wn=function(t){t===void 0&&(t="");try{return decodeURIComponent(t)}catch{return""}};var Kn="utm_campaign",$n="utm_content",Yn="utm_id",Qn="utm_medium",Xn="utm_source",zn="utm_term",kt="dclid",Ot="fbclid",Ut="gbraid",Mt="gclid",Nt="ko_click_id",Bt="li_fat_id",Ft="msclkid",Vt="rtd_cid",Ht="ttclid",qt="twclid",jt="wbraid";var pe={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0};var Se=function(){function t(){}return t.prototype.parse=function(){return p(this,void 0,void 0,function(){return f(this,function(e){return[2,v(v(v(v({},pe),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},t.prototype.getUtmParam=function(){var e=ge(),n=e[Kn],r=e[$n],i=e[Yn],o=e[Qn],s=e[Xn],u=e[zn];return{utm_campaign:n,utm_content:r,utm_id:i,utm_medium:o,utm_source:s,utm_term:u}},t.prototype.getReferrer=function(){var e,n,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=(n=(e=r.referrer)===null||e===void 0?void 0:e.split("/")[2])!==null&&n!==void 0?n:void 0}catch{}return r},t.prototype.getClickIds=function(){var e,n=ge();return e={},e[kt]=n[kt],e[Ot]=n[Ot],e[Ut]=n[Ut],e[Mt]=n[Mt],e[Nt]=n[Nt],e[Bt]=n[Bt],e[Ft]=n[Ft],e[Vt]=n[Vt],e[Ht]=n[Ht],e[qt]=n[qt],e[jt]=n[jt],e},t}();var ze=function(t,e,n){return e===void 0&&(e=""),n===void 0&&(n=10),[le,e,t.substring(0,n)].filter(Boolean).join("_")},Gt=function(t){return"".concat(le.toLowerCase(),"_").concat(t.substring(0,6))};var xe=function(t,e){e===void 0&&(e=Date.now());var n=Date.now(),r=n-e;return r>t};var we=function(){function t(e){this.options=v({},e)}return t.prototype.isEnabled=function(){return p(this,void 0,void 0,function(){var e,n,r,i;return f(this,function(o){switch(o.label){case 0:if(!N())return[2,!1];t.testValue=String(Date.now()),e=new t(this.options),n="AMP_TEST",o.label=1;case 1:return o.trys.push([1,4,5,7]),[4,e.set(n,t.testValue)];case 2:return o.sent(),[4,e.get(n)];case 3:return r=o.sent(),[2,r===t.testValue];case 4:return i=o.sent(),[2,!1];case 5:return[4,e.remove(n)];case 6:return o.sent(),[7];case 7:return[2]}})})},t.prototype.get=function(e){return p(this,void 0,void 0,function(){var n;return f(this,function(r){switch(r.label){case 0:return[4,this.getRaw(e)];case 1:if(n=r.sent(),!n)return[2,void 0];try{try{n=decodeURIComponent(atob(n))}catch{}return[2,JSON.parse(n)]}catch{return[2,void 0]}return[2]}})})},t.prototype.getRaw=function(e){var n,r;return p(this,void 0,void 0,function(){var i,o,s;return f(this,function(u){return i=N(),o=(r=(n=i?.document)===null||n===void 0?void 0:n.cookie.split("; "))!==null&&r!==void 0?r:[],s=o.find(function(c){return c.indexOf(e+"=")===0}),s?[2,s.substring(e.length+1)]:[2,void 0]})})},t.prototype.set=function(e,n){var r;return p(this,void 0,void 0,function(){var i,o,s,u,c,a;return f(this,function(l){try{i=(r=this.options.expirationDays)!==null&&r!==void 0?r:0,o=n!==null?i:-1,s=void 0,o&&(u=new Date,u.setTime(u.getTime()+o*24*60*60*1e3),s=u),c="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(n)))),s&&(c+="; expires=".concat(s.toUTCString())),c+="; path=/",this.options.domain&&(c+="; domain=".concat(this.options.domain)),this.options.secure&&(c+="; Secure"),this.options.sameSite&&(c+="; SameSite=".concat(this.options.sameSite)),a=N(),a&&(a.document.cookie=c)}catch{}return[2]})})},t.prototype.remove=function(e){return p(this,void 0,void 0,function(){return f(this,function(n){switch(n.label){case 0:return[4,this.set(e,null)];case 1:return n.sent(),[2]}})})},t.prototype.reset=function(){return p(this,void 0,void 0,function(){return f(this,function(e){return[2]})})},t}();var Wt=function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.send=function(n,r){return p(this,void 0,void 0,function(){var i,o,s;return f(this,function(u){switch(u.label){case 0:if(typeof fetch>"u")throw new Error("FetchTransport is not supported");return i={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(r),method:"POST"},[4,fetch(n,i)];case 1:return o=u.sent(),[4,o.json()];case 2:return s=u.sent(),[2,this.buildResponse(s)]}})})},e}(de);var Kr=function(){function t(){}return t.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:$r(),platform:"Web",os:void 0,deviceModel:void 0}},t}(),$r=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},Yr=function(){function t(){this.queue=[]}return t.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},t.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(n){e(n)}),this.queue=[])},t}(),re=function(){return re=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},re.apply(this,arguments)},Ze=function(t,e){var n=["string","number","boolean","undefined"],r=typeof t,i=typeof e;if(r!==i)return!1;for(var o=0,s=n;o<s.length;o++){var u=s[o];if(u===r)return t===e}if(t==null&&e==null)return!0;if(t==null||e==null||t.length!==e.length)return!1;var c=Array.isArray(t),a=Array.isArray(e);if(c!==a)return!1;if(c&&a){for(var l=0;l<t.length;l++)if(!Ze(t[l],e[l]))return!1}else{var d=Object.keys(t).sort(),m=Object.keys(e).sort();if(!Ze(d,m))return!1;var y=!0;return Object.keys(t).forEach(function(g){Ze(t[g],e[g])||(y=!1)}),y}return!0},Qr="$set",Xr="$unset",zr="$clearAll";Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r});var Zr=function(){function t(){this.identity={userProperties:{}},this.listeners=new Set}return t.prototype.editIdentity=function(){var e=this,n=re({},this.identity.userProperties),r=re(re({},this.identity),{userProperties:n});return{setUserId:function(i){return r.userId=i,this},setDeviceId:function(i){return r.deviceId=i,this},setUserProperties:function(i){return r.userProperties=i,this},setOptOut:function(i){return r.optOut=i,this},updateUserProperties:function(i){for(var o=r.userProperties||{},s=0,u=Object.entries(i);s<u.length;s++){var c=u[s],a=c[0],l=c[1];switch(a){case Qr:for(var d=0,m=Object.entries(l);d<m.length;d++){var y=m[d],g=y[0],T=y[1];o[g]=T}break;case Xr:for(var h=0,_=Object.keys(l);h<_.length;h++){var g=_[h];delete o[g]}break;case zr:o={};break}}return r.userProperties=o,this},commit:function(){return e.setIdentity(r),this}}},t.prototype.getIdentity=function(){return re({},this.identity)},t.prototype.setIdentity=function(e){var n=re({},this.identity);this.identity=re({},e),Ze(n,this.identity)||this.listeners.forEach(function(r){r(e)})},t.prototype.addIdentityListener=function(e){this.listeners.add(e)},t.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},t}(),Le=typeof globalThis<"u"?globalThis:typeof global<"u"?global:self,Zn=function(){function t(){this.identityStore=new Zr,this.eventBridge=new Yr,this.applicationContextProvider=new Kr}return t.getInstance=function(e){return Le.analyticsConnectorInstances||(Le.analyticsConnectorInstances={}),Le.analyticsConnectorInstances[e]||(Le.analyticsConnectorInstances[e]=new t),Le.analyticsConnectorInstances[e]},t}();var ie=function(t){return t===void 0&&(t="$default_instance"),Zn.getInstance(t)},Kt=function(t,e){ie(e).identityStore.editIdentity().setUserId(t).commit()},$t=function(t,e){ie(e).identityStore.editIdentity().setDeviceId(t).commit()};var Yt=function(){function t(){this.name="identity",this.type="before",this.identityStore=ie().identityStore}return t.prototype.execute=function(e){return p(this,void 0,void 0,function(){var n;return f(this,function(r){return n=e.user_properties,n&&this.identityStore.editIdentity().updateUserProperties(n).commit(),[2,e]})})},t.prototype.setup=function(e){return p(this,void 0,void 0,function(){return f(this,function(n){return e.instanceName&&(this.identityStore=ie(e.instanceName).identityStore),[2]})})},t}();var Qt=function(){var t,e,n,r;if(typeof navigator>"u")return"";var i=navigator.userLanguage;return(r=(n=(e=(t=navigator.languages)===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:navigator.language)!==null&&n!==void 0?n:i)!==null&&r!==void 0?r:""};var Pe=function(t,e){return typeof t=="boolean"?t:t?.[e]!==!1},Je=function(t){return Pe(t,"attribution")},Xt=function(t){return Pe(t,"fileDownloads")},zt=function(t){return Pe(t,"formInteractions")},et=function(t){return Pe(t,"pageViews")},Zt=function(t){return Pe(t,"sessions")},Jt=function(t){var e=function(){return!1},n=void 0,r,i=t.pageCounter,o=et(t.defaultTracking);return o&&(e=void 0,r=void 0,t.defaultTracking&&typeof t.defaultTracking=="object"&&t.defaultTracking.pageViews&&typeof t.defaultTracking.pageViews=="object"&&("trackOn"in t.defaultTracking.pageViews&&(e=t.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in t.defaultTracking.pageViews&&(n=t.defaultTracking.pageViews.trackHistoryChanges),"eventType"in t.defaultTracking.pageViews&&t.defaultTracking.pageViews.eventType&&(r=t.defaultTracking.pageViews.eventType))),{trackOn:e,trackHistoryChanges:n,eventType:r,pageCounter:i}},en=function(t){return Je(t.defaultTracking)&&t.defaultTracking&&typeof t.defaultTracking=="object"&&t.defaultTracking.attribution&&typeof t.defaultTracking.attribution=="object"?v({},t.defaultTracking.attribution):{}};var tt=function(t,e){for(var n=0;n<e.length;n++){var r=e[n],i=r.name,o=r.args,s=r.resolve,u=t&&t[i];if(typeof u=="function"){var c=u.apply(t,o);typeof s=="function"&&s(c?.promise)}}return t},nt=function(t){var e=t;return e&&e._q!==void 0};var Jn="2.5.2";var Jr="Web",ei="$remote",er=function(){function t(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="amplitude-ts/".concat(Jn),typeof navigator<"u"&&(this.userAgent=navigator.userAgent)}return t.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},t.prototype.execute=function(e){var n,r;return p(this,void 0,void 0,function(){var i,o,s,u;return f(this,function(c){return i=new Date().getTime(),o=(n=this.config.lastEventId)!==null&&n!==void 0?n:-1,s=(r=e.event_id)!==null&&r!==void 0?r:o+1,this.config.lastEventId=s,e.time||(this.config.lastEventTime=i),u=v(v(v(v(v(v(v(v({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:i},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:Jr}),this.config.trackingOptions.language&&{language:Qt()}),this.config.trackingOptions.ipAddress&&{ip:ei}),{insert_id:Y(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:s,library:this.library,user_agent:this.userAgent}),[2,u]})})},t}();var rt=function(){function t(e){this.storage=e}return t.prototype.isEnabled=function(){return p(this,void 0,void 0,function(){var e,n,r,i,o;return f(this,function(s){switch(s.label){case 0:if(!this.storage)return[2,!1];e=String(Date.now()),n=new t(this.storage),r="AMP_TEST",s.label=1;case 1:return s.trys.push([1,4,5,7]),[4,n.set(r,e)];case 2:return s.sent(),[4,n.get(r)];case 3:return i=s.sent(),[2,i===e];case 4:return o=s.sent(),[2,!1];case 5:return[4,n.remove(r)];case 6:return s.sent(),[7];case 7:return[2]}})})},t.prototype.get=function(e){return p(this,void 0,void 0,function(){var n,r;return f(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:return n=i.sent(),n?[2,JSON.parse(n)]:[2,void 0];case 2:return r=i.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},t.prototype.getRaw=function(e){var n;return p(this,void 0,void 0,function(){return f(this,function(r){return[2,((n=this.storage)===null||n===void 0?void 0:n.getItem(e))||void 0]})})},t.prototype.set=function(e,n){var r;return p(this,void 0,void 0,function(){return f(this,function(i){try{(r=this.storage)===null||r===void 0||r.setItem(e,JSON.stringify(n))}catch{}return[2]})})},t.prototype.remove=function(e){var n;return p(this,void 0,void 0,function(){return f(this,function(r){try{(n=this.storage)===null||n===void 0||n.removeItem(e)}catch{}return[2]})})},t.prototype.reset=function(){var e;return p(this,void 0,void 0,function(){return f(this,function(n){try{(e=this.storage)===null||e===void 0||e.clear()}catch{}return[2]})})},t}();var it=1e3,tn=function(t){V(e,t);function e(n){var r=this,i;return r=t.call(this,(i=N())===null||i===void 0?void 0:i.localStorage)||this,r.loggerProvider=n?.loggerProvider,r}return e.prototype.set=function(n,r){var i;return p(this,void 0,void 0,function(){var o;return f(this,function(s){switch(s.label){case 0:return Array.isArray(r)&&r.length>it?(o=r.length-it,[4,t.prototype.set.call(this,n,r.slice(0,it))]):[3,2];case 1:return s.sent(),(i=this.loggerProvider)===null||i===void 0||i.error("Failed to save ".concat(o," events because the queue length exceeded ").concat(it,".")),[3,4];case 2:return[4,t.prototype.set.call(this,n,r)];case 3:s.sent(),s.label=4;case 4:return[2]}})})},e}(rt);var tr=function(t){V(e,t);function e(){var n;return t.call(this,(n=N())===null||n===void 0?void 0:n.sessionStorage)||this}return e}(rt);var nr=function(t){V(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={done:4},n}return e.prototype.send=function(n,r){return p(this,void 0,void 0,function(){var i=this;return f(this,function(o){return[2,new Promise(function(s,u){typeof XMLHttpRequest>"u"&&u(new Error("XHRTransport is not supported."));var c=new XMLHttpRequest;c.open("POST",n,!0),c.onreadystatechange=function(){if(c.readyState===i.state.done)try{var a=c.responseText,l=JSON.parse(a),d=i.buildResponse(l);s(d)}catch(m){u(m)}},c.setRequestHeader("Content-Type","application/json"),c.setRequestHeader("Accept","*/*"),c.send(JSON.stringify(r))})]})})},e}(de);var rr=function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.send=function(n,r){return p(this,void 0,void 0,function(){var i=this;return f(this,function(o){return[2,new Promise(function(s,u){var c=N();if(!c?.navigator.sendBeacon)throw new Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(r),l=c.navigator.sendBeacon(n,JSON.stringify(r));return s(l?i.buildResponse({code:200,events_ingested:r.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}):i.buildResponse({code:500}))}catch(d){u(d)}})]})})},e}(de);var ir=function(t,e,n){return n===void 0&&(n=!0),p(void 0,void 0,void 0,function(){var r,i,o,s,u,c,a,l,d;return f(this,function(m){switch(m.label){case 0:return r=Gt(t),[4,e.getRaw(r)];case 1:return i=m.sent(),i?n?[4,e.remove(r)]:[3,3]:[2,{optOut:!1}];case 2:m.sent(),m.label=3;case 3:return o=w(i.split("."),6),s=o[0],u=o[1],c=o[2],a=o[3],l=o[4],d=o[5],[2,{deviceId:s,userId:ti(u),sessionId:nn(a),lastEventId:nn(d),lastEventTime:nn(l),optOut:!!c}]}})})},nn=function(t){var e=parseInt(t,32);if(!isNaN(e))return e},ti=function(t){if(!(!atob||!escape||!t))try{return decodeURIComponent(escape(atob(t)))}catch{return}};var j="[Amplitude]",Ca="".concat(j," Page Viewed"),rn="".concat(j," Form Started"),or="".concat(j," Form Submitted"),sr="".concat(j," File Downloaded"),on="session_start",sn="session_end",ar="".concat(j," File Extension"),ur="".concat(j," File Name"),cr="".concat(j," Link ID"),lr="".concat(j," Link Text"),dr="".concat(j," Link URL"),ot="".concat(j," Form ID"),st="".concat(j," Form Name"),at="".concat(j," Form Destination"),Ce="cookie",pr="US";var ni=function(t){V(e,t);function e(n,r,i,o,s,u,c,a,l,d,m,y,g,T,h,_,U,I,A,F,b,S,k,B,Q,ee,ue,te,ce,ye,_e){i===void 0&&(i=new Xe),o===void 0&&(o={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),c===void 0&&(c=1e3),a===void 0&&(a=5),l===void 0&&(l=30),d===void 0&&(d=Ce),h===void 0&&(h=new be),_===void 0&&(_=M.Warn),I===void 0&&(I=!1),A===void 0&&(A=!1),S===void 0&&(S=""),k===void 0&&(k=pr),Q===void 0&&(Q=30*60*1e3),ee===void 0&&(ee=new tn({loggerProvider:h})),ue===void 0&&(ue={ipAddress:!0,language:!0,platform:!0}),te===void 0&&(te="fetch"),ce===void 0&&(ce=!1);var E=t.call(this,{apiKey:n,storageProvider:ee,transportProvider:an(te)})||this;return E.apiKey=n,E.appVersion=r,E.cookieOptions=o,E.defaultTracking=s,E.flushIntervalMillis=c,E.flushMaxRetries=a,E.flushQueueSize=l,E.identityStorage=d,E.ingestionMetadata=m,E.instanceName=y,E.loggerProvider=h,E.logLevel=_,E.minIdLength=U,E.offline=I,E.partnerId=F,E.plan=b,E.serverUrl=S,E.serverZone=k,E.sessionTimeout=Q,E.storageProvider=ee,E.trackingOptions=ue,E.transport=te,E.useBatch=ce,E._optOut=!1,E._cookieStorage=i,E.deviceId=u,E.lastEventId=g,E.lastEventTime=T,E.optOut=A,E.sessionId=B,E.pageCounter=_e,E.userId=ye,E.loggerProvider.enable(E.logLevel),E}return Object.defineProperty(e.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(n){this._cookieStorage!==n&&(this._cookieStorage=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deviceId",{get:function(){return this._deviceId},set:function(n){this._deviceId!==n&&(this._deviceId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userId",{get:function(){return this._userId},set:function(n){this._userId!==n&&(this._userId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sessionId",{get:function(){return this._sessionId},set:function(n){this._sessionId!==n&&(this._sessionId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(n){this._optOut!==n&&(this._optOut=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(n){this._lastEventTime!==n&&(this._lastEventTime=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(n){this._lastEventId!==n&&(this._lastEventId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(n){this._pageCounter!==n&&(this._pageCounter=n,this.updateStorage())},enumerable:!1,configurable:!0}),e.prototype.updateStorage=function(){var n={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter};this.cookieStorage.set(ze(this.apiKey),n)},e}(Rt);var fr=function(t,e,n){return e===void 0&&(e={}),p(void 0,void 0,void 0,function(){var r,i,o,s,u,c,a,l,d,m,y,g,T,h,_,U,I,A,F,b,S,k,B,Q,ee,ue,te,ce,ye,_e,E,dt,pt,ft,mt,vt,gt,ht,yt,_t;return f(this,function(me){switch(me.label){case 0:return r=e.identityStorage||Ce,I={},r===Ce?[3,1]:(o="",[3,5]);case 1:return(F=(A=e.cookieOptions)===null||A===void 0?void 0:A.domain)!==null&&F!==void 0?(s=F,[3,4]):[3,2];case 2:return[4,ii()];case 3:s=me.sent(),me.label=4;case 4:o=s,me.label=5;case 5:return i=v.apply(void 0,[(I.domain=o,I.expiration=365,I.sameSite="Lax",I.secure=!1,I.upgrade=!0,I),e.cookieOptions]),u=ri(e.identityStorage,i),[4,ir(t,u,(S=(b=e.cookieOptions)===null||b===void 0?void 0:b.upgrade)!==null&&S!==void 0?S:!0)];case 6:return c=me.sent(),[4,u.get(ze(t))];case 7:return a=me.sent(),l=ge(),d=(ee=(Q=(B=(k=e.deviceId)!==null&&k!==void 0?k:l.deviceId)!==null&&B!==void 0?B:a?.deviceId)!==null&&Q!==void 0?Q:c.deviceId)!==null&&ee!==void 0?ee:Y(),m=(ue=a?.lastEventId)!==null&&ue!==void 0?ue:c.lastEventId,y=(te=a?.lastEventTime)!==null&&te!==void 0?te:c.lastEventTime,g=(ye=(ce=e.optOut)!==null&&ce!==void 0?ce:a?.optOut)!==null&&ye!==void 0?ye:c.optOut,T=(_e=a?.sessionId)!==null&&_e!==void 0?_e:c.sessionId,h=(dt=(E=e.userId)!==null&&E!==void 0?E:a?.userId)!==null&&dt!==void 0?dt:c.userId,n.previousSessionDeviceId=(pt=a?.deviceId)!==null&&pt!==void 0?pt:c.deviceId,n.previousSessionUserId=(ft=a?.userId)!==null&&ft!==void 0?ft:c.userId,_={ipAddress:(vt=(mt=e.trackingOptions)===null||mt===void 0?void 0:mt.ipAddress)!==null&&vt!==void 0?vt:!0,language:(ht=(gt=e.trackingOptions)===null||gt===void 0?void 0:gt.language)!==null&&ht!==void 0?ht:!0,platform:(_t=(yt=e.trackingOptions)===null||yt===void 0?void 0:yt.platform)!==null&&_t!==void 0?_t:!0},U=a?.pageCounter,[2,new ni(t,e.appVersion,u,i,e.defaultTracking,d,e.flushIntervalMillis,e.flushMaxRetries,e.flushQueueSize,r,e.ingestionMetadata,e.instanceName,m,y,e.loggerProvider,e.logLevel,e.minIdLength,e.offline,g,e.partnerId,e.plan,e.serverUrl,e.serverZone,T,e.sessionTimeout,e.storageProvider,_,e.transport,e.useBatch,h,U)]}})})},ri=function(t,e){switch(t===void 0&&(t=Ce),e===void 0&&(e={}),t){case"localStorage":return new tn;case"sessionStorage":return new tr;case"none":return new Xe;case"cookie":default:return new we(v(v({},e),{expirationDays:e.expiration}))}},an=function(t){return t==="xhr"?new nr:t==="beacon"?new rr:new Wt},ii=function(t){return p(void 0,void 0,void 0,function(){var e,n,r,i,o,o,s,u,c,a;return f(this,function(l){switch(l.label){case 0:return[4,new we().isEnabled()];case 1:if(!l.sent()||!t&&typeof location>"u")return[2,""];for(e=t??location.hostname,n=e.split("."),r=[],i="AMP_TLDTEST",o=n.length-2;o>=0;--o)r.push(n.slice(o).join("."));o=0,l.label=2;case 2:return o<r.length?(s=r[o],u={domain:"."+s},c=new we(u),[4,c.set(i,1)]):[3,7];case 3:return l.sent(),[4,c.get(i)];case 4:return a=l.sent(),a?[4,c.remove(i)]:[3,6];case 5:return l.sent(),[2,"."+s];case 6:return o++,[3,2];case 7:return[2,""]}})})};var vr=function(t,e,n){return e===void 0&&(e=""),n===void 0&&(n=10),[le,e,t.substring(0,n)].filter(Boolean).join("_")},mr=function(t){var e=t.split(".");return e.length<=2?t:e.slice(e.length-2,e.length).join(".")},oi=function(t){return Object.values(t).every(function(e){return!e})},gr=function(t,e,n,r){r===void 0&&(r=!0);var i=t.referrer,o=t.referring_domain,s=Te(t,["referrer","referring_domain"]),u=e||{},c=u.referrer,a=u.referring_domain,l=Te(u,["referrer","referring_domain"]);if(si(n.excludeReferrers,t.referring_domain)||!r&&oi(t)&&e)return!1;var d=JSON.stringify(s)!==JSON.stringify(l),m=mr(o||"")!==mr(a||"");return!e||d||m},si=function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=""),t.some(function(n){return n instanceof RegExp?n.test(e):n===e})},hr=function(t,e){var n=v(v({},pe),t),r=Object.entries(n).reduce(function(i,o){var s,u=w(o,2),c=u[0],a=u[1];return i.setOnce("initial_".concat(c),(s=a??e.initialEmptyValue)!==null&&s!==void 0?s:"EMPTY"),a?i.set(c,a):i.unset(c)},new ne);return Ie(r)},yr=function(t){var e=t;return e?(e.startsWith(".")&&(e=e.substring(1)),[new RegExp("".concat(e.replace(".","\\\\."),"$"))]):[]};var un=function(t){var e=this;t===void 0&&(t={});var n={name:"@amplitude/plugin-web-attribution-browser",type:"before",setup:function(r,i){var o;return p(this,void 0,void 0,function(){var s,u,c,a,l,d,m,y;return f(this,function(g){switch(g.label){case 0:return s=v({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:yr((o=r.cookieOptions)===null||o===void 0?void 0:o.domain)},t),r.loggerProvider.log("Installing @amplitude/plugin-web-attribution-browser."),u=r.cookieStorage,c=vr(r.apiKey,"MKTG"),[4,Promise.all([new Se().parse(),u.get(c)])];case 1:return a=w.apply(void 0,[g.sent(),2]),l=a[0],d=a[1],m=xe(r.sessionTimeout,r.lastEventTime),gr(l,d,s,m)&&(s.resetSessionOnNewCampaign&&(i.setSessionId(Date.now()),r.loggerProvider.log("Created a new session for new campaign.")),r.loggerProvider.log("Tracking attribution."),y=hr(l,s),i.track(y),u.set(c,l)),[2]}})})},execute:function(r){return p(e,void 0,void 0,function(){return f(this,function(i){return[2,r]})})}};return n};var _r=function(t){var e={};for(var n in t){var r=t[n];r&&(e[n]=r)}return e};var cn=function(t){t===void 0&&(t={});var e,n=N(),r=void 0,i,o,s=function(){return p(void 0,void 0,void 0,function(){var m,y,g;return f(this,function(T){switch(T.label){case 0:return o.pageCounter=o.pageCounter?o.pageCounter+1:1,y={event_type:(g=t.eventType)!==null&&g!==void 0?g:"[Amplitude] Page Viewed"},m=[{}],[4,ai()];case 1:return[2,(y.event_properties=v.apply(void 0,[v.apply(void 0,m.concat([T.sent()])),{"[Amplitude] Page Domain":typeof location<"u"&&location.hostname||"","[Amplitude] Page Location":typeof location<"u"&&location.href||"","[Amplitude] Page Path":typeof location<"u"&&location.pathname||"","[Amplitude] Page Title":typeof document<"u"&&document.title||"","[Amplitude] Page URL":typeof location<"u"&&location.href.split("?")[0]||"","[Amplitude] Page Counter":o.pageCounter}]),y)]}})})},u=function(){return typeof t.trackOn>"u"||typeof t.trackOn=="function"&&t.trackOn()},c=typeof location<"u"?location.href:null,a=function(){return p(void 0,void 0,void 0,function(){var m,y,g,T,h;return f(this,function(_){switch(_.label){case 0:return m=location.href,y=ci(t.trackHistoryChanges,m,c||"")&&u(),c=m,y?(r?.log("Tracking page view event"),e!=null?[3,1]:(g=void 0,[3,3])):[3,4];case 1:return h=(T=e).track,[4,s()];case 2:g=h.apply(T,[_.sent()]),_.label=3;case 3:_.label=4;case 4:return[2]}})})},l=function(){a()},d={name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(m,y){return p(void 0,void 0,void 0,function(){var g,T;return f(this,function(h){switch(h.label){case 0:return e=y,o=m,r=m.loggerProvider,r.log("Installing @amplitude/plugin-page-view-tracking-browser"),n&&(n.addEventListener("popstate",l),i=n.history.pushState,n.history.pushState=new Proxy(n.history.pushState,{apply:function(_,U,I){var A=w(I,3),F=A[0],b=A[1],S=A[2];_.apply(U,[F,b,S]),a()}})),u()?(r.log("Tracking page view event"),T=(g=e).track,[4,s()]):[3,2];case 1:T.apply(g,[h.sent()]),h.label=2;case 2:return[2]}})})},execute:function(m){return p(void 0,void 0,void 0,function(){var y;return f(this,function(g){switch(g.label){case 0:return t.trackOn==="attribution"&&ui(m)?(r?.log("Enriching campaign event to page view event with campaign parameters"),[4,s()]):[3,2];case 1:y=g.sent(),m.event_type=y.event_type,m.event_properties=v(v({},m.event_properties),y.event_properties),g.label=2;case 2:return[2,m]}})})},teardown:function(){return p(void 0,void 0,void 0,function(){return f(this,function(m){return n&&(n.removeEventListener("popstate",l),i&&(n.history.pushState=i)),[2]})})}};return d},ai=function(){return p(void 0,void 0,void 0,function(){var t;return f(this,function(e){switch(e.label){case 0:return t=_r,[4,new Se().parse()];case 1:return[2,t.apply(void 0,[e.sent()])]}})})},ui=function(t){if(t.event_type==="$identify"&&t.user_properties){var e=t.user_properties,n=e[L.SET]||{},r=e[L.UNSET]||{},i=q(q([],w(Object.keys(n)),!1),w(Object.keys(r)),!1);return Object.keys(pe).every(function(o){return i.includes(o)})}return!1},ci=function(t,e,n){switch(t){case"pathOnly":return e.split("?")[0]!==n.split("?")[0];default:return e!==n}};var Er=function(){var t,e=[],n=function(a,l,d){a.addEventListener(l,d),e.push({element:a,type:l,handler:d})},r=function(){e.forEach(function(a){var l=a.element,d=a.type,m=a.handler;l?.removeEventListener(d,m)}),e=[]},i="@amplitude/plugin-form-interaction-tracking-browser",o="enrichment",s=function(a,l){return p(void 0,void 0,void 0,function(){var d,m;return f(this,function(y){return l?typeof document>"u"?[2]:(d=function(g){var T=!1;n(g,"change",function(){var h;T||l.track(rn,(h={},h[ot]=he(g.id),h[st]=he(g.name),h[at]=g.action,h)),T=!0}),n(g,"submit",function(){var h,_;T||l.track(rn,(h={},h[ot]=he(g.id),h[st]=he(g.name),h[at]=g.action,h)),l.track(or,(_={},_[ot]=he(g.id),_[st]=he(g.name),_[at]=g.action,_)),T=!1})},m=Array.from(document.getElementsByTagName("form")),m.forEach(d),typeof MutationObserver<"u"&&(t=new MutationObserver(function(g){g.forEach(function(T){T.addedNodes.forEach(function(h){h.nodeName==="FORM"&&d(h),"querySelectorAll"in h&&typeof h.querySelectorAll=="function"&&Array.from(h.querySelectorAll("form")).map(d)})})}),t.observe(document.body,{subtree:!0,childList:!0})),[2]):(a.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked."),[2])})})},u=function(a){return p(void 0,void 0,void 0,function(){return f(this,function(l){return[2,a]})})},c=function(){return p(void 0,void 0,void 0,function(){return f(this,function(a){return t?.disconnect(),r(),[2]})})};return{name:i,type:o,setup:s,execute:u,teardown:c}},he=function(t){if(typeof t=="string")return t};var Tr=function(){var t,e=[],n=function(a,l,d){a.addEventListener(l,d),e.push({element:a,type:l,handler:d})},r=function(){e.forEach(function(a){var l=a.element,d=a.type,m=a.handler;l?.removeEventListener(d,m)}),e=[]},i="@amplitude/plugin-file-download-tracking-browser",o="enrichment",s=function(a,l){return p(void 0,void 0,void 0,function(){var d,m,y;return f(this,function(g){return l?typeof document>"u"?[2]:(d=function(T){var h;try{h=new URL(T.href,window.location.href)}catch{return}var _=m.exec(h.href),U=_?.[1];U&&n(T,"click",function(){var I;U&&l.track(sr,(I={},I[ar]=U,I[ur]=h.pathname,I[cr]=T.id,I[lr]=T.text,I[dr]=T.href,I))})},m=/\\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)$/,y=Array.from(document.getElementsByTagName("a")),y.forEach(d),typeof MutationObserver<"u"&&(t=new MutationObserver(function(T){T.forEach(function(h){h.addedNodes.forEach(function(_){_.nodeName==="A"&&d(_),"querySelectorAll"in _&&typeof _.querySelectorAll=="function"&&Array.from(_.querySelectorAll("a")).map(d)})})}),t.observe(document.body,{subtree:!0,childList:!0})),[2]):(a.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked."),[2])})})},u=function(a){return p(void 0,void 0,void 0,function(){return f(this,function(l){return[2,a]})})},c=function(){return p(void 0,void 0,void 0,function(){return f(this,function(a){return t?.disconnect(),r(),[2]})})};return{name:i,type:o,setup:s,execute:u,teardown:c}};var Ir=!1,br=function(t){if(!(Ir||t.defaultTracking!==void 0)){var e=\`\\\`options.defaultTracking\\\` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to \\\`options.defaultTracking\\\`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:
11
+
12
+ amplitude.init(<YOUR_API_KEY>, {
13
+ defaultTracking: true,
14
+ });
15
+
16
+ Visit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details.\`;t.loggerProvider.warn(e),Ir=!0}};var Sr=function(){var t="@amplitude/plugin-network-checker-browser",e="before",n=N(),r=[],i=function(c,a){n&&(n.addEventListener(c,a),r.push({type:c,handler:a}))},o=function(){r.forEach(function(c){var a=c.type,l=c.handler;n&&n.removeEventListener(a,l)}),r=[]},s=function(c,a){return p(void 0,void 0,void 0,function(){return f(this,function(l){return c.offline=!navigator.onLine,i("online",function(){c.loggerProvider.debug("Network connectivity changed to online."),c.offline=!1,setTimeout(function(){a.flush()},c.flushIntervalMillis)}),i("offline",function(){c.loggerProvider.debug("Network connectivity changed to offline."),c.offline=!0}),[2]})})},u=function(){return p(void 0,void 0,void 0,function(){return f(this,function(c){return o(),[2]})})};return{name:t,type:e,setup:s,teardown:u}};var xr=function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n,r,i){n===void 0&&(n="");var o,s;return arguments.length>2?(o=r,s=i):typeof r=="string"?(o=r,s=void 0):(o=r?.userId,s=r),H(this._init(v(v({},s),{userId:o,apiKey:n})))},e.prototype._init=function(n){var r,i;return p(this,void 0,void 0,function(){var o,s,u,c,a=this;return f(this,function(l){switch(l.label){case 0:return this.initializing?[2]:(this.initializing=!0,[4,fr(n.apiKey,n,this)]);case 1:return o=l.sent(),[4,t.prototype._init.call(this,o)];case 2:return l.sent(),this.setSessionId((i=(r=n.sessionId)!==null&&r!==void 0?r:this.config.sessionId)!==null&&i!==void 0?i:Date.now()),s=ie(n.instanceName),s.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),this.config.offline===Ge?[3,4]:[4,this.add(Sr()).promise];case 3:l.sent(),l.label=4;case 4:return[4,this.add(new At).promise];case 5:return l.sent(),[4,this.add(new er).promise];case 6:return l.sent(),[4,this.add(new Yt).promise];case 7:return l.sent(),br(this.config),Xt(this.config.defaultTracking)?[4,this.add(Tr()).promise]:[3,9];case 8:l.sent(),l.label=9;case 9:return zt(this.config.defaultTracking)?[4,this.add(Er()).promise]:[3,11];case 10:l.sent(),l.label=11;case 11:return Je(this.config.defaultTracking)?(u=en(this.config),c=un(u),[4,this.add(c).promise]):[3,13];case 12:l.sent(),l.label=13;case 13:return et(this.config.defaultTracking)?[4,this.add(cn(Jt(this.config))).promise]:[3,15];case 14:l.sent(),l.label=15;case 15:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 16:return l.sent(),s.eventBridge.setEventReceiver(function(d){a.track(d.eventType,d.eventProperties)}),[2]}})})},e.prototype.getUserId=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.userId},e.prototype.setUserId=function(n){if(!this.config){this.q.push(this.setUserId.bind(this,n));return}(n!==this.config.userId||n===void 0)&&(this.config.userId=n,Kt(n,this.config.instanceName))},e.prototype.getDeviceId=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.deviceId},e.prototype.setDeviceId=function(n){if(!this.config){this.q.push(this.setDeviceId.bind(this,n));return}this.config.deviceId=n,$t(n,this.config.instanceName)},e.prototype.reset=function(){this.setDeviceId(Y()),this.setUserId(void 0)},e.prototype.getSessionId=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.sessionId},e.prototype.setSessionId=function(n){var r;if(!this.config){this.q.push(this.setSessionId.bind(this,n));return}if(n!==this.config.sessionId){var i=this.getSessionId(),o=this.config.lastEventTime,s=(r=this.config.lastEventId)!==null&&r!==void 0?r:-1;this.config.sessionId=n,this.config.lastEventTime=void 0,this.config.pageCounter=0,Zt(this.config.defaultTracking)&&(i&&o&&this.track(sn,void 0,{device_id:this.previousSessionDeviceId,event_id:++s,session_id:i,time:o+1,user_id:this.previousSessionUserId}),this.config.lastEventTime=this.config.sessionId,this.track(on,void 0,{event_id:++s,session_id:this.config.sessionId,time:this.config.lastEventTime})),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId}},e.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},e.prototype.setTransport=function(n){if(!this.config){this.q.push(this.setTransport.bind(this,n));return}this.config.transportProvider=an(n)},e.prototype.identify=function(n,r){if(nt(n)){var i=n._q;n._q=[],n=tt(new ne,i)}return r?.user_id&&this.setUserId(r.user_id),r?.device_id&&this.setDeviceId(r.device_id),t.prototype.identify.call(this,n,r)},e.prototype.groupIdentify=function(n,r,i,o){if(nt(i)){var s=i._q;i._q=[],i=tt(new ne,s)}return t.prototype.groupIdentify.call(this,n,r,i,o)},e.prototype.revenue=function(n,r){if(nt(n)){var i=n._q;n._q=[],n=tt(new Ct,i)}return t.prototype.revenue.call(this,n,r)},e.prototype.process=function(n){return p(this,void 0,void 0,function(){var r,i;return f(this,function(o){return r=Date.now(),i=xe(this.config.sessionTimeout,this.config.lastEventTime),n.event_type!==on&&n.event_type!==sn&&(!n.session_id||n.session_id===this.getSessionId())&&i&&this.setSessionId(r),[2,t.prototype.process.call(this,n)]})})},e}(Pt);var li=function(){var t=new xr;return{init:R(t.init.bind(t),"init",P(t),C(t,["config"])),add:R(t.add.bind(t),"add",P(t),C(t,["config.apiKey","timeline.plugins"])),remove:R(t.remove.bind(t),"remove",P(t),C(t,["config.apiKey","timeline.plugins"])),track:R(t.track.bind(t),"track",P(t),C(t,["config.apiKey","timeline.queue.length"])),logEvent:R(t.logEvent.bind(t),"logEvent",P(t),C(t,["config.apiKey","timeline.queue.length"])),identify:R(t.identify.bind(t),"identify",P(t),C(t,["config.apiKey","timeline.queue.length"])),groupIdentify:R(t.groupIdentify.bind(t),"groupIdentify",P(t),C(t,["config.apiKey","timeline.queue.length"])),setGroup:R(t.setGroup.bind(t),"setGroup",P(t),C(t,["config.apiKey","timeline.queue.length"])),revenue:R(t.revenue.bind(t),"revenue",P(t),C(t,["config.apiKey","timeline.queue.length"])),flush:R(t.flush.bind(t),"flush",P(t),C(t,["config.apiKey","timeline.queue.length"])),getUserId:R(t.getUserId.bind(t),"getUserId",P(t),C(t,["config","config.userId"])),setUserId:R(t.setUserId.bind(t),"setUserId",P(t),C(t,["config","config.userId"])),getDeviceId:R(t.getDeviceId.bind(t),"getDeviceId",P(t),C(t,["config","config.deviceId"])),setDeviceId:R(t.setDeviceId.bind(t),"setDeviceId",P(t),C(t,["config","config.deviceId"])),reset:R(t.reset.bind(t),"reset",P(t),C(t,["config","config.userId","config.deviceId"])),getSessionId:R(t.getSessionId.bind(t),"getSessionId",P(t),C(t,["config"])),setSessionId:R(t.setSessionId.bind(t),"setSessionId",P(t),C(t,["config"])),extendSession:R(t.extendSession.bind(t),"extendSession",P(t),C(t,["config"])),setOptOut:R(t.setOptOut.bind(t),"setOptOut",P(t),C(t,["config"])),setTransport:R(t.setTransport.bind(t),"setTransport",P(t),C(t,["config"]))}},D=li();var Nu=D.add,Bu=D.extendSession,Fu=D.flush,Vu=D.getDeviceId,Hu=D.getSessionId,qu=D.getUserId,ju=D.groupIdentify,Gu=D.identify,wr=D.init,Wu=D.logEvent,Ku=D.remove,$u=D.reset,Yu=D.revenue,Qu=D.setDeviceId,Xu=D.setGroup,zu=D.setOptOut,Zu=D.setSessionId,Ju=D.setTransport,ec=D.setUserId,oe=D.track;var G=t=>{window.dispatchEvent(new CustomEvent("builderdevtools",{detail:{eventName:t}}))},Lr=()=>{let t=new URL(window.location.href),e=t.hash,n=\`#\${hn}=\`,r=Math.random().toString(36).substring(2,15);wr("553eac7ac4be2afc322dbee32c6545ef",r,{logLevel:We.LogLevel.None,serverUrl:En});let i="anonymous";e.startsWith(n)&&(i=e.slice(n.length),i&&(di(i),t.hash="",window.history.replaceState({},"",t.href))),G("init")};var di=t=>{if(typeof t=="string"&&t.length>0){let e=De();Re({...e,builderUserId:t})}},De=()=>{let t=localStorage.getItem(Pr);if(t)try{let e=JSON.parse(t);return(!e.ctas||typeof e.ctas!="object")&&(e=Re({...e,ctas:{}})),e.menuOpenedTs&&(e=Re({...e,ctas:{...e.ctas,menuOpened:e.menuOpenedTs}}),delete e.menuOpenedTs),e}catch(e){console.error(e)}return Re({firstVisitTs:Date.now(),ctas:{},builderUserId:""})},Re=t=>{try{localStorage.setItem(Pr,JSON.stringify(t))}catch(e){console.error(e)}return t},ln=t=>!!De().ctas[t],dn=t=>{let e=De();return Re({...e,ctas:{...e.ctas,[t]:Date.now()}})},Pr="builderDevtools";function Cr(t){pi(t),fi(t),mi(t),vi(t)}function pi(t){let e=t.getElementById("input-register");e.addEventListener("change",async n=>{n.stopPropagation();let r=t.getElementById("input-name"),i=t.querySelector(".nav-cmp-input");i.classList.add("input-loading"),i.classList.remove("input-enabled");let o=r.dataset.id,s=r.dataset.prop,u=await Me({cmpId:o,name:s,registerInput:e.checked});G("registryUpdate"),X(u),Ae(t,o,s),se(t,o),i.classList.remove("input-loading")})}function fi(t){t.getElementById("input-open-source").addEventListener("click",n=>{n.preventDefault(),n.stopPropagation();let r=n.target,i=O.components.find(o=>o.id===r?.dataset.id);i&&ve({filePath:i.filePath})})}function mi(t){let e=t.getElementById("input-name"),n=e.closest(".ui-text-input"),r="",i;e.addEventListener("focus",o=>{clearTimeout(i),n.classList.remove("saved"),o.stopPropagation(),r=e.value}),e.addEventListener("blur",async o=>{if(o.stopPropagation(),clearTimeout(i),n.classList.remove("saved"),e.value!==r){if(e.value.trim().length<3){e.value=r;return}n.classList.add("saved"),i=setTimeout(()=>{n.classList.remove("saved")},3e3);let s=e.dataset.id,u=e.dataset.prop,c=await Me({cmpId:s,name:u,friendlyName:e.value});G("registryUpdate"),X(c),fe(t),se(t,s),Ae(t,s,u)}}),e.addEventListener("keyup",o=>{o.stopPropagation(),clearTimeout(i),n.classList.remove("saved"),o.key==="Escape"?(e.value=r,e.blur()):o.key==="Enter"&&e.blur()})}function vi(t){let e=t.getElementById("input-type");e.addEventListener("change",async n=>{n.stopPropagation();let r=e.dataset.id,i=e.dataset.prop,o=await Me({cmpId:r,name:i,type:e.value});G("registryUpdate"),X(o),fe(t),se(t,r),Ae(t,r,i)})}function Ae(t,e,n){let r=O.components.find(m=>m.id===e);if(!r)return null;let i=r.inputs.find(m=>m.name===n);if(!i)return null;let o=t.querySelector(".nav-cmp-input");i.isRegistered?o.classList.add("input-enabled"):o.classList.remove("input-enabled");let s=t.getElementById("input-register");s.checked=!!i.isRegistered;let u=t.getElementById("cmp-input-title");u.innerText=r.name+": "+(i.friendlyName||i.name);let c=t.getElementById("input-open-source");c.innerText=\`Open \${r.displayFilePath}\`,c.dataset.id=r.id;let a=t.getElementById("cmp-prop-name");a.innerText=i.name;let l=t.getElementById("cmp-prop-type");l.innerText=qe(i.type);let d=t.getElementById("input-name");return d.dataset.id=r.id,d.dataset.prop=i.name,d.value=i.friendlyName||i.name,gi(t,r,i),i}function gi(t,e,n){let r=t.getElementById("input-type");r.dataset.id=e.id,r.dataset.prop=n.name,r.innerHTML="";let i=n.type,o=Ne.includes(i),s=Be.includes(i),u=Fe.includes(i),c=Ve.includes(i),a=He.includes(i);Pn.forEach(l=>{let d=document.createElement("option");d.value=l.value,d.innerText=l.text,d.disabled=Ne.includes(l.value)&&!o||Be.includes(l.value)&&!s||Fe.includes(l.value)&&!u||Ve.includes(l.value)&&!c||He.includes(l.value)&&!a,r.appendChild(d)}),r.value=i}function Rr(t){hi(t),yi(t),_i(t),Ti(t),Ei(t)}function hi(t){t.getElementById("cmp-register").addEventListener("change",n=>{n.stopPropagation(),ut(t,"update")})}async function ut(t,e){let n=t.querySelector(".nav-cmp-detail"),r=t.getElementById("cmp-error"),i=t.getElementById("cmp-register"),o=i.closest(".ui-switch");n.classList.remove("cmp-enabled"),i.checked&&n.classList.add("cmp-loading");try{let s=i.dataset.id,u;e==="load"?u=await bn({cmpId:s}):i.checked?(u=await Sn({cmpId:s}),G("registryUpdate"),oe("interaction",{type:"click",name:"register component",detail:s})):(u=await wn({cmpId:s}),G("registryUpdate"),oe("interaction",{type:"click",name:"unregister component",detail:s})),X(u),fe(t);let c=se(t,s);e==="update"&&c&&(i.checked?(n.classList.add("cmp-enabled"),Et(t,\`<strong>\${c.name}</strong> is now registered in <strong>\${O.registryDisplayPath}</strong> and available for use in the Builder Visual Editor\`)):Et(t,\`<strong>\${c.name}</strong> has been unregistered from <strong>\${O.registryDisplayPath}</strong> and removed from the Builder Visual Editor\`))}catch(s){console.error(s),r.innerHTML=\`<p class="error">Error loading components</p><p class="error">\${s.message||s}</p>\`,o.style.display="none"}n.classList.remove("cmp-loading")}function yi(t){let e=t.getElementById("cmp-name"),n=e.closest(".ui-text-input"),r="",i;e.addEventListener("focus",o=>{clearTimeout(i),n.classList.remove("saved"),o.stopPropagation(),r=e.value}),e.addEventListener("blur",async o=>{if(o.stopPropagation(),clearTimeout(i),n.classList.remove("saved"),e.value!==r){if(e.value.trim().length<3){e.value=r;return}n.classList.add("saved"),i=setTimeout(()=>{n.classList.remove("saved")},3e3);let s=e.dataset.id,u=await xn({cmpId:s,name:e.value});G("registryUpdate"),X(u),fe(t),se(t,s)}}),e.addEventListener("keyup",o=>{o.stopPropagation(),clearTimeout(i),n.classList.remove("saved"),o.key==="Escape"?(e.value=r,e.blur()):o.key==="Enter"&&e.blur()})}function se(t,e){let n=O.components.find(l=>l.id===e);if(!n)return null;let r=t.getElementById("cmp-register"),i=t.getElementById("cmp-error"),o=r.closest(".ui-switch");o.style.display="",i.innerHTML="",r.dataset.id=n.id,r.checked=!!n.isRegistered;let s=t.querySelector(".nav-cmp-detail");n.isRegistered?s.classList.add("cmp-enabled"):s.classList.remove("cmp-enabled");let u=t.getElementById("cmp-name");u.dataset.id=n.id,u.value=n.name;let c=t.getElementById("cmp-open-source");c.innerText=\`Open \${n.displayFilePath}\`,c.dataset.id=n.id;let a=t.getElementById("cmp-detail-title");return a.innerText=\`\${n.name} Component\`,Ii(t,n),n}function _i(t){t.getElementById("cmp-open-source").addEventListener("click",n=>{n.preventDefault(),n.stopPropagation();let r=n.target,i=O.components.find(o=>o.id===r?.dataset.id);i&&(ve({filePath:i.filePath}),oe("interaction",{type:"click",name:"open component source file",detail:i.filePath}))})}function Ei(t){t.getElementById("btn-inputs-reload").addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),ut(t,"load")})}function Ti(t){t.getElementById("cmp-detail-inputs").addEventListener("click",n=>{n.preventDefault(),n.stopPropagation();let i=n.target?.closest("button"),o=i?.dataset.id,s=i?.dataset.propName;Ae(t,o,s)&&W(t,"nav-cmp-input")})}function Ii(t,e){let n=t.getElementById("cmp-detail-inputs"),r=e.inputs.filter(i=>!i.hideFromUI);r.length>0?(n.innerHTML="",r.forEach(i=>{n.appendChild(bi(e,i))})):n.innerHTML=\`<p class="cmp-inputs-empty">\${e.name} component does not have any props</p>\`}function bi(t,e){let n=document.createElement("button");n.dataset.id=t.id,n.dataset.propName=e.name,n.className="cmp-input-item nav-list-item",e.isRegistered||n.classList.add("cmp-input-item-unregistered");let r=document.createElement("span"),i=qe(e.type);r.className=\`nav-list-item-icon input-icon input-icon-\${i}\`,n.appendChild(r);let o=document.createElement("span");o.innerText=e.friendlyName||e.name,n.appendChild(o);let s=document.createElement("span");return s.className="nav-list-item-note",s.innerText=e.type,n.appendChild(s),n}function Ar(t){t.getElementById("open-builder-registry").addEventListener("click",r=>{r.preventDefault(),r.stopPropagation(),ve({filePath:O.registryPath,line:1,column:1})}),t.getElementById("cmp-list").addEventListener("click",r=>{r.preventDefault(),r.stopPropagation();let o=r.target?.dataset.id,s=O.components.find(u=>u.id===o);if(s){let u=t.querySelector(".nav-cmp-detail .section-content");u.scrollTop=0,se(t,s.id),W(t,"nav-cmp-detail"),s.isRegistered&&ut(t,"load")}})}function kr(t){let e=In();Si(t,e)}async function Si(t,e){let n=t.getElementById("cmp-list"),r=t.querySelector(".nav-cmp-list");r.classList.add("nav-loading");let i=t.getElementById("open-builder-registry");try{let o=await e;X(o),fe(t),O.registryDisplayPath?i.innerText="Open "+o.registryDisplayPath:i.innerText=""}catch(o){n.innerHTML=\`<p class="error">Error loading components</p><p class="error">\${o.message||o}</p>\`,console.error(o)}r.classList.remove("nav-loading")}function fe(t){let e=t.getElementById("cmp-list");e.innerHTML="";let n=O.components.filter(i=>i.isRegistered),r=O.components.filter(i=>!i.isRegistered);Dr(e,"Registered Components",n),Dr(e,"Unregistered Components",r)}function Dr(t,e,n){if(n.length>0){let r=document.createElement("h4");r.innerText=e,t.appendChild(r),n.forEach(i=>{t.appendChild(xi(i))})}}function xi(t){let e=document.createElement("button");e.dataset.id=t.id,e.className="cmp-item nav-list-item",t.isRegistered&&e.classList.add("registered");let n=document.createElement("span");n.className="nav-list-item-icon",t.image&&(n.style.backgroundImage=\`url(\${t.image})\`),e.appendChild(n);let r=document.createElement("span");r.className="nav-list-item-name",r.innerText=t.name,e.appendChild(r);let i=document.createElement("span");return i.className="nav-list-item-note",i.innerText=t.displayFilePath||"",e.appendChild(i),e}var Or=t=>{t.querySelector(".menu-toggle").addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),ae(t,!0)}),t.getElementById("close").addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),ae(t,!1)}),t.getElementById("hit").addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),ae(t,!1)}),pn(t),t.addEventListener("click",e=>e.stopPropagation()),wi(t)},ae=(t,e)=>{e?(document.body.classList.add("builder-no-scroll"),t.host.classList.add("show-builder-menu"),G("menuOpen"),dn("menuOpened"),oe("interaction",{type:"click",name:"open dev-tools menu"})):(document.body.classList.remove("builder-no-scroll"),t.host.classList.remove("show-builder-menu"),G("menuClose"),setTimeout(()=>{W(t,"nav-home")},300)),Ln(e)},wi=t=>{if(!ln("menuOpened")){Li(t);return}let e=De();if(!((Date.now()-e.firstVisitTs)/1e3/60<10)&&!ln("feedback")){dn("feedback"),Pi(t);return}},Li=t=>{let e=document.createElement("a");e.classList.add("menu-toggle-tooltip"),e.href="#open-dev-tools",e.innerHTML=\`
30
17
  <div class="menu-toggle-tooltip-content">
31
18
  <h3>Open Builder Devtools</h3>
32
19
  <p>Start registering your components</p>
33
20
  </div>
34
- \`,o.appendChild(r),setTimeout(()=>{r.classList.add("menu-toggle-tooltip-show"),r.addEventListener("click",i=>{i.preventDefault(),i.stopPropagation(),r.classList.remove("menu-toggle-tooltip-show"),jo(o,!0)})},1e3)},w_=o=>{let r=document.createElement("a");r.classList.add("menu-toggle-tooltip"),r.href="https://docs.google.com/forms/d/e/1FAIpQLSdqZcJpRtm_Ia5DTHP6SDY9Xa6LID3KiTjRWkjMzWyJRUtSHw/viewform",r.target="_blank",r.innerHTML=\`
21
+ \`,t.appendChild(e),setTimeout(()=>{e.classList.add("menu-toggle-tooltip-show"),e.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),e.classList.remove("menu-toggle-tooltip-show"),ae(t,!0)})},1e3)},Pi=t=>{let e=document.createElement("a");e.classList.add("menu-toggle-tooltip"),e.href="https://docs.google.com/forms/d/e/1FAIpQLSdqZcJpRtm_Ia5DTHP6SDY9Xa6LID3KiTjRWkjMzWyJRUtSHw/viewform",e.target="_blank",e.innerHTML=\`
35
22
  <div class="menu-toggle-tooltip-content">
36
23
  <h3>How's Devtools working for you?</h3>
37
24
  <p>We'd love your feedback!</p>
38
25
  </div>
39
- \`,o.appendChild(r),setTimeout(()=>{r.classList.add("menu-toggle-tooltip-show"),r.addEventListener("click",()=>{r.classList.remove("menu-toggle-tooltip-show")})},1e3)};function kf(o){o.getElementById("go-to-builder").addEventListener("click",d=>{d.preventDefault(),d.stopPropagation(),jo(o,!1),window.open(Gl(),"builder")}),o.getElementById("components-link").addEventListener("click",d=>{d.preventDefault(),d.stopPropagation();let b=o.querySelector(".nav-cmp-list .section-content");b.scrollTop=0,no(o,"nav-cmp-list"),If(o)}),o.getElementById("settings-link").addEventListener("click",d=>{d.preventDefault(),d.stopPropagation(),no(o,"nav-settings")}),o.getElementById("add-page-link").addEventListener("click",d=>{d.preventDefault(),d.stopPropagation(),jo(o,!1),window.open(Wr(),"builder")}),o.getElementById("import-from-figma").addEventListener("click",d=>{d.preventDefault(),d.stopPropagation(),jo(o,!1),window.open("https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more")})}function Pf(o){let r=o.getElementById("enable-edit");r.addEventListener("change",i=>{i.stopPropagation(),Ya(r.checked)}),r.checked=Qn(),Ya(r.checked)}var Pi=class extends HTMLElement{constructor(){super()}connectedCallback(){let r=this.attachShadow({mode:"open"});r.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:black;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-list.nav-loading{pointer-events:none}.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}#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> <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> <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>\`,Of(r),kf(r),Sf(r),xf(r),Ef(r),Pf(r),this.setAttribute("aria-hidden","true"),r.getElementById("version").textContent="v0.2.24"}highlightOpener(){let r=this.shadowRoot.querySelector(".menu-toggle");r.classList.add("menu-toggle-highlight"),r.classList.add("menu-toggle-highlight-no-transition"),setTimeout(()=>{r.classList.remove("menu-toggle-highlight-no-transition"),setTimeout(()=>{r.classList.remove("menu-toggle-highlight")},20)},20)}};var h_=\`<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:white;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:rgba(253,107,60,.1)}
40
- </style>\`,Ri=class extends HTMLElement{constructor(){super()}connectedCallback(){let r=this.attachShadow({mode:"open"});r.innerHTML=h_+\`<main>
26
+ \`,t.appendChild(e),setTimeout(()=>{e.classList.add("menu-toggle-tooltip-show"),e.addEventListener("click",()=>{e.classList.remove("menu-toggle-tooltip-show")})},1e3)};function Ur(t){t.getElementById("go-to-builder").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),ae(t,!1),window.open(mn(),"builder")}),t.getElementById("components-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();let u=t.querySelector(".nav-cmp-list .section-content");u.scrollTop=0,W(t,"nav-cmp-list"),kr(t)}),t.getElementById("settings-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),W(t,"nav-settings")}),t.getElementById("add-page-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),ae(t,!1),window.open(Ee(),"builder")}),t.getElementById("import-from-figma").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),ae(t,!1),window.open("https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more")})}function Mr(t){let e=t.getElementById("enable-edit");e.addEventListener("change",n=>{n.stopPropagation(),It(e.checked)}),e.checked=ke(),It(e.checked)}var ct=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:black;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}#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> <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>\`,Or(e),Ur(e),Ar(e),Rr(e),Cr(e),Mr(e),this.setAttribute("aria-hidden","true"),e.getElementById("version").textContent="v0.2.26"}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 Ci=\`<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:white;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:rgba(253,107,60,.1)}
27
+ </style>\`,lt=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=Ci+\`<main>
41
28
  <aside>
42
29
  <div class="logo"></div>
43
30
 
@@ -85,19 +72,7 @@ function print() { __p += __j.call(arguments, '') }
85
72
  </nav>
86
73
  </section>
87
74
  </main>
88
- \`,v_();let i=new URL(Xl,Zn);i.searchParams.set(Yl,location.href),r.getElementById("next-step").setAttribute("href",i.href)}},v_=()=>{document.title="Integrate Builder.io Visual CMS";let o=document.head.querySelector("link[rel='icon'], link[rel='icon shortcut']");o?(o.href="https://cdn.builder.io/favicon.ico",o.removeAttribute("type")):(o=document.createElement("link"),o.rel="icon",o.href="https://cdn.builder.io/favicon.ico",document.head.appendChild(o))};var Rf=async()=>{(await Jl()).isValid||y_()},y_=()=>{customElements.get("builder-dev-tools-overview")||customElements.define("builder-dev-tools-overview",Ri);let o=document.querySelector("builder-dev-tools-overview");o||(o=document.createElement("builder-dev-tools-overview"),o.setAttribute("aria-hidden","true"),document.body.appendChild(o)),setTimeout(()=>{o.removeAttribute("aria-hidden")},32)};var b_=()=>{try{customElements.get("builder-dev-tools-edit")||customElements.define("builder-dev-tools-edit",Jn),customElements.get("builder-dev-tools-menu")||customElements.define("builder-dev-tools-menu",Pi);let o=document.querySelector("builder-dev-tools-menu");o||(o=document.createElement("builder-dev-tools-menu"),o.setAttribute("data-version","0.2.24"),document.body.appendChild(o));let r=document.querySelector("builder-dev-tools-edit");r||(r=document.createElement("builder-dev-tools-edit"),document.body.appendChild(r));let i=document.getElementById("builder-dev-tools-style");i||(i=document.createElement("style"),i.id="builder-dev-tools-style",i.innerHTML=".builder-no-scroll{overflow:hidden !important}",document.head.appendChild(i)),Rf(),bf()}catch(o){console.error("Builder Devtools:",o)}};window.location===window.parent.location&&(console.debug("Builder.io Devtools v0.2.24"),b_());})();
89
- /*! Bundled license information:
90
-
91
- lodash/lodash.js:
92
- (**
93
- * @license
94
- * Lodash <https://lodash.com/>
95
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
96
- * Released under MIT license <https://lodash.com/license>
97
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
98
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
99
- *)
100
- */`)}async function N(e){return k(e,`<!DOCTYPE html>
75
+ \`,Ri();let n=new URL(yn,Oe);n.searchParams.set(gn,location.href),e.getElementById("next-step").setAttribute("href",n.href),oe("overview step viewed")}},Ri=()=>{document.title="Integrate Builder.io Visual CMS";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 Nr=async()=>{(await Tn()).isValid||Di()},Di=()=>{customElements.get("builder-dev-tools-overview")||customElements.define("builder-dev-tools-overview",lt);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 Ai=()=>{try{customElements.get("builder-dev-tools-edit")||customElements.define("builder-dev-tools-edit",Ue),customElements.get("builder-dev-tools-menu")||customElements.define("builder-dev-tools-menu",ct);let t=document.querySelector("builder-dev-tools-menu");t||(t=document.createElement("builder-dev-tools-menu"),t.setAttribute("data-version","0.2.26"),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 n=document.getElementById("builder-dev-tools-style");n||(n=document.createElement("style"),n.id="builder-dev-tools-style",n.innerHTML=".builder-no-scroll{overflow:hidden !important}",document.head.appendChild(n)),Nr(),Lr()}catch(t){console.error("Builder Devtools:",t)}};window.location===window.parent.location&&(console.debug("Builder.io Devtools v0.2.26"),Ai());})();`)}async function k(e){return M(e,`<!DOCTYPE html>
101
76
  <html lang="en" dir="ltr">
102
77
  <head>
103
78
  <meta charset="utf-8" />
@@ -217,20 +192,8 @@ lodash/lodash.js:
217
192
  </p>
218
193
  </section>
219
194
  </main>
220
- <script>"use strict";(()=>{var Ty=Object.create;var ya=Object.defineProperty;var Iy=Object.getOwnPropertyDescriptor;var Oy=Object.getOwnPropertyNames;var ky=Object.getPrototypeOf;var Ay=Object.prototype.hasOwnProperty;var _a=(o,r)=>()=>(r||o((r={exports:{}}).exports,r),r.exports);var Py=(o,r)=>{for(var i in r)ya(o,i,{get:r[i],enumerable:true})};var Ry=(o,r,i,s)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let u of Oy(r))if(!Ay.call(o,u)&&u!==i)ya(o,u,{get:()=>r[u],enumerable:!(s=Iy(r,u))||s.enumerable})}return o};var Mn=(o,r,i)=>(i=o!=null?Ty(ky(o)):{},Ry(r||!o||!o.__esModule?ya(i,"default",{value:o,enumerable:true}):i,o));var Eg=_a((Wr,Jn)=>{(function(o,r){"use strict";var i="0.7.33",s="",u="?",c="function",m="undefined",x="object",T="string",p="major",g="model",w="name",h="type",y="vendor",b="version",L="architecture",D="console",O="mobile",A="tablet",N="smarttv",X="wearable",oe="embedded",Z=350;var fe="Amazon",de="Apple",Ee="ASUS",We="BlackBerry",Ie="Browser",ee="Chrome",Xt="Edge",rt="Firefox",Be="Google",Ze="Huawei",Ct="LG",at="Microsoft",Ve="Motorola",ft="Opera",xt="Samsung",Vt="Sharp",je="Sony",dt="Xiaomi",Gt="Zebra",ge="Facebook";var Et=function(j,ne){var Y={};for(var z in j){if(ne[z]&&ne[z].length%2===0){Y[z]=ne[z].concat(j[z])}else{Y[z]=j[z]}}return Y},ro=function(j){var ne={};for(var Y=0;Y<j.length;Y++){ne[j[Y].toUpperCase()]=j[Y]}return ne},Zt=function(j,ne){return typeof j===T?Dt(ne).indexOf(Dt(j))!==-1:false},Dt=function(j){return j.toLowerCase()},no=function(j){return typeof j===T?j.replace(/[^\\d\\.]/g,s).split(".")[0]:r},Ke=function(j,ne){if(typeof j===T){j=j.replace(/^\\s\\s*/,s);return typeof ne===m?j:j.substring(0,Z)}};var Je=function(j,ne){var Y=0,z,U,W,B,Ye,be;while(Y<ne.length&&!Ye){var ie=ne[Y],V=ne[Y+1];z=U=0;while(z<ie.length&&!Ye){Ye=ie[z++].exec(j);if(!!Ye){for(W=0;W<V.length;W++){be=Ye[++U];B=V[W];if(typeof B===x&&B.length>0){if(B.length===2){if(typeof B[1]==c){this[B[0]]=B[1].call(this,be)}else{this[B[0]]=B[1]}}else if(B.length===3){if(typeof B[1]===c&&!(B[1].exec&&B[1].test)){this[B[0]]=be?B[1].call(this,be,B[2]):r}else{this[B[0]]=be?be.replace(B[1],B[2]):r}}else if(B.length===4){this[B[0]]=be?B[3].call(this,be.replace(B[1],B[2])):r}}else{this[B]=be?be:r}}}}Y+=2}},Uo=function(j,ne){for(var Y in ne){if(typeof ne[Y]===x&&ne[Y].length>0){for(var z=0;z<ne[Y].length;z++){if(Zt(ne[Y][z],j)){return Y===u?r:Y}}}else if(Zt(ne[Y],j)){return Y===u?r:Y}}return j};var st={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Ht={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"};var yo={browser:[[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],[b,[w,"Chrome"]],[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],[b,[w,"Edge"]],[/(opera mini)\\/([-\\w\\.]+)/i,/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i],[w,b],[/opios[\\/ ]+([\\w\\.]+)/i],[b,[w,ft+" Mini"]],[/\\bopr\\/([\\w\\.]+)/i],[b,[w,ft]],[/(kindle)\\/([\\w\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\/ ]?([\\w\\.]*)/i,/(ba?idubrowser)[\\/ ]?([\\w\\.]+)/i,/(?:ms|\\()(ie) ([\\w\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,/(weibo)__([\\d\\.]+)/i],[w,b],[/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i],[b,[w,"UC"+Ie]],[/microm.+\\bqbcore\\/([\\w\\.]+)/i,/\\bqbcore\\/([\\w\\.]+).+microm/i],[b,[w,"WeChat(Win) Desktop"]],[/micromessenger\\/([\\w\\.]+)/i],[b,[w,"WeChat"]],[/konqueror\\/([\\w\\.]+)/i],[b,[w,"Konqueror"]],[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],[b,[w,"IE"]],[/yabrowser\\/([\\w\\.]+)/i],[b,[w,"Yandex"]],[/(avast|avg)\\/([\\w\\.]+)/i],[[w,/(.+)/,"$1 Secure "+Ie],b],[/\\bfocus\\/([\\w\\.]+)/i],[b,[w,rt+" Focus"]],[/\\bopt\\/([\\w\\.]+)/i],[b,[w,ft+" Touch"]],[/coc_coc\\w+\\/([\\w\\.]+)/i],[b,[w,"Coc Coc"]],[/dolfin\\/([\\w\\.]+)/i],[b,[w,"Dolphin"]],[/coast\\/([\\w\\.]+)/i],[b,[w,ft+" Coast"]],[/miuibrowser\\/([\\w\\.]+)/i],[b,[w,"MIUI "+Ie]],[/fxios\\/([-\\w\\.]+)/i],[b,[w,rt]],[/\\bqihu|(qi?ho?o?|360)browser/i],[[w,"360 "+Ie]],[/(oculus|samsung|sailfish|huawei)browser\\/([\\w\\.]+)/i],[[w,/(.+)/,"$1 "+Ie],b],[/(comodo_dragon)\\/([\\w\\.]+)/i],[[w,/_/g," "],b],[/(electron)\\/([\\w\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\/ ]?([\\w\\.]+)/i],[w,b],[/(metasr)[\\/ ]?([\\w\\.]+)/i,/(lbbrowser)/i,/\\[(linkedin)app\\]/i],[w],[/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i],[[w,ge],b],[/safari (line)\\/([\\w\\.]+)/i,/\\b(line)\\/([\\w\\.]+)\\/iab/i,/(chromium|instagram)[\\/ ]([-\\w\\.]+)/i],[w,b],[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],[b,[w,"GSA"]],[/headlesschrome(?:\\/([\\w\\.]+)| )/i],[b,[w,ee+" Headless"]],[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],[[w,ee+" WebView"],b],[/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i],[b,[w,"Android "+Ie]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i],[w,b],[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],[b,[w,"Mobile Safari"]],[/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i],[b,w],[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],[w,[b,Uo,st]],[/(webkit|khtml)\\/([\\w\\.]+)/i],[w,b],[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],[[w,"Netscape"],b],[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],[b,[w,rt+" Reality"]],[/ekiohf.+(flow)\\/([\\w\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,/(firefox)\\/([\\w\\.]+)/i,/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,/(links) \\(([\\w\\.]+)/i],[w,b],[/(cobalt)\\/([\\w\\.]+)/i],[w,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],[[L,"amd64"]],[/(ia32(?=;))/i],[[L,Dt]],[/((?:i[346]|x)86)[;\\)]/i],[[L,"ia32"]],[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],[[L,"arm64"]],[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],[[L,"armhf"]],[/windows (ce|mobile); ppc;/i],[[L,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],[[L,/ower/,s,Dt]],[/(sun4\\w)[;\\)]/i],[[L,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i],[[L,Dt]]],device:[[/\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[g,[y,xt],[h,A]],[/\\b((?:s[cgp]h|gt|sm)-\\w+|galaxy nexus)/i,/samsung[- ]([-\\w]+)/i,/sec-(sgh\\w+)/i],[g,[y,xt],[h,O]],[/((ipod|iphone)\\d+,\\d+)/i],[g,[y,de],[h,O]],[/(ipad\\d+,\\d+)/i],[g,[y,de],[h,A]],[/\\((ip(?:hone|od)[\\w ]*);/i],[g,[y,de],[h,O]],[/\\((ipad);[-\\w\\),; ]+apple/i,/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i],[g,[y,de],[h,A]],[/(macintosh);/i],[g,[y,de]],[/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i],[g,[y,Ze],[h,A]],[/(?:huawei|honor)([-\\w ]+)[;\\)]/i,/\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i],[g,[y,Ze],[h,O]],[/\\b(poco[\\w ]+)(?: bui|\\))/i,/\\b; (\\w+) build\\/hm\\1/i,/\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i,/\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i,/\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i],[[g,/_/g," "],[y,dt],[h,O]],[/\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i],[[g,/_/g," "],[y,dt],[h,A]],[/; (\\w+) bui.+ oppo/i,/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i],[g,[y,"OPPO"],[h,O]],[/vivo (\\w+)(?: bui|\\))/i,/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i],[g,[y,"Vivo"],[h,O]],[/\\b(rmx[12]\\d{3})(?: bui|;|\\))/i],[g,[y,"Realme"],[h,O]],[/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,/\\bmot(?:orola)?[- ](\\w*)/i,/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i],[g,[y,Ve],[h,O]],[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],[g,[y,Ve],[h,A]],[/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i],[g,[y,Ct],[h,A]],[/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,/\\blg-?([\\d\\w]+) bui/i],[g,[y,Ct],[h,O]],[/(ideatab[-\\w ]+)/i,/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i],[g,[y,"Lenovo"],[h,A]],[/(?:maemo|nokia).*(n900|lumia \\d+)/i,/nokia[-_ ]?([-\\w\\.]*)/i],[[g,/_/g," "],[y,"Nokia"],[h,O]],[/(pixel c)\\b/i],[g,[y,Be],[h,A]],[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],[g,[y,Be],[h,O]],[/droid.+ (a?\\d[0-2]{2}so|[c-g]\\d{4}|so[-gl]\\w+|xq-a\\w[4-7][12])(?= bui|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i],[g,[y,je],[h,O]],[/sony tablet [ps]/i,/\\b(?:sony)?sgp\\w+(?: bui|\\))/i],[[g,"Xperia Tablet"],[y,je],[h,A]],[/ (kb2005|in20[12]5|be20[12][59])\\b/i,/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i],[g,[y,"OnePlus"],[h,O]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\\))/i,/(kf[a-z]+)( bui|\\)).+silk\\//i],[g,[y,fe],[h,A]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],[[g,/(.+)/g,"Fire Phone $1"],[y,fe],[h,O]],[/(playbook);[-\\w\\),; ]+(rim)/i],[g,y,[h,A]],[/\\b((?:bb[a-f]|st[hv])100-\\d)/i,/\\(bb10; (\\w+)/i],[g,[y,We],[h,O]],[/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i],[g,[y,Ee],[h,A]],[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],[g,[y,Ee],[h,O]],[/(nexus 9)/i],[g,[y,"HTC"],[h,A]],[/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\\w]*)/i],[y,[g,/_/g," "],[h,O]],[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],[g,[y,"Acer"],[h,A]],[/droid.+; (m[1-5] note) bui/i,/\\bmz-([-\\w]{2,})/i],[g,[y,"Meizu"],[h,O]],[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],[g,[y,Vt],[h,O]],[/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\w]*)/i,/(hp) ([\\w ]+\\w)/i,/(asus)-?(\\w+)/i,/(microsoft); (lumia[\\w ]+)/i,/(lenovo)[-_ ]?([-\\w]+)/i,/(jolla)/i,/(oppo) ?([\\w ]+) bui/i],[y,g,[h,O]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\/([\\w\\.]+)/i,/(nook)[\\w ]+build\\/(\\w+)/i,/(dell) (strea[kpr\\d ]*[\\dko])/i,/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,/(trinity)[- ]*(t\\d{3}) bui/i,/(gigaset)[- ]+(q\\w{1,9}) bui/i,/(vodafone) ([\\w ]+)(?:\\)| bui)/i],[y,g,[h,A]],[/(surface duo)/i],[g,[y,at],[h,A]],[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],[g,[y,"Fairphone"],[h,O]],[/(u304aa)/i],[g,[y,"AT&T"],[h,O]],[/\\bsie-(\\w*)/i],[g,[y,"Siemens"],[h,O]],[/\\b(rct\\w+) b/i],[g,[y,"RCA"],[h,A]],[/\\b(venue[\\d ]{2,7}) b/i],[g,[y,"Dell"],[h,A]],[/\\b(q(?:mv|ta)\\w+) b/i],[g,[y,"Verizon"],[h,A]],[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],[g,[y,"Barnes & Noble"],[h,A]],[/\\b(tm\\d{3}\\w+) b/i],[g,[y,"NuVision"],[h,A]],[/\\b(k88) b/i],[g,[y,"ZTE"],[h,A]],[/\\b(nx\\d{3}j) b/i],[g,[y,"ZTE"],[h,O]],[/\\b(gen\\d{3}) b.+49h/i],[g,[y,"Swiss"],[h,O]],[/\\b(zur\\d{3}) b/i],[g,[y,"Swiss"],[h,A]],[/\\b((zeki)?tb.*\\b) b/i],[g,[y,"Zeki"],[h,A]],[/\\b([yr]\\d{2}) b/i,/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i],[[y,"Dragon Touch"],g,[h,A]],[/\\b(ns-?\\w{0,9}) b/i],[g,[y,"Insignia"],[h,A]],[/\\b((nxa|next)-?\\w{0,9}) b/i],[g,[y,"NextBook"],[h,A]],[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[y,"Voice"],g,[h,O]],[/\\b(lvtel\\-)?(v1[12]) b/i],[[y,"LvTel"],g,[h,O]],[/\\b(ph-1) /i],[g,[y,"Essential"],[h,O]],[/\\b(v(100md|700na|7011|917g).*\\b) b/i],[g,[y,"Envizen"],[h,A]],[/\\b(trio[-\\w\\. ]+) b/i],[g,[y,"MachSpeed"],[h,A]],[/\\btu_(1491) b/i],[g,[y,"Rotor"],[h,A]],[/(shield[\\w ]+) b/i],[g,[y,"Nvidia"],[h,A]],[/(sprint) (\\w+)/i],[y,g,[h,O]],[/(kin\\.[onetw]{3})/i],[[g,/\\./g," "],[y,at],[h,O]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i],[g,[y,Gt],[h,A]],[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],[g,[y,Gt],[h,O]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[y,g,[h,D]],[/droid.+; (shield) bui/i],[g,[y,"Nvidia"],[h,D]],[/(playstation [345portablevi]+)/i],[g,[y,je],[h,D]],[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],[g,[y,at],[h,D]],[/smart-tv.+(samsung)/i],[y,[h,N]],[/hbbtv.+maple;(\\d+)/i],[[g,/^/,"SmartTV"],[y,xt],[h,N]],[/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i],[[y,Ct],[h,N]],[/(apple) ?tv/i],[y,[g,de+" TV"],[h,N]],[/crkey/i],[[g,ee+"cast"],[y,Be],[h,N]],[/droid.+aft(\\w)( bui|\\))/i],[g,[y,fe],[h,N]],[/\\(dtv[\\);].+(aquos)/i,/(aquos-tv[\\w ]+)\\)/i],[g,[y,Vt],[h,N]],[/(bravia[\\w ]+)( bui|\\))/i],[g,[y,je],[h,N]],[/(mitv-\\w{5}) bui/i],[g,[y,dt],[h,N]],[/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w ]*; *(\\w[^;]*);([^;]*)/i],[[y,Ke],[g,Ke],[h,N]],[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],[[h,N]],[/((pebble))app/i],[y,g,[h,X]],[/droid.+; (glass) \\d/i],[g,[y,Be],[h,X]],[/droid.+; (wt63?0{2,3})\\)/i],[g,[y,Gt],[h,X]],[/(quest( 2)?)/i],[g,[y,ge],[h,X]],[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],[y,[h,oe]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+? mobile safari/i],[g,[h,O]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i],[g,[h,A]],[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],[[h,A]],[/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i],[[h,O]],[/(android[-\\w\\. ]{0,9});.+buil/i],[g,[y,"Generic"]]],engine:[[/windows.+ edge\\/([\\w\\.]+)/i],[b,[w,Xt+"HTML"]],[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],[b,[w,"Blink"]],[/(presto)\\/([\\w\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,/ekioh(flow)\\/([\\w\\.]+)/i,/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i],[w,b],[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],[b,w]],os:[[/microsoft (windows) (vista|xp)/i],[w,b],[/(windows) nt 6\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i,/(windows)[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i],[w,[b,Uo,Ht]],[/(win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],[[w,"Windows"],[b,Uo,Ht]],[/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,/cfnetwork\\/.+darwin/i],[[b,/_/g,"."],[w,"iOS"]],[/(mac os x) ?([\\w\\. ]*)/i,/(macintosh|mac_powerpc\\b)(?!.+haiku)/i],[[w,"Mac OS"],[b,/_/g,"."]],[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],[b,w],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,/(blackberry)\\w*\\/([\\w\\.]*)/i,/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,/\\((series40);/i],[w,b],[/\\(bb(10);/i],[b,[w,We]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i],[b,[w,"Symbian"]],[/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i],[b,[w,rt+" OS"]],[/web0s;.+rt(tv)/i,/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i],[b,[w,"webOS"]],[/crkey\\/([\\d\\.]+)/i],[b,[w,ee+"cast"]],[/(cros) [\\w]+ ([\\w\\.]+\\w)/i],[[w,"Chromium OS"],b],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\);]+)/i,/\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i,/(mint)[\\/\\(\\) ]?(\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,/(hurd|linux) ?([\\w\\.]*)/i,/(gnu) ?([\\w\\.]*)/i,/\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,/(haiku) (\\w+)/i],[w,b],[/(sunos) ?([\\w\\.\\d]*)/i],[[w,"Solaris"],b],[/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\\w\\.]*)/i],[w,b]]};var De=function(j,ne){if(typeof j===x){ne=j;j=r}if(!(this instanceof De)){return new De(j,ne).getResult()}var Y=j||(typeof o!==m&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:s);var z=ne?Et(yo,ne):yo;this.getBrowser=function(){var U={};U[w]=r;U[b]=r;Je.call(U,Y,z.browser);U.major=no(U.version);return U};this.getCPU=function(){var U={};U[L]=r;Je.call(U,Y,z.cpu);return U};this.getDevice=function(){var U={};U[y]=r;U[g]=r;U[h]=r;Je.call(U,Y,z.device);return U};this.getEngine=function(){var U={};U[w]=r;U[b]=r;Je.call(U,Y,z.engine);return U};this.getOS=function(){var U={};U[w]=r;U[b]=r;Je.call(U,Y,z.os);return U};this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}};this.getUA=function(){return Y};this.setUA=function(U){Y=typeof U===T&&U.length>Z?Ke(U,Z):U;return this};this.setUA(Y);return this};De.VERSION=i;De.BROWSER=ro([w,b,p]);De.CPU=ro([L]);De.DEVICE=ro([g,y,h,D,O,N,A,X,oe]);De.ENGINE=De.OS=ro([w,b]);if(typeof Wr!==m){if(typeof Jn!==m&&Jn.exports){Wr=Jn.exports=De}Wr.UAParser=De}else{if(typeof define===c&&define.amd){define(function(){return De})}else if(typeof o!==m){o.UAParser=De}}var Le=typeof o!==m&&(o.jQuery||o.Zepto);if(Le&&!Le.ua){var St=new De;Le.ua=St.getResult();Le.ua.get=function(){return St.getUA()};Le.ua.set=function(j){St.setUA(j);var ne=St.getResult();for(var Y in ne){Le.ua[Y]=ne[Y]}}}})(typeof window==="object"?window:Wr)});var Ds=_a((vr,Vr)=>{(function(){var o;var r="4.17.21";var i=200;var s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid \`variable\` option passed into \`_.template\`";var m="__lodash_hash_undefined__";var x=500;var T="__lodash_placeholder__";var p=1,g=2,w=4;var h=1,y=2;var b=1,L=2,D=4,O=8,A=16,N=32,X=64,oe=128,Z=256,fe=512;var de=30,Ee="...";var We=800,Ie=16;var ee=1,Xt=2,rt=3;var Be=1/0,Ze=9007199254740991,Ct=17976931348623157e292,at=0/0;var Ve=4294967295,ft=Ve-1,xt=Ve>>>1;var Vt=[["ary",oe],["bind",b],["bindKey",L],["curry",O],["curryRight",A],["flip",fe],["partial",N],["partialRight",X],["rearg",Z]];var je="[object Arguments]",dt="[object Array]",Gt="[object AsyncFunction]",ge="[object Boolean]",Et="[object Date]",ro="[object DOMException]",Zt="[object Error]",Dt="[object Function]",no="[object GeneratorFunction]",Ke="[object Map]",Je="[object Number]",Uo="[object Null]",st="[object Object]",Ht="[object Promise]",yo="[object Proxy]",De="[object RegExp]",Le="[object Set]",St="[object String]",j="[object Symbol]",ne="[object Undefined]",Y="[object WeakMap]",z="[object WeakSet]";var U="[object ArrayBuffer]",W="[object DataView]",B="[object Float32Array]",Ye="[object Float64Array]",be="[object Int8Array]",ie="[object Int16Array]",V="[object Int32Array]",pt="[object Uint8Array]",No="[object Uint8ClampedArray]",er="[object Uint16Array]",ai="[object Uint32Array]";var Gg=/\\b__p \\+= '';/g,Hg=/\\b(__p \\+=) '' \\+/g,Kg=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;var Ws=/&(?:amp|lt|gt|quot|#39);/g,Vs=/[&<>"']/g,Yg=RegExp(Ws.source),$g=RegExp(Vs.source);var Qg=/<%-([\\s\\S]+?)%>/g,Xg=/<%([\\s\\S]+?)%>/g,Gs=/<%=([\\s\\S]+?)%>/g;var Zg=/\\.|\\[(?:[^[\\]]*|(["'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,Jg=/^\\w*$/,ef=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;var si=/[\\\\^$.*+?()[\\]{}|]/g,tf=RegExp(si.source);var ui=/^\\s+/;var of=/\\s/;var rf=/\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,nf=/\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,af=/,? & /;var sf=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;var uf=/[()=,{}\\[\\]\\/\\s]/;var cf=/\\\\(\\\\)?/g;var lf=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;var Hs=/\\w*$/;var gf=/^[-+]0x[0-9a-f]+$/i;var ff=/^0b[01]+$/i;var df=/^\\[object .+?Constructor\\]$/;var pf=/^0o[0-7]+$/i;var mf=/^(?:0|[1-9]\\d*)$/;var wf=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;var $r=/($^)/;var hf=/['\\n\\r\\u2028\\u2029\\\\]/g;var Qr="\\\\ud800-\\\\udfff",vf="\\\\u0300-\\\\u036f",yf="\\\\ufe20-\\\\ufe2f",_f="\\\\u20d0-\\\\u20ff",Ks=vf+yf+_f,Ys="\\\\u2700-\\\\u27bf",$s="a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff",bf="\\\\xac\\\\xb1\\\\xd7\\\\xf7",xf="\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf",Ef="\\\\u2000-\\\\u206f",Sf=" \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000",Qs="A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde",Xs="\\\\ufe0e\\\\ufe0f",Zs=bf+xf+Ef+Sf;var ci="['\\u2019]",Tf="["+Qr+"]",Js="["+Zs+"]",Xr="["+Ks+"]",eu="\\\\d+",If="["+Ys+"]",tu="["+$s+"]",ou="[^"+Qr+Zs+eu+Ys+$s+Qs+"]",li="\\\\ud83c[\\\\udffb-\\\\udfff]",Of="(?:"+Xr+"|"+li+")",ru="[^"+Qr+"]",gi="(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}",fi="[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]",tr="["+Qs+"]",nu="\\\\u200d";var iu="(?:"+tu+"|"+ou+")",kf="(?:"+tr+"|"+ou+")",au="(?:"+ci+"(?:d|ll|m|re|s|t|ve))?",su="(?:"+ci+"(?:D|LL|M|RE|S|T|VE))?",uu=Of+"?",cu="["+Xs+"]?",Af="(?:"+nu+"(?:"+[ru,gi,fi].join("|")+")"+cu+uu+")*",Pf="\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])",Rf="\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])",lu=cu+uu+Af,Cf="(?:"+[If,gi,fi].join("|")+")"+lu,Df="(?:"+[ru+Xr+"?",Xr,gi,fi,Tf].join("|")+")";var Lf=RegExp(ci,"g");var qf=RegExp(Xr,"g");var di=RegExp(li+"(?="+li+")|"+Df+lu,"g");var Uf=RegExp([tr+"?"+tu+"+"+au+"(?="+[Js,tr,"$"].join("|")+")",kf+"+"+su+"(?="+[Js,tr+iu,"$"].join("|")+")",tr+"?"+iu+"+"+au,tr+"+"+su,Rf,Pf,eu,Cf].join("|"),"g");var Nf=RegExp("["+nu+Qr+Ks+Xs+"]");var Mf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Ff=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"];var zf=-1;var xe={};xe[B]=xe[Ye]=xe[be]=xe[ie]=xe[V]=xe[pt]=xe[No]=xe[er]=xe[ai]=true;xe[je]=xe[dt]=xe[U]=xe[ge]=xe[W]=xe[Et]=xe[Zt]=xe[Dt]=xe[Ke]=xe[Je]=xe[st]=xe[De]=xe[Le]=xe[St]=xe[Y]=false;var _e={};_e[je]=_e[dt]=_e[U]=_e[W]=_e[ge]=_e[Et]=_e[B]=_e[Ye]=_e[be]=_e[ie]=_e[V]=_e[Ke]=_e[Je]=_e[st]=_e[De]=_e[Le]=_e[St]=_e[j]=_e[pt]=_e[No]=_e[er]=_e[ai]=true;_e[Zt]=_e[Dt]=_e[Y]=false;var Bf={"\\xC0":"A","\\xC1":"A","\\xC2":"A","\\xC3":"A","\\xC4":"A","\\xC5":"A","\\xE0":"a","\\xE1":"a","\\xE2":"a","\\xE3":"a","\\xE4":"a","\\xE5":"a","\\xC7":"C","\\xE7":"c","\\xD0":"D","\\xF0":"d","\\xC8":"E","\\xC9":"E","\\xCA":"E","\\xCB":"E","\\xE8":"e","\\xE9":"e","\\xEA":"e","\\xEB":"e","\\xCC":"I","\\xCD":"I","\\xCE":"I","\\xCF":"I","\\xEC":"i","\\xED":"i","\\xEE":"i","\\xEF":"i","\\xD1":"N","\\xF1":"n","\\xD2":"O","\\xD3":"O","\\xD4":"O","\\xD5":"O","\\xD6":"O","\\xD8":"O","\\xF2":"o","\\xF3":"o","\\xF4":"o","\\xF5":"o","\\xF6":"o","\\xF8":"o","\\xD9":"U","\\xDA":"U","\\xDB":"U","\\xDC":"U","\\xF9":"u","\\xFA":"u","\\xFB":"u","\\xFC":"u","\\xDD":"Y","\\xFD":"y","\\xFF":"y","\\xC6":"Ae","\\xE6":"ae","\\xDE":"Th","\\xFE":"th","\\xDF":"ss","\\u0100":"A","\\u0102":"A","\\u0104":"A","\\u0101":"a","\\u0103":"a","\\u0105":"a","\\u0106":"C","\\u0108":"C","\\u010A":"C","\\u010C":"C","\\u0107":"c","\\u0109":"c","\\u010B":"c","\\u010D":"c","\\u010E":"D","\\u0110":"D","\\u010F":"d","\\u0111":"d","\\u0112":"E","\\u0114":"E","\\u0116":"E","\\u0118":"E","\\u011A":"E","\\u0113":"e","\\u0115":"e","\\u0117":"e","\\u0119":"e","\\u011B":"e","\\u011C":"G","\\u011E":"G","\\u0120":"G","\\u0122":"G","\\u011D":"g","\\u011F":"g","\\u0121":"g","\\u0123":"g","\\u0124":"H","\\u0126":"H","\\u0125":"h","\\u0127":"h","\\u0128":"I","\\u012A":"I","\\u012C":"I","\\u012E":"I","\\u0130":"I","\\u0129":"i","\\u012B":"i","\\u012D":"i","\\u012F":"i","\\u0131":"i","\\u0134":"J","\\u0135":"j","\\u0136":"K","\\u0137":"k","\\u0138":"k","\\u0139":"L","\\u013B":"L","\\u013D":"L","\\u013F":"L","\\u0141":"L","\\u013A":"l","\\u013C":"l","\\u013E":"l","\\u0140":"l","\\u0142":"l","\\u0143":"N","\\u0145":"N","\\u0147":"N","\\u014A":"N","\\u0144":"n","\\u0146":"n","\\u0148":"n","\\u014B":"n","\\u014C":"O","\\u014E":"O","\\u0150":"O","\\u014D":"o","\\u014F":"o","\\u0151":"o","\\u0154":"R","\\u0156":"R","\\u0158":"R","\\u0155":"r","\\u0157":"r","\\u0159":"r","\\u015A":"S","\\u015C":"S","\\u015E":"S","\\u0160":"S","\\u015B":"s","\\u015D":"s","\\u015F":"s","\\u0161":"s","\\u0162":"T","\\u0164":"T","\\u0166":"T","\\u0163":"t","\\u0165":"t","\\u0167":"t","\\u0168":"U","\\u016A":"U","\\u016C":"U","\\u016E":"U","\\u0170":"U","\\u0172":"U","\\u0169":"u","\\u016B":"u","\\u016D":"u","\\u016F":"u","\\u0171":"u","\\u0173":"u","\\u0174":"W","\\u0175":"w","\\u0176":"Y","\\u0177":"y","\\u0178":"Y","\\u0179":"Z","\\u017B":"Z","\\u017D":"Z","\\u017A":"z","\\u017C":"z","\\u017E":"z","\\u0132":"IJ","\\u0133":"ij","\\u0152":"Oe","\\u0153":"oe","\\u0149":"'n","\\u017F":"s"};var jf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var Wf={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};var Vf={"\\\\":"\\\\","'":"'","\\n":"n","\\r":"r","\\u2028":"u2028","\\u2029":"u2029"};var Gf=parseFloat,Hf=parseInt;var gu=typeof global=="object"&&global&&global.Object===Object&&global;var Kf=typeof self=="object"&&self&&self.Object===Object&&self;var $e=gu||Kf||Function("return this")();var pi=typeof vr=="object"&&vr&&!vr.nodeType&&vr;var Mo=pi&&typeof Vr=="object"&&Vr&&!Vr.nodeType&&Vr;var fu=Mo&&Mo.exports===pi;var mi=fu&&gu.process;var Lt=function(){try{var E=Mo&&Mo.require&&Mo.require("util").types;if(E){return E}return mi&&mi.binding&&mi.binding("util")}catch(k){}}();var du=Lt&&Lt.isArrayBuffer,pu=Lt&&Lt.isDate,mu=Lt&&Lt.isMap,wu=Lt&&Lt.isRegExp,hu=Lt&&Lt.isSet,vu=Lt&&Lt.isTypedArray;function Tt(E,k,I){switch(I.length){case 0:return E.call(k);case 1:return E.call(k,I[0]);case 2:return E.call(k,I[0],I[1]);case 3:return E.call(k,I[0],I[1],I[2])}return E.apply(k,I)}function Yf(E,k,I,M){var $=-1,pe=E==null?0:E.length;while(++$<pe){var Ge=E[$];k(M,Ge,I(Ge),E)}return M}function qt(E,k){var I=-1,M=E==null?0:E.length;while(++I<M){if(k(E[I],I,E)===false){break}}return E}function $f(E,k){var I=E==null?0:E.length;while(I--){if(k(E[I],I,E)===false){break}}return E}function yu(E,k){var I=-1,M=E==null?0:E.length;while(++I<M){if(!k(E[I],I,E)){return false}}return true}function _o(E,k){var I=-1,M=E==null?0:E.length,$=0,pe=[];while(++I<M){var Ge=E[I];if(k(Ge,I,E)){pe[$++]=Ge}}return pe}function Zr(E,k){var I=E==null?0:E.length;return!!I&&or(E,k,0)>-1}function wi(E,k,I){var M=-1,$=E==null?0:E.length;while(++M<$){if(I(k,E[M])){return true}}return false}function Se(E,k){var I=-1,M=E==null?0:E.length,$=Array(M);while(++I<M){$[I]=k(E[I],I,E)}return $}function bo(E,k){var I=-1,M=k.length,$=E.length;while(++I<M){E[$+I]=k[I]}return E}function hi(E,k,I,M){var $=-1,pe=E==null?0:E.length;if(M&&pe){I=E[++$]}while(++$<pe){I=k(I,E[$],$,E)}return I}function Qf(E,k,I,M){var $=E==null?0:E.length;if(M&&$){I=E[--$]}while($--){I=k(I,E[$],$,E)}return I}function vi(E,k){var I=-1,M=E==null?0:E.length;while(++I<M){if(k(E[I],I,E)){return true}}return false}var Xf=yi("length");function Zf(E){return E.split("")}function Jf(E){return E.match(sf)||[]}function _u(E,k,I){var M;I(E,function($,pe,Ge){if(k($,pe,Ge)){M=pe;return false}});return M}function Jr(E,k,I,M){var $=E.length,pe=I+(M?1:-1);while(M?pe--:++pe<$){if(k(E[pe],pe,E)){return pe}}return-1}function or(E,k,I){return k===k?gd(E,k,I):Jr(E,bu,I)}function ed(E,k,I,M){var $=I-1,pe=E.length;while(++$<pe){if(M(E[$],k)){return $}}return-1}function bu(E){return E!==E}function xu(E,k){var I=E==null?0:E.length;return I?bi(E,k)/I:at}function yi(E){return function(k){return k==null?o:k[E]}}function _i(E){return function(k){return E==null?o:E[k]}}function Eu(E,k,I,M,$){$(E,function(pe,Ge,ye){I=M?(M=false,pe):k(I,pe,Ge,ye)});return I}function td(E,k){var I=E.length;E.sort(k);while(I--){E[I]=E[I].value}return E}function bi(E,k){var I,M=-1,$=E.length;while(++M<$){var pe=k(E[M]);if(pe!==o){I=I===o?pe:I+pe}}return I}function xi(E,k){var I=-1,M=Array(E);while(++I<E){M[I]=k(I)}return M}function od(E,k){return Se(k,function(I){return[I,E[I]]})}function Su(E){return E?E.slice(0,ku(E)+1).replace(ui,""):E}function It(E){return function(k){return E(k)}}function Ei(E,k){return Se(k,function(I){return E[I]})}function br(E,k){return E.has(k)}function Tu(E,k){var I=-1,M=E.length;while(++I<M&&or(k,E[I],0)>-1){}return I}function Iu(E,k){var I=E.length;while(I--&&or(k,E[I],0)>-1){}return I}function rd(E,k){var I=E.length,M=0;while(I--){if(E[I]===k){++M}}return M}var nd=_i(Bf);var id=_i(jf);function ad(E){return"\\\\"+Vf[E]}function sd(E,k){return E==null?o:E[k]}function rr(E){return Nf.test(E)}function ud(E){return Mf.test(E)}function cd(E){var k,I=[];while(!(k=E.next()).done){I.push(k.value)}return I}function Si(E){var k=-1,I=Array(E.size);E.forEach(function(M,$){I[++k]=[$,M]});return I}function Ou(E,k){return function(I){return E(k(I))}}function xo(E,k){var I=-1,M=E.length,$=0,pe=[];while(++I<M){var Ge=E[I];if(Ge===k||Ge===T){E[I]=T;pe[$++]=I}}return pe}function en(E){var k=-1,I=Array(E.size);E.forEach(function(M){I[++k]=M});return I}function ld(E){var k=-1,I=Array(E.size);E.forEach(function(M){I[++k]=[M,M]});return I}function gd(E,k,I){var M=I-1,$=E.length;while(++M<$){if(E[M]===k){return M}}return-1}function fd(E,k,I){var M=I+1;while(M--){if(E[M]===k){return M}}return M}function nr(E){return rr(E)?pd(E):Xf(E)}function Kt(E){return rr(E)?md(E):Zf(E)}function ku(E){var k=E.length;while(k--&&of.test(E.charAt(k))){}return k}var dd=_i(Wf);function pd(E){var k=di.lastIndex=0;while(di.test(E)){++k}return k}function md(E){return E.match(di)||[]}function wd(E){return E.match(Uf)||[]}var hd=function E(k){k=k==null?$e:Eo.defaults($e.Object(),k,Eo.pick($e,Ff));var I=k.Array,M=k.Date,$=k.Error,pe=k.Function,Ge=k.Math,ye=k.Object,Ti=k.RegExp,vd=k.String,Ut=k.TypeError;var tn=I.prototype,yd=pe.prototype,ir=ye.prototype;var on=k["__core-js_shared__"];var rn=yd.toString;var we=ir.hasOwnProperty;var _d=0;var Au=function(){var e=/[^.]+$/.exec(on&&on.keys&&on.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var nn=ir.toString;var bd=rn.call(ye);var xd=$e._;var Ed=Ti("^"+rn.call(we).replace(si,"\\\\<!--SCRIPT_PLACEHOLDER-->").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$");var an=fu?k.Buffer:o,So=k.Symbol,sn=k.Uint8Array,Pu=an?an.allocUnsafe:o,un=Ou(ye.getPrototypeOf,ye),Ru=ye.create,Cu=ir.propertyIsEnumerable,cn=tn.splice,Du=So?So.isConcatSpreadable:o,xr=So?So.iterator:o,Fo=So?So.toStringTag:o;var ln=function(){try{var e=Vo(ye,"defineProperty");e({},"",{});return e}catch(t){}}();var Sd=k.clearTimeout!==$e.clearTimeout&&k.clearTimeout,Td=M&&M.now!==$e.Date.now&&M.now,Id=k.setTimeout!==$e.setTimeout&&k.setTimeout;var gn=Ge.ceil,fn=Ge.floor,Ii=ye.getOwnPropertySymbols,Od=an?an.isBuffer:o,Lu=k.isFinite,kd=tn.join,Ad=Ou(ye.keys,ye),He=Ge.max,nt=Ge.min,Pd=M.now,Rd=k.parseInt,qu=Ge.random,Cd=tn.reverse;var Oi=Vo(k,"DataView"),Er=Vo(k,"Map"),ki=Vo(k,"Promise"),ar=Vo(k,"Set"),Sr=Vo(k,"WeakMap"),Tr=Vo(ye,"create");var dn=Sr&&new Sr;var sr={};var Dd=Go(Oi),Ld=Go(Er),qd=Go(ki),Ud=Go(ar),Nd=Go(Sr);var pn=So?So.prototype:o,Ir=pn?pn.valueOf:o,Uu=pn?pn.toString:o;function f(e){if(Ae(e)&&!Q(e)&&!(e instanceof se)){if(e instanceof Nt){return e}if(we.call(e,"__wrapped__")){return Nc(e)}}return new Nt(e)}var ur=function(){function e(){}return function(t){if(!Oe(t)){return{}}if(Ru){return Ru(t)}e.prototype=t;var n=new e;e.prototype=o;return n}}();function mn(){}function Nt(e,t){this.__wrapped__=e;this.__actions__=[];this.__chain__=!!t;this.__index__=0;this.__values__=o}f.templateSettings={"escape":Qg,"evaluate":Xg,"interpolate":Gs,"variable":"","imports":{"_":f}};f.prototype=mn.prototype;f.prototype.constructor=f;Nt.prototype=ur(mn.prototype);Nt.prototype.constructor=Nt;function se(e){this.__wrapped__=e;this.__actions__=[];this.__dir__=1;this.__filtered__=false;this.__iteratees__=[];this.__takeCount__=Ve;this.__views__=[]}function Md(){var e=new se(this.__wrapped__);e.__actions__=mt(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=mt(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=mt(this.__views__);return e}function Fd(){if(this.__filtered__){var e=new se(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}function zd(){var e=this.__wrapped__.value(),t=this.__dir__,n=Q(e),a=t<0,l=n?e.length:0,d=Zp(0,l,this.__views__),v=d.start,_=d.end,S=_-v,P=a?_:v-1,R=this.__iteratees__,C=R.length,q=0,F=nt(S,this.__takeCount__);if(!n||!a&&l==S&&F==S){return ac(e,this.__actions__)}var H=[];e:while(S--&&q<F){P+=t;var te=-1,K=e[P];while(++te<C){var ae=R[te],ue=ae.iteratee,At=ae.type,lt=ue(K);if(At==Xt){K=lt}else if(!lt){if(At==ee){continue e}else{break e}}}H[q++]=K}return H}se.prototype=ur(mn.prototype);se.prototype.constructor=se;function zo(e){var t=-1,n=e==null?0:e.length;this.clear();while(++t<n){var a=e[t];this.set(a[0],a[1])}}function Bd(){this.__data__=Tr?Tr(null):{};this.size=0}function jd(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}function Wd(e){var t=this.__data__;if(Tr){var n=t[e];return n===m?o:n}return we.call(t,e)?t[e]:o}function Vd(e){var t=this.__data__;return Tr?t[e]!==o:we.call(t,e)}function Gd(e,t){var n=this.__data__;this.size+=this.has(e)?0:1;n[e]=Tr&&t===o?m:t;return this}zo.prototype.clear=Bd;zo.prototype["delete"]=jd;zo.prototype.get=Wd;zo.prototype.has=Vd;zo.prototype.set=Gd;function io(e){var t=-1,n=e==null?0:e.length;this.clear();while(++t<n){var a=e[t];this.set(a[0],a[1])}}function Hd(){this.__data__=[];this.size=0}function Kd(e){var t=this.__data__,n=wn(t,e);if(n<0){return false}var a=t.length-1;if(n==a){t.pop()}else{cn.call(t,n,1)}--this.size;return true}function Yd(e){var t=this.__data__,n=wn(t,e);return n<0?o:t[n][1]}function $d(e){return wn(this.__data__,e)>-1}function Qd(e,t){var n=this.__data__,a=wn(n,e);if(a<0){++this.size;n.push([e,t])}else{n[a][1]=t}return this}io.prototype.clear=Hd;io.prototype["delete"]=Kd;io.prototype.get=Yd;io.prototype.has=$d;io.prototype.set=Qd;function ao(e){var t=-1,n=e==null?0:e.length;this.clear();while(++t<n){var a=e[t];this.set(a[0],a[1])}}function Xd(){this.size=0;this.__data__={"hash":new zo,"map":new(Er||io),"string":new zo}}function Zd(e){var t=kn(this,e)["delete"](e);this.size-=t?1:0;return t}function Jd(e){return kn(this,e).get(e)}function ep(e){return kn(this,e).has(e)}function tp(e,t){var n=kn(this,e),a=n.size;n.set(e,t);this.size+=n.size==a?0:1;return this}ao.prototype.clear=Xd;ao.prototype["delete"]=Zd;ao.prototype.get=Jd;ao.prototype.has=ep;ao.prototype.set=tp;function Bo(e){var t=-1,n=e==null?0:e.length;this.__data__=new ao;while(++t<n){this.add(e[t])}}function op(e){this.__data__.set(e,m);return this}function rp(e){return this.__data__.has(e)}Bo.prototype.add=Bo.prototype.push=op;Bo.prototype.has=rp;function Yt(e){var t=this.__data__=new io(e);this.size=t.size}function np(){this.__data__=new io;this.size=0}function ip(e){var t=this.__data__,n=t["delete"](e);this.size=t.size;return n}function ap(e){return this.__data__.get(e)}function sp(e){return this.__data__.has(e)}function up(e,t){var n=this.__data__;if(n instanceof io){var a=n.__data__;if(!Er||a.length<i-1){a.push([e,t]);this.size=++n.size;return this}n=this.__data__=new ao(a)}n.set(e,t);this.size=n.size;return this}Yt.prototype.clear=np;Yt.prototype["delete"]=ip;Yt.prototype.get=ap;Yt.prototype.has=sp;Yt.prototype.set=up;function Nu(e,t){var n=Q(e),a=!n&&Ho(e),l=!n&&!a&&Ao(e),d=!n&&!a&&!l&&fr(e),v=n||a||l||d,_=v?xi(e.length,vd):[],S=_.length;for(var P in e){if((t||we.call(e,P))&&!(v&&(P=="length"||l&&(P=="offset"||P=="parent")||d&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||lo(P,S)))){_.push(P)}}return _}function Mu(e){var t=e.length;return t?e[Fi(0,t-1)]:o}function cp(e,t){return An(mt(e),jo(t,0,e.length))}function lp(e){return An(mt(e))}function Ai(e,t,n){if(n!==o&&!$t(e[t],n)||n===o&&!(t in e)){so(e,t,n)}}function Or(e,t,n){var a=e[t];if(!(we.call(e,t)&&$t(a,n))||n===o&&!(t in e)){so(e,t,n)}}function wn(e,t){var n=e.length;while(n--){if($t(e[n][0],t)){return n}}return-1}function gp(e,t,n,a){To(e,function(l,d,v){t(a,l,n(l),v)});return a}function Fu(e,t){return e&&eo(t,Qe(t),e)}function fp(e,t){return e&&eo(t,ht(t),e)}function so(e,t,n){if(t=="__proto__"&&ln){ln(e,t,{"configurable":true,"enumerable":true,"value":n,"writable":true})}else{e[t]=n}}function Pi(e,t){var n=-1,a=t.length,l=I(a),d=e==null;while(++n<a){l[n]=d?o:la(e,t[n])}return l}function jo(e,t,n){if(e===e){if(n!==o){e=e<=n?e:n}if(t!==o){e=e>=t?e:t}}return e}function Mt(e,t,n,a,l,d){var v,_=t&p,S=t&g,P=t&w;if(n){v=l?n(e,a,l,d):n(e)}if(v!==o){return v}if(!Oe(e)){return e}var R=Q(e);if(R){v=em(e);if(!_){return mt(e,v)}}else{var C=it(e),q=C==Dt||C==no;if(Ao(e)){return cc(e,_)}if(C==st||C==je||q&&!l){v=S||q?{}:kc(e);if(!_){return S?Wp(e,fp(v,e)):jp(e,Fu(v,e))}}else{if(!_e[C]){return l?e:{}}v=tm(e,C,_)}}d||(d=new Yt);var F=d.get(e);if(F){return F}d.set(e,v);if(rl(e)){e.forEach(function(K){v.add(Mt(K,t,n,K,e,d))})}else if(tl(e)){e.forEach(function(K,ae){v.set(ae,Mt(K,t,n,ae,e,d))})}var H=P?S?Qi:$i:S?ht:Qe;var te=R?o:H(e);qt(te||e,function(K,ae){if(te){ae=K;K=e[ae]}Or(v,ae,Mt(K,t,n,ae,e,d))});return v}function dp(e){var t=Qe(e);return function(n){return zu(n,e,t)}}function zu(e,t,n){var a=n.length;if(e==null){return!a}e=ye(e);while(a--){var l=n[a],d=t[l],v=e[l];if(v===o&&!(l in e)||!d(v)){return false}}return true}function Bu(e,t,n){if(typeof e!="function"){throw new Ut(u)}return Lr(function(){e.apply(o,n)},t)}function kr(e,t,n,a){var l=-1,d=Zr,v=true,_=e.length,S=[],P=t.length;if(!_){return S}if(n){t=Se(t,It(n))}if(a){d=wi;v=false}else if(t.length>=i){d=br;v=false;t=new Bo(t)}e:while(++l<_){var R=e[l],C=n==null?R:n(R);R=a||R!==0?R:0;if(v&&C===C){var q=P;while(q--){if(t[q]===C){continue e}}S.push(R)}else if(!d(t,C,a)){S.push(R)}}return S}var To=pc(Jt);var ju=pc(Ci,true);function pp(e,t){var n=true;To(e,function(a,l,d){n=!!t(a,l,d);return n});return n}function hn(e,t,n){var a=-1,l=e.length;while(++a<l){var d=e[a],v=t(d);if(v!=null&&(_===o?v===v&&!kt(v):n(v,_))){var _=v,S=d}}return S}function mp(e,t,n,a){var l=e.length;n=J(n);if(n<0){n=-n>l?0:l+n}a=a===o||a>l?l:J(a);if(a<0){a+=l}a=n>a?0:il(a);while(n<a){e[n++]=t}return e}function Wu(e,t){var n=[];To(e,function(a,l,d){if(t(a,l,d)){n.push(a)}});return n}function et(e,t,n,a,l){var d=-1,v=e.length;n||(n=rm);l||(l=[]);while(++d<v){var _=e[d];if(t>0&&n(_)){if(t>1){et(_,t-1,n,a,l)}else{bo(l,_)}}else if(!a){l[l.length]=_}}return l}var Ri=mc();var Vu=mc(true);function Jt(e,t){return e&&Ri(e,t,Qe)}function Ci(e,t){return e&&Vu(e,t,Qe)}function vn(e,t){return _o(t,function(n){return go(e[n])})}function Wo(e,t){t=Oo(t,e);var n=0,a=t.length;while(e!=null&&n<a){e=e[to(t[n++])]}return n&&n==a?e:o}function Gu(e,t,n){var a=t(e);return Q(e)?a:bo(a,n(e))}function ut(e){if(e==null){return e===o?ne:Uo}return Fo&&Fo in ye(e)?Xp(e):lm(e)}function Di(e,t){return e>t}function wp(e,t){return e!=null&&we.call(e,t)}function hp(e,t){return e!=null&&t in ye(e)}function vp(e,t,n){return e>=nt(t,n)&&e<He(t,n)}function Li(e,t,n){var a=n?wi:Zr,l=e[0].length,d=e.length,v=d,_=I(d),S=Infinity,P=[];while(v--){var R=e[v];if(v&&t){R=Se(R,It(t))}S=nt(R.length,S);_[v]=!n&&(t||l>=120&&R.length>=120)?new Bo(v&&R):o}R=e[0];var C=-1,q=_[0];e:while(++C<l&&P.length<S){var F=R[C],H=t?t(F):F;F=n||F!==0?F:0;if(!(q?br(q,H):a(P,H,n))){v=d;while(--v){var te=_[v];if(!(te?br(te,H):a(e[v],H,n))){continue e}}if(q){q.push(H)}P.push(F)}}return P}function yp(e,t,n,a){Jt(e,function(l,d,v){t(a,n(l),d,v)});return a}function Ar(e,t,n){t=Oo(t,e);e=Cc(e,t);var a=e==null?e:e[to(zt(t))];return a==null?o:Tt(a,e,n)}function Hu(e){return Ae(e)&&ut(e)==je}function _p(e){return Ae(e)&&ut(e)==U}function bp(e){return Ae(e)&&ut(e)==Et}function Pr(e,t,n,a,l){if(e===t){return true}if(e==null||t==null||!Ae(e)&&!Ae(t)){return e!==e&&t!==t}return xp(e,t,n,a,Pr,l)}function xp(e,t,n,a,l,d){var v=Q(e),_=Q(t),S=v?dt:it(e),P=_?dt:it(t);S=S==je?st:S;P=P==je?st:P;var R=S==st,C=P==st,q=S==P;if(q&&Ao(e)){if(!Ao(t)){return false}v=true;R=false}if(q&&!R){d||(d=new Yt);return v||fr(e)?Tc(e,t,n,a,l,d):$p(e,t,S,n,a,l,d)}if(!(n&h)){var F=R&&we.call(e,"__wrapped__"),H=C&&we.call(t,"__wrapped__");if(F||H){var te=F?e.value():e,K=H?t.value():t;d||(d=new Yt);return l(te,K,n,a,d)}}if(!q){return false}d||(d=new Yt);return Qp(e,t,n,a,l,d)}function Ep(e){return Ae(e)&&it(e)==Ke}function qi(e,t,n,a){var l=n.length,d=l,v=!a;if(e==null){return!d}e=ye(e);while(l--){var _=n[l];if(v&&_[2]?_[1]!==e[_[0]]:!(_[0]in e)){return false}}while(++l<d){_=n[l];var S=_[0],P=e[S],R=_[1];if(v&&_[2]){if(P===o&&!(S in e)){return false}}else{var C=new Yt;if(a){var q=a(P,R,S,e,t,C)}if(!(q===o?Pr(R,P,h|y,a,C):q)){return false}}}return true}function Ku(e){if(!Oe(e)||im(e)){return false}var t=go(e)?Ed:df;return t.test(Go(e))}function Sp(e){return Ae(e)&&ut(e)==De}function Tp(e){return Ae(e)&&it(e)==Le}function Ip(e){return Ae(e)&&qn(e.length)&&!!xe[ut(e)]}function Yu(e){if(typeof e=="function"){return e}if(e==null){return vt}if(typeof e=="object"){return Q(e)?Xu(e[0],e[1]):Qu(e)}return wl(e)}function Ui(e){if(!Dr(e)){return Ad(e)}var t=[];for(var n in ye(e)){if(we.call(e,n)&&n!="constructor"){t.push(n)}}return t}function Op(e){if(!Oe(e)){return cm(e)}var t=Dr(e),n=[];for(var a in e){if(!(a=="constructor"&&(t||!we.call(e,a)))){n.push(a)}}return n}function Ni(e,t){return e<t}function $u(e,t){var n=-1,a=wt(e)?I(e.length):[];To(e,function(l,d,v){a[++n]=t(l,d,v)});return a}function Qu(e){var t=Zi(e);if(t.length==1&&t[0][2]){return Pc(t[0][0],t[0][1])}return function(n){return n===e||qi(n,e,t)}}function Xu(e,t){if(ea(e)&&Ac(t)){return Pc(to(e),t)}return function(n){var a=la(n,e);return a===o&&a===t?ga(n,e):Pr(t,a,h|y)}}function yn(e,t,n,a,l){if(e===t){return}Ri(t,function(d,v){l||(l=new Yt);if(Oe(d)){kp(e,t,v,n,yn,a,l)}else{var _=a?a(oa(e,v),d,v+"",e,t,l):o;if(_===o){_=d}Ai(e,v,_)}},ht)}function kp(e,t,n,a,l,d,v){var _=oa(e,n),S=oa(t,n),P=v.get(S);if(P){Ai(e,n,P);return}var R=d?d(_,S,n+"",e,t,v):o;var C=R===o;if(C){var q=Q(S),F=!q&&Ao(S),H=!q&&!F&&fr(S);R=S;if(q||F||H){if(Q(_)){R=_}else if(qe(_)){R=mt(_)}else if(F){C=false;R=cc(S,true)}else if(H){C=false;R=lc(S,true)}else{R=[]}}else if(qr(S)||Ho(S)){R=_;if(Ho(_)){R=al(_)}else if(!Oe(_)||go(_)){R=kc(S)}}else{C=false}}if(C){v.set(S,R);l(R,S,a,d,v);v["delete"](S)}Ai(e,n,R)}function Zu(e,t){var n=e.length;if(!n){return}t+=t<0?n:0;return lo(t,n)?e[t]:o}function Ju(e,t,n){if(t.length){t=Se(t,function(d){if(Q(d)){return function(v){return Wo(v,d.length===1?d[0]:d)}}return d})}else{t=[vt]}var a=-1;t=Se(t,It(G()));var l=$u(e,function(d,v,_){var S=Se(t,function(P){return P(d)});return{"criteria":S,"index":++a,"value":d}});return td(l,function(d,v){return Bp(d,v,n)})}function Ap(e,t){return ec(e,t,function(n,a){return ga(e,a)})}function ec(e,t,n){var a=-1,l=t.length,d={};while(++a<l){var v=t[a],_=Wo(e,v);if(n(_,v)){Rr(d,Oo(v,e),_)}}return d}function Pp(e){return function(t){return Wo(t,e)}}function Mi(e,t,n,a){var l=a?ed:or,d=-1,v=t.length,_=e;if(e===t){t=mt(t)}if(n){_=Se(e,It(n))}while(++d<v){var S=0,P=t[d],R=n?n(P):P;while((S=l(_,R,S,a))>-1){if(_!==e){cn.call(_,S,1)}cn.call(e,S,1)}}return e}function tc(e,t){var n=e?t.length:0,a=n-1;while(n--){var l=t[n];if(n==a||l!==d){var d=l;if(lo(l)){cn.call(e,l,1)}else{ji(e,l)}}}return e}function Fi(e,t){return e+fn(qu()*(t-e+1))}function Rp(e,t,n,a){var l=-1,d=He(gn((t-e)/(n||1)),0),v=I(d);while(d--){v[a?d:++l]=e;e+=n}return v}function zi(e,t){var n="";if(!e||t<1||t>Ze){return n}do{if(t%2){n+=e}t=fn(t/2);if(t){e+=e}}while(t);return n}function re(e,t){return ra(Rc(e,t,vt),e+"")}function Cp(e){return Mu(dr(e))}function Dp(e,t){var n=dr(e);return An(n,jo(t,0,n.length))}function Rr(e,t,n,a){if(!Oe(e)){return e}t=Oo(t,e);var l=-1,d=t.length,v=d-1,_=e;while(_!=null&&++l<d){var S=to(t[l]),P=n;if(S==="__proto__"||S==="constructor"||S==="prototype"){return e}if(l!=v){var R=_[S];P=a?a(R,S,_):o;if(P===o){P=Oe(R)?R:lo(t[l+1])?[]:{}}}Or(_,S,P);_=_[S]}return e}var oc=!dn?vt:function(e,t){dn.set(e,t);return e};var Lp=!ln?vt:function(e,t){return ln(e,"toString",{"configurable":true,"enumerable":false,"value":da(t),"writable":true})};function qp(e){return An(dr(e))}function Ft(e,t,n){var a=-1,l=e.length;if(t<0){t=-t>l?0:l+t}n=n>l?l:n;if(n<0){n+=l}l=t>n?0:n-t>>>0;t>>>=0;var d=I(l);while(++a<l){d[a]=e[a+t]}return d}function Up(e,t){var n;To(e,function(a,l,d){n=t(a,l,d);return!n});return!!n}function _n(e,t,n){var a=0,l=e==null?a:e.length;if(typeof t=="number"&&t===t&&l<=xt){while(a<l){var d=a+l>>>1,v=e[d];if(v!==null&&!kt(v)&&(n?v<=t:v<t)){a=d+1}else{l=d}}return l}return Bi(e,t,vt,n)}function Bi(e,t,n,a){var l=0,d=e==null?0:e.length;if(d===0){return 0}t=n(t);var v=t!==t,_=t===null,S=kt(t),P=t===o;while(l<d){var R=fn((l+d)/2),C=n(e[R]),q=C!==o,F=C===null,H=C===C,te=kt(C);if(v){var K=a||H}else if(P){K=H&&(a||q)}else if(_){K=H&&q&&(a||!F)}else if(S){K=H&&q&&!F&&(a||!te)}else if(F||te){K=false}else{K=a?C<=t:C<t}if(K){l=R+1}else{d=R}}return nt(d,ft)}function rc(e,t){var n=-1,a=e.length,l=0,d=[];while(++n<a){var v=e[n],_=t?t(v):v;if(!n||!$t(_,S)){var S=_;d[l++]=v===0?0:v}}return d}function nc(e){if(typeof e=="number"){return e}if(kt(e)){return at}return+e}function Ot(e){if(typeof e=="string"){return e}if(Q(e)){return Se(e,Ot)+""}if(kt(e)){return Uu?Uu.call(e):""}var t=e+"";return t=="0"&&1/e==-Be?"-0":t}function Io(e,t,n){var a=-1,l=Zr,d=e.length,v=true,_=[],S=_;if(n){v=false;l=wi}else if(d>=i){var P=t?null:Kp(e);if(P){return en(P)}v=false;l=br;S=new Bo}else{S=t?[]:_}e:while(++a<d){var R=e[a],C=t?t(R):R;R=n||R!==0?R:0;if(v&&C===C){var q=S.length;while(q--){if(S[q]===C){continue e}}if(t){S.push(C)}_.push(R)}else if(!l(S,C,n)){if(S!==_){S.push(C)}_.push(R)}}return _}function ji(e,t){t=Oo(t,e);e=Cc(e,t);return e==null||delete e[to(zt(t))]}function ic(e,t,n,a){return Rr(e,t,n(Wo(e,t)),a)}function bn(e,t,n,a){var l=e.length,d=a?l:-1;while((a?d--:++d<l)&&t(e[d],d,e)){}return n?Ft(e,a?0:d,a?d+1:l):Ft(e,a?d+1:0,a?l:d)}function ac(e,t){var n=e;if(n instanceof se){n=n.value()}return hi(t,function(a,l){return l.func.apply(l.thisArg,bo([a],l.args))},n)}function Wi(e,t,n){var a=e.length;if(a<2){return a?Io(e[0]):[]}var l=-1,d=I(a);while(++l<a){var v=e[l],_=-1;while(++_<a){if(_!=l){d[l]=kr(d[l]||v,e[_],t,n)}}}return Io(et(d,1),t,n)}function sc(e,t,n){var a=-1,l=e.length,d=t.length,v={};while(++a<l){var _=a<d?t[a]:o;n(v,e[a],_)}return v}function Vi(e){return qe(e)?e:[]}function Gi(e){return typeof e=="function"?e:vt}function Oo(e,t){if(Q(e)){return e}return ea(e,t)?[e]:Uc(me(e))}var Np=re;function ko(e,t,n){var a=e.length;n=n===o?a:n;return!t&&n>=a?e:Ft(e,t,n)}var uc=Sd||function(e){return $e.clearTimeout(e)};function cc(e,t){if(t){return e.slice()}var n=e.length,a=Pu?Pu(n):new e.constructor(n);e.copy(a);return a}function Hi(e){var t=new e.constructor(e.byteLength);new sn(t).set(new sn(e));return t}function Mp(e,t){var n=t?Hi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Fp(e){var t=new e.constructor(e.source,Hs.exec(e));t.lastIndex=e.lastIndex;return t}function zp(e){return Ir?ye(Ir.call(e)):{}}function lc(e,t){var n=t?Hi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function gc(e,t){if(e!==t){var n=e!==o,a=e===null,l=e===e,d=kt(e);var v=t!==o,_=t===null,S=t===t,P=kt(t);if(!_&&!P&&!d&&e>t||d&&v&&S&&!_&&!P||a&&v&&S||!n&&S||!l){return 1}if(!a&&!d&&!P&&e<t||P&&n&&l&&!a&&!d||_&&n&&l||!v&&l||!S){return-1}}return 0}function Bp(e,t,n){var a=-1,l=e.criteria,d=t.criteria,v=l.length,_=n.length;while(++a<v){var S=gc(l[a],d[a]);if(S){if(a>=_){return S}var P=n[a];return S*(P=="desc"?-1:1)}}return e.index-t.index}function fc(e,t,n,a){var l=-1,d=e.length,v=n.length,_=-1,S=t.length,P=He(d-v,0),R=I(S+P),C=!a;while(++_<S){R[_]=t[_]}while(++l<v){if(C||l<d){R[n[l]]=e[l]}}while(P--){R[_++]=e[l++]}return R}function dc(e,t,n,a){var l=-1,d=e.length,v=-1,_=n.length,S=-1,P=t.length,R=He(d-_,0),C=I(R+P),q=!a;while(++l<R){C[l]=e[l]}var F=l;while(++S<P){C[F+S]=t[S]}while(++v<_){if(q||l<d){C[F+n[v]]=e[l++]}}return C}function mt(e,t){var n=-1,a=e.length;t||(t=I(a));while(++n<a){t[n]=e[n]}return t}function eo(e,t,n,a){var l=!n;n||(n={});var d=-1,v=t.length;while(++d<v){var _=t[d];var S=a?a(n[_],e[_],_,n,e):o;if(S===o){S=e[_]}if(l){so(n,_,S)}else{Or(n,_,S)}}return n}function jp(e,t){return eo(e,Ji(e),t)}function Wp(e,t){return eo(e,Ic(e),t)}function xn(e,t){return function(n,a){var l=Q(n)?Yf:gp,d=t?t():{};return l(n,e,G(a,2),d)}}function cr(e){return re(function(t,n){var a=-1,l=n.length,d=l>1?n[l-1]:o,v=l>2?n[2]:o;d=e.length>3&&typeof d=="function"?(l--,d):o;if(v&&ct(n[0],n[1],v)){d=l<3?o:d;l=1}t=ye(t);while(++a<l){var _=n[a];if(_){e(t,_,a,d)}}return t})}function pc(e,t){return function(n,a){if(n==null){return n}if(!wt(n)){return e(n,a)}var l=n.length,d=t?l:-1,v=ye(n);while(t?d--:++d<l){if(a(v[d],d,v)===false){break}}return n}}function mc(e){return function(t,n,a){var l=-1,d=ye(t),v=a(t),_=v.length;while(_--){var S=v[e?_:++l];if(n(d[S],S,d)===false){break}}return t}}function Vp(e,t,n){var a=t&b,l=Cr(e);function d(){var v=this&&this!==$e&&this instanceof d?l:e;return v.apply(a?n:this,arguments)}return d}function wc(e){return function(t){t=me(t);var n=rr(t)?Kt(t):o;var a=n?n[0]:t.charAt(0);var l=n?ko(n,1).join(""):t.slice(1);return a[e]()+l}}function lr(e){return function(t){return hi(pl(dl(t).replace(Lf,"")),e,"")}}function Cr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ur(e.prototype),a=e.apply(n,t);return Oe(a)?a:n}}function Gp(e,t,n){var a=Cr(e);function l(){var d=arguments.length,v=I(d),_=d,S=gr(l);while(_--){v[_]=arguments[_]}var P=d<3&&v[0]!==S&&v[d-1]!==S?[]:xo(v,S);d-=P.length;if(d<n){return bc(e,t,En,l.placeholder,o,v,P,o,o,n-d)}var R=this&&this!==$e&&this instanceof l?a:e;return Tt(R,this,v)}return l}function hc(e){return function(t,n,a){var l=ye(t);if(!wt(t)){var d=G(n,3);t=Qe(t);n=function(_){return d(l[_],_,l)}}var v=e(t,n,a);return v>-1?l[d?t[v]:v]:o}}function vc(e){return co(function(t){var n=t.length,a=n,l=Nt.prototype.thru;if(e){t.reverse()}while(a--){var d=t[a];if(typeof d!="function"){throw new Ut(u)}if(l&&!v&&On(d)=="wrapper"){var v=new Nt([],true)}}a=v?a:n;while(++a<n){d=t[a];var _=On(d),S=_=="wrapper"?Xi(d):o;if(S&&ta(S[0])&&S[1]==(oe|O|N|Z)&&!S[4].length&&S[9]==1){v=v[On(S[0])].apply(v,S[3])}else{v=d.length==1&&ta(d)?v[_]():v.thru(d)}}return function(){var P=arguments,R=P[0];if(v&&P.length==1&&Q(R)){return v.plant(R).value()}var C=0,q=n?t[C].apply(this,P):R;while(++C<n){q=t[C].call(this,q)}return q}})}function En(e,t,n,a,l,d,v,_,S,P){var R=t&oe,C=t&b,q=t&L,F=t&(O|A),H=t&fe,te=q?o:Cr(e);function K(){var ae=arguments.length,ue=I(ae),At=ae;while(At--){ue[At]=arguments[At]}if(F){var lt=gr(K),Pt=rd(ue,lt)}if(a){ue=fc(ue,a,l,F)}if(d){ue=dc(ue,d,v,F)}ae-=Pt;if(F&&ae<P){var Ue=xo(ue,lt);return bc(e,t,En,K.placeholder,n,ue,Ue,_,S,P-ae)}var Qt=C?n:this,po=q?Qt[e]:e;ae=ue.length;if(_){ue=gm(ue,_)}else if(H&&ae>1){ue.reverse()}if(R&&S<ae){ue.length=S}if(this&&this!==$e&&this instanceof K){po=te||Cr(po)}return po.apply(Qt,ue)}return K}function yc(e,t){return function(n,a){return yp(n,e,t(a),{})}}function Sn(e,t){return function(n,a){var l;if(n===o&&a===o){return t}if(n!==o){l=n}if(a!==o){if(l===o){return a}if(typeof n=="string"||typeof a=="string"){n=Ot(n);a=Ot(a)}else{n=nc(n);a=nc(a)}l=e(n,a)}return l}}function Ki(e){return co(function(t){t=Se(t,It(G()));return re(function(n){var a=this;return e(t,function(l){return Tt(l,a,n)})})})}function Tn(e,t){t=t===o?" ":Ot(t);var n=t.length;if(n<2){return n?zi(t,e):t}var a=zi(t,gn(e/nr(t)));return rr(t)?ko(Kt(a),0,e).join(""):a.slice(0,e)}function Hp(e,t,n,a){var l=t&b,d=Cr(e);function v(){var _=-1,S=arguments.length,P=-1,R=a.length,C=I(R+S),q=this&&this!==$e&&this instanceof v?d:e;while(++P<R){C[P]=a[P]}while(S--){C[P++]=arguments[++_]}return Tt(q,l?n:this,C)}return v}function _c(e){return function(t,n,a){if(a&&typeof a!="number"&&ct(t,n,a)){n=a=o}t=fo(t);if(n===o){n=t;t=0}else{n=fo(n)}a=a===o?t<n?1:-1:fo(a);return Rp(t,n,a,e)}}function In(e){return function(t,n){if(!(typeof t=="string"&&typeof n=="string")){t=Bt(t);n=Bt(n)}return e(t,n)}}function bc(e,t,n,a,l,d,v,_,S,P){var R=t&O,C=R?v:o,q=R?o:v,F=R?d:o,H=R?o:d;t|=R?N:X;t&=~(R?X:N);if(!(t&D)){t&=~(b|L)}var te=[e,t,l,F,C,H,q,_,S,P];var K=n.apply(o,te);if(ta(e)){Dc(K,te)}K.placeholder=a;return Lc(K,e,t)}function Yi(e){var t=Ge[e];return function(n,a){n=Bt(n);a=a==null?0:nt(J(a),292);if(a&&Lu(n)){var l=(me(n)+"e").split("e"),d=t(l[0]+"e"+(+l[1]+a));l=(me(d)+"e").split("e");return+(l[0]+"e"+(+l[1]-a))}return t(n)}}var Kp=!(ar&&1/en(new ar([,-0]))[1]==Be)?wa:function(e){return new ar(e)};function xc(e){return function(t){var n=it(t);if(n==Ke){return Si(t)}if(n==Le){return ld(t)}return od(t,e(t))}}function uo(e,t,n,a,l,d,v,_){var S=t&L;if(!S&&typeof e!="function"){throw new Ut(u)}var P=a?a.length:0;if(!P){t&=~(N|X);a=l=o}v=v===o?v:He(J(v),0);_=_===o?_:J(_);P-=l?l.length:0;if(t&X){var R=a,C=l;a=l=o}var q=S?o:Xi(e);var F=[e,t,n,a,l,R,C,d,v,_];if(q){um(F,q)}e=F[0];t=F[1];n=F[2];a=F[3];l=F[4];_=F[9]=F[9]===o?S?0:e.length:He(F[9]-P,0);if(!_&&t&(O|A)){t&=~(O|A)}if(!t||t==b){var H=Vp(e,t,n)}else if(t==O||t==A){H=Gp(e,t,_)}else if((t==N||t==(b|N))&&!l.length){H=Hp(e,t,n,a)}else{H=En.apply(o,F)}var te=q?oc:Dc;return Lc(te(H,F),e,t)}function Ec(e,t,n,a){if(e===o||$t(e,ir[n])&&!we.call(a,n)){return t}return e}function Sc(e,t,n,a,l,d){if(Oe(e)&&Oe(t)){d.set(t,e);yn(e,t,o,Sc,d);d["delete"](t)}return e}function Yp(e){return qr(e)?o:e}function Tc(e,t,n,a,l,d){var v=n&h,_=e.length,S=t.length;if(_!=S&&!(v&&S>_)){return false}var P=d.get(e);var R=d.get(t);if(P&&R){return P==t&&R==e}var C=-1,q=true,F=n&y?new Bo:o;d.set(e,t);d.set(t,e);while(++C<_){var H=e[C],te=t[C];if(a){var K=v?a(te,H,C,t,e,d):a(H,te,C,e,t,d)}if(K!==o){if(K){continue}q=false;break}if(F){if(!vi(t,function(ae,ue){if(!br(F,ue)&&(H===ae||l(H,ae,n,a,d))){return F.push(ue)}})){q=false;break}}else if(!(H===te||l(H,te,n,a,d))){q=false;break}}d["delete"](e);d["delete"](t);return q}function $p(e,t,n,a,l,d,v){switch(n){case W:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case U:if(e.byteLength!=t.byteLength||!d(new sn(e),new sn(t))){return false}return true;case ge:case Et:case Je:return $t(+e,+t);case Zt:return e.name==t.name&&e.message==t.message;case De:case St:return e==t+"";case Ke:var _=Si;case Le:var S=a&h;_||(_=en);if(e.size!=t.size&&!S){return false}var P=v.get(e);if(P){return P==t}a|=y;v.set(e,t);var R=Tc(_(e),_(t),a,l,d,v);v["delete"](e);return R;case j:if(Ir){return Ir.call(e)==Ir.call(t)}}return false}function Qp(e,t,n,a,l,d){var v=n&h,_=$i(e),S=_.length,P=$i(t),R=P.length;if(S!=R&&!v){return false}var C=S;while(C--){var q=_[C];if(!(v?q in t:we.call(t,q))){return false}}var F=d.get(e);var H=d.get(t);if(F&&H){return F==t&&H==e}var te=true;d.set(e,t);d.set(t,e);var K=v;while(++C<S){q=_[C];var ae=e[q],ue=t[q];if(a){var At=v?a(ue,ae,q,t,e,d):a(ae,ue,q,e,t,d)}if(!(At===o?ae===ue||l(ae,ue,n,a,d):At)){te=false;break}K||(K=q=="constructor")}if(te&&!K){var lt=e.constructor,Pt=t.constructor;if(lt!=Pt&&("constructor"in e&&"constructor"in t)&&!(typeof lt=="function"&&lt instanceof lt&&typeof Pt=="function"&&Pt instanceof Pt)){te=false}}d["delete"](e);d["delete"](t);return te}function co(e){return ra(Rc(e,o,zc),e+"")}function $i(e){return Gu(e,Qe,Ji)}function Qi(e){return Gu(e,ht,Ic)}var Xi=!dn?wa:function(e){return dn.get(e)};function On(e){var t=e.name+"",n=sr[t],a=we.call(sr,t)?n.length:0;while(a--){var l=n[a],d=l.func;if(d==null||d==e){return l.name}}return t}function gr(e){var t=we.call(f,"placeholder")?f:e;return t.placeholder}function G(){var e=f.iteratee||pa;e=e===pa?Yu:e;return arguments.length?e(arguments[0],arguments[1]):e}function kn(e,t){var n=e.__data__;return nm(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Zi(e){var t=Qe(e),n=t.length;while(n--){var a=t[n],l=e[a];t[n]=[a,l,Ac(l)]}return t}function Vo(e,t){var n=sd(e,t);return Ku(n)?n:o}function Xp(e){var t=we.call(e,Fo),n=e[Fo];try{e[Fo]=o;var a=true}catch(d){}var l=nn.call(e);if(a){if(t){e[Fo]=n}else{delete e[Fo]}}return l}var Ji=!Ii?ha:function(e){if(e==null){return[]}e=ye(e);return _o(Ii(e),function(t){return Cu.call(e,t)})};var Ic=!Ii?ha:function(e){var t=[];while(e){bo(t,Ji(e));e=un(e)}return t};var it=ut;if(Oi&&it(new Oi(new ArrayBuffer(1)))!=W||Er&&it(new Er)!=Ke||ki&&it(ki.resolve())!=Ht||ar&&it(new ar)!=Le||Sr&&it(new Sr)!=Y){it=function(e){var t=ut(e),n=t==st?e.constructor:o,a=n?Go(n):"";if(a){switch(a){case Dd:return W;case Ld:return Ke;case qd:return Ht;case Ud:return Le;case Nd:return Y}}return t}}function Zp(e,t,n){var a=-1,l=n.length;while(++a<l){var d=n[a],v=d.size;switch(d.type){case"drop":e+=v;break;case"dropRight":t-=v;break;case"take":t=nt(t,e+v);break;case"takeRight":e=He(e,t-v);break}}return{"start":e,"end":t}}function Jp(e){var t=e.match(nf);return t?t[1].split(af):[]}function Oc(e,t,n){t=Oo(t,e);var a=-1,l=t.length,d=false;while(++a<l){var v=to(t[a]);if(!(d=e!=null&&n(e,v))){break}e=e[v]}if(d||++a!=l){return d}l=e==null?0:e.length;return!!l&&qn(l)&&lo(v,l)&&(Q(e)||Ho(e))}function em(e){var t=e.length,n=new e.constructor(t);if(t&&typeof e[0]=="string"&&we.call(e,"index")){n.index=e.index;n.input=e.input}return n}function kc(e){return typeof e.constructor=="function"&&!Dr(e)?ur(un(e)):{}}function tm(e,t,n){var a=e.constructor;switch(t){case U:return Hi(e);case ge:case Et:return new a(+e);case W:return Mp(e,n);case B:case Ye:case be:case ie:case V:case pt:case No:case er:case ai:return lc(e,n);case Ke:return new a;case Je:case St:return new a(e);case De:return Fp(e);case Le:return new a;case j:return zp(e)}}function om(e,t){var n=t.length;if(!n){return e}var a=n-1;t[a]=(n>1?"& ":"")+t[a];t=t.join(n>2?", ":" ");return e.replace(rf,"{\\n/* [wrapped with "+t+"] */\\n")}function rm(e){return Q(e)||Ho(e)||!!(Du&&e&&e[Du])}function lo(e,t){var n=typeof e;t=t==null?Ze:t;return!!t&&(n=="number"||n!="symbol"&&mf.test(e))&&(e>-1&&e%1==0&&e<t)}function ct(e,t,n){if(!Oe(n)){return false}var a=typeof t;if(a=="number"?wt(n)&&lo(t,n.length):a=="string"&&t in n){return $t(n[t],e)}return false}function ea(e,t){if(Q(e)){return false}var n=typeof e;if(n=="number"||n=="symbol"||n=="boolean"||e==null||kt(e)){return true}return Jg.test(e)||!Zg.test(e)||t!=null&&e in ye(t)}function nm(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ta(e){var t=On(e),n=f[t];if(typeof n!="function"||!(t in se.prototype)){return false}if(e===n){return true}var a=Xi(n);return!!a&&e===a[0]}function im(e){return!!Au&&Au in e}var am=on?go:va;function Dr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ir;return e===n}function Ac(e){return e===e&&!Oe(e)}function Pc(e,t){return function(n){if(n==null){return false}return n[e]===t&&(t!==o||e in ye(n))}}function sm(e){var t=Dn(e,function(a){if(n.size===x){n.clear()}return a});var n=t.cache;return t}function um(e,t){var n=e[1],a=t[1],l=n|a,d=l<(b|L|oe);var v=a==oe&&n==O||a==oe&&n==Z&&e[7].length<=t[8]||a==(oe|Z)&&t[7].length<=t[8]&&n==O;if(!(d||v)){return e}if(a&b){e[2]=t[2];l|=n&b?0:D}var _=t[3];if(_){var S=e[3];e[3]=S?fc(S,_,t[4]):_;e[4]=S?xo(e[3],T):t[4]}_=t[5];if(_){S=e[5];e[5]=S?dc(S,_,t[6]):_;e[6]=S?xo(e[5],T):t[6]}_=t[7];if(_){e[7]=_}if(a&oe){e[8]=e[8]==null?t[8]:nt(e[8],t[8])}if(e[9]==null){e[9]=t[9]}e[0]=t[0];e[1]=l;return e}function cm(e){var t=[];if(e!=null){for(var n in ye(e)){t.push(n)}}return t}function lm(e){return nn.call(e)}function Rc(e,t,n){t=He(t===o?e.length-1:t,0);return function(){var a=arguments,l=-1,d=He(a.length-t,0),v=I(d);while(++l<d){v[l]=a[t+l]}l=-1;var _=I(t+1);while(++l<t){_[l]=a[l]}_[t]=n(v);return Tt(e,this,_)}}function Cc(e,t){return t.length<2?e:Wo(e,Ft(t,0,-1))}function gm(e,t){var n=e.length,a=nt(t.length,n),l=mt(e);while(a--){var d=t[a];e[a]=lo(d,n)?l[d]:o}return e}function oa(e,t){if(t==="constructor"&&typeof e[t]==="function"){return}if(t=="__proto__"){return}return e[t]}var Dc=qc(oc);var Lr=Id||function(e,t){return $e.setTimeout(e,t)};var ra=qc(Lp);function Lc(e,t,n){var a=t+"";return ra(e,om(a,fm(Jp(a),n)))}function qc(e){var t=0,n=0;return function(){var a=Pd(),l=Ie-(a-n);n=a;if(l>0){if(++t>=We){return arguments[0]}}else{t=0}return e.apply(o,arguments)}}function An(e,t){var n=-1,a=e.length,l=a-1;t=t===o?a:t;while(++n<t){var d=Fi(n,l),v=e[d];e[d]=e[n];e[n]=v}e.length=t;return e}var Uc=sm(function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(ef,function(n,a,l,d){t.push(l?d.replace(cf,"$1"):a||n)});return t});function to(e){if(typeof e=="string"||kt(e)){return e}var t=e+"";return t=="0"&&1/e==-Be?"-0":t}function Go(e){if(e!=null){try{return rn.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function fm(e,t){qt(Vt,function(n){var a="_."+n[0];if(t&n[1]&&!Zr(e,a)){e.push(a)}});return e.sort()}function Nc(e){if(e instanceof se){return e.clone()}var t=new Nt(e.__wrapped__,e.__chain__);t.__actions__=mt(e.__actions__);t.__index__=e.__index__;t.__values__=e.__values__;return t}function dm(e,t,n){if(n?ct(e,t,n):t===o){t=1}else{t=He(J(t),0)}var a=e==null?0:e.length;if(!a||t<1){return[]}var l=0,d=0,v=I(gn(a/t));while(l<a){v[d++]=Ft(e,l,l+=t)}return v}function pm(e){var t=-1,n=e==null?0:e.length,a=0,l=[];while(++t<n){var d=e[t];if(d){l[a++]=d}}return l}function mm(){var e=arguments.length;if(!e){return[]}var t=I(e-1),n=arguments[0],a=e;while(a--){t[a-1]=arguments[a]}return bo(Q(n)?mt(n):[n],et(t,1))}var wm=re(function(e,t){return qe(e)?kr(e,et(t,1,qe,true)):[]});var hm=re(function(e,t){var n=zt(t);if(qe(n)){n=o}return qe(e)?kr(e,et(t,1,qe,true),G(n,2)):[]});var vm=re(function(e,t){var n=zt(t);if(qe(n)){n=o}return qe(e)?kr(e,et(t,1,qe,true),o,n):[]});function ym(e,t,n){var a=e==null?0:e.length;if(!a){return[]}t=n||t===o?1:J(t);return Ft(e,t<0?0:t,a)}function _m(e,t,n){var a=e==null?0:e.length;if(!a){return[]}t=n||t===o?1:J(t);t=a-t;return Ft(e,0,t<0?0:t)}function bm(e,t){return e&&e.length?bn(e,G(t,3),true,true):[]}function xm(e,t){return e&&e.length?bn(e,G(t,3),true):[]}function Em(e,t,n,a){var l=e==null?0:e.length;if(!l){return[]}if(n&&typeof n!="number"&&ct(e,t,n)){n=0;a=l}return mp(e,t,n,a)}function Mc(e,t,n){var a=e==null?0:e.length;if(!a){return-1}var l=n==null?0:J(n);if(l<0){l=He(a+l,0)}return Jr(e,G(t,3),l)}function Fc(e,t,n){var a=e==null?0:e.length;if(!a){return-1}var l=a-1;if(n!==o){l=J(n);l=n<0?He(a+l,0):nt(l,a-1)}return Jr(e,G(t,3),l,true)}function zc(e){var t=e==null?0:e.length;return t?et(e,1):[]}function Sm(e){var t=e==null?0:e.length;return t?et(e,Be):[]}function Tm(e,t){var n=e==null?0:e.length;if(!n){return[]}t=t===o?1:J(t);return et(e,t)}function Im(e){var t=-1,n=e==null?0:e.length,a={};while(++t<n){var l=e[t];a[l[0]]=l[1]}return a}function Bc(e){return e&&e.length?e[0]:o}function Om(e,t,n){var a=e==null?0:e.length;if(!a){return-1}var l=n==null?0:J(n);if(l<0){l=He(a+l,0)}return or(e,t,l)}function km(e){var t=e==null?0:e.length;return t?Ft(e,0,-1):[]}var Am=re(function(e){var t=Se(e,Vi);return t.length&&t[0]===e[0]?Li(t):[]});var Pm=re(function(e){var t=zt(e),n=Se(e,Vi);if(t===zt(n)){t=o}else{n.pop()}return n.length&&n[0]===e[0]?Li(n,G(t,2)):[]});var Rm=re(function(e){var t=zt(e),n=Se(e,Vi);t=typeof t=="function"?t:o;if(t){n.pop()}return n.length&&n[0]===e[0]?Li(n,o,t):[]});function Cm(e,t){return e==null?"":kd.call(e,t)}function zt(e){var t=e==null?0:e.length;return t?e[t-1]:o}function Dm(e,t,n){var a=e==null?0:e.length;if(!a){return-1}var l=a;if(n!==o){l=J(n);l=l<0?He(a+l,0):nt(l,a-1)}return t===t?fd(e,t,l):Jr(e,bu,l,true)}function Lm(e,t){return e&&e.length?Zu(e,J(t)):o}var qm=re(jc);function jc(e,t){return e&&e.length&&t&&t.length?Mi(e,t):e}function Um(e,t,n){return e&&e.length&&t&&t.length?Mi(e,t,G(n,2)):e}function Nm(e,t,n){return e&&e.length&&t&&t.length?Mi(e,t,o,n):e}var Mm=co(function(e,t){var n=e==null?0:e.length,a=Pi(e,t);tc(e,Se(t,function(l){return lo(l,n)?+l:l}).sort(gc));return a});function Fm(e,t){var n=[];if(!(e&&e.length)){return n}var a=-1,l=[],d=e.length;t=G(t,3);while(++a<d){var v=e[a];if(t(v,a,e)){n.push(v);l.push(a)}}tc(e,l);return n}function na(e){return e==null?e:Cd.call(e)}function zm(e,t,n){var a=e==null?0:e.length;if(!a){return[]}if(n&&typeof n!="number"&&ct(e,t,n)){t=0;n=a}else{t=t==null?0:J(t);n=n===o?a:J(n)}return Ft(e,t,n)}function Bm(e,t){return _n(e,t)}function jm(e,t,n){return Bi(e,t,G(n,2))}function Wm(e,t){var n=e==null?0:e.length;if(n){var a=_n(e,t);if(a<n&&$t(e[a],t)){return a}}return-1}function Vm(e,t){return _n(e,t,true)}function Gm(e,t,n){return Bi(e,t,G(n,2),true)}function Hm(e,t){var n=e==null?0:e.length;if(n){var a=_n(e,t,true)-1;if($t(e[a],t)){return a}}return-1}function Km(e){return e&&e.length?rc(e):[]}function Ym(e,t){return e&&e.length?rc(e,G(t,2)):[]}function $m(e){var t=e==null?0:e.length;return t?Ft(e,1,t):[]}function Qm(e,t,n){if(!(e&&e.length)){return[]}t=n||t===o?1:J(t);return Ft(e,0,t<0?0:t)}function Xm(e,t,n){var a=e==null?0:e.length;if(!a){return[]}t=n||t===o?1:J(t);t=a-t;return Ft(e,t<0?0:t,a)}function Zm(e,t){return e&&e.length?bn(e,G(t,3),false,true):[]}function Jm(e,t){return e&&e.length?bn(e,G(t,3)):[]}var ew=re(function(e){return Io(et(e,1,qe,true))});var tw=re(function(e){var t=zt(e);if(qe(t)){t=o}return Io(et(e,1,qe,true),G(t,2))});var ow=re(function(e){var t=zt(e);t=typeof t=="function"?t:o;return Io(et(e,1,qe,true),o,t)});function rw(e){return e&&e.length?Io(e):[]}function nw(e,t){return e&&e.length?Io(e,G(t,2)):[]}function iw(e,t){t=typeof t=="function"?t:o;return e&&e.length?Io(e,o,t):[]}function ia(e){if(!(e&&e.length)){return[]}var t=0;e=_o(e,function(n){if(qe(n)){t=He(n.length,t);return true}});return xi(t,function(n){return Se(e,yi(n))})}function Wc(e,t){if(!(e&&e.length)){return[]}var n=ia(e);if(t==null){return n}return Se(n,function(a){return Tt(t,o,a)})}var aw=re(function(e,t){return qe(e)?kr(e,t):[]});var sw=re(function(e){return Wi(_o(e,qe))});var uw=re(function(e){var t=zt(e);if(qe(t)){t=o}return Wi(_o(e,qe),G(t,2))});var cw=re(function(e){var t=zt(e);t=typeof t=="function"?t:o;return Wi(_o(e,qe),o,t)});var lw=re(ia);function gw(e,t){return sc(e||[],t||[],Or)}function fw(e,t){return sc(e||[],t||[],Rr)}var dw=re(function(e){var t=e.length,n=t>1?e[t-1]:o;n=typeof n=="function"?(e.pop(),n):o;return Wc(e,n)});function Vc(e){var t=f(e);t.__chain__=true;return t}function pw(e,t){t(e);return e}function Pn(e,t){return t(e)}var mw=co(function(e){var t=e.length,n=t?e[0]:0,a=this.__wrapped__,l=function(d){return Pi(d,e)};if(t>1||this.__actions__.length||!(a instanceof se)||!lo(n)){return this.thru(l)}a=a.slice(n,+n+(t?1:0));a.__actions__.push({"func":Pn,"args":[l],"thisArg":o});return new Nt(a,this.__chain__).thru(function(d){if(t&&!d.length){d.push(o)}return d})});function ww(){return Vc(this)}function hw(){return new Nt(this.value(),this.__chain__)}function vw(){if(this.__values__===o){this.__values__=nl(this.value())}var e=this.__index__>=this.__values__.length,t=e?o:this.__values__[this.__index__++];return{"done":e,"value":t}}function yw(){return this}function _w(e){var t,n=this;while(n instanceof mn){var a=Nc(n);a.__index__=0;a.__values__=o;if(t){l.__wrapped__=a}else{t=a}var l=a;n=n.__wrapped__}l.__wrapped__=e;return t}function bw(){var e=this.__wrapped__;if(e instanceof se){var t=e;if(this.__actions__.length){t=new se(this)}t=t.reverse();t.__actions__.push({"func":Pn,"args":[na],"thisArg":o});return new Nt(t,this.__chain__)}return this.thru(na)}function xw(){return ac(this.__wrapped__,this.__actions__)}var Ew=xn(function(e,t,n){if(we.call(e,n)){++e[n]}else{so(e,n,1)}});function Sw(e,t,n){var a=Q(e)?yu:pp;if(n&&ct(e,t,n)){t=o}return a(e,G(t,3))}function Tw(e,t){var n=Q(e)?_o:Wu;return n(e,G(t,3))}var Iw=hc(Mc);var Ow=hc(Fc);function kw(e,t){return et(Rn(e,t),1)}function Aw(e,t){return et(Rn(e,t),Be)}function Pw(e,t,n){n=n===o?1:J(n);return et(Rn(e,t),n)}function Gc(e,t){var n=Q(e)?qt:To;return n(e,G(t,3))}function Hc(e,t){var n=Q(e)?$f:ju;return n(e,G(t,3))}var Rw=xn(function(e,t,n){if(we.call(e,n)){e[n].push(t)}else{so(e,n,[t])}});function Cw(e,t,n,a){e=wt(e)?e:dr(e);n=n&&!a?J(n):0;var l=e.length;if(n<0){n=He(l+n,0)}return Un(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&or(e,t,n)>-1}var Dw=re(function(e,t,n){var a=-1,l=typeof t=="function",d=wt(e)?I(e.length):[];To(e,function(v){d[++a]=l?Tt(t,v,n):Ar(v,t,n)});return d});var Lw=xn(function(e,t,n){so(e,n,t)});function Rn(e,t){var n=Q(e)?Se:$u;return n(e,G(t,3))}function qw(e,t,n,a){if(e==null){return[]}if(!Q(t)){t=t==null?[]:[t]}n=a?o:n;if(!Q(n)){n=n==null?[]:[n]}return Ju(e,t,n)}var Uw=xn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Nw(e,t,n){var a=Q(e)?hi:Eu,l=arguments.length<3;return a(e,G(t,4),n,l,To)}function Mw(e,t,n){var a=Q(e)?Qf:Eu,l=arguments.length<3;return a(e,G(t,4),n,l,ju)}function Fw(e,t){var n=Q(e)?_o:Wu;return n(e,Ln(G(t,3)))}function zw(e){var t=Q(e)?Mu:Cp;return t(e)}function Bw(e,t,n){if(n?ct(e,t,n):t===o){t=1}else{t=J(t)}var a=Q(e)?cp:Dp;return a(e,t)}function jw(e){var t=Q(e)?lp:qp;return t(e)}function Ww(e){if(e==null){return 0}if(wt(e)){return Un(e)?nr(e):e.length}var t=it(e);if(t==Ke||t==Le){return e.size}return Ui(e).length}function Vw(e,t,n){var a=Q(e)?vi:Up;if(n&&ct(e,t,n)){t=o}return a(e,G(t,3))}var Gw=re(function(e,t){if(e==null){return[]}var n=t.length;if(n>1&&ct(e,t[0],t[1])){t=[]}else if(n>2&&ct(t[0],t[1],t[2])){t=[t[0]]}return Ju(e,et(t,1),[])});var Cn=Td||function(){return $e.Date.now()};function Hw(e,t){if(typeof t!="function"){throw new Ut(u)}e=J(e);return function(){if(--e<1){return t.apply(this,arguments)}}}function Kc(e,t,n){t=n?o:t;t=e&&t==null?e.length:t;return uo(e,oe,o,o,o,o,t)}function Yc(e,t){var n;if(typeof t!="function"){throw new Ut(u)}e=J(e);return function(){if(--e>0){n=t.apply(this,arguments)}if(e<=1){t=o}return n}}var aa=re(function(e,t,n){var a=b;if(n.length){var l=xo(n,gr(aa));a|=N}return uo(e,a,t,n,l)});var $c=re(function(e,t,n){var a=b|L;if(n.length){var l=xo(n,gr($c));a|=N}return uo(t,a,e,n,l)});function Qc(e,t,n){t=n?o:t;var a=uo(e,O,o,o,o,o,o,t);a.placeholder=Qc.placeholder;return a}function Xc(e,t,n){t=n?o:t;var a=uo(e,A,o,o,o,o,o,t);a.placeholder=Xc.placeholder;return a}function Zc(e,t,n){var a,l,d,v,_,S,P=0,R=false,C=false,q=true;if(typeof e!="function"){throw new Ut(u)}t=Bt(t)||0;if(Oe(n)){R=!!n.leading;C="maxWait"in n;d=C?He(Bt(n.maxWait)||0,t):d;q="trailing"in n?!!n.trailing:q}function F(Ue){var Qt=a,po=l;a=l=o;P=Ue;v=e.apply(po,Qt);return v}function H(Ue){P=Ue;_=Lr(ae,t);return R?F(Ue):v}function te(Ue){var Qt=Ue-S,po=Ue-P,hl=t-Qt;return C?nt(hl,d-po):hl}function K(Ue){var Qt=Ue-S,po=Ue-P;return S===o||Qt>=t||Qt<0||C&&po>=d}function ae(){var Ue=Cn();if(K(Ue)){return ue(Ue)}_=Lr(ae,te(Ue))}function ue(Ue){_=o;if(q&&a){return F(Ue)}a=l=o;return v}function At(){if(_!==o){uc(_)}P=0;a=S=l=_=o}function lt(){return _===o?v:ue(Cn())}function Pt(){var Ue=Cn(),Qt=K(Ue);a=arguments;l=this;S=Ue;if(Qt){if(_===o){return H(S)}if(C){uc(_);_=Lr(ae,t);return F(S)}}if(_===o){_=Lr(ae,t)}return v}Pt.cancel=At;Pt.flush=lt;return Pt}var Kw=re(function(e,t){return Bu(e,1,t)});var Yw=re(function(e,t,n){return Bu(e,Bt(t)||0,n)});function $w(e){return uo(e,fe)}function Dn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new Ut(u)}var n=function(){var a=arguments,l=t?t.apply(this,a):a[0],d=n.cache;if(d.has(l)){return d.get(l)}var v=e.apply(this,a);n.cache=d.set(l,v)||d;return v};n.cache=new(Dn.Cache||ao);return n}Dn.Cache=ao;function Ln(e){if(typeof e!="function"){throw new Ut(u)}return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Qw(e){return Yc(2,e)}var Xw=Np(function(e,t){t=t.length==1&&Q(t[0])?Se(t[0],It(G())):Se(et(t,1),It(G()));var n=t.length;return re(function(a){var l=-1,d=nt(a.length,n);while(++l<d){a[l]=t[l].call(this,a[l])}return Tt(e,this,a)})});var sa=re(function(e,t){var n=xo(t,gr(sa));return uo(e,N,o,t,n)});var Jc=re(function(e,t){var n=xo(t,gr(Jc));return uo(e,X,o,t,n)});var Zw=co(function(e,t){return uo(e,Z,o,o,o,t)});function Jw(e,t){if(typeof e!="function"){throw new Ut(u)}t=t===o?t:J(t);return re(e,t)}function eh(e,t){if(typeof e!="function"){throw new Ut(u)}t=t==null?0:He(J(t),0);return re(function(n){var a=n[t],l=ko(n,0,t);if(a){bo(l,a)}return Tt(e,this,l)})}function th(e,t,n){var a=true,l=true;if(typeof e!="function"){throw new Ut(u)}if(Oe(n)){a="leading"in n?!!n.leading:a;l="trailing"in n?!!n.trailing:l}return Zc(e,t,{"leading":a,"maxWait":t,"trailing":l})}function oh(e){return Kc(e,1)}function rh(e,t){return sa(Gi(t),e)}function nh(){if(!arguments.length){return[]}var e=arguments[0];return Q(e)?e:[e]}function ih(e){return Mt(e,w)}function ah(e,t){t=typeof t=="function"?t:o;return Mt(e,w,t)}function sh(e){return Mt(e,p|w)}function uh(e,t){t=typeof t=="function"?t:o;return Mt(e,p|w,t)}function ch(e,t){return t==null||zu(e,t,Qe(t))}function $t(e,t){return e===t||e!==e&&t!==t}var lh=In(Di);var gh=In(function(e,t){return e>=t});var Ho=Hu(function(){return arguments}())?Hu:function(e){return Ae(e)&&we.call(e,"callee")&&!Cu.call(e,"callee")};var Q=I.isArray;var fh=du?It(du):_p;function wt(e){return e!=null&&qn(e.length)&&!go(e)}function qe(e){return Ae(e)&&wt(e)}function dh(e){return e===true||e===false||Ae(e)&&ut(e)==ge}var Ao=Od||va;var ph=pu?It(pu):bp;function mh(e){return Ae(e)&&e.nodeType===1&&!qr(e)}function wh(e){if(e==null){return true}if(wt(e)&&(Q(e)||typeof e=="string"||typeof e.splice=="function"||Ao(e)||fr(e)||Ho(e))){return!e.length}var t=it(e);if(t==Ke||t==Le){return!e.size}if(Dr(e)){return!Ui(e).length}for(var n in e){if(we.call(e,n)){return false}}return true}function hh(e,t){return Pr(e,t)}function vh(e,t,n){n=typeof n=="function"?n:o;var a=n?n(e,t):o;return a===o?Pr(e,t,o,n):!!a}function ua(e){if(!Ae(e)){return false}var t=ut(e);return t==Zt||t==ro||typeof e.message=="string"&&typeof e.name=="string"&&!qr(e)}function yh(e){return typeof e=="number"&&Lu(e)}function go(e){if(!Oe(e)){return false}var t=ut(e);return t==Dt||t==no||t==Gt||t==yo}function el(e){return typeof e=="number"&&e==J(e)}function qn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ze}function Oe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ae(e){return e!=null&&typeof e=="object"}var tl=mu?It(mu):Ep;function _h(e,t){return e===t||qi(e,t,Zi(t))}function bh(e,t,n){n=typeof n=="function"?n:o;return qi(e,t,Zi(t),n)}function xh(e){return ol(e)&&e!=+e}function Eh(e){if(am(e)){throw new $(s)}return Ku(e)}function Sh(e){return e===null}function Th(e){return e==null}function ol(e){return typeof e=="number"||Ae(e)&&ut(e)==Je}function qr(e){if(!Ae(e)||ut(e)!=st){return false}var t=un(e);if(t===null){return true}var n=we.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&rn.call(n)==bd}var ca=wu?It(wu):Sp;function Ih(e){return el(e)&&e>=-Ze&&e<=Ze}var rl=hu?It(hu):Tp;function Un(e){return typeof e=="string"||!Q(e)&&Ae(e)&&ut(e)==St}function kt(e){return typeof e=="symbol"||Ae(e)&&ut(e)==j}var fr=vu?It(vu):Ip;function Oh(e){return e===o}function kh(e){return Ae(e)&&it(e)==Y}function Ah(e){return Ae(e)&&ut(e)==z}var Ph=In(Ni);var Rh=In(function(e,t){return e<=t});function nl(e){if(!e){return[]}if(wt(e)){return Un(e)?Kt(e):mt(e)}if(xr&&e[xr]){return cd(e[xr]())}var t=it(e),n=t==Ke?Si:t==Le?en:dr;return n(e)}function fo(e){if(!e){return e===0?e:0}e=Bt(e);if(e===Be||e===-Be){var t=e<0?-1:1;return t*Ct}return e===e?e:0}function J(e){var t=fo(e),n=t%1;return t===t?n?t-n:t:0}function il(e){return e?jo(J(e),0,Ve):0}function Bt(e){if(typeof e=="number"){return e}if(kt(e)){return at}if(Oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Oe(t)?t+"":t}if(typeof e!="string"){return e===0?e:+e}e=Su(e);var n=ff.test(e);return n||pf.test(e)?Hf(e.slice(2),n?2:8):gf.test(e)?at:+e}function al(e){return eo(e,ht(e))}function Ch(e){return e?jo(J(e),-Ze,Ze):e===0?e:0}function me(e){return e==null?"":Ot(e)}var Dh=cr(function(e,t){if(Dr(t)||wt(t)){eo(t,Qe(t),e);return}for(var n in t){if(we.call(t,n)){Or(e,n,t[n])}}});var sl=cr(function(e,t){eo(t,ht(t),e)});var Nn=cr(function(e,t,n,a){eo(t,ht(t),e,a)});var Lh=cr(function(e,t,n,a){eo(t,Qe(t),e,a)});var qh=co(Pi);function Uh(e,t){var n=ur(e);return t==null?n:Fu(n,t)}var Nh=re(function(e,t){e=ye(e);var n=-1;var a=t.length;var l=a>2?t[2]:o;if(l&&ct(t[0],t[1],l)){a=1}while(++n<a){var d=t[n];var v=ht(d);var _=-1;var S=v.length;while(++_<S){var P=v[_];var R=e[P];if(R===o||$t(R,ir[P])&&!we.call(e,P)){e[P]=d[P]}}}return e});var Mh=re(function(e){e.push(o,Sc);return Tt(ul,o,e)});function Fh(e,t){return _u(e,G(t,3),Jt)}function zh(e,t){return _u(e,G(t,3),Ci)}function Bh(e,t){return e==null?e:Ri(e,G(t,3),ht)}function jh(e,t){return e==null?e:Vu(e,G(t,3),ht)}function Wh(e,t){return e&&Jt(e,G(t,3))}function Vh(e,t){return e&&Ci(e,G(t,3))}function Gh(e){return e==null?[]:vn(e,Qe(e))}function Hh(e){return e==null?[]:vn(e,ht(e))}function la(e,t,n){var a=e==null?o:Wo(e,t);return a===o?n:a}function Kh(e,t){return e!=null&&Oc(e,t,wp)}function ga(e,t){return e!=null&&Oc(e,t,hp)}var Yh=yc(function(e,t,n){if(t!=null&&typeof t.toString!="function"){t=nn.call(t)}e[t]=n},da(vt));var $h=yc(function(e,t,n){if(t!=null&&typeof t.toString!="function"){t=nn.call(t)}if(we.call(e,t)){e[t].push(n)}else{e[t]=[n]}},G);var Qh=re(Ar);function Qe(e){return wt(e)?Nu(e):Ui(e)}function ht(e){return wt(e)?Nu(e,true):Op(e)}function Xh(e,t){var n={};t=G(t,3);Jt(e,function(a,l,d){so(n,t(a,l,d),a)});return n}function Zh(e,t){var n={};t=G(t,3);Jt(e,function(a,l,d){so(n,l,t(a,l,d))});return n}var Jh=cr(function(e,t,n){yn(e,t,n)});var ul=cr(function(e,t,n,a){yn(e,t,n,a)});var ev=co(function(e,t){var n={};if(e==null){return n}var a=false;t=Se(t,function(d){d=Oo(d,e);a||(a=d.length>1);return d});eo(e,Qi(e),n);if(a){n=Mt(n,p|g|w,Yp)}var l=t.length;while(l--){ji(n,t[l])}return n});function tv(e,t){return cl(e,Ln(G(t)))}var ov=co(function(e,t){return e==null?{}:Ap(e,t)});function cl(e,t){if(e==null){return{}}var n=Se(Qi(e),function(a){return[a]});t=G(t);return ec(e,n,function(a,l){return t(a,l[0])})}function rv(e,t,n){t=Oo(t,e);var a=-1,l=t.length;if(!l){l=1;e=o}while(++a<l){var d=e==null?o:e[to(t[a])];if(d===o){a=l;d=n}e=go(d)?d.call(e):d}return e}function nv(e,t,n){return e==null?e:Rr(e,t,n)}function iv(e,t,n,a){a=typeof a=="function"?a:o;return e==null?e:Rr(e,t,n,a)}var ll=xc(Qe);var gl=xc(ht);function av(e,t,n){var a=Q(e),l=a||Ao(e)||fr(e);t=G(t,4);if(n==null){var d=e&&e.constructor;if(l){n=a?new d:[]}else if(Oe(e)){n=go(d)?ur(un(e)):{}}else{n={}}}(l?qt:Jt)(e,function(v,_,S){return t(n,v,_,S)});return n}function sv(e,t){return e==null?true:ji(e,t)}function uv(e,t,n){return e==null?e:ic(e,t,Gi(n))}function cv(e,t,n,a){a=typeof a=="function"?a:o;return e==null?e:ic(e,t,Gi(n),a)}function dr(e){return e==null?[]:Ei(e,Qe(e))}function lv(e){return e==null?[]:Ei(e,ht(e))}function gv(e,t,n){if(n===o){n=t;t=o}if(n!==o){n=Bt(n);n=n===n?n:0}if(t!==o){t=Bt(t);t=t===t?t:0}return jo(Bt(e),t,n)}function fv(e,t,n){t=fo(t);if(n===o){n=t;t=0}else{n=fo(n)}e=Bt(e);return vp(e,t,n)}function dv(e,t,n){if(n&&typeof n!="boolean"&&ct(e,t,n)){t=n=o}if(n===o){if(typeof t=="boolean"){n=t;t=o}else if(typeof e=="boolean"){n=e;e=o}}if(e===o&&t===o){e=0;t=1}else{e=fo(e);if(t===o){t=e;e=0}else{t=fo(t)}}if(e>t){var a=e;e=t;t=a}if(n||e%1||t%1){var l=qu();return nt(e+l*(t-e+Gf("1e-"+((l+"").length-1))),t)}return Fi(e,t)}var pv=lr(function(e,t,n){t=t.toLowerCase();return e+(n?fl(t):t)});function fl(e){return fa(me(e).toLowerCase())}function dl(e){e=me(e);return e&&e.replace(wf,nd).replace(qf,"")}function mv(e,t,n){e=me(e);t=Ot(t);var a=e.length;n=n===o?a:jo(J(n),0,a);var l=n;n-=t.length;return n>=0&&e.slice(n,l)==t}function wv(e){e=me(e);return e&&$g.test(e)?e.replace(Vs,id):e}function hv(e){e=me(e);return e&&tf.test(e)?e.replace(si,"\\\\<!--SCRIPT_PLACEHOLDER-->"):e}var vv=lr(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});var yv=lr(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()});var _v=wc("toLowerCase");function bv(e,t,n){e=me(e);t=J(t);var a=t?nr(e):0;if(!t||a>=t){return e}var l=(t-a)/2;return Tn(fn(l),n)+e+Tn(gn(l),n)}function xv(e,t,n){e=me(e);t=J(t);var a=t?nr(e):0;return t&&a<t?e+Tn(t-a,n):e}function Ev(e,t,n){e=me(e);t=J(t);var a=t?nr(e):0;return t&&a<t?Tn(t-a,n)+e:e}function Sv(e,t,n){if(n||t==null){t=0}else if(t){t=+t}return Rd(me(e).replace(ui,""),t||0)}function Tv(e,t,n){if(n?ct(e,t,n):t===o){t=1}else{t=J(t)}return zi(me(e),t)}function Iv(){var e=arguments,t=me(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Ov=lr(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function kv(e,t,n){if(n&&typeof n!="number"&&ct(e,t,n)){t=n=o}n=n===o?Ve:n>>>0;if(!n){return[]}e=me(e);if(e&&(typeof t=="string"||t!=null&&!ca(t))){t=Ot(t);if(!t&&rr(e)){return ko(Kt(e),0,n)}}return e.split(t,n)}var Av=lr(function(e,t,n){return e+(n?" ":"")+fa(t)});function Pv(e,t,n){e=me(e);n=n==null?0:jo(J(n),0,e.length);t=Ot(t);return e.slice(n,n+t.length)==t}function Rv(e,t,n){var a=f.templateSettings;if(n&&ct(e,t,n)){t=o}e=me(e);t=Nn({},t,a,Ec);var l=Nn({},t.imports,a.imports,Ec),d=Qe(l),v=Ei(l,d);var _,S,P=0,R=t.interpolate||$r,C="__p += '";var q=Ti((t.escape||$r).source+"|"+R.source+"|"+(R===Gs?lf:$r).source+"|"+(t.evaluate||$r).source+"|$","g");var F="//# sourceURL="+(we.call(t,"sourceURL")?(t.sourceURL+"").replace(/\\s/g," "):"lodash.templateSources["+ ++zf+"]")+"\\n";e.replace(q,function(K,ae,ue,At,lt,Pt){ue||(ue=At);C+=e.slice(P,Pt).replace(hf,ad);if(ae){_=true;C+="' +\\n__e("+ae+") +\\n'"}if(lt){S=true;C+="';\\n"+lt+";\\n__p += '"}if(ue){C+="' +\\n((__t = ("+ue+")) == null ? '' : __t) +\\n'"}P=Pt+K.length;return K});C+="';\\n";var H=we.call(t,"variable")&&t.variable;if(!H){C="with (obj) {\\n"+C+"\\n}\\n"}else if(uf.test(H)){throw new $(c)}C=(S?C.replace(Gg,""):C).replace(Hg,"$1").replace(Kg,"$1;");C="function("+(H||"obj")+") {\\n"+(H?"":"obj || (obj = {});\\n")+"var __t, __p = ''"+(_?", __e = _.escape":"")+(S?", __j = Array.prototype.join;\\nfunction print() { __p += __j.call(arguments, '') }\\n":";\\n")+C+"return __p\\n}";var te=ml(function(){return pe(d,F+"return "+C).apply(o,v)});te.source=C;if(ua(te)){throw te}return te}function Cv(e){return me(e).toLowerCase()}function Dv(e){return me(e).toUpperCase()}function Lv(e,t,n){e=me(e);if(e&&(n||t===o)){return Su(e)}if(!e||!(t=Ot(t))){return e}var a=Kt(e),l=Kt(t),d=Tu(a,l),v=Iu(a,l)+1;return ko(a,d,v).join("")}function qv(e,t,n){e=me(e);if(e&&(n||t===o)){return e.slice(0,ku(e)+1)}if(!e||!(t=Ot(t))){return e}var a=Kt(e),l=Iu(a,Kt(t))+1;return ko(a,0,l).join("")}function Uv(e,t,n){e=me(e);if(e&&(n||t===o)){return e.replace(ui,"")}if(!e||!(t=Ot(t))){return e}var a=Kt(e),l=Tu(a,Kt(t));return ko(a,l).join("")}function Nv(e,t){var n=de,a=Ee;if(Oe(t)){var l="separator"in t?t.separator:l;n="length"in t?J(t.length):n;a="omission"in t?Ot(t.omission):a}e=me(e);var d=e.length;if(rr(e)){var v=Kt(e);d=v.length}if(n>=d){return e}var _=n-nr(a);if(_<1){return a}var S=v?ko(v,0,_).join(""):e.slice(0,_);if(l===o){return S+a}if(v){_+=S.length-_}if(ca(l)){if(e.slice(_).search(l)){var P,R=S;if(!l.global){l=Ti(l.source,me(Hs.exec(l))+"g")}l.lastIndex=0;while(P=l.exec(R)){var C=P.index}S=S.slice(0,C===o?_:C)}}else if(e.indexOf(Ot(l),_)!=_){var q=S.lastIndexOf(l);if(q>-1){S=S.slice(0,q)}}return S+a}function Mv(e){e=me(e);return e&&Yg.test(e)?e.replace(Ws,dd):e}var Fv=lr(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()});var fa=wc("toUpperCase");function pl(e,t,n){e=me(e);t=n?o:t;if(t===o){return ud(e)?wd(e):Jf(e)}return e.match(t)||[]}var ml=re(function(e,t){try{return Tt(e,o,t)}catch(n){return ua(n)?n:new $(n)}});var zv=co(function(e,t){qt(t,function(n){n=to(n);so(e,n,aa(e[n],e))});return e});function Bv(e){var t=e==null?0:e.length,n=G();e=!t?[]:Se(e,function(a){if(typeof a[1]!="function"){throw new Ut(u)}return[n(a[0]),a[1]]});return re(function(a){var l=-1;while(++l<t){var d=e[l];if(Tt(d[0],this,a)){return Tt(d[1],this,a)}}})}function jv(e){return dp(Mt(e,p))}function da(e){return function(){return e}}function Wv(e,t){return e==null||e!==e?t:e}var Vv=vc();var Gv=vc(true);function vt(e){return e}function pa(e){return Yu(typeof e=="function"?e:Mt(e,p))}function Hv(e){return Qu(Mt(e,p))}function Kv(e,t){return Xu(e,Mt(t,p))}var Yv=re(function(e,t){return function(n){return Ar(n,e,t)}});var $v=re(function(e,t){return function(n){return Ar(e,n,t)}});function ma(e,t,n){var a=Qe(t),l=vn(t,a);if(n==null&&!(Oe(t)&&(l.length||!a.length))){n=t;t=e;e=this;l=vn(t,Qe(t))}var d=!(Oe(n)&&"chain"in n)||!!n.chain,v=go(e);qt(l,function(_){var S=t[_];e[_]=S;if(v){e.prototype[_]=function(){var P=this.__chain__;if(d||P){var R=e(this.__wrapped__),C=R.__actions__=mt(this.__actions__);C.push({"func":S,"args":arguments,"thisArg":e});R.__chain__=P;return R}return S.apply(e,bo([this.value()],arguments))}}});return e}function Qv(){if($e._===this){$e._=xd}return this}function wa(){}function Xv(e){e=J(e);return re(function(t){return Zu(t,e)})}var Zv=Ki(Se);var Jv=Ki(yu);var ey=Ki(vi);function wl(e){return ea(e)?yi(to(e)):Pp(e)}function ty(e){return function(t){return e==null?o:Wo(e,t)}}var oy=_c();var ry=_c(true);function ha(){return[]}function va(){return false}function ny(){return{}}function iy(){return""}function ay(){return true}function sy(e,t){e=J(e);if(e<1||e>Ze){return[]}var n=Ve,a=nt(e,Ve);t=G(t);e-=Ve;var l=xi(a,t);while(++n<e){t(n)}return l}function uy(e){if(Q(e)){return Se(e,to)}return kt(e)?[e]:mt(Uc(me(e)))}function cy(e){var t=++_d;return me(e)+t}var ly=Sn(function(e,t){return e+t},0);var gy=Yi("ceil");var fy=Sn(function(e,t){return e/t},1);var dy=Yi("floor");function py(e){return e&&e.length?hn(e,vt,Di):o}function my(e,t){return e&&e.length?hn(e,G(t,2),Di):o}function wy(e){return xu(e,vt)}function hy(e,t){return xu(e,G(t,2))}function vy(e){return e&&e.length?hn(e,vt,Ni):o}function yy(e,t){return e&&e.length?hn(e,G(t,2),Ni):o}var _y=Sn(function(e,t){return e*t},1);var by=Yi("round");var xy=Sn(function(e,t){return e-t},0);function Ey(e){return e&&e.length?bi(e,vt):0}function Sy(e,t){return e&&e.length?bi(e,G(t,2)):0}f.after=Hw;f.ary=Kc;f.assign=Dh;f.assignIn=sl;f.assignInWith=Nn;f.assignWith=Lh;f.at=qh;f.before=Yc;f.bind=aa;f.bindAll=zv;f.bindKey=$c;f.castArray=nh;f.chain=Vc;f.chunk=dm;f.compact=pm;f.concat=mm;f.cond=Bv;f.conforms=jv;f.constant=da;f.countBy=Ew;f.create=Uh;f.curry=Qc;f.curryRight=Xc;f.debounce=Zc;f.defaults=Nh;f.defaultsDeep=Mh;f.defer=Kw;f.delay=Yw;f.difference=wm;f.differenceBy=hm;f.differenceWith=vm;f.drop=ym;f.dropRight=_m;f.dropRightWhile=bm;f.dropWhile=xm;f.fill=Em;f.filter=Tw;f.flatMap=kw;f.flatMapDeep=Aw;f.flatMapDepth=Pw;f.flatten=zc;f.flattenDeep=Sm;f.flattenDepth=Tm;f.flip=$w;f.flow=Vv;f.flowRight=Gv;f.fromPairs=Im;f.functions=Gh;f.functionsIn=Hh;f.groupBy=Rw;f.initial=km;f.intersection=Am;f.intersectionBy=Pm;f.intersectionWith=Rm;f.invert=Yh;f.invertBy=$h;f.invokeMap=Dw;f.iteratee=pa;f.keyBy=Lw;f.keys=Qe;f.keysIn=ht;f.map=Rn;f.mapKeys=Xh;f.mapValues=Zh;f.matches=Hv;f.matchesProperty=Kv;f.memoize=Dn;f.merge=Jh;f.mergeWith=ul;f.method=Yv;f.methodOf=$v;f.mixin=ma;f.negate=Ln;f.nthArg=Xv;f.omit=ev;f.omitBy=tv;f.once=Qw;f.orderBy=qw;f.over=Zv;f.overArgs=Xw;f.overEvery=Jv;f.overSome=ey;f.partial=sa;f.partialRight=Jc;f.partition=Uw;f.pick=ov;f.pickBy=cl;f.property=wl;f.propertyOf=ty;f.pull=qm;f.pullAll=jc;f.pullAllBy=Um;f.pullAllWith=Nm;f.pullAt=Mm;f.range=oy;f.rangeRight=ry;f.rearg=Zw;f.reject=Fw;f.remove=Fm;f.rest=Jw;f.reverse=na;f.sampleSize=Bw;f.set=nv;f.setWith=iv;f.shuffle=jw;f.slice=zm;f.sortBy=Gw;f.sortedUniq=Km;f.sortedUniqBy=Ym;f.split=kv;f.spread=eh;f.tail=$m;f.take=Qm;f.takeRight=Xm;f.takeRightWhile=Zm;f.takeWhile=Jm;f.tap=pw;f.throttle=th;f.thru=Pn;f.toArray=nl;f.toPairs=ll;f.toPairsIn=gl;f.toPath=uy;f.toPlainObject=al;f.transform=av;f.unary=oh;f.union=ew;f.unionBy=tw;f.unionWith=ow;f.uniq=rw;f.uniqBy=nw;f.uniqWith=iw;f.unset=sv;f.unzip=ia;f.unzipWith=Wc;f.update=uv;f.updateWith=cv;f.values=dr;f.valuesIn=lv;f.without=aw;f.words=pl;f.wrap=rh;f.xor=sw;f.xorBy=uw;f.xorWith=cw;f.zip=lw;f.zipObject=gw;f.zipObjectDeep=fw;f.zipWith=dw;f.entries=ll;f.entriesIn=gl;f.extend=sl;f.extendWith=Nn;ma(f,f);f.add=ly;f.attempt=ml;f.camelCase=pv;f.capitalize=fl;f.ceil=gy;f.clamp=gv;f.clone=ih;f.cloneDeep=sh;f.cloneDeepWith=uh;f.cloneWith=ah;f.conformsTo=ch;f.deburr=dl;f.defaultTo=Wv;f.divide=fy;f.endsWith=mv;f.eq=$t;f.escape=wv;f.escapeRegExp=hv;f.every=Sw;f.find=Iw;f.findIndex=Mc;f.findKey=Fh;f.findLast=Ow;f.findLastIndex=Fc;f.findLastKey=zh;f.floor=dy;f.forEach=Gc;f.forEachRight=Hc;f.forIn=Bh;f.forInRight=jh;f.forOwn=Wh;f.forOwnRight=Vh;f.get=la;f.gt=lh;f.gte=gh;f.has=Kh;f.hasIn=ga;f.head=Bc;f.identity=vt;f.includes=Cw;f.indexOf=Om;f.inRange=fv;f.invoke=Qh;f.isArguments=Ho;f.isArray=Q;f.isArrayBuffer=fh;f.isArrayLike=wt;f.isArrayLikeObject=qe;f.isBoolean=dh;f.isBuffer=Ao;f.isDate=ph;f.isElement=mh;f.isEmpty=wh;f.isEqual=hh;f.isEqualWith=vh;f.isError=ua;f.isFinite=yh;f.isFunction=go;f.isInteger=el;f.isLength=qn;f.isMap=tl;f.isMatch=_h;f.isMatchWith=bh;f.isNaN=xh;f.isNative=Eh;f.isNil=Th;f.isNull=Sh;f.isNumber=ol;f.isObject=Oe;f.isObjectLike=Ae;f.isPlainObject=qr;f.isRegExp=ca;f.isSafeInteger=Ih;f.isSet=rl;f.isString=Un;f.isSymbol=kt;f.isTypedArray=fr;f.isUndefined=Oh;f.isWeakMap=kh;f.isWeakSet=Ah;f.join=Cm;f.kebabCase=vv;f.last=zt;f.lastIndexOf=Dm;f.lowerCase=yv;f.lowerFirst=_v;f.lt=Ph;f.lte=Rh;f.max=py;f.maxBy=my;f.mean=wy;f.meanBy=hy;f.min=vy;f.minBy=yy;f.stubArray=ha;f.stubFalse=va;f.stubObject=ny;f.stubString=iy;f.stubTrue=ay;f.multiply=_y;f.nth=Lm;f.noConflict=Qv;f.noop=wa;f.now=Cn;f.pad=bv;f.padEnd=xv;f.padStart=Ev;f.parseInt=Sv;f.random=dv;f.reduce=Nw;f.reduceRight=Mw;f.repeat=Tv;f.replace=Iv;f.result=rv;f.round=by;f.runInContext=E;f.sample=zw;f.size=Ww;f.snakeCase=Ov;f.some=Vw;f.sortedIndex=Bm;f.sortedIndexBy=jm;f.sortedIndexOf=Wm;f.sortedLastIndex=Vm;f.sortedLastIndexBy=Gm;f.sortedLastIndexOf=Hm;f.startCase=Av;f.startsWith=Pv;f.subtract=xy;f.sum=Ey;f.sumBy=Sy;f.template=Rv;f.times=sy;f.toFinite=fo;f.toInteger=J;f.toLength=il;f.toLower=Cv;f.toNumber=Bt;f.toSafeInteger=Ch;f.toString=me;f.toUpper=Dv;f.trim=Lv;f.trimEnd=qv;f.trimStart=Uv;f.truncate=Nv;f.unescape=Mv;f.uniqueId=cy;f.upperCase=Fv;f.upperFirst=fa;f.each=Gc;f.eachRight=Hc;f.first=Bc;ma(f,function(){var e={};Jt(f,function(t,n){if(!we.call(f.prototype,n)){e[n]=t}});return e}(),{"chain":false});f.VERSION=r;qt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){f[e].placeholder=f});qt(["drop","take"],function(e,t){se.prototype[e]=function(n){n=n===o?1:He(J(n),0);var a=this.__filtered__&&!t?new se(this):this.clone();if(a.__filtered__){a.__takeCount__=nt(n,a.__takeCount__)}else{a.__views__.push({"size":nt(n,Ve),"type":e+(a.__dir__<0?"Right":"")})}return a};se.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}});qt(["filter","map","takeWhile"],function(e,t){var n=t+1,a=n==ee||n==rt;se.prototype[e]=function(l){var d=this.clone();d.__iteratees__.push({"iteratee":G(l,3),"type":n});d.__filtered__=d.__filtered__||a;return d}});qt(["head","last"],function(e,t){var n="take"+(t?"Right":"");se.prototype[e]=function(){return this[n](1).value()[0]}});qt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");se.prototype[e]=function(){return this.__filtered__?new se(this):this[n](1)}});se.prototype.compact=function(){return this.filter(vt)};se.prototype.find=function(e){return this.filter(e).head()};se.prototype.findLast=function(e){return this.reverse().find(e)};se.prototype.invokeMap=re(function(e,t){if(typeof e=="function"){return new se(this)}return this.map(function(n){return Ar(n,e,t)})});se.prototype.reject=function(e){return this.filter(Ln(G(e)))};se.prototype.slice=function(e,t){e=J(e);var n=this;if(n.__filtered__&&(e>0||t<0)){return new se(n)}if(e<0){n=n.takeRight(-e)}else if(e){n=n.drop(e)}if(t!==o){t=J(t);n=t<0?n.dropRight(-t):n.take(t-e)}return n};se.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};se.prototype.toArray=function(){return this.take(Ve)};Jt(se.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),l=f[a?"take"+(t=="last"?"Right":""):t],d=a||/^find/.test(t);if(!l){return}f.prototype[t]=function(){var v=this.__wrapped__,_=a?[1]:arguments,S=v instanceof se,P=_[0],R=S||Q(v);var C=function(ae){var ue=l.apply(f,bo([ae],_));return a&&q?ue[0]:ue};if(R&&n&&typeof P=="function"&&P.length!=1){S=R=false}var q=this.__chain__,F=!!this.__actions__.length,H=d&&!q,te=S&&!F;if(!d&&R){v=te?v:new se(this);var K=e.apply(v,_);K.__actions__.push({"func":Pn,"args":[C],"thisArg":o});return new Nt(K,q)}if(H&&te){return e.apply(this,_)}K=this.thru(C);return H?a?K.value()[0]:K.value():K}});qt(["pop","push","shift","sort","splice","unshift"],function(e){var t=tn[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var l=arguments;if(a&&!this.__chain__){var d=this.value();return t.apply(Q(d)?d:[],l)}return this[n](function(v){return t.apply(Q(v)?v:[],l)})}});Jt(se.prototype,function(e,t){var n=f[t];if(n){var a=n.name+"";if(!we.call(sr,a)){sr[a]=[]}sr[a].push({"name":t,"func":n})}});sr[En(o,L).name]=[{"name":"wrapper","func":o}];se.prototype.clone=Md;se.prototype.reverse=Fd;se.prototype.value=zd;f.prototype.at=mw;f.prototype.chain=ww;f.prototype.commit=hw;f.prototype.next=vw;f.prototype.plant=_w;f.prototype.reverse=bw;f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=xw;f.prototype.first=f.prototype.head;if(xr){f.prototype[xr]=yw}return f};var Eo=hd();if(typeof define=="function"&&typeof define.amd=="object"&&define.amd){$e._=Eo;define(function(){return Eo})}else if(Mo){(Mo.exports=Eo)._=Eo;pi._=Eo}else{$e._=Eo}}).call(vr)});var Cg=_a((Gr,ri)=>{(function(o,r){"use strict";var i="1.0.36",s="",u="?",c="function",m="undefined",x="object",T="string",p="major",g="model",w="name",h="type",y="vendor",b="version",L="architecture",D="console",O="mobile",A="tablet",N="smarttv",X="wearable",oe="embedded",Z=350;var fe="Amazon",de="Apple",Ee="ASUS",We="BlackBerry",Ie="Browser",ee="Chrome",Xt="Edge",rt="Firefox",Be="Google",Ze="Huawei",Ct="LG",at="Microsoft",Ve="Motorola",ft="Opera",xt="Samsung",Vt="Sharp",je="Sony",dt="Viera",Gt="Xiaomi",ge="Zebra",Et="Facebook",ro="Chromium OS",Zt="Mac OS";var Dt=function(z,U){var W={};for(var B in z){if(U[B]&&U[B].length%2===0){W[B]=U[B].concat(z[B])}else{W[B]=z[B]}}return W},no=function(z){var U={};for(var W=0;W<z.length;W++){U[z[W].toUpperCase()]=z[W]}return U},Ke=function(z,U){return typeof z===T?Je(U).indexOf(Je(z))!==-1:false},Je=function(z){return z.toLowerCase()},Uo=function(z){return typeof z===T?z.replace(/[^\\d\\.]/g,s).split(".")[0]:r},st=function(z,U){if(typeof z===T){z=z.replace(/^\\s\\s*/,s);return typeof U===m?z:z.substring(0,Z)}};var Ht=function(z,U){var W=0,B,Ye,be,ie,V,pt;while(W<U.length&&!V){var No=U[W],er=U[W+1];B=Ye=0;while(B<No.length&&!V){if(!No[B]){break}V=No[B++].exec(z);if(!!V){for(be=0;be<er.length;be++){pt=V[++Ye];ie=er[be];if(typeof ie===x&&ie.length>0){if(ie.length===2){if(typeof ie[1]==c){this[ie[0]]=ie[1].call(this,pt)}else{this[ie[0]]=ie[1]}}else if(ie.length===3){if(typeof ie[1]===c&&!(ie[1].exec&&ie[1].test)){this[ie[0]]=pt?ie[1].call(this,pt,ie[2]):r}else{this[ie[0]]=pt?pt.replace(ie[1],ie[2]):r}}else if(ie.length===4){this[ie[0]]=pt?ie[3].call(this,pt.replace(ie[1],ie[2])):r}}else{this[ie]=pt?pt:r}}}}W+=2}},yo=function(z,U){for(var W in U){if(typeof U[W]===x&&U[W].length>0){for(var B=0;B<U[W].length;B++){if(Ke(U[W][B],z)){return W===u?r:W}}}else if(Ke(U[W],z)){return W===u?r:W}}return z};var De={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Le={"ME":"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0","2000":"NT 5.0","XP":["NT 5.1","NT 5.2"],"Vista":"NT 6.0","7":"NT 6.1","8":"NT 6.2","8.1":"NT 6.3","10":["NT 6.4","NT 10.0"],"RT":"ARM"};var St={browser:[[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],[b,[w,"Chrome"]],[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],[b,[w,"Edge"]],[/(opera mini)\\/([-\\w\\.]+)/i,/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i],[w,b],[/opios[\\/ ]+([\\w\\.]+)/i],[b,[w,ft+" Mini"]],[/\\bopr\\/([\\w\\.]+)/i],[b,[w,ft]],[/(kindle)\\/([\\w\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\/ ]?([\\w\\.]*)/i,/(ba?idubrowser)[\\/ ]?([\\w\\.]+)/i,/(?:ms|\\()(ie) ([\\w\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,/(heytap|ovi)browser\\/([\\d\\.]+)/i,/(weibo)__([\\d\\.]+)/i],[w,b],[/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i],[b,[w,"UC"+Ie]],[/microm.+\\bqbcore\\/([\\w\\.]+)/i,/\\bqbcore\\/([\\w\\.]+).+microm/i],[b,[w,"WeChat(Win) Desktop"]],[/micromessenger\\/([\\w\\.]+)/i],[b,[w,"WeChat"]],[/konqueror\\/([\\w\\.]+)/i],[b,[w,"Konqueror"]],[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],[b,[w,"IE"]],[/ya(?:search)?browser\\/([\\w\\.]+)/i],[b,[w,"Yandex"]],[/(avast|avg)\\/([\\w\\.]+)/i],[[w,/(.+)/,"$1 Secure "+Ie],b],[/\\bfocus\\/([\\w\\.]+)/i],[b,[w,rt+" Focus"]],[/\\bopt\\/([\\w\\.]+)/i],[b,[w,ft+" Touch"]],[/coc_coc\\w+\\/([\\w\\.]+)/i],[b,[w,"Coc Coc"]],[/dolfin\\/([\\w\\.]+)/i],[b,[w,"Dolphin"]],[/coast\\/([\\w\\.]+)/i],[b,[w,ft+" Coast"]],[/miuibrowser\\/([\\w\\.]+)/i],[b,[w,"MIUI "+Ie]],[/fxios\\/([-\\w\\.]+)/i],[b,[w,rt]],[/\\bqihu|(qi?ho?o?|360)browser/i],[[w,"360 "+Ie]],[/(oculus|samsung|sailfish|huawei)browser\\/([\\w\\.]+)/i],[[w,/(.+)/,"$1 "+Ie],b],[/(comodo_dragon)\\/([\\w\\.]+)/i],[[w,/_/g," "],b],[/(electron)\\/([\\w\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\/ ]?([\\w\\.]+)/i],[w,b],[/(metasr)[\\/ ]?([\\w\\.]+)/i,/(lbbrowser)/i,/\\[(linkedin)app\\]/i],[w],[/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i],[[w,Et],b],[/(kakao(?:talk|story))[\\/ ]([\\w\\.]+)/i,/(naver)\\(.*?(\\d+\\.[\\w\\.]+).*\\)/i,/safari (line)\\/([\\w\\.]+)/i,/\\b(line)\\/([\\w\\.]+)\\/iab/i,/(chromium|instagram|snapchat)[\\/ ]([-\\w\\.]+)/i],[w,b],[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],[b,[w,"GSA"]],[/musical_ly(?:.+app_?version\\/|_)([\\w\\.]+)/i],[b,[w,"TikTok"]],[/headlesschrome(?:\\/([\\w\\.]+)| )/i],[b,[w,ee+" Headless"]],[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],[[w,ee+" WebView"],b],[/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i],[b,[w,"Android "+Ie]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i],[w,b],[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],[b,[w,"Mobile Safari"]],[/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i],[b,w],[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],[w,[b,yo,De]],[/(webkit|khtml)\\/([\\w\\.]+)/i],[w,b],[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],[[w,"Netscape"],b],[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],[b,[w,rt+" Reality"]],[/ekiohf.+(flow)\\/([\\w\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,/(firefox)\\/([\\w\\.]+)/i,/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,/(links) \\(([\\w\\.]+)/i,/panasonic;(viera)/i],[w,b],[/(cobalt)\\/([\\w\\.]+)/i],[w,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],[[L,"amd64"]],[/(ia32(?=;))/i],[[L,Je]],[/((?:i[346]|x)86)[;\\)]/i],[[L,"ia32"]],[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],[[L,"arm64"]],[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],[[L,"armhf"]],[/windows (ce|mobile); ppc;/i],[[L,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],[[L,/ower/,s,Je]],[/(sun4\\w)[;\\)]/i],[[L,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i],[[L,Je]]],device:[[/\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[g,[y,xt],[h,A]],[/\\b((?:s[cgp]h|gt|sm)-\\w+|sc[g-]?[\\d]+a?|galaxy nexus)/i,/samsung[- ]([-\\w]+)/i,/sec-(sgh\\w+)/i],[g,[y,xt],[h,O]],[/(?:\\/|\\()(ip(?:hone|od)[\\w, ]*)(?:\\/|;)/i],[g,[y,de],[h,O]],[/\\((ipad);[-\\w\\),; ]+apple/i,/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i],[g,[y,de],[h,A]],[/(macintosh);/i],[g,[y,de]],[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],[g,[y,Vt],[h,O]],[/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i],[g,[y,Ze],[h,A]],[/(?:huawei|honor)([-\\w ]+)[;\\)]/i,/\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i],[g,[y,Ze],[h,O]],[/\\b(poco[\\w ]+|m2\\d{3}j\\d\\d[a-z]{2})(?: bui|\\))/i,/\\b; (\\w+) build\\/hm\\1/i,/\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i,/\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i,/\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i],[[g,/_/g," "],[y,Gt],[h,O]],[/\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i],[[g,/_/g," "],[y,Gt],[h,A]],[/; (\\w+) bui.+ oppo/i,/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i],[g,[y,"OPPO"],[h,O]],[/vivo (\\w+)(?: bui|\\))/i,/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i],[g,[y,"Vivo"],[h,O]],[/\\b(rmx[12]\\d{3})(?: bui|;|\\))/i],[g,[y,"Realme"],[h,O]],[/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,/\\bmot(?:orola)?[- ](\\w*)/i,/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i],[g,[y,Ve],[h,O]],[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],[g,[y,Ve],[h,A]],[/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i],[g,[y,Ct],[h,A]],[/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,/\\blg-?([\\d\\w]+) bui/i],[g,[y,Ct],[h,O]],[/(ideatab[-\\w ]+)/i,/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i],[g,[y,"Lenovo"],[h,A]],[/(?:maemo|nokia).*(n900|lumia \\d+)/i,/nokia[-_ ]?([-\\w\\.]*)/i],[[g,/_/g," "],[y,"Nokia"],[h,O]],[/(pixel c)\\b/i],[g,[y,Be],[h,A]],[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],[g,[y,Be],[h,O]],[/droid.+ (a?\\d[0-2]{2}so|[c-g]\\d{4}|so[-gl]\\w+|xq-a\\w[4-7][12])(?= bui|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i],[g,[y,je],[h,O]],[/sony tablet [ps]/i,/\\b(?:sony)?sgp\\w+(?: bui|\\))/i],[[g,"Xperia Tablet"],[y,je],[h,A]],[/ (kb2005|in20[12]5|be20[12][59])\\b/i,/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i],[g,[y,"OnePlus"],[h,O]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\))/i,/(kf[a-z]+)( bui|\\)).+silk\\//i],[g,[y,fe],[h,A]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],[[g,/(.+)/g,"Fire Phone $1"],[y,fe],[h,O]],[/(playbook);[-\\w\\),; ]+(rim)/i],[g,y,[h,A]],[/\\b((?:bb[a-f]|st[hv])100-\\d)/i,/\\(bb10; (\\w+)/i],[g,[y,We],[h,O]],[/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i],[g,[y,Ee],[h,A]],[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],[g,[y,Ee],[h,O]],[/(nexus 9)/i],[g,[y,"HTC"],[h,A]],[/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\.))|sony(?!-bra))[-_ ]?([-\\w]*)/i],[y,[g,/_/g," "],[h,O]],[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],[g,[y,"Acer"],[h,A]],[/droid.+; (m[1-5] note) bui/i,/\\bmz-([-\\w]{2,})/i],[g,[y,"Meizu"],[h,O]],[/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\\w]*)/i,/(hp) ([\\w ]+\\w)/i,/(asus)-?(\\w+)/i,/(microsoft); (lumia[\\w ]+)/i,/(lenovo)[-_ ]?([-\\w]+)/i,/(jolla)/i,/(oppo) ?([\\w ]+) bui/i],[y,g,[h,O]],[/(kobo)\\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\/([\\w\\.]+)/i,/(nook)[\\w ]+build\\/(\\w+)/i,/(dell) (strea[kpr\\d ]*[\\dko])/i,/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,/(trinity)[- ]*(t\\d{3}) bui/i,/(gigaset)[- ]+(q\\w{1,9}) bui/i,/(vodafone) ([\\w ]+)(?:\\)| bui)/i],[y,g,[h,A]],[/(surface duo)/i],[g,[y,at],[h,A]],[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],[g,[y,"Fairphone"],[h,O]],[/(u304aa)/i],[g,[y,"AT&T"],[h,O]],[/\\bsie-(\\w*)/i],[g,[y,"Siemens"],[h,O]],[/\\b(rct\\w+) b/i],[g,[y,"RCA"],[h,A]],[/\\b(venue[\\d ]{2,7}) b/i],[g,[y,"Dell"],[h,A]],[/\\b(q(?:mv|ta)\\w+) b/i],[g,[y,"Verizon"],[h,A]],[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],[g,[y,"Barnes & Noble"],[h,A]],[/\\b(tm\\d{3}\\w+) b/i],[g,[y,"NuVision"],[h,A]],[/\\b(k88) b/i],[g,[y,"ZTE"],[h,A]],[/\\b(nx\\d{3}j) b/i],[g,[y,"ZTE"],[h,O]],[/\\b(gen\\d{3}) b.+49h/i],[g,[y,"Swiss"],[h,O]],[/\\b(zur\\d{3}) b/i],[g,[y,"Swiss"],[h,A]],[/\\b((zeki)?tb.*\\b) b/i],[g,[y,"Zeki"],[h,A]],[/\\b([yr]\\d{2}) b/i,/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i],[[y,"Dragon Touch"],g,[h,A]],[/\\b(ns-?\\w{0,9}) b/i],[g,[y,"Insignia"],[h,A]],[/\\b((nxa|next)-?\\w{0,9}) b/i],[g,[y,"NextBook"],[h,A]],[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[y,"Voice"],g,[h,O]],[/\\b(lvtel\\-)?(v1[12]) b/i],[[y,"LvTel"],g,[h,O]],[/\\b(ph-1) /i],[g,[y,"Essential"],[h,O]],[/\\b(v(100md|700na|7011|917g).*\\b) b/i],[g,[y,"Envizen"],[h,A]],[/\\b(trio[-\\w\\. ]+) b/i],[g,[y,"MachSpeed"],[h,A]],[/\\btu_(1491) b/i],[g,[y,"Rotor"],[h,A]],[/(shield[\\w ]+) b/i],[g,[y,"Nvidia"],[h,A]],[/(sprint) (\\w+)/i],[y,g,[h,O]],[/(kin\\.[onetw]{3})/i],[[g,/\\./g," "],[y,at],[h,O]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i],[g,[y,ge],[h,A]],[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],[g,[y,ge],[h,O]],[/smart-tv.+(samsung)/i],[y,[h,N]],[/hbbtv.+maple;(\\d+)/i],[[g,/^/,"SmartTV"],[y,xt],[h,N]],[/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i],[[y,Ct],[h,N]],[/(apple) ?tv/i],[y,[g,de+" TV"],[h,N]],[/crkey/i],[[g,ee+"cast"],[y,Be],[h,N]],[/droid.+aft(\\w+)( bui|\\))/i],[g,[y,fe],[h,N]],[/\\(dtv[\\);].+(aquos)/i,/(aquos-tv[\\w ]+)\\)/i],[g,[y,Vt],[h,N]],[/(bravia[\\w ]+)( bui|\\))/i],[g,[y,je],[h,N]],[/(mitv-\\w{5}) bui/i],[g,[y,Gt],[h,N]],[/Hbbtv.*(technisat) (.*);/i],[y,g,[h,N]],[/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w\\+ ]*; *([\\w\\d][^;]*);([^;]*)/i],[[y,st],[g,st],[h,N]],[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],[[h,N]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[y,g,[h,D]],[/droid.+; (shield) bui/i],[g,[y,"Nvidia"],[h,D]],[/(playstation [345portablevi]+)/i],[g,[y,je],[h,D]],[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],[g,[y,at],[h,D]],[/((pebble))app/i],[y,g,[h,X]],[/(watch)(?: ?os[,\\/]|\\d,\\d\\/)[\\d\\.]+/i],[g,[y,de],[h,X]],[/droid.+; (glass) \\d/i],[g,[y,Be],[h,X]],[/droid.+; (wt63?0{2,3})\\)/i],[g,[y,ge],[h,X]],[/(quest( 2| pro)?)/i],[g,[y,Et],[h,X]],[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],[y,[h,oe]],[/(aeobc)\\b/i],[g,[y,fe],[h,oe]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+? mobile safari/i],[g,[h,O]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i],[g,[h,A]],[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],[[h,A]],[/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i],[[h,O]],[/(android[-\\w\\. ]{0,9});.+buil/i],[g,[y,"Generic"]]],engine:[[/windows.+ edge\\/([\\w\\.]+)/i],[b,[w,Xt+"HTML"]],[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],[b,[w,"Blink"]],[/(presto)\\/([\\w\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,/ekioh(flow)\\/([\\w\\.]+)/i,/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i,/\\b(libweb)/i],[w,b],[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],[b,w]],os:[[/microsoft (windows) (vista|xp)/i],[w,b],[/(windows) nt 6\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i,/(windows)[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i],[w,[b,yo,Le]],[/(win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],[[w,"Windows"],[b,yo,Le]],[/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,/(?:ios;fbsv\\/|iphone.+ios[\\/ ])([\\d\\.]+)/i,/cfnetwork\\/.+darwin/i],[[b,/_/g,"."],[w,"iOS"]],[/(mac os x) ?([\\w\\. ]*)/i,/(macintosh|mac_powerpc\\b)(?!.+haiku)/i],[[w,Zt],[b,/_/g,"."]],[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],[b,w],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,/(blackberry)\\w*\\/([\\w\\.]*)/i,/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,/\\((series40);/i],[w,b],[/\\(bb(10);/i],[b,[w,We]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i],[b,[w,"Symbian"]],[/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i],[b,[w,rt+" OS"]],[/web0s;.+rt(tv)/i,/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i],[b,[w,"webOS"]],[/watch(?: ?os[,\\/]|\\d,\\d\\/)([\\d\\.]+)/i],[b,[w,"watchOS"]],[/crkey\\/([\\d\\.]+)/i],[b,[w,ee+"cast"]],[/(cros) [\\w]+(?:\\)| ([\\w\\.]+)\\b)/i],[[w,ro],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\\/(\\d+\\.[\\w\\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\);]+)/i,/\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i,/(mint)[\\/\\(\\) ]?(\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,/(hurd|linux) ?([\\w\\.]*)/i,/(gnu) ?([\\w\\.]*)/i,/\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,/(haiku) (\\w+)/i],[w,b],[/(sunos) ?([\\w\\.\\d]*)/i],[[w,"Solaris"],b],[/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\\w\\.]*)/i],[w,b]]};var j=function(z,U){if(typeof z===x){U=z;z=r}if(!(this instanceof j)){return new j(z,U).getResult()}var W=typeof o!==m&&o.navigator?o.navigator:r;var B=z||(W&&W.userAgent?W.userAgent:s);var Ye=W&&W.userAgentData?W.userAgentData:r;var be=U?Dt(St,U):St;var ie=W&&W.userAgent==B;this.getBrowser=function(){var V={};V[w]=r;V[b]=r;Ht.call(V,B,be.browser);V[p]=Uo(V[b]);if(ie&&W&&W.brave&&typeof W.brave.isBrave==c){V[w]="Brave"}return V};this.getCPU=function(){var V={};V[L]=r;Ht.call(V,B,be.cpu);return V};this.getDevice=function(){var V={};V[y]=r;V[g]=r;V[h]=r;Ht.call(V,B,be.device);if(ie&&!V[h]&&Ye&&Ye.mobile){V[h]=O}if(ie&&V[g]=="Macintosh"&&W&&typeof W.standalone!==m&&W.maxTouchPoints&&W.maxTouchPoints>2){V[g]="iPad";V[h]=A}return V};this.getEngine=function(){var V={};V[w]=r;V[b]=r;Ht.call(V,B,be.engine);return V};this.getOS=function(){var V={};V[w]=r;V[b]=r;Ht.call(V,B,be.os);if(ie&&!V[w]&&Ye&&Ye.platform!="Unknown"){V[w]=Ye.platform.replace(/chrome os/i,ro).replace(/macos/i,Zt)}return V};this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}};this.getUA=function(){return B};this.setUA=function(V){B=typeof V===T&&V.length>Z?st(V,Z):V;return this};this.setUA(B);return this};j.VERSION=i;j.BROWSER=no([w,b,p]);j.CPU=no([L]);j.DEVICE=no([g,y,h,D,O,N,A,X,oe]);j.ENGINE=j.OS=no([w,b]);if(typeof Gr!==m){if(typeof ri!==m&&ri.exports){Gr=ri.exports=j}Gr.UAParser=j}else{if(typeof define===c&&define.amd){define(function(){return j})}else if(typeof o!==m){o.UAParser=j}}var ne=typeof o!==m&&(o.jQuery||o.Zepto);if(ne&&!ne.ua){var Y=new j;ne.ua=Y.getResult();ne.ua.get=function(){return Y.getUA()};ne.ua.set=function(z){Y.setUA(z);var U=Y.getResult();for(var W in U){ne.ua[W]=U[W]}}}})(typeof window==="object"?window:Gr)});var vl=\`api-key\`;var yl=\`p-key\`;var ba=\`preview-url\`;var xa=\`user-id\`;var _l="_b-uid";var bl=\`framework\`;var xl=\`platform\`;var El=\`node\`;var Sl="/~builder-dev-tools";var Tl="https://cdn.builder.io/api/v1/proxy-api?url=https://api2.amplitude.com/2/httpapi";var Il="__DEV_TOOLS_URL__";var Ol=(o,r)=>Ea({type:"connectBuilder",data:{publicApiKey:o,privateAuthKey:r}});var kl=()=>Ea({type:"validateBuilder"});var Al=o=>Ea({type:"launchEditor",data:o});var Ea=async o=>{const r=new URL(Sl,Il);let i;try{i=await fetch(r,{method:"POST",body:JSON.stringify(o)})}catch(u){console.error(\`Devtools Fetch Error, \${r.href}\`,u);throw new Error(\`Builder Devtools Fetch Error\`)}const s=i.headers.get("content-type")||"";if(s.includes("application/json")){const u=await i.json();if(i.ok){return u.data}if(Array.isArray(u.errors)&&u.errors.length>0){u.errors.forEach(c=>console.error(c));throw new Error(\`Builder Devtools Fetch Error: \${u.errors[0]}\`)}}throw new Error(\`Builder Devtools Fetch Error: \${i.status}, \${await i.text()}\`)};var Te=function(){Te=Object.assign||function o(r){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var c in i)if(Object.prototype.hasOwnProperty.call(i,c))r[c]=i[c]}return r};return Te.apply(this,arguments)};function Pl(o,r){var i={};for(var s in o)if(Object.prototype.hasOwnProperty.call(o,s)&&r.indexOf(s)<0)i[s]=o[s];if(o!=null&&typeof Object.getOwnPropertySymbols==="function")for(var u=0,s=Object.getOwnPropertySymbols(o);u<s.length;u++){if(r.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(o,s[u]))i[s[u]]=o[s[u]]}return i}function Ne(o,r,i,s){function u(c){return c instanceof i?c:new i(function(m){m(c)})}return new(i||(i=Promise))(function(c,m){function x(g){try{p(s.next(g))}catch(w){m(w)}}function T(g){try{p(s["throw"](g))}catch(w){m(w)}}function p(g){g.done?c(g.value):u(g.value).then(x,T)}p((s=s.apply(o,r||[])).next())})}function Me(o,r){var i={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},s,u,c,m;return m={next:x(0),"throw":x(1),"return":x(2)},typeof Symbol==="function"&&(m[Symbol.iterator]=function(){return this}),m;function x(p){return function(g){return T([p,g])}}function T(p){if(s)throw new TypeError("Generator is already executing.");while(m&&(m=0,p[0]&&(i=0)),i)try{if(s=1,u&&(c=p[0]&2?u["return"]:p[0]?u["throw"]||((c=u["return"])&&c.call(u),0):u.next)&&!(c=c.call(u,p[1])).done)return c;if(u=0,c)p=[p[0]&2,c.value];switch(p[0]){case 0:case 1:c=p;break;case 4:i.label++;return{value:p[1],done:false};case 5:i.label++;u=p[1];p=[0];continue;case 7:p=i.ops.pop();i.trys.pop();continue;default:if(!(c=i.trys,c=c.length>0&&c[c.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!c||p[1]>c[0]&&p[1]<c[3])){i.label=p[1];break}if(p[0]===6&&i.label<c[1]){i.label=c[1];c=p;break}if(c&&i.label<c[2]){i.label=c[2];i.ops.push(p);break}if(c[2])i.ops.pop();i.trys.pop();continue}p=r.call(o,i)}catch(g){p=[6,g];u=0}finally{s=c=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:true}}}function oo(o){var r=typeof Symbol==="function"&&Symbol.iterator,i=r&&o[r],s=0;if(i)return i.call(o);if(o&&typeof o.length==="number")return{next:function(){if(o&&s>=o.length)o=void 0;return{value:o&&o[s++],done:!o}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Rt(o,r){var i=typeof Symbol==="function"&&o[Symbol.iterator];if(!i)return o;var s=i.call(o),u,c=[],m;try{while((r===void 0||r-- >0)&&!(u=s.next()).done)c.push(u.value)}catch(x){m={error:x}}finally{try{if(u&&!u.done&&(i=s["return"]))i.call(s)}finally{if(m)throw m.error}}return c}function mo(o,r,i){if(i||arguments.length===2)for(var s=0,u=r.length,c;s<u;s++){if(c||!(s in r)){if(!c)c=Array.prototype.slice.call(r,0,s);c[s]=r[s]}}return o.concat(c||Array.prototype.slice.call(r))}var Fe;(function(o){o["SET"]="$set";o["SET_ONCE"]="$setOnce";o["ADD"]="$add";o["APPEND"]="$append";o["PREPEND"]="$prepend";o["REMOVE"]="$remove";o["PREINSERT"]="$preInsert";o["POSTINSERT"]="$postInsert";o["UNSET"]="$unset";o["CLEAR_ALL"]="$clearAll"})(Fe||(Fe={}));var wo;(function(o){o["REVENUE_PRODUCT_ID"]="$productId";o["REVENUE_QUANTITY"]="$quantity";o["REVENUE_PRICE"]="$price";o["REVENUE_TYPE"]="$revenueType";o["REVENUE"]="$revenue"})(wo||(wo={}));var Po;(function(o){o["IDENTIFY"]="$identify";o["GROUP_IDENTIFY"]="$groupidentify";o["REVENUE"]="revenue_amount"})(Po||(Po={}));var gt;(function(o){o[o["None"]=0]="None";o[o["Error"]=1]="Error";o[o["Warn"]=2]="Warn";o[o["Verbose"]=3]="Verbose";o[o["Debug"]=4]="Debug"})(gt||(gt={}));var ve;(function(o){o["BEFORE"]="before";o["ENRICHMENT"]="enrichment";o["DESTINATION"]="destination"})(ve||(ve={}));var pr;(function(o){o["US"]="US";o["EU"]="EU"})(pr||(pr={}));var ke;(function(o){o["Unknown"]="unknown";o["Skipped"]="skipped";o["Success"]="success";o["RateLimit"]="rate_limit";o["PayloadTooLarge"]="payload_too_large";o["Invalid"]="invalid";o["Failed"]="failed";o["Timeout"]="Timeout";o["SystemError"]="SystemError"})(ke||(ke={}));var mr;(function(o){o["XHR"]="xhr";o["SendBeacon"]="beacon";o["Fetch"]="fetch"})(mr||(mr={}));var Sa="-";var Ko="AMP";var Ta="".concat(Ko,"_unsent");var Ia="https://api2.amplitude.com/2/httpapi";var Rl="https://api.eu.amplitude.com/2/httpapi";var Cl="https://api2.amplitude.com/batch";var Dl="https://api.eu.amplitude.com/batch";var Dy=1e3;var Fn=function(o){if(Object.keys(o).length>Dy){return false}for(var r in o){var i=o[r];if(!Oa(r,i))return false}return true};var Oa=function(o,r){var i,s;if(typeof o!=="string")return false;if(Array.isArray(r)){var u=true;try{for(var c=oo(r),m=c.next();!m.done;m=c.next()){var x=m.value;if(Array.isArray(x)){return false}else if(typeof x==="object"){u=u&&Fn(x)}else if(!["number","string"].includes(typeof x)){return false}if(!u){return false}}}catch(T){i={error:T}}finally{try{if(m&&!m.done&&(s=c.return))s.call(c)}finally{if(i)throw i.error}}}else if(r===null||r===void 0){return false}else if(typeof r==="object"){return Fn(r)}else if(!["number","string","boolean"].includes(typeof r)){return false}return true};var jt=function(){function o(){this._propertySet=new Set;this._properties={}}o.prototype.getUserProperties=function(){return Te({},this._properties)};o.prototype.set=function(r,i){this._safeSet(Fe.SET,r,i);return this};o.prototype.setOnce=function(r,i){this._safeSet(Fe.SET_ONCE,r,i);return this};o.prototype.append=function(r,i){this._safeSet(Fe.APPEND,r,i);return this};o.prototype.prepend=function(r,i){this._safeSet(Fe.PREPEND,r,i);return this};o.prototype.postInsert=function(r,i){this._safeSet(Fe.POSTINSERT,r,i);return this};o.prototype.preInsert=function(r,i){this._safeSet(Fe.PREINSERT,r,i);return this};o.prototype.remove=function(r,i){this._safeSet(Fe.REMOVE,r,i);return this};o.prototype.add=function(r,i){this._safeSet(Fe.ADD,r,i);return this};o.prototype.unset=function(r){this._safeSet(Fe.UNSET,r,Sa);return this};o.prototype.clearAll=function(){this._properties={};this._properties[Fe.CLEAR_ALL]=Sa;return this};o.prototype._safeSet=function(r,i,s){if(this._validate(r,i,s)){var u=this._properties[r];if(u===void 0){u={};this._properties[r]=u}u[i]=s;this._propertySet.add(i);return true}return false};o.prototype._validate=function(r,i,s){if(this._properties[Fe.CLEAR_ALL]!==void 0){return false}if(this._propertySet.has(i)){return false}if(r===Fe.ADD){return typeof s==="number"}if(r!==Fe.UNSET&&r!==Fe.REMOVE){return Oa(i,s)}return true};return o}();var Ll=function(o,r,i){var s=typeof o==="string"?{event_type:o}:o;return Te(Te(Te({},s),i),r&&{event_properties:r})};var Ur=function(o,r){var i=Te(Te({},r),{event_type:Po.IDENTIFY,user_properties:o.getUserProperties()});return i};var ql=function(o,r,i,s){var u;var c=Te(Te({},s),{event_type:Po.GROUP_IDENTIFY,group_properties:i.getUserProperties(),groups:(u={},u[o]=r,u)});return c};var Ul=function(o,r,i){var s;var u=new jt;u.set(o,r);var c=Te(Te({},i),{event_type:Po.IDENTIFY,user_properties:u.getUserProperties(),groups:(s={},s[o]=r,s)});return c};var Nl=function(o,r){return Te(Te({},r),{event_type:Po.REVENUE,event_properties:o.getEventProperties()})};var Ro=function(o,r,i){if(r===void 0){r=0}if(i===void 0){i=ke.Unknown}return{event:o,code:r,message:i}};var Ml=function(){function o(r){this.client=r;this.queue=[];this.applying=false;this.plugins=[]}o.prototype.register=function(r,i){return Ne(this,void 0,void 0,function(){return Me(this,function(s){switch(s.label){case 0:return[4,r.setup(i,this.client)];case 1:s.sent();this.plugins.push(r);return[2]}})})};o.prototype.deregister=function(r){var i;return Ne(this,void 0,void 0,function(){var s,u;return Me(this,function(c){switch(c.label){case 0:s=this.plugins.findIndex(function(m){return m.name===r});u=this.plugins[s];this.plugins.splice(s,1);return[4,(i=u.teardown)===null||i===void 0?void 0:i.call(u)];case 1:c.sent();return[2]}})})};o.prototype.reset=function(r){this.applying=false;var i=this.plugins;i.map(function(s){var u;return(u=s.teardown)===null||u===void 0?void 0:u.call(s)});this.plugins=[];this.client=r};o.prototype.push=function(r){var i=this;return new Promise(function(s){i.queue.push([r,s]);i.scheduleApply(0)})};o.prototype.scheduleApply=function(r){var i=this;if(this.applying)return;this.applying=true;setTimeout(function(){void i.apply(i.queue.shift()).then(function(){i.applying=false;if(i.queue.length>0){i.scheduleApply(0)}})},r)};o.prototype.apply=function(r){return Ne(this,void 0,void 0,function(){var i,s,u,c,m,x,T,y,b,p,g,w,h,y,b,L,D,O;var A,N,X,oe;return Me(this,function(Z){switch(Z.label){case 0:if(!r){return[2]}i=Rt(r,1),s=i[0];u=Rt(r,2),c=u[1];m=this.plugins.filter(function(fe){return fe.type===ve.BEFORE});Z.label=1;case 1:Z.trys.push([1,6,7,8]);x=oo(m),T=x.next();Z.label=2;case 2:if(!!T.done)return[3,5];y=T.value;return[4,y.execute(Te({},s))];case 3:b=Z.sent();if(b===null){c({event:s,code:0,message:""});return[2]}else{s=b}Z.label=4;case 4:T=x.next();return[3,2];case 5:return[3,8];case 6:p=Z.sent();A={error:p};return[3,8];case 7:try{if(T&&!T.done&&(N=x.return))N.call(x)}finally{if(A)throw A.error}return[7];case 8:g=this.plugins.filter(function(fe){return fe.type===ve.ENRICHMENT});Z.label=9;case 9:Z.trys.push([9,14,15,16]);w=oo(g),h=w.next();Z.label=10;case 10:if(!!h.done)return[3,13];y=h.value;return[4,y.execute(Te({},s))];case 11:b=Z.sent();if(b===null){c({event:s,code:0,message:""});return[2]}else{s=b}Z.label=12;case 12:h=w.next();return[3,10];case 13:return[3,16];case 14:L=Z.sent();X={error:L};return[3,16];case 15:try{if(h&&!h.done&&(oe=w.return))oe.call(w)}finally{if(X)throw X.error}return[7];case 16:D=this.plugins.filter(function(fe){return fe.type===ve.DESTINATION});O=D.map(function(fe){var de=Te({},s);return fe.execute(de).catch(function(Ee){return Ro(de,0,String(Ee))})});void Promise.all(O).then(function(fe){var de=Rt(fe,1),Ee=de[0];c(Ee)});return[2]}})})};o.prototype.flush=function(){return Ne(this,void 0,void 0,function(){var r,i,s;var u=this;return Me(this,function(c){switch(c.label){case 0:r=this.queue;this.queue=[];return[4,Promise.all(r.map(function(m){return u.apply(m)}))];case 1:c.sent();i=this.plugins.filter(function(m){return m.type===ve.DESTINATION});s=i.map(function(m){return m.flush&&m.flush()});return[4,Promise.all(s)];case 2:c.sent();return[2]}})})};return o}();var Fl="Event tracked successfully";var zl="Unexpected error occurred";var Bl="Event rejected due to exceeded retry count";var jl="Event skipped due to optOut config";var Wl="Event rejected due to missing API key";var Vl="Invalid API key";var Gl="Client not initialized";var yt=function(o){return{promise:o||Promise.resolve()}};var ka=function(){function o(r){if(r===void 0){r="$default"}this.initializing=false;this.q=[];this.dispatchQ=[];this.logEvent=this.track.bind(this);this.timeline=new Ml(this);this.name=r}o.prototype._init=function(r){return Ne(this,void 0,void 0,function(){return Me(this,function(i){switch(i.label){case 0:this.config=r;this.timeline.reset(this);return[4,this.runQueuedFunctions("q")];case 1:i.sent();return[2]}})})};o.prototype.runQueuedFunctions=function(r){return Ne(this,void 0,void 0,function(){var i,s,u,c,m;var x,T;return Me(this,function(p){switch(p.label){case 0:i=this[r];this[r]=[];p.label=1;case 1:p.trys.push([1,6,7,8]);s=oo(i),u=s.next();p.label=2;case 2:if(!!u.done)return[3,5];c=u.value;return[4,c()];case 3:p.sent();p.label=4;case 4:u=s.next();return[3,2];case 5:return[3,8];case 6:m=p.sent();x={error:m};return[3,8];case 7:try{if(u&&!u.done&&(T=s.return))T.call(s)}finally{if(x)throw x.error}return[7];case 8:return[2]}})})};o.prototype.track=function(r,i,s){var u=Ll(r,i,s);return yt(this.dispatch(u))};o.prototype.identify=function(r,i){var s=Ur(r,i);return yt(this.dispatch(s))};o.prototype.groupIdentify=function(r,i,s,u){var c=ql(r,i,s,u);return yt(this.dispatch(c))};o.prototype.setGroup=function(r,i,s){var u=Ul(r,i,s);return yt(this.dispatch(u))};o.prototype.revenue=function(r,i){var s=Nl(r,i);return yt(this.dispatch(s))};o.prototype.add=function(r){if(!this.config){this.q.push(this.add.bind(this,r));return yt()}return yt(this.timeline.register(r,this.config))};o.prototype.remove=function(r){if(!this.config){this.q.push(this.remove.bind(this,r));return yt()}return yt(this.timeline.deregister(r))};o.prototype.dispatchWithCallback=function(r,i){if(!this.config){return i(Ro(r,0,Gl))}void this.process(r).then(i)};o.prototype.dispatch=function(r){return Ne(this,void 0,void 0,function(){var i=this;return Me(this,function(s){if(!this.config){return[2,new Promise(function(u){i.dispatchQ.push(i.dispatchWithCallback.bind(i,r,u))})]}return[2,this.process(r)]})})};o.prototype.process=function(r){return Ne(this,void 0,void 0,function(){var u,i,s,u;return Me(this,function(c){switch(c.label){case 0:c.trys.push([0,2,,3]);if(this.config.optOut){return[2,Ro(r,0,jl)]}return[4,this.timeline.push(r)];case 1:u=c.sent();u.code===200?this.config.loggerProvider.log(u.message):this.config.loggerProvider.error(u.message);return[2,u];case 2:i=c.sent();s=String(i);this.config.loggerProvider.error(s);u=Ro(r,0,s);return[2,u];case 3:return[2]}})})};o.prototype.setOptOut=function(r){if(!this.config){this.q.push(this.setOptOut.bind(this,Boolean(r)));return}this.config.optOut=Boolean(r)};o.prototype.flush=function(){return yt(this.timeline.flush())};return o}();var zn=function(){function o(){this.productId="";this.quantity=1;this.price=0}o.prototype.setProductId=function(r){this.productId=r;return this};o.prototype.setQuantity=function(r){if(r>0){this.quantity=r}return this};o.prototype.setPrice=function(r){this.price=r;return this};o.prototype.setRevenueType=function(r){this.revenueType=r;return this};o.prototype.setRevenue=function(r){this.revenue=r;return this};o.prototype.setEventProperties=function(r){if(Fn(r)){this.properties=r}return this};o.prototype.getEventProperties=function(){var r=this.properties?Te({},this.properties):{};r[wo.REVENUE_PRODUCT_ID]=this.productId;r[wo.REVENUE_QUANTITY]=this.quantity;r[wo.REVENUE_PRICE]=this.price;r[wo.REVENUE_TYPE]=this.revenueType;r[wo.REVENUE]=this.revenue;return r};return o}();var Hl=function(o,r){var i=Math.max(r,1);return o.reduce(function(s,u,c){var m=Math.floor(c/i);if(!s[m]){s[m]=[]}s[m].push(u);return s},[])};var Bn="Amplitude Logger ";var Kl=function(){function o(){this.logLevel=gt.None}o.prototype.disable=function(){this.logLevel=gt.None};o.prototype.enable=function(r){if(r===void 0){r=gt.Warn}this.logLevel=r};o.prototype.log=function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}if(this.logLevel<gt.Verbose){return}console.log("".concat(Bn,"[Log]: ").concat(r.join(" ")))};o.prototype.warn=function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}if(this.logLevel<gt.Warn){return}console.warn("".concat(Bn,"[Warn]: ").concat(r.join(" ")))};o.prototype.error=function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}if(this.logLevel<gt.Error){return}console.error("".concat(Bn,"[Error]: ").concat(r.join(" ")))};o.prototype.debug=function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}if(this.logLevel<gt.Debug){return}console.log("".concat(Bn,"[Debug]: ").concat(r.join(" ")))};return o}();var jn=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:"$default_instance",logLevel:gt.Warn,loggerProvider:new Kl,optOut:false,serverUrl:Ia,serverZone:pr.US,useBatch:false}};var Aa=function(){function o(r){var i,s,u,c;this._optOut=false;var m=jn();this.apiKey=r.apiKey;this.flushIntervalMillis=(i=r.flushIntervalMillis)!==null&&i!==void 0?i:m.flushIntervalMillis;this.flushMaxRetries=r.flushMaxRetries||m.flushMaxRetries;this.flushQueueSize=r.flushQueueSize||m.flushQueueSize;this.instanceName=r.instanceName||m.instanceName;this.loggerProvider=r.loggerProvider||m.loggerProvider;this.logLevel=(s=r.logLevel)!==null&&s!==void 0?s:m.logLevel;this.minIdLength=r.minIdLength;this.plan=r.plan;this.ingestionMetadata=r.ingestionMetadata;this.optOut=(u=r.optOut)!==null&&u!==void 0?u:m.optOut;this.serverUrl=r.serverUrl;this.serverZone=r.serverZone||m.serverZone;this.storageProvider=r.storageProvider;this.transportProvider=r.transportProvider;this.useBatch=(c=r.useBatch)!==null&&c!==void 0?c:m.useBatch;this.loggerProvider.enable(this.logLevel);var x=Pa(r.serverUrl,r.serverZone,r.useBatch);this.serverZone=x.serverZone;this.serverUrl=x.serverUrl}Object.defineProperty(o.prototype,"optOut",{get:function(){return this._optOut},set:function(r){this._optOut=r},enumerable:false,configurable:true});return o}();var Ly=function(o,r){if(o===pr.EU){return r?Dl:Rl}return r?Cl:Ia};var Pa=function(o,r,i){if(o===void 0){o=""}if(r===void 0){r=jn().serverZone}if(i===void 0){i=jn().useBatch}if(o){return{serverUrl:o,serverZone:void 0}}var s=["US","EU"].includes(r)?r:jn().serverZone;return{serverZone:s,serverUrl:Ly(s,i)}};function qy(o){if(o instanceof Error)return o.message;return String(o)}function Wn(o){var r="";try{if("body"in o){r=JSON.stringify(o.body)}}catch(i){}return r}var Ra=function(){function o(){this.name="amplitude";this.type=ve.DESTINATION;this.retryTimeout=1e3;this.throttleTimeout=3e4;this.storageKey="";this.scheduled=null;this.queue=[]}o.prototype.setup=function(r){var i;return Ne(this,void 0,void 0,function(){var s;var u=this;return Me(this,function(c){switch(c.label){case 0:this.config=r;this.storageKey="".concat(Ta,"_").concat(this.config.apiKey.substring(0,10));return[4,(i=this.config.storageProvider)===null||i===void 0?void 0:i.get(this.storageKey)];case 1:s=c.sent();this.saveEvents();if(s&&s.length>0){void Promise.all(s.map(function(m){return u.execute(m)})).catch()}return[2,Promise.resolve(void 0)]}})})};o.prototype.execute=function(r){var i=this;return new Promise(function(s){var u={event:r,attempts:0,callback:function(c){return s(c)},timeout:0};void i.addToQueue(u)})};o.prototype.addToQueue=function(){var r=this;var i=[];for(var s=0;s<arguments.length;s++){i[s]=arguments[s]}var u=i.filter(function(c){if(c.attempts<r.config.flushMaxRetries){c.attempts+=1;return true}void r.fulfillRequest([c],500,Bl);return false});u.forEach(function(c){r.queue=r.queue.concat(c);if(c.timeout===0){r.schedule(r.config.flushIntervalMillis);return}setTimeout(function(){c.timeout=0;r.schedule(0)},c.timeout)});this.saveEvents()};o.prototype.schedule=function(r){var i=this;if(this.scheduled)return;this.scheduled=setTimeout(function(){void i.flush(true).then(function(){if(i.queue.length>0){i.schedule(r)}})},r)};o.prototype.flush=function(r){if(r===void 0){r=false}return Ne(this,void 0,void 0,function(){var i,s,u;var c=this;return Me(this,function(m){switch(m.label){case 0:i=[];s=[];this.queue.forEach(function(x){return x.timeout===0?i.push(x):s.push(x)});this.queue=s;if(this.scheduled){clearTimeout(this.scheduled);this.scheduled=null}u=Hl(i,this.config.flushQueueSize);return[4,Promise.all(u.map(function(x){return c.send(x,r)}))];case 1:m.sent();return[2]}})})};o.prototype.send=function(r,i){if(i===void 0){i=true}return Ne(this,void 0,void 0,function(){var s,u,c,m,x;return Me(this,function(T){switch(T.label){case 0:if(!this.config.apiKey){return[2,this.fulfillRequest(r,400,Wl)]}s={api_key:this.config.apiKey,events:r.map(function(p){var g=p.event,w=g.extra,h=Pl(g,["extra"]);return h}),options:{min_id_length:this.config.minIdLength}};T.label=1;case 1:T.trys.push([1,3,,4]);u=Pa(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl;return[4,this.config.transportProvider.send(u,s)];case 2:c=T.sent();if(c===null){this.fulfillRequest(r,0,zl);return[2]}if(!i){if("body"in c){this.fulfillRequest(r,c.statusCode,"".concat(c.status,": ").concat(Wn(c)))}else{this.fulfillRequest(r,c.statusCode,c.status)}return[2]}this.handleResponse(c,r);return[3,4];case 3:m=T.sent();x=qy(m);this.config.loggerProvider.error(x);this.fulfillRequest(r,0,x);return[3,4];case 4:return[2]}})})};o.prototype.handleResponse=function(r,i){var s=r.status;switch(s){case ke.Success:{this.handleSuccessResponse(r,i);break}case ke.Invalid:{this.handleInvalidResponse(r,i);break}case ke.PayloadTooLarge:{this.handlePayloadTooLargeResponse(r,i);break}case ke.RateLimit:{this.handleRateLimitResponse(r,i);break}default:{this.config.loggerProvider.warn(\`{code: 0, error: "Status '\`.concat(s,"' provided for ").concat(i.length,' events"}'));this.handleOtherResponse(i);break}}};o.prototype.handleSuccessResponse=function(r,i){this.fulfillRequest(i,r.statusCode,Fl)};o.prototype.handleInvalidResponse=function(r,i){var s=this;if(r.body.missingField||r.body.error.startsWith(Vl)){this.fulfillRequest(i,r.statusCode,r.body.error);return}var u=mo(mo(mo(mo([],Rt(Object.values(r.body.eventsWithInvalidFields)),false),Rt(Object.values(r.body.eventsWithMissingFields)),false),Rt(Object.values(r.body.eventsWithInvalidIdLengths)),false),Rt(r.body.silencedEvents),false).flat();var c=new Set(u);var m=i.filter(function(x,T){if(c.has(T)){s.fulfillRequest([x],r.statusCode,r.body.error);return}return true});if(m.length>0){this.config.loggerProvider.warn(Wn(r))}this.addToQueue.apply(this,mo([],Rt(m),false))};o.prototype.handlePayloadTooLargeResponse=function(r,i){if(i.length===1){this.fulfillRequest(i,r.statusCode,r.body.error);return}this.config.loggerProvider.warn(Wn(r));this.config.flushQueueSize/=2;this.addToQueue.apply(this,mo([],Rt(i),false))};o.prototype.handleRateLimitResponse=function(r,i){var s=this;var u=Object.keys(r.body.exceededDailyQuotaUsers);var c=Object.keys(r.body.exceededDailyQuotaDevices);var m=r.body.throttledEvents;var x=new Set(u);var T=new Set(c);var p=new Set(m);var g=i.filter(function(w,h){if(w.event.user_id&&x.has(w.event.user_id)||w.event.device_id&&T.has(w.event.device_id)){s.fulfillRequest([w],r.statusCode,r.body.error);return}if(p.has(h)){w.timeout=s.throttleTimeout}return true});if(g.length>0){this.config.loggerProvider.warn(Wn(r))}this.addToQueue.apply(this,mo([],Rt(g),false))};o.prototype.handleOtherResponse=function(r){var i=this;this.addToQueue.apply(this,mo([],Rt(r.map(function(s){s.timeout=s.attempts*i.retryTimeout;return s})),false))};o.prototype.fulfillRequest=function(r,i,s){this.saveEvents();r.forEach(function(u){return u.callback(Ro(u.event,i,s))})};o.prototype.saveEvents=function(){if(!this.config.storageProvider){return}var r=Array.from(this.queue.map(function(i){return i.event}));void this.config.storageProvider.set(this.storageKey,r)};return o}();var Uy=function(o){if(o===void 0){o=0}var r=new Error().stack||"";return r.split("\\n").slice(2+o).map(function(i){return i.trim()})};var Pe=function(o){return function(){var r=Te({},o.config),i=r.loggerProvider,s=r.logLevel;return{logger:i,logLevel:s}}};var Ny=function(o,r){var i,s;r=r.replace(/\\[(\\w+)\\]/g,".$1");r=r.replace(/^\\./,"");try{for(var u=oo(r.split(".")),c=u.next();!c.done;c=u.next()){var m=c.value;if(m in o){o=o[m]}else{return}}}catch(x){i={error:x}}finally{try{if(c&&!c.done&&(s=u.return))s.call(u)}finally{if(i)throw i.error}}return o};var Re=function(o,r){return function(){var i,s;var u={};try{for(var c=oo(r),m=c.next();!m.done;m=c.next()){var x=m.value;u[x]=Ny(o,x)}}catch(T){i={error:T}}finally{try{if(m&&!m.done&&(s=c.return))s.call(c)}finally{if(i)throw i.error}}return u}};var Ce=function(o,r,i,s,u){if(u===void 0){u=null}return function(){var c=[];for(var m=0;m<arguments.length;m++){c[m]=arguments[m]}var x=i(),T=x.logger,p=x.logLevel;if(p&&p<gt.Debug||!p||!T){return o.apply(u,c)}var g={type:"invoke public method",name:r,args:c,stacktrace:Uy(1),time:{start:new Date().toISOString()},states:{}};if(s&&g.states){g.states.before=s()}var w=o.apply(u,c);if(w&&w.promise){w.promise.then(function(){if(s&&g.states){g.states.after=s()}if(g.time){g.time.end=new Date().toISOString()}T.debug(JSON.stringify(g,null,2))})}else{if(s&&g.states){g.states.after=s()}if(g.time){g.time.end=new Date().toISOString()}T.debug(JSON.stringify(g,null,2))}return w}};var Co=function(o){return o?(o^Math.random()*16>>o/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,Co)};var Vn=function(){function o(){this.memoryStorage=new Map}o.prototype.isEnabled=function(){return Ne(this,void 0,void 0,function(){return Me(this,function(r){return[2,true]})})};o.prototype.get=function(r){return Ne(this,void 0,void 0,function(){return Me(this,function(i){return[2,this.memoryStorage.get(r)]})})};o.prototype.getRaw=function(r){return Ne(this,void 0,void 0,function(){var i;return Me(this,function(s){switch(s.label){case 0:return[4,this.get(r)];case 1:i=s.sent();return[2,i?JSON.stringify(i):void 0]}})})};o.prototype.set=function(r,i){return Ne(this,void 0,void 0,function(){return Me(this,function(s){this.memoryStorage.set(r,i);return[2]})})};o.prototype.remove=function(r){return Ne(this,void 0,void 0,function(){return Me(this,function(i){this.memoryStorage.delete(r);return[2]})})};o.prototype.reset=function(){return Ne(this,void 0,void 0,function(){return Me(this,function(r){this.memoryStorage.clear();return[2]})})};return o}();var Yo=function(){function o(){}o.prototype.send=function(r,i){return Promise.resolve(null)};o.prototype.buildResponse=function(r){var i,s,u,c,m,x,T,p,g,w,h,y,b,L,D,O,A,N,X,oe,Z,fe;if(typeof r!=="object"){return null}var de=r.code||0;var Ee=this.buildStatus(de);switch(Ee){case ke.Success:return{status:Ee,statusCode:de,body:{eventsIngested:(i=r.events_ingested)!==null&&i!==void 0?i:0,payloadSizeBytes:(s=r.payload_size_bytes)!==null&&s!==void 0?s:0,serverUploadTime:(u=r.server_upload_time)!==null&&u!==void 0?u:0}};case ke.Invalid:return{status:Ee,statusCode:de,body:{error:(c=r.error)!==null&&c!==void 0?c:"",missingField:(m=r.missing_field)!==null&&m!==void 0?m:"",eventsWithInvalidFields:(x=r.events_with_invalid_fields)!==null&&x!==void 0?x:{},eventsWithMissingFields:(T=r.events_with_missing_fields)!==null&&T!==void 0?T:{},eventsWithInvalidIdLengths:(p=r.events_with_invalid_id_lengths)!==null&&p!==void 0?p:{},epsThreshold:(g=r.eps_threshold)!==null&&g!==void 0?g:0,exceededDailyQuotaDevices:(w=r.exceeded_daily_quota_devices)!==null&&w!==void 0?w:{},silencedDevices:(h=r.silenced_devices)!==null&&h!==void 0?h:[],silencedEvents:(y=r.silenced_events)!==null&&y!==void 0?y:[],throttledDevices:(b=r.throttled_devices)!==null&&b!==void 0?b:{},throttledEvents:(L=r.throttled_events)!==null&&L!==void 0?L:[]}};case ke.PayloadTooLarge:return{status:Ee,statusCode:de,body:{error:(D=r.error)!==null&&D!==void 0?D:""}};case ke.RateLimit:return{status:Ee,statusCode:de,body:{error:(O=r.error)!==null&&O!==void 0?O:"",epsThreshold:(A=r.eps_threshold)!==null&&A!==void 0?A:0,throttledDevices:(N=r.throttled_devices)!==null&&N!==void 0?N:{},throttledUsers:(X=r.throttled_users)!==null&&X!==void 0?X:{},exceededDailyQuotaDevices:(oe=r.exceeded_daily_quota_devices)!==null&&oe!==void 0?oe:{},exceededDailyQuotaUsers:(Z=r.exceeded_daily_quota_users)!==null&&Z!==void 0?Z:{},throttledEvents:(fe=r.throttled_events)!==null&&fe!==void 0?fe:[]}};case ke.Timeout:default:return{status:Ee,statusCode:de}}};o.prototype.buildStatus=function(r){if(r>=200&&r<300){return ke.Success}if(r===429){return ke.RateLimit}if(r===413){return ke.PayloadTooLarge}if(r===408){return ke.Timeout}if(r>=400&&r<500){return ke.Invalid}if(r>=500){return ke.Failed}return ke.Unknown};return o}();var Ca=function(o,r){Ca=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var u in s)if(Object.prototype.hasOwnProperty.call(s,u))i[u]=s[u]};return Ca(o,r)};function Do(o,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Ca(o,r);function i(){this.constructor=o}o.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var he=function(){he=Object.assign||function o(r){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var c in i)if(Object.prototype.hasOwnProperty.call(i,c))r[c]=i[c]}return r};return he.apply(this,arguments)};function ce(o,r,i,s){function u(c){return c instanceof i?c:new i(function(m){m(c)})}return new(i||(i=Promise))(function(c,m){function x(g){try{p(s.next(g))}catch(w){m(w)}}function T(g){try{p(s["throw"](g))}catch(w){m(w)}}function p(g){g.done?c(g.value):u(g.value).then(x,T)}p((s=s.apply(o,r||[])).next())})}function le(o,r){var i={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},s,u,c,m;return m={next:x(0),"throw":x(1),"return":x(2)},typeof Symbol==="function"&&(m[Symbol.iterator]=function(){return this}),m;function x(p){return function(g){return T([p,g])}}function T(p){if(s)throw new TypeError("Generator is already executing.");while(m&&(m=0,p[0]&&(i=0)),i)try{if(s=1,u&&(c=p[0]&2?u["return"]:p[0]?u["throw"]||((c=u["return"])&&c.call(u),0):u.next)&&!(c=c.call(u,p[1])).done)return c;if(u=0,c)p=[p[0]&2,c.value];switch(p[0]){case 0:case 1:c=p;break;case 4:i.label++;return{value:p[1],done:false};case 5:i.label++;u=p[1];p=[0];continue;case 7:p=i.ops.pop();i.trys.pop();continue;default:if(!(c=i.trys,c=c.length>0&&c[c.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!c||p[1]>c[0]&&p[1]<c[3])){i.label=p[1];break}if(p[0]===6&&i.label<c[1]){i.label=c[1];c=p;break}if(c&&i.label<c[2]){i.label=c[2];i.ops.push(p);break}if(c[2])i.ops.pop();i.trys.pop();continue}p=r.call(o,i)}catch(g){p=[6,g];u=0}finally{s=c=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:true}}}function Yl(o){var r=typeof Symbol==="function"&&Symbol.iterator,i=r&&o[r],s=0;if(i)return i.call(o);if(o&&typeof o.length==="number")return{next:function(){if(o&&s>=o.length)o=void 0;return{value:o&&o[s++],done:!o}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Gn(o,r){var i=typeof Symbol==="function"&&o[Symbol.iterator];if(!i)return o;var s=i.call(o),u,c=[],m;try{while((r===void 0||r-- >0)&&!(u=s.next()).done)c.push(u.value)}catch(x){m={error:x}}finally{try{if(u&&!u.done&&(i=s["return"]))i.call(s)}finally{if(m)throw m.error}}return c}var My=function(){function o(){}o.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:Fy(),platform:"Web",os:void 0,deviceModel:void 0}};return o}();var Fy=function(){return typeof navigator!=="undefined"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""};var zy=function(){function o(){this.queue=[]}o.prototype.logEvent=function(r){if(!this.receiver){if(this.queue.length<512){this.queue.push(r)}}else{this.receiver(r)}};o.prototype.setEventReceiver=function(r){this.receiver=r;if(this.queue.length>0){this.queue.forEach(function(i){r(i)});this.queue=[]}};return o}();var Lo=function(){Lo=Object.assign||function o(r){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var c in i)if(Object.prototype.hasOwnProperty.call(i,c))r[c]=i[c]}return r};return Lo.apply(this,arguments)};var Hn=function(o,r){var i=["string","number","boolean","undefined"];var s=typeof o;var u=typeof r;if(s!==u){return false}for(var c=0,m=i;c<m.length;c++){var x=m[c];if(x===s){return o===r}}if(o==null&&r==null){return true}else if(o==null||r==null){return false}if(o.length!==r.length){return false}var T=Array.isArray(o);var p=Array.isArray(r);if(T!==p){return false}if(T&&p){for(var g=0;g<o.length;g++){if(!Hn(o[g],r[g])){return false}}}else{var w=Object.keys(o).sort();var h=Object.keys(r).sort();if(!Hn(w,h)){return false}var y=true;Object.keys(o).forEach(function(b){if(!Hn(o[b],r[b])){y=false}});return y}return true};var By="$set";var jy="$unset";var Wy="$clearAll";if(!Object.entries){Object.entries=function(o){var r=Object.keys(o);var i=r.length;var s=new Array(i);while(i--){s[i]=[r[i],o[r[i]]]}return s}}var Vy=function(){function o(){this.identity={userProperties:{}};this.listeners=new Set}o.prototype.editIdentity=function(){var r=this;var i=Lo({},this.identity.userProperties);var s=Lo(Lo({},this.identity),{userProperties:i});return{setUserId:function(u){s.userId=u;return this},setDeviceId:function(u){s.deviceId=u;return this},setUserProperties:function(u){s.userProperties=u;return this},setOptOut:function(u){s.optOut=u;return this},updateUserProperties:function(u){var c=s.userProperties||{};for(var m=0,x=Object.entries(u);m<x.length;m++){var T=x[m],p=T[0],g=T[1];switch(p){case By:for(var w=0,h=Object.entries(g);w<h.length;w++){var y=h[w],b=y[0],L=y[1];c[b]=L}break;case jy:for(var D=0,O=Object.keys(g);D<O.length;D++){var b=O[D];delete c[b]}break;case Wy:c={};break}}s.userProperties=c;return this},commit:function(){r.setIdentity(s);return this}}};o.prototype.getIdentity=function(){return Lo({},this.identity)};o.prototype.setIdentity=function(r){var i=Lo({},this.identity);this.identity=Lo({},r);if(!Hn(i,this.identity)){this.listeners.forEach(function(s){s(r)})}};o.prototype.addIdentityListener=function(r){this.listeners.add(r)};o.prototype.removeIdentityListener=function(r){this.listeners.delete(r)};return o}();var Nr=typeof globalThis!=="undefined"?globalThis:typeof global!=="undefined"?global:self;var $l=function(){function o(){this.identityStore=new Vy;this.eventBridge=new zy;this.applicationContextProvider=new My}o.getInstance=function(r){if(!Nr["analyticsConnectorInstances"]){Nr["analyticsConnectorInstances"]={}}if(!Nr["analyticsConnectorInstances"][r]){Nr["analyticsConnectorInstances"][r]=new o}return Nr["analyticsConnectorInstances"][r]};return o}();var ho=function(o){if(o===void 0){o="$default_instance"}return $l.getInstance(o)};var Da=function(o,r){ho(r).identityStore.editIdentity().setUserId(o).commit()};var La=function(o,r){ho(r).identityStore.editIdentity().setDeviceId(o).commit()};var qa=function(o,r){ho(r).identityStore.editIdentity().setOptOut(o).commit()};var Ua=function(o,r){Ua=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var u in s)if(Object.prototype.hasOwnProperty.call(s,u))i[u]=s[u]};return Ua(o,r)};function Ql(o,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Ua(o,r);function i(){this.constructor=o}o.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var vo=function(){vo=Object.assign||function o(r){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var c in i)if(Object.prototype.hasOwnProperty.call(i,c))r[c]=i[c]}return r};return vo.apply(this,arguments)};function _t(o,r,i,s){function u(c){return c instanceof i?c:new i(function(m){m(c)})}return new(i||(i=Promise))(function(c,m){function x(g){try{p(s.next(g))}catch(w){m(w)}}function T(g){try{p(s["throw"](g))}catch(w){m(w)}}function p(g){g.done?c(g.value):u(g.value).then(x,T)}p((s=s.apply(o,r||[])).next())})}function bt(o,r){var i={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},s,u,c,m;return m={next:x(0),"throw":x(1),"return":x(2)},typeof Symbol==="function"&&(m[Symbol.iterator]=function(){return this}),m;function x(p){return function(g){return T([p,g])}}function T(p){if(s)throw new TypeError("Generator is already executing.");while(m&&(m=0,p[0]&&(i=0)),i)try{if(s=1,u&&(c=p[0]&2?u["return"]:p[0]?u["throw"]||((c=u["return"])&&c.call(u),0):u.next)&&!(c=c.call(u,p[1])).done)return c;if(u=0,c)p=[p[0]&2,c.value];switch(p[0]){case 0:case 1:c=p;break;case 4:i.label++;return{value:p[1],done:false};case 5:i.label++;u=p[1];p=[0];continue;case 7:p=i.ops.pop();i.trys.pop();continue;default:if(!(c=i.trys,c=c.length>0&&c[c.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!c||p[1]>c[0]&&p[1]<c[3])){i.label=p[1];break}if(p[0]===6&&i.label<c[1]){i.label=c[1];c=p;break}if(c&&i.label<c[2]){i.label=c[2];i.ops.push(p);break}if(c[2])i.ops.pop();i.trys.pop();continue}p=r.call(o,i)}catch(g){p=[6,g];u=0}finally{s=c=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:true}}}var tt=function(){if(typeof globalThis!=="undefined"){return globalThis}if(typeof window!=="undefined"){return window}if(typeof self!=="undefined"){return self}if(typeof global!=="undefined"){return global}return void 0};var wr=function(){var o;var r=tt();if(!((o=r===null||r===void 0?void 0:r.location)===null||o===void 0?void 0:o.search)){return{}}var i=r.location.search.substring(1).split("&").filter(Boolean);var s=i.reduce(function(u,c){var m=c.split("=",2);var x=Xl(m[0]);var T=Xl(m[1]);if(!T){return u}u[x]=T;return u},{});return s};var Xl=function(o){if(o===void 0){o=""}try{return decodeURIComponent(o)}catch(r){return""}};var Zl="utm_campaign";var Jl="utm_content";var eg="utm_id";var tg="utm_medium";var og="utm_source";var rg="utm_term";var Na="dclid";var Ma="fbclid";var Fa="gbraid";var za="gclid";var Ba="ko_click_id";var ja="li_fat_id";var Wa="msclkid";var Va="rtd_cid";var Ga="ttclid";var Ha="twclid";var Ka="wbraid";var $o={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0};var Mr=function(){function o(){}o.prototype.parse=function(){return _t(this,void 0,void 0,function(){return bt(this,function(r){return[2,vo(vo(vo(vo({},$o),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})};o.prototype.getUtmParam=function(){var r=wr();var i=r[Zl];var s=r[Jl];var u=r[eg];var c=r[tg];var m=r[og];var x=r[rg];return{utm_campaign:i,utm_content:s,utm_id:u,utm_medium:c,utm_source:m,utm_term:x}};o.prototype.getReferrer=function(){var r,i;var s={referrer:void 0,referring_domain:void 0};try{s.referrer=document.referrer||void 0;s.referring_domain=(i=(r=s.referrer)===null||r===void 0?void 0:r.split("/")[2])!==null&&i!==void 0?i:void 0}catch(u){}return s};o.prototype.getClickIds=function(){var r;var i=wr();return r={},r[Na]=i[Na],r[Ma]=i[Ma],r[Fa]=i[Fa],r[za]=i[za],r[Ba]=i[Ba],r[ja]=i[ja],r[Wa]=i[Wa],r[Va]=i[Va],r[Ga]=i[Ga],r[Ha]=i[Ha],r[Ka]=i[Ka],r};return o}();var Fr=function(o,r,i){if(r===void 0){r=""}if(i===void 0){i=10}return[Ko,r,o.substring(0,i)].filter(Boolean).join("_")};var Ya=function(o){return"".concat(Ko.toLowerCase(),"_").concat(o.substring(0,6))};var $a=function(o){if(typeof o==="boolean"){return o}if(o===null||o===void 0?void 0:o.fileDownloads){return true}return false};var Qa=function(o){if(typeof o==="boolean"){return o}if(o===null||o===void 0?void 0:o.formInteractions){return true}return false};var ng=function(o){if(typeof o==="boolean"){return o}if((o===null||o===void 0?void 0:o.pageViews)===true||(o===null||o===void 0?void 0:o.pageViews)&&typeof o.pageViews==="object"){return true}return false};var Xa=function(o){if(typeof o==="boolean"){return o}if(o===null||o===void 0?void 0:o.sessions){return true}return false};var Za=function(o){var r;var i=((r=o.attribution)===null||r===void 0?void 0:r.trackPageViews)?"attribution":function(){return false};var s=void 0;var u="Page View";var c=ng(o.defaultTracking);if(c){i=void 0;u=void 0;if(o.defaultTracking&&typeof o.defaultTracking==="object"&&o.defaultTracking.pageViews&&typeof o.defaultTracking.pageViews==="object"){if("trackOn"in o.defaultTracking.pageViews){i=o.defaultTracking.pageViews.trackOn}if("trackHistoryChanges"in o.defaultTracking.pageViews){s=o.defaultTracking.pageViews.trackHistoryChanges}if("eventType"in o.defaultTracking.pageViews&&o.defaultTracking.pageViews.eventType){u=o.defaultTracking.pageViews.eventType}}}return{trackOn:i,trackHistoryChanges:s,eventType:u}};var Ja=function(){var o,r,i,s;if(typeof navigator==="undefined")return"";var u=navigator.userLanguage;return(s=(i=(r=(o=navigator.languages)===null||o===void 0?void 0:o[0])!==null&&r!==void 0?r:navigator.language)!==null&&i!==void 0?i:u)!==null&&s!==void 0?s:""};var es=function(){function o(){this.name="identity";this.type=ve.BEFORE;this.identityStore=ho().identityStore}o.prototype.execute=function(r){return _t(this,void 0,void 0,function(){var i;return bt(this,function(s){i=r.user_properties;if(i){this.identityStore.editIdentity().updateUserProperties(i).commit()}return[2,r]})})};o.prototype.setup=function(r){return _t(this,void 0,void 0,function(){return bt(this,function(i){if(r.instanceName){this.identityStore=ho(r.instanceName).identityStore}return[2]})})};return o}();var zr=function(){function o(r){this.options=vo({},r)}o.prototype.isEnabled=function(){return _t(this,void 0,void 0,function(){var r,i,s,u;return bt(this,function(c){switch(c.label){case 0:if(!tt()){return[2,false]}o.testValue=String(Date.now());r=new o(this.options);i="AMP_TEST";c.label=1;case 1:c.trys.push([1,4,5,7]);return[4,r.set(i,o.testValue)];case 2:c.sent();return[4,r.get(i)];case 3:s=c.sent();return[2,s===o.testValue];case 4:u=c.sent();return[2,false];case 5:return[4,r.remove(i)];case 6:c.sent();return[7];case 7:return[2]}})})};o.prototype.get=function(r){return _t(this,void 0,void 0,function(){var i;return bt(this,function(s){switch(s.label){case 0:return[4,this.getRaw(r)];case 1:i=s.sent();if(!i){return[2,void 0]}try{try{i=decodeURIComponent(atob(i))}catch(u){}return[2,JSON.parse(i)]}catch(u){return[2,void 0]}return[2]}})})};o.prototype.getRaw=function(r){var i;return _t(this,void 0,void 0,function(){var s,u,c;return bt(this,function(m){s=tt();u=(i=s===null||s===void 0?void 0:s.document.cookie.split("; "))!==null&&i!==void 0?i:[];c=u.find(function(x){return x.indexOf(r+"=")===0});if(!c){return[2,void 0]}return[2,c.substring(r.length+1)]})})};o.prototype.set=function(r,i){var s;return _t(this,void 0,void 0,function(){var u,c,m,x,T,p;return bt(this,function(g){try{u=(s=this.options.expirationDays)!==null&&s!==void 0?s:0;c=i!==null?u:-1;m=void 0;if(c){x=new Date;x.setTime(x.getTime()+c*24*60*60*1e3);m=x}T="".concat(r,"=").concat(btoa(encodeURIComponent(JSON.stringify(i))));if(m){T+="; expires=".concat(m.toUTCString())}T+="; path=/";if(this.options.domain){T+="; domain=".concat(this.options.domain)}if(this.options.secure){T+="; Secure"}if(this.options.sameSite){T+="; SameSite=".concat(this.options.sameSite)}p=tt();if(p){p.document.cookie=T}}catch(w){}return[2]})})};o.prototype.remove=function(r){return _t(this,void 0,void 0,function(){return bt(this,function(i){switch(i.label){case 0:return[4,this.set(r,null)];case 1:i.sent();return[2]}})})};o.prototype.reset=function(){return _t(this,void 0,void 0,function(){return bt(this,function(r){return[2]})})};return o}();var ts=function(o){Ql(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}r.prototype.send=function(i,s){return _t(this,void 0,void 0,function(){var u,c,m;return bt(this,function(x){switch(x.label){case 0:if(typeof fetch==="undefined"){throw new Error("FetchTransport is not supported")}u={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(s),method:"POST"};return[4,fetch(i,u)];case 1:c=x.sent();return[4,c.json()];case 2:m=x.sent();return[2,this.buildResponse(m)]}})})};return r}(Yo);var Qo=function(){Qo=Object.assign||function o(r){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var c in i)if(Object.prototype.hasOwnProperty.call(i,c))r[c]=i[c]}return r};return Qo.apply(this,arguments)};function Xo(o,r,i,s){function u(c){return c instanceof i?c:new i(function(m){m(c)})}return new(i||(i=Promise))(function(c,m){function x(g){try{p(s.next(g))}catch(w){m(w)}}function T(g){try{p(s["throw"](g))}catch(w){m(w)}}function p(g){g.done?c(g.value):u(g.value).then(x,T)}p((s=s.apply(o,r||[])).next())})}function Zo(o,r){var i={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},s,u,c,m;return m={next:x(0),"throw":x(1),"return":x(2)},typeof Symbol==="function"&&(m[Symbol.iterator]=function(){return this}),m;function x(p){return function(g){return T([p,g])}}function T(p){if(s)throw new TypeError("Generator is already executing.");while(m&&(m=0,p[0]&&(i=0)),i)try{if(s=1,u&&(c=p[0]&2?u["return"]:p[0]?u["throw"]||((c=u["return"])&&c.call(u),0):u.next)&&!(c=c.call(u,p[1])).done)return c;if(u=0,c)p=[p[0]&2,c.value];switch(p[0]){case 0:case 1:c=p;break;case 4:i.label++;return{value:p[1],done:false};case 5:i.label++;u=p[1];p=[0];continue;case 7:p=i.ops.pop();i.trys.pop();continue;default:if(!(c=i.trys,c=c.length>0&&c[c.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!c||p[1]>c[0]&&p[1]<c[3])){i.label=p[1];break}if(p[0]===6&&i.label<c[1]){i.label=c[1];c=p;break}if(c&&i.label<c[2]){i.label=c[2];i.ops.push(p);break}if(c[2])i.ops.pop();i.trys.pop();continue}p=r.call(o,i)}catch(g){p=[6,g];u=0}finally{s=c=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:true}}}function Br(o,r){var i=typeof Symbol==="function"&&o[Symbol.iterator];if(!i)return o;var s=i.call(o),u,c=[],m;try{while((r===void 0||r-- >0)&&!(u=s.next()).done)c.push(u.value)}catch(x){m={error:x}}finally{try{if(u&&!u.done&&(i=s["return"]))i.call(s)}finally{if(m)throw m.error}}return c}function os(o,r,i){if(i||arguments.length===2)for(var s=0,u=r.length,c;s<u;s++){if(c||!(s in r)){if(!c)c=Array.prototype.slice.call(r,0,s);c[s]=r[s]}}return o.concat(c||Array.prototype.slice.call(r))}var ig=function(o){var r={};for(var i in o){var s=o[i];if(s){r[i]=s}}return r};var rs=function(){var o=[];for(var r=0;r<arguments.length;r++){o[r]=arguments[r]}var i;var s={};var u=tt();var c=void 0;var m;var x=Br(o,2),T=x[0],p=x[1];if(T&&"init"in T){i=T;if(p){s=p}}else if(T){s=T}var g=function(){return Xo(void 0,void 0,void 0,function(){var D;var O;var A;return Zo(this,function(N){switch(N.label){case 0:O={event_type:(A=s.eventType)!==null&&A!==void 0?A:"Page View"};D=[{}];return[4,Gy()];case 1:return[2,(O.event_properties=Qo.apply(void 0,[Qo.apply(void 0,D.concat([N.sent()])),{page_domain:typeof location!=="undefined"&&location.hostname||"",page_location:typeof location!=="undefined"&&location.href||"",page_path:typeof location!=="undefined"&&location.pathname||"",page_title:typeof document!=="undefined"&&document.title||"",page_url:typeof location!=="undefined"&&location.href.split("?")[0]||""}]),O)]}})})};var w=function(){return typeof s.trackOn==="undefined"||typeof s.trackOn==="function"&&s.trackOn()};var h=typeof location!=="undefined"?location.href:null;var y=function(){return Xo(void 0,void 0,void 0,function(){var D,O,A,N,X;return Zo(this,function(oe){switch(oe.label){case 0:D=location.href;O=Ky(s.trackHistoryChanges,D,h||"")&&w();h=D;if(!O)return[3,4];c===null||c===void 0?void 0:c.log("Tracking page view event");if(!(i===null||i===void 0))return[3,1];A=void 0;return[3,3];case 1:X=(N=i).track;return[4,g()];case 2:A=X.apply(N,[oe.sent()]);oe.label=3;case 3:A;oe.label=4;case 4:return[2]}})})};var b=function(){void y()};var L={name:"page-view-tracking",type:ve.ENRICHMENT,setup:function(D,O){return Xo(void 0,void 0,void 0,function(){var A,N,X;var oe,Z;return Zo(this,function(fe){switch(fe.label){case 0:i=i!==null&&i!==void 0?i:O;if(!i){A=T?"Options":"undefined";D.loggerProvider.error("Argument of type '".concat(A,"' is not assignable to parameter of type 'BrowserClient'."));return[2]}c=D.loggerProvider;c.log("Installing @amplitude/plugin-page-view-tracking-browser");s.trackOn=((oe=D.attribution)===null||oe===void 0?void 0:oe.trackPageViews)?"attribution":s.trackOn;if(!O&&((Z=D.attribution)===null||Z===void 0?void 0:Z.trackPageViews)){c.warn("@amplitude/plugin-page-view-tracking-browser overrides page view tracking behavior defined in @amplitude/analytics-browser. Resolve by disabling page view tracking in @amplitude/analytics-browser.");D.attribution.trackPageViews=false}if(s.trackHistoryChanges&&u){u.addEventListener("popstate",b);m=u.history.pushState;u.history.pushState=new Proxy(u.history.pushState,{apply:function(de,Ee,We){var Ie=Br(We,3),ee=Ie[0],Xt=Ie[1],rt=Ie[2];de.apply(Ee,[ee,Xt,rt]);void y()}})}if(!w())return[3,2];c.log("Tracking page view event");X=(N=i).track;return[4,g()];case 1:X.apply(N,[fe.sent()]);fe.label=2;case 2:return[2]}})})},execute:function(D){return Xo(void 0,void 0,void 0,function(){var O;return Zo(this,function(A){switch(A.label){case 0:if(!(s.trackOn==="attribution"&&Hy(D)))return[3,2];c===null||c===void 0?void 0:c.log("Enriching campaign event to page view event with campaign parameters");return[4,g()];case 1:O=A.sent();D.event_type=O.event_type;D.event_properties=Qo(Qo({},D.event_properties),O.event_properties);A.label=2;case 2:return[2,D]}})})},teardown:function(){return Xo(void 0,void 0,void 0,function(){return Zo(this,function(D){if(u){u.removeEventListener("popstate",b);if(m){u.history.pushState=m}}return[2]})})}};L.__trackHistoryPageView=y;return L};var Gy=function(){return Xo(void 0,void 0,void 0,function(){var o;return Zo(this,function(r){switch(r.label){case 0:o=ig;return[4,new Mr().parse()];case 1:return[2,o.apply(void 0,[r.sent()])]}})})};var Hy=function(o){if(o.event_type==="$identify"&&o.user_properties){var r=o.user_properties;var i=r[Fe.SET]||{};var s=r[Fe.UNSET]||{};var u=os(os([],Br(Object.keys(i)),false),Br(Object.keys(s)),false);return Object.keys($o).every(function(c){return u.includes(c)})}return false};var Ky=function(o,r,i){switch(o){case"pathOnly":return r.split("?")[0]!==i.split("?")[0];default:return r!==i}};var qo=function(){qo=Object.assign||function o(r){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var c in i)if(Object.prototype.hasOwnProperty.call(i,c))r[c]=i[c]}return r};return qo.apply(this,arguments)};function ns(o,r){var i={};for(var s in o)if(Object.prototype.hasOwnProperty.call(o,s)&&r.indexOf(s)<0)i[s]=o[s];if(o!=null&&typeof Object.getOwnPropertySymbols==="function")for(var u=0,s=Object.getOwnPropertySymbols(o);u<s.length;u++){if(r.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(o,s[u]))i[s[u]]=o[s[u]]}return i}function is(o,r,i,s){function u(c){return c instanceof i?c:new i(function(m){m(c)})}return new(i||(i=Promise))(function(c,m){function x(g){try{p(s.next(g))}catch(w){m(w)}}function T(g){try{p(s["throw"](g))}catch(w){m(w)}}function p(g){g.done?c(g.value):u(g.value).then(x,T)}p((s=s.apply(o,r||[])).next())})}function as(o,r){var i={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},s,u,c,m;return m={next:x(0),"throw":x(1),"return":x(2)},typeof Symbol==="function"&&(m[Symbol.iterator]=function(){return this}),m;function x(p){return function(g){return T([p,g])}}function T(p){if(s)throw new TypeError("Generator is already executing.");while(m&&(m=0,p[0]&&(i=0)),i)try{if(s=1,u&&(c=p[0]&2?u["return"]:p[0]?u["throw"]||((c=u["return"])&&c.call(u),0):u.next)&&!(c=c.call(u,p[1])).done)return c;if(u=0,c)p=[p[0]&2,c.value];switch(p[0]){case 0:case 1:c=p;break;case 4:i.label++;return{value:p[1],done:false};case 5:i.label++;u=p[1];p=[0];continue;case 7:p=i.ops.pop();i.trys.pop();continue;default:if(!(c=i.trys,c=c.length>0&&c[c.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!c||p[1]>c[0]&&p[1]<c[3])){i.label=p[1];break}if(p[0]===6&&i.label<c[1]){i.label=c[1];c=p;break}if(c&&i.label<c[2]){i.label=c[2];i.ops.push(p);break}if(c[2])i.ops.pop();i.trys.pop();continue}p=r.call(o,i)}catch(g){p=[6,g];u=0}finally{s=c=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:true}}}function jr(o,r){var i=typeof Symbol==="function"&&o[Symbol.iterator];if(!i)return o;var s=i.call(o),u,c=[],m;try{while((r===void 0||r-- >0)&&!(u=s.next()).done)c.push(u.value)}catch(x){m={error:x}}finally{try{if(u&&!u.done&&(i=s["return"]))i.call(s)}finally{if(m)throw m.error}}return c}var sg=function(o,r,i){if(r===void 0){r=""}if(i===void 0){i=10}return[Ko,r,o.substring(0,i)].filter(Boolean).join("_")};var ag=function(o){var r=o.split(".");if(r.length<=2){return o}return r.slice(r.length-2,r.length).join(".")};var ug=function(o,r,i){var s;var u=o.referrer,c=o.referring_domain,m=ns(o,["referrer","referring_domain"]);var x=r||{},T=x.referrer,p=x.referring_domain,g=ns(x,["referrer","referring_domain"]);if(o.referring_domain&&((s=i.excludeReferrers)===null||s===void 0?void 0:s.includes(o.referring_domain))){return false}var w=JSON.stringify(m)!==JSON.stringify(g);var h=ag(c||"")!==ag(p||"");return!r||w||h};var cg=function(o,r){var i=qo(qo({},$o),o);var s=Object.entries(i).reduce(function(u,c){var m;var x=jr(c,2),T=x[0],p=x[1];u.setOnce("initial_".concat(T),(m=p!==null&&p!==void 0?p:r.initialEmptyValue)!==null&&m!==void 0?m:"EMPTY");if(p){return u.set(T,p)}return u.unset(T)},new jt);return Ur(s)};var ss=function(){var o=this;var r;var i=[];for(var s=0;s<arguments.length;s++){i[s]=arguments[s]}var u;var c={};var m=jr(i,2),x=m[0],T=m[1];if(x&&"init"in x){u=x;if(T){c=T}}else if(x){c=x}var p=(r=c.excludeReferrers)!==null&&r!==void 0?r:[];if(typeof location!=="undefined"){p.unshift(location.hostname)}c=qo(qo({disabled:false,initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:false},c),{excludeReferrers:p});var g={name:"web-attribution",type:ve.BEFORE,setup:function(w,h){var y;return is(this,void 0,void 0,function(){var b,L,D,O,A,N,X,oe;return as(this,function(Z){switch(Z.label){case 0:u=u!==null&&u!==void 0?u:h;if(!u){b=x?"Options":"undefined";w.loggerProvider.error("Argument of type '".concat(b,"' is not assignable to parameter of type 'BrowserClient'."));return[2]}if(c.disabled){w.loggerProvider.log("@amplitude/plugin-web-attribution-browser is disabled. Attribution is not tracked.");return[2]}w.loggerProvider.log("Installing @amplitude/plugin-web-attribution-browser.");if(!h&&!((y=w.attribution)===null||y===void 0?void 0:y.disabled)){w.loggerProvider.warn("@amplitude/plugin-web-attribution-browser overrides web attribution behavior defined in @amplitude/analytics-browser. Resolve by disabling web attribution tracking in @amplitude/analytics-browser.");w.attribution={disabled:true}}L=w.cookieStorage;D=sg(w.apiKey,"MKTG");return[4,Promise.all([new Mr().parse(),L.get(D)])];case 1:O=jr.apply(void 0,[Z.sent(),2]),A=O[0],N=O[1];X=this.__pluginEnabledOverride;if(X!==null&&X!==void 0?X:ug(A,N,c)){if(c.resetSessionOnNewCampaign){u.setSessionId(Date.now());w.loggerProvider.log("Created a new session for new campaign.")}w.loggerProvider.log("Tracking attribution.");oe=cg(A,c);u.track(oe);void L.set(D,A)}return[2]}})})},execute:function(w){return is(o,void 0,void 0,function(){return as(this,function(h){return[2,w]})})}};g.__pluginEnabledOverride=void 0;return g};var Kn=1e3;var us=function(){function o(r){this.loggerProvider=r===null||r===void 0?void 0:r.loggerProvider}o.prototype.isEnabled=function(){return ce(this,void 0,void 0,function(){var r,i,s,u,c;return le(this,function(m){switch(m.label){case 0:if(!tt()){return[2,false]}r=String(Date.now());i=new o;s="AMP_TEST";m.label=1;case 1:m.trys.push([1,4,5,7]);return[4,i.set(s,r)];case 2:m.sent();return[4,i.get(s)];case 3:u=m.sent();return[2,u===r];case 4:c=m.sent();return[2,false];case 5:return[4,i.remove(s)];case 6:m.sent();return[7];case 7:return[2]}})})};o.prototype.get=function(r){return ce(this,void 0,void 0,function(){var i,s;return le(this,function(u){switch(u.label){case 0:u.trys.push([0,2,,3]);return[4,this.getRaw(r)];case 1:i=u.sent();if(!i){return[2,void 0]}return[2,JSON.parse(i)];case 2:s=u.sent();return[2,void 0];case 3:return[2]}})})};o.prototype.getRaw=function(r){var i;return ce(this,void 0,void 0,function(){return le(this,function(s){return[2,((i=tt())===null||i===void 0?void 0:i.localStorage.getItem(r))||void 0]})})};o.prototype.set=function(r,i){var s,u;return ce(this,void 0,void 0,function(){var c,m,x;return le(this,function(T){c=Array.isArray(i)&&i.length>Kn;try{m=c?JSON.stringify(i.slice(0,Kn)):JSON.stringify(i);(s=tt())===null||s===void 0?void 0:s.localStorage.setItem(r,m)}catch(p){}if(c){x=i.length-Kn;(u=this.loggerProvider)===null||u===void 0?void 0:u.error("Failed to save ".concat(x," events because the queue length exceeded ").concat(Kn,"."))}return[2]})})};o.prototype.remove=function(r){var i;return ce(this,void 0,void 0,function(){return le(this,function(s){try{(i=tt())===null||i===void 0?void 0:i.localStorage.removeItem(r)}catch(u){}return[2]})})};o.prototype.reset=function(){var r;return ce(this,void 0,void 0,function(){return le(this,function(i){try{(r=tt())===null||r===void 0?void 0:r.localStorage.clear()}catch(s){}return[2]})})};return o}();var lg=function(o){Do(r,o);function r(){var i=o!==null&&o.apply(this,arguments)||this;i.state={done:4};return i}r.prototype.send=function(i,s){return ce(this,void 0,void 0,function(){var u=this;return le(this,function(c){return[2,new Promise(function(m,x){if(typeof XMLHttpRequest==="undefined"){x(new Error("XHRTransport is not supported."))}var T=new XMLHttpRequest;T.open("POST",i,true);T.onreadystatechange=function(){if(T.readyState===u.state.done){try{var p=T.responseText;var g=JSON.parse(p);var w=u.buildResponse(g);m(w)}catch(h){x(h)}}};T.setRequestHeader("Content-Type","application/json");T.setRequestHeader("Accept","*/*");T.send(JSON.stringify(s))})]})})};return r}(Yo);var gg=function(o){Do(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}r.prototype.send=function(i,s){return ce(this,void 0,void 0,function(){var u=this;return le(this,function(c){return[2,new Promise(function(m,x){var T=tt();if(!(T===null||T===void 0?void 0:T.navigator.sendBeacon)){throw new Error("SendBeaconTransport is not supported")}try{var p=JSON.stringify(s);var g=T.navigator.sendBeacon(i,JSON.stringify(s));if(g){return m(u.buildResponse({code:200,events_ingested:s.events.length,payload_size_bytes:p.length,server_upload_time:Date.now()}))}return m(u.buildResponse({code:500}))}catch(w){x(w)}})]})})};return r}(Yo);var hr=function(){var o=new Vn;var r={deviceManufacturer:true,deviceModel:true,ipAddress:true,language:true,osName:true,osVersion:true,platform:true};return{cookieExpiration:365,cookieSameSite:"Lax",cookieSecure:false,cookieStorage:o,cookieUpgrade:true,disableCookies:false,domain:"",sessionTimeout:30*60*1e3,trackingOptions:r,transportProvider:new ts}};var fg=function(o){Do(r,o);function r(i,s){var u=this;var c,m,x,T,p,g,w,h,y;var b=hr();u=o.call(this,he(he({flushIntervalMillis:1e3,flushMaxRetries:5,flushQueueSize:30,transportProvider:b.transportProvider},s),{apiKey:i}))||this;u._optOut=false;u.cookieStorage=(c=s===null||s===void 0?void 0:s.cookieStorage)!==null&&c!==void 0?c:b.cookieStorage;u.deviceId=s===null||s===void 0?void 0:s.deviceId;u.lastEventId=s===null||s===void 0?void 0:s.lastEventId;u.lastEventTime=s===null||s===void 0?void 0:s.lastEventTime;u.optOut=Boolean(s===null||s===void 0?void 0:s.optOut);u.sessionId=s===null||s===void 0?void 0:s.sessionId;u.userId=s===null||s===void 0?void 0:s.userId;u.appVersion=s===null||s===void 0?void 0:s.appVersion;u.attribution=s===null||s===void 0?void 0:s.attribution;u.cookieExpiration=(m=s===null||s===void 0?void 0:s.cookieExpiration)!==null&&m!==void 0?m:b.cookieExpiration;u.cookieSameSite=(x=s===null||s===void 0?void 0:s.cookieSameSite)!==null&&x!==void 0?x:b.cookieSameSite;u.cookieSecure=(T=s===null||s===void 0?void 0:s.cookieSecure)!==null&&T!==void 0?T:b.cookieSecure;u.cookieUpgrade=(p=s===null||s===void 0?void 0:s.cookieUpgrade)!==null&&p!==void 0?p:b.cookieUpgrade;u.defaultTracking=s===null||s===void 0?void 0:s.defaultTracking;u.disableCookies=(g=s===null||s===void 0?void 0:s.disableCookies)!==null&&g!==void 0?g:b.disableCookies;u.defaultTracking=s===null||s===void 0?void 0:s.defaultTracking;u.domain=(w=s===null||s===void 0?void 0:s.domain)!==null&&w!==void 0?w:b.domain;u.partnerId=s===null||s===void 0?void 0:s.partnerId;u.sessionTimeout=(h=s===null||s===void 0?void 0:s.sessionTimeout)!==null&&h!==void 0?h:b.sessionTimeout;u.trackingOptions=(y=s===null||s===void 0?void 0:s.trackingOptions)!==null&&y!==void 0?y:b.trackingOptions;return u}Object.defineProperty(r.prototype,"deviceId",{get:function(){return this._deviceId},set:function(i){if(this._deviceId!==i){this._deviceId=i;this.updateStorage()}},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"userId",{get:function(){return this._userId},set:function(i){if(this._userId!==i){this._userId=i;this.updateStorage()}},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"sessionId",{get:function(){return this._sessionId},set:function(i){if(this._sessionId!==i){this._sessionId=i;this.updateStorage()}},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"optOut",{get:function(){return this._optOut},set:function(i){if(this._optOut!==i){this._optOut=i;this.updateStorage()}},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(i){if(this._lastEventTime!==i){this._lastEventTime=i;this.updateStorage()}},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(i){if(this._lastEventId!==i){this._lastEventId=i;this.updateStorage()}},enumerable:false,configurable:true});r.prototype.updateStorage=function(){var i;var s={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId};void((i=this.cookieStorage)===null||i===void 0?void 0:i.set(Fr(this.apiKey),s))};return r}(Aa);var dg=function(o,r){return ce(void 0,void 0,void 0,function(){var i,s,u,c,m,x,T,p,g,w,h,y;var b;var L,D;return le(this,function(O){switch(O.label){case 0:i=hr();s=(L=r===null||r===void 0?void 0:r.deviceId)!==null&&L!==void 0?L:Co();u=r===null||r===void 0?void 0:r.lastEventId;c=r===null||r===void 0?void 0:r.lastEventTime;m=r===null||r===void 0?void 0:r.optOut;x=r===null||r===void 0?void 0:r.sessionId;T=r===null||r===void 0?void 0:r.userId;p=r===null||r===void 0?void 0:r.cookieStorage;g=r===null||r===void 0?void 0:r.domain;w=fg.bind;h=[void 0,o];y=[he({},r)];b={cookieStorage:p,deviceId:s,domain:g,lastEventId:u,lastEventTime:c,optOut:m,sessionId:x};return[4,$y(r)];case 1:return[2,new(w.apply(fg,h.concat([he.apply(void 0,y.concat([(b.storageProvider=O.sent(),b.trackingOptions=he(he({},i.trackingOptions),r===null||r===void 0?void 0:r.trackingOptions),b.transportProvider=(D=r===null||r===void 0?void 0:r.transportProvider)!==null&&D!==void 0?D:cs(r===null||r===void 0?void 0:r.transport),b.userId=T,b)]))])))]}})})};var Yn=function(o,r){if(r===void 0){r=hr()}return ce(void 0,void 0,void 0,function(){var i,s,u;return le(this,function(c){switch(c.label){case 0:i=he(he({},r),o);s=o===null||o===void 0?void 0:o.cookieStorage;u=!s;if(u)return[3,2];return[4,s.isEnabled()];case 1:u=!c.sent();c.label=2;case 2:if(u){return[2,Yy(i)]}return[2,s]}})})};var Yy=function(o){return ce(void 0,void 0,void 0,function(){var r,i;return le(this,function(s){switch(s.label){case 0:r=new zr({domain:o.domain,expirationDays:o.cookieExpiration,sameSite:o.cookieSameSite,secure:o.cookieSecure});i=o.disableCookies;if(i)return[3,2];return[4,r.isEnabled()];case 1:i=!s.sent();s.label=2;case 2:if(!i)return[3,4];r=new us;return[4,r.isEnabled()];case 3:if(!s.sent()){r=new Vn}s.label=4;case 4:return[2,r]}})})};var $y=function(o){return ce(void 0,void 0,void 0,function(){var r,i,s,u,c,m,x;var T,p;return le(this,function(g){switch(g.label){case 0:r=o&&Object.prototype.hasOwnProperty.call(o,"storageProvider");i=o&&o.loggerProvider;if(!(!r||o.storageProvider))return[3,9];g.label=1;case 1:g.trys.push([1,7,8,9]);s=Yl([o===null||o===void 0?void 0:o.storageProvider,new us({loggerProvider:i})]),u=s.next();g.label=2;case 2:if(!!u.done)return[3,6];c=u.value;m=c;if(!m)return[3,4];return[4,c.isEnabled()];case 3:m=g.sent();g.label=4;case 4:if(m){return[2,c]}g.label=5;case 5:u=s.next();return[3,2];case 6:return[3,9];case 7:x=g.sent();T={error:x};return[3,9];case 8:try{if(u&&!u.done&&(p=s.return))p.call(s)}finally{if(T)throw T.error}return[7];case 9:return[2,void 0]}})})};var cs=function(o){if(o===mr.XHR){return new lg}if(o===mr.SendBeacon){return new gg}return hr().transportProvider};var pg=function(o){return ce(void 0,void 0,void 0,function(){var r,i,s,u,c,c,m,x,T,p;return le(this,function(g){switch(g.label){case 0:return[4,new zr().isEnabled()];case 1:if(!g.sent()||!o&&typeof location==="undefined"){return[2,""]}r=o!==null&&o!==void 0?o:location.hostname;i=r.split(".");s=[];u="AMP_TLDTEST";for(c=i.length-2;c>=0;--c){s.push(i.slice(c).join("."))}c=0;g.label=2;case 2:if(!(c<s.length))return[3,7];m=s[c];x={domain:"."+m};T=new zr(x);return[4,T.set(u,1)];case 3:g.sent();return[4,T.get(u)];case 4:p=g.sent();if(!p)return[3,6];return[4,T.remove(u)];case 5:g.sent();return[2,"."+m];case 6:c++;return[3,2];case 7:return[2,""]}})})};var Xe="[Amplitude]";var $n="".concat(Xe," Page Viewed");var ls="".concat(Xe," Form Started");var mg="".concat(Xe," Form Submitted");var wg="".concat(Xe," File Downloaded");var gs="session_start";var fs="session_end";var hg="".concat(Xe," File Extension");var vg="".concat(Xe," File Name");var yg="".concat(Xe," Link ID");var _g="".concat(Xe," Link Text");var bg="".concat(Xe," Link URL");var Qn="".concat(Xe," Form ID");var Xn="".concat(Xe," Form Name");var Zn="".concat(Xe," Form Destination");var xg=function(o,r){return ce(void 0,void 0,void 0,function(){var i,s,u,c,m,x,T,p,g,w;var h;return le(this,function(y){switch(y.label){case 0:return[4,Yn(r)];case 1:i=y.sent();s=Ya(o);return[4,i.getRaw(s)];case 2:u=y.sent();if(!u){return[2,{optOut:false}]}if(!((h=r.cookieUpgrade)!==null&&h!==void 0?h:hr().cookieUpgrade))return[3,4];return[4,i.remove(s)];case 3:y.sent();y.label=4;case 4:c=Gn(u.split("."),6),m=c[0],x=c[1],T=c[2],p=c[3],g=c[4],w=c[5];return[2,{deviceId:m,userId:Qy(x),sessionId:ds(p),lastEventId:ds(w),lastEventTime:ds(g),optOut:Boolean(T)}]}})})};var ds=function(o){var r=parseInt(o,32);if(isNaN(r)){return void 0}return r};var Qy=function(o){if(!atob||!escape||!o){return void 0}try{return decodeURIComponent(escape(atob(o)))}catch(r){return void 0}};var Tg=Mn(Eg());var Sg="1.13.0";var Xy="Web";var Zy="$remote";var Ig=function(){function o(){this.name="context";this.type=ve.BEFORE;this.library="amplitude-ts/".concat(Sg);if(typeof navigator!=="undefined"){this.userAgent=navigator.userAgent}this.uaResult=new Tg.default(this.userAgent).getResult()}o.prototype.setup=function(r){this.config=r;return Promise.resolve(void 0)};o.prototype.execute=function(r){var i,s;return ce(this,void 0,void 0,function(){var u,c,m,x,T,p,g,w;return le(this,function(h){u=new Date().getTime();c=this.uaResult.browser.name;m=this.uaResult.browser.version;x=this.uaResult.device.model||this.uaResult.os.name;T=this.uaResult.device.vendor;p=(i=this.config.lastEventId)!==null&&i!==void 0?i:-1;g=(s=r.event_id)!==null&&s!==void 0?s:p+1;this.config.lastEventId=g;if(!r.time){this.config.lastEventTime=u}w=he(he(he(he(he(he(he(he(he(he(he(he({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:u},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:Xy}),this.config.trackingOptions.osName&&{os_name:c}),this.config.trackingOptions.osVersion&&{os_version:m}),this.config.trackingOptions.deviceManufacturer&&{device_manufacturer:T}),this.config.trackingOptions.deviceModel&&{device_model:x}),this.config.trackingOptions.language&&{language:Ja()}),this.config.trackingOptions.ipAddress&&{ip:Zy}),{insert_id:Co(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),r),{event_id:g,library:this.library,user_agent:this.userAgent});return[2,w]})})};return o}();var Jy={page_domain:"".concat(Xe," Page Domain"),page_location:"".concat(Xe," Page Location"),page_path:"".concat(Xe," Page Path"),page_title:"".concat(Xe," Page Title"),page_url:"".concat(Xe," Page URL")};var Og=function(){var o="@amplitude/plugin-default-page-view-event-enrichment-browser";var r=ve.ENRICHMENT;var i=function(){return ce(void 0,void 0,void 0,function(){return le(this,function(u){return[2,void 0]})})};var s=function(u){return ce(void 0,void 0,void 0,function(){return le(this,function(c){if(u.event_type===$n&&u.event_properties){u.event_properties=Object.entries(u.event_properties).reduce(function(m,x){var T=Gn(x,2),p=T[0],g=T[1];var w=Jy[p];if(w){m[w]=g}else{m[p]=g}return m},{})}return[2,u]})})};return{name:o,type:r,setup:i,execute:s}};var kg=function(){var o;var r=[];var i=function(p,g,w){p.addEventListener(g,w);r.push({element:p,type:g,handler:w})};var s=function(){r.forEach(function(p){var g=p.element,w=p.type,h=p.handler;g===null||g===void 0?void 0:g.removeEventListener(w,h)});r=[]};var u="@amplitude/plugin-file-download-tracking-browser";var c=ve.ENRICHMENT;var m=function(p,g){return ce(void 0,void 0,void 0,function(){var w,h,y;return le(this,function(b){if(!g){p.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return[2]}if(typeof document==="undefined"){return[2]}w=function(L){var D;try{D=new URL(L.href,window.location.href)}catch(N){return}var O=h.exec(D.href);var A=O===null||O===void 0?void 0:O[1];if(A){i(L,"click",function(){var N;if(A){g.track(wg,(N={},N[hg]=A,N[vg]=D.pathname,N[yg]=L.id,N[_g]=L.text,N[bg]=L.href,N))}})}};h=/\\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)$/;y=Array.from(document.getElementsByTagName("a"));y.forEach(w);if(typeof MutationObserver!=="undefined"){o=new MutationObserver(function(L){L.forEach(function(D){D.addedNodes.forEach(function(O){if(O.nodeName==="A"){w(O)}if("querySelectorAll"in O&&typeof O.querySelectorAll==="function"){Array.from(O.querySelectorAll("a")).map(w)}})})});o.observe(document.body,{subtree:true,childList:true})}return[2]})})};var x=function(p){return ce(void 0,void 0,void 0,function(){return le(this,function(g){return[2,p]})})};var T=function(){return ce(void 0,void 0,void 0,function(){return le(this,function(p){o===null||o===void 0?void 0:o.disconnect();s();return[2]})})};return{name:u,type:c,setup:m,execute:x,teardown:T}};var Ag=function(){var o;var r=[];var i=function(p,g,w){p.addEventListener(g,w);r.push({element:p,type:g,handler:w})};var s=function(){r.forEach(function(p){var g=p.element,w=p.type,h=p.handler;g===null||g===void 0?void 0:g.removeEventListener(w,h)});r=[]};var u="@amplitude/plugin-form-interaction-tracking-browser";var c=ve.ENRICHMENT;var m=function(p,g){return ce(void 0,void 0,void 0,function(){var w,h;return le(this,function(y){if(!g){p.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return[2]}if(typeof document==="undefined"){return[2]}w=function(b){var L=false;i(b,"change",function(){var D;if(!L){g.track(ls,(D={},D[Qn]=b.id,D[Xn]=b.name,D[Zn]=b.action,D))}L=true});i(b,"submit",function(){var D,O;if(!L){g.track(ls,(D={},D[Qn]=b.id,D[Xn]=b.name,D[Zn]=b.action,D))}g.track(mg,(O={},O[Qn]=b.id,O[Xn]=b.name,O[Zn]=b.action,O));L=false})};h=Array.from(document.getElementsByTagName("form"));h.forEach(w);if(typeof MutationObserver!=="undefined"){o=new MutationObserver(function(b){b.forEach(function(L){L.addedNodes.forEach(function(D){if(D.nodeName==="FORM"){w(D)}if("querySelectorAll"in D&&typeof D.querySelectorAll==="function"){Array.from(D.querySelectorAll("form")).map(w)}})})});o.observe(document.body,{subtree:true,childList:true})}return[2]})})};var x=function(p){return ce(void 0,void 0,void 0,function(){return le(this,function(g){return[2,p]})})};var T=function(){return ce(void 0,void 0,void 0,function(){return le(this,function(p){o===null||o===void 0?void 0:o.disconnect();s();return[2]})})};return{name:u,type:c,setup:m,execute:x,teardown:T}};var ei=function(o,r){for(var i=0;i<r.length;i++){var s=r[i],u=s.name,c=s.args,m=s.resolve;var x=o&&o[u];if(typeof x==="function"){var T=x.apply(o,c);if(typeof m==="function"){m(T===null||T===void 0?void 0:T.promise)}}}return o};var ti=function(o){var r=o;return r&&r._q!==void 0};var Pg=function(o){Do(r,o);function r(){return o!==null&&o.apply(this,arguments)||this}r.prototype.init=function(i,s,u){if(i===void 0){i=""}return yt(this._init(he(he({},u),{userId:s,apiKey:i})))};r.prototype._init=function(i){var s,u,c,m,x,T,p,g,w,h,y,b,L,D,O,A,N,X,oe,Z;return ce(this,void 0,void 0,function(){var fe,de,Ee,We,Ie,ee,Xt,rt,Be,Ze,Ct,at,Ve,ft,xt,Vt,je,dt;var Gt=this;return le(this,function(ge){switch(ge.label){case 0:if(this.initializing){return[2]}this.initializing=true;fe=i;if(!i.disableCookies)return[3,1];de="";return[3,5];case 1:if(!((s=i.domain)!==null&&s!==void 0))return[3,2];Ee=s;return[3,4];case 2:return[4,pg()];case 3:Ee=ge.sent();ge.label=4;case 4:de=Ee;ge.label=5;case 5:fe.domain=de;return[4,xg(i.apiKey,i)];case 6:We=ge.sent();return[4,Yn(i)];case 7:Ie=ge.sent();return[4,Ie.get(Fr(i.apiKey))];case 8:ee=ge.sent();Xt=wr();rt=(m=(c=(u=i.deviceId)!==null&&u!==void 0?u:Xt.deviceId)!==null&&c!==void 0?c:ee===null||ee===void 0?void 0:ee.deviceId)!==null&&m!==void 0?m:We.deviceId;Be=(x=ee===null||ee===void 0?void 0:ee.sessionId)!==null&&x!==void 0?x:We.sessionId;Ze=(p=(T=i.optOut)!==null&&T!==void 0?T:ee===null||ee===void 0?void 0:ee.optOut)!==null&&p!==void 0?p:We.optOut;Ct=(g=ee===null||ee===void 0?void 0:ee.lastEventId)!==null&&g!==void 0?g:We.lastEventId;at=(w=ee===null||ee===void 0?void 0:ee.lastEventTime)!==null&&w!==void 0?w:We.lastEventTime;Ve=(y=(h=i.userId)!==null&&h!==void 0?h:ee===null||ee===void 0?void 0:ee.userId)!==null&&y!==void 0?y:We.userId;this.previousSessionDeviceId=(b=ee===null||ee===void 0?void 0:ee.deviceId)!==null&&b!==void 0?b:We.deviceId;this.previousSessionUserId=(L=ee===null||ee===void 0?void 0:ee.userId)!==null&&L!==void 0?L:We.userId;return[4,dg(i.apiKey,he(he({},i),{deviceId:rt,sessionId:Be,optOut:Ze,lastEventId:Ct,lastEventTime:at,userId:Ve,cookieStorage:Ie}))];case 9:ft=ge.sent();return[4,o.prototype._init.call(this,ft)];case 10:ge.sent();xt=false;if(!this.config.lastEventTime||!this.config.sessionId||this.config.lastEventTime&&Date.now()-this.config.lastEventTime>this.config.sessionTimeout){this.setSessionId((O=(D=i.sessionId)!==null&&D!==void 0?D:this.config.sessionId)!==null&&O!==void 0?O:Date.now());xt=true}Vt=ho(i.instanceName);Vt.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId});return[4,this.add(new Ra).promise];case 11:ge.sent();return[4,this.add(new Ig).promise];case 12:ge.sent();return[4,this.add(new es).promise];case 13:ge.sent();if(!$a(this.config.defaultTracking))return[3,15];return[4,this.add(kg()).promise];case 14:ge.sent();ge.label=15;case 15:if(!Qa(this.config.defaultTracking))return[3,17];return[4,this.add(Ag()).promise];case 16:ge.sent();ge.label=17;case 17:if(!!((A=this.config.attribution)===null||A===void 0?void 0:A.disabled))return[3,19];je=ss({excludeReferrers:(N=this.config.attribution)===null||N===void 0?void 0:N.excludeReferrers,initialEmptyValue:(X=this.config.attribution)===null||X===void 0?void 0:X.initialEmptyValue,resetSessionOnNewCampaign:(oe=this.config.attribution)===null||oe===void 0?void 0:oe.resetSessionOnNewCampaign});je.__pluginEnabledOverride=xt||((Z=this.config.attribution)===null||Z===void 0?void 0:Z.trackNewCampaigns)?void 0:false;return[4,this.add(je).promise];case 18:ge.sent();ge.label=19;case 19:dt=Za(this.config);dt.eventType=dt.eventType||$n;return[4,this.add(rs(dt)).promise];case 20:ge.sent();return[4,this.add(Og()).promise];case 21:ge.sent();this.initializing=false;return[4,this.runQueuedFunctions("dispatchQ")];case 22:ge.sent();Vt.eventBridge.setEventReceiver(function(Et){void Gt.track(Et.eventType,Et.eventProperties)});return[2]}})})};r.prototype.getUserId=function(){var i;return(i=this.config)===null||i===void 0?void 0:i.userId};r.prototype.setUserId=function(i){if(!this.config){this.q.push(this.setUserId.bind(this,i));return}if(i!==this.config.userId||i===void 0){this.config.userId=i;Da(i,this.config.instanceName)}};r.prototype.getDeviceId=function(){var i;return(i=this.config)===null||i===void 0?void 0:i.deviceId};r.prototype.setDeviceId=function(i){if(!this.config){this.q.push(this.setDeviceId.bind(this,i));return}this.config.deviceId=i;La(i,this.config.instanceName)};r.prototype.setOptOut=function(i){qa(i,this.config.instanceName);o.prototype.setOptOut.call(this,i)};r.prototype.reset=function(){this.setDeviceId(Co());this.setUserId(void 0)};r.prototype.getSessionId=function(){var i;return(i=this.config)===null||i===void 0?void 0:i.sessionId};r.prototype.setSessionId=function(i){var s;if(!this.config){this.q.push(this.setSessionId.bind(this,i));return}if(i===this.config.sessionId){return}var u=this.getSessionId();var c=this.config.lastEventTime;var m=(s=this.config.lastEventId)!==null&&s!==void 0?s:-1;this.config.sessionId=i;this.config.lastEventTime=void 0;if(Xa(this.config.defaultTracking)){if(u&&c){this.track(fs,void 0,{device_id:this.previousSessionDeviceId,event_id:++m,session_id:u,time:c+1,user_id:this.previousSessionUserId})}this.config.lastEventTime=this.config.sessionId;this.track(gs,void 0,{event_id:++m,session_id:this.config.sessionId,time:this.config.lastEventTime})}this.previousSessionDeviceId=this.config.deviceId;this.previousSessionUserId=this.config.userId};r.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()};r.prototype.setTransport=function(i){if(!this.config){this.q.push(this.setTransport.bind(this,i));return}this.config.transportProvider=cs(i)};r.prototype.identify=function(i,s){if(ti(i)){var u=i._q;i._q=[];i=ei(new jt,u)}if(s===null||s===void 0?void 0:s.user_id){this.setUserId(s.user_id)}if(s===null||s===void 0?void 0:s.device_id){this.setDeviceId(s.device_id)}return o.prototype.identify.call(this,i,s)};r.prototype.groupIdentify=function(i,s,u,c){if(ti(u)){var m=u._q;u._q=[];u=ei(new jt,m)}return o.prototype.groupIdentify.call(this,i,s,u,c)};r.prototype.revenue=function(i,s){if(ti(i)){var u=i._q;i._q=[];i=ei(new zn,u)}return o.prototype.revenue.call(this,i,s)};r.prototype.process=function(i){return ce(this,void 0,void 0,function(){var s,u,c;return le(this,function(m){s=Date.now();u=this.config.lastEventTime||Date.now();c=s-u;if(i.event_type!==gs&&i.event_type!==fs&&(!i.session_id||i.session_id===this.getSessionId())&&c>this.config.sessionTimeout){this.setSessionId(s)}return[2,o.prototype.process.call(this,i)]})})};return r}(ka);var oi=function(){var o=new Pg;return{init:Ce(o.init.bind(o),"init",Pe(o),Re(o,["config"])),add:Ce(o.add.bind(o),"add",Pe(o),Re(o,["config.apiKey","timeline.plugins"])),remove:Ce(o.remove.bind(o),"remove",Pe(o),Re(o,["config.apiKey","timeline.plugins"])),track:Ce(o.track.bind(o),"track",Pe(o),Re(o,["config.apiKey","timeline.queue.length"])),logEvent:Ce(o.logEvent.bind(o),"logEvent",Pe(o),Re(o,["config.apiKey","timeline.queue.length"])),identify:Ce(o.identify.bind(o),"identify",Pe(o),Re(o,["config.apiKey","timeline.queue.length"])),groupIdentify:Ce(o.groupIdentify.bind(o),"groupIdentify",Pe(o),Re(o,["config.apiKey","timeline.queue.length"])),setGroup:Ce(o.setGroup.bind(o),"setGroup",Pe(o),Re(o,["config.apiKey","timeline.queue.length"])),revenue:Ce(o.revenue.bind(o),"revenue",Pe(o),Re(o,["config.apiKey","timeline.queue.length"])),flush:Ce(o.flush.bind(o),"flush",Pe(o),Re(o,["config.apiKey","timeline.queue.length"])),getUserId:Ce(o.getUserId.bind(o),"getUserId",Pe(o),Re(o,["config","config.userId"])),setUserId:Ce(o.setUserId.bind(o),"setUserId",Pe(o),Re(o,["config","config.userId"])),getDeviceId:Ce(o.getDeviceId.bind(o),"getDeviceId",Pe(o),Re(o,["config","config.deviceId"])),setDeviceId:Ce(o.setDeviceId.bind(o),"setDeviceId",Pe(o),Re(o,["config","config.deviceId"])),reset:Ce(o.reset.bind(o),"reset",Pe(o),Re(o,["config","config.userId","config.deviceId"])),getSessionId:Ce(o.getSessionId.bind(o),"getSessionId",Pe(o),Re(o,["config"])),setSessionId:Ce(o.setSessionId.bind(o),"setSessionId",Pe(o),Re(o,["config"])),extendSession:Ce(o.extendSession.bind(o),"extendSession",Pe(o),Re(o,["config"])),setOptOut:Ce(o.setOptOut.bind(o),"setOptOut",Pe(o),Re(o,["config"])),setTransport:Ce(o.setTransport.bind(o),"setTransport",Pe(o),Re(o,["config"]))}};var ze=oi();var cE=ze.add;var lE=ze.extendSession;var gE=ze.flush;var fE=ze.getDeviceId;var dE=ze.getSessionId;var pE=ze.getUserId;var mE=ze.groupIdentify;var wE=ze.identify;var hE=ze.init;var vE=ze.logEvent;var yE=ze.remove;var _E=ze.reset;var bE=ze.revenue;var xE=ze.setDeviceId;var EE=ze.setGroup;var SE=ze.setOptOut;var TE=ze.setSessionId;var IE=ze.setTransport;var OE=ze.setUserId;var kE=ze.track;var Cs={production:"2532be1b0436a18cb938b21fc7fa9faf",development:"505fe4ab68b1153d294164683402fccb"};var t_=Object.assign({plan:{version:"13",branch:"main",source:"web",versionId:"d34b078f-b5b3-4362-b66a-9527b9cacff6"}},{ingestionMetadata:{sourceName:"browser-typescript-ampli",sourceVersion:"2.0.0"}});var ps=class{constructor(){this.event_type="api key copied"}};var ms=class{constructor(r){this.event_properties=r;this.event_type="complete onboarding";this.event_properties=r}};var ws=class{constructor(r){this.event_properties=r;this.event_type="environment opened";this.event_properties=r}};var hs=class{constructor(r){this.event_properties=r;this.event_type="error";this.event_properties=r}};var vs=class{constructor(r){this.event_properties=r;this.event_type="impression";this.event_properties=r}};var ys=class{constructor(r){this.event_properties=r;this.event_type="insert block";this.event_properties=r}};var _s=class{constructor(r){this.event_properties=r;this.event_type="insert custom component";this.event_properties=r}};var bs=class{constructor(r){this.event_properties=r;this.event_type="integration failed";this.event_properties=r}};var xs=class{constructor(r){this.event_properties=r;this.event_type="interaction";this.event_properties=r}};var Es=class{constructor(r){this.event_properties=r;this.event_type="model saved";this.event_properties=r}};var Ss=class{constructor(r){this.event_properties=r;this.event_type="page viewed";this.event_properties=r}};var Ts=class{constructor(r){this.event_properties=r;this.event_type="preview error";this.event_properties=r}};var Is=class{constructor(r){this.event_properties=r;this.event_type="site integrated";this.event_properties=r}};var Os=class{constructor(r){this.event_properties=r;this.event_type="start web import";this.event_properties=r}};var ks=class{constructor(r){this.event_properties=r;this.event_type="subscribe clicked";this.event_properties=r}};var As=class{constructor(r){this.event_properties=r;this.event_type="subscription options viewed";this.event_properties=r}};var Ps=class{constructor(r){this.event_properties=r;this.event_type="user invited";this.event_properties=r}};var Jo=()=>({promise:Promise.resolve()});var Rs=class{constructor(){this.disabled=false}get client(){this.isInitializedAndEnabled();return this.amplitude}get isLoaded(){return this.amplitude!=null}isInitializedAndEnabled(){if(!this.amplitude){console.error("ERROR: Ampli is not yet initialized. Have you called ampli.load() on app start?");return false}return!this.disabled}load(r){var i;this.disabled=(i=r.disabled)!==null&&i!==void 0?i:false;if(this.amplitude){console.warn("WARNING: Ampli is already intialized. Ampli.load() should be called once at application startup.");return Jo()}let s=null;if(r.client&&"apiKey"in r.client){s=r.client.apiKey}else if("environment"in r){s=Cs[r.environment]}if(r.client&&"instance"in r.client){this.amplitude=r.client.instance}else if(s){this.amplitude=oi();const u=r.client&&"configuration"in r.client?r.client.configuration:{};return this.amplitude.init(s,void 0,Object.assign(Object.assign({},t_),u))}else{console.error("ERROR: ampli.load() requires 'environment', 'client.apiKey', or 'client.instance'")}return Jo()}identify(r,i,s){if(!this.isInitializedAndEnabled()){return Jo()}if(r){s=Object.assign(Object.assign({},s),{user_id:r})}const u=new jt;const c=i;if(c!=null){for(const[m,x]of Object.entries(c)){u.set(m,x)}}return this.amplitude.identify(u,s)}setGroup(r,i,s){if(!this.isInitializedAndEnabled()){return Jo()}return this.amplitude.setGroup(r,i,s)}groupIdentify(r,i,s,u){if(!this.isInitializedAndEnabled()){return Jo()}const c=new jt;const m=s;if(m!=null){for(const[x,T]of Object.entries(m)){c.set(x,T)}}return this.amplitude.groupIdentify(r,i,c,u)}flush(){if(!this.isInitializedAndEnabled()){return Jo()}return this.amplitude.flush()}track(r,i){if(!this.isInitializedAndEnabled()){return Jo()}return this.amplitude.track(r,void 0,i)}apiKeyCopied(r){return this.track(new ps,r)}completeOnboarding(r,i){return this.track(new ms(r),i)}environmentOpened(r,i){return this.track(new ws(r),i)}error(r,i){return this.track(new hs(r),i)}impression(r,i){return this.track(new vs(r),i)}insertBlock(r,i){return this.track(new ys(r),i)}insertCustomComponent(r,i){return this.track(new _s(r),i)}integrationFailed(r,i){return this.track(new bs(r),i)}interaction(r,i){return this.track(new xs(r),i)}modelSaved(r,i){return this.track(new Es(r),i)}pageViewed(r,i){return this.track(new Ss(r),i)}previewError(r,i){return this.track(new Ts(r),i)}siteIntegrated(r,i){return this.track(new Is(r),i)}startWebImport(r,i){return this.track(new Os(r),i)}subscribeClicked(r,i){return this.track(new ks(r),i)}subscriptionOptionsViewed(r,i){return this.track(new As(r),i)}userInvited(r,i){return this.track(new Ps(r),i)}};var Rg=new Rs;var ii=Mn(Ds());var Bg=Mn(Cg());var Ug=Mn(Ds());function Dg(o){o=o+"=";const r=decodeURIComponent(document.cookie);const i=r.split(";");for(let s=0;s<i.length;s++){let u=i[s];while(u.charAt(0)===" "){u=u.substring(1)}if(u.indexOf(o)===0){return u.substring(o.length,u.length)}}return""}var Ls={};Py(Ls,{default:()=>s_,email:()=>i_,internal:()=>o_,search:()=>n_,social:()=>a_,unknown:()=>r_});var o_={};var r_={Outbrain:{domains:["paid.outbrain.com"]},Google:{domains:["support.google.com","developers.google.com","maps.google.com","accounts.google.com","drive.google.com","sites.google.com","groups.google.com","groups.google.co.uk","news.google.co.uk"]},Taboola:{domains:["trc.taboola.com","api.taboola.com"]},"Yahoo!":{domains:["finance.yahoo.com","news.yahoo.com","eurosport.yahoo.com","sports.yahoo.com","astrology.yahoo.com","travel.yahoo.com","answers.yahoo.com","screen.yahoo.com","weather.yahoo.com","messenger.yahoo.com","games.yahoo.com","shopping.yahoo.net","movies.yahoo.com","cars.yahoo.com","lifestyle.yahoo.com","omg.yahoo.com","match.yahoo.net"]}};var n_={TalkTalk:{domains:["www.talktalk.co.uk"],parameters:["query"]},"1.cz":{domains:["1.cz"],parameters:["q"]},Softonic:{domains:["search.softonic.com"],parameters:["q"]},GAIS:{domains:["gais.cs.ccu.edu.tw"],parameters:["q"]},Freecause:{domains:["search.freecause.com"],parameters:["p"]},"360.cn":{domains:["so.360.cn","www.so.com"],parameters:["q"]},RPMFind:{domains:["rpmfind.net","fr2.rpmfind.net"],parameters:["query"]},Comcast:{domains:["serach.comcast.net"],parameters:["q"]},Voila:{domains:["search.ke.voila.fr","www.lemoteur.fr"],parameters:["rdata","kw"]},Nifty:{domains:["search.nifty.com"],parameters:["q"]},Atlas:{domains:["searchatlas.centrum.cz"],parameters:["q"]},"Lo.st":{domains:["lo.st"],parameters:["x_query"]},DasTelefonbuch:{domains:["www1.dastelefonbuch.de"],parameters:["kw"]},Fireball:{domains:["www.fireball.de"],parameters:["q"]},"1und1":{domains:["search.1und1.de"],parameters:["su"]},Virgilio:{domains:["ricerca.virgilio.it","ricercaimmagini.virgilio.it","ricercavideo.virgilio.it","ricercanews.virgilio.it","mobile.virgilio.it"],parameters:["qs"]},"Web.nl":{domains:["www.web.nl"],parameters:["zoekwoord"]},Plazoo:{domains:["www.plazoo.com"],parameters:["q"]},"Goyellow.de":{domains:["www.goyellow.de"],parameters:["MDN"]},AOL:{domains:["search.aol.com","search.aol.it","aolsearch.aol.com","aolsearch.com","www.aolrecherche.aol.fr","www.aolrecherches.aol.fr","www.aolimages.aol.fr","aim.search.aol.com","www.recherche.aol.fr","find.web.aol.com","recherche.aol.ca","aolsearch.aol.co.uk","search.aol.co.uk","aolrecherche.aol.fr","sucheaol.aol.de","suche.aol.de","suche.aolsvc.de","aolbusqueda.aol.com.mx","alicesuche.aol.de","alicesuchet.aol.de","suchet2.aol.de","search.hp.my.aol.com.au","search.hp.my.aol.de","search.hp.my.aol.it","search-intl.netscape.com"],parameters:["q","query"]},Acoon:{domains:["www.acoon.de"],parameters:["begriff"]},Free:{domains:["search.free.fr","search1-2.free.fr","search1-1.free.fr"],parameters:["q"]},"Apollo Latvia":{domains:["apollo.lv/portal/search/"],parameters:["q"]},HighBeam:{domains:["www.highbeam.com"],parameters:["q"]},"I-play":{domains:["start.iplay.com"],parameters:["q"]},FriendFeed:{domains:["friendfeed.com"],parameters:["q"]},Yasni:{domains:["www.yasni.de","www.yasni.com","www.yasni.co.uk","www.yasni.ch","www.yasni.at"],parameters:["query"]},Gigablast:{domains:["www.gigablast.com","dir.gigablast.com"],parameters:["q"]},arama:{domains:["arama.com"],parameters:["q"]},Fixsuche:{domains:["www.fixsuche.de"],parameters:["q"]},Apontador:{domains:["apontador.com.br","www.apontador.com.br"],parameters:["q"]},"Search.com":{domains:["www.search.com"],parameters:["q"]},Monstercrawler:{domains:["www.monstercrawler.com"],parameters:["qry"]},"Google Images":{domains:["google.ac/imgres","google.ad/imgres","google.ae/imgres","google.am/imgres","google.as/imgres","google.at/imgres","google.az/imgres","google.ba/imgres","google.be/imgres","google.bf/imgres","google.bg/imgres","google.bi/imgres","google.bj/imgres","google.bs/imgres","google.by/imgres","google.ca/imgres","google.cat/imgres","google.cc/imgres","google.cd/imgres","google.cf/imgres","google.cg/imgres","google.ch/imgres","google.ci/imgres","google.cl/imgres","google.cm/imgres","google.cn/imgres","google.co.bw/imgres","google.co.ck/imgres","google.co.cr/imgres","google.co.id/imgres","google.co.il/imgres","google.co.in/imgres","google.co.jp/imgres","google.co.ke/imgres","google.co.kr/imgres","google.co.ls/imgres","google.co.ma/imgres","google.co.mz/imgres","google.co.nz/imgres","google.co.th/imgres","google.co.tz/imgres","google.co.ug/imgres","google.co.uk/imgres","google.co.uz/imgres","google.co.ve/imgres","google.co.vi/imgres","google.co.za/imgres","google.co.zm/imgres","google.co.zw/imgres","google.com/imgres","google.com.af/imgres","google.com.ag/imgres","google.com.ai/imgres","google.com.ar/imgres","google.com.au/imgres","google.com.bd/imgres","google.com.bh/imgres","google.com.bn/imgres","google.com.bo/imgres","google.com.br/imgres","google.com.by/imgres","google.com.bz/imgres","google.com.co/imgres","google.com.cu/imgres","google.com.cy/imgres","google.com.do/imgres","google.com.ec/imgres","google.com.eg/imgres","google.com.et/imgres","google.com.fj/imgres","google.com.gh/imgres","google.com.gi/imgres","google.com.gt/imgres","google.com.hk/imgres","google.com.jm/imgres","google.com.kh/imgres","google.com.kw/imgres","google.com.lb/imgres","google.com.lc/imgres","google.com.ly/imgres","google.com.mt/imgres","google.com.mx/imgres","google.com.my/imgres","google.com.na/imgres","google.com.nf/imgres","google.com.ng/imgres","google.com.ni/imgres","google.com.np/imgres","google.com.om/imgres","google.com.pa/imgres","google.com.pe/imgres","google.com.ph/imgres","google.com.pk/imgres","google.com.pr/imgres","google.com.py/imgres","google.com.qa/imgres","google.com.sa/imgres","google.com.sb/imgres","google.com.sg/imgres","google.com.sl/imgres","google.com.sv/imgres","google.com.tj/imgres","google.com.tn/imgres","google.com.tr/imgres","google.com.tw/imgres","google.com.ua/imgres","google.com.uy/imgres","google.com.vc/imgres","google.com.vn/imgres","google.cv/imgres","google.cz/imgres","google.de/imgres","google.dj/imgres","google.dk/imgres","google.dm/imgres","google.dz/imgres","google.ee/imgres","google.es/imgres","google.fi/imgres","google.fm/imgres","google.fr/imgres","google.ga/imgres","google.gd/imgres","google.ge/imgres","google.gf/imgres","google.gg/imgres","google.gl/imgres","google.gm/imgres","google.gp/imgres","google.gr/imgres","google.gy/imgres","google.hn/imgres","google.hr/imgres","google.ht/imgres","google.hu/imgres","google.ie/imgres","google.im/imgres","google.io/imgres","google.iq/imgres","google.is/imgres","google.it/imgres","google.it.ao/imgres","google.je/imgres","google.jo/imgres","google.kg/imgres","google.ki/imgres","google.kz/imgres","google.la/imgres","google.li/imgres","google.lk/imgres","google.lt/imgres","google.lu/imgres","google.lv/imgres","google.md/imgres","google.me/imgres","google.mg/imgres","google.mk/imgres","google.ml/imgres","google.mn/imgres","google.ms/imgres","google.mu/imgres","google.mv/imgres","google.mw/imgres","google.ne/imgres","google.nl/imgres","google.no/imgres","google.nr/imgres","google.nu/imgres","google.pl/imgres","google.pn/imgres","google.ps/imgres","google.pt/imgres","google.ro/imgres","google.rs/imgres","google.ru/imgres","google.rw/imgres","google.sc/imgres","google.se/imgres","google.sh/imgres","google.si/imgres","google.sk/imgres","google.sm/imgres","google.sn/imgres","google.so/imgres","google.st/imgres","google.td/imgres","google.tg/imgres","google.tk/imgres","google.tl/imgres","google.tm/imgres","google.to/imgres","google.tt/imgres","google.us/imgres","google.vg/imgres","google.vu/imgres","images.google.ws","images.google.ac","images.google.ad","images.google.ae","images.google.am","images.google.as","images.google.at","images.google.az","images.google.ba","images.google.be","images.google.bf","images.google.bg","images.google.bi","images.google.bj","images.google.bs","images.google.by","images.google.ca","images.google.cat","images.google.cc","images.google.cd","images.google.cf","images.google.cg","images.google.ch","images.google.ci","images.google.cl","images.google.cm","images.google.cn","images.google.co.bw","images.google.co.ck","images.google.co.cr","images.google.co.id","images.google.co.il","images.google.co.in","images.google.co.jp","images.google.co.ke","images.google.co.kr","images.google.co.ls","images.google.co.ma","images.google.co.mz","images.google.co.nz","images.google.co.th","images.google.co.tz","images.google.co.ug","images.google.co.uk","images.google.co.uz","images.google.co.ve","images.google.co.vi","images.google.co.za","images.google.co.zm","images.google.co.zw","images.google.com","images.google.com.af","images.google.com.ag","images.google.com.ai","images.google.com.ar","images.google.com.au","images.google.com.bd","images.google.com.bh","images.google.com.bn","images.google.com.bo","images.google.com.br","images.google.com.by","images.google.com.bz","images.google.com.co","images.google.com.cu","images.google.com.cy","images.google.com.do","images.google.com.ec","images.google.com.eg","images.google.com.et","images.google.com.fj","images.google.com.gh","images.google.com.gi","images.google.com.gt","images.google.com.hk","images.google.com.jm","images.google.com.kh","images.google.com.kh","images.google.com.kw","images.google.com.lb","images.google.com.lc","images.google.com.ly","images.google.com.mt","images.google.com.mx","images.google.com.my","images.google.com.na","images.google.com.nf","images.google.com.ng","images.google.com.ni","images.google.com.np","images.google.com.om","images.google.com.pa","images.google.com.pe","images.google.com.ph","images.google.com.pk","images.google.com.pr","images.google.com.py","images.google.com.qa","images.google.com.sa","images.google.com.sb","images.google.com.sg","images.google.com.sl","images.google.com.sv","images.google.com.tj","images.google.com.tn","images.google.com.tr","images.google.com.tw","images.google.com.ua","images.google.com.uy","images.google.com.vc","images.google.com.vn","images.google.cv","images.google.cz","images.google.de","images.google.dj","images.google.dk","images.google.dm","images.google.dz","images.google.ee","images.google.es","images.google.fi","images.google.fm","images.google.fr","images.google.ga","images.google.gd","images.google.ge","images.google.gf","images.google.gg","images.google.gl","images.google.gm","images.google.gp","images.google.gr","images.google.gy","images.google.hn","images.google.hr","images.google.ht","images.google.hu","images.google.ie","images.google.im","images.google.io","images.google.iq","images.google.is","images.google.it","images.google.it.ao","images.google.je","images.google.jo","images.google.kg","images.google.ki","images.google.kz","images.google.la","images.google.li","images.google.lk","images.google.lt","images.google.lu","images.google.lv","images.google.md","images.google.me","images.google.mg","images.google.mk","images.google.ml","images.google.mn","images.google.ms","images.google.mu","images.google.mv","images.google.mw","images.google.ne","images.google.nl","images.google.no","images.google.nr","images.google.nu","images.google.pl","images.google.pn","images.google.ps","images.google.pt","images.google.ro","images.google.rs","images.google.ru","images.google.rw","images.google.sc","images.google.se","images.google.sh","images.google.si","images.google.sk","images.google.sm","images.google.sn","images.google.so","images.google.st","images.google.td","images.google.tg","images.google.tk","images.google.tl","images.google.tm","images.google.to","images.google.tt","images.google.us","images.google.vg","images.google.vu","images.google.ws"],parameters:["q"]},ABCs\\u00F8k:{domains:["abcsolk.no","verden.abcsok.no"],parameters:["q"]},"Google Product Search":{domains:["google.ac/products","google.ad/products","google.ae/products","google.am/products","google.as/products","google.at/products","google.az/products","google.ba/products","google.be/products","google.bf/products","google.bg/products","google.bi/products","google.bj/products","google.bs/products","google.by/products","google.ca/products","google.cat/products","google.cc/products","google.cd/products","google.cf/products","google.cg/products","google.ch/products","google.ci/products","google.cl/products","google.cm/products","google.cn/products","google.co.bw/products","google.co.ck/products","google.co.cr/products","google.co.id/products","google.co.il/products","google.co.in/products","google.co.jp/products","google.co.ke/products","google.co.kr/products","google.co.ls/products","google.co.ma/products","google.co.mz/products","google.co.nz/products","google.co.th/products","google.co.tz/products","google.co.ug/products","google.co.uk/products","google.co.uz/products","google.co.ve/products","google.co.vi/products","google.co.za/products","google.co.zm/products","google.co.zw/products","google.com/products","google.com.af/products","google.com.ag/products","google.com.ai/products","google.com.ar/products","google.com.au/products","google.com.bd/products","google.com.bh/products","google.com.bn/products","google.com.bo/products","google.com.br/products","google.com.by/products","google.com.bz/products","google.com.co/products","google.com.cu/products","google.com.cy/products","google.com.do/products","google.com.ec/products","google.com.eg/products","google.com.et/products","google.com.fj/products","google.com.gh/products","google.com.gi/products","google.com.gt/products","google.com.hk/products","google.com.jm/products","google.com.kh/products","google.com.kh/products","google.com.kw/products","google.com.lb/products","google.com.lc/products","google.com.ly/products","google.com.mt/products","google.com.mx/products","google.com.my/products","google.com.na/products","google.com.nf/products","google.com.ng/products","google.com.ni/products","google.com.np/products","google.com.om/products","google.com.pa/products","google.com.pe/products","google.com.ph/products","google.com.pk/products","google.com.pr/products","google.com.py/products","google.com.qa/products","google.com.sa/products","google.com.sb/products","google.com.sg/products","google.com.sl/products","google.com.sv/products","google.com.tj/products","google.com.tn/products","google.com.tr/products","google.com.tw/products","google.com.ua/products","google.com.uy/products","google.com.vc/products","google.com.vn/products","google.cv/products","google.cz/products","google.de/products","google.dj/products","google.dk/products","google.dm/products","google.dz/products","google.ee/products","google.es/products","google.fi/products","google.fm/products","google.fr/products","google.ga/products","google.gd/products","google.ge/products","google.gf/products","google.gg/products","google.gl/products","google.gm/products","google.gp/products","google.gr/products","google.gy/products","google.hn/products","google.hr/products","google.ht/products","google.hu/products","google.ie/products","google.im/products","google.io/products","google.iq/products","google.is/products","google.it/products","google.it.ao/products","google.je/products","google.jo/products","google.kg/products","google.ki/products","google.kz/products","google.la/products","google.li/products","google.lk/products","google.lt/products","google.lu/products","google.lv/products","google.md/products","google.me/products","google.mg/products","google.mk/products","google.ml/products","google.mn/products","google.ms/products","google.mu/products","google.mv/products","google.mw/products","google.ne/products","google.nl/products","google.no/products","google.nr/products","google.nu/products","google.pl/products","google.pn/products","google.ps/products","google.pt/products","google.ro/products","google.rs/products","google.ru/products","google.rw/products","google.sc/products","google.se/products","google.sh/products","google.si/products","google.sk/products","google.sm/products","google.sn/products","google.so/products","google.st/products","google.td/products","google.tg/products","google.tk/products","google.tl/products","google.tm/products","google.to/products","google.tt/products","google.us/products","google.vg/products","google.vu/products","google.ws/products","www.google.ac/products","www.google.ad/products","www.google.ae/products","www.google.am/products","www.google.as/products","www.google.at/products","www.google.az/products","www.google.ba/products","www.google.be/products","www.google.bf/products","www.google.bg/products","www.google.bi/products","www.google.bj/products","www.google.bs/products","www.google.by/products","www.google.ca/products","www.google.cat/products","www.google.cc/products","www.google.cd/products","www.google.cf/products","www.google.cg/products","www.google.ch/products","www.google.ci/products","www.google.cl/products","www.google.cm/products","www.google.cn/products","www.google.co.bw/products","www.google.co.ck/products","www.google.co.cr/products","www.google.co.id/products","www.google.co.il/products","www.google.co.in/products","www.google.co.jp/products","www.google.co.ke/products","www.google.co.kr/products","www.google.co.ls/products","www.google.co.ma/products","www.google.co.mz/products","www.google.co.nz/products","www.google.co.th/products","www.google.co.tz/products","www.google.co.ug/products","www.google.co.uk/products","www.google.co.uz/products","www.google.co.ve/products","www.google.co.vi/products","www.google.co.za/products","www.google.co.zm/products","www.google.co.zw/products","www.google.com/products","www.google.com.af/products","www.google.com.ag/products","www.google.com.ai/products","www.google.com.ar/products","www.google.com.au/products","www.google.com.bd/products","www.google.com.bh/products","www.google.com.bn/products","www.google.com.bo/products","www.google.com.br/products","www.google.com.by/products","www.google.com.bz/products","www.google.com.co/products","www.google.com.cu/products","www.google.com.cy/products","www.google.com.do/products","www.google.com.ec/products","www.google.com.eg/products","www.google.com.et/products","www.google.com.fj/products","www.google.com.gh/products","www.google.com.gi/products","www.google.com.gt/products","www.google.com.hk/products","www.google.com.jm/products","www.google.com.kh/products","www.google.com.kh/products","www.google.com.kw/products","www.google.com.lb/products","www.google.com.lc/products","www.google.com.ly/products","www.google.com.mt/products","www.google.com.mx/products","www.google.com.my/products","www.google.com.na/products","www.google.com.nf/products","www.google.com.ng/products","www.google.com.ni/products","www.google.com.np/products","www.google.com.om/products","www.google.com.pa/products","www.google.com.pe/products","www.google.com.ph/products","www.google.com.pk/products","www.google.com.pr/products","www.google.com.py/products","www.google.com.qa/products","www.google.com.sa/products","www.google.com.sb/products","www.google.com.sg/products","www.google.com.sl/products","www.google.com.sv/products","www.google.com.tj/products","www.google.com.tn/products","www.google.com.tr/products","www.google.com.tw/products","www.google.com.ua/products","www.google.com.uy/products","www.google.com.vc/products","www.google.com.vn/products","www.google.cv/products","www.google.cz/products","www.google.de/products","www.google.dj/products","www.google.dk/products","www.google.dm/products","www.google.dz/products","www.google.ee/products","www.google.es/products","www.google.fi/products","www.google.fm/products","www.google.fr/products","www.google.ga/products","www.google.gd/products","www.google.ge/products","www.google.gf/products","www.google.gg/products","www.google.gl/products","www.google.gm/products","www.google.gp/products","www.google.gr/products","www.google.gy/products","www.google.hn/products","www.google.hr/products","www.google.ht/products","www.google.hu/products","www.google.ie/products","www.google.im/products","www.google.io/products","www.google.iq/products","www.google.is/products","www.google.it/products","www.google.it.ao/products","www.google.je/products","www.google.jo/products","www.google.kg/products","www.google.ki/products","www.google.kz/products","www.google.la/products","www.google.li/products","www.google.lk/products","www.google.lt/products","www.google.lu/products","www.google.lv/products","www.google.md/products","www.google.me/products","www.google.mg/products","www.google.mk/products","www.google.ml/products","www.google.mn/products","www.google.ms/products","www.google.mu/products","www.google.mv/products","www.google.mw/products","www.google.ne/products","www.google.nl/products","www.google.no/products","www.google.nr/products","www.google.nu/products","www.google.pl/products","www.google.pn/products","www.google.ps/products","www.google.pt/products","www.google.ro/products","www.google.rs/products","www.google.ru/products","www.google.rw/products","www.google.sc/products","www.google.se/products","www.google.sh/products","www.google.si/products","www.google.sk/products","www.google.sm/products","www.google.sn/products","www.google.so/products","www.google.st/products","www.google.td/products","www.google.tg/products","www.google.tk/products","www.google.tl/products","www.google.tm/products","www.google.to/products","www.google.tt/products","www.google.us/products","www.google.vg/products","www.google.vu/products","www.google.ws/products"],parameters:["q"]},DasOertliche:{domains:["www.dasoertliche.de"],parameters:["kw"]},InfoSpace:{domains:["infospace.com","dogpile.com","www.dogpile.com","metacrawler.com","webfetch.com","webcrawler.com","search.kiwee.com","isearch.babylon.com","start.facemoods.com","search.magnetic.com","search.searchcompletion.com","clusty.com"],parameters:["q","s"]},Weborama:{domains:["www.weborama.com"],parameters:["QUERY"]},Bluewin:{domains:["search.bluewin.ch"],parameters:["searchTerm"]},Neti:{domains:["www.neti.ee"],parameters:["query"]},Winamp:{domains:["search.winamp.com"],parameters:["q"]},Nigma:{domains:["nigma.ru"],parameters:["s"]},"Yahoo! Images":{domains:["image.yahoo.cn","images.search.yahoo.com"],parameters:["p","q"]},Exalead:{domains:["www.exalead.fr","www.exalead.com"],parameters:["q"]},Teoma:{domains:["www.teoma.com"],parameters:["q"]},Needtofind:{domains:["ko.search.need2find.com"],parameters:["searchfor"]},Looksmart:{domains:["www.looksmart.com"],parameters:["key"]},"Wirtualna Polska":{domains:["szukaj.wp.pl"],parameters:["szukaj"]},Toolbarhome:{domains:["www.toolbarhome.com","vshare.toolbarhome.com"],parameters:["q"]},Searchalot:{domains:["searchalot.com"],parameters:["q"]},Yandex:{domains:["yandex.ru","yandex.ua","yandex.com","yandex.by","www.yandex.ru","www.yandex.ua","www.yandex.com","www.yandex.by"],parameters:["text"]},"canoe.ca":{domains:["web.canoe.ca"],parameters:["q"]},Compuserve:{domains:["websearch.cs.com"],parameters:["query"]},Blogdigger:{domains:["www.blogdigger.com"],parameters:["q"]},Startpagina:{domains:["startgoogle.startpagina.nl"],parameters:["q"]},eo:{domains:["eo.st"],parameters:["x_query"]},Zhongsou:{domains:["p.zhongsou.com"],parameters:["w"]},"La Toile Du Quebec Via Google":{domains:["www.toile.com","web.toile.com"],parameters:["q"]},Paperball:{domains:["www.paperball.de"],parameters:["q"]},"Jungle Spider":{domains:["www.jungle-spider.de"],parameters:["q"]},PeoplePC:{domains:["search.peoplepc.com"],parameters:["q"]},"MetaCrawler.de":{domains:["s1.metacrawler.de","s2.metacrawler.de","s3.metacrawler.de"],parameters:["qry"]},Orange:{domains:["busca.orange.es","search.orange.co.uk"],parameters:["q"]},"Gule Sider":{domains:["www.gulesider.no"],parameters:["q"]},Francite:{domains:["recherche.francite.com"],parameters:["name"]},"Ask Toolbar":{domains:["search.tb.ask.com"],parameters:["searchfor"]},"Trusted-Search":{domains:["www.trusted--search.com"],parameters:["w"]},goo:{domains:["search.goo.ne.jp","ocnsearch.goo.ne.jp"],parameters:["MT"]},"Fast Browser Search":{domains:["www.fastbrowsersearch.com"],parameters:["q"]},Blogpulse:{domains:["www.blogpulse.com"],parameters:["query"]},Volny:{domains:["web.volny.cz"],parameters:["search"]},Icerockeet:{domains:["blogs.icerocket.com"],parameters:["q"]},Terra:{domains:["buscador.terra.es","buscador.terra.cl","buscador.terra.com.br"],parameters:["query"]},Amazon:{domains:["amazon.com","www.amazon.com"],parameters:["keywords"]},Onet:{domains:["szukaj.onet.pl"],parameters:["qt"]},Digg:{domains:["digg.com"],parameters:["s"]},Abacho:{domains:["www.abacho.de","www.abacho.com","www.abacho.co.uk","www.se.abacho.com","www.tr.abacho.com","www.abacho.at","www.abacho.fr","www.abacho.es","www.abacho.ch","www.abacho.it"],parameters:["q"]},maailm:{domains:["www.maailm.com"],parameters:["tekst"]},Flix:{domains:["www.flix.de"],parameters:["keyword"]},Suchnase:{domains:["www.suchnase.de"],parameters:["q"]},Freenet:{domains:["suche.freenet.de"],parameters:["query","Keywords"]},"Poisk.ru":{domains:["www.plazoo.com"],parameters:["q"]},Sharelook:{domains:["www.sharelook.fr"],parameters:["keyword"]},Najdi:{domains:["www.najdi.si"],parameters:["q"]},Picsearch:{domains:["www.picsearch.com"],parameters:["q"]},"Mail.ru":{domains:["go.mail.ru"],parameters:["q"]},Alexa:{domains:["alexa.com","search.toolbars.alexa.com"],parameters:["q"]},Metager:{domains:["meta.rrzn.uni-hannover.de","www.metager.de"],parameters:["eingabe"]},Technorati:{domains:["technorati.com"],parameters:["q"]},Globososo:{domains:["searches.globososo.com","search.globososo.com"],parameters:["q"]},WWW:{domains:["search.www.ee"],parameters:["query"]},"Trouvez.com":{domains:["www.trouvez.com"],parameters:["query"]},IXquick:{domains:["ixquick.com","www.eu.ixquick.com","ixquick.de","www.ixquick.de","us.ixquick.com","s1.us.ixquick.com","s2.us.ixquick.com","s3.us.ixquick.com","s4.us.ixquick.com","s5.us.ixquick.com","eu.ixquick.com","s8-eu.ixquick.com","s1-eu.ixquick.de"],parameters:["query"]},"Naver Images":{domains:["image.search.naver.com","imagesearch.naver.com"],parameters:["query"]},Zapmeta:{domains:["www.zapmeta.com","www.zapmeta.nl","www.zapmeta.de","uk.zapmeta.com"],parameters:["q","query"]},Yippy:{domains:["search.yippy.com"],parameters:["q","query"]},Gomeo:{domains:["www.gomeo.com"],parameters:["Keywords"]},Walhello:{domains:["www.walhello.info","www.walhello.com","www.walhello.de","www.walhello.nl"],parameters:["key"]},Meta:{domains:["meta.ua"],parameters:["q"]},Skynet:{domains:["www.skynet.be"],parameters:["q"]},Searchy:{domains:["www.searchy.co.uk"],parameters:["q"]},Findwide:{domains:["search.findwide.com"],parameters:["k"]},WebSearch:{domains:["www.websearch.com"],parameters:["qkw","q"]},Rambler:{domains:["nova.rambler.ru"],parameters:["query","words"]},Latne:{domains:["www.latne.lv"],parameters:["q"]},MySearch:{domains:["www.mysearch.com","ms114.mysearch.com","ms146.mysearch.com","kf.mysearch.myway.com","ki.mysearch.myway.com","search.myway.com","search.mywebsearch.com"],parameters:["searchfor","searchFor"]},Cuil:{domains:["www.cuil.com"],parameters:["q"]},Tixuma:{domains:["www.tixuma.de"],parameters:["sc"]},Sapo:{domains:["pesquisa.sapo.pt"],parameters:["q"]},Gnadenmeer:{domains:["www.gnadenmeer.de"],parameters:["keyword"]},Arcor:{domains:["www.arcor.de"],parameters:["Keywords"]},Naver:{domains:["search.naver.com"],parameters:["query"]},Zoeken:{domains:["www.zoeken.nl"],parameters:["q"]},Startsiden:{domains:["www.startsiden.no"],parameters:["q"]},Yam:{domains:["search.yam.com"],parameters:["k"]},Eniro:{domains:["www.eniro.se"],parameters:["q","search_word"]},APOLL07:{domains:["apollo7.de"],parameters:["query"]},Biglobe:{domains:["cgi.search.biglobe.ne.jp"],parameters:["q"]},Mozbot:{domains:["www.mozbot.fr","www.mozbot.co.uk","www.mozbot.com"],parameters:["q"]},ICQ:{domains:["www.icq.com","search.icq.com"],parameters:["q"]},Baidu:{domains:["www.baidu.com","www1.baidu.com","zhidao.baidu.com","tieba.baidu.com","news.baidu.com","web.gougou.com"],parameters:["wd","word","kw","k"]},Conduit:{domains:["search.conduit.com"],parameters:["q"]},Vindex:{domains:["www.vindex.nl","search.vindex.nl"],parameters:["search_for"]},Babylon:{domains:["search.babylon.com","searchassist.babylon.com"],parameters:["q"]},TrovaRapido:{domains:["www.trovarapido.com"],parameters:["q"]},"Suchmaschine.com":{domains:["www.suchmaschine.com"],parameters:["suchstr"]},Lycos:{domains:["search.lycos.com","www.lycos.com","lycos.com"],parameters:["query"]},Vinden:{domains:["www.vinden.nl"],parameters:["q"]},Altavista:{domains:["www.altavista.com","search.altavista.com","listings.altavista.com","altavista.de","altavista.fr","be-nl.altavista.com","be-fr.altavista.com"],parameters:["q"]},dmoz:{domains:["dmoz.org","editors.dmoz.org"],parameters:["q"]},Ecosia:{domains:["ecosia.org"],parameters:["q"]},Maxwebsearch:{domains:["maxwebsearch.com"],parameters:["query"]},Euroseek:{domains:["www.euroseek.com"],parameters:["string"]},Bing:{domains:["bing.com","www.bing.com","msnbc.msn.com","dizionario.it.msn.com","cc.bingj.com","m.bing.com"],parameters:["q","Q"]},"X-recherche":{domains:["www.x-recherche.com"],parameters:["MOTS"]},"Yandex Images":{domains:["images.yandex.ru","images.yandex.ua","images.yandex.com"],parameters:["text"]},GMX:{domains:["suche.gmx.net"],parameters:["su"]},"Daemon search":{domains:["daemon-search.com","my.daemon-search.com"],parameters:["q"]},"Jungle Key":{domains:["junglekey.com","junglekey.fr"],parameters:["query"]},Firstfind:{domains:["www.firstsfind.com"],parameters:["qry"]},Crawler:{domains:["www.crawler.com"],parameters:["q"]},Holmes:{domains:["holmes.ge"],parameters:["q"]},Charter:{domains:["www.charter.net"],parameters:["q"]},Ilse:{domains:["www.ilse.nl"],parameters:["search_for"]},earthlink:{domains:["search.earthlink.net"],parameters:["q"]},Qualigo:{domains:["www.qualigo.at","www.qualigo.ch","www.qualigo.de","www.qualigo.nl"],parameters:["q"]},"El Mundo":{domains:["ariadna.elmundo.es"],parameters:["q"]},Metager2:{domains:["metager2.de"],parameters:["q"]},Forestle:{domains:["forestle.org","www.forestle.org","forestle.mobi"],parameters:["q"]},"Search.ch":{domains:["www.search.ch"],parameters:["q"]},Meinestadt:{domains:["www.meinestadt.de"],parameters:["words"]},Freshweather:{domains:["www.fresh-weather.com"],parameters:["q"]},AllTheWeb:{domains:["www.alltheweb.com"],parameters:["q"]},Snapdo:{domains:["search.snapdo.com"],parameters:["q"]},Zoek:{domains:["www3.zoek.nl"],parameters:["q"]},Daum:{domains:["search.daum.net"],parameters:["q"]},Marktplaats:{domains:["www.marktplaats.nl"],parameters:["query"]},"suche.info":{domains:["suche.info"],parameters:["q"]},"Google News":{domains:["news.google.ac","news.google.ad","news.google.ae","news.google.am","news.google.as","news.google.at","news.google.az","news.google.ba","news.google.be","news.google.bf","news.google.bg","news.google.bi","news.google.bj","news.google.bs","news.google.by","news.google.ca","news.google.cat","news.google.cc","news.google.cd","news.google.cf","news.google.cg","news.google.ch","news.google.ci","news.google.cl","news.google.cm","news.google.cn","news.google.co.bw","news.google.co.ck","news.google.co.cr","news.google.co.id","news.google.co.il","news.google.co.in","news.google.co.jp","news.google.co.ke","news.google.co.kr","news.google.co.ls","news.google.co.ma","news.google.co.mz","news.google.co.nz","news.google.co.th","news.google.co.tz","news.google.co.ug","news.google.co.uk","news.google.co.uz","news.google.co.ve","news.google.co.vi","news.google.co.za","news.google.co.zm","news.google.co.zw","news.google.com","news.google.com.af","news.google.com.ag","news.google.com.ai","news.google.com.ar","news.google.com.au","news.google.com.bd","news.google.com.bh","news.google.com.bn","news.google.com.bo","news.google.com.br","news.google.com.by","news.google.com.bz","news.google.com.co","news.google.com.cu","news.google.com.cy","news.google.com.do","news.google.com.ec","news.google.com.eg","news.google.com.et","news.google.com.fj","news.google.com.gh","news.google.com.gi","news.google.com.gt","news.google.com.hk","news.google.com.jm","news.google.com.kh","news.google.com.kh","news.google.com.kw","news.google.com.lb","news.google.com.lc","news.google.com.ly","news.google.com.mt","news.google.com.mx","news.google.com.my","news.google.com.na","news.google.com.nf","news.google.com.ng","news.google.com.ni","news.google.com.np","news.google.com.om","news.google.com.pa","news.google.com.pe","news.google.com.ph","news.google.com.pk","news.google.com.pr","news.google.com.py","news.google.com.qa","news.google.com.sa","news.google.com.sb","news.google.com.sg","news.google.com.sl","news.google.com.sv","news.google.com.tj","news.google.com.tn","news.google.com.tr","news.google.com.tw","news.google.com.ua","news.google.com.uy","news.google.com.vc","news.google.com.vn","news.google.cv","news.google.cz","news.google.de","news.google.dj","news.google.dk","news.google.dm","news.google.dz","news.google.ee","news.google.es","news.google.fi","news.google.fm","news.google.fr","news.google.ga","news.google.gd","news.google.ge","news.google.gf","news.google.gg","news.google.gl","news.google.gm","news.google.gp","news.google.gr","news.google.gy","news.google.hn","news.google.hr","news.google.ht","news.google.hu","news.google.ie","news.google.im","news.google.io","news.google.iq","news.google.is","news.google.it","news.google.it.ao","news.google.je","news.google.jo","news.google.kg","news.google.ki","news.google.kz","news.google.la","news.google.li","news.google.lk","news.google.lt","news.google.lu","news.google.lv","news.google.md","news.google.me","news.google.mg","news.google.mk","news.google.ml","news.google.mn","news.google.ms","news.google.mu","news.google.mv","news.google.mw","news.google.ne","news.google.nl","news.google.no","news.google.nr","news.google.nu","news.google.pl","news.google.pn","news.google.ps","news.google.pt","news.google.ro","news.google.rs","news.google.ru","news.google.rw","news.google.sc","news.google.se","news.google.sh","news.google.si","news.google.sk","news.google.sm","news.google.sn","news.google.so","news.google.st","news.google.td","news.google.tg","news.google.tk","news.google.tl","news.google.tm","news.google.to","news.google.tt","news.google.us","news.google.vg","news.google.vu","news.google.ws"],parameters:["q"]},Zoohoo:{domains:["zoohoo.cz"],parameters:["q"]},Seznam:{domains:["search.seznam.cz"],parameters:["q"]},"Online.no":{domains:["online.no"],parameters:["q"]},Eurip:{domains:["www.eurip.com"],parameters:["q"]},"all.by":{domains:["all.by"],parameters:["query"]},"Road Runner Search":{domains:["search.rr.com"],parameters:["q"]},"Opplysningen 1881":{domains:["www.1881.no"],parameters:["Query"]},YouGoo:{domains:["www.yougoo.fr"],parameters:["q"]},"Bing Images":{domains:["bing.com/images/search","www.bing.com/images/search"],parameters:["q","Q"]},Geona:{domains:["geona.net"],parameters:["q"]},Nate:{domains:["search.nate.com"],parameters:["q"]},DuckDuckGo:{domains:["duckduckgo.com"],parameters:["q"]},Hotbot:{domains:["www.hotbot.com"],parameters:["query"]},Kvasir:{domains:["www.kvasir.no"],parameters:["q"]},Austronaut:{domains:["www2.austronaut.at","www1.astronaut.at"],parameters:["q"]},Excite:{domains:["search.excite.it","search.excite.fr","search.excite.de","search.excite.co.uk","serach.excite.es","search.excite.nl","msxml.excite.com","www.excite.co.jp"],parameters:["q","search"]},qip:{domains:["search.qip.ru"],parameters:["query"]},"Certified-Toolbar":{domains:["search.certified-toolbar.com"],parameters:["q"]},"Yahoo!":{domains:["search.yahoo.com","yahoo.com","ar.search.yahoo.com","ar.yahoo.com","au.search.yahoo.com","au.yahoo.com","br.search.yahoo.com","br.yahoo.com","cade.searchde.yahoo.com","cade.yahoo.com","chinese.searchinese.yahoo.com","chinese.yahoo.com","cn.search.yahoo.com","cn.yahoo.com","de.search.yahoo.com","de.yahoo.com","dk.search.yahoo.com","dk.yahoo.com","es.search.yahoo.com","es.yahoo.com","espanol.searchpanol.yahoo.com","espanol.searchpanol.yahoo.com","espanol.yahoo.com","espanol.yahoo.com","fr.search.yahoo.com","fr.yahoo.com","ie.search.yahoo.com","ie.yahoo.com","it.search.yahoo.com","it.yahoo.com","kr.search.yahoo.com","kr.yahoo.com","mx.search.yahoo.com","mx.yahoo.com","no.search.yahoo.com","no.yahoo.com","nz.search.yahoo.com","nz.yahoo.com","one.cn.yahoo.com","one.searchn.yahoo.com","qc.search.yahoo.com","qc.search.yahoo.com","qc.search.yahoo.com","qc.yahoo.com","qc.yahoo.com","se.search.yahoo.com","se.search.yahoo.com","se.yahoo.com","search.searcharch.yahoo.com","search.yahoo.com","uk.search.yahoo.com","uk.yahoo.com","www.yahoo.co.jp","search.yahoo.co.jp","www.cercato.it","search.offerbox.com","ys.mirostart.com"],parameters:["p","q"]},"URL.ORGanizier":{domains:["www.url.org"],parameters:["q"]},Witch:{domains:["www.witch.de"],parameters:["search"]},"Mister Wong":{domains:["www.mister-wong.com","www.mister-wong.de"],parameters:["Keywords"]},Aport:{domains:["sm.aport.ru"],parameters:["r"]},"Web.de":{domains:["suche.web.de"],parameters:["su"]},Ask:{domains:["ask.com","www.ask.com","web.ask.com","int.ask.com","mws.ask.com","uk.ask.com","images.ask.com","ask.reference.com","www.askkids.com","iwon.ask.com","www.ask.co.uk","www.qbyrd.com","search-results.com","uk.search-results.com","www.search-results.com","int.search-results.com"],parameters:["q"]},Centrum:{domains:["serach.centrum.cz","morfeo.centrum.cz"],parameters:["q"]},Everyclick:{domains:["www.everyclick.com"],parameters:["keyword"]},"Google Video":{domains:["video.google.com"],parameters:["q"]},Delfi:{domains:["otsing.delfi.ee"],parameters:["q"]},blekko:{domains:["blekko.com"],parameters:["q"]},Jyxo:{domains:["jyxo.1188.cz"],parameters:["q"]},Kataweb:{domains:["www.kataweb.it"],parameters:["q"]},"uol.com.br":{domains:["busca.uol.com.br"],parameters:["q"]},Arianna:{domains:["arianna.libero.it","www.arianna.com"],parameters:["query"]},Mamma:{domains:["www.mamma.com","mamma75.mamma.com"],parameters:["query"]},Yatedo:{domains:["www.yatedo.com","www.yatedo.fr"],parameters:["q"]},Twingly:{domains:["www.twingly.com"],parameters:["q"]},"Delfi latvia":{domains:["smart.delfi.lv"],parameters:["q"]},PriceRunner:{domains:["www.pricerunner.co.uk"],parameters:["q"]},Rakuten:{domains:["websearch.rakuten.co.jp"],parameters:["qt"]},Google:{domains:["www.google.com","www.google.ac","www.google.ad","www.google.com.af","www.google.com.ag","www.google.com.ai","www.google.am","www.google.it.ao","www.google.com.ar","www.google.as","www.google.at","www.google.com.au","www.google.az","www.google.ba","www.google.com.bd","www.google.be","www.google.bf","www.google.bg","www.google.com.bh","www.google.bi","www.google.bj","www.google.com.bn","www.google.com.bo","www.google.com.br","www.google.bs","www.google.co.bw","www.google.com.by","www.google.by","www.google.com.bz","www.google.ca","www.google.com.kh","www.google.cc","www.google.cd","www.google.cf","www.google.cat","www.google.cg","www.google.ch","www.google.ci","www.google.co.ck","www.google.cl","www.google.cm","www.google.cn","www.google.com.co","www.google.co.cr","www.google.com.cu","www.google.cv","www.google.com.cy","www.google.cz","www.google.de","www.google.dj","www.google.dk","www.google.dm","www.google.com.do","www.google.dz","www.google.com.ec","www.google.ee","www.google.com.eg","www.google.es","www.google.com.et","www.google.fi","www.google.com.fj","www.google.fm","www.google.fr","www.google.ga","www.google.gd","www.google.ge","www.google.gf","www.google.gg","www.google.com.gh","www.google.com.gi","www.google.gl","www.google.gm","www.google.gp","www.google.gr","www.google.com.gt","www.google.gy","www.google.com.hk","www.google.hn","www.google.hr","www.google.ht","www.google.hu","www.google.co.id","www.google.iq","www.google.ie","www.google.co.il","www.google.im","www.google.co.in","www.google.io","www.google.is","www.google.it","www.google.je","www.google.com.jm","www.google.jo","www.google.co.jp","www.google.co.ke","www.google.com.kh","www.google.ki","www.google.kg","www.google.co.kr","www.google.com.kw","www.google.kz","www.google.la","www.google.com.lb","www.google.com.lc","www.google.li","www.google.lk","www.google.co.ls","www.google.lt","www.google.lu","www.google.lv","www.google.com.ly","www.google.co.ma","www.google.md","www.google.me","www.google.mg","www.google.mk","www.google.ml","www.google.mn","www.google.ms","www.google.com.mt","www.google.mu","www.google.mv","www.google.mw","www.google.com.mx","www.google.com.my","www.google.co.mz","www.google.com.na","www.google.ne","www.google.com.nf","www.google.com.ng","www.google.com.ni","www.google.nl","www.google.no","www.google.com.np","www.google.nr","www.google.nu","www.google.co.nz","www.google.com.om","www.google.com.pa","www.google.com.pe","www.google.com.ph","www.google.com.pk","www.google.pl","www.google.pn","www.google.com.pr","www.google.ps","www.google.pt","www.google.com.py","www.google.com.qa","www.google.ro","www.google.rs","www.google.ru","www.google.rw","www.google.com.sa","www.google.com.sb","www.google.sc","www.google.se","www.google.com.sg","www.google.sh","www.google.si","www.google.sk","www.google.com.sl","www.google.sn","www.google.sm","www.google.so","www.google.st","www.google.com.sv","www.google.td","www.google.tg","www.google.co.th","www.google.com.tj","www.google.tk","www.google.tl","www.google.tm","www.google.to","www.google.com.tn","www.google.com.tr","www.google.tt","www.google.com.tw","www.google.co.tz","www.google.com.ua","www.google.co.ug","www.google.ae","www.google.co.uk","www.google.us","www.google.com.uy","www.google.co.uz","www.google.com.vc","www.google.co.ve","www.google.vg","www.google.co.vi","www.google.com.vn","www.google.vu","www.google.ws","www.google.co.za","www.google.co.zm","www.google.co.zw","google.com","google.ac","google.ad","google.com.af","google.com.ag","google.com.ai","google.am","google.it.ao","google.com.ar","google.as","google.at","google.com.au","google.az","google.ba","google.com.bd","google.be","google.bf","google.bg","google.com.bh","google.bi","google.bj","google.com.bn","google.com.bo","google.com.br","google.bs","google.co.bw","google.com.by","google.by","google.com.bz","google.ca","google.com.kh","google.cc","google.cd","google.cf","google.cat","google.cg","google.ch","google.ci","google.co.ck","google.cl","google.cm","google.cn","google.com.co","google.co.cr","google.com.cu","google.cv","google.com.cy","google.cz","google.de","google.dj","google.dk","google.dm","google.com.do","google.dz","google.com.ec","google.ee","google.com.eg","google.es","google.com.et","google.fi","google.com.fj","google.fm","google.fr","google.ga","google.gd","google.ge","google.gf","google.gg","google.com.gh","google.com.gi","google.gl","google.gm","google.gp","google.gr","google.com.gt","google.gy","google.com.hk","google.hn","google.hr","google.ht","google.hu","google.co.id","google.iq","google.ie","google.co.il","google.im","google.co.in","google.io","google.is","google.it","google.je","google.com.jm","google.jo","google.co.jp","google.co.ke","google.com.kh","google.ki","google.kg","google.co.kr","google.com.kw","google.kz","google.la","google.com.lb","google.com.lc","google.li","google.lk","google.co.ls","google.lt","google.lu","google.lv","google.com.ly","google.co.ma","google.md","google.me","google.mg","google.mk","google.ml","google.mn","google.ms","google.com.mt","google.mu","google.mv","google.mw","google.com.mx","google.com.my","google.co.mz","google.com.na","google.ne","google.com.nf","google.com.ng","google.com.ni","google.nl","google.no","google.com.np","google.nr","google.nu","google.co.nz","google.com.om","google.com.pa","google.com.pe","google.com.ph","google.com.pk","google.pl","google.pn","google.com.pr","google.ps","google.pt","google.com.py","google.com.qa","google.ro","google.rs","google.ru","google.rw","google.com.sa","google.com.sb","google.sc","google.se","google.com.sg","google.sh","google.si","google.sk","google.com.sl","google.sn","google.sm","google.so","google.st","google.com.sv","google.td","google.tg","google.co.th","google.com.tj","google.tk","google.tl","google.tm","google.to","google.com.tn","google.com.tr","google.tt","google.com.tw","google.co.tz","google.com.ua","google.co.ug","google.ae","google.co.uk","google.us","google.com.uy","google.co.uz","google.com.vc","google.co.ve","google.vg","google.co.vi","google.com.vn","google.vu","google.ws","google.co.za","google.co.zm","google.co.zw","search.avg.com","isearch.avg.com","www.cnn.com","darkoogle.com","search.darkoogle.com","search.foxtab.com","www.gooofullsearch.com","search.hiyo.com","search.incredimail.com","search1.incredimail.com","search2.incredimail.com","search3.incredimail.com","search4.incredimail.com","search.incredibar.com","search.sweetim.com","www.fastweb.it","search.juno.com","find.tdc.dk","searchresults.verizon.com","search.walla.co.il","search.alot.com","www.googleearth.de","www.googleearth.fr","webcache.googleusercontent.com","encrypted.google.com","googlesyndicatedsearch.com"],parameters:["q","query","Keywords"]},"Hooseek.com":{domains:["www.hooseek.com"],parameters:["recherche"]},Dalesearch:{domains:["www.dalesearch.com"],parameters:["q"]},"Alice Adsl":{domains:["rechercher.aliceadsl.fr"],parameters:["q"]},"T-Online":{domains:["suche.t-online.de","brisbane.t-online.de","navigationshilfe.t-online.de"],parameters:["q"]},"soso.com":{domains:["www.soso.com"],parameters:["w"]},Sogou:{domains:["www.sougou.com"],parameters:["query"]},"Hit-Parade":{domains:["req.-hit-parade.com","class.hit-parade.com","www.hit-parade.com"],parameters:["p7"]},SearchCanvas:{domains:["www.searchcanvas.com"],parameters:["q"]},Interia:{domains:["www.google.interia.pl"],parameters:["q"]},Genieo:{domains:["search.genieo.com"],parameters:["q"]},Tiscali:{domains:["search.tiscali.it","search-dyn.tiscali.it","hledani.tiscali.cz"],parameters:["q","key"]},Clix:{domains:["pesquisa.clix.pt"],parameters:["question"]}};var i_={Bigpond:{domains:["webmail.bigpond.com","webmail2.bigpond.com"]},"Naver Mail":{domains:["mail.naver.com"]},"Optus Zoo":{domains:["webmail.optuszoo.com.au"]},"Seznam Mail":{domains:["email.seznam.cz"]},"126 Mail":{domains:["mail.126.com"]},"Outlook.com":{domains:["mail.live.com"]},"AOL Mail":{domains:["mail.aol.com"]},"Daum Mail":{domains:["mail2.daum.net"]},"Yahoo! Mail":{domains:["mail.yahoo.net","mail.yahoo.com","mail.yahoo.co.uk","mail.yahoo.co.jp"]},"163 Mail":{domains:["mail.163.com"]},"Orange Webmail":{domains:["orange.fr/webmail"]},"QQ Mail":{domains:["mail.qq.com"]},"Mynet Mail":{domains:["mail.mynet.com"]},Gmail:{domains:["mail.google.com"]}};var a_={hi5:{domains:["hi5.com"]},Friendster:{domains:["friendster.com"]},Weibo:{domains:["weibo.com","t.cn"]},Xanga:{domains:["xanga.com"]},Myspace:{domains:["myspace.com"]},Buzznet:{domains:["wayn.com"]},MyLife:{domains:["mylife.ru"]},Flickr:{domains:["flickr.com"]},"Sonico.com":{domains:["sonico.com"]},Odnoklassniki:{domains:["odnoklassniki.ru"]},GitHub:{domains:["github.com"]},Classmates:{domains:["classmates.com"]},"Friends Reunited":{domains:["friendsreunited.com"]},Renren:{domains:["renren.com"]},Quora:{domains:["quora.com"]},"Gaia Online":{domains:["gaiaonline.com"]},Netlog:{domains:["netlog.com"]},Orkut:{domains:["orkut.com"]},MyHeritage:{domains:["myheritage.com"]},Multiply:{domains:["multiply.com"]},myYearbook:{domains:["myyearbook.com"]},WeeWorld:{domains:["weeworld.com"]},Vimeo:{domains:["vimeo.com"]},"Eksi Sozluk":{domains:["Sozluk.com","sourtimes.org"]},Geni:{domains:["geni.com"]},"Uludag Sozluk":{domains:["uludagsozluk.com","ulusozluk.com"]},SourceForge:{domains:["sourceforge.net"]},Plaxo:{domains:["plaxo.com"]},"Taringa!":{domains:["taringa.net"]},Tagged:{domains:["login.tagged.com"]},XING:{domains:["xing.com"]},Instagram:{domains:["instagram.com"]},Vkontakte:{domains:["vk.com","vkontakte.ru"]},Twitter:{domains:["twitter.com","t.co"]},"vKruguDruzei.ru":{domains:["vkrugudruzei.ru"]},Donanimhaber:{domains:["donanimhaber.com"]},WAYN:{domains:["wayn.com"]},Tuenti:{domains:["tuenti.com"]},"Mail.ru":{domains:["my.mail.ru"]},Badoo:{domains:["badoo.com"]},Instela:{domains:["instela.com"]},Habbo:{domains:["habbo.com"]},Pinterest:{domains:["pinterest.com"]},LinkedIn:{domains:["linkedin.com","lnkd.in"]},Foursquare:{domains:["foursquare.com"]},Flixster:{domains:["flixster.com"]},"Windows Live Spaces":{domains:["login.live.com"]},BlackPlanet:{domains:["blackplanet.com"]},Cyworld:{domains:["global.cyworld.com"]},Pocket:{domains:["itusozluk.com"],"ITU Sozluk":null},Skyrock:{domains:["skyrock.com"]},Facebook:{domains:["facebook.com","fb.me","m.facebook.com","l.facebook.com","lm.facebook.com"]},Disqus:{domains:["redirect.disqus.com","disq.us","disqus.com"]},StudiVZ:{domains:["studivz.net"]},Fotolog:{domains:["fotolog.com"]},"Google+":{domains:["url.google.com","plus.google.com"]},"Nasza-klasa.pl":{domains:["nk.pl"]},Qzone:{domains:["qzone.qq.com"]},Douban:{domains:["douban.com"]},Bebo:{domains:["bebo.com"]},Youtube:{domains:["youtube.com","youtu.be"]},Reddit:{domains:["reddit.com"]},"Identi.ca":{domains:["identi.ca"]},StackOverflow:{domains:["stackoverflow.com"]},Mixi:{domains:["mixi.jp"]},StumbleUpon:{domains:["stumbleupon.com"]},"Inci Sozluk":{domains:["inci.sozlukspot.com","incisozluk.com","incisozluk.cc"]},Viadeo:{domains:["viadeo.com"]},"Last.fm":{domains:["lastfm.ru"]},LiveJournal:{domains:["livejournal.ru"]},Tumblr:{domains:["tumblr.com"]},"Hacker News":{domains:["news.ycombinator.com"]},"Hocam.com":{domains:["hocam.com"]},Delicious:{domains:["delicious.com"]},Hyves:{domains:["hyves.nl"]},"Paper.li":{domains:["paper.li"]},"MoiKrug.ru":{domains:["moikrug.ru"]}};var s_={internal:o_,unknown:r_,search:n_,email:i_,social:a_};var u_=Ls||{};function Lg(o){return Object.entries(o).filter(([r])=>o.hasOwnProperty(r))}var qg=function(){const o={};Lg(u_).forEach(([r,i])=>{if(!i){return}Lg(i).forEach(([s,u])=>{if(!(u===null||u===void 0?void 0:u.domains)){return}u.domains.forEach(c=>{var m;o[c]={name:s,medium:r,params:(m=u.parameters)===null||m===void 0?void 0:m.map(x=>x.toLowerCase())}})})});return o}();function Us(o,r=""){var i;const s={known:false,referrer:void 0,medium:"unknown",searchParameter:void 0,searchTerm:void 0,uri:new URL(o)};if(!["http:","https:"].includes(s.uri.protocol)){return s}try{const c=new URL(r);if(c.hostname===s.uri.hostname){s.medium="internal";return s}}catch(c){}const u=qs(s.uri.hostname,s.uri.pathname)||qs(s.uri.hostname,void 0);if(!u){s.medium="unknown";return s}s.referrer=u.name;s.medium=u.medium;if(u.medium==="search"){if((i=u.params)===null||i===void 0?void 0:i.length){s.uri.searchParams.forEach((c,m)=>{var x;if((x=u.params)===null||x===void 0?void 0:x.includes(m.toLowerCase())){s.searchParameter=m;s.searchTerm=c}})}}return s}function qs(o,r){let i=qg[o+(r?r:"")];if(!i&&r){const s=r.split("/");if(s.length>1){i=qg[o+"/"+s[1]]}}if(!i){const s=o.indexOf(".");if(s===-1){return void 0}return qs(o.slice(s+1),r)}return i}function Ng(){const o=(0,Ug.fromPairs)(["referrer","initial_referrer","visitor","utm_source","utm_medium","utm_campaign"].map(r=>[r,Dg("b_"+r)]).map(([r,i])=>[r,i||void 0]));return Object.assign(Object.assign({},o),{attribution:o.referrer?Us(o.referrer):void 0,initial_attribution:o.initial_referrer?Us(o.initial_referrer):void 0})}function Ns(o){return JSON.parse(JSON.stringify(o,(r,i)=>i===Infinity?"Infinity":i),(r,i)=>i==="Infinity"?Infinity:i)}var ni;var c_=new Uint8Array(16);function Ms(){if(!ni){ni=typeof crypto!=="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto);if(!ni){throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}}return ni(c_)}var ot=[];for(let o=0;o<256;++o){ot.push((o+256).toString(16).slice(1))}function Mg(o,r=0){return ot[o[r+0]]+ot[o[r+1]]+ot[o[r+2]]+ot[o[r+3]]+"-"+ot[o[r+4]]+ot[o[r+5]]+"-"+ot[o[r+6]]+ot[o[r+7]]+"-"+ot[o[r+8]]+ot[o[r+9]]+"-"+ot[o[r+10]]+ot[o[r+11]]+ot[o[r+12]]+ot[o[r+13]]+ot[o[r+14]]+ot[o[r+15]]}var l_=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var Fs={randomUUID:l_};function g_(o,r,i){if(Fs.randomUUID&&!r&&!o){return Fs.randomUUID()}o=o||{};const s=o.random||(o.rng||Ms)();s[6]=s[6]&15|64;s[8]=s[8]&63|128;if(r){i=i||0;for(let u=0;u<16;++u){r[i+u]=s[u]}return r}return Mg(s)}var zs=g_;function Fg(){return zs().replace(/-/g,"")}function zg(){let o=Fg();try{if(typeof sessionStorage!=="undefined"){o=sessionStorage.getItem("builder.sessionId")||o;sessionStorage.setItem("builder.sessionId",o)}return o}catch(r){return o}}var f_={};var _r=new Bg.UAParser(navigator.userAgent);var Hr=class{constructor(r){this.name="default-data";this.type=ve.ENRICHMENT;this.options={};this.options=r;return this}async setup(r){return void 0}async execute(r){r.event_properties=this.setDataDefaults(r.event_properties);return r}setDataDefaults(r){var i,s;const u=Ng();let c=r;Ns((0,ii.omit)(c,"roles","nonInteraction","line","isDev","from","filename","error","column"));c=(0,ii.defaults)(c,{app:"app",host:location.hostname,url:location.href,sessionId:zg(),userId:this.options.userId,userEmail:this.options.userEmail,organizationId:this.options.organizationId,rootOrganizationId:this.options.rootOrganizationId,organizationType:this.options.organizationType,userLoggedIn:this.options.userLoggedIn,accountType:this.options.accountType,parentFrameUrl:window.top!==window&&document.referrer,timestamp:Date.now(),date:new Date().toUTCString(),user:f_,sessionUrl:this.options.fullStorySessionUrl,utmMedium:u.utm_medium,utmCampaign:u.utm_campaign,utmSource:u.utm_source,referrer:u.referrer,initialReferrer:u.initial_referrer,attributionBucket:(i=u.attribution)===null||i===void 0?void 0:i.medium,initialAttributionBucket:(s=u.initial_attribution)===null||s===void 0?void 0:s.medium,visitorId:u.visitor,contentId:this.options.contentId,model:this.options.model,modelName:this.options.modelName,userAgent:navigator.userAgent,browser:_r.getBrowser().name,browserVersion:_r.getBrowser().version,os:_r.getOS().name,osVersion:_r.getOS().version,deviceType:_r.getDevice().type,deviceVendor:_r.getDevice().vendor});return c}};function Bs(o,r,i={}){for(const s in o){const u=o[s];const c=r?r+"."+s:s;if(u&&typeof u==="object"){Bs(u,c,i)}else{i[c]=u}}return i}var Kr=class{constructor(r={}){this.name="internal-tracking";this.type=ve.DESTINATION;this.apiRoot="https://qa.builder.io";if(r===null||r===void 0?void 0:r.apiRoot){this.apiRoot=r.apiRoot}return this}async setup(r){return void 0}async execute(r){const i=r.event_type;const s=r.event_properties;const u=await fetch(\`\${this.apiRoot}/api/v1/event\`,{method:"POST",body:JSON.stringify({events:[{name:i,data:Bs(s||{})}]}),headers:{"content-type":"application/json; charset=utf-8"}});return{event:r,code:u.status,message:"Tracking event sent"}}};var Wt=Rg;var js=(o,r)=>{setTimeout(()=>{const i=Array.from(document.querySelectorAll("section"));for(const s of i){s.setAttribute("aria-hidden",String(s.id!==o))}},r)};var jg=o=>{js("success",500);if(o){w_()}setTimeout(d_,500)};var d_=()=>{const o=document.getElementById("step-update-app");o.className="highlight completed";const r=document.getElementById("step-edit-content");r.className="highlight active"};var Yr=(o=[])=>{js("error",500);const r=document.getElementById("error-messages");r.innerHTML="";for(const i of o){const s=document.createElement("li");s.textContent=i;r.appendChild(s)}document.title=\`Error Connecting\`};var Wg=()=>{js("restart-server",500);document.title=\`Restart Dev Server\`};var p_=async()=>{const o=new URL(location.href);const r=o.searchParams.get(ba);const i=o.searchParams.get(vl);const s=o.searchParams.get(yl);const u=o.searchParams.get(xa);const c=o.searchParams.get(bl)||"unknown";const m=o.searchParams.get(xl);const x=o.searchParams.get(El);try{console.info(\`framework: \${c}, platform: \${m}, node: \${x}\`);const T=new URL(location.pathname,location.origin);if(!Wt.isLoaded){Wt.load({client:{apiKey:Cs.production,configuration:{serverUrl:Tl}}});Wt.client.add(new Hr({user_id:u||"anonymous",url:T.href,position:"dev-tools"}));Wt.client.add(new Kr({apiRoot:"https://cdn.builder.io"}))}Wt.identify(u||"anonymous",{cli_framework:c});if(i){Wt.setGroup("organization",i);Wt.setGroup("space",i)}if(!r){window.history.replaceState({},"",T.href);Yr(["Missing preview url"]);Wt.integrationFailed({url:T.href,message:"Missing preview url",position:c});return}T.searchParams.set(ba,r);T.searchParams.set(xa,u);window.history.replaceState({},"",T.href);if(i&&s){let p=0;const g=async()=>{p++;try{const w=await Ol(i,s);if(w.success){const h=Vg(r,w.pathname,u);Wt.siteIntegrated({url:h,position:c});if(w.modifiedFiles.length>0){const y=document.getElementById("modified-files-list");w.modifiedFiles.forEach(L=>{const D=document.createElement("li");const O=document.createElement("a");O.textContent=L.displayFilePath||L.filePath;O.href=\`~launch#\${L.displayFilePath}\`;O.addEventListener("click",A=>{A.preventDefault();A.stopPropagation();Al({filePath:L.filePath})});D.appendChild(O);y.appendChild(D)});const b=document.getElementById("modified-files-message");b.removeAttribute("hidden")}if(w.platform.os==="win32"){const y=document.getElementById("restart-warning");y.removeAttribute("hidden")}else{const y=document.getElementById("go-to-app");y.removeAttribute("hidden")}setTimeout(()=>{jg(true)},500)}else{Wt.integrationFailed({path:w.pathname,message:"Error connecting to Builder.io",position:c});Yr([\`Error connecting to Builder.io\`])}}catch(w){const h=String(w.message||w);if(h.includes("Fetch Error")){if(p>3){Wg()}setTimeout(g,1e3)}else{Yr([h])}}};g()}else{const p=await kl();if(p.isValid){Vg(r,p.pathname,u);const g=document.getElementById("go-to-app");g.removeAttribute("hidden");jg(false)}else{Yr([\`Error connecting to Builder.io\`])}}}catch(T){Wt.integrationFailed({message:"Uncaught error",details:String(T),position:JSON.stringify({framework:c,platform:m,nodeVersion:x})});console.error("integrationFailed",T);const p=String(T);if(p.includes("Fetch Error")){Wg()}else{Yr([p])}}};var Vg=(o,r,i)=>{const s=document.getElementById("next-step");const u=new URL(r,o);if(i){u.hash=\`\${_l}=\${i}\`}s.href=u.href;console.debug("App Url",u.href);return u.href};var m_=()=>{return new Promise((o,r)=>{if(globalThis.confetti){return o(globalThis.confetti)}const i=document.createElement("script");i.src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.5.1/dist/confetti.browser.min.js";i.onload=()=>o(globalThis.confetti);i.onerror=r;document.head.appendChild(i);i.remove()})};var w_=async()=>{const o={spread:360,ticks:50,gravity:0,decay:.95,startVelocity:30,colors:["19b4f4","a97ff2","fd6b3c","ffffff"]};const r=m_();const i=async()=>{const s=document.getElementById("button-icon");const u=s.getBoundingClientRect();const c=window.scrollX+u.left;const m=window.scrollY+u.top;const x={x:c/window.innerWidth,y:m/window.innerHeight};const T=await r;T({...o,origin:x,scalar:1.2});T({...o,origin:x,scalar:.75})};setTimeout(i,500);setTimeout(i,650);setTimeout(i,800);setTimeout(i,950)};p_();})();
221
- /*! Bundled license information:
222
-
223
- lodash/lodash.js:
224
- (**
225
- * @license
226
- * Lodash <https://lodash.com/>
227
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
228
- * Released under MIT license <https://lodash.com/license>
229
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
230
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
231
- *)
232
- */
195
+ <script>"use strict";(()=>{var Ft=\`api-key\`;var Vt=\`p-key\`;var We=\`preview-url\`;var $e=\`user-id\`;var Bt="_b-uid";var qt=\`framework\`;var jt=\`platform\`;var Gt=\`node\`;var Kt="/~builder-dev-tools";var Qt="__DEV_TOOLS_URL__";var Wt=(t,e)=>He({type:"connectBuilder",data:{publicApiKey:t,privateAuthKey:e}});var $t=()=>He({type:"validateBuilder"});var Ht=t=>He({type:"launchEditor",data:t});var He=async t=>{const e=new URL(Kt,Qt);let r;try{r=await fetch(e,{method:"POST",body:JSON.stringify(t)})}catch(i){console.error(\`Devtools Fetch Error, \${e.href}\`,i);throw new Error(\`Builder Devtools Fetch Error\`)}const n=r.headers.get("content-type")||"";if(n.includes("application/json")){const i=await r.json();if(r.ok){return i.data}if(Array.isArray(i.errors)&&i.errors.length>0){i.errors.forEach(o=>console.error(o));throw new Error(\`Builder Devtools Fetch Error: \${i.errors[0]}\`)}}throw new Error(\`Builder Devtools Fetch Error: \${r.status}, \${await r.text()}\`)};var Ye=function(t,e){Ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i))r[i]=n[i]};return Ye(t,e)};function V(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ye(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var h=function(){h=Object.assign||function t(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o))e[o]=r[o]}return e};return h.apply(this,arguments)};function le(t,e){var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0)r[n]=t[n];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++){if(e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i]))r[n[i]]=t[n[i]]}return r}function d(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function l(c){try{s(n.next(c))}catch(f){a(f)}}function u(c){try{s(n["throw"](c))}catch(f){a(f)}}function s(c){c.done?o(c.value):i(c.value).then(l,u)}s((n=n.apply(t,e||[])).next())})}function p(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:l(0),"throw":l(1),"return":l(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(s){return function(c){return u([s,c])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(r=0)),r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(c){s=[6,c];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}}function G(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function S(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(l){a={error:l}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o}function q(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++){if(o||!(n in e)){if(!o)o=Array.prototype.slice.call(e,0,n);o[n]=e[n]}}return t.concat(o||Array.prototype.slice.call(e))}var Yt="Event tracked successfully";var Xt="Unexpected error occurred";var zt="Event rejected due to exceeded retry count";var Zt="Event skipped due to optOut config";var Jt="Event rejected due to missing API key";var er="Invalid API key";var tr="Client not initialized";var D;(function(t){t["SET"]="$set";t["SET_ONCE"]="$setOnce";t["ADD"]="$add";t["APPEND"]="$append";t["PREPEND"]="$prepend";t["REMOVE"]="$remove";t["PREINSERT"]="$preInsert";t["POSTINSERT"]="$postInsert";t["UNSET"]="$unset";t["CLEAR_ALL"]="$clearAll"})(D||(D={}));var W;(function(t){t["REVENUE_PRODUCT_ID"]="$productId";t["REVENUE_QUANTITY"]="$quantity";t["REVENUE_PRICE"]="$price";t["REVENUE_TYPE"]="$revenueType";t["REVENUE"]="$revenue"})(W||(W={}));var X;(function(t){t["IDENTIFY"]="$identify";t["GROUP_IDENTIFY"]="$groupidentify";t["REVENUE"]="revenue_amount"})(X||(X={}));var U;(function(t){t[t["None"]=0]="None";t[t["Error"]=1]="Error";t[t["Warn"]=2]="Warn";t[t["Verbose"]=3]="Verbose";t[t["Debug"]=4]="Debug"})(U||(U={}));var x;(function(t){t["Unknown"]="unknown";t["Skipped"]="skipped";t["Success"]="success";t["RateLimit"]="rate_limit";t["PayloadTooLarge"]="payload_too_large";t["Invalid"]="invalid";t["Failed"]="failed";t["Timeout"]="Timeout";t["SystemError"]="SystemError"})(x||(x={}));var Xe=null;var $=function(t,e,r){if(e===void 0){e=0}if(r===void 0){r=x.Unknown}return{event:t,code:e,message:r}};var K=function(t){return t?(t^Math.random()*16>>t/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,K)};var rr=function(){function t(e){this.client=e;this.queue=[];this.applying=false;this.plugins=[]}t.prototype.register=function(e,r){var n,i,o;return d(this,void 0,void 0,function(){return p(this,function(a){switch(a.label){case 0:e.name=(n=e.name)!==null&&n!==void 0?n:K();e.type=(i=e.type)!==null&&i!==void 0?i:"enrichment";return[4,(o=e.setup)===null||o===void 0?void 0:o.call(e,r,this.client)];case 1:a.sent();this.plugins.push(e);return[2]}})})};t.prototype.deregister=function(e){var r;return d(this,void 0,void 0,function(){var n,i;return p(this,function(o){switch(o.label){case 0:n=this.plugins.findIndex(function(a){return a.name===e});i=this.plugins[n];this.plugins.splice(n,1);return[4,(r=i.teardown)===null||r===void 0?void 0:r.call(i)];case 1:o.sent();return[2]}})})};t.prototype.reset=function(e){this.applying=false;var r=this.plugins;r.map(function(n){var i;return(i=n.teardown)===null||i===void 0?void 0:i.call(n)});this.plugins=[];this.client=e};t.prototype.push=function(e){var r=this;return new Promise(function(n){r.queue.push([e,n]);r.scheduleApply(0)})};t.prototype.scheduleApply=function(e){var r=this;if(this.applying)return;this.applying=true;setTimeout(function(){void r.apply(r.queue.shift()).then(function(){r.applying=false;if(r.queue.length>0){r.scheduleApply(0)}})},e)};t.prototype.apply=function(e){return d(this,void 0,void 0,function(){var r,n,i,o,a,l,u,y,g,s,c,f,v,y,g,E,m,_;var C,I,L,F;return p(this,function(T){switch(T.label){case 0:if(!e){return[2]}r=S(e,1),n=r[0];i=S(e,2),o=i[1];a=this.plugins.filter(function(w){return w.type==="before"});T.label=1;case 1:T.trys.push([1,6,7,8]);l=G(a),u=l.next();T.label=2;case 2:if(!!u.done)return[3,5];y=u.value;if(!y.execute){return[3,4]}return[4,y.execute(h({},n))];case 3:g=T.sent();if(g===null){o({event:n,code:0,message:""});return[2]}else{n=g}T.label=4;case 4:u=l.next();return[3,2];case 5:return[3,8];case 6:s=T.sent();C={error:s};return[3,8];case 7:try{if(u&&!u.done&&(I=l.return))I.call(l)}finally{if(C)throw C.error}return[7];case 8:c=this.plugins.filter(function(w){return w.type==="enrichment"||w.type===void 0});T.label=9;case 9:T.trys.push([9,14,15,16]);f=G(c),v=f.next();T.label=10;case 10:if(!!v.done)return[3,13];y=v.value;if(!y.execute){return[3,12]}return[4,y.execute(h({},n))];case 11:g=T.sent();if(g===null){o({event:n,code:0,message:""});return[2]}else{n=g}T.label=12;case 12:v=f.next();return[3,10];case 13:return[3,16];case 14:E=T.sent();L={error:E};return[3,16];case 15:try{if(v&&!v.done&&(F=f.return))F.call(f)}finally{if(L)throw L.error}return[7];case 16:m=this.plugins.filter(function(w){return w.type==="destination"});_=m.map(function(w){var k=h({},n);return w.execute(k).catch(function(M){return $(k,0,String(M))})});void Promise.all(_).then(function(w){var k=S(w,1),M=k[0];var Q=M||$(n,100,"Event not tracked, no destination plugins on the instance");o(Q)});return[2]}})})};t.prototype.flush=function(){return d(this,void 0,void 0,function(){var e,r,n;var i=this;return p(this,function(o){switch(o.label){case 0:e=this.queue;this.queue=[];return[4,Promise.all(e.map(function(a){return i.apply(a)}))];case 1:o.sent();r=this.plugins.filter(function(a){return a.type==="destination"});n=r.map(function(a){return a.flush&&a.flush()});return[4,Promise.all(n)];case 2:o.sent();return[2]}})})};return t}();var ze="-";var re="AMP";var Ze="".concat(re,"_unsent");var Je="https://api2.amplitude.com/2/httpapi";var nr="https://api.eu.amplitude.com/2/httpapi";var ir="https://api2.amplitude.com/batch";var or="https://api.eu.amplitude.com/batch";var Yr=1e3;var be=function(t){if(Object.keys(t).length>Yr){return false}for(var e in t){var r=t[e];if(!et(e,r))return false}return true};var et=function(t,e){var r,n;if(typeof t!=="string")return false;if(Array.isArray(e)){var i=true;try{for(var o=G(e),a=o.next();!a.done;a=o.next()){var l=a.value;if(Array.isArray(l)){return false}else if(typeof l==="object"){i=i&&be(l)}else if(!["number","string"].includes(typeof l)){return false}if(!i){return false}}}catch(u){r={error:u}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(r)throw r.error}}}else if(e===null||e===void 0){return false}else if(typeof e==="object"){return be(e)}else if(!["number","string","boolean"].includes(typeof e)){return false}return true};var z=function(){function t(){this._propertySet=new Set;this._properties={}}t.prototype.getUserProperties=function(){return h({},this._properties)};t.prototype.set=function(e,r){this._safeSet(D.SET,e,r);return this};t.prototype.setOnce=function(e,r){this._safeSet(D.SET_ONCE,e,r);return this};t.prototype.append=function(e,r){this._safeSet(D.APPEND,e,r);return this};t.prototype.prepend=function(e,r){this._safeSet(D.PREPEND,e,r);return this};t.prototype.postInsert=function(e,r){this._safeSet(D.POSTINSERT,e,r);return this};t.prototype.preInsert=function(e,r){this._safeSet(D.PREINSERT,e,r);return this};t.prototype.remove=function(e,r){this._safeSet(D.REMOVE,e,r);return this};t.prototype.add=function(e,r){this._safeSet(D.ADD,e,r);return this};t.prototype.unset=function(e){this._safeSet(D.UNSET,e,ze);return this};t.prototype.clearAll=function(){this._properties={};this._properties[D.CLEAR_ALL]=ze;return this};t.prototype._safeSet=function(e,r,n){if(this._validate(e,r,n)){var i=this._properties[e];if(i===void 0){i={};this._properties[e]=i}i[r]=n;this._propertySet.add(r);return true}return false};t.prototype._validate=function(e,r,n){if(this._properties[D.CLEAR_ALL]!==void 0){return false}if(this._propertySet.has(r)){return false}if(e===D.ADD){return typeof n==="number"}if(e!==D.UNSET&&e!==D.REMOVE){return et(r,n)}return true};return t}();var ar=function(t,e,r){var n=typeof t==="string"?{event_type:t}:t;return h(h(h({},n),r),e&&{event_properties:e})};var fe=function(t,e){var r=h(h({},e),{event_type:X.IDENTIFY,user_properties:t.getUserProperties()});return r};var sr=function(t,e,r,n){var i;var o=h(h({},n),{event_type:X.GROUP_IDENTIFY,group_properties:r.getUserProperties(),groups:(i={},i[t]=e,i)});return o};var ur=function(t,e,r){var n;var i=new z;i.set(t,e);var o=h(h({},r),{event_type:X.IDENTIFY,user_properties:i.getUserProperties(),groups:(n={},n[t]=e,n)});return o};var cr=function(t,e){return h(h({},e),{event_type:X.REVENUE,event_properties:t.getEventProperties()})};var B=function(t){return{promise:t||Promise.resolve()}};var tt=function(){function t(e){if(e===void 0){e="$default"}this.initializing=false;this.q=[];this.dispatchQ=[];this.logEvent=this.track.bind(this);this.timeline=new rr(this);this.name=e}t.prototype._init=function(e){return d(this,void 0,void 0,function(){return p(this,function(r){switch(r.label){case 0:this.config=e;this.timeline.reset(this);return[4,this.runQueuedFunctions("q")];case 1:r.sent();return[2]}})})};t.prototype.runQueuedFunctions=function(e){return d(this,void 0,void 0,function(){var r,n,i,o,a;var l,u;return p(this,function(s){switch(s.label){case 0:r=this[e];this[e]=[];s.label=1;case 1:s.trys.push([1,6,7,8]);n=G(r),i=n.next();s.label=2;case 2:if(!!i.done)return[3,5];o=i.value;return[4,o()];case 3:s.sent();s.label=4;case 4:i=n.next();return[3,2];case 5:return[3,8];case 6:a=s.sent();l={error:a};return[3,8];case 7:try{if(i&&!i.done&&(u=n.return))u.call(n)}finally{if(l)throw l.error}return[7];case 8:return[2]}})})};t.prototype.track=function(e,r,n){var i=ar(e,r,n);return B(this.dispatch(i))};t.prototype.identify=function(e,r){var n=fe(e,r);return B(this.dispatch(n))};t.prototype.groupIdentify=function(e,r,n,i){var o=sr(e,r,n,i);return B(this.dispatch(o))};t.prototype.setGroup=function(e,r,n){var i=ur(e,r,n);return B(this.dispatch(i))};t.prototype.revenue=function(e,r){var n=cr(e,r);return B(this.dispatch(n))};t.prototype.add=function(e){if(!this.config){this.q.push(this.add.bind(this,e));return B()}return B(this.timeline.register(e,this.config))};t.prototype.remove=function(e){if(!this.config){this.q.push(this.remove.bind(this,e));return B()}return B(this.timeline.deregister(e))};t.prototype.dispatchWithCallback=function(e,r){if(!this.config){return r($(e,0,tr))}void this.process(e).then(r)};t.prototype.dispatch=function(e){return d(this,void 0,void 0,function(){var r=this;return p(this,function(n){if(!this.config){return[2,new Promise(function(i){r.dispatchQ.push(r.dispatchWithCallback.bind(r,e,i))})]}return[2,this.process(e)]})})};t.prototype.process=function(e){return d(this,void 0,void 0,function(){var i,r,n,i;return p(this,function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);if(this.config.optOut){return[2,$(e,0,Zt)]}return[4,this.timeline.push(e)];case 1:i=o.sent();i.code===200?this.config.loggerProvider.log(i.message):i.code===100?this.config.loggerProvider.warn(i.message):this.config.loggerProvider.error(i.message);return[2,i];case 2:r=o.sent();n=String(r);this.config.loggerProvider.error(n);i=$(e,0,n);return[2,i];case 3:return[2]}})})};t.prototype.setOptOut=function(e){if(!this.config){this.q.push(this.setOptOut.bind(this,Boolean(e)));return}this.config.optOut=Boolean(e)};t.prototype.flush=function(){return B(this.timeline.flush())};return t}();var rt=function(){function t(){this.productId="";this.quantity=1;this.price=0}t.prototype.setProductId=function(e){this.productId=e;return this};t.prototype.setQuantity=function(e){if(e>0){this.quantity=e}return this};t.prototype.setPrice=function(e){this.price=e;return this};t.prototype.setRevenueType=function(e){this.revenueType=e;return this};t.prototype.setRevenue=function(e){this.revenue=e;return this};t.prototype.setEventProperties=function(e){if(be(e)){this.properties=e}return this};t.prototype.getEventProperties=function(){var e=this.properties?h({},this.properties):{};e[W.REVENUE_PRODUCT_ID]=this.productId;e[W.REVENUE_QUANTITY]=this.quantity;e[W.REVENUE_PRICE]=this.price;e[W.REVENUE_TYPE]=this.revenueType;e[W.REVENUE]=this.revenue;return e};return t}();var lr=function(t,e){var r=Math.max(e,1);return t.reduce(function(n,i,o){var a=Math.floor(o/r);if(!n[a]){n[a]=[]}n[a].push(i);return n},[])};var Ie="Amplitude Logger ";var de=function(){function t(){this.logLevel=U.None}t.prototype.disable=function(){this.logLevel=U.None};t.prototype.enable=function(e){if(e===void 0){e=U.Warn}this.logLevel=e};t.prototype.log=function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}if(this.logLevel<U.Verbose){return}console.log("".concat(Ie,"[Log]: ").concat(e.join(" ")))};t.prototype.warn=function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}if(this.logLevel<U.Warn){return}console.warn("".concat(Ie,"[Warn]: ").concat(e.join(" ")))};t.prototype.error=function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}if(this.logLevel<U.Error){return}console.error("".concat(Ie,"[Error]: ").concat(e.join(" ")))};t.prototype.debug=function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}if(this.logLevel<U.Debug){return}console.log("".concat(Ie,"[Debug]: ").concat(e.join(" ")))};return t}();var Te=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:"$default_instance",logLevel:U.Warn,loggerProvider:new de,offline:false,optOut:false,serverUrl:Je,serverZone:"US",useBatch:false}};var nt=function(){function t(e){var r,n,i,o;this._optOut=false;var a=Te();this.apiKey=e.apiKey;this.flushIntervalMillis=(r=e.flushIntervalMillis)!==null&&r!==void 0?r:a.flushIntervalMillis;this.flushMaxRetries=e.flushMaxRetries||a.flushMaxRetries;this.flushQueueSize=e.flushQueueSize||a.flushQueueSize;this.instanceName=e.instanceName||a.instanceName;this.loggerProvider=e.loggerProvider||a.loggerProvider;this.logLevel=(n=e.logLevel)!==null&&n!==void 0?n:a.logLevel;this.minIdLength=e.minIdLength;this.plan=e.plan;this.ingestionMetadata=e.ingestionMetadata;this.offline=e.offline!==void 0?e.offline:a.offline;this.optOut=(i=e.optOut)!==null&&i!==void 0?i:a.optOut;this.serverUrl=e.serverUrl;this.serverZone=e.serverZone||a.serverZone;this.storageProvider=e.storageProvider;this.transportProvider=e.transportProvider;this.useBatch=(o=e.useBatch)!==null&&o!==void 0?o:a.useBatch;this.loggerProvider.enable(this.logLevel);var l=it(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=l.serverZone;this.serverUrl=l.serverUrl}Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e},enumerable:false,configurable:true});return t}();var Xr=function(t,e){if(t==="EU"){return e?or:nr}return e?ir:Je};var it=function(t,e,r){if(t===void 0){t=""}if(e===void 0){e=Te().serverZone}if(r===void 0){r=Te().useBatch}if(t){return{serverUrl:t,serverZone:void 0}}var n=["US","EU"].includes(e)?e:Te().serverZone;return{serverZone:n,serverUrl:Xr(n,r)}};function zr(t){if(t instanceof Error)return t.message;return String(t)}function we(t){var e="";try{if("body"in t){e=JSON.stringify(t.body,null,2)}}catch(r){}return e}var ot=function(){function t(){this.name="amplitude";this.type="destination";this.retryTimeout=1e3;this.throttleTimeout=3e4;this.storageKey="";this.scheduled=null;this.queue=[]}t.prototype.setup=function(e){var r;return d(this,void 0,void 0,function(){var n;var i=this;return p(this,function(o){switch(o.label){case 0:this.config=e;this.storageKey="".concat(Ze,"_").concat(this.config.apiKey.substring(0,10));return[4,(r=this.config.storageProvider)===null||r===void 0?void 0:r.get(this.storageKey)];case 1:n=o.sent();this.saveEvents();if(n&&n.length>0){void Promise.all(n.map(function(a){return i.execute(a)})).catch()}return[2,Promise.resolve(void 0)]}})})};t.prototype.execute=function(e){var r=this;return new Promise(function(n){var i={event:e,attempts:0,callback:function(o){return n(o)},timeout:0};void r.addToQueue(i)})};t.prototype.addToQueue=function(){var e=this;var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}var i=r.filter(function(o){if(o.attempts<e.config.flushMaxRetries){o.attempts+=1;return true}void e.fulfillRequest([o],500,zt);return false});i.forEach(function(o){e.queue=e.queue.concat(o);if(o.timeout===0){e.schedule(e.config.flushIntervalMillis);return}setTimeout(function(){o.timeout=0;e.schedule(0)},o.timeout)});this.saveEvents()};t.prototype.schedule=function(e){var r=this;if(this.scheduled||this.config.offline){return}this.scheduled=setTimeout(function(){void r.flush(true).then(function(){if(r.queue.length>0){r.schedule(e)}})},e)};t.prototype.flush=function(e){if(e===void 0){e=false}return d(this,void 0,void 0,function(){var r,n,i;var o=this;return p(this,function(a){switch(a.label){case 0:if(this.config.offline){this.config.loggerProvider.debug("Skipping flush while offline.");return[2]}r=[];n=[];this.queue.forEach(function(l){return l.timeout===0?r.push(l):n.push(l)});this.queue=n;if(this.scheduled){clearTimeout(this.scheduled);this.scheduled=null}i=lr(r,this.config.flushQueueSize);return[4,Promise.all(i.map(function(l){return o.send(l,e)}))];case 1:a.sent();return[2]}})})};t.prototype.send=function(e,r){if(r===void 0){r=true}return d(this,void 0,void 0,function(){var n,i,o,a,l;return p(this,function(u){switch(u.label){case 0:if(!this.config.apiKey){return[2,this.fulfillRequest(e,400,Jt)]}n={api_key:this.config.apiKey,events:e.map(function(s){var c=s.event,f=c.extra,v=le(c,["extra"]);return v}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString()};u.label=1;case 1:u.trys.push([1,3,,4]);i=it(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl;return[4,this.config.transportProvider.send(i,n)];case 2:o=u.sent();if(o===null){this.fulfillRequest(e,0,Xt);return[2]}if(!r){if("body"in o){this.fulfillRequest(e,o.statusCode,"".concat(o.status,": ").concat(we(o)))}else{this.fulfillRequest(e,o.statusCode,o.status)}return[2]}this.handleResponse(o,e);return[3,4];case 3:a=u.sent();l=zr(a);this.config.loggerProvider.error(l);this.fulfillRequest(e,0,l);return[3,4];case 4:return[2]}})})};t.prototype.handleResponse=function(e,r){var n=e.status;switch(n){case x.Success:{this.handleSuccessResponse(e,r);break}case x.Invalid:{this.handleInvalidResponse(e,r);break}case x.PayloadTooLarge:{this.handlePayloadTooLargeResponse(e,r);break}case x.RateLimit:{this.handleRateLimitResponse(e,r);break}default:{this.config.loggerProvider.warn(\`{code: 0, error: "Status '\`.concat(n,"' provided for ").concat(r.length,' events"}'));this.handleOtherResponse(r);break}}};t.prototype.handleSuccessResponse=function(e,r){this.fulfillRequest(r,e.statusCode,Yt)};t.prototype.handleInvalidResponse=function(e,r){var n=this;if(e.body.missingField||e.body.error.startsWith(er)){this.fulfillRequest(r,e.statusCode,e.body.error);return}var i=q(q(q(q([],S(Object.values(e.body.eventsWithInvalidFields)),false),S(Object.values(e.body.eventsWithMissingFields)),false),S(Object.values(e.body.eventsWithInvalidIdLengths)),false),S(e.body.silencedEvents),false).flat();var o=new Set(i);var a=r.filter(function(l,u){if(o.has(u)){n.fulfillRequest([l],e.statusCode,e.body.error);return}return true});if(a.length>0){this.config.loggerProvider.warn(we(e))}this.addToQueue.apply(this,q([],S(a),false))};t.prototype.handlePayloadTooLargeResponse=function(e,r){if(r.length===1){this.fulfillRequest(r,e.statusCode,e.body.error);return}this.config.loggerProvider.warn(we(e));this.config.flushQueueSize/=2;this.addToQueue.apply(this,q([],S(r),false))};t.prototype.handleRateLimitResponse=function(e,r){var n=this;var i=Object.keys(e.body.exceededDailyQuotaUsers);var o=Object.keys(e.body.exceededDailyQuotaDevices);var a=e.body.throttledEvents;var l=new Set(i);var u=new Set(o);var s=new Set(a);var c=r.filter(function(f,v){if(f.event.user_id&&l.has(f.event.user_id)||f.event.device_id&&u.has(f.event.device_id)){n.fulfillRequest([f],e.statusCode,e.body.error);return}if(s.has(v)){f.timeout=n.throttleTimeout}return true});if(c.length>0){this.config.loggerProvider.warn(we(e))}this.addToQueue.apply(this,q([],S(c),false))};t.prototype.handleOtherResponse=function(e){var r=this;this.addToQueue.apply(this,q([],S(e.map(function(n){n.timeout=n.attempts*r.retryTimeout;return n})),false))};t.prototype.fulfillRequest=function(e,r,n){this.saveEvents();e.forEach(function(i){return i.callback($(i.event,r,n))})};t.prototype.saveEvents=function(){if(!this.config.storageProvider){return}var e=Array.from(this.queue.map(function(r){return r.event}));void this.config.storageProvider.set(this.storageKey,e)};return t}();var Zr=function(t){if(t===void 0){t=0}var e=new Error().stack||"";return e.split("\\n").slice(2+t).map(function(r){return r.trim()})};var P=function(t){return function(){var e=h({},t.config),r=e.loggerProvider,n=e.logLevel;return{logger:r,logLevel:n}}};var Jr=function(t,e){var r,n;e=e.replace(/\\[(\\w+)\\]/g,".$1");e=e.replace(/^\\./,"");try{for(var i=G(e.split(".")),o=i.next();!o.done;o=i.next()){var a=o.value;if(a in t){t=t[a]}else{return}}}catch(l){r={error:l}}finally{try{if(o&&!o.done&&(n=i.return))n.call(i)}finally{if(r)throw r.error}}return t};var R=function(t,e){return function(){var r,n;var i={};try{for(var o=G(e),a=o.next();!a.done;a=o.next()){var l=a.value;i[l]=Jr(t,l)}}catch(u){r={error:u}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(r)throw r.error}}return i}};var A=function(t,e,r,n,i){if(i===void 0){i=null}return function(){var o=[];for(var a=0;a<arguments.length;a++){o[a]=arguments[a]}var l=r(),u=l.logger,s=l.logLevel;if(s&&s<U.Debug||!s||!u){return t.apply(i,o)}var c={type:"invoke public method",name:e,args:o,stacktrace:Zr(1),time:{start:new Date().toISOString()},states:{}};if(n&&c.states){c.states.before=n()}var f=t.apply(i,o);if(f&&f.promise){f.promise.then(function(){if(n&&c.states){c.states.after=n()}if(c.time){c.time.end=new Date().toISOString()}u.debug(JSON.stringify(c,null,2))})}else{if(n&&c.states){c.states.after=n()}if(c.time){c.time.end=new Date().toISOString()}u.debug(JSON.stringify(c,null,2))}return f}};var Se=function(){function t(){this.memoryStorage=new Map}t.prototype.isEnabled=function(){return d(this,void 0,void 0,function(){return p(this,function(e){return[2,true]})})};t.prototype.get=function(e){return d(this,void 0,void 0,function(){return p(this,function(r){return[2,this.memoryStorage.get(e)]})})};t.prototype.getRaw=function(e){return d(this,void 0,void 0,function(){var r;return p(this,function(n){switch(n.label){case 0:return[4,this.get(e)];case 1:r=n.sent();return[2,r?JSON.stringify(r):void 0]}})})};t.prototype.set=function(e,r){return d(this,void 0,void 0,function(){return p(this,function(n){this.memoryStorage.set(e,r);return[2]})})};t.prototype.remove=function(e){return d(this,void 0,void 0,function(){return p(this,function(r){this.memoryStorage.delete(e);return[2]})})};t.prototype.reset=function(){return d(this,void 0,void 0,function(){return p(this,function(e){this.memoryStorage.clear();return[2]})})};return t}();var ne=function(){function t(){}t.prototype.send=function(e,r){return Promise.resolve(null)};t.prototype.buildResponse=function(e){var r,n,i,o,a,l,u,s,c,f,v,y,g,E,m,_,C,I,L,F,T,w;if(typeof e!=="object"){return null}var k=e.code||0;var M=this.buildStatus(k);switch(M){case x.Success:return{status:M,statusCode:k,body:{eventsIngested:(r=e.events_ingested)!==null&&r!==void 0?r:0,payloadSizeBytes:(n=e.payload_size_bytes)!==null&&n!==void 0?n:0,serverUploadTime:(i=e.server_upload_time)!==null&&i!==void 0?i:0}};case x.Invalid:return{status:M,statusCode:k,body:{error:(o=e.error)!==null&&o!==void 0?o:"",missingField:(a=e.missing_field)!==null&&a!==void 0?a:"",eventsWithInvalidFields:(l=e.events_with_invalid_fields)!==null&&l!==void 0?l:{},eventsWithMissingFields:(u=e.events_with_missing_fields)!==null&&u!==void 0?u:{},eventsWithInvalidIdLengths:(s=e.events_with_invalid_id_lengths)!==null&&s!==void 0?s:{},epsThreshold:(c=e.eps_threshold)!==null&&c!==void 0?c:0,exceededDailyQuotaDevices:(f=e.exceeded_daily_quota_devices)!==null&&f!==void 0?f:{},silencedDevices:(v=e.silenced_devices)!==null&&v!==void 0?v:[],silencedEvents:(y=e.silenced_events)!==null&&y!==void 0?y:[],throttledDevices:(g=e.throttled_devices)!==null&&g!==void 0?g:{},throttledEvents:(E=e.throttled_events)!==null&&E!==void 0?E:[]}};case x.PayloadTooLarge:return{status:M,statusCode:k,body:{error:(m=e.error)!==null&&m!==void 0?m:""}};case x.RateLimit:return{status:M,statusCode:k,body:{error:(_=e.error)!==null&&_!==void 0?_:"",epsThreshold:(C=e.eps_threshold)!==null&&C!==void 0?C:0,throttledDevices:(I=e.throttled_devices)!==null&&I!==void 0?I:{},throttledUsers:(L=e.throttled_users)!==null&&L!==void 0?L:{},exceededDailyQuotaDevices:(F=e.exceeded_daily_quota_devices)!==null&&F!==void 0?F:{},exceededDailyQuotaUsers:(T=e.exceeded_daily_quota_users)!==null&&T!==void 0?T:{},throttledEvents:(w=e.throttled_events)!==null&&w!==void 0?w:[]}};case x.Timeout:default:return{status:M,statusCode:k}}};t.prototype.buildStatus=function(e){if(e>=200&&e<300){return x.Success}if(e===429){return x.RateLimit}if(e===413){return x.PayloadTooLarge}if(e===408){return x.Timeout}if(e>=400&&e<500){return x.Invalid}if(e>=500){return x.Failed}return x.Unknown};return t}();var N=function(){if(typeof globalThis!=="undefined"){return globalThis}if(typeof window!=="undefined"){return window}if(typeof self!=="undefined"){return self}if(typeof global!=="undefined"){return global}return void 0};var ae=function(){var t;var e=N();if(!((t=e===null||e===void 0?void 0:e.location)===null||t===void 0?void 0:t.search)){return{}}var r=e.location.search.substring(1).split("&").filter(Boolean);var n=r.reduce(function(i,o){var a=o.split("=",2);var l=fr(a[0]);var u=fr(a[1]);if(!u){return i}i[l]=u;return i},{});return n};var fr=function(t){if(t===void 0){t=""}try{return decodeURIComponent(t)}catch(e){return""}};var dr="utm_campaign";var pr="utm_content";var vr="utm_id";var hr="utm_medium";var gr="utm_source";var mr="utm_term";var at="dclid";var st="fbclid";var ut="gbraid";var ct="gclid";var lt="ko_click_id";var ft="li_fat_id";var dt="msclkid";var pt="rtd_cid";var vt="ttclid";var ht="twclid";var gt="wbraid";var ie={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0};var pe=function(){function t(){}t.prototype.parse=function(){return d(this,void 0,void 0,function(){return p(this,function(e){return[2,h(h(h(h({},ie),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})};t.prototype.getUtmParam=function(){var e=ae();var r=e[dr];var n=e[pr];var i=e[vr];var o=e[hr];var a=e[gr];var l=e[mr];return{utm_campaign:r,utm_content:n,utm_id:i,utm_medium:o,utm_source:a,utm_term:l}};t.prototype.getReferrer=function(){var e,r;var n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0;n.referring_domain=(r=(e=n.referrer)===null||e===void 0?void 0:e.split("/")[2])!==null&&r!==void 0?r:void 0}catch(i){}return n};t.prototype.getClickIds=function(){var e;var r=ae();return e={},e[at]=r[at],e[st]=r[st],e[ut]=r[ut],e[ct]=r[ct],e[lt]=r[lt],e[ft]=r[ft],e[dt]=r[dt],e[pt]=r[pt],e[vt]=r[vt],e[ht]=r[ht],e[gt]=r[gt],e};return t}();var xe=function(t,e,r){if(e===void 0){e=""}if(r===void 0){r=10}return[re,e,t.substring(0,r)].filter(Boolean).join("_")};var mt=function(t){return"".concat(re.toLowerCase(),"_").concat(t.substring(0,6))};var ve=function(t,e){if(e===void 0){e=Date.now()}var r=Date.now();var n=r-e;return n>t};var he=function(){function t(e){this.options=h({},e)}t.prototype.isEnabled=function(){return d(this,void 0,void 0,function(){var e,r,n,i;return p(this,function(o){switch(o.label){case 0:if(!N()){return[2,false]}t.testValue=String(Date.now());e=new t(this.options);r="AMP_TEST";o.label=1;case 1:o.trys.push([1,4,5,7]);return[4,e.set(r,t.testValue)];case 2:o.sent();return[4,e.get(r)];case 3:n=o.sent();return[2,n===t.testValue];case 4:i=o.sent();return[2,false];case 5:return[4,e.remove(r)];case 6:o.sent();return[7];case 7:return[2]}})})};t.prototype.get=function(e){return d(this,void 0,void 0,function(){var r;return p(this,function(n){switch(n.label){case 0:return[4,this.getRaw(e)];case 1:r=n.sent();if(!r){return[2,void 0]}try{try{r=decodeURIComponent(atob(r))}catch(i){}return[2,JSON.parse(r)]}catch(i){return[2,void 0]}return[2]}})})};t.prototype.getRaw=function(e){var r,n;return d(this,void 0,void 0,function(){var i,o,a;return p(this,function(l){i=N();o=(n=(r=i===null||i===void 0?void 0:i.document)===null||r===void 0?void 0:r.cookie.split("; "))!==null&&n!==void 0?n:[];a=o.find(function(u){return u.indexOf(e+"=")===0});if(!a){return[2,void 0]}return[2,a.substring(e.length+1)]})})};t.prototype.set=function(e,r){var n;return d(this,void 0,void 0,function(){var i,o,a,l,u,s;return p(this,function(c){try{i=(n=this.options.expirationDays)!==null&&n!==void 0?n:0;o=r!==null?i:-1;a=void 0;if(o){l=new Date;l.setTime(l.getTime()+o*24*60*60*1e3);a=l}u="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(r))));if(a){u+="; expires=".concat(a.toUTCString())}u+="; path=/";if(this.options.domain){u+="; domain=".concat(this.options.domain)}if(this.options.secure){u+="; Secure"}if(this.options.sameSite){u+="; SameSite=".concat(this.options.sameSite)}s=N();if(s){s.document.cookie=u}}catch(f){}return[2]})})};t.prototype.remove=function(e){return d(this,void 0,void 0,function(){return p(this,function(r){switch(r.label){case 0:return[4,this.set(e,null)];case 1:r.sent();return[2]}})})};t.prototype.reset=function(){return d(this,void 0,void 0,function(){return p(this,function(e){return[2]})})};return t}();var yt=function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.send=function(r,n){return d(this,void 0,void 0,function(){var i,o,a;return p(this,function(l){switch(l.label){case 0:if(typeof fetch==="undefined"){throw new Error("FetchTransport is not supported")}i={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(n),method:"POST"};return[4,fetch(r,i)];case 1:o=l.sent();return[4,o.json()];case 2:a=l.sent();return[2,this.buildResponse(a)]}})})};return e}(ne);var en=function(){function t(){}t.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:tn(),platform:"Web",os:void 0,deviceModel:void 0}};return t}();var tn=function(){return typeof navigator!=="undefined"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""};var rn=function(){function t(){this.queue=[]}t.prototype.logEvent=function(e){if(!this.receiver){if(this.queue.length<512){this.queue.push(e)}}else{this.receiver(e)}};t.prototype.setEventReceiver=function(e){this.receiver=e;if(this.queue.length>0){this.queue.forEach(function(r){e(r)});this.queue=[]}};return t}();var Z=function(){Z=Object.assign||function t(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o))e[o]=r[o]}return e};return Z.apply(this,arguments)};var Pe=function(t,e){var r=["string","number","boolean","undefined"];var n=typeof t;var i=typeof e;if(n!==i){return false}for(var o=0,a=r;o<a.length;o++){var l=a[o];if(l===n){return t===e}}if(t==null&&e==null){return true}else if(t==null||e==null){return false}if(t.length!==e.length){return false}var u=Array.isArray(t);var s=Array.isArray(e);if(u!==s){return false}if(u&&s){for(var c=0;c<t.length;c++){if(!Pe(t[c],e[c])){return false}}}else{var f=Object.keys(t).sort();var v=Object.keys(e).sort();if(!Pe(f,v)){return false}var y=true;Object.keys(t).forEach(function(g){if(!Pe(t[g],e[g])){y=false}});return y}return true};var nn="$set";var on="$unset";var an="$clearAll";if(!Object.entries){Object.entries=function(t){var e=Object.keys(t);var r=e.length;var n=new Array(r);while(r--){n[r]=[e[r],t[e[r]]]}return n}}var sn=function(){function t(){this.identity={userProperties:{}};this.listeners=new Set}t.prototype.editIdentity=function(){var e=this;var r=Z({},this.identity.userProperties);var n=Z(Z({},this.identity),{userProperties:r});return{setUserId:function(i){n.userId=i;return this},setDeviceId:function(i){n.deviceId=i;return this},setUserProperties:function(i){n.userProperties=i;return this},setOptOut:function(i){n.optOut=i;return this},updateUserProperties:function(i){var o=n.userProperties||{};for(var a=0,l=Object.entries(i);a<l.length;a++){var u=l[a],s=u[0],c=u[1];switch(s){case nn:for(var f=0,v=Object.entries(c);f<v.length;f++){var y=v[f],g=y[0],E=y[1];o[g]=E}break;case on:for(var m=0,_=Object.keys(c);m<_.length;m++){var g=_[m];delete o[g]}break;case an:o={};break}}n.userProperties=o;return this},commit:function(){e.setIdentity(n);return this}}};t.prototype.getIdentity=function(){return Z({},this.identity)};t.prototype.setIdentity=function(e){var r=Z({},this.identity);this.identity=Z({},e);if(!Pe(r,this.identity)){this.listeners.forEach(function(n){n(e)})}};t.prototype.addIdentityListener=function(e){this.listeners.add(e)};t.prototype.removeIdentityListener=function(e){this.listeners.delete(e)};return t}();var ge=typeof globalThis!=="undefined"?globalThis:typeof global!=="undefined"?global:self;var yr=function(){function t(){this.identityStore=new sn;this.eventBridge=new rn;this.applicationContextProvider=new en}t.getInstance=function(e){if(!ge["analyticsConnectorInstances"]){ge["analyticsConnectorInstances"]={}}if(!ge["analyticsConnectorInstances"][e]){ge["analyticsConnectorInstances"][e]=new t}return ge["analyticsConnectorInstances"][e]};return t}();var J=function(t){if(t===void 0){t="$default_instance"}return yr.getInstance(t)};var _t=function(t,e){J(e).identityStore.editIdentity().setUserId(t).commit()};var Et=function(t,e){J(e).identityStore.editIdentity().setDeviceId(t).commit()};var bt=function(){function t(){this.name="identity";this.type="before";this.identityStore=J().identityStore}t.prototype.execute=function(e){return d(this,void 0,void 0,function(){var r;return p(this,function(n){r=e.user_properties;if(r){this.identityStore.editIdentity().updateUserProperties(r).commit()}return[2,e]})})};t.prototype.setup=function(e){return d(this,void 0,void 0,function(){return p(this,function(r){if(e.instanceName){this.identityStore=J(e.instanceName).identityStore}return[2]})})};return t}();var It=function(){var t,e,r,n;if(typeof navigator==="undefined")return"";var i=navigator.userLanguage;return(n=(r=(e=(t=navigator.languages)===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:navigator.language)!==null&&r!==void 0?r:i)!==null&&n!==void 0?n:""};var me=function(t,e){if(typeof t==="boolean"){return t}if((t===null||t===void 0?void 0:t[e])===false){return false}return true};var Re=function(t){return me(t,"attribution")};var Tt=function(t){return me(t,"fileDownloads")};var wt=function(t){return me(t,"formInteractions")};var Ae=function(t){return me(t,"pageViews")};var St=function(t){return me(t,"sessions")};var xt=function(t){var e=function(){return false};var r=void 0;var n;var i=t.pageCounter;var o=Ae(t.defaultTracking);if(o){e=void 0;n=void 0;if(t.defaultTracking&&typeof t.defaultTracking==="object"&&t.defaultTracking.pageViews&&typeof t.defaultTracking.pageViews==="object"){if("trackOn"in t.defaultTracking.pageViews){e=t.defaultTracking.pageViews.trackOn}if("trackHistoryChanges"in t.defaultTracking.pageViews){r=t.defaultTracking.pageViews.trackHistoryChanges}if("eventType"in t.defaultTracking.pageViews&&t.defaultTracking.pageViews.eventType){n=t.defaultTracking.pageViews.eventType}}}return{trackOn:e,trackHistoryChanges:r,eventType:n,pageCounter:i}};var Pt=function(t){if(Re(t.defaultTracking)&&t.defaultTracking&&typeof t.defaultTracking==="object"&&t.defaultTracking.attribution&&typeof t.defaultTracking.attribution==="object"){return h({},t.defaultTracking.attribution)}return{}};var Ce=function(t,e){for(var r=0;r<e.length;r++){var n=e[r],i=n.name,o=n.args,a=n.resolve;var l=t&&t[i];if(typeof l==="function"){var u=l.apply(t,o);if(typeof a==="function"){a(u===null||u===void 0?void 0:u.promise)}}}return t};var De=function(t){var e=t;return e&&e._q!==void 0};var _r="2.5.2";var un="Web";var cn="$remote";var Er=function(){function t(){this.name="@amplitude/plugin-context-browser";this.type="before";this.library="amplitude-ts/".concat(_r);if(typeof navigator!=="undefined"){this.userAgent=navigator.userAgent}}t.prototype.setup=function(e){this.config=e;return Promise.resolve(void 0)};t.prototype.execute=function(e){var r,n;return d(this,void 0,void 0,function(){var i,o,a,l;return p(this,function(u){i=new Date().getTime();o=(r=this.config.lastEventId)!==null&&r!==void 0?r:-1;a=(n=e.event_id)!==null&&n!==void 0?n:o+1;this.config.lastEventId=a;if(!e.time){this.config.lastEventTime=i}l=h(h(h(h(h(h(h(h({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:i},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:un}),this.config.trackingOptions.language&&{language:It()}),this.config.trackingOptions.ipAddress&&{ip:cn}),{insert_id:K(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:a,library:this.library,user_agent:this.userAgent});return[2,l]})})};return t}();var Oe=function(){function t(e){this.storage=e}t.prototype.isEnabled=function(){return d(this,void 0,void 0,function(){var e,r,n,i,o;return p(this,function(a){switch(a.label){case 0:if(!this.storage){return[2,false]}e=String(Date.now());r=new t(this.storage);n="AMP_TEST";a.label=1;case 1:a.trys.push([1,4,5,7]);return[4,r.set(n,e)];case 2:a.sent();return[4,r.get(n)];case 3:i=a.sent();return[2,i===e];case 4:o=a.sent();return[2,false];case 5:return[4,r.remove(n)];case 6:a.sent();return[7];case 7:return[2]}})})};t.prototype.get=function(e){return d(this,void 0,void 0,function(){var r,n;return p(this,function(i){switch(i.label){case 0:i.trys.push([0,2,,3]);return[4,this.getRaw(e)];case 1:r=i.sent();if(!r){return[2,void 0]}return[2,JSON.parse(r)];case 2:n=i.sent();console.error("[Amplitude] Error: Could not get value from storage");return[2,void 0];case 3:return[2]}})})};t.prototype.getRaw=function(e){var r;return d(this,void 0,void 0,function(){return p(this,function(n){return[2,((r=this.storage)===null||r===void 0?void 0:r.getItem(e))||void 0]})})};t.prototype.set=function(e,r){var n;return d(this,void 0,void 0,function(){return p(this,function(i){try{(n=this.storage)===null||n===void 0?void 0:n.setItem(e,JSON.stringify(r))}catch(o){}return[2]})})};t.prototype.remove=function(e){var r;return d(this,void 0,void 0,function(){return p(this,function(n){try{(r=this.storage)===null||r===void 0?void 0:r.removeItem(e)}catch(i){}return[2]})})};t.prototype.reset=function(){var e;return d(this,void 0,void 0,function(){return p(this,function(r){try{(e=this.storage)===null||e===void 0?void 0:e.clear()}catch(n){}return[2]})})};return t}();var Le=1e3;var Rt=function(t){V(e,t);function e(r){var n=this;var i;n=t.call(this,(i=N())===null||i===void 0?void 0:i.localStorage)||this;n.loggerProvider=r===null||r===void 0?void 0:r.loggerProvider;return n}e.prototype.set=function(r,n){var i;return d(this,void 0,void 0,function(){var o;return p(this,function(a){switch(a.label){case 0:if(!(Array.isArray(n)&&n.length>Le))return[3,2];o=n.length-Le;return[4,t.prototype.set.call(this,r,n.slice(0,Le))];case 1:a.sent();(i=this.loggerProvider)===null||i===void 0?void 0:i.error("Failed to save ".concat(o," events because the queue length exceeded ").concat(Le,"."));return[3,4];case 2:return[4,t.prototype.set.call(this,r,n)];case 3:a.sent();a.label=4;case 4:return[2]}})})};return e}(Oe);var br=function(t){V(e,t);function e(){var r;return t.call(this,(r=N())===null||r===void 0?void 0:r.sessionStorage)||this}return e}(Oe);var Ir=function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;r.state={done:4};return r}e.prototype.send=function(r,n){return d(this,void 0,void 0,function(){var i=this;return p(this,function(o){return[2,new Promise(function(a,l){if(typeof XMLHttpRequest==="undefined"){l(new Error("XHRTransport is not supported."))}var u=new XMLHttpRequest;u.open("POST",r,true);u.onreadystatechange=function(){if(u.readyState===i.state.done){try{var s=u.responseText;var c=JSON.parse(s);var f=i.buildResponse(c);a(f)}catch(v){l(v)}}};u.setRequestHeader("Content-Type","application/json");u.setRequestHeader("Accept","*/*");u.send(JSON.stringify(n))})]})})};return e}(ne);var Tr=function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.send=function(r,n){return d(this,void 0,void 0,function(){var i=this;return p(this,function(o){return[2,new Promise(function(a,l){var u=N();if(!(u===null||u===void 0?void 0:u.navigator.sendBeacon)){throw new Error("SendBeaconTransport is not supported")}try{var s=JSON.stringify(n);var c=u.navigator.sendBeacon(r,JSON.stringify(n));if(c){return a(i.buildResponse({code:200,events_ingested:n.events.length,payload_size_bytes:s.length,server_upload_time:Date.now()}))}return a(i.buildResponse({code:500}))}catch(f){l(f)}})]})})};return e}(ne);var wr=function(t,e,r){if(r===void 0){r=true}return d(void 0,void 0,void 0,function(){var n,i,o,a,l,u,s,c,f;return p(this,function(v){switch(v.label){case 0:n=mt(t);return[4,e.getRaw(n)];case 1:i=v.sent();if(!i){return[2,{optOut:false}]}if(!r)return[3,3];return[4,e.remove(n)];case 2:v.sent();v.label=3;case 3:o=S(i.split("."),6),a=o[0],l=o[1],u=o[2],s=o[3],c=o[4],f=o[5];return[2,{deviceId:a,userId:ln(l),sessionId:At(s),lastEventId:At(f),lastEventTime:At(c),optOut:Boolean(u)}]}})})};var At=function(t){var e=parseInt(t,32);if(isNaN(e)){return void 0}return e};var ln=function(t){if(!atob||!escape||!t){return void 0}try{return decodeURIComponent(escape(atob(t)))}catch(e){return void 0}};var j="[Amplitude]";var da="".concat(j," Page Viewed");var Ct="".concat(j," Form Started");var Sr="".concat(j," Form Submitted");var xr="".concat(j," File Downloaded");var Dt="session_start";var Ot="session_end";var Pr="".concat(j," File Extension");var Rr="".concat(j," File Name");var Ar="".concat(j," Link ID");var Cr="".concat(j," Link Text");var Dr="".concat(j," Link URL");var ke="".concat(j," Form ID");var Ue="".concat(j," Form Name");var Ne="".concat(j," Form Destination");var ye="cookie";var Or="US";var fn=function(t){V(e,t);function e(r,n,i,o,a,l,u,s,c,f,v,y,g,E,m,_,C,I,L,F,T,w,k,M,Q,H,ee,Y,te,ue,ce){if(i===void 0){i=new Se}if(o===void 0){o={domain:"",expiration:365,sameSite:"Lax",secure:false,upgrade:true}}if(u===void 0){u=1e3}if(s===void 0){s=5}if(c===void 0){c=30}if(f===void 0){f=ye}if(m===void 0){m=new de}if(_===void 0){_=U.Warn}if(I===void 0){I=false}if(L===void 0){L=false}if(w===void 0){w=""}if(k===void 0){k=Or}if(Q===void 0){Q=30*60*1e3}if(H===void 0){H=new Rt({loggerProvider:m})}if(ee===void 0){ee={ipAddress:true,language:true,platform:true}}if(Y===void 0){Y="fetch"}if(te===void 0){te=false}var b=t.call(this,{apiKey:r,storageProvider:H,transportProvider:Lt(Y)})||this;b.apiKey=r;b.appVersion=n;b.cookieOptions=o;b.defaultTracking=a;b.flushIntervalMillis=u;b.flushMaxRetries=s;b.flushQueueSize=c;b.identityStorage=f;b.ingestionMetadata=v;b.instanceName=y;b.loggerProvider=m;b.logLevel=_;b.minIdLength=C;b.offline=I;b.partnerId=F;b.plan=T;b.serverUrl=w;b.serverZone=k;b.sessionTimeout=Q;b.storageProvider=H;b.trackingOptions=ee;b.transport=Y;b.useBatch=te;b._optOut=false;b._cookieStorage=i;b.deviceId=l;b.lastEventId=g;b.lastEventTime=E;b.optOut=L;b.sessionId=M;b.pageCounter=ce;b.userId=ue;b.loggerProvider.enable(b.logLevel);return b}Object.defineProperty(e.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(r){if(this._cookieStorage!==r){this._cookieStorage=r;this.updateStorage()}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"deviceId",{get:function(){return this._deviceId},set:function(r){if(this._deviceId!==r){this._deviceId=r;this.updateStorage()}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"userId",{get:function(){return this._userId},set:function(r){if(this._userId!==r){this._userId=r;this.updateStorage()}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"sessionId",{get:function(){return this._sessionId},set:function(r){if(this._sessionId!==r){this._sessionId=r;this.updateStorage()}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(r){if(this._optOut!==r){this._optOut=r;this.updateStorage()}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(r){if(this._lastEventTime!==r){this._lastEventTime=r;this.updateStorage()}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(r){if(this._lastEventId!==r){this._lastEventId=r;this.updateStorage()}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(r){if(this._pageCounter!==r){this._pageCounter=r;this.updateStorage()}},enumerable:false,configurable:true});e.prototype.updateStorage=function(){var r={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter};void this.cookieStorage.set(xe(this.apiKey),r)};return e}(nt);var Lr=function(t,e,r){if(e===void 0){e={}}return d(void 0,void 0,void 0,function(){var n,i,o,a,l,u,s,c,f,v,y,g,E,m,_,C;var I;var L,F,T,w,k,M,Q,H,ee,Y,te,ue,ce,b,Me,Fe,Ve,Be,qe,je,Ge,Ke,Qe;return p(this,function(oe){switch(oe.label){case 0:n=e.identityStorage||ye;I={};if(!(n!==ye))return[3,1];o="";return[3,5];case 1:if(!((F=(L=e.cookieOptions)===null||L===void 0?void 0:L.domain)!==null&&F!==void 0))return[3,2];a=F;return[3,4];case 2:return[4,pn()];case 3:a=oe.sent();oe.label=4;case 4:o=a;oe.label=5;case 5:i=h.apply(void 0,[(I.domain=o,I.expiration=365,I.sameSite="Lax",I.secure=false,I.upgrade=true,I),e.cookieOptions]);l=dn(e.identityStorage,i);return[4,wr(t,l,(w=(T=e.cookieOptions)===null||T===void 0?void 0:T.upgrade)!==null&&w!==void 0?w:true)];case 6:u=oe.sent();return[4,l.get(xe(t))];case 7:s=oe.sent();c=ae();f=(H=(Q=(M=(k=e.deviceId)!==null&&k!==void 0?k:c.deviceId)!==null&&M!==void 0?M:s===null||s===void 0?void 0:s.deviceId)!==null&&Q!==void 0?Q:u.deviceId)!==null&&H!==void 0?H:K();v=(ee=s===null||s===void 0?void 0:s.lastEventId)!==null&&ee!==void 0?ee:u.lastEventId;y=(Y=s===null||s===void 0?void 0:s.lastEventTime)!==null&&Y!==void 0?Y:u.lastEventTime;g=(ue=(te=e.optOut)!==null&&te!==void 0?te:s===null||s===void 0?void 0:s.optOut)!==null&&ue!==void 0?ue:u.optOut;E=(ce=s===null||s===void 0?void 0:s.sessionId)!==null&&ce!==void 0?ce:u.sessionId;m=(Me=(b=e.userId)!==null&&b!==void 0?b:s===null||s===void 0?void 0:s.userId)!==null&&Me!==void 0?Me:u.userId;r.previousSessionDeviceId=(Fe=s===null||s===void 0?void 0:s.deviceId)!==null&&Fe!==void 0?Fe:u.deviceId;r.previousSessionUserId=(Ve=s===null||s===void 0?void 0:s.userId)!==null&&Ve!==void 0?Ve:u.userId;_={ipAddress:(qe=(Be=e.trackingOptions)===null||Be===void 0?void 0:Be.ipAddress)!==null&&qe!==void 0?qe:true,language:(Ge=(je=e.trackingOptions)===null||je===void 0?void 0:je.language)!==null&&Ge!==void 0?Ge:true,platform:(Qe=(Ke=e.trackingOptions)===null||Ke===void 0?void 0:Ke.platform)!==null&&Qe!==void 0?Qe:true};C=s===null||s===void 0?void 0:s.pageCounter;return[2,new fn(t,e.appVersion,l,i,e.defaultTracking,f,e.flushIntervalMillis,e.flushMaxRetries,e.flushQueueSize,n,e.ingestionMetadata,e.instanceName,v,y,e.loggerProvider,e.logLevel,e.minIdLength,e.offline,g,e.partnerId,e.plan,e.serverUrl,e.serverZone,E,e.sessionTimeout,e.storageProvider,_,e.transport,e.useBatch,m,C)]}})})};var dn=function(t,e){if(t===void 0){t=ye}if(e===void 0){e={}}switch(t){case"localStorage":return new Rt;case"sessionStorage":return new br;case"none":return new Se;case"cookie":default:return new he(h(h({},e),{expirationDays:e.expiration}))}};var Lt=function(t){if(t==="xhr"){return new Ir}if(t==="beacon"){return new Tr}return new yt};var pn=function(t){return d(void 0,void 0,void 0,function(){var e,r,n,i,o,o,a,l,u,s;return p(this,function(c){switch(c.label){case 0:return[4,new he().isEnabled()];case 1:if(!c.sent()||!t&&typeof location==="undefined"){return[2,""]}e=t!==null&&t!==void 0?t:location.hostname;r=e.split(".");n=[];i="AMP_TLDTEST";for(o=r.length-2;o>=0;--o){n.push(r.slice(o).join("."))}o=0;c.label=2;case 2:if(!(o<n.length))return[3,7];a=n[o];l={domain:"."+a};u=new he(l);return[4,u.set(i,1)];case 3:c.sent();return[4,u.get(i)];case 4:s=c.sent();if(!s)return[3,6];return[4,u.remove(i)];case 5:c.sent();return[2,"."+a];case 6:o++;return[3,2];case 7:return[2,""]}})})};var Ur=function(t,e,r){if(e===void 0){e=""}if(r===void 0){r=10}return[re,e,t.substring(0,r)].filter(Boolean).join("_")};var kr=function(t){var e=t.split(".");if(e.length<=2){return t}return e.slice(e.length-2,e.length).join(".")};var vn=function(t){return Object.values(t).every(function(e){return!e})};var Nr=function(t,e,r,n){if(n===void 0){n=true}var i=t.referrer,o=t.referring_domain,a=le(t,["referrer","referring_domain"]);var l=e||{},u=l.referrer,s=l.referring_domain,c=le(l,["referrer","referring_domain"]);if(hn(r.excludeReferrers,t.referring_domain)){return false}if(!n&&vn(t)&&e){return false}var f=JSON.stringify(a)!==JSON.stringify(c);var v=kr(o||"")!==kr(s||"");return!e||f||v};var hn=function(t,e){if(t===void 0){t=[]}if(e===void 0){e=""}return t.some(function(r){return r instanceof RegExp?r.test(e):r===e})};var Mr=function(t,e){var r=h(h({},ie),t);var n=Object.entries(r).reduce(function(i,o){var a;var l=S(o,2),u=l[0],s=l[1];i.setOnce("initial_".concat(u),(a=s!==null&&s!==void 0?s:e.initialEmptyValue)!==null&&a!==void 0?a:"EMPTY");if(s){return i.set(u,s)}return i.unset(u)},new z);return fe(n)};var Fr=function(t){var e=t;if(e){if(e.startsWith(".")){e=e.substring(1)}return[new RegExp("".concat(e.replace(".","\\\\."),"$"))]}return[]};var kt=function(t){var e=this;if(t===void 0){t={}}var r={name:"@amplitude/plugin-web-attribution-browser",type:"before",setup:function(n,i){var o;return d(this,void 0,void 0,function(){var a,l,u,s,c,f,v,y;return p(this,function(g){switch(g.label){case 0:a=h({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:false,excludeReferrers:Fr((o=n.cookieOptions)===null||o===void 0?void 0:o.domain)},t);n.loggerProvider.log("Installing @amplitude/plugin-web-attribution-browser.");l=n.cookieStorage;u=Ur(n.apiKey,"MKTG");return[4,Promise.all([new pe().parse(),l.get(u)])];case 1:s=S.apply(void 0,[g.sent(),2]),c=s[0],f=s[1];v=ve(n.sessionTimeout,n.lastEventTime);if(Nr(c,f,a,v)){if(a.resetSessionOnNewCampaign){i.setSessionId(Date.now());n.loggerProvider.log("Created a new session for new campaign.")}n.loggerProvider.log("Tracking attribution.");y=Mr(c,a);i.track(y);void l.set(u,c)}return[2]}})})},execute:function(n){return d(e,void 0,void 0,function(){return p(this,function(i){return[2,n]})})}};return r};var Vr=function(t){var e={};for(var r in t){var n=t[r];if(n){e[r]=n}}return e};var Ut=function(t){if(t===void 0){t={}}var e;var r=N();var n=void 0;var i;var o;var a=function(){return d(void 0,void 0,void 0,function(){var v;var y;var g;return p(this,function(E){switch(E.label){case 0:o.pageCounter=!o.pageCounter?1:o.pageCounter+1;y={event_type:(g=t.eventType)!==null&&g!==void 0?g:"[Amplitude] Page Viewed"};v=[{}];return[4,gn()];case 1:return[2,(y.event_properties=h.apply(void 0,[h.apply(void 0,v.concat([E.sent()])),{"[Amplitude] Page Domain":typeof location!=="undefined"&&location.hostname||"","[Amplitude] Page Location":typeof location!=="undefined"&&location.href||"","[Amplitude] Page Path":typeof location!=="undefined"&&location.pathname||"","[Amplitude] Page Title":typeof document!=="undefined"&&document.title||"","[Amplitude] Page URL":typeof location!=="undefined"&&location.href.split("?")[0]||"","[Amplitude] Page Counter":o.pageCounter}]),y)]}})})};var l=function(){return typeof t.trackOn==="undefined"||typeof t.trackOn==="function"&&t.trackOn()};var u=typeof location!=="undefined"?location.href:null;var s=function(){return d(void 0,void 0,void 0,function(){var v,y,g,E,m;return p(this,function(_){switch(_.label){case 0:v=location.href;y=yn(t.trackHistoryChanges,v,u||"")&&l();u=v;if(!y)return[3,4];n===null||n===void 0?void 0:n.log("Tracking page view event");if(!(e===null||e===void 0))return[3,1];g=void 0;return[3,3];case 1:m=(E=e).track;return[4,a()];case 2:g=m.apply(E,[_.sent()]);_.label=3;case 3:g;_.label=4;case 4:return[2]}})})};var c=function(){void s()};var f={name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(v,y){return d(void 0,void 0,void 0,function(){var g,E;return p(this,function(m){switch(m.label){case 0:e=y;o=v;n=v.loggerProvider;n.log("Installing @amplitude/plugin-page-view-tracking-browser");if(r){r.addEventListener("popstate",c);i=r.history.pushState;r.history.pushState=new Proxy(r.history.pushState,{apply:function(_,C,I){var L=S(I,3),F=L[0],T=L[1],w=L[2];_.apply(C,[F,T,w]);void s()}})}if(!l())return[3,2];n.log("Tracking page view event");E=(g=e).track;return[4,a()];case 1:E.apply(g,[m.sent()]);m.label=2;case 2:return[2]}})})},execute:function(v){return d(void 0,void 0,void 0,function(){var y;return p(this,function(g){switch(g.label){case 0:if(!(t.trackOn==="attribution"&&mn(v)))return[3,2];n===null||n===void 0?void 0:n.log("Enriching campaign event to page view event with campaign parameters");return[4,a()];case 1:y=g.sent();v.event_type=y.event_type;v.event_properties=h(h({},v.event_properties),y.event_properties);g.label=2;case 2:return[2,v]}})})},teardown:function(){return d(void 0,void 0,void 0,function(){return p(this,function(v){if(r){r.removeEventListener("popstate",c);if(i){r.history.pushState=i}}return[2]})})}};return f};var gn=function(){return d(void 0,void 0,void 0,function(){var t;return p(this,function(e){switch(e.label){case 0:t=Vr;return[4,new pe().parse()];case 1:return[2,t.apply(void 0,[e.sent()])]}})})};var mn=function(t){if(t.event_type==="$identify"&&t.user_properties){var e=t.user_properties;var r=e[D.SET]||{};var n=e[D.UNSET]||{};var i=q(q([],S(Object.keys(r)),false),S(Object.keys(n)),false);return Object.keys(ie).every(function(o){return i.includes(o)})}return false};var yn=function(t,e,r){switch(t){case"pathOnly":return e.split("?")[0]!==r.split("?")[0];default:return e!==r}};var Br=function(){var t;var e=[];var r=function(s,c,f){s.addEventListener(c,f);e.push({element:s,type:c,handler:f})};var n=function(){e.forEach(function(s){var c=s.element,f=s.type,v=s.handler;c===null||c===void 0?void 0:c.removeEventListener(f,v)});e=[]};var i="@amplitude/plugin-form-interaction-tracking-browser";var o="enrichment";var a=function(s,c){return d(void 0,void 0,void 0,function(){var f,v;return p(this,function(y){if(!c){s.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return[2]}if(typeof document==="undefined"){return[2]}f=function(g){var E=false;r(g,"change",function(){var m;if(!E){c.track(Ct,(m={},m[ke]=se(g.id),m[Ue]=se(g.name),m[Ne]=g.action,m))}E=true});r(g,"submit",function(){var m,_;if(!E){c.track(Ct,(m={},m[ke]=se(g.id),m[Ue]=se(g.name),m[Ne]=g.action,m))}c.track(Sr,(_={},_[ke]=se(g.id),_[Ue]=se(g.name),_[Ne]=g.action,_));E=false})};v=Array.from(document.getElementsByTagName("form"));v.forEach(f);if(typeof MutationObserver!=="undefined"){t=new MutationObserver(function(g){g.forEach(function(E){E.addedNodes.forEach(function(m){if(m.nodeName==="FORM"){f(m)}if("querySelectorAll"in m&&typeof m.querySelectorAll==="function"){Array.from(m.querySelectorAll("form")).map(f)}})})});t.observe(document.body,{subtree:true,childList:true})}return[2]})})};var l=function(s){return d(void 0,void 0,void 0,function(){return p(this,function(c){return[2,s]})})};var u=function(){return d(void 0,void 0,void 0,function(){return p(this,function(s){t===null||t===void 0?void 0:t.disconnect();n();return[2]})})};return{name:i,type:o,setup:a,execute:l,teardown:u}};var se=function(t){if(typeof t!=="string"){return void 0}return t};var qr=function(){var t;var e=[];var r=function(s,c,f){s.addEventListener(c,f);e.push({element:s,type:c,handler:f})};var n=function(){e.forEach(function(s){var c=s.element,f=s.type,v=s.handler;c===null||c===void 0?void 0:c.removeEventListener(f,v)});e=[]};var i="@amplitude/plugin-file-download-tracking-browser";var o="enrichment";var a=function(s,c){return d(void 0,void 0,void 0,function(){var f,v,y;return p(this,function(g){if(!c){s.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return[2]}if(typeof document==="undefined"){return[2]}f=function(E){var m;try{m=new URL(E.href,window.location.href)}catch(I){return}var _=v.exec(m.href);var C=_===null||_===void 0?void 0:_[1];if(C){r(E,"click",function(){var I;if(C){c.track(xr,(I={},I[Pr]=C,I[Rr]=m.pathname,I[Ar]=E.id,I[Cr]=E.text,I[Dr]=E.href,I))}})}};v=/\\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)$/;y=Array.from(document.getElementsByTagName("a"));y.forEach(f);if(typeof MutationObserver!=="undefined"){t=new MutationObserver(function(E){E.forEach(function(m){m.addedNodes.forEach(function(_){if(_.nodeName==="A"){f(_)}if("querySelectorAll"in _&&typeof _.querySelectorAll==="function"){Array.from(_.querySelectorAll("a")).map(f)}})})});t.observe(document.body,{subtree:true,childList:true})}return[2]})})};var l=function(s){return d(void 0,void 0,void 0,function(){return p(this,function(c){return[2,s]})})};var u=function(){return d(void 0,void 0,void 0,function(){return p(this,function(s){t===null||t===void 0?void 0:t.disconnect();n();return[2]})})};return{name:i,type:o,setup:a,execute:l,teardown:u}};var jr=false;var Gr=function(t){if(jr||t.defaultTracking!==void 0){return}var e="\`options.defaultTracking\` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to \`options.defaultTracking\`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\\n\\namplitude.init(<YOUR_API_KEY>, {\\n defaultTracking: true,\\n});\\n\\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details.";t.loggerProvider.warn(e);jr=true};var Kr=function(){var t="@amplitude/plugin-network-checker-browser";var e="before";var r=N();var n=[];var i=function(u,s){if(r){r.addEventListener(u,s);n.push({type:u,handler:s})}};var o=function(){n.forEach(function(u){var s=u.type,c=u.handler;if(r){r.removeEventListener(s,c)}});n=[]};var a=function(u,s){return d(void 0,void 0,void 0,function(){return p(this,function(c){u.offline=!navigator.onLine;i("online",function(){u.loggerProvider.debug("Network connectivity changed to online.");u.offline=false;setTimeout(function(){s.flush()},u.flushIntervalMillis)});i("offline",function(){u.loggerProvider.debug("Network connectivity changed to offline.");u.offline=true});return[2]})})};var l=function(){return d(void 0,void 0,void 0,function(){return p(this,function(u){o();return[2]})})};return{name:t,type:e,setup:a,teardown:l}};var Qr=function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.init=function(r,n,i){if(r===void 0){r=""}var o;var a;if(arguments.length>2){o=n;a=i}else{if(typeof n==="string"){o=n;a=void 0}else{o=n===null||n===void 0?void 0:n.userId;a=n}}return B(this._init(h(h({},a),{userId:o,apiKey:r})))};e.prototype._init=function(r){var n,i;return d(this,void 0,void 0,function(){var o,a,l,u;var s=this;return p(this,function(c){switch(c.label){case 0:if(this.initializing){return[2]}this.initializing=true;return[4,Lr(r.apiKey,r,this)];case 1:o=c.sent();return[4,t.prototype._init.call(this,o)];case 2:c.sent();this.setSessionId((i=(n=r.sessionId)!==null&&n!==void 0?n:this.config.sessionId)!==null&&i!==void 0?i:Date.now());a=J(r.instanceName);a.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId});if(!(this.config.offline!==Xe))return[3,4];return[4,this.add(Kr()).promise];case 3:c.sent();c.label=4;case 4:return[4,this.add(new ot).promise];case 5:c.sent();return[4,this.add(new Er).promise];case 6:c.sent();return[4,this.add(new bt).promise];case 7:c.sent();Gr(this.config);if(!Tt(this.config.defaultTracking))return[3,9];return[4,this.add(qr()).promise];case 8:c.sent();c.label=9;case 9:if(!wt(this.config.defaultTracking))return[3,11];return[4,this.add(Br()).promise];case 10:c.sent();c.label=11;case 11:if(!Re(this.config.defaultTracking))return[3,13];l=Pt(this.config);u=kt(l);return[4,this.add(u).promise];case 12:c.sent();c.label=13;case 13:if(!Ae(this.config.defaultTracking))return[3,15];return[4,this.add(Ut(xt(this.config))).promise];case 14:c.sent();c.label=15;case 15:this.initializing=false;return[4,this.runQueuedFunctions("dispatchQ")];case 16:c.sent();a.eventBridge.setEventReceiver(function(f){void s.track(f.eventType,f.eventProperties)});return[2]}})})};e.prototype.getUserId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.userId};e.prototype.setUserId=function(r){if(!this.config){this.q.push(this.setUserId.bind(this,r));return}if(r!==this.config.userId||r===void 0){this.config.userId=r;_t(r,this.config.instanceName)}};e.prototype.getDeviceId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.deviceId};e.prototype.setDeviceId=function(r){if(!this.config){this.q.push(this.setDeviceId.bind(this,r));return}this.config.deviceId=r;Et(r,this.config.instanceName)};e.prototype.reset=function(){this.setDeviceId(K());this.setUserId(void 0)};e.prototype.getSessionId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.sessionId};e.prototype.setSessionId=function(r){var n;if(!this.config){this.q.push(this.setSessionId.bind(this,r));return}if(r===this.config.sessionId){return}var i=this.getSessionId();var o=this.config.lastEventTime;var a=(n=this.config.lastEventId)!==null&&n!==void 0?n:-1;this.config.sessionId=r;this.config.lastEventTime=void 0;this.config.pageCounter=0;if(St(this.config.defaultTracking)){if(i&&o){this.track(Ot,void 0,{device_id:this.previousSessionDeviceId,event_id:++a,session_id:i,time:o+1,user_id:this.previousSessionUserId})}this.config.lastEventTime=this.config.sessionId;this.track(Dt,void 0,{event_id:++a,session_id:this.config.sessionId,time:this.config.lastEventTime})}this.previousSessionDeviceId=this.config.deviceId;this.previousSessionUserId=this.config.userId};e.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()};e.prototype.setTransport=function(r){if(!this.config){this.q.push(this.setTransport.bind(this,r));return}this.config.transportProvider=Lt(r)};e.prototype.identify=function(r,n){if(De(r)){var i=r._q;r._q=[];r=Ce(new z,i)}if(n===null||n===void 0?void 0:n.user_id){this.setUserId(n.user_id)}if(n===null||n===void 0?void 0:n.device_id){this.setDeviceId(n.device_id)}return t.prototype.identify.call(this,r,n)};e.prototype.groupIdentify=function(r,n,i,o){if(De(i)){var a=i._q;i._q=[];i=Ce(new z,a)}return t.prototype.groupIdentify.call(this,r,n,i,o)};e.prototype.revenue=function(r,n){if(De(r)){var i=r._q;r._q=[];r=Ce(new rt,i)}return t.prototype.revenue.call(this,r,n)};e.prototype.process=function(r){return d(this,void 0,void 0,function(){var n,i;return p(this,function(o){n=Date.now();i=ve(this.config.sessionTimeout,this.config.lastEventTime);if(r.event_type!==Dt&&r.event_type!==Ot&&(!r.session_id||r.session_id===this.getSessionId())&&i){this.setSessionId(n)}return[2,t.prototype.process.call(this,r)]})})};return e}(tt);var _n=function(){var t=new Qr;return{init:A(t.init.bind(t),"init",P(t),R(t,["config"])),add:A(t.add.bind(t),"add",P(t),R(t,["config.apiKey","timeline.plugins"])),remove:A(t.remove.bind(t),"remove",P(t),R(t,["config.apiKey","timeline.plugins"])),track:A(t.track.bind(t),"track",P(t),R(t,["config.apiKey","timeline.queue.length"])),logEvent:A(t.logEvent.bind(t),"logEvent",P(t),R(t,["config.apiKey","timeline.queue.length"])),identify:A(t.identify.bind(t),"identify",P(t),R(t,["config.apiKey","timeline.queue.length"])),groupIdentify:A(t.groupIdentify.bind(t),"groupIdentify",P(t),R(t,["config.apiKey","timeline.queue.length"])),setGroup:A(t.setGroup.bind(t),"setGroup",P(t),R(t,["config.apiKey","timeline.queue.length"])),revenue:A(t.revenue.bind(t),"revenue",P(t),R(t,["config.apiKey","timeline.queue.length"])),flush:A(t.flush.bind(t),"flush",P(t),R(t,["config.apiKey","timeline.queue.length"])),getUserId:A(t.getUserId.bind(t),"getUserId",P(t),R(t,["config","config.userId"])),setUserId:A(t.setUserId.bind(t),"setUserId",P(t),R(t,["config","config.userId"])),getDeviceId:A(t.getDeviceId.bind(t),"getDeviceId",P(t),R(t,["config","config.deviceId"])),setDeviceId:A(t.setDeviceId.bind(t),"setDeviceId",P(t),R(t,["config","config.deviceId"])),reset:A(t.reset.bind(t),"reset",P(t),R(t,["config","config.userId","config.deviceId"])),getSessionId:A(t.getSessionId.bind(t),"getSessionId",P(t),R(t,["config"])),setSessionId:A(t.setSessionId.bind(t),"setSessionId",P(t),R(t,["config"])),extendSession:A(t.extendSession.bind(t),"extendSession",P(t),R(t,["config"])),setOptOut:A(t.setOptOut.bind(t),"setOptOut",P(t),R(t,["config"])),setTransport:A(t.setTransport.bind(t),"setTransport",P(t),R(t,["config"]))}};var O=_n();var Es=O.add;var bs=O.extendSession;var Is=O.flush;var Ts=O.getDeviceId;var ws=O.getSessionId;var Ss=O.getUserId;var xs=O.groupIdentify;var Ps=O.identify;var Rs=O.init;var As=O.logEvent;var Cs=O.remove;var Ds=O.reset;var Os=O.revenue;var Ls=O.setDeviceId;var Nt=O.setGroup;var ks=O.setOptOut;var Us=O.setSessionId;var Ns=O.setTransport;var Ms=O.setUserId;var _e=O.track;var Mt=(t,e)=>{setTimeout(()=>{const r=Array.from(document.querySelectorAll("section"));for(const n of r){n.setAttribute("aria-hidden",String(n.id!==t))}},e)};var Wr=t=>{Mt("success",500);if(t){Tn()}setTimeout(En,500)};var En=()=>{const t=document.getElementById("step-update-app");t.className="highlight completed";const e=document.getElementById("step-edit-content");e.className="highlight active"};var Ee=(t=[])=>{Mt("error",500);const e=document.getElementById("error-messages");e.innerHTML="";for(const r of t){const n=document.createElement("li");n.textContent=r;e.appendChild(n)}document.title=\`Error Connecting\`};var $r=()=>{Mt("restart-server",500);document.title=\`Restart Dev Server\`};var bn=async()=>{const t=new URL(location.href);const e=t.searchParams.get(We);const r=t.searchParams.get(Ft);const n=t.searchParams.get(Vt);const i=t.searchParams.get($e);const o=t.searchParams.get(qt)||"unknown";const a=t.searchParams.get(jt);const l=t.searchParams.get(Gt);try{console.info(\`framework: \${o}, platform: \${a}, node: \${l}\`);const u=new URL(location.pathname,location.origin);if(r){Nt("organization",r);Nt("space",r)}if(!e){window.history.replaceState({},"",u.href);Ee(["Missing preview url"]);_e("integration failed",{url:u.href,message:"missing preview url",framework:o});return}u.searchParams.set(We,e);u.searchParams.set($e,i);window.history.replaceState({},"",u.href);if(r&&n){let s=0;const c=async()=>{s++;try{const f=await Wt(r,n);if(f.success){const v=Hr(e,f.pathname,i);_e("site integrated",{url:v,position:o});if(f.modifiedFiles.length>0){const y=document.getElementById("modified-files-list");f.modifiedFiles.forEach(E=>{const m=document.createElement("li");const _=document.createElement("a");_.textContent=E.displayFilePath||E.filePath;_.href=\`~launch#\${E.displayFilePath}\`;_.addEventListener("click",C=>{C.preventDefault();C.stopPropagation();Ht({filePath:E.filePath})});m.appendChild(_);y.appendChild(m)});const g=document.getElementById("modified-files-message");g.removeAttribute("hidden")}if(f.platform.os==="win32"){const y=document.getElementById("restart-warning");y.removeAttribute("hidden")}else{const y=document.getElementById("go-to-app");y.removeAttribute("hidden")}setTimeout(()=>{Wr(true)},500)}else{_e("integration failed",{path:f.pathname,message:"error connecting to Builder.io",position:o});Ee([\`Error connecting to Builder.io\`])}}catch(f){const v=String(f.message||f);if(v.includes("Fetch Error")){if(s>3){$r()}setTimeout(c,1e3)}else{Ee([v])}}};c()}else{const s=await $t();if(s.isValid){Hr(e,s.pathname,i);const c=document.getElementById("go-to-app");c.removeAttribute("hidden");Wr(false)}else{Ee([\`Error connecting to Builder.io\`])}}}catch(u){_e("integration failed",{message:"uncaught error",details:String(u),position:JSON.stringify({framework:o,platform:a,nodeVersion:l})});console.error("integrationFailed",u);const s=String(u);if(s.includes("Fetch Error")){$r()}else{Ee([s])}}};var Hr=(t,e,r)=>{const n=document.getElementById("next-step");const i=new URL(e,t);if(r){i.hash=\`\${Bt}=\${r}\`}n.href=i.href;console.debug("App Url",i.href);return i.href};var In=()=>{return new Promise((t,e)=>{if(globalThis.confetti){return t(globalThis.confetti)}const r=document.createElement("script");r.src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.5.1/dist/confetti.browser.min.js";r.onload=()=>t(globalThis.confetti);r.onerror=e;document.head.appendChild(r);r.remove()})};var Tn=async()=>{const t={spread:360,ticks:50,gravity:0,decay:.95,startVelocity:30,colors:["19b4f4","a97ff2","fd6b3c","ffffff"]};const e=In();const r=async()=>{const n=document.getElementById("button-icon");const i=n.getBoundingClientRect();const o=window.scrollX+i.left;const a=window.scrollY+i.top;const l={x:o/window.innerWidth,y:a/window.innerHeight};const u=await e;u({...t,origin:l,scalar:1.2});u({...t,origin:l,scalar:.75})};setTimeout(r,500);setTimeout(r,650);setTimeout(r,800);setTimeout(r,950)};bn();})();
233
196
  </script>
234
197
  </body>
235
198
  </html>
236
- `)}async function k(e,t){let r=await $(e),o=e.getFrameworks();return t.replace(/__LOCAL_APP_ID__/g,r).replace(/__DEV_TOOLS_URL__/g,e.devToolsServerUrl).replace(/__CLIENT_ID__/g,e.getClientId()).replace(/__FRAMEWORK__/g,o.length?o[0].name:"")}import{platform as Y}from"os";async function V(e,t){let r=new URL("/cli-auth","https://builder.io");r.searchParams.set("client_id",e.getClientId()),r.searchParams.set("host",await e.getDeviceId()),r.searchParams.set("response_type","code"),r.searchParams.set("cli","true");let o=new URL(g,e.devToolsServerUrl);o.searchParams.set(y,Y()),o.searchParams.set(_,process.versions.node);let s=e.getFrameworks();return s.length>0&&(r.searchParams.set(S,s[0].name),o.searchParams.set(S,s[0].name)),r.searchParams.set("redirect_url",o.href),r.searchParams.set("preview_url",t),r.href}async function H(e,t,r,o){try{if(!e)return c(r,o,400,"Builder context closed");let s=re(r);if(s.pathname===T){if(r.method==="POST"){let a=await te(r);if(a)try{let n=await L(e,JSON.parse(a));return B(r,o,200,n)}catch(n){e.debug("Dev API Error",n.stack||n.message||n);let i={errors:[String(n.message||n)]};return B(r,o,500,i)}}else if(r.method==="OPTIONS"){let a={"Access-Control-Allow-Methods":"POST, OPTIONS","Access-Control-Allow-Headers":"Content-Type, Cache-Control, X-Builder-Devtools-Version"},n=r.headers.origin;if(n&&n!=="null")F(new URL(n))&&(a["Access-Control-Allow-Origin"]=n);else{let i=r.headers["user-agent"];i&&i.includes("Figma")&&(a["Access-Control-Allow-Origin"]="*")}o.writeHead(200,a),o.end();return}return c(r,o,405,`${T} is an API endpoint used only during development by the Builder.io Devtools client-side script`)}if(s.pathname===w)return X(r,o,200,await U(e));if(s.pathname===C){let a=s.searchParams.get(v);return a?ee(o,302,await V(e,a)):c(r,o,400,`Missing ${v} querystring`)}return s.pathname===g?Z(r,o,200,await N(e)):s.pathname===p?(e.debug(`Close Dev Tools Server Requested: ${s.href}`),setTimeout(()=>{try{t.close(a=>{e.debug(`Dev Tools Server Closed Error: ${a}`)})}catch(a){e.debug(`Error closing devtools server: ${a}`)}},20),c(r,o,200,"Closing Dev Tools Server")):c(r,o,404,"Not found")}catch(s){return console.error("Dev Server Error",s),c(r,o,500,`Dev Server Error: ${s}`)}}function B(e,t,r,o){f(e,t,r,"application/json",JSON.stringify(o))}function X(e,t,r,o){f(e,t,r,"application/javascript",o)}function Z(e,t,r,o){f(e,t,r,"text/html",o)}function c(e,t,r,o){f(e,t,r,"text/plain",o)}function f(e,t,r,o,s){let a={"Content-Type":`${o}; charset=utf-8`,"Cache-Control":"no-cache, no-store, must-revalidate","X-Builder-Devtools-Version":"0.2.24"},n=e.headers.origin;if(n&&n!=="null")F(new URL(n))&&(a["Access-Control-Allow-Origin"]=n);else{let i=e.headers["user-agent"];i&&i.includes("Figma")&&(a["Access-Control-Allow-Origin"]="*")}t.writeHead(r,a),t.end(s)}function F(e){return e.hostname==="localhost"||e.origin==="https://builder.io"||e.origin==="https://www.builder.io"?!0:e.port===""?!1:e.port!=="80"&&e.port!=="443"}function ee(e,t,r){e.writeHead(t,{Location:r}),e.end()}async function te(e){let t="";for await(let r of e)t+=r;return t}function re(e){let t=e.url||"/";return new URL(t,`http://${e.headers.host}`)}async function M(e){if(globalThis.__builderDevToolsServer)return e.debug("reusing existing devtools server"),globalThis.__builderDevToolsServer.setContext(e),globalThis.__builderDevToolsServer;let t=await se(e),r=oe((s,a)=>{H(e,r,s,a)}),o=()=>new Promise((s,a)=>{r.listening?(e.debug(`closing devtools server on port ${t}`),r.close(n=>{e=null,n?(e.debug(`error closing devtools server on port ${t}`),a(n)):(e.debug(`closed devtools server on port ${t}`),s())})):(e.debug(`devtools server on port ${t} not listening`),s())});return process.once("SIGTERM",o),process.once("SIGINT",o),process.env.CI!=="true"&&process.stdin.on("end",o),globalThis.__builderDevToolsServer={url:new URL(`http://localhost:${t}`).href,port:t,setContext:s=>{e.debug(`set devtools context on server ${t}`),e=s},close:async()=>{globalThis.__builderDevToolsServer=null,await o()}},new Promise(s=>{r.listen(t,()=>{e.debug(`started devtools server on port ${t}`),s(globalThis.__builderDevToolsServer)})})}function se(e){return new Promise(t=>{let r=e.port;try{ne({hostname:"localhost",port:r,path:p,method:"GET"},s=>{s.on("end",()=>{e.debug(`${p} - Response ended`),t(r)})}).on("error",s=>{e.debug(`${p} - No response ${s}`),t(r)}).end()}catch(o){e.debug(`${p} - Error ${o}`),t(r)}})}async function ae(e){let t={...e,devToolsServerUrl:"",isValid:!1,publicApiKey:"",serverShouldRestart:!1,port:e.port||5273},r=e.getFrameworks().map(a=>a.name).join(", ");t.debug(`create devtools ${K} [${r}]`);let o=await M(t);return t.devToolsServerUrl=o.url,t.port=o.port,{getUrl:()=>t.devToolsServerUrl}}var K="0.2.24";export{ae as createDevToolsServer,K as version};
199
+ `)}async function M(e,t){let r=await E(e),o=e.getFrameworks();return t.replace(/__LOCAL_APP_ID__/g,r).replace(/__DEV_TOOLS_URL__/g,e.devToolsServerUrl).replace(/__CLIENT_ID__/g,e.getClientId()).replace(/__FRAMEWORK__/g,o.length?o[0].name:"")}import{platform as Z}from"os";async function x(e,t){let r=new URL("/cli-auth","https://builder.io");r.searchParams.set("client_id",e.getClientId()),r.searchParams.set("host",await e.getDeviceId()),r.searchParams.set("response_type","code"),r.searchParams.set("cli","true");let o=new URL(g,e.devToolsServerUrl);o.searchParams.set(y,Z()),o.searchParams.set(w,process.versions.node);let s=e.getFrameworks();return s.length>0&&(r.searchParams.set(S,s[0].name),o.searchParams.set(S,s[0].name)),r.searchParams.set("redirect_url",o.href),r.searchParams.set("preview_url",t),r.href}async function B(e,t,r,o){try{if(!e)return c(r,o,400,"Builder context closed");let s=ne(r);if(s.pathname===T){if(r.method==="POST"){let i=await oe(r);if(i)try{let n=await N(e,JSON.parse(i));return H(r,o,200,n)}catch(n){e.debug("Dev API Error",n.stack||n.message||n);let a={errors:[String(n.message||n)]};return H(r,o,500,a)}}else if(r.method==="OPTIONS"){let i={"Access-Control-Allow-Methods":"POST, OPTIONS","Access-Control-Allow-Headers":"Content-Type, Cache-Control, X-Builder-Devtools-Version"},n=r.headers.origin;if(n&&n!=="null")V(new URL(n))&&(i["Access-Control-Allow-Origin"]=n);else{let a=r.headers["user-agent"];a&&a.includes("Figma")&&(i["Access-Control-Allow-Origin"]="*")}o.writeHead(200,i),o.end();return}return c(r,o,405,`${T} is an API endpoint used only during development by the Builder.io Devtools client-side script`)}if(s.pathname===D)return ee(r,o,200,await F(e));if(s.pathname===_){let i=s.searchParams.get(v);return i?re(o,302,await x(e,i)):c(r,o,400,`Missing ${v} querystring`)}return s.pathname===g?te(r,o,200,await k(e)):s.pathname===d?(e.debug(`Close Dev Tools Server Requested: ${s.href}`),setTimeout(()=>{try{t.close(i=>{e.debug(`Dev Tools Server Closed Error: ${i}`)})}catch(i){e.debug(`Error closing devtools server: ${i}`)}},20),c(r,o,200,"Closing Dev Tools Server")):c(r,o,404,"Not found")}catch(s){return console.error("Dev Server Error",s),c(r,o,500,`Dev Server Error: ${s}`)}}function H(e,t,r,o){h(e,t,r,"application/json",JSON.stringify(o))}function ee(e,t,r,o){h(e,t,r,"application/javascript",o)}function te(e,t,r,o){h(e,t,r,"text/html",o)}function c(e,t,r,o){h(e,t,r,"text/plain",o)}function h(e,t,r,o,s){let i={"Content-Type":`${o}; charset=utf-8`,"Cache-Control":"no-cache, no-store, must-revalidate","X-Builder-Devtools-Version":"0.2.26"},n=e.headers.origin;if(n&&n!=="null")V(new URL(n))&&(i["Access-Control-Allow-Origin"]=n);else{let a=e.headers["user-agent"];a&&a.includes("Figma")&&(i["Access-Control-Allow-Origin"]="*")}t.writeHead(r,i),t.end(s)}function V(e){return e.hostname==="localhost"||e.origin==="https://builder.io"||e.origin==="https://www.builder.io"?!0:e.port===""?!1:e.port!=="80"&&e.port!=="443"}function re(e,t,r){e.writeHead(t,{Location:r}),e.end()}async function oe(e){let t="";for await(let r of e)t+=r;return t}function ne(e){let t=e.url||"/";return new URL(t,`http://${e.headers.host}`)}async function K(e){if(globalThis.__builderDevToolsServer)return e.debug("reusing existing devtools server"),globalThis.__builderDevToolsServer.setContext(e),globalThis.__builderDevToolsServer;let t=await ae(e),r=se((s,i)=>{B(e,r,s,i)}),o=()=>new Promise((s,i)=>{r.listening?(e.debug(`closing devtools server on port ${t}`),r.close(n=>{e=null,n?(e.debug(`error closing devtools server on port ${t}`),i(n)):(e.debug(`closed devtools server on port ${t}`),s())})):(e.debug(`devtools server on port ${t} not listening`),s())});return process.once("SIGTERM",o),process.once("SIGINT",o),process.env.CI!=="true"&&process.stdin.on("end",o),globalThis.__builderDevToolsServer={url:new URL(`http://localhost:${t}`).href,port:t,setContext:s=>{e.debug(`set devtools context on server ${t}`),e=s},close:async()=>{globalThis.__builderDevToolsServer=null,await o()}},new Promise(s=>{r.listen(t,()=>{e.debug(`started devtools server on port ${t}`),s(globalThis.__builderDevToolsServer)})})}function ae(e){return new Promise(t=>{let r=e.port;try{ie({hostname:"localhost",port:r,path:d,method:"GET"},s=>{s.on("end",()=>{e.debug(`${d} - Response ended`),t(r)})}).on("error",s=>{e.debug(`${d} - No response ${s}`),t(r)}).end()}catch(o){e.debug(`${d} - Error ${o}`),t(r)}})}async function le(e){let t={...e,devToolsServerUrl:"",isValid:!1,publicApiKey:"",serverShouldRestart:!1,port:e.port||5273},r=e.getFrameworks().map(i=>i.name).join(", ");t.debug(`create devtools ${j} [${r}]`);let o=await K(t);return t.devToolsServerUrl=o.url,t.port=o.port,{getUrl:()=>t.devToolsServerUrl}}var j="0.2.26";export{le as createDevToolsServer,j as version};