1import{_ as J,o as b,c as Z,w as ut,a as C,b as V,d as p,n as re,r as zt,e as I,f as vo,g as j,h as ee,i as q,j as te,v as _o,F as we,k as Oe,t as Ee,l as yo,T as Qs,m as Zs,p as Fe,q as Pt,s as Se,u as ei,x as ti,y as bo,z as wo,A as fn,B as Ye,C as ni,D as So,E as ri,G as yn,H as Pr,I as mr,J as xo,K as ko,L as $o,M as Eo,N as Co}from"./plugin-vue_export-helper.adde081f.js";let In={},kn=function(e){return e?e instanceof Array||e.hasOwnProperty("length")&&typeof e.push=="function"&&typeof e.splice=="function"&&typeof e[Symbol.iterator]=="function":!1},Xe=function(e){return Object.prototype.toString.call(e)==="[object Object]"},dt=function(e){return typeof e!="object"},gr=function(e){return typeof e=="string"},si=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ii=function(e,t=!1){for(let n of Object.keys(e||[]))if(t&&!dt(e[n])){if(ii(e[n],t)===!1)return!1}else if(!$e(e[n]))return!1;return!0},pn=function(e){return $e(e)?kn(e)?[]:Xe(e)?{}:e:JSON.parse(Kn(e))},Kn=function(e){let t=[],n=JSON.stringify(e,function(r,s){if(typeof s=="object"&&s!==null){if(t.indexOf(s)!==-1)return;t.push(s)}return s});return t=null,n},Mo=function(e,t=null){if(!e||$e(e))return t;try{return JSON.parse(Fn(e),(n,r)=>n===".obj"&&$e(r)?void 0:r)}catch{return t}},To=function(...e){let t=[];for(let n of e.filter(r=>r!=null))t=t.concat(kn(n)?n:[n]);return t},Oo=function(e,t=!1){return[...new Set(t?e.map(n=>String(n).trim()):e)]},vr=function(...e){return Oo(To.apply(this,e))},Ao=function(e){let t=/[\u0300-\u036F]/g,n=[["\u2013","-"],["\u201C|\u201D","-"],["\u2019","'"],["\xA0"," "]];return e=String(e||""),n.forEach(r=>e=e.replace(new RegExp(r[0],"g"),r[1])),e.normalize("NFKD").replace(t,"")},Ro=function(e){e=String(e).replace(/^\s+|\s+$/g,""),e=e.toLowerCase();let t="\xE3\xE0\xE1\xE4\xE2\u1EBD\xE8\xE9\xEB\xEA\xEC\xED\xEF\xEE\xF5\xF2\xF3\xF6\xF4\xF9\xFA\xFC\xFB\xF1\xE7\xB7/_,:;",n="aaaaaeeeeeiiiiooooouuuunc------";for(let r=0,s=t.length;r<s;r++)e=e.replace(new RegExp(t.charAt(r),"g"),n.charAt(r));return e=e.replace(/[^a-z0-9 -]/g,"-").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-/,"").replace(/-$/,""),e},Gn=function(e){return Math.random().toString(36).substr(2).slice(-e)},$r=function(e,t,n=!0){return n&&dt.call(this,e)&&dt.call(this,t)?String(Fn(e)).toLowerCase()===String(Fn(t)).toLowerCase():e===t},bn=function(e,t,...n){if(!t||!e)return!1;let r=(s,o)=>{var h,f;if(!gr(o)||!gr(e))return!1;let l=0,u=-1,d;for(o=(h=o.toLowerCase)==null?void 0:h.call(o),e=(f=e.toLowerCase)==null?void 0:f.call(e);d=e[l++];)if(!~(u=o.indexOf(d,u+1)))return!1;return!0};return gr(t)?r(e,t):Xe(t)?(n=(n==null?void 0:n.length)>0?n:Object.keys(t),(n||[]).find(s=>bn(e,t[s]))):bn(e,JSON.stringify(t))},$e=function(e){return!e||dt(e)&&!Fn(e)||kn.call(this,e)&&!e.filter(t=>t).length||Xe.call(this,e)&&!Object.keys(e).filter(t=>t).length},zo=function(e,t=!1){return String(e).charAt(0).toUpperCase()+(t?String(e).slice(1).toLowerCase():String(e).slice(1))},Fn=function(e,t="\\s\\s*"){return oi.call(this,Po.call(this,e,t),t)},oi=function(e,t="\\s\\s*"){let n=r=>String(r||"").replace(new RegExp("^"+t),"");return kn.call(this,e)?e.map(n):n(e)},Po=function(e,t="\\s\\s*"){let n=r=>String(r||"").replace(new RegExp(t+"$"),"");return kn.call(this,e)?e.map(n):n(e)},Do=function(e){return zo(String(e).replace(/[^\w\s\-%]+/g," "))},ai=function(e,t=!0){if(!e||!(e!=null&&e.length))return[];let n=r=>({label:Do(r),value:r});return e.map(r=>Xe(r)?{...n(r),...r}:n(r))},No=function(e,t={progress:!1,cancelOnReject:!0}){if($e(e))return Promise.resolve(!0);let n=!1,r=!1;t.progress===!0&&typeof NProgress!="undefined"&&(n=!0,NProgress.start());let s=()=>r=!0,l=(async()=>{let u=[];for(let d of e)if(!r)try{let h=await d();u.push(h)}catch(h){console.log("promise error: ",h),r=t.cancelOnReject===!0}return u})();return l.finally(()=>n===!0?NProgress.done():""),Object.assign(l,{cancel:s})},Lo=function(e,t=null){e=String(e||"").replace(/\s\s\r?\n/g,r=>`<br/> 2`);let n=e;return e=e.replace(/\n([ \t]*\n)+/g,"</p><p>"),n!==e&&(e=`<p>${e}</p>`),e=e.replace(/<\/p><p>/g,`</p> 3<p>`),e=e.replace(/\[([^\]]+)]\s*\(([^\)]+)\)/g,typeof t=="function"?t($1,$2):'<a href="$2">$1</a>'),e.replace(/\\\*/g,"﹡").replace(/(\*\*)(?=\S)([^\r]*?\S[*]*)\1/g,"<strong>$2</strong>").replace(/(\*)(?=\S)([^\r]*?\S)\1/g,"<em>$2</em>").replace(/(\_)(?=\S)([^\r]*?\S)\1/g,"<u>$2</u>")},Bo=function(e,t,n=!0){e instanceof jQuery&&(e=e.get(0)),t instanceof jQuery&&(t=t.get(0));let r=((e==null?void 0:e.offsetTop)||0)-((t==null?void 0:t.offsetTop)||0),o={left:((e==null?void 0:e.offsetLeft)||0)-((t==null?void 0:t.offsetLeft)||0)+(n?0:$(t).scrollLeft()),top:r+(n?0:$(t).scrollTop())},l={...o,right:o.left+$(e).width(),bottom:o.top+$(e).height()};return{...l,width:l.right-l.left,height:l.bottom-l.top,x:e.offsetLeft,y:e.offsetTop}},en=function(e,t=!1){return!!(/^https?:\/\//i.test(e)||/^\/\//.test(e)||t&&/^data:/.test(e))},Io=function(e){return!!Go(e)},Vo=function(e){return en(e)&&(Io(e)||/\.(mp4|webm|m4v)/.test(e)||/player\.vimeo/.test(e)||/other\.vimeo/.test(e))},Uo=function(e,t=0,n="en",r=!1,s=!0){return Zo(`idea-${e}-${n}-${r}-${t}`,async()=>{let o="https://suggestqueries.google.com/complete/search",l={q:e,cp:t,client:"firefox",hl:n,...r?{ds:"yt"}:{}},u=await new Promise(d=>{let h=setTimeout(()=>d([]),1e3);$.ajax({url:o,jsonp:"callback",dataType:"jsonp",data:l,success:f=>{d(f?[e,...f[1].map(v=>Ao(v).trim()).filter(v=>!!v)]:[]),clearTimeout(h)},failure:()=>{d([]),clearTimeout(h)}})});return $e(u)?s?await nt("/api/queries/google-suggest","GET",{data:l}):[]:u})},jo=function(e,t,n=!1){return In.promises||(In.promises={}),new Promise((r,s)=>{let o=In.promises[e];o&&(n===!0||!o.error)?o.hasOwnProperty("result")?r(o.result):o.error?s(o.error):o.queue.push({resolve:r,reject:s}):(In.promises[e]=o={queue:[{resolve:r,reject:s}]},t().then(l=>o.result=l).catch(l=>o.error=l).finally(()=>{let l;for(;l=o.queue.pop();)o.error?l.reject(o.error):l.resolve(o.result)}))})},nt=function(e,t="GET",n=null,r={mode:"cors",showSuccess:!1,showError:!0,showProgress:!1}){var o,l;let s;return r.showProgress===!0&&((l=(o=window.NProgress)==null?void 0:o.start)==null||l.call(o)),window.lastRequest={url:e,method:t,data:n,options:r},new Promise((u,d)=>{let h=Promise.resolve(!0),f="6LfWSKMZAAAAAC3zC58i1JjXkBJkyfRBFfFJX2u4",v;h=new Promise(m=>{Dr(`https://www.google.com/recaptcha/api.js?render=${f}`).then(()=>{grecaptcha.ready(()=>{grecaptcha.execute(f,{action:"submit"}).then(function(y){t="POST",v=y,m()})})})}),h.then(()=>{let m;if(n instanceof Blob)v&&(e=fs(e,{recaptcha:v})),m={method:t,body:n};else{if(/get/i.test(t))e=fs(e,n);else{let y=n;v&&(y=Xe(n)?{...n,recaptcha:v}:`${n}&recaptcha=${v}`),r.body=Xe(y)?JSON.stringify(y):y}m={method:t,headers:{"Content-Type":"application/json"},...r}}fetch(e,m).then(y=>(s=y.status!==200,y.text())).then(y=>{let _;window.lastRequest.response=y,window.lastRequest.errorcode=s;try{_=JSON.parse(y)}catch{_=y}s?(oa({url:e,error:s,response:_,data:n}),r.showError===!0&&Ct(`Error: ${_}`,"error"),d(_)):r.showSuccess===!0&&Ct("Success"),u(_)}
3).finally(()=>{var y,_;return r.showProgress===!0?(_=(y=window.NProgress)==null?void 0:y.done)==null?void 0:_.call(y):""})})})},qo=function(e){if(!Xe(e))return"";let t=new URLSearchParams;for(let n in e)t.append(n,dt(e[n])?e[n]:Kn(e[n]));return t.toString()},fs=function(e,t,n=!0){let r=dt(t)?t:qo(t),[s,o]=e.split("#",2);return s+(r?(s.indexOf("?")===-1?"?":"&")+r:"")+(o?`#${o}`:"")},Ho=function(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())},Go=function(e){if(!e)return null;if(Fo(e))return e;let t=/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/,n=String(e).match(t);return n&&n[2].length===11?n[2]:!en.call(this,e)&&e.length===11&&/^[a-zA-Z0-9]+$/.test(e)?e:null},Fo=function(e){return e&&typeof e=="string"&&e.length===11},Yo=function(e,t=0,n=100){return e=+(si(e)?e:t),Math.max(t,Math.min(n,e))},Wo=function(e){function t(m){for(var y,_="0123456789ABCDEF",S="",x=0;x<m.length;x++)y=m.charCodeAt(x),S+=_.charAt(y>>>4&15)+_.charAt(15&y);return S}function n(m){for(var y=Array(m.length>>2),_=0;_<y.length;_++)y[_]=0;for(_=0;_<8*m.length;_+=8)y[_>>5]|=(255&m.charCodeAt(_/8))<<_%32;return y}function r(m){for(var y="",_=0;_<32*m.length;_+=8)y+=String.fromCharCode(m[_>>5]>>>_%32&255);return y}function s(m,y){m[y>>5]|=128<<y%32,m[14+(y+64>>>9<<4)]=y;for(var _=1732584193,S=-271733879,x=-1732584194,k=271733878,w=0;w<m.length;w+=16){var L=_,P=S,F=x,H=k;S=h(S=h(S=h(S=h(S=d(S=d(S=d(S=d(S=u(S=u(S=u(S=u(S=l(S=l(S=l(S=l(S,x=l(x,k=l(k,_=l(_,S,x,k,m[w+0],7,-680876936),S,x,m[w+1],12,-389564586),_,S,m[w+2],17,606105819),k,_,m[w+3],22,-1044525330),x=l(x,k=l(k,_=l(_,S,x,k,m[w+4],7,-176418897),S,x,m[w+5],12,1200080426),_,S,m[w+6],17,-1473231341),k,_,m[w+7],22,-45705983),x=l(x,k=l(k,_=l(_,S,x,k,m[w+8],7,1770035416),S,x,m[w+9],12,-1958414417),_,S,m[w+10],17,-42063),k,_,m[w+11],22,-1990404162),x=l(x,k=l(k,_=l(_,S,x,k,m[w+12],7,1804603682),S,x,m[w+13],12,-40341101),_,S,m[w+14],17,-1502002290),k,_,m[w+15],22,1236535329),x=u(x,k=u(k,_=u(_,S,x,k,m[w+1],5,-165796510),S,x,m[w+6],9,-1069501632),_,S,m[w+11],14,643717713),k,_,m[w+0],20,-373897302),x=u(x,k=u(k,_=u(_,S,x,k,m[w+5],5,-701558691),S,x,m[w+10],9,38016083),_,S,m[w+15],14,-660478335),k,_,m[w+4],20,-405537848),x=u(x,k=u(k,_=u(_,S,x,k,m[w+9],5,568446438),S,x,m[w+14],9,-1019803690),_,S,m[w+3],14,-187363961),k,_,m[w+8],20,1163531501),x=u(x,k=u(k,_=u(_,S,x,k,m[w+13],5,-1444681467),S,x,m[w+2],9,-51403784),_,S,m[w+7],14,1735328473),k,_,m[w+12],20,-1926607734),x=d(x,k=d(k,_=d(_,S,x,k,m[w+5],4,-378558),S,x,m[w+8],11,-2022574463),_,S,m[w+11],16,1839030562),k,_,m[w+14],23,-35309556),x=d(x,k=d(k,_=d(_,S,x,k,m[w+1],4,-1530992060),S,x,m[w+4],11,1272893353),_,S,m[w+7],16,-155497632),k,_,m[w+10],23,-1094730640),x=d(x,k=d(k,_=d(_,S,x,k,m[w+13],4,681279174),S,x,m[w+0],11,-358537222),_,S,m[w+3],16,-722521979),k,_,m[w+6],23,76029189),x=d(x,k=d(k,_=d(_,S,x,k,m[w+9],4,-640364487),S,x,m[w+12],11,-421815835),_,S,m[w+15],16,530742520),k,_,m[w+2],23,-995338651),x=h(x,k=h(k,_=h(_,S,x,k,m[w+0],6,-198630844),S,x,m[w+7],10,1126891415),_,S,m[w+14],15,-1416354905),k,_,m[w+5],21,-57434055),x=h(x,k=h(k,_=h(_,S,x,k,m[w+12],6,1700485571),S,x,m[w+3],10,-1894986606),_,S,m[w+10],15,-1051523),k,_,m[w+1],21,-2054922799),x=h(x,k=h(k,_=h(_,S,x,k,m[w+8],6,1873313359),S,x,m[w+15],10,-30611744),_,S,m[w+6],15,-1560198380),k,_,m[w+13],21,1309151649),x=h(x,k=h(k,_=h(_,S,x,k,m[w+4],6,-145523070),S,x,m[w+11],10,-1120210379),_,S,m[w+2],15,718787259),k,_,m[w+9],21,-343485551),_=f(_,L),S=f(S,P),x=f(x,F),k=f(k,H)}return Array(_,S,x,k)}function o(m,y,_,S,x,k){return f(v(f(f(y,m),f(S,k)),x),_)}function l(m,y,_,S,x,k,w){return o(y&_|~y&S,m,y,x,k,w)}function u(m,y,_,S,x,k,w){return o(y&S|_&~S,m,y,x,k,w)}function d(m,y,_,S,x,k,w){return o(y^_^S,m,y,x,k,w)}function h(m,y,_,S,x,k,w){return o(_^(y|~S),m,y,x,k,w)}function f(m,y){var _=(65535&m)+(65535&y);return(m>>16)+(y>>16)+(_>>16)<<16|65535&_}function v(m,y){return m<<y|m>>>32-y}return t(r(s(n(e),8*e.length)))},Xo=function(e,t=!1){let n=0,r,s;if(e.length===0)return n;for(t===!0&&(e=e.split("").sort().join("")),r=0;r<e.length;r++)s=e.charCodeAt(r),n=(n<<5)-n+s,n|=0;return n},ps=function(r,t={},n){var r=new CustomEvent(r,{detail:t});return(n||document).dispatchEvent(r),r}
3,Jo=function(e){let t=Math.abs(e),n=Math.floor(t/3600),r=Math.floor(t%3600/60),s=Math.floor(t%3600%60);return(e<0?"-":"")+(n>0?("0"+n).slice(-2)+":":"")+("0"+r).slice(-2)+":"+("0"+s).slice(-2)},Ko=function(e,t=!1){switch(typeof e){case"number":String(e).length<13&&(e=e*1e3);break;case"string":e=+new Date(e);break;case"object":e.constructor===Date&&(e=e.getTime());break;default:e=+new Date}let n=new Date(e);return t?new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate()+" "+n.getHours()+":"+n.getMinutes()+":"+n.getSeconds()+" "+t):n},Er=function(e,t,n){var r=function(){var s=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,o=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/[^-+\dA-Z]/g,u=function(d,h){for(d=String(d),h=h||2;d.length<h;)d="0"+d;return d};return function(d,h,f){var v=r;if(arguments.length==1&&Object.prototype.toString.call(d)=="[object String]"&&!/\d/.test(d)&&(h=d,d=void 0),d=d?new Date(d):new Date,isNaN(d))throw SyntaxError("invalid date");h=String(v.masks[h]||h||v.masks.default),h.slice(0,4)=="UTC:"&&(h=h.slice(4),f=!0);var m=f?"getUTC":"get",y=d[m+"Date"](),_=d[m+"Day"](),S=d[m+"Month"](),x=d[m+"FullYear"](),k=d[m+"Hours"](),w=d[m+"Minutes"](),L=d[m+"Seconds"](),P=d[m+"Milliseconds"](),F=f?0:d.getTimezoneOffset(),H={d:y,dd:u(y),ddd:v.i18n.dayNames[_],dddd:v.i18n.dayNames[_+7],m:S+1,mm:u(S+1),mmm:v.i18n.monthNames[S],mmmm:v.i18n.monthNames[S+12],yy:String(x).slice(2),yyyy:x,h:k%12||12,hh:u(k%12||12),H:k,HH:u(k),M:w,MM:u(w),s:L,ss:u(L),l:u(P,3),L:u(P>99?Math.round(P/10):P),t:k<12?"a":"p",tt:k<12?"am":"pm",T:k<12?"A":"P",TT:k<12?"AM":"PM",Z:f?"UTC":(String(d).match(o)||[""]).pop().replace(l,""),o:(F>0?"-":"+")+u(Math.floor(Math.abs(F)/60)*100+Math.abs(F)%60,4),S:["th","st","nd","rd"][y%10>3?0:(y%100-y%10!=10)*y%10]};return h.replace(s,function(W){return W in H?H[W]:W.slice(1,W.length-1)})}}();return r.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"},r.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},r(e,t,n)},Qo=function(e){let t=e+"=",n=document.cookie.split(";");for(let r=0;r<n.length;r++){let s=n[r];for(;s.charAt(0)===" ";)s=s.substring(1,s.length);if(s.indexOf(t)===0)return s.substring(t.length,s.length)}return null},li=function(e,t,n=0){try{(!n||!si(n))&&(n=999999999999999);let r=new Date().getTime()+n*1e3;localStorage.setItem(e,JSON.stringify({value:t,expiry:r}))}catch(r){console.log("error:",r)}},ui=function(e){try{let t=localStorage.getItem(e);if(t){let n=Mo(t);if(n&&n.value&&n.expiry>new Date().getTime())return n.value}}catch{}return null},Zo=function(e,t,n=86400*30,r=!1){return e=Wo(e),new Promise(s=>{let o=ui(e);(o&&o.expiry?new Date>Ko(o.expiry):!0)||r===!0||!o.value?(o=typeof t=="function"?t():t,(typeof o.then=="function"?o:Promise.resolve(o)).then(d=>{var h=new Date;h.setSeconds(h.getSeconds()+n),li(e,{value:d,expiry:h}),s(d)})):s(o.value)})},Dr=function(e){return jo(`script-${e}`,()=>new Promise((t,n)=>{let r=document,s="script",o=r.createElement(s),l=r.getElementsByTagName(s)[0];o.src=en.call(this,e)||/^\//.test(e)?e:"//"+e,o.addEventListener("load",u=>t(u),!1),o.addEventListener("error",u=>n(u),!1),l.parentNode.insertBefore(o,l)}))},ea=function(e,t=!1){return ia(`style-${e}`,()=>new Promise((n,r)=>{let s=document,o="link",l=s.createElement(o);l.href=en.call(this,e)?e:"//"+e,l.setAttribute("rel","stylesheet"),l.setAttribute("type","text/css"),l.addEventListener("load",u=>n(u),!1),l.addEventListener("error",u=>r(u),!1),s.getElementsByTagName("head")[0].appendChild(l)}),t)},ta=function(e,t=!1){let n=[];for(let r of e)/\.js$/i.test(r)?n.push(()=>Dr(r)):n.push(()=>ea(r,t));return No(n)},na=function(e,t,n){var r=document.createElement("a");n=n||"application/octet-stream",navigator.msSaveBlob?navigator.msSaveBlob(new Blob([e],{type:n}),t):URL&&"download"in r?(r.href=en(e)||/^data:/.test(e)?e:URL.createObjectURL(new Blob([e],{type:n})),r.target="download",r.setAttribute("download",t),document.body.appendChild(r),r.click(),document.body.removeChild(r)):location.href="data:application/octet-stream,"+encodeURIComponent(e)},$_=function(e,t=!0){let n=document.createElement("span");n.style.display="none",n.style.backgroundColor=e,document.body.appendChild(n);let r=window.getComputedStyle(n)["background-color"];return n.remove(),t?"#"+r.slice(4,-1).split(", ").map(s=>(+s).toString(16).padStart(2,"0")).join(""):r},Cr=function(e,t,n=2500,...r){let s=`${e}_throttle_timeout`;typeof window[s]!="undefined"&&clearTimeout(window[s]),window[s]=setTimeout.call(this,()=>{window[s]=null,t.apply(this,r)},n)},Ct=function(e,t="success",n="",r=-1,s="top-0 start-50"){const o=` 4 <div class="toast align-items-center text-light bg-${t==="error"?"danger":t}" role="alert" aria-live="assertive" aria-atomic="true" data-bs-autohide="${r===0?"false":"true"}" data-bs-delay="${r>0?r:t==="error"?15e3:5e3}"> 5 <div class="d-flex"> 6 <div class="toast-body"> 7 ${n} ${e} 8 </div> 9 <button type="button" class="btn-close me-2 m-auto btn-close-white" data-bs-dismiss="toast" aria-label="Close"></button> 10 </div> 11 </div> 12 `;let l=$("#bs-toasts");l.length||(l=$(`<div class="toast-container position-fixed ${s} p-3" style="z-index: 99999999" id="bs-toasts"/>`),$("body").append(l));let u=jQuery(o);l.append(u),l.on("hidden.bs.toast",()=>u.remove());let d=new bootstrap.Toast(u);return d.show(),d},di=function({title:e="",body:t="",footer:n="",size:r="",options:s={}}){const o=e?`<div class="modal-header"><h5 class="modal-title">${e}</h5><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button></div>`:"",l=n?`<div class="modal-footer">${n}</div>`:"",u=` 13 <div class="modal" tabindex="-1"> 14 <div class="modal-dialog ${r}"> 15 <div class="modal-content"> 16 ${o} 17 <div class="modal-body"> 18 ${t} 19 </div> 20 ${l} 21 </div> 22 </div> 23 </div> 24 `;let d=jQuery(u);$("body").append(d);let h=new bootstrap.Modal(d[0],s);return d[0].addEventListener("hidden.bs.modal",function(){h.dispose(),d.remove()}),h.show(),{hide:()=>h.hide(),modal:d,instance:h}},ra=function({msg:e="Enter value:",value:t="",title:n="",html:r="",placeholder:s="",type:o="text",ok:l="OK",ok_class:u="btn-primary",cancel:d="Cancel",cancel_class:h="btn-secondary",size:f,help:v=""}){return new Promise(m=>{let y=$e(v)?"":`<div class="form-text small my-2">${v}</div>`,_=r||` 25 <form method="POST"> 26 <div class="mb-3"> 27 <label for="modal_input" class="form-label">${e}</label> 28 <input type="${o}" class="form-control" value="${t}" placeholder="${s}" required id="modal_input" > 29 ${y} 30 </div> 31 32 <div class="d-flex flex-row align-items-center justify-content-end pt-4"> 33 <button type="button" class="btn ${h} me-3" data-bs-dismiss="modal">${d}</button> 34 <button type="submit" class="btn ${u}">${l}</button> 35 </div> 36 </form>`,{hide:S,modal:x}=di({title:n,body:`<p>${_}</p>`,size:f,options:{backdrop:"static",keyboard:!1}}),k=jQuery(x).find("#modal_input"),w=jQuery(x).find("form");setTimeout(()=>k.focus(),100),w.submit(function(){return S(),m(r?w.serialize():k.val()),!1})})},sa=function({msg:e='<p class="lead"><i class="fa fa-spinner fa-spin"></i> Loading. Please wait..</p>',abortFn:t=!1,size:n="modal-sm",title:r=""}){let{hide:s,modal:o}=di({title:r,body:e,footer:t?'<button type="button" class="btn btn-danger btn-abort-fn"><i class="fa fa-ban"></i> Abort</button>':"",size:n,options:{backdrop:"static",keyboard:!1}});return t&&$(o).find(".btn-abort-fn").click(()=>{t(),s()}),{hide:s,modal:o}},ia=function(e,t,n=!1,r=window){return window._cache||(window._cache={}),dt(e)||(e=Xo(Kn(e))),new Promise((s,o)=>
36{if(n||!window._cache[e]){let l=typeof t=="function"?t():t;typeof l.then=="function"?l.then(u=>s(window._cache[e]=u)).catch(u=>o(u)):s(window._cache[e]=l)}else s(window._cache[e])})},oa=function(...e){var t,n,r,s,o;if(typeof window.Sentry!="undefined"){let l=window.Sentry,u=typeof window.app!="undefined"?window.app:{},d={auth:(n=(t=u==null?void 0:u._instance)==null?void 0:t.data)==null?void 0:n._user,data:(s=(r=u==null?void 0:u._instance)==null?void 0:r.data)==null?void 0:s._project,url:location.href,ip_addr:Qo("ip_addr")};(o=l.captureException)==null||o.call(l,(e==null?void 0:e[0])instanceof Error?e[0]:new Error(Kn(e)),{extra:d})}};const aa={name:"XAlert",props:{title:{type:String,default:"",required:!1},close:{type:Boolean,default:!0},type:{type:String,default:"success",required:!1},alertClass:{type:String,default:"",required:!1},icon:{type:String,default:null},href:{type:String,default:"",required:!1}},computed:{classes(){return this.alertClass?this.alertClass:"alert alert-"+(this.type==="danger"||this.type==="error"?"danger":this.type==="warning"?"warning":this.type==="info"?"info":"success")},alertIcon(){return this.icon!==null?this.icon:"fa-"+(this.type==="success"?"check":this.type==="info"?"info-circle":this.type==="warning"?"exclamation-triangle":this.type==="danger"||this.type==="error"?"exclamation-circle":"question-circle")},componentType(){return $e(this.href)?"div":"a"}}},la=["innerHTML"],ua={class:"d-flex flex-row align-items-start"},da={class:"flex-grow-1"};function ca(e,t,n,r,s,o){return b(),Z(vo(o.componentType),{class:re(["d-block",[o.classes,n.close?"alert-dismissible":""]]),role:"alert",href:n.href},{default:ut(()=>[n.title?(b(),C("h4",{key:0,class:"alert-heading",innerHTML:n.title},null,8,la)):V("",!0),p("div",ua,[o.alertIcon?(b(),C("i",{key:0,class:re(["fa fa-fw me-2 mt-1",o.alertIcon])},null,2)):V("",!0),p("div",da,[zt(e.$slots,"default")])]),n.close?(b(),C("button",{key:1,type:"button",class:"btn-close p-2","data-bs-dismiss":"alert","aria-label":"Close",onClick:t[0]||(t[0]=I(l=>e.$emit("close"),["stop","prevent"]))})):V("",!0)]),_:3},8,["class","href"])}var fa=J(aa,[["render",ca]]);let xe=function(e="item",t="",n="modelValue",r=0){let s;return{props:{[n]:{}},data(){return{[e]:this[n]}},watch:{[n]:{immediate:!0,handler(o){this[e]=typeof o!="undefined"?o:t}},[e]:{handler(o){!r&&!this.vModelDelay?this.$emit(`update:${n}`,o):(clearTimeout(s),s=setTimeout(()=>this.$emit(`update:${n}`,o),r||this.vModelDelay))}}}}},E_=function(e,t=150,n=null){let r=e+"Timeout",s=e+"Delayed",o={};return n&&(dt(n)&&(n={prop:n}),o={watch:{[n.prop]:{immediate:n.immediate!==!1,deep:n.deep!==!1,handler:e}}}),{data(){return{[r]:null}},methods:{[e](...l){clearTimeout(this[r]),this[r]=setTimeout(()=>{typeof this[s]=="function"?this[s].apply(this,l):console.error("Cannot find timeout function: ",s)},t)}},...o}},pa=function(){return{props:{debug:{required:!1},title:{type:String,default:"",required:!1},modal:{type:Boolean,default:!1,required:!1}},data(){return{showPopup:!1,item:null,result:!1,myModal:null,localTitle:void 0}},mounted(){var e;this.debug&&((e=this.onShow)==null||e.call(this,{item:this.debug}))},methods:{show({modal:e,title:t,item:n={},...r}={}){return new Promise(s=>{this.item=n,this.showPopup=!0,this.localTitle=t,this.$nextTick(()=>{var u,d,h;let o=this.$refs.modal,l=e||this.modal;(d=(u=bootstrap.Modal.getInstance(o))==null?void 0:u.dispose)==null||d.call(u),this.myModal=new bootstrap.Modal(o,l===!0?{backdrop:"static",keyboard:!1}:{}),console.log("this.myModal: ",this.myModal),o.addEventListener("hidden.bs.modal",async()=>{var f;await((f=this.onHide)==null?void 0:f.call(this)),s(this.result),this.$nextTick(()=>this.showPopup=!1),this.$emit("hide")}),this.myModal.show(),(h=this.onShow)==null||h.call(this,{modal:e,title:t,item:n,...r}),this.$emit("show")})})},save(){this.result=this.item,this.hide()},hide(){var e;(e=this.myModal)==null||e.hide(),this.myModal=null}},computed:{popupTitle(){return this.localTitle!==void 0?this.localTitle:this.title}},watch:{debug:{immediate:!0,handler(e){e&&(this.item=e)}}}}};var Mt={mixins:[nt,xe("user",{})],data(){return{submitting:!1}},methods:{submit(e,t={}){return new Promise(n=>{this.submitting=!0,this.user.error=null;let r=new Date().getTimezoneOffset(),s=nt(`/api/members/access/${e}`,"POST",{...this.user,...t,tz_offset:r},{showProgress:!0,showErrors:!1,showSuccess:!1});return s.then(o=>{if(!o||(o==null?void 0:o.error))return this.user.error={value:`Invalid data: ${o.error||"error"}`,error:!0};(o==null?void 0:o.is_user)===!0&&(this.user=o),n(o)}).catch(o=>this.user.error={value:o,error:!0}).finally(()=>this.submitting=!1),s})}},watch:{user:{immediate:!0,handler(e){e&&e.id&&typeof Sentry!="undefined"&&Sentry.setUser(e)}}}};const ha={name:"Forgot",extends:Mt,data(){return{sent:!1}},methods:{sendCode(){this.submit("forgot/send").then(()=>{this.sent=!0,Ct("Check your email for password reset code.")})},checkCode(){this.submit("forgot/check",{code:this.user.otp,new_password:this.user.new_password}).finally(()=>this.sent=!1)}}},ma=p("button",{class:"btn btn-primary w-100",type:"submit"},"Get Password Reset Code By Email",-1),ga={key:1,class:"btn btn-primary w-100",disabled:""},va=p("i",{class:"fa fa-spinner fa-spin"},null,-1),_a=q(" Please wait.."),ya=[va,_a],ba={key:2,class:"btn btn-primary w-100",type:"submit"},wa={class:"text-center mt-3 small"},Sa={class:"text-center mt-4 small"};function xa(e,t,n,r,s,o){const l=j("x-input");return b(),C("div",null,[s.sent?(b(),C("form",{key:1,ref:"form",onSubmit:t[5]||
36(t[5]=I((...u)=>o.checkCode&&o.checkCode(...u),["prevent"]))},[ee(l,{minlength:"8",name:"otp",placeholder:"Paste your 8 digit verification code here",label:"Password reset code (check your email):",required:"",autofocus:"",type:"text",modelValue:e.user.otp,"onUpdate:modelValue":t[2]||(t[2]=u=>e.user.otp=u),class:"mb-3"},null,8,["modelValue"]),e.user.otp?(b(),Z(l,{key:0,minlength:"6",label:"Create New Password:",name:"password",placeholder:"New password",required:"",type:"password",modelValue:e.user.new_password,"onUpdate:modelValue":t[3]||(t[3]=u=>e.user.new_password=u),class:"mb-3"},null,8,["modelValue"])):V("",!0),e.submitting?(b(),C("button",ga,ya)):(b(),C("button",ba,"Create New Password")),p("div",wa,[p("a",{class:"text-muted",onClick:t[4]||(t[4]=I((...u)=>o.sendCode&&o.sendCode(...u),["prevent"])),href:"#"},"Didn't get code? Resend email")])],544)):(b(),C("form",{key:0,ref:"form",onSubmit:t[1]||(t[1]=I((...u)=>o.sendCode&&o.sendCode(...u),["prevent"]))},[ee(l,{type:"email",name:"email",modelValue:e.user.email,"onUpdate:modelValue":t[0]||(t[0]=u=>e.user.email=u),placeholder:"[email protected]",label:"Registered email:",required:"",autofocus:"",class:"mb-3"},null,8,["modelValue"]),ma],544)),p("p",Sa,[p("a",{href:"#",onClick:t[6]||(t[6]=I(u=>e.$emit("route","login"),["prevent"]))},"Cancel")])])}var ka=J(ha,[["render",xa]]);const $a={name:"GAuth",extends:Mt,props:{googleClientId:{type:String,default:{}.VITE_APP_GOOGLE_CLIENT_ID,required:!1}},data(){return{loaded:null,gPromptHidden:!1}},mounted(){Dr("https://accounts.google.com/gsi/client").then(()=>{this.loaded=!0,this.$nextTick(()=>{var e,t,n,r;(r=(n=(t=(e=window.google)==null?void 0:e.accounts)==null?void 0:t.id)==null?void 0:n.initialize)==null||r.call(n,{client_id:this.googleClientId,auto_select:!1,prompt_parent_id:"auth_holder",context:"signin",callback:s=>this.submit("google-auth",{params:s})}),google.accounts.id.prompt(s=>{s.isNotDisplayed()||s.isSkippedMoment()?(this.gPromptHidden=!0,google.accounts.id.renderButton(this.$refs.gBtn,{theme:"outline",size:"large",text:"continue_with"})):this.gPromptHidden=!1})})})},methods:{hideGoogle(){this.gPromptHidden=!0}}},Ea={key:0},Ca={class:"d-flex flex-column align-items-center justify-content-center my-3"},Ma=p("div",{class:"text-success small font-weight-bold mb-2"},"Have a Google account?",-1),Ta={ref:"gBtn"},Oa=p("div",{class:"d-flex flex-row align-items-center faded"},[p("hr",{class:"flex-grow-1"}),p("div",{class:"mx-2"},"OR"),p("hr",{class:"flex-grow-1"})],-1),Aa=p("div",{class:"d-flex flex-row align-items-center justify-content-center w-100 h-100",id:"auth_holder"},null,-1),Ra=[Aa],za={key:0,style:{position:"absolute","z-index":"9999999999"}},Pa=p("i",{class:"fa fa-spinner fa-spin"},null,-1),Da=q(" Please wait.."),Na=[Pa,Da];function La(e,t,n,r,s,o){return n.googleClientId&&s.loaded?(b(),C("div",Ea,[p("div",Ca,[Ma,p("div",Ta,null,512)]),Oa,te(p("div",{class:"position-absolute",ref:"authHolder",onClick:t[0]||(t[0]=l=>o.hideGoogle()),style:{top:"0",left:"0",width:"100%",height:"100%",background:"rgba(255, 255, 255, 0.85)","z-index":"999"}},Ra,512),[[_o,!s.gPromptHidden]]),e.submitting?(b(),C("div",za,Na)):V("",!0)])):V("",!0)}var Ba=J($a,[["render",La]]);const Ia={name:"Login",extends:Mt},Va={class:"small my-2"},Ua={key:0,class:"btn btn-primary w-100",disabled:""},ja=p("i",{class:"fa fa-spinner fa-spin"},null,-1),qa=q(" Please wait.."),Ha=[ja,qa],Ga={key:1,class:"btn btn-primary w-100",type:"submit"};function Fa(e,t,n,r,s,o){const l=j("x-input");return b(),C("form",{ref:"form",onSubmit:t[3]||(t[3]=I(u=>e.submit("login"),["prevent"]))},[ee(l,{type:"email",name:"email",modelValue:e.user.email,"onUpdate:modelValue":t[0]||(t[0]=u=>e.user.email=u),placeholder:"[email protected]",label:"Registered email:",required:"",autofocus:"",class:"mb-3"},null,8,["modelValue"]),ee(l,{type:"password",name:"password",modelValue:e.user.password,"onUpdate:modelValue":t[1]||(t[1]=u=>e.user.password=u),placeholder:"password",label:"Password:",required:"",class:"mb-3"},null,8,["modelValue"]),p("div",Va,[p("a",{href:"#",onClick:t[2]||(t[2]=I(u=>e.$emit("route","forgot"),["prevent"]))},"Forgot password?")]),e.submitting?(b(),C("button",Ua,Ha)):(b(),C("button",Ga,"Log In"))],544)}var Ya=J(Ia,[["render",Fa]]);const Wa={name:"Profile",extends:Mt,data(){return{reset:!1}},methods:{save(){this.submit("update").then(()=>Ct("Profile updated successfully"))},resetPass(){this.user.old_password!==this.user.new_password?this.submit("reset-pw").then(()=>Ct("Password changed successfully")):Ct("New password must be different from old one","error")}}},Xa=p("h5",{class:"title-heading"},"Change password",-1),Ja={class:"d-flex flex-row align-items-center justify-content-between mt-3"},Ka=p("button",{class:"btn btn-primary",type:"submit"},[p("i",{class:"fa fa-user"}),q(" Update password")],-1),Qa=p("h5",{class:"title-heading"},"Profile",-1),Za={class:"d-flex flex-row align-items-center justify-content-between mt-3"},el=p("button",{class:"btn btn-primary",type:"submit"},[p("i",{class:"fa fa-user"}),q(" Update profile")],-1);function tl(e,t,n,r,s,o){const l=j("x-input");return s.reset?(b(),C("form",{key:0,onSubmit:t[3]||(t[3]=I((...u)=>o.resetPass&&o.resetPass(...u),["prevent"]))},[Xa,ee(l,{type:"password",name:"old_password",modelValue:e.user.old_password,"onUpdate:modelValue":t[0]||(t[0]=u=>e.user.old_password=u),label:"Old password:",placeholder:"Enter old password here",class:"mb-3"},null,8,["modelValue"]),ee(l,{type:"password",name:"new_password",modelValue:e.user.new_password,"onUpdate:modelValue":t[1]||(t[1]=u=>e.user.new_password=u),label:"New password:",placeholder:"Enter new password here",class:"mb-3"},null,8,["modelValue"]),p("div",Ja,[Ka,p("a",{href:"#",onClick:t[2]||(t[2]=I(u=>s.reset=!1,["prevent"])),class:"small"},"Cancel")])],32)):(b(),C("form",{key:1,onSubmit:t[7]||(t[7]=I((...u)=>o.save&&o.save(...u),["prevent"]))},[Qa,ee(l,{type:"text",modelValue:e.user.name,"onUpdate:modelValue":t[4]||(t[4]=u=>e.user.name=u),label:"Full Name:",placeholder:"Type your name here",class:"mb-2",required:""},null,8,["modelValue"]),ee(l,{type:"email",modelValue:e.user.email,"onUpdate:modelValue":t[5]||(t[5]=u=>e.user.email=u),label:"Registered email:",placeholder:"Type your email here","wrapper-class":"mb-4",required:"",help:"(changing email will require re-verification)"},null,8,["modelValue"]),p("div",Za,[el,p("a",{href:"#",onClick:t[6]||(t[6]=I(u=>s.reset=!0,["prevent"])),class:"small"},"Update password")])],32))}var nl=J(Wa,[["render",tl]]);const rl={name:"Signup",extends:Mt,computed:{helpText(){return Ho(this.user.email)?"An OTP (one-time password) will be sent to your email for verification":""}}},sl={class:"d-flex flex-row justify-content-end my-3"},il={key:0,class:"btn btn-primary w-100",disabled:""},ol=p("i",{class:"fa fa-spinner fa-spin"},null,-1),al=q(" Please wait.."),ll=[ol,al],ul={key:1,class:"btn btn-primary w-100",type:"submit"},dl=p("div",{class:"text-center my-2"},"(Sign up for FREE - No credit card required)",-1);function cl(e,t,n,r,s,o){const l=j("x-input");return b(),C("form",{ref:"form",onSubmit:t[2]||(t[2]=I(u=>e.submit("signup"),["prevent"]))},[ee(l,{type:"email",name:"email",modelValue:e.user.email,"onUpdate:modelValue":t[0]||(t[0]=u=>e.user.email=u),placeholder:"[email protected]",label:"Email address:",required:"",autofocus:"",helpClass:"text-success",class:"mb-3"},null,8,["modelValue"]),p("div",sl,[p("a",{href:"#",onClick:t[1]||(t[1]=I(u=>e.$emit("route","login"),["prevent"]))},"Already registered?")]),e.submitting?(b(),C("button",il,ll)):(b(),C("button",ul,"Sign up")),dl],544)}
36var fl=J(rl,[["render",cl]]);const pl={name:"Verify",extends:Mt,data(){return{changeEmail:!1}},mounted(){this.send()},methods:{send(e){e!==!0&&this.user.otp&&!this.changeEmail?this.submit("verify/check",{code:this.user.otp}):this.submit("verify/send",{email:this.user.email,type:"verify"}).then(()=>Ct(`Code was sent to ${this.user.email}`)).finally(()=>this.changeEmail=!1)}}},hl=p("h3",null,"Verify your account",-1),ml=p("hr",null,null,-1),gl={class:"d-flex flex-row justify-content-end my-3 small h-spacing-3"},vl=q(" | "),_l={key:1,class:"btn btn-primary w-100",disabled:""},yl=p("i",{class:"fa fa-spinner fa-spin"},null,-1),bl=q(" Please wait.."),wl=[yl,bl],Sl={key:2,class:"btn btn-primary w-100",type:"submit"};function xl(e,t,n,r,s,o){const l=j("x-input");return b(),C("div",null,[hl,ml,p("form",{ref:"form",onSubmit:t[4]||(t[4]=I(u=>o.send(),["prevent"]))},[s.changeEmail?V("",!0):(b(),Z(l,{key:0,type:"password",name:"otp",modelValue:e.user.otp,"onUpdate:modelValue":t[0]||(t[0]=u=>e.user.otp=u),placeholder:"Paste your 8 digit verification code here",label:"Verification code (check your email):",autofocus:"",required:"",class:"mb-3",minlength:"8"},null,8,["modelValue"])),ee(l,{type:"email",name:"email",modelValue:e.user.email,"onUpdate:modelValue":t[1]||(t[1]=u=>e.user.email=u),placeholder:"[email protected]",label:"Code was sent to this email:",readonly:!s.changeEmail,"wrapper-class":"mb-3 flex-grow-1"},null,8,["modelValue","readonly"]),p("div",gl,[p("a",{href:"#",onClick:t[2]||(t[2]=I(u=>o.send(!0),["prevent"])),class:"mr-1"},"Didn't get code?"),vl,p("a",{href:"#",onClick:t[3]||(t[3]=I(u=>s.changeEmail=!s.changeEmail,["prevent"])),class:"ml-1"},"Change email?")]),e.submitting?(b(),C("button",_l,wl)):(b(),C("button",Sl,"Verify account"))],544)])}var kl=J(pl,[["render",xl]]);const $l={name:"XAuthForm",components:{GAuth:Ba,Verify:kl,Profile:nl,Forgot:ka,Signup:fl,Login:Ya},extends:Mt,data(){return{route:""}},mounted(){this.submit("info").then(e=>this.user=e||{})},computed:{loggedIn(){return this.user.id>0},verified(){return this.user.verified},hideSignup(){return String("true")==="true"},tabs(){return this.hideSignup?["login"]:["signup","login"]}}},El=["innerHTML"],Cl={key:3,class:"position-relative"},Ml={class:"nav nav-tabs",id:"myTab",role:"tablist"},Tl={class:"nav-item"},Ol=["onClick"],Al={class:"tab-content active p-3 border border-top-0",id:"myTabContent"};function Rl(e,t,n,r,s,o){const l=j("verify"),u=j("profile"),d=j("g-auth"),h=j("forgot"),f=j("login"),v=j("signup");return b(),C("div",null,[e.user.error?(b(),C("div",{key:0,class:re(["alert",e.user.error.success?"alert-success":"alert-danger"]),innerHTML:e.user.error.value},null,10,El)):V("",!0),o.loggedIn&&!o.verified?(b(),Z(l,{key:1,modelValue:e.user,"onUpdate:modelValue":t[0]||(t[0]=m=>e.user=m)},null,8,["modelValue"])):o.loggedIn?(b(),Z(u,{key:2,modelValue:e.user,"onUpdate:modelValue":t[1]||(t[1]=m=>e.user=m)},null,8,["modelValue"])):(b(),C("div",Cl,[o.hideSignup?V("",!0):(b(),Z(d,{key:0,modelValue:e.user,"onUpdate:modelValue":t[2]||(t[2]=m=>e.user=m)},null,8,["modelValue"])),p("ul",Ml,[(b(!0),C(we,null,Oe(o.tabs,(m,y)=>(b(),C("li",Tl,[p("a",{href:"#",class:re(["nav-link text-capitalize",{active:!s.route&&!y||m===s.route}]),onClick:I(_=>s.route=m,["prevent"])},Ee(m),11,Ol)]))),256))]),p("div",Al,[s.route==="forgot"?(b(),Z(h,{key:0,modelValue:e.user,"onUpdate:modelValue":t[3]||(t[3]=m=>e.user=m),onRoute:t[4]||(t[4]=m=>s.route=m)},null,8,["modelValue"])):s.route==="login"||o.hideSignup?(b(),Z(f,{key:1,modelValue:e.user,"onUpdate:modelValue":t[5]||(t[5]=m=>e.user=m),onRoute:t[6]||(t[6]=m=>s.route=m)},null,8,["modelValue"])):(b(),Z(v,{key:2,modelValue:e.user,"onUpdate:modelValue":t[7]||(t[7]=m=>e.user=m),onRoute:t[8]||(t[8]=m=>s.route=m)},null,8,["modelValue"]))])]))])}var zl=J($l,[["render",Rl]]);const Pl={name:"XAuthPopup",components:{XAuthForm:zl},extends:Mt,props:{autoLogin:{},syncSettings:{type:Boolean,default:!1}},mixins:[xe("userSettings",{},"settings")],data(){return{showPopup:!1,myModal:null,title:"",loading:null,lastSettings:null}},created(){this.loading=!0,this.submit("info").then(e=>{this.user=e||{},this.user.id>0&&!this.user.verified&&this.show({})}).finally(()=>{this.loading=!1,this.$emit("auth",this.user)})},async mounted(){this.autoLogin&&await this.show({modal:this.autoLogin==="modal"})},methods:{show({title:e="",modal:t=void 0,autohide:n=!0}
36){if(!this.myModal)return this.loading?setTimeout(()=>this.show({title:e,modal:t,autohide:n}),100):n&&this.user.id>0&&this.user.verified?Promise.resolve(!0):new Promise((r,s)=>{this.title=e,this.showPopup=!0,this.$nextTick(()=>{let o=n?yo(()=>this.user.id>0&&this.user.verified?this.myModal.hide():""):null;this.myModal=new bootstrap.Modal(this.$refs.modal,t===!0?{backdrop:"static",keyboard:!1}:{}),this.$refs.modal.addEventListener("hidden.bs.modal",()=>(o==null||o(),this.myModal.dispose(),this.$nextTick(()=>this.showPopup=this.myModal=!1),this.user.id>0?r(this.user):s())),this.myModal.show()})})},profile(){return this.show(!1,!1)}},computed:{user_id(){var e;return(e=this.user)==null?void 0:e.id}},watch:{user_id:{immediate:!0,async handler(e){if(e>0&&this.syncSettings){let t=await nt("/api/members/settings","GET");this.userSettings=pn(t),this.lastSettings=pn(t)}}},userSettings:{deep:!0,async handler(e){!this.syncSettings||!this.user_id||JSON.stringify(e)!==JSON.stringify(this.lastSettings)&&Cr("update-settings",async()=>{await nt("/api/members/settings","POST",{settings:e}),this.lastSettings=pn(e)},2500)}}}},Dl={key:0},Nl={class:"modal",tabindex:"-1",ref:"modal"},Ll={class:"modal-dialog"},Bl={class:"modal-content"},Il={key:0,class:"modal-header py-1 px-3"},Vl=["innerHTML"],Ul=p("button",{type:"button",class:"btn-close btn-sm","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),jl={class:"modal-body"};function ql(e,t,n,r,s,o){const l=j("x-auth-form");return b(),C("div",null,[s.showPopup?(b(),C("div",Dl,[(b(),Z(Qs,{to:"body"},[p("div",Nl,[p("div",Ll,[p("div",Bl,[s.title?(b(),C("div",Il,[p("div",{class:"modal-title fw-bold",innerHTML:s.title},null,8,Vl),Ul])):V("",!0),p("div",jl,[ee(l,{modelValue:e.user,"onUpdate:modelValue":t[0]||(t[0]=u=>e.user=u)},null,8,["modelValue"])])])])],512)]))])):V("",!0)])}var Hl=J(Pl,[["render",ql]]),Gl={methods:{},computed:{isDebug(){return!1},domain(){return"instakeywords.com"},user:{get(){var e;return(e=this.$root)==null?void 0:e._user},set(e){this.$root._user=e}},userId(){var e;return((e=this.user)==null?void 0:e.id)||null}}};const Fl={name:"XHelpPopup",mixins:[pa()],computed:{src(){return Xe(this.item)?this.item.src:this.item},heading(){return Xe(this.item)?this.item.heading:null}}},Yl={key:0},Wl={class:"modal-dialog modal-xl"},Xl={class:"modal-content"},Jl={class:"modal-body"},Kl={key:0},Ql={class:"ratio ratio-16x9"},Zl=["src"];function eu(e,t,n,r,s,o){return e.showPopup||e.debug?(b(),C("div",Yl,[(b(),Z(Qs,{to:"body",disabled:e.debug&&!e.showPopup},[p("div",{class:re(e.showPopup||!e.debug?"modal":"d-block"),tabindex:"-1",ref:"modal"},[p("div",Wl,[p("div",Xl,[p("div",Jl,[o.heading?(b(),C("h4",Kl,Ee(o.heading),1)):V("",!0),p("div",Ql,[p("iframe",{src:o.src,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:"",stylex:"min-height: min(60vh, 720px)"},null,8,Zl)])])])])],2)],8,["disabled"]))])):V("",!0)}var tu=J(Fl,[["render",eu]]);const nu={name:"MenuBar",components:{XHelpPopup:tu},extends:Gl,methods:{help(){this.$refs.helpPopup.show({item:{heading:"Getting started with InstaKeywords",src:"https://www.youtube.com/embed/ax-yLYqbTE4?rel=0&autoplay=1"}})}}},ru={class:"navbar navbar-expand-lg navbar-dark bg-dark"},su={class:"container"},iu=p("a",{class:"navbar-brand",href:"#"},[p("img",{src:"https://bootstrapsite.fra1.digitaloceanspaces.com/hosted/16-02-2022/logo.png",height:"32"})],-1),ou=p("button",{class:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation"},[p("span",{class:"navbar-toggler-icon"})],-1),au={class:"collapse navbar-collapse",id:"navbarSupportedContent"},lu={class:"navbar-nav ms-auto"},uu=q("zxcrsaradasqdrfgsvdfddffddffdf vuuuuuuuuu "),du={class:"nav-item"},cu=p("i",{class:"fa fa-youtube"},null,-1),fu=q(" Help video"),pu=[cu,fu],hu=p("li",{class:"nav-item"},[p("a",{class:"nav-link",href:"/docs/faq"},[p("i",{class:"fa fa-book"}),q(" F.A.Q.")])],-1),mu={class:"nav-item"},gu=p("i",{class:"fa fa-gift"},null,-1),vu=q(" Bonuses "),_u=p("span",{class:"badge bg-danger"},"2",-1),yu=p("li",{class:"nav-item"},[p("a",{class:"nav-link",href:"https://www.facebook.com/groups/885318936068858/"},[p("i",{class:"fa fa-facebook"}),q(" FB Group")])],-1),bu={key:0,class:"nav-item"},wu=p("i",{class:"fa fa-user-slash"},null,-1),Su=[wu],xu={key:1,class:"nav-item dropdown"},ku=p("a",{class:"nav-link dropdown-toggle mx-1",href:"#",id:"userDd",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[p("i",{class:"fa fa-user me-1"})],-1),$u={class:"dropdown-menu dropdown-menu-end","aria-labelledby":"screenSizeDd"},Eu=p("li",null,[p("a",{class:"dropdown-item",href:"#"},[p("i",{class:"fa fa-fw fa-money"}),q(" InstaKeywords Pro (Unlimited)")])],-1),Cu=p("i",{class:"fa fa-fa fa-user"},null,-1),Mu=q(" Profile.."),Tu=[Cu,Mu],Ou=p("li",{class:"dropdown-divider"},null,-1),Au=p("li",null,[p("a",{class:"dropdown-item",href:"/api/members/access/logout"},[p("i",{class:"fa fa-fw fa-power-off"}),q(" Logout")])],-1);function Ru(e,t,n,r,s,o){const l=j("router-link"),u=j("x-help-popup");return b(),C("div",null,[p("nav",ru,[p("div",su,[iu,ou,p("div",au,[p("ul",lu,[uu,p("li",du,[p("a",{class:"nav-link",href:"#",onClick:t[0]||(t[0]=I((...d)=>
36o.help&&o.help(...d),["prevent"]))},pu)]),hu,p("li",mu,[ee(l,{class:"nav-link",to:"/bonuses"},{default:ut(()=>[gu,vu,_u]),_:1})]),yu,e.userId?(b(),C("li",xu,[ku,p("ul",$u,[Eu,p("li",null,[p("a",{class:"dropdown-item",href:"#",onClick:t[2]||(t[2]=I(d=>e.$root.profile(),["prevent"]))},Tu)]),Ou,Au])])):(b(),C("li",bu,[p("a",{class:"nav-link mx-1",href:"#",onClick:t[1]||(t[1]=I(d=>e.$root.authUser(),["prevent"]))},Su)]))])])])]),ee(u,{ref:"helpPopup"},null,512)])}var zu=J(nu,[["render",Ru]]);const Pu={name:"Timer",props:["endAt"],data(){return{endTime:"",remaining:"",interval:null}},async mounted(){this.endTime=new Date(this.endAt).getTime(),this.interval=setInterval(()=>this.update(),1e3)},methods:{update(){if(Math.floor((this.endTime-Date.now())/864e5)>0)return this.remaining="";let t=(this.endTime-Date.now())/1e3;t>0?this.remaining=Jo(t):(clearInterval(this.interval),this.remaining="00:00:00",this.$emit("ended"))}}},Du={key:0,class:"d-inline p-1"},Nu=p("i",{class:"fa fa-clock fa-spin"},null,-1);function Lu(e,t,n,r,s,o){return s.endTime?(b(),C("div",Du,[Nu,q(" "+Ee(s.remaining),1)])):V("",!0)}var Bu=J(Pu,[["render",Lu]]);const Iu={name:"App",components:{Timer:Bu,XAlert:fa,MenuBar:zu,XAuthPopup:Hl},data(){return{_user:{},settings:{},fetched:!1,hideAlert:!1}},created(){this.fetched=!1},async mounted(){await this.authUser({modal:!0}),this.settings=await nt("/api/members/settings/load","GET",{},{showProgress:!1,showErrors:!0,showSuccess:!1}),setTimeout(()=>this.fetched=!0,100)},methods:{authUser(e={}){return this.$refs.auth.show(e)},profile(){return this.$refs.auth.show({autohide:!1})},loaded(){console.log("loaded: ",111)},exportAll(e,t){let n=`Keyword,Volume,CPC,Competition,Score 37`,r={};for(let o of t)r[o.keyword]=o.exportRow();for(let o of e){let l=r[o];!l||(n+=`${o},${l.vol},${l.cpc},${l.assessment},${l.score} 38`)}let s=prompt("Enter filename:","export.csv");!s||na(n,s,"text/csv")},closed(){}},computed:{activeTab(){let e=oi(this.$route.path,"/");return e||"google"},tabs(){let e=["google","youtube","questions"];return ii(this.saved)||e.push("saved"),e},icons(){return{google:"google",youtube:"youtube",questions:"question",saved:"heart"}},isNew(){return{saved:!0}},saved:{get(){var e;return(e=this.settings)==null?void 0:e.saved},set(e){this.settings.saved=e}}},watch:{settings:{deep:!0,handler:async function(e){Xe(this.settings)||(this.settings={}),Xe(this.settings.saved)||(this.settings.saved={}),this.fetched&&await nt("/api/members/settings/save","POST",{settings:this.settings},{showProgress:!1,showErrors:!0,showSuccess:!1})}}}},Vu={class:"container my-3"},Uu={class:"d-flex flex-column flex-md-row align-items-center justify-content-between"},ju={class:"d-flex flex-row align-items-center gap-2"},qu=p("span",null,"Want to turn your keyword research into local niche sites without coding?",-1),Hu=p("span",{class:"btn btn-danger mx-2 fw-bold"},[p("i",{class:"fa fa-caret-right"}),q(" Get LocalSiteGo")],-1),Gu={class:"nav nav-tabs",id:"myTab",role:"tablist"},Fu={class:"nav-item text-capitalize"},Yu={key:0},Wu=p("img",{src:"https://cdn.articlevideorobot.com/hosted/03-05-2022/new-c7ef.webp",height:"16"},null,-1),Xu=[Wu],Ju={class:"tab-pane fade show active"};function Ku(e,t,n,r,s,o){const l=j("menu-bar"),u=j("Timer"),d=j("x-alert"),h=j("router-link"),f=j("router-view"),v=j("x-auth-popup");return b(),C("div",null,[ee(l),p("div",Vu,[s.hideAlert?V("",!0):(b(),Z(d,{key:0,class:"blink-twice",icon:"",type:"danger",href:"https://warriorplus.com/o2/a/w48x2b/0",target:"_blank"},{default:ut(()=>[p("div",Uu,[p("div",ju,[ee(u,{onEnded:t[0]||(t[0]=m=>s.hideAlert=!0),"end-at":"2023-09-20 23:59:00 GMT-0400"}),qu]),Hu])]),_:1})),p("ul",Gu,[(b(!0),C(we,null,Oe(o.tabs,m=>(b(),C("li",Fu,[ee(h,{class:re(["nav-link",{active:o.activeTab===m}]),to:`/${m}`,role:"tab","aria-controls":"home","aria-selected":"true"},{default:ut(()=>[p("i",{class:re(["fa fa-fw",`fa-${o.icons[m]}`])},null,2),q(" "+Ee(m)+" ",1),o.isNew[m]?(b(),C("sup",Yu,Xu)):V("",!0)]),_:2},1032,["class","to"])]))),256))]),(b(),C("div",{class:"tab-content border p-3 py-2 border-top-0",id:"myTabContent",key:o.activeTab},[p("div",Ju,[ee(f,{type:o.activeTab},null,8,["type"])])]))]),ee(v,{ref:"auth",modelValue:s._user,"onUpdate:modelValue":t[1]||(t[1]=m=>s._user=m),"auto-login":!1},null,8,["modelValue"])])}var Qu=J(Iu,[["render",Ku]]);function Zu(){return typeof __SENTRY_BROWSER_BUNDLE__!="undefined"&&!!__SENTRY_BROWSER_BUNDLE__}function Qn(){return!Zu()&&Object.prototype.toString.call(typeof process!="undefined"?process:0)==="[object process]"}function Et(e,t){return e.require(t)}function ed(e){let t;try{t=Et(module,e)}catch{}try{const{cwd:n}=Et(module,"process");t=Et(module,`${n()}/node_modules/${e}`)}catch{}return t}var td={};function Ue(){return Qn()?global:typeof window!="undefined"?window:typeof self!="undefined"?self:td}function Nr(e,t,n){var r=n||Ue(),s=r.__SENTRY__=r.__SENTRY__||{},o=s[e]||(s[e]=t());return o}var nd=Object.prototype.toString;function ci(e,t){return nd.call(e)===`[object ${t}]`}function hs(e){return ci(e,"String")}function fi(e){return ci(e,"Object")}function pi(e){return Boolean(e&&e.then&&typeof e.then=="function")}function rd(e){return typeof e=="number"&&e!==e}function hi(e,t){try{return e instanceof t}catch{return!1}}var sd=Ue(),id="Sentry Logger ",Yn=["debug","info","warn","error","log","assert","trace"];function mi(e){var t=Ue();if(!("console"in t))return e();var n=t.console,r={};
38Yn.forEach(s=>{var o=n[s]&&n[s].__sentry_original__;s in t.console&&o&&(r[s]=n[s],n[s]=o)});try{return e()}finally{Object.keys(r).forEach(s=>{n[s]=r[s]})}}function ms(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__?Yn.forEach(n=>{t[n]=(...r)=>{e&&mi(()=>{sd.console[n](`${id}[${n}]:`,...r)})}}):Yn.forEach(n=>{t[n]=()=>{}}),t}let _e;typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__?_e=Nr("logger",ms):_e=ms();function lt(e,t,n){if(t in e){var r=e[t],s=n(r);if(typeof s=="function")try{ad(s,r)}catch{}e[t]=s}}function od(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function ad(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,od(e,"__sentry_original__",t)}function Ft(e){var t=new Map;return Mr(e,t)}function Mr(e,t){if(fi(e)){var n=t.get(e);if(n!==void 0)return n;var r={};t.set(e,r);for(var s of Object.keys(e))typeof e[s]!="undefined"&&(r[s]=Mr(e[s],t));return r}if(Array.isArray(e)){var n=t.get(e);if(n!==void 0)return n;var r=[];return t.set(e,r),e.forEach(u=>{r.push(Mr(u,t))}),r}return e}function Ht(e,t){return e!=null?e:t()}var _r="<anonymous>";function ld(e){try{return!e||typeof e!="function"?_r:e.name||_r}catch{return _r}}function ud(){if(!("fetch"in Ue()))return!1;try{return new Headers,new Request(""),new Response,!0}catch{return!1}}function gs(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function dd(){if(!ud())return!1;var e=Ue();if(gs(e.fetch))return!0;let t=!1;var n=e.document;if(n&&typeof n.createElement=="function")try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=gs(r.contentWindow.fetch)),n.head.removeChild(r)}catch(s){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&_e.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",s)}return t}function cd(){var e=Ue(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}var le=Ue(),hn={},vs={};function fd(e){if(!vs[e])switch(vs[e]=!0,e){case"console":pd();break;case"dom":Sd();break;case"xhr":vd();break;case"fetch":hd();break;case"history":_d();break;case"error":xd();break;case"unhandledrejection":kd();break;default:(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&_e.warn("unknown instrumentation type:",e);return}}function _s(e,t){hn[e]=hn[e]||[],hn[e].push(t),fd(e)}function We(e,t){if(!(!e||!hn[e]))for(var n of hn[e]||[])try{n(t)}catch(r){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&_e.error(`Error while triggering instrumentation handler. 39Type: ${e} 40Name: ${ld(n)} 41Error:`,r)}}function pd(){"console"in le&&Yn.forEach(function(e){e in le.console&<(le.console,e,function(t){return function(...n){We("console",{args:n,level:e}),t&&t.apply(le.console,n)}})})}function hd(){!dd()||lt(le,"fetch",function(e){return function(...t){var n={args:t,fetchData:{method:md(t),url:gd(t)},startTimestamp:Date.now()};return We("fetch",{...n}),e.apply(le,t).then(r=>(We("fetch",{...n,endTimestamp:Date.now(),response:r}),r),r=>{throw We("fetch",{...n,endTimestamp:Date.now(),error:r}),r})}})}function md(e=[]){return"Request"in le&&hi(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function gd(e=[]){return typeof e[0]=="string"?e[0]:"Request"in le&&hi(e[0],Request)?e[0].url:String(e[0])}function vd(){if("XMLHttpRequest"in le){var e=XMLHttpRequest.prototype;lt(e,"open",function(t){return function(...n){var r=this,s=n[1],o=r.__sentry_xhr__={method:hs(n[0])?n[0].toUpperCase():n[0],url:n[1]};hs(s)&&o.method==="POST"&&s.match(/sentry_key/)&&(r.__sentry_own_request__=!0);var l=function(){if(r.readyState===4){try{o.status_code=r.status}catch{}We("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?lt(r,"onreadystatechange",function(u){return function(...d){return l(),u.apply(r,d)}}):r.addEventListener("readystatechange",l),t.apply(r,n)}}),lt(e,"send",function(t){return function(...n){return this.__sentry_xhr__&&n[0]!==void 0&&(this.__sentry_xhr__.body=n[0]),We("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}})}}let Vn;function _d(){if(!cd())return;var e=le.onpopstate;le.onpopstate=function(...n){var r=le.location.href,s=Vn;if(Vn=r,We("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){var s=r.length>2?r[2]:void 0;if(s){var o=Vn,l=String(s);Vn=l,We("history",{from:o,to:l})}return n.apply(this,r)}}lt(le.history,"pushState",t),lt(le.history,"replaceState",t)}var yd=1e3;let Un,jn;function bd(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch{}return!1}function wd(e){if(e.type!=="keypress")return!1;try{var t=e.target;if(!t||!t.tagName)return!0;
41if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)return!1}catch{}return!0}function ys(e,t=!1){return n=>{if(!(!n||jn===n)&&!wd(n)){var r=n.type==="keypress"?"input":n.type;Un===void 0?(e({event:n,name:r,global:t}),jn=n):bd(jn,n)&&(e({event:n,name:r,global:t}),jn=n),clearTimeout(Un),Un=le.setTimeout(()=>{Un=void 0},yd)}}}function Sd(){if("document"in le){var e=We.bind(null,"dom"),t=ys(e,!0);le.document.addEventListener("click",t,!1),le.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var r=le[n]&&le[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(lt(r,"addEventListener",function(s){return function(o,l,u){if(o==="click"||o=="keypress")try{var d=this,h=d.__sentry_instrumentation_handlers__=d.__sentry_instrumentation_handlers__||{},f=h[o]=h[o]||{refCount:0};if(!f.handler){var v=ys(e);f.handler=v,s.call(this,o,v,u)}f.refCount+=1}catch{}return s.call(this,o,l,u)}}),lt(r,"removeEventListener",function(s){return function(o,l,u){if(o==="click"||o=="keypress")try{var d=this,h=d.__sentry_instrumentation_handlers__||{},f=h[o];f&&(f.refCount-=1,f.refCount<=0&&(s.call(this,o,f.handler,u),f.handler=void 0,delete h[o]),Object.keys(h).length===0&&delete d.__sentry_instrumentation_handlers__)}catch{}return s.call(this,o,l,u)}}))})}}let yr=null;function xd(){yr=le.onerror,le.onerror=function(e,t,n,r,s){return We("error",{column:r,error:s,line:n,msg:e,url:t}),yr?yr.apply(this,arguments):!1}}let br=null;function kd(){br=le.onunhandledrejection,le.onunhandledrejection=function(e){return We("unhandledrejection",e),br?br.apply(this,arguments):!0}}function Ot(){var e=Ue(),t=e.crypto||e.msCrypto;if(t!==void 0&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=n[3]&4095|16384,n[4]=n[4]&16383|32768;var r=s=>{let o=s.toString(16);for(;o.length<4;)o=`0${o}`;return o};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,s=>{var o=Math.random()*16|0,l=s==="x"?o:o&3|8;return l.toString(16)})}var at;(function(e){var t=0;e[e.PENDING=t]="PENDING";var n=1;e[e.RESOLVED=n]="RESOLVED";var r=2;e[e.REJECTED=r]="REJECTED"})(at||(at={}));class tt{__init(){this._state=at.PENDING}__init2(){this._handlers=[]}constructor(t){tt.prototype.__init.call(this),tt.prototype.__init2.call(this),tt.prototype.__init3.call(this),tt.prototype.__init4.call(this),tt.prototype.__init5.call(this),tt.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new tt((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(l){s(l)}},o=>{if(!n)s(o);else try{r(n(o))}catch(l){s(l)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new tt((n,r)=>{let s,o;return this.then(l=>{o=!1,s=l,t&&t()},l=>{o=!0,s=l,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}__init3(){this._resolve=t=>{this._setResult(at.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(at.REJECTED,t)}}__init5(){this._setResult=(t,n)=>{if(this._state===at.PENDING){if(pi(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state!==at.PENDING){var t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===at.RESOLVED&&n[1](this._value),this._state===at.REJECTED&&n[2](this._value),n[0]=!0)})}}}}var Tr={nowSeconds:()=>Date.now()/1e3};function $d(){const{performance:e}=Ue();if(!(!e||!e.now)){var t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}}function Ed(){try{var e=Et(module,"perf_hooks");return e.performance}catch{return}}var wr=Qn()?Ed():$d(),bs=wr===void 0?Tr:{nowSeconds:()=>(wr.timeOrigin+wr.now())/1e3},gi=Tr.nowSeconds.bind(Tr),Lr=bs.nowSeconds.bind(bs),ws=Lr;(()=>{const{performance:e}=Ue();if(!(!e||!e.now)){var t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=s<t,l=e.timing&&e.timing.navigationStart,u=typeof l=="number",d=u?Math.abs(l+n-r):t,h=d<t;return o||h?s<=d?e.timeOrigin:l:r}})();function Ss(e,t="",n=!0){return[{...e},t,n]}function Cd(e){return e[0]}function Md(e){return e[2]}function Td(e){var t=Lr(),n={sid:Ot(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Ad(n)};return e&&Zn(n,e),n}function Zn(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Lr(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Ot()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),t
41ypeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Od(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),Zn(e,n)}function Ad(e){return Ft({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}var xs=100;class At{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){var n=new At;return t&&(n._breadcrumbs=[...t._breadcrumbs],n._tags={...t._tags},n._extra={...t._extra},n._contexts={...t._contexts},n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=[...t._eventProcessors],n._requestSession=t._requestSession,n._attachments=[...t._attachments]),n}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&Zn(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts={...this._contexts,[t]:n},this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){var n=t(this);return n instanceof At?n:this}return t instanceof At?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):fi(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(t,n){var r=typeof n=="number"?Math.min(n,xs):xs;if(r<=0)return this;var s={timestamp:gi(),...t};return this._breadcrumbs=[...this._breadcrumbs,s].slice(-r),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,n={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};var r=this._span.transaction&&this._span.transaction.name;r&&(t.tags={transaction:r,...t.tags})}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...Rd(),...this._eventProcessors],t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,n,r,s=0){return new tt((o,l)=>{var u=t[s];if(n===null||typeof u!="function")o(n);else{var d=u({...n},r);(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&u.id&&d===null&&_e.log(`Event processor "${u.id}
41" dropped event`),pi(d)?d.then(h=>this._notifyEventProcessors(t,h,r,s+1).then(o)).then(null,l):this._notifyEventProcessors(t,d,r,s+1).then(o).then(null,l)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function Rd(){return Nr("globalEventProcessors",()=>[])}var Br=4,zd=100;class $n{__init(){this._stack=[{}]}constructor(t,n=new At,r=Br){this._version=r,$n.prototype.__init.call(this),this.getStackTop().scope=n,t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){var n=this.getStackTop();n.client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){var t=At.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){var n=this.pushScope();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:Ot(),s=new Error("Sentry syntheticException");return this._withClient((o,l)=>{o.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},l)}),r}captureMessage(t,n,r){var s=this._lastEventId=r&&r.event_id?r.event_id:Ot(),o=new Error(t);return this._withClient((l,u)=>{l.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},u)}),s}captureEvent(t,n){var r=n&&n.event_id?n.event_id:Ot();return t.type!=="transaction"&&(this._lastEventId=r),this._withClient((s,o)=>{s.captureEvent(t,{...n,event_id:r},o)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:s}=this.getStackTop();if(!r||!s)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:l=zd}=s.getOptions&&s.getOptions()||{};if(!(l<=0)){var u=gi(),d={timestamp:u,...t},h=o?mi(()=>o(d,n)):d;h!==null&&r.addBreadcrumb(h,l)}}setUser(t){var n=this.getScope();n&&n.setUser(t)}setTags(t){var n=this.getScope();n&&n.setTags(t)}setExtras(t){var n=this.getScope();n&&n.setExtras(t)}setTag(t,n){var r=this.getScope();r&&r.setTag(t,n)}setExtra(t,n){var r=this.getScope();r&&r.setExtra(t,n)}setContext(t,n){var r=this.getScope();r&&r.setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();n&&r&&t(n)}run(t){var n=ks(this);try{t(this)}finally{ks(n)}}getIntegration(t){var n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&_e.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){return this._callExtensionMethod("startTransaction",t,n)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){var t=this.getStackTop(),n=t&&t.scope,r=n&&n.getSession();r&&Od(r),this._sendSessionUpdate(),n&&n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:s,environment:o}=r&&r.getOptions()||{};var l=Ue();const{userAgent:u}=l.navigator||{};var d=Td({release:s,environment:o,...n&&{user:n.getUser()},...u&&{userAgent:u},...t});if(n){var h=n.getSession&&n.getSession();h&&h.status==="ok"&&Zn(h,{status:"exited"}),this.endSession(),n.setSession(d)}return d}shouldSendDefaultPii(){var t=this.getClient(),n=t&&t.getOptions();return Boolean(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop();if(!!t){var r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}}_withClient(t){const{scope:n,client:r}=this.getStackTop();r&&t(r,n)}_callExtensionMethod(t,...n){var r=tn(),s=r.__SENTRY__;if(s&&s.extensions&&typeof s.extensions[t]=="function")return s.extensions[t].apply(this,n);(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&_e.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function tn(){var e=Ue();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function ks(e){var t=tn(),n=$t(t);return Ir(t,e),n}function Wn(){var e=tn();return(!vi(e)||$t(e).isOlderThan(Br))&&Ir(e,new $n),Qn()?Pd(e):$t(e)}function Pd(e){try{var t=tn().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return $t(e);if(!vi(n)||$t(n).isOlderThan(Br)){var r=$t(e).getStackTop();Ir(n,new $n(r.client,At.clone(r.scope)))}return $t(n)}catch{return $t(e)}}function vi(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function $t(e){return Nr("hub",()=>new $n,e)}function Ir(e,t){if(!e)return!1;var n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function Dd(e){var t=Wn().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function Nd(e){var t=e||Wn(),n=t.getScope();return n&&n.getTransaction()}function Ld(){_s("error",$s),_s("unhandledrejection",$s)}function $s(){var e=Nd();if(e){var t="internal_error";(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&_e.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}class Vr{__init(){this.spans=[]}constructor(t=1e3){Vr.prototype.__init.call(this),this._maxlen=t}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class xt{__init2(){this.traceId=Ot()}__init3(){this.spanId=Ot().substring(16)}__init4(){this.startTimestamp=ws()}__init5(){this.tags={}}__init6(){this.data={}}constructor(t){if(xt.prototype.__init2.call(this),xt.prototype.__init3.call(this),xt.prototype.__init4.call(this),xt.prototype.__init5.call(this),xt.prototype.__init6.call(this),!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&
41(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}startChild(t){var n=new xt({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t));var n=Bd(t);return n!=="unknown_error"&&this.setStatus(n),this}isSuccess(){return this.status==="ok"}finish(t){this.endTimestamp=typeof t=="number"?t:ws()}toTraceparent(){let t="";return this.sampled!==void 0&&(t=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${t}`}toContext(){return Ft({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=Ht(t.data,()=>({})),this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=Ht(t.spanId,()=>this.spanId),this.startTimestamp=Ht(t.startTimestamp,()=>this.startTimestamp),this.status=t.status,this.tags=Ht(t.tags,()=>({})),this.traceId=Ht(t.traceId,()=>this.traceId),this}getTraceContext(){return Ft({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return Ft({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}function Bd(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}class Ur extends xt{__init(){this._measurements={}}constructor(t,n){super(t),Ur.prototype.__init.call(this),this._hub=n||Wn(),this._name=t.name||"",this.metadata=t.metadata||{},this._trimEnd=t.trimEnd,this.transaction=this}get name(){return this._name}set name(t){this._name=t,this.metadata.source="custom"}setName(t,n="custom"){this.name=t,this.metadata.source=n}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Vr(t)),this.spanRecorder.add(this)}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){if(this.endTimestamp===void 0){if(this.name||((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&_e.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(t),this.sampled!==!0){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&_e.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var n=this._hub.getClient();n&&n.recordDroppedEvent("sample_rate","transaction");return}var r=this.spanRecorder?this.spanRecorder.spans.filter(u=>u!==this&&u.endTimestamp):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((u,d)=>u.endTimestamp&&d.endTimestamp?u.endTimestamp>d.endTimestamp?u:d:u).endTimestamp);var s=this.metadata,o={contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...s,baggage:this.getBaggage()},...s.source&&{transaction_info:{source:s.source}}},l=Object.keys(this._measurements).length>0;return l&&((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&_e.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),o.measurements=this._measurements),(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&_e.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(o)}}toContext(){var t=super.toContext();return Ft({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=Ht
41(t.name,()=>""),this._trimEnd=t.trimEnd,this}getBaggage(){var t=this.metadata.baggage,n=!t||Md(t)?this._populateBaggageWithSentryValues(t):t;return this.metadata.baggage=n,n}_populateBaggageWithSentryValues(t=Ss({})){var n=this._hub||Wn(),r=n&&n.getClient();if(!r)return t;const{environment:s,release:o}=r.getOptions()||{},{publicKey:l}=r.getDsn()||{};var u=this.metadata&&this.metadata.transactionSampling&&this.metadata.transactionSampling.rate,d=u!==void 0?u.toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:16}):void 0,h=n.getScope();const{segment:f}=h&&h.getUser()||{};var v=this.metadata.source,m=v&&v!=="url"?this.name:void 0;return Ss(Ft({environment:s,release:o,transaction:m,user_segment:f,public_key:l,trace_id:this.traceId,sample_rate:d,...Cd(t)}),"",!1)}}function Id(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function Vd(e,t,n){if(!Dd(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setMetadata({transactionSampling:{method:"explicitly_set"}}),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(r)}})):n.parentSampled!==void 0?(r=n.parentSampled,e.setMetadata({transactionSampling:{method:"inheritance"}})):(r=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:"client_rate",rate:Number(r)}})),Ud(r)?r?(e.sampled=Math.random()<r,e.sampled?((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&_e.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&_e.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&_e.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&_e.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function Ud(e){return rd(e)||!(typeof e=="number"||typeof e=="boolean")?((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&_e.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&_e.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function jd(e,t){var n=this.getClient(),r=n&&n.getOptions()||{};let s=new Ur(e,this);return s=Vd(s,r,{parentSampled:e.parentSampled,transactionContext:e,...t}),s.sampled&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),s}function qd(){var e=tn();!e.__SENTRY__||(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=jd),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=Id))}function Hd(){var e=tn();if(!!e.__SENTRY__){var t={mongodb(){var r=Et(module,"./integrations/node/mongo");return new r.Mongo},mongoose(){var r=Et(module,"./integrations/node/mongo");return new r.Mongo({mongoose:!0})},mysql(){var r=Et(module,"./integrations/node/mysql");return new r.Mysql},pg(){var r=Et(module,"./integrations/node/postgres");return new r.Postgres}},n=Object.keys(t).filter(r=>!!ed(r)).map(r=>{try{return t[r]()}catch{return}}).filter(r=>r);n.length>0&&(e.__SENTRY__.integrations=[...e.__SENTRY__.integrations||[],...n])}}function Gd(){qd(),Qn()&&Hd(),Ld()}(typeof __SENTRY_TRACING__=="undefined"||__SENTRY_TRACING__)&&Gd();var Fd=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Yd=(e,t)=>{},Me="top",Ie="bottom",Ve="right",Te="left",jr="auto",En=[Me,Ie,Ve,Te],Yt="start",wn="end",Wd="clippingParents",_i="viewport",dn="popper",Xd="reference",Es=En.reduce(function(e,t){return e.concat([t+"-"+Yt,t+"-"+wn])},[]),yi=[].concat(En,[jr]).reduce(function(e,t){return e.concat([t,t+"-"+Yt,t+"-"+wn])},[]),Jd="beforeRead",Kd="read",Qd="afterRead",Zd="beforeMain",ec="main",tc="afterMain",nc="beforeWrite",rc="write",sc="afterWrite",ic=[Jd,Kd,Qd,Zd,ec,tc,nc,rc,sc];function st(e){return e?(e.nodeName||"").toLowerCase():null}function Ke(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wt(e){var t=Ke(e).Element;return e instanceof t||e instanceof Element}function Be(e){var t=Ke(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function qr(e){if(typeof ShadowRoot=="undefined")return!1;var t=Ke(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function oc(e){var t=e.state;
vendor: 4,755 bytes, line 41
41Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},o=t.elements[n];!Be(o)||!st(o)||(Object.assign(o.style,r),Object.keys(s).forEach(function(l){var u=s[l];u===!1?o.removeAttribute(l):o.setAttribute(l,u===!0?"":u)}))})}function ac(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var s=t.elements[r],o=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=l.reduce(function(d,h){return d[h]="",d},{});!Be(s)||!st(s)||(Object.assign(s.style,u),Object.keys(o).forEach(function(d){s.removeAttribute(d)}))})}}var lc={name:"applyStyles",enabled:!0,phase:"write",fn:oc,effect:ac,requires:["computeStyles"]};function rt(e){return e.split("-")[0]}var Rt=Math.max,Xn=Math.min,Xt=Math.round;function Jt(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,s=1;if(Be(e)&&t){var o=e.offsetHeight,l=e.offsetWidth;l>0&&(r=Xt(n.width)/l||1),o>0&&(s=Xt(n.height)/o||1)}return{width:n.width/r,height:n.height/s,top:n.top/s,right:n.right/r,bottom:n.bottom/s,left:n.left/r,x:n.left/r,y:n.top/s}}function Hr(e){var t=Jt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function bi(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&qr(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ct(e){return Ke(e).getComputedStyle(e)}function uc(e){return["table","td","th"].indexOf(st(e))>=0}function Tt(e){return((Wt(e)?e.ownerDocument:e.document)||window.document).documentElement}function er(e){return st(e)==="html"?e:e.assignedSlot||e.parentNode||(qr(e)?e.host:null)||Tt(e)}function Cs(e){return!Be(e)||ct(e).position==="fixed"?null:e.offsetParent}function dc(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Be(e)){var r=ct(e);if(r.position==="fixed")return null}var s=er(e);for(qr(s)&&(s=s.host);Be(s)&&["html","body"].indexOf(st(s))<0;){var o=ct(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function Cn(e){for(var t=Ke(e),n=Cs(e);n&&uc(n)&&ct(n).position==="static";)n=Cs(n);return n&&(st(n)==="html"||st(n)==="body"&&ct(n).position==="static")?t:n||dc(e)||t}function Gr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mn(e,t,n){return Rt(e,Xn(t,n))}function cc(e,t,n){var r=mn(e,t,n);return r>n?n:r}function wi(){return{top:0,right:0,bottom:0,left:0}}function Si(e){return Object.assign({},wi(),e)}function xi(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var fc=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Si(typeof t!="number"?t:xi(t,En))};function pc(e){var t,n=e.state,r=e.name,s=e.options,o=n.elements.arrow,l=n.modifiersData.popperOffsets,u=rt(n.placement),d=Gr(u),h=[Te,Ve].indexOf(u)>=0,f=h?"height":"width";if(!(!o||!l)){var v=fc(s.padding,n),m=Hr(o),y=d==="y"?Me:Te,_=d==="y"?Ie:Ve,S=n.rects.reference[f]+n.rects.reference[d]-l[d]-n.rects.popper[f],x=l[d]-n.rects.reference[d],k=Cn(o),w=k?d==="y"?k.clientHeight||0:k.clientWidth||0:0,L=S/2-x/2,P=v[y],F=w-m[f]-v[_],H=w/2-m[f]/2+L,W=mn(P,H,F),ue=d;n.modifiersData[r]=(t={},t[ue]=W,t.centerOffset=W-H,t)}}function hc(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||!bi(t.elements.popper,s)||(t.elements.arrow=s))}var mc={name:"arrow",enabled:!0,phase:"main",fn:pc,effect:hc,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Kt(e){return e.split("-")[1]}var gc={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vc(e){var t=e.x,n=e.y,r=window,s=r.devicePixelRatio||1;return{x:Xt(t*s)/s||0,y:Xt(n*s)/s||0}}function Ms(e){var t,n=e.popper,r=e.popperRect,s=e.placement,o=e.variation,l=e.offsets,u=e.position,d=e.gpuAcceleration,h=e.adaptive,f=e.roundOffsets,v=e.isFixed,m=l.x,y=m===void 0?0:m,_=l.y,S=_===void 0?0:_,x=typeof f=="function"?f({x:y,y:S}):{x:y,y:S};y=x.x,S=x.y;var k=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),L=Te,P=Me,F=window;if(h){var H=Cn(n),W="clientHeight",ue="clientWidth";if(H===Ke(n)&&(H=Tt(n),ct(H).position!=="static"&&u==="absolute"&&(W="scrollHeight",ue="scrollWidth")),H=H,s===Me||(s===Te||s===Ve)&&o===wn){P=Ie;
vendor: 4,129 bytes, line 41
41var ce=v&&H===F&&F.visualViewport?F.visualViewport.height:H[W];S-=ce-r.height,S*=d?1:-1}if(s===Te||(s===Me||s===Ie)&&o===wn){L=Ve;var se=v&&H===F&&F.visualViewport?F.visualViewport.width:H[ue];y-=se-r.width,y*=d?1:-1}}var de=Object.assign({position:u},h&&gc),me=f===!0?vc({x:y,y:S}):{x:y,y:S};if(y=me.x,S=me.y,d){var ge;return Object.assign({},de,(ge={},ge[P]=w?"0":"",ge[L]=k?"0":"",ge.transform=(F.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",ge))}return Object.assign({},de,(t={},t[P]=w?S+"px":"",t[L]=k?y+"px":"",t.transform="",t))}function _c(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,o=n.adaptive,l=o===void 0?!0:o,u=n.roundOffsets,d=u===void 0?!0:u,h={placement:rt(t.placement),variation:Kt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ms(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ms(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var yc={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_c,data:{}},qn={passive:!0};function bc(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,o=s===void 0?!0:s,l=r.resize,u=l===void 0?!0:l,d=Ke(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&h.forEach(function(f){f.addEventListener("scroll",n.update,qn)}),u&&d.addEventListener("resize",n.update,qn),function(){o&&h.forEach(function(f){f.removeEventListener("scroll",n.update,qn)}),u&&d.removeEventListener("resize",n.update,qn)}}var wc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bc,data:{}},Sc={left:"right",right:"left",bottom:"top",top:"bottom"};function Hn(e){return e.replace(/left|right|bottom|top/g,function(t){return Sc[t]})}var xc={start:"end",end:"start"};function Ts(e){return e.replace(/start|end/g,function(t){return xc[t]})}function Fr(e){var t=Ke(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Yr(e){return Jt(Tt(e)).left+Fr(e).scrollLeft}function kc(e){var t=Ke(e),n=Tt(e),r=t.visualViewport,s=n.clientWidth,o=n.clientHeight,l=0,u=0;return r&&(s=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,u=r.offsetTop)),{width:s,height:o,x:l+Yr(e),y:u}}function $c(e){var t,n=Tt(e),r=Fr(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=Rt(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=Rt(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),u=-r.scrollLeft+Yr(e),d=-r.scrollTop;return ct(s||n).direction==="rtl"&&(u+=Rt(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:l,x:u,y:d}}function Wr(e){var t=ct(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function ki(e){return["html","body","#document"].indexOf(st(e))>=0?e.ownerDocument.body:Be(e)&&Wr(e)?e:ki(er(e))}function gn(e,t){var n;t===void 0&&(t=[]);var r=ki(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=Ke(r),l=s?[o].concat(o.visualViewport||[],Wr(r)?r:[]):r,u=t.concat(l);return s?u:u.concat(gn(er(l)))}function Or(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ec(e){var t=Jt(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Os(e,t){return t===_i?Or(kc(e)):Wt(t)?Ec(t):Or($c(Tt(e)))}function Cc(e){var t=gn(er(e)),n=["absolute","fixed"].indexOf(ct(e).position)>=0,r=n&&Be(e)?Cn(e):e;return Wt(r)?t.filter(function(s){return Wt(s)&&bi(s,r)&&st(s)!=="body"}):[]}function Mc(e,t,n){var r=t==="clippingParents"?Cc(e):[].concat(t),s=[].concat(r,[n]),o=s[0],l=s.reduce(function(u,d){var h=Os(e,d);
vendor: 7,753 bytes, line 41
41return u.top=Rt(h.top,u.top),u.right=Xn(h.right,u.right),u.bottom=Xn(h.bottom,u.bottom),u.left=Rt(h.left,u.left),u},Os(e,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function $i(e){var t=e.reference,n=e.element,r=e.placement,s=r?rt(r):null,o=r?Kt(r):null,l=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,d;switch(s){case Me:d={x:l,y:t.y-n.height};break;case Ie:d={x:l,y:t.y+t.height};break;case Ve:d={x:t.x+t.width,y:u};break;case Te:d={x:t.x-n.width,y:u};break;default:d={x:t.x,y:t.y}}var h=s?Gr(s):null;if(h!=null){var f=h==="y"?"height":"width";switch(o){case Yt:d[h]=d[h]-(t[f]/2-n[f]/2);break;case wn:d[h]=d[h]+(t[f]/2-n[f]/2);break}}return d}function Sn(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,o=n.boundary,l=o===void 0?Wd:o,u=n.rootBoundary,d=u===void 0?_i:u,h=n.elementContext,f=h===void 0?dn:h,v=n.altBoundary,m=v===void 0?!1:v,y=n.padding,_=y===void 0?0:y,S=Si(typeof _!="number"?_:xi(_,En)),x=f===dn?Xd:dn,k=e.rects.popper,w=e.elements[m?x:f],L=Mc(Wt(w)?w:w.contextElement||Tt(e.elements.popper),l,d),P=Jt(e.elements.reference),F=$i({reference:P,element:k,strategy:"absolute",placement:s}),H=Or(Object.assign({},k,F)),W=f===dn?H:P,ue={top:L.top-W.top+S.top,bottom:W.bottom-L.bottom+S.bottom,left:L.left-W.left+S.left,right:W.right-L.right+S.right},ce=e.modifiersData.offset;if(f===dn&&ce){var se=ce[s];Object.keys(ue).forEach(function(de){var me=[Ve,Ie].indexOf(de)>=0?1:-1,ge=[Me,Ie].indexOf(de)>=0?"y":"x";ue[de]+=se[ge]*me})}return ue}function Tc(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,o=n.rootBoundary,l=n.padding,u=n.flipVariations,d=n.allowedAutoPlacements,h=d===void 0?yi:d,f=Kt(r),v=f?u?Es:Es.filter(function(_){return Kt(_)===f}):En,m=v.filter(function(_){return h.indexOf(_)>=0});m.length===0&&(m=v);var y=m.reduce(function(_,S){return _[S]=Sn(e,{placement:S,boundary:s,rootBoundary:o,padding:l})[rt(S)],_},{});return Object.keys(y).sort(function(_,S){return y[_]-y[S]})}function Oc(e){if(rt(e)===jr)return[];var t=Hn(e);return[Ts(e),t,Ts(t)]}function Ac(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,l=n.altAxis,u=l===void 0?!0:l,d=n.fallbackPlacements,h=n.padding,f=n.boundary,v=n.rootBoundary,m=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,S=n.allowedAutoPlacements,x=t.options.placement,k=rt(x),w=k===x,L=d||(w||!_?[Hn(x)]:Oc(x)),P=[x].concat(L).reduce(function(Ne,T){return Ne.concat(rt(T)===jr?Tc(t,{placement:T,boundary:f,rootBoundary:v,padding:h,flipVariations:_,allowedAutoPlacements:S}):T)},[]),F=t.rects.reference,H=t.rects.popper,W=new Map,ue=!0,ce=P[0],se=0;se<P.length;se++){var de=P[se],me=rt(de),ge=Kt(de)===Yt,Pe=[Me,Ie].indexOf(me)>=0,je=Pe?"width":"height",fe=Sn(t,{placement:de,boundary:f,rootBoundary:v,altBoundary:m,padding:h}),ve=Pe?ge?Ve:Te:ge?Ie:Me;F[je]>H[je]&&(ve=Hn(ve));var ft=Hn(ve),Ae=[];if(o&&Ae.push(fe[me]<=0),u&&Ae.push(fe[ve]<=0,fe[ft]<=0),Ae.every(function(Ne){return Ne})){ce=de,ue=!1;break}W.set(de,Ae)}if(ue)for(var it=_?3:1,ot=function(T){var A=P.find(function(O){var R=W.get(O);if(R)return R.slice(0,T).every(function(Q){return Q})});if(A)return ce=A,"break"},De=it;De>0;De--){var qe=ot(De);if(qe==="break")break}t.placement!==ce&&(t.modifiersData[r]._skip=!0,t.placement=ce,t.reset=!0)}}var Rc={name:"flip",enabled:!0,phase:"main",fn:Ac,requiresIfExists:["offset"],data:{_skip:!1}};function As(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Rs(e){return[Me,Ve,Ie,Te].some(function(t){return e[t]>=0})}function zc(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,l=Sn(t,{elementContext:"reference"}),u=Sn(t,{altBoundary:!0}),d=As(l,r),h=As(u,s,o),f=Rs(d),v=Rs(h);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:h,isReferenceHidden:f,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":v})}var Pc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zc};function Dc(e,t,n){var r=rt(e),s=[Te,Me].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=o[0],u=o[1];return l=l||0,u=(u||0)*s,[Te,Ve].indexOf(r)>=0?{x:u,y:l}:{x:l,y:u}}function Nc(e){var t=e.state,n=e.options,r=e.name,s=n.offset,o=s===void 0?[0,0]:s,l=yi.reduce(function(f,v){return f[v]=Dc(v,t.rects,o),f},{}),u=l[t.placement],d=u.x,h=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=h),t.modifiersData[r]=l}var Lc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nc};function Bc(e){var t=e.state,n=e.name;t.modifiersData[n]=$i({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Ic={name:"popperOffsets",enabled:!0,phase:"read",fn:Bc,data:{}};function Vc(e){return e==="x"?"y":"x"}function Uc(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,o=s===void 0?!0:s,l=n.altAxis,u=l===void 0?!1:l,d=n.boundary,h=n.rootBoundary,f=n.altBoundary,v=n.padding,m=n.tether,y=m===void 0?!0:m,_=n.tetherOffset,S=_===void 0?0:_,x=Sn(t,{boundary:d,rootBoundary:h,padding:v,altBoundary:f}),k=rt(t.placement),w=Kt(t.placement),L=!w,P=Gr(k),F=Vc(P),H=t.modifiersData.popperOffsets,W=t.rects.reference,ue=t.rects.popper,ce=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,se=typeof ce=="number"?{mainAxis:ce,altAxis:ce}:Object.assign({mainAxis:0,altAxis:0},ce),de=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,me={x:0,y:0};if(!!H){if(o){var ge,Pe=P==="y"?Me:Te,je=P==="y"?Ie:Ve,fe=P==="y"?"height":"width",ve=H[P],ft=ve+x[Pe],Ae=ve-x[je],it=y?-ue[fe]/2:0,ot=w===Yt?W[fe]:ue[fe],De=w===Yt?-ue[fe]:-W[fe],qe=t.elements.arrow,Ne=y&&qe?Hr(qe):{width:0,height:0},T=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wi(),A=T[Pe],O=T[je],R=mn(0,W[fe],Ne[fe]),Q=L?W[fe]/2-it-R-A-se.mainAxis:ot-R-A-se.mainAxis,oe=L?-W[fe]/2+it+R+O+se.mainAxis:De+R+O+se.mainAxis,B=t.elements.arrow&&Cn(t.elements.arrow),Y=B?P==="y"?B.clientTop||0:B.clientLeft||0:0,ae=(ge=de==null?void 0:de[P])!=null?ge:0,Qe=ve+Q-ae-Y,ke=ve+oe-ae,Mn=mn(y?Xn(ft,Qe):ft,ve,y?Rt(Ae,ke):Ae);H[P]=Mn,me[P]=Mn-ve}if(u){var Tn,nr=P==="x"?Me:Te,rr=P==="x"?Ie:Ve,He=H[F],pt=F==="y"?"height":"width",Le=He+x[nr],nn=He-x[rr],ht=[Me,Te].indexOf(k)!==-1,mt=(Tn=de==null?void 0:de[F])!=null?Tn:0,Dt=ht?Le:He-W[pt]-ue[pt]-mt+se.altAxis,Nt=ht?He+W[pt]+ue[pt]-mt-se.altAxis:nn,On=y&&ht?cc(Dt,He,Nt):mn(y?Dt:Le,He,y?Nt:nn);H[F]=On,me[F]=On-He}t.modifiersData[r]=me}}var jc={name:"preventOverflow",enabled:!0,phase:"main",fn:Uc,requiresIfExists:["offset"]};function qc(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Hc(e){return e===Ke(e)||!Be(e)?Fr(e):qc(e)}function Gc(e){var t=e.getBoundingClientRect(),n=Xt(t.width)/e.offsetWidth||1,r=Xt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Fc(e,t,n){n===void 0&&(n=!1);var r=Be(t),s=Be(t)&&Gc(t),o=Tt(t),l=Jt(e,s),u={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((st(t)!=="body"||Wr(o))&&(u=Hc(t)),Be(t)?(d=Jt(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):o&&(d.x=Yr(o))),{x:l.left+u.scrollLeft-d.x,y:l.top+u.scrollTop-d.y,width:l.width,height:l.height}}function Yc(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var l=[].concat(o.requires||[],o.requiresIfExists||[]);l.forEach(function(u){if(!n.has(u)){var d=t.get(u);d&&s(d)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),r}function Wc(e){var t=Yc(e);return ic.reduce(function(n,r){return n.concat(t.filter(function(s){return s.p
41hase===r}))},[])}function Xc(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Jc(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var zs={placement:"bottom",modifiers:[],strategy:"absolute"};function Ps(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Kc(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?zs:s;return function(u,d,h){h===void 0&&(h=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},zs,o),modifiersData:{},elements:{reference:u,popper:d},attributes:{},styles:{}},v=[],m=!1,y={state:f,setOptions:function(k){var w=typeof k=="function"?k(f.options):k;S(),f.options=Object.assign({},o,f.options,w),f.scrollParents={reference:Wt(u)?gn(u):u.contextElement?gn(u.contextElement):[],popper:gn(d)};var L=Wc(Jc([].concat(r,f.options.modifiers)));return f.orderedModifiers=L.filter(function(P){return P.enabled}),_(),y.update()},forceUpdate:function(){if(!m){var k=f.elements,w=k.reference,L=k.popper;if(!!Ps(w,L)){f.rects={reference:Fc(w,Cn(L),f.options.strategy==="fixed"),popper:Hr(L)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(se){return f.modifiersData[se.name]=Object.assign({},se.data)});for(var P=0;P<f.orderedModifiers.length;P++){if(f.reset===!0){f.reset=!1,P=-1;continue}var F=f.orderedModifiers[P],H=F.fn,W=F.options,ue=W===void 0?{}:W,ce=F.name;typeof H=="function"&&(f=H({state:f,options:ue,name:ce,instance:y})||f)}}}},update:Xc(function(){return new Promise(function(x){y.forceUpdate(),x(f)})}),destroy:function(){S(),m=!0}};if(!Ps(u,d))return y;y.setOptions(h).then(function(x){!m&&h.onFirstUpdate&&h.onFirstUpdate(x)});function _(){f.orderedModifiers.forEach(function(x){var k=x.name,w=x.options,L=w===void 0?{}:w,P=x.effect;if(typeof P=="function"){var F=P({state:f,name:k,instance:y,options:L}),H=function(){};v.push(F||H)}})}function S(){v.forEach(function(x){return x()}),v=[]}return y}}var Qc=[wc,Ic,yc,lc,Lc,Rc,jc,mc,Pc],Zc=Kc({defaultModifiers:Qc}),ef=e=>{e.directive("popover",{beforeMount(t,n){if(!n.value)return;let r=[...n.modifiers.focus?["focus"]:[],...n.modifiers.hover?["hover"]:[],...n.modifiers.click?["click"]:[]].join(" ").trim(),s=n.modifiers.right?"right":n.modifiers.left?"left":n.modifiers.bottom?"bottom":"top";r.length||(r="click");let o=n.modifiers.delay?100:r.includes("hover")?{show:0,hide:100}:0,l={content:n.value,container:"body",html:!0,animation:!1,placement:s,fallbackPlacements:[s],trigger:r,sanitize:!1,delay:o,template:'<div class="popover no-max-width" role="tooltip"><div class="popover-arrow"></div><div class="popover-body"></div></div>'},u=new bootstrap.Popover(t,l);r.includes("hover")&&(t.addEventListener("show.bs.popover",function(d){$("div.popover").remove()}),t.addEventListener("shown.bs.popover",function(d){let h=u.hide,f=u.tip;$(f).on("mouseenter",()=>u.hide=()=>1),$(f).on("mouseleave",()=>{u.hide=h,u.hide()})}))},beforeUnmount(t){var n,r;try{(r=(n=bootstrap.Popover.getInstance(t))==null?void 0:n.dispose)==null||r.call(n)}catch(s){console.log("error:",s)}}}),e.directive("markdown",function(t,n){var r,s;if(n.value!==t._md){let o=$("<div/>").html(n.value),l=function(u){$(u).contents().each((d,h)=>{h.nodeType===3?$(h).replaceWith(Lo(h.textContent)):l(h)})};l(o),t.innerHTML=o.html(),t._md=(s=(r=n.value)==null?void 0:r.toString)==null?void 0:s.call(r)}}),e.directive("hint",{beforeMount(t,n){let r=[...n.modifiers.focus?["focus"]:[],...n.modifiers.hover?["hover"]:[],...n.modifiers.click?["click"]:[]].join(" ").trim(),s=n.modifiers.right?"right":n.modifiers.left?"left":n.modifiers.bottom?"bottom":"top";r.length||(r="hover"),new bootstrap.Tooltip(t,{title:n.value,container:"body",html:!0,placement:s,trigger:r,sanitize:!1})},updated(t,n){t.setAttribute("data-bs-original-title",n.value)},beforeUnmount(t){var n,r;(r=(n=bootstrap.Tooltip.getInstance(t))==null?void 0:n.dispose)==null||r.call(n)}}),e.directive("hotkeys",{beforeMount(t,n){n.modifiers.document&&(t=document),t.ns=Gn(),$(t).on(`keydown.${t.ns}`,r=>{var s;for(let o of Object.keys(n.value)){let l=n.value[o],u=[];for(let f of["ctrl","shift","alt","filter"])if(o.indexOf(`${f}.`)!==-1){if(f==="filter"){if($(r.target).is("input,textarea,select,[contenteditable]"))return}else u.push(f);o=o.replace(`${f}.`,"")}let d=o.trim(),h=!0;for(let f of u)r!=null&&r[`${f}Key`]||(h=!1);if(((s=r==null?void 0:r.key)==null?void 0:s.toLowerCase())!==d.toLowerCase()&&(h=!1),h)return r.preventDefault(),r.stopImmediatePropagation(),l.call(this)}})},beforeUnmount(t,n){n.modifiers.document&&(t=document),$(t).off(`.${t.ns}`)}}),e.directive("dropdown-events",{mounted(t,n){let r=$(t).closest(".dropdown").find("[data-bs-toggle]").first();r.length&&(r.on("show.bs.dropdown",()=>ps("open",null,t)),r.on("hidden.bs.dropdown",()=>ps("close",null,t)))}}),e.directive("dropdown-fixed",{beforeMount(t,n){var o,l;(l=(o=bootstrap.Dropdown.getInstance(t))==null?void 0:o.dispose)==null||l.call(o);let r=new bootstrap.Dropdown($(t).find('[data-bs-toggle="dropdown"]').get(0),{popperConfig:{strategy:"fixed"}}),s=u=>n.modifiers.autoclose?r.hide():"";$(t).on("shown.bs.dropdown",()=>setTimeout(()=>
41document.body.addEventListener("click",s,{once:!0,capture:!0}),1e3)),$(t).on("hide.bs.dropdown",()=>document.body.removeEventListener("click",s,{once:!0,capture:!0}))}}),e.directive("multilevel-dropdown",{mounted(t,n){let r=$(t),s=$(t).find("[data-bs-toggle]").first();s.on("shown.bs.dropdown",()=>{console.log("11111111: ",11111111),setTimeout(()=>{r.find(".dropdown-submenu").off("click.vdd").on("click.vdd",l=>{var v,m;console.log("{e}: ",{e:l}),l.preventDefault(),l.stopPropagation();let u=l.currentTarget,d=$(u).find(".dropdown-menu").first(),h=d.hasClass("show"),f=()=>$(u).find(".dropdown-menu").removeClass("show");if(h)f();else{let y=[d[0]],_=d[0];for(;(_=$(_).parent().closest(".dropdown-menu"))&&_.length;)y.push(_[0]);$(".dropdown-menu").each((S,x)=>y.indexOf(x)===-1?$(x).removeClass("show"):""),s.one("hidden.bs.dropdown",()=>f()),Zc(u,d[0],{placement:((v=n.value)==null?void 0:v.placement)||"right",modifiers:[{name:"offset",options:{offset:((m=n.value)==null?void 0:m.offset)||[10,-8]}}]}),d.addClass("show")}})},100)})}}),e.directive("intersect",(t,n,r)=>{n.value&&(t.innerHTML="")}),e.directive("resizable",{beforeMount(t,n){let r=()=>$(t).off(".resizer").on("mousedown.resizer",()=>s()),s=o=>{let l=$(document),u={},d=h=>(h.stopPropagation&&h.stopPropagation(),h.preventDefault&&h.preventDefault(),h.cancelBubble=!0,h.returnValue=!1,!1);l.on("mousedown.resizerattach",h=>(u=Bo(t,t.parentNode),u.padding={top:parseInt($(t.parentNode).css("padding-top")),left:parseInt($(t.parentNode).css("padding-left"))},d(h.originalEvent))),l.on("mousemove.resizerattach",h=>{let f=new Event("resize");return f.event=h,f.position={x:Math.max(0,h.pageX-u.x+u.left-u.padding.left),y:Math.max(0,h.pageY-u.y+u.top-u.padding.top)},t.dispatchEvent(f),d(h.originalEvent)}),l.on("mouseup.resizerattach",h=>($(document).off(".resizerattach"),window.dispatchEvent(new Event("resize")),d(h.originalEvent)))};r()},beforeUnmount(t){$(t).off(".resizer"),$(document).off(".resizerattach")}}),e.directive("resize-observer",{beforeMount(t,n){var s,o;let r;(o=(s=t._resizeObserver)==null?void 0:s.disconnect)==null||o.call(s),t._resizeObserver=new ResizeObserver(l=>{window.requestAnimationFrame(()=>{!Array.isArray(l)||!l.length||(clearTimeout(r),r=setTimeout(()=>n.value.call(this,{w:$(t).width(),h:$(t).height()}),100))})}),t._resizeObserver.observe(t)},beforeUnmount(t){var n;(n=t._resizeObserver)==null||n.disconnect()}}),e.directive("mutation-observer",{beforeMount(t,n){var r,s,o;(s=(r=t._mutationObserver)==null?void 0:r.disconnect)==null||s.call(r),t._mutationObserver=new MutationObserver(()=>{var l,u;(u=(l=n.value).callback)==null||u.call(l,this,t)}),t._mutationObserver.observe(t,{subtree:!0,childList:!0,...((o=n.value)==null?void 0:o.options)||{}})},beforeUnmount(t){var n;(n=t._mutationObserver)==null||n.disconnect()}})};const tf="modulepreload",Ds={},nf="/",Ei=function(t,n){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=`${nf}${r}`,r in Ds)return;Ds[r]=!0;const s=r.endsWith(".css"),o=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${o}`))return;const l=document.createElement("link");if(l.rel=s?"stylesheet":tf,s||(l.as="script",l.crossOrigin=""),l.href=r,document.head.appendChild(l),s)return new Promise((u,d)=>{l.addEventListener("load",u),l.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},rf={mixins:[xe("color")],props:{customColor:{type:Boolean,default:!0,required:!1},showTransparent:{type:Boolean,default:!0},transparentColor:{default:"#00000000"}},computed:{samples(){return["ffffff","000000","eeece1","1f497d","4f81bd","c0504d","9bbb59","8064a2","4bacc6","f79646","ffff00","f2f2f2","7f7f7f","ddd9c3","c6d9f0","dbe5f1","f2dcdb","ebf1dd","e5e0ec","dbeef3","fdeada","fff2ca","d8d8d8","595959","c4bd97","8db3e2","b8cce4","e5b9b7","d7e3bc","ccc1d9","b7dde8","fbd5b5","ffe694","bfbfbf","3f3f3f","938953","548dd4","95b3d7","d99694","c3d69b","b2a2c7","fac08f","f2c314","a5a5a5","262626","494429","17365d","366092","953734","76923c","5f497a","92cddc","e36c09","c09100","0c0c0c","1d1b10","0f243e","244061","632423","4f6128","3f3151","31859b","974806","7f6000"]}}},sf={class:"d-flex flex-row flex-wrap",style:{"max-width":"400px"}},of=["onClick","init"],af=p("i",{class:"fa fa-ban text-danger m-1"},null,-1),lf=[af],uf={key:0,class:"d-flex flex-row align-items-center justify-content-between p-2 h-spacing-2"};function df(e,t,n,r,s,o){return b(),C("div",null,[p("div",sf,[(b(!0),C(we,null,Oe(o.samples,l=>(b(),C("a",{class:"color-btn",href:"#",onClick:I(u=>e.color="#"+l,["prevent"]),key:l,init:e.white=l==="ffffff"},[p("i",{class:re(["fa m-1",e.white?"fa-square-o":"fa-square"]),style:Zs({color:e.white?"#000":"#"+l})},null,6)],8,of))),128)),n.showTransparent?(b(),C("a",{key:0,class:"color-btn",href:"#",onClick:t[0]||(t[0]=I(l=>e.color=n.transparentColor,["prevent"])),title:"no color"},lf)):V("",!0)]),n.customColor?(b(),C("div",uf,[te(p("input",{type:"color",placeholder:"custom color..","onUpdate:modelValue":t[1]||(t[1]=l=>e.color=l),class:"form-control flex-grow-1",title:"custom color.."},null,512),[[Fe,e.color]]),te(p("input",{type:"text",placeholder:"#ff0000","onUpdate:modelValue":t[2]||(t[2]=l=>e.color=l),class:"form-control form-control-sm",style:{"max-width":"100px"},title:"hex"},null,512),[[Fe,e.color]])])):V("",!0)])}var cf=J(rf,[["render",df]]);const ff={name:"XColorPicker",mixins:[xe()],props:{label:{type:String,default:"Color:",required:!1},customColor:{type:Boolean,default:!0,required:!1},transparentColor:{default:"#00000000"},disabled:{type:Boolean,default:!1,required:!1},btnClass:{type:String,default:"btn btn-light dropdown-toggle",required:!1}},components:{ColorSwatch:cf},computed:{iswhite(){return/^#f+$/i.test(this.item)}}},pf=["innerHTML"],hf={class:"dropdown"},mf=["disabled"],gf={class:"border",slot:"title"},vf={class:"dropdown-menu"};function _f(e,t,n,r,s,o){const l=j("color-swatch"),u=Pt("dropdown-fixed");return b(),C("div",null,[n.label?(b(),C("label",{key:0,class:"form-label",innerHTML:n.label},null,8,pf)):V("",!0),te((b(),C("div",hf,[p("button",{class:re({[n.btnClass]:n.btnClass,faded:n.disabled}),type:"button","data-bs-toggle":"dropdown",disabled:n.disabled},[p("span",gf,[p("i",{class:re(["fa",o.iswhite?"fa-square-o":"fa-square"]),style:Zs({color:o.iswhite?"#000":e.item})},null,6)])],10,mf),p("div",vf,[ee(l,{modelValue:e.item,"onUpdate:modelValue":t[0]||(t[0]=d=>e.item=d),"custom-color":n.customColor,"transparent-color":n.transparentColor},null,8,["modelValue","custom-color","transparent-color"])])])),[[u]])])}var yf=J(ff,[["render",_f]]),bf="/assets/video.e24fbec5.svg";const wf={name:"XUpload",mixins:[xe()],props:{type:{type:String,required:!0},size:{type:String,default:"",required:!1},btnClass:{type:String,default:"btn btn-primary",required:!1},btnCta:{type:String,default:void 0,required:!1},keyword:{type:String,default:"",required:!1},help:{type:String,default:"",required:!1},btnIcon:{type:String,default:"fa-upload",required:!1},label:{type:String,default:"",required:!1},showPreview:{type:Boolean,default:!0,required:!1}},methods:{upload(e){let t=e?{path:`/${this.type}-search`,keyword:this.keyword||"apples"}:{};this.uploader.open(!0,t).then(n=>this.item=en(n==null?void 0:n[0].url)?n==null?void 0:n[0].url:"")}
41,paste(){let e=prompt("Enter URL","https://placekitten.com/1024/768");this.item=e},icon(){return alert("Coming soon")}},computed:{cta(){return this.btnCta!==void 0?this.btnCta:`Upload ${this.type}..`},uploader(){return new window.UploaderWindow(this.type)},thumb(){return Vo(this.item)?bf:this.item},preview(){return this.showPreview?this.type==="image"?`<img src='${this.item}' class='hover-img'/>`:`<video autoplay playsinline muted loop controls src='${this.item}' class='hover-img'/>`:null}}},Sf=["innerHTML"],xf={key:0,class:"d-flex flex-row align-items-center h-spacing-3"},kf=["src"],$f=["href"],Ef=["src"],Cf=p("i",{class:"fa fa-trash"},null,-1),Mf=[Cf],Tf={key:1,class:"btn-group"},Of=q(),Af=["innerHTML"],Rf={class:"dropdown-menu"},zf=p("div",{class:"dropdown-divider"},null,-1),Pf=["innerHTML"];function Df(e,t,n,r,s,o){const l=Pt("popover"),u=Pt("dropdown-fixed");return b(),C("div",null,[n.label?(b(),C("label",{key:0,class:"form-label",innerHTML:n.label},null,8,Sf)):V("",!0),p("div",null,[e.item?(b(),C("div",xf,[o.preview&&n.type==="audio"?(b(),C("audio",{key:0,src:e.item,controls:""},null,8,kf)):o.preview?(b(),C("a",{key:1,href:e.item,target:"_blank"},[te(p("img",{src:o.thumb,height:"38",width:"38",class:"contain-fit"},null,8,Ef),[[l,o.preview,void 0,{hover:!0,delay:!0}]])],8,$f)):V("",!0),p("button",{class:re(["btn btn-outline-danger",{[`btn-${n.size}`]:n.size}]),type:"button",onClick:t[0]||(t[0]=I(d=>e.item=null,["prevent"]))},Mf,2)])):te((b(),C("div",Tf,[p("button",{class:re(["text-nowrap",{[n.btnClass]:n.btnClass,[`btn-${n.size}`]:n.size}]),type:"button",onClick:t[1]||(t[1]=I(d=>o.upload(!1),["prevent"]))},[n.btnIcon?(b(),C("i",{key:0,class:re(["fa",n.btnIcon])},null,2)):V("",!0),Of,p("span",{innerHTML:o.cta},null,8,Af)],2),p("button",{class:re(["dropdown-toggle dropdown-toggle-split text-nowrap",{[n.btnClass]:n.btnClass,[`btn-${n.size}`]:n.size}]),type:"button","data-bs-toggle":"dropdown"},null,2),p("div",Rf,[p("a",{class:"dropdown-item",href:"#",onClick:t[2]||(t[2]=I((...d)=>o.paste&&o.paste(...d),["prevent"]))},"Paste link.."),n.type!=="audio"?(b(),C(we,{key:0},[zf,p("a",{class:"dropdown-item",href:"#",onClick:t[3]||(t[3]=I(d=>o.upload(!0),["prevent"]))},"Search "+Ee(n.type)+"..",1)],64)):V("",!0)])])),[[u]])]),n.help?(b(),C("div",{key:1,innerHTML:n.help,class:"small my-2"},null,8,Pf)):V("",!0)])}var Nf=J(wf,[["render",Df]]);const Lf={name:"XDateTime",mixins:[xe()],props:{},computed:{datetime:{get(){return Er(this.item,"yyyy-mm-dd hh:MM").replace(/\s/,"T")},set(e){this.item=Er(e,"yyyy-mm-dd hh:MM")}}}};function Bf(e,t,n,r,s,o){return te((b(),C("input",{type:"datetime-local",class:"form-control","onUpdate:modelValue":t[0]||(t[0]=l=>o.datetime=l)},null,512)),[[Fe,o.datetime]])}var If=J(Lf,[["render",Bf]]);const Vf={name:"XIconInput",mixins:[xe(),xe("itemPlacement","","placement")],data(){return{icons:[]}},mounted(){Ei(()=>import("./icons.45e64020.js"),[]).then(e=>this.icons=e.default)},methods:{open(){var t;let e=bootstrap.Dropdown.getInstance(this.$refs.dropdown);(t=e==null?void 0:e.show)==null||t.call(e)}},computed:{suggestions(){let e=this.icons.filter(n=>bn(this.item,n.icon)||bn(this.item,n.text)),t=n=>n.toLowerCase().indexOf(this.item.toLowerCase())>=0?100:0;return e.sort((n,r)=>t(r.icon)-t(n.icon)||n.text.localeCompare(r.text)),e}}},Uf={class:"dropdown open scrollable-menu"},jf={class:"dropdown-menu p-0"},qf=["onClick"],Hf={key:0,class:"d-flex flex-row align-items-start h-spacing-3 my-2"},Gf=p("label",{class:"form-label"},"Icon on: ",-1);function Ff(e,t,n,r,s,o){const l=j("x-input"),u=Pt("dropdown-fixed");return b(),C("div",null,[te((b(),C("div",Uf,[te(p("input",{type:"search",class:"form-control",placeholder:"add icon","onUpdate:modelValue":t[0]||(t[0]=d=>e.item=d),onKeydown:t[1]||(t[1]=d=>o.open()),ref:"dropdown","data-bs-toggle":"dropdown"},null,544),[[Fe,e.item]]),p("div",jf,[e.item&&o.suggestions.length?(b(!0),C(we,{key:0},Oe(o.suggestions,d=>(b(),C("a",{class:"dropdown-item small",href:"#",onClick:I(h=>e.item=d.icon,["prevent"])},[p("i",{class:re(["fa fa-fw",d.icon])},null,2),q(" "+Ee(d.text),1)],8,qf))),256)):V("",!0)])])),[[u]]),e.item?(b(),C("div",Hf,[Gf,ee(l,{type:"radio",modelValue:e.itemPlacement,"onUpdate:modelValue":t[2]||(t[2]=d=>
41e.itemPlacement=d),options:["left","right"],size:"sm",default:"right"},null,8,["modelValue"])])):V("",!0)])}var Yf=J(Vf,[["render",Ff]]);const Wf={name:"XInputDropdown",mixins:[xe()],props:{options:{type:Array,required:!0},btnClass:{type:String,default:"btn btn-light btn-sm",required:!1}},computed:{Options(){return ai(this.options)}}},Xf={class:"dropdown open"},Jf={class:"dropdown-menu"},Kf=["onClick","innerHTML"];function Qf(e,t,n,r,s,o){return b(),C("div",Xf,[p("button",{class:re([n.btnClass,"dropdown-toggle"]),type:"button","data-bs-toggle":"dropdown","data-bs-boundary":"container"},[zt(e.$slots,"default")],2),p("div",Jf,[(b(!0),C(we,null,Oe(o.Options,l=>(b(),C("a",{class:re(["dropdown-item",{active:e.item===l.value}]),href:"#",onClick:I(u=>e.item=l.value,["prevent"]),innerHTML:l.label},null,10,Kf))),256))])])}var Zf=J(Wf,[["render",Qf]]);const ep={name:"XPercent",mixins:[xe()],props:{id:{type:String,default:""},size:{type:String,default:"sm"},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""}}},tp=["id","placeholder","disabled"],np=p("span",{class:"input-group-text"},"%",-1);function rp(e,t,n,r,s,o){return b(),C("div",{class:re(["input-group",{[`input-group-${n.size}`]:n.size}])},[te(p("input",{type:"number",min:"0",max:"100",class:"form-control",id:n.id,placeholder:n.placeholder,"onUpdate:modelValue":t[0]||(t[0]=l=>e.item=l),disabled:n.disabled},null,8,tp),[[Fe,e.item]]),np],2)}var sp=J(ep,[["render",rp]]);const ip={name:"XRadio",mixins:[xe()],props:{id:{type:String,default:"",required:!1},name:{type:String,default:"",required:!1},type:{required:!0},options:{type:Array},inline:{type:Boolean,default:!0,required:!1},disabled:{type:Boolean,default:!1,required:!1},required:{type:Boolean,default:!1,required:!1}},computed:{ident(){return this.id||Gn()},opts(){return this.options.map(e=>(e==null?void 0:e.value)||(e==null?void 0:e.label)?e:{value:e,label:e})}}},op={key:0},ap=["type","id","value","name","disabled","required"],lp=["for","innerHTML"];function up(e,t,n,r,s,o){return b(),C("div",null,[n.options?(b(!0),C(we,{key:0},Oe(o.opts,(l,u)=>(b(),C(we,null,[l.value?(b(),C("div",Se({key:1,class:["form-check",{"form-check-inline":n.inline}]},e.$attrs),[te(p("input",{class:"form-check-input",type:n.type,"onUpdate:modelValue":t[0]||(t[0]=d=>e.item=d),id:`radio-${o.ident}-${u}`,value:l.value,name:n.name,disabled:n.disabled,required:n.required},null,8,ap),[[ei,e.item]]),p("label",{class:"form-check-label",for:`radio-${o.ident}-${u}`,innerHTML:l.label},null,8,lp)],16)):(b(),C("hr",op))],64))),256)):V("",!0)])}var Ci=J(ip,[["render",up]]);const dp={name:"XSelect",mixins:[xe()],props:{options:{},disabled:{type:Boolean,default:!1,required:!1},placeholder:{type:String,default:"",required:!1},search:{type:Boolean,default:!1,required:!1}},async mounted(){this.select2&&(jQuery.selectpicker||await ta(["https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.14.0-beta3/js/bootstrap-select.min.js","https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.14.0-beta3/css/bootstrap-select.min.css"]),setTimeout(()=>$(this.$el).attr("data-live-search","true").attr("data-width","100%").removeClass("form-select").selectpicker("render"),1))},computed:{opts(){return ai(this.options)},select2(){return this.search&&$(window).width()>768}},watch:{opts:{deep:!0,handler(e){this.select2&&$(this.$el).selectpicker("refresh")}}}},cp=["disabled"],fp={key:0,value:"",class:"text-muted"},pp=["value","innerHTML"];function hp(e,t,n,r,s,o){return te((b(),C("select",{"onUpdate:modelValue":t[0]||(t[0]=l=>e.item=l),disabled:n.disabled},[n.placeholder?(b(),C("option",fp,Ee(n.placeholder),1)):V("",!0),(b(!0),C(we,null,Oe(o.opts,l=>(b(),C("option",{value:l.value,innerHTML:l.label},null,8,pp))),256))],8,cp)),[[ti,e.item]])}var mp=J(dp,[["render",hp]]);const gp={name:"XTextarea",mixins:[xe()],props:{autoGrow:{type:Boolean,default:!1,required:!1}},methods:{autosize(){!this.autoGrow||this.$nextTick(()=>{this.$refs.textarea.style.height="5px",this.$refs.textarea.style.height=this.$refs.textarea.scrollHeight+"px",console.log("this.$refs.textarea.style.height: ",this.$refs.textarea.style.height)})}},watch:{autoGrow:{immediate:!0,handler:"autosize"}}};function vp(e,t,n,r,s,o){return te((b(),C("textarea",{"onUpdate:modelValue":t[0]||(t[0]=l=>e.item=l),ref:"textarea",onInput:t[1]||(t[1]=(...l)=>o.autosize&&o.autosize(...l))},null,544)),[[Fe,e.item]])}var _p=J(gp,[["render",vp]]);const yp={name:"XToggle",mixins:[xe()],inheritAttrs:!1,props:{toggleText:{type:String,default:"",required:!1},true:{default:!0,required:!1},false:{default:!1,required:!1},size:{type:String,default:"sm"},info:{type:String},disabled:{type:Boolean,default:!1}}
41,methods:{toggle(){this.item=this.item===this.true?this.false:this.true}},computed:{selected(){return this.item===this.true}}},bp=["disabled"],wp=q(),Sp=["innerHTML"],xp=p("i",{class:"fa fa-question-circle"},null,-1),kp=[xp];function $p(e,t,n,r,s,o){const l=Pt("hint");return b(),C("button",{href:"#",onClick:t[1]||(t[1]=I((...u)=>o.toggle&&o.toggle(...u),["prevent"])),class:re(["btn btn-link text-nowrap text-decoration-none",[{[`btn-${n.size}`]:n.size},e.$attrs.class]]),disabled:n.disabled},[p("i",{class:re(["fa",o.selected?"fa-toggle-on text-success":"fa-toggle-off faded"])},null,2),wp,p("span",{class:"link-dark",innerHTML:n.toggleText},null,8,Sp),n.info?te((b(),C("a",{key:0,class:"ms-2 text-muted small",href:"#",onClick:t[0]||(t[0]=I(()=>{},["stop"]))},kp)),[[l,n.info]]):V("",!0)],10,bp)}var Ep=J(yp,[["render",$p]]);const Cp={name:"XYesNo",components:{XRadio:Ci},mixins:[xe()],computed:{yesno(){return[{label:"Yes",value:"1"},{label:"No",value:"0"}]}}};function Mp(e,t,n,r,s,o){const l=j("x-radio");return b(),Z(l,Se(e.$attrs,{modelValue:e.item,"onUpdate:modelValue":t[0]||(t[0]=u=>e.item=u),options:o.yesno}),null,16,["modelValue","options"])}var Tp=J(Cp,[["render",Mp]]);const Op={name:"XInputBasic",components:{XTextarea:_p,XDateTime:If,XYesNo:Tp,XIconInput:Yf,XColorPicker:yf,XPercent:sp,XInputDropdown:Zf,XUpload:Nf,XToggle:Ep,XRadio:Ci,XSelect:mp,XWysiwyg:bo(()=>Ei(()=>import("./XWysiwyg.057f6a6d.js"),["assets/XWysiwyg.057f6a6d.js","assets/XWysiwyg.1865177c.css","assets/plugin-vue_export-helper.adde081f.js"]))},mixins:[xe()],inheritAttrs:!1,props:{id:{type:String},type:{type:String,default:"text",required:!1},size:{type:String,default:"sm",required:!1},help:{type:String,default:"",required:!1},default:{required:!1},inputClass:{type:String,default:void 0,required:!1},disabled:{type:Boolean,default:!1,required:!1},autofocus:{type:Boolean,default:!1,required:!1},autosize:{type:Boolean,default:!1,required:!1}},mounted(){!this.item&&this.default&&(this.item=this.default),this.autofocus&&setTimeout(()=>{var e,t,n,r,s,o;return(o=(s=(r=(t=(e=$(this.$el)).parent)==null?void 0:(n=t.call(e)).find)==null?void 0:r.call(n,"input,textarea,select").first())==null?void 0:s.focus)==null?void 0:o.call(s)},500),this.autosize&&this.type==="textarea"&&this.$el.addEventListener("input",()=>{this.$el.style.height="5px",this.$el.style.height=this.$el.scrollHeight+"px"})},computed:{theInputClass(){let e=/(select|range|color)/.exec(this.type);return this.inputClass===void 0?e!=null&&e[1]?`form-${e[1]}`:"form-control":this.inputClass}}},Ap=["type","id","disabled"];function Rp(e,t,n,r,s,o){const l=j("x-textarea"),u=j("x-select"),d=j("x-radio"),h=j("x-yes-no"),f=j("x-toggle"),v=j("x-upload"),m=j("x-wysiwyg"),y=j("x-date-time"),_=j("x-percent"),S=j("x-color-picker"),x=j("x-input-dropdown"),k=j("x-icon-input");return n.type==="textarea"?(b(),Z(l,Se({key:0,class:{[o.theInputClass]:o.theInputClass,[`form-control-${n.size}`]:n.size},id:n.id},e.$attrs,{modelValue:e.item,"onUpdate:modelValue":t[0]||(t[0]=w=>e.item=w),disabled:n.disabled}),null,16,["class","id","modelValue","disabled"])):n.type==="select"?(b(),Z(u,Se({key:1,class:{[o.theInputClass]:o.theInputClass,[`form-select-${n.size}`]:n.size},id:n.id},e.$attrs,{modelValue:e.item,"onUpdate:modelValue":t[1]||(t[1]=w=>e.item=w),disabled:n.disabled}),null,16,["class","id","modelValue","disabled"])):n.type==="radio"||n.type==="checkbox"?(b(),Z(d,Se({key:2,id:n.id},e.$attrs,{modelValue:e.item,"onUpdate:modelValue":t[2]||(t[2]=w=>e.item=w),type:n.type,disabled:n.disabled}),null,16,["id","modelValue","type","disabled"])):n.type==="yesno"?(b(),Z(h,Se({key:3,id:n.id},e.$attrs,{modelValue:e.item,"onUpdate:modelValue":t[3]||(t[3]=w=>e.item=w),type:"radio",disabled:n.disabled}),null,16,["id","modelValue","disabled"])):n.type==="toggle"?(b(),Z(f,Se({key:4,id:n.id},e.$attrs,{modelValue:e.item,"onUpdate:modelValue":t[4]||(t[4]=w=>e.item=w),disabled:n.disabled,size:n.size}),null,16,["id","modelValue","disabled","size"])):/(image|video|audio|media)/.test(n.type)?(b(),Z(v,Se({key:5,id:n.id},e.$attrs,{modelValue:e.item,"onUpdate:modelValue":t[5]||(t[5]=w=>e.item=w),type:n.type,disabled:n.disabled,size:n.size}),null,16,["id","modelValue","type","disabled","size"])):n.type==="wysiwyg"?(b(),Z(m,Se({key:6,id:n.id},e.$attrs,{modelValue:e.item,"onUpdate:modelValue":t[6]||(t[6]=w=>e.item=w),disabled:n.disabled}),{default:ut(()=>[zt(e.$slots,"default")]),_:3},16,["id","modelValue","disabled"])):n.type==="datetime"?(b(),Z(y,Se({key:7,id:n.id},e.$attrs,{modelValue:e.item,"onUpdate:modelValue":t[7]||(t[7]=w=>e.item=w),disabled:n.disabled}),null,16,["id","modelValue","disabled"])):n.type==="percent"?(b(),Z(_,Se({key:8,id:n.id},e.$attrs,{modelValue:e.item,"onUpdate:modelValue":t[8]||(t[8]=w=>e.item=w),disabled:n.disabled,size:n.size}),null,16,["id","modelValue","disabled","size"])):n.type==="color"?(b(),Z(S,Se({key:9,id:n.id},e.$attrs,{modelValue:e.item,"onUpdate:modelValue":t[9]||(t[9]=w=>e.item=w),disabled:n.disabled,size:n.size,label:""}),null,16,["id","modelValue","disabled","size"])):n.type==="dropdown"?(b(),Z(x,Se({key:10,id:n.id},e.$attrs,{modelValue:e.item,"onUpdate:modelValue":t[10]||(t[10]=w=>e.item=w),disabled:n.disabled}),{default:ut(()=>[zt(e.$slots,"default")]),_:3},16,["id","modelValue","disabled"])):n.type==="icon"?(b(),Z(k,Se({key:11,id:n.id},e.$attrs,{modelValue:e.item,"onUpdate:modelValue":t[11]||(t[11]=w=>e.item=w)}),null,16,["id","modelValue"])):te((b(),C("input",Se({key:12,type:n.type,class:{[o.theInputClass]:o.theInputClass,[`form-control-${n.size}`]:n.size},id:n.id},e.$attrs,{"onUpdate:modelValue":t[12]||(t[12]=w=>e.item=w),disabled:n.disabled}),null,16,Ap)),[[ei,e.item]])}var Mi=J(Op,[["render",Rp]]);const zp={name:"XInput",components:{XInputBasic:Mi},inheritAttrs:!1,props:{id:{type:String,default:"",required:!1},label:{type:String,default:"",required:!1},help:{type:String,default:"",required:!1},hint:{type:String,default:"",required:!1},wrapperClass:{type:String,default:"",required:!1},suggest:{},prefix:{type:String,default:null,required:!1},suffix:{type:String,default:null,required:!1}},computed:{me(){return Ro(this.id||(this.label?`${this.label}-${Gn(4)}`:Gn(8)))},suggestions(){var e;return this.suggest?this.suggest==="placeholder"?(((e=this.$attrs.placeholder)==null?void 0:e.split(/\s*,\s*/g))||[]).filter(t=>!$e(t)&&!/^etc/.test(t)):dt(this.suggest)?this.suggest.split(/\s*,\s*/g):this.suggest:null},listId(){return this.suggestions?`list-${this.me}`:null},groupClass(){return this.prefix||this.suffix?"input-group":""}}},Pp=["for","innerHTML"],Dp=["innerHTML"],Np=["innerHTML"],Lp=["innerHTML"],Bp=["id"],Ip=["value"];function Vp(e,t,n,r,s,o){const l=j("x-input-basic");return b(),C("div",{class:re([n.wrapperClass,o.groupClass])},[n.label?(b(),C("label",{key:0,for:o.me,class:"form-label",innerHTML:n.label},null,8,Pp)):V("",!0),n.prefix?(b(),C("span",{key:1,class:"input-group-text",innerHTML:n.prefix},null,8,Dp)):V("",!0),ee(l,Se(e.$attrs,{id:o.me,list:o.listId}),{default:ut(()=>[zt(e.$slots,"default")]),_:3},16,["id","list"]),n.suffix?(b(),C("span",{key:2,class:"input-group-text",innerHTML:n.suffix},null,8,Np)):V("",!0),n.help?(b(),C("div",{key:3,innerHTML:n.help,class:"small my-2 ps-1"},null,8,Lp)):V("",!0),o.suggestions?(b(),C("datalist",{key:4,id:o.listId},[(b(!0),C(we,null,Oe(o.suggestions,u=>(b(),C("option",{value:u},null,8,Ip))),256))],8,Bp)):V("",!0)],2)}var Up=J(zp,[["render",Vp]]),jp=e=>{e.component("x-input",Up),e.component("x-input-basic",Mi)};/*! 42 * vue-router v4.1.1 43 * (c) 2022 Eduardo San Martin Morote 44 * @license MIT 45 */const Gt=typeof window!="undefined";
vendor: 24,280 bytes, line 45
45function qp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ne=Object.assign;function Sr(e,t){const n={};for(const r in t){const s=t[r];n[r]=Je(s)?s.map(e):e(s)}return n}const vn=()=>{},Je=Array.isArray,Hp=/\/$/,Gp=e=>e.replace(Hp,"");function xr(e,t,n="/"){let r,s={},o="",l="";const u=t.indexOf("#");let d=t.indexOf("?");return u<d&&u>=0&&(d=-1),d>-1&&(r=t.slice(0,d),o=t.slice(d+1,u>-1?u:t.length),s=e(o)),u>-1&&(r=r||t.slice(0,u),l=t.slice(u,t.length)),r=Xp(r!=null?r:t,n),{fullPath:r+(o&&"?")+o+l,path:r,query:s,hash:l}}function Fp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ns(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Yp(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Qt(t.matched[r],n.matched[s])&&Ti(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Qt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ti(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Wp(e[n],t[n]))return!1;return!0}function Wp(e,t){return Je(e)?Ls(e,t):Je(t)?Ls(t,e):e===t}function Ls(e,t){return Je(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Xp(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let s=n.length-1,o,l;for(o=0;o<r.length;o++)if(l=r[o],l!==".")if(l==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var xn;(function(e){e.pop="pop",e.push="push"})(xn||(xn={}));var _n;(function(e){e.back="back",e.forward="forward",e.unknown=""})(_n||(_n={}));function Jp(e){if(!e)if(Gt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Gp(e)}const Kp=/^[^#]+#/;function Qp(e,t){return e.replace(Kp,"#")+t}function Zp(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const tr=()=>({left:window.pageXOffset,top:window.pageYOffset});function eh(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Zp(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Bs(e,t){return(history.state?history.state.position-t:-1)+e}const Ar=new Map;function th(e,t){Ar.set(e,t)}function nh(e){const t=Ar.get(e);return Ar.delete(e),t}let rh=()=>location.protocol+"//"+location.host;function Oi(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let u=s.includes(e.slice(o))?e.slice(o).length:1,d=s.slice(u);return d[0]!=="/"&&(d="/"+d),Ns(d,"")}return Ns(n,e)+r+s}function sh(e,t,n,r){let s=[],o=[],l=null;const u=({state:m})=>{const y=Oi(e,location),_=n.value,S=t.value;let x=0;if(m){if(n.value=y,t.value=m,l&&l===_){l=null;return}x=S?m.position-S.position:0}else r(y);s.forEach(k=>{k(n.value,_,{delta:x,type:xn.pop,direction:x?x>0?_n.forward:_n.back:_n.unknown})})};function d(){l=n.value}function h(m){s.push(m);const y=()=>{const _=s.indexOf(m);_>-1&&s.splice(_,1)};return o.push(y),y}function f(){const{history:m}=window;!m.state||m.replaceState(ne({},m.state,{scroll:tr()}),"")}function v(){for(const m of o)m();o=[],window.removeEventListener("popstate",u),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",u),window.addEventListener("beforeunload",f),{pauseListeners:d,listen:h,destroy:v}}function Is(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?tr():null}}function ih(e){const{history:t,location:n}=window,r={value:Oi(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(d,h,f){const v=e.indexOf("#"),m=v>-1?(n.host&&document.querySelector("base")?e:e.slice(v))+d:rh()+e+d;try{t[f?"replaceState":"pushState"](h,"",m),s.value=h}catch(y){console.error(y),n[f?"replace":"assign"](m)}}function l(d,h){const f=ne({},t.state,Is(s.value.back,d,s.value.forward,!0),h,{position:s.value.position});o(d,f,!0),r.value=d}function u(d,h){const f=ne({},s.value,t.state,{forward:d,scroll:tr()});o(f.current,f,!0);const v=ne({},Is(r.value,d,null),{position:f.position+1},h);o(d,v,!1),r.value=d}return{location:r,state:s,push:u,replace:l}}function oh(e){e=Jp(e);const t=ih(e),n=sh(e,t.state,t.location,t.replace);function r(o,l=!0){l||n.pauseListeners(),history.go(o)}const s=ne({location:"",base:e,go:r,createHref:Qp.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function ah(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),oh(e)}function lh(e){return typeof e=="string"||e&&typeof e=="object"}function Ai(e){return typeof e=="string"||typeof e=="symbol"}const bt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Ri=Symbol("");var Vs;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Vs||(Vs={}));function Zt(e,t){return ne(new Error,{type:e,[Ri]:!0},t)}function wt(e,t){return e instanceof Error&&Ri in e&&(t==null||!!(e.type&t))}const Us="[^/]+?",uh={sensitive:!1,strict:!1,start:!0,end:!0},dh=/[.+*?^${}()[\]/\\]/g;function ch(e,t){const n=ne({},uh,t),r=[];let s=n.start?"^":"";const o=[];for(const h of e){const f=h.length?[]:[90];n.strict&&!h.length&&(s+="/");for(let v=0;v<h.length;v++){const m=h[v];let y=40+(n.sensitive?.25:0);if(m.type===0)v||(s+="/"),s+=m.value.replace(dh,"\\$&"),y+=40;else if(m.type===1){const{value:_,repeatable:S,optional:x,regexp:k}=m;o.push({name:_,repeatable:S,optional:x});const w=k||Us;if(w!==Us){y+=10;try{new RegExp(`(${w})`)}catch(P){throw new Error(`Invalid custom RegExp for param "${_}" (${w}): `+P.message)}}let L=S?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;v||(L=x&&h.length<2?`(?:/${L})`:"/"+L),x&&(L+="?"),s+=L,y+=20,x&&(y+=-8),S&&(y+=-20),w===".*"&&(y+=-50)}f.push(y)}r.push(f)}if(n.strict&&n.end){const h=r.length-1;r[h][r[h].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const l=new RegExp(s,n.sensitive?"":"i");function u(h){const f=h.match(l),v={};if(!f)return null;for(let m=1;m<f.length;m++){const y=f[m]||"",_=o[m-1];v[_.name]=y&&_.repeatable?y.split("/"):y}return v}function d(h){let f="",v=!1;for(const m of e){(!v||!f.endsWith("/"))&&(f+="/"),v=!1;for(const y of m)if(y.type===0)f+=y.value;else if(y.type===1){const{value:_,repeatable:S,optional:x}=y,k=_ in h?h[_]:"";if(Je(k)&&!S)throw new Error(`Provided param "${_}" is an array but it is not repeatable (* or + modifiers)`);const w=Je(k)?k.join("/"):k;if(!w)if(x)m.length<2&&e.length>1&&(f.endsWith("/")?f=f.slice(0,-1):v=!0);else throw new Error(`Missing required param "${_}"`);f+=w}}return f}return{re:l,score:r,keys:o,parse:u,stringify:d}}function fh(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function ph(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const o=fh(r[n],s[n]);if(o)return o;n++}if(Math.abs(s.length-r.length)===1){if(js(r))return 1;if(js(s))return-1}return s.length-r.length}function js(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const hh={type:0,value:""},mh=/[a-zA-Z0-9_]/;function gh(e){if(!e)return[[]];if(e==="/")return[[hh]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(y){throw new Error(`ERR (${n})/"${h}": ${y}`)}let n=0,r=n;const s=[];let o;function l(){o&&s.push(o),o=[]}let u=0,d,h="",f="";function v(){!h||(n===0?o.push({type:0,value:h}):n===1||n===2||n===3?(o.length>1&&(d==="*"||d==="+")&&t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:h,regexp:f,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):t("Invalid state to consume buffer"),h="")}function m(){h+=d}for(;u<e.length;){if(d=e[u++],d==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:d==="/"?(h&&v(),l()):d===":"?(v(),n=1):m();break;case 4:m(),n=r;break;case 1:d==="("?n=2:mh.test(d)?m():(v(),n=0,d!=="*"&&d!=="?"&&d!=="+"&&u--);break;case 2:d===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+d:n=3:f+=d;break;case 3:v(),n=0,d!=="*"&&d!=="?"&&d!=="+"&&u--,f="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${h}"`),v(),l(),s}function vh(e,t,n){const r=ch(gh(e.path),n),s=ne(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function _h(e,t){const n=[],r=new Map;t=Hs({strict:!1,end:!0,sensitive:!1},t);function s(f){return r.get(f)}function o(f,v,m){const y=!m,_=bh(f);_.aliasOf=m&&m.record;const S=Hs(t,f),x=[_];if("alias"in f){const L=typeof f.alias=="string"?[f.alias]:f.alias;for(const P of L)x.push(ne({},_,{components:m?m.record.components:_.components,path:P,aliasOf:m?m.record:_}))}let k,w;for(const L of x){const{path:P}=L;if(v&&P[0]!=="/"){const F=v.record.path,H=F[F.length-1]==="/"?"":"/";L.path=v.record.path+(P&&H+P)}if(k=vh(L,v,S),m?m.alias.push(k):(w=w||k,w!==k&&w.alias.push(k),y&&f.name&&!qs(k)&&l(f.name)),_.children){const F=_.children;for(let H=0;H<F.length;H++)o(F[H],k,m&&m.children[H])}m=m||k,d(k)}return w?()=>{l(w)}:vn}function l(f){if(Ai(f)){const v=r.get(f);v&&(r.delete(f),n.splice(n.indexOf(v),1),v.children.forEach(l),v.alias.forEach(l))}else{const v=n.indexOf(f);v>-1&&(n.splice(v,1),f.record.name&&r.delete(f.record.name),f.children.forEach(l),f.alias.forEach(l))}}function u(){return n}function d(f){let v=0;for(;v<n.length&&ph(f,n[v])>=0&&(f.record.path!==n[v].record.path||!zi(f,n[v]));)v++;n.splice(v,0,f),f.record.name&&!qs(f)&&r.set(f.record.name,f)}function h(f,v){let m,y={},_,S;if("name"in f&&f.name){if(m=r.get(f.name),!m)throw Zt(1,{location:f});S=m.record.name,y=ne(yh(v.params,m.keys.filter(w=>!w.optional).map(w=>w.name)),f.params),_=m.stringify(y)}else if("path"in f)_=f.path,m=n.find(w=>w.re.test(_)),m&&(y=m.parse(_),S=m.record.name);else{if(m=v.name?r.get(v.name):n.find(w=>w.re.test(v.path)),!m)throw Zt(1,{location:f,currentLocation:v});S=m.record.name,y=ne({},v.params,f.params),_=m.stringify(y)}const x=[];let k=m;for(;k;)x.unshift(k.record),k=k.parent;return{name:S,path:_,params:y,matched:x,meta:Sh(x)}}return e.forEach(f=>o(f)),{addRoute:o,resolve:h,removeRoute:l,getRoutes:u,getRecordMatcher:s}}function yh(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function bh(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:wh(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function wh(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function qs(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Sh(e){return e.reduce((t,n)=>ne(t,n.meta),{})}function Hs(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function zi(e,t){return t.children.some(n=>n===e||zi(e,n))}const Pi=/#/g,xh=/&/g,kh=/\//g,$h=/=/g,Eh=/\?/g,Di=/\+/g,Ch=/%5B/g,Mh=/%5D/g,Ni=/%5E/g,Th=/%60/g,Li=/%7B/g,Oh=/%7C/g,Bi=/%7D/g,Ah=/%20/g;function Xr(e){return encodeURI(""+e).replace(Oh,"|").replace(Ch,"[").replace(Mh,"]")}function Rh(e){return Xr(e).replace(Li,"{").replace(Bi,"}").replace(Ni,"^")}function Rr(e){return Xr(e).replace(Di,"%2B").replace(Ah,"+").replace(Pi,"%23").replace(xh,"%26").replace(Th,"`").replace(Li,"{").replace(Bi,"}").replace(Ni,"^")}function zh(e){return Rr(e).replace($h,"%3D")}function Ph(e){return Xr(e).replace(Pi,"%23").replace(Eh,"%3F")}function Dh(e){return e==null?"":Ph(e).replace(kh,"%2F")}function Jn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Nh(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<r.length;++s){const o=r[s].replace(Di," "),l=o.indexOf("="),u=Jn(l<0?o:o.slice(0,l)),d=l<0?null:Jn(o.slice(l+1));if(u in t){let h=t[u];Je(h)||(h=t[u]=[h]),h.push(d)}else t[u]=d}return t}function Gs(e){let t="";for(let n in e){const r=e[n];if(n=zh(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Je(r)?r.map(o=>o&&Rr(o)):[r&&Rr(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Lh(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Je(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Bh=Symbol(""),Fs=Symbol(""),Jr=Symbol(""),Ii=Symbol(""),zr=Symbol("");function cn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function kt(e,t,n,r,s){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,u)=>{const d=v=>{v===!1?u(Zt(4,{from:n,to:t})):v instanceof Error?u(v):lh(v)?u(Zt(2,{from:t,to:v})):(o&&r.enterCallbacks[s]===o&&typeof v=="function"&&o.push(v),l())},h=e.call(r&&r.instances[s],t,n,d);let f=Promise.resolve(h);e.length<3&&(f=f.then(d)),f.catch(v=>u(v))})}function kr(e,t,n,r){const s=[];for(const o of e)for(const l in o.components){let u=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(Ih(u)){const h=(u.__vccOpts||u)[t];h&&s.push(kt(h,n,r,o,l))}else{let d=u();s.push(()=>d.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${o.path}"`));const f=qp(h)?h.default:h;o.components[l]=f;const m=(f.__vccOpts||f)[t];return m&&kt(m,n,r,o,l)()}))}}return s}function Ih(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ys(e){const t=yn(Jr),n=yn(Ii),r=Ye(()=>t.resolve(fn(e.to))),s=Ye(()=>{const{matched:d}=r.value,{length:h}=d,f=d[h-1],v=n.matched;if(!f||!v.length)return-1;const m=v.findIndex(Qt.bind(null,f));if(m>-1)return m;const y=Ws(d[h-2]);return h>1&&Ws(f)===y&&v[v.length-1].path!==y?v.findIndex(Qt.bind(null,d[h-2])):m}),o=Ye(()=>s.value>-1&&qh(n.params,r.value.params)),l=Ye(()=>s.value>-1&&s.value===n.matched.length-1&&Ti(n.params,r.value.params));function u(d={}){return jh(d)?t[fn(e.replace)?"replace":"push"](fn(e.to)).catch(vn):Promise.resolve()}return{route:r,href:Ye(()=>r.value.href),isActive:o,isExactActive:l,navigate:u}}const Vh=ri({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ys,setup(e,{slots:t}){const n=ni(Ys(e)),{options:r}=yn(Jr),s=Ye(()=>({[Xs(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Xs(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Pr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Uh=Vh;function jh(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function qh(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Je(s)||s.length!==r.length||r.some((o,l)=>o!==s[l]))return!1}return!0}function Ws(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Xs=(e,t,n)=>e!=null?e:t!=null?t:n,Hh=ri({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=yn(zr),s=Ye(()=>e.route||r.value),o=yn(Fs,0),l=Ye(()=>{let h=fn(o);const{matched:f}=s.value;let v;for(;(v=f[h])&&!v.components;)h++;return h}),u=Ye(()=>s.value.matched[l.value]);mr(Fs,Ye(()=>l.value+1)),mr(Bh,u),mr(zr,s);const d=xo();return ko(()=>[d.value,u.value,e.name],([h,f,v],[m,y,_])=>{f&&(f.instances[v]=h,y&&y!==f&&h&&h===m&&(f.leaveGuards.size||(f.leaveGuards=y.leaveGuards),f.updateGuards.size||(f.updateGuards=y.updateGuards))),h&&f&&(!y||!Qt(f,y)||!m)&&(f.enterCallbacks[v]||[]).forEach(S=>S(h))},{flush:"post"}),()=>{const h=s.value,f=u.value,v=f&&f.components[e.name],m=e.name;if(!v)return Js(n.default,{Component:v,route:h});const y=f.props[e.name],_=y?y===!0?h.params:typeof y=="function"?y(h):y:null,x=Pr(v,ne({},_,t,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(f.instances[m]=null)},ref:d}));return Js(n.default,{Component:x,route:h})||x}}});function Js(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Gh=Hh;function Fh(e){const t=_h(e.routes,e),n=e.parseQuery||Nh,r=e.stringifyQuery||Gs,s=e.history,o=cn(),l=cn(),u=cn(),d=wo(bt);let h=bt;Gt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Sr.bind(null,T=>""+T),v=Sr.bind(null,Dh),m=Sr.bind(null,Jn);function y(T,A){let O,R;return Ai(T)?(O=t.getRecordMatcher(T),R=A):R=T,t.addRoute(R,O)}function _(T){const A=t.getRecordMatcher(T);A&&t.removeRoute(A)}function S(){return t.getRoutes().map(T=>T.record)}function x(T){return!!t.getRecordMatcher(T)}function k(T,A){if(A=ne({},A||d.value),typeof T=="string"){const Y=xr(n,T,A.path),ae=t.resolve({path:Y.path},A),Qe=s.createHref(Y.fullPath);return ne(Y,ae,{params:m(ae.params),hash:Jn(Y.hash),redirectedFrom:void 0,href:Qe})}let O;if("path"in T)O=ne({},T,{path:xr(n,T.path,A.path).path});else{const Y=ne({},T.params);for(const ae in Y)Y[ae]==null&&delete Y[ae];O=ne({},T,{params:v(T.params)}),A.params=v(A.params)}const R=t.resolve(O,A),Q=T.hash||"";R.params=f(m(R.params));const oe=Fp(r,ne({},T,{hash:Rh(Q),path:R.path})),B=s.createHref(oe);return ne({fullPath:oe,hash:Q,query:r===Gs?Lh(T.query):T.query||{}},R,{redirectedFrom:void 0,href:B})}function w(T){return typeof T=="string"?xr(n,T,d.value.path):ne({},T)}function L(T,A){if(h!==T)return Zt(8,{from:A,to:T})}function P(T){return W(T)}function F(T){return P(ne(w(T),{replace:!0}))}function H(T){const A=T.matched[T.matched.length-1];if(A&&A.redirect){const{redirect:O}=A;let R=typeof O=="function"?O(T):O;return typeof R=="string"&&(R=R.includes("?")||R.includes("#")?R=w(R):{path:R},R.params={}),ne({query:T.query,hash:T.hash,params:"path"in R?{}:T.params},R)}}function W(T,A){const O=h=k(T),R=d.value,Q=T.state,oe=T.force,B=T.replace===!0,Y=H(O);if(Y)return W(ne(w(Y),{state:Q,force:oe,replace:B}),A||O);const ae=O;ae.redirectedFrom=A;let Qe;return!oe&&Yp(r,R,O)&&(Qe=Zt(16,{to:ae,from:R}),it(R,R,!0,!1)),(Qe?Promise.resolve(Qe):ce(ae,R)).catch(ke=>wt(ke)?wt(ke,2)?ke:Ae(ke):ve(ke,ae,R)).then(ke=>{if(ke){if(wt(ke,2))return W(ne(w(ke.to),{state:Q,force:oe,replace:B}),A||ae)}else ke=de(ae,R,!0,B,Q);return se(ae,R,ke),ke})}function ue(T,A){const O=L(T,A);return O?Promise.reject(O):Promise.resolve()}function ce(T,A){let O;const[R,Q,oe]=Yh(T,A);O=kr(R.reverse(),"beforeRouteLeave",T,A);for(const Y of R)Y.leaveGuards.forEach(ae=>{O.push(kt(ae,T,A))});const B=ue.bind(null,T,A);return O.push(B),qt(O).then(()=>{O=[];for(const Y of o.list())O.push(kt(Y,T,A));return O.push(B),qt(O)}).then(()=>{O=kr(Q,"beforeRouteUpdate",T,A);for(const Y of Q)Y.updateGuards.forEach(ae=>{O.push(kt(ae,T,A))});return O.push(B),qt(O)}).then(()=>{O=[];for(const Y of T.matched)if(Y.beforeEnter&&!A.matched.includes(Y))if(Je(Y.beforeEnter))for(const ae of Y.beforeEnter)O.push(kt(ae,T,A));else O.push(kt(Y.beforeEnter,T,A));return O.push(B),qt(O)}).then(()=>(T.matched.forEach(Y=>Y.enterCallbacks={}),O=kr(oe,"beforeRouteEnter",T,A),O.push(B),qt(O))).then(()=>{O=[];for(const Y of l.list())O.push(kt(Y,T,A));return O.push(B),qt(O)}).catch(Y=>wt(Y,8)?Y:Promise.reject(Y))}function se(T,A,O){for(const R of u.list())R(T,A,O)}function de(T,A,O,R,Q){const oe=L(T,A);if(oe)return oe;const B=A===bt,Y=Gt?history.state:{};O&&(R||B?s.replace(T.fullPath,ne({scroll:B&&Y&&Y.scroll},Q)):s.push(T.fullPath,Q)),d.value=T,it(T,A,O,B),Ae()}let me;function ge(){me||(me=s.listen((T,A,O)=>{if(!Ne.listening)return;const R=k(T),Q=H(R);if(Q){W(ne(Q,{replace:!0}),R).catch(vn);return}h=R;const oe=d.value;Gt&&th(Bs(oe.fullPath,O.delta),tr()),ce(R,oe).catch(B=>wt(B,12)?B:wt(B,2)?(W(B.to,R).then(Y=>{wt(Y,20)&&!O.delta&&O.type===xn.pop&&s.go(-1,!1)}).catch(vn),Promise.reject()):(O.delta&&s.go(-O.delta,!1),ve(B,R,oe))).then(B=>{B=B||de(R,oe,!1),B&&(O.delta?s.go(-O.delta,!1):O.type===xn.pop&&wt(B,20)&&s.go(-1,!1)),se(R,oe,B)}).catch(vn)}))}let Pe=cn(),je=cn(),fe;function ve(T,A,O){Ae(T);const R=je.list();return R.length?R.forEach(Q=>Q(T,A,O)):console.error(T),Promise.reject(T)}function ft(){return fe&&d.value!==bt?Promise.resolve():new Promise((T,A)=>{Pe.add([T,A])})}function Ae(T){return fe||(fe=!T,ge(),Pe.list().forEach(([A,O])=>T?O(T):A()),Pe.reset()),T}function it(T,A,O,R){const{scrollBehavior:Q}=e;if(!Gt||!Q)return Promise.resolve();const oe=!O&&nh(Bs(T.fullPath,0))||(R||!O)&&history.state&&history.state.scroll||null;return So().then(()=>Q(T,A,oe)).then(B=>B&&eh(B)).catch(B=>ve(B,T,A))}const ot=T=>s.go(T);let De;const qe=new Set,Ne={currentRoute:d,listening:!0,addRoute:y,removeRoute:_,hasRoute:x,getRoutes:S,resolve:k,options:e,push:P,replace:F,go:ot,back:()=>ot(-1),forward:()=>ot(1),beforeEach:o.add,beforeResolve:l.add,afterEach:u.add,onError:je.add,isReady:ft,install(T){const A=this;T.component("RouterLink",Uh),T.component("RouterView",Gh),T.config.globalProperties.$router=A,Object.defineProperty(T.config.globalProperties,"$route",{enumerable:!0,get:()=>fn(d)}),Gt&&!De&&d.value===bt&&(De=!0,P(s.location).catch(Q=>{}));const O={};for(const Q in bt)O[Q]=Ye(()=>d.value[Q]);T.provide(Jr,A),T.provide(Ii,ni(O)),T.provide(zr,d);const R=T.unmount;qe.add(T),T.unmount=function(){qe.delete(T),qe.size<1&&(h=bt,me&&me(),me=null,d.value=bt,De=!1,fe=!1),R()}}};return Ne}function qt(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function Yh(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let l=0;l<o;l++){const u=t.matched[l];u&&(e.matched.find(h=>Qt(h,u))?r.push(u):n.push(u));const d=e.matched[l];d&&(t.matched.find(h=>Qt(h,d))||s.push(d))}return[n,r,s]}const Wh={name:"Bonuses",data(){return{tz:new Date().getTimezoneOffset()}},methods:{redirect(){alert("Coming soon. Check our Facebook group for details.."),location.href="https://www.facebook.com/groups/885318936068858/"}}},Xh={class:"card card-body m-3"},Jh=p("h3",null,"Launch bonuses",-1),Kh=p("p",{class:"lead"},"Currently you are eligible for the following bonuses:",-1),Qh=p("p",{class:"lead"},[p("b",{style:{background:"yellow"}},[q("New bonuses will be available our "),p("a",{href:"https://www.facebook.com/groups/885318936068858/",targte:"_blank"},"Private Facebook group"),q(" from time to time.")]),q(" Please join our Facebook group to get notified about new bonuses.")],-1),Zh={class:"shadow m-3"},em=p("div",{class:"card-header"},[p("h4",null,[q("Complimentary "),p("a",{href:"//instathumbs.com"},"InstaThumbs.com"),q(" Lifetime Access ($197)")])],-1),tm=p("div",{class:"card-body"},[p("p",{class:"lead"},"InstaThumbs is a powerful tool that allows you to create stunning thumbnail images for your YouTube videos in seconds. This will help you to get more views and subscribers on your YouTube channel.")],-1),nm={class:"card-footer"},rm=["href"],sm=p("i",{class:"fa fa-caret-right"},null,-1),im=q(" Claim InstaThumbs Bonus"),om=[sm,im],am={class:"shadow m-3"},lm=p("div",{class:"card-header"},[p("h4",null,"Complimentary 1,000 word credit for A.I. Writer Addon ($27)")],-1),um=p("div",{class:"card-body"},[p("p",{class:"lead"},"InstaKeywords comes with a powerful A.I. Writer addon that allows you to create unique 1000 word copyscape passed articles in seconds. You can post these articles on your website or blogs to rank on Google and generate free traffic.")],-1),dm={class:"card-footer"},cm=["href"],fm=p("i",{class:"fa fa-caret-right"}
45,null,-1),pm=q(" Claim A.I. Writer Credits"),hm=[fm,pm],mm={class:"shadow m-3"},gm=p("div",{class:"card-header"},[p("h4",null,"Complimentary Website Builder ($247)")],-1),vm=p("div",{class:"card-body"},[p("p",{class:"lead"},"We are working on a website builder that will allow you to create your own website in minutes by just answering a few questions. You will be able to choose from a variety of templates and add your own content to the website. It will also come with an A.I. powered content generator that will help you to create unique content for your website in just a few clicks.")],-1),_m={class:"card-footer"};function ym(e,t,n,r,s,o){return b(),C("div",Xh,[Jh,Kh,Qh,p("div",Zh,[em,tm,p("div",nm,[p("a",{class:"btn btn-primary",href:`/api/etc/bonus/instathumbs?tz_off=${s.tz}`,target:"bonus"},om,8,rm)])]),p("div",am,[lm,um,p("div",dm,[p("a",{class:"btn btn-primary",href:`/api/etc/bonus/aiwriter?tz_off=${s.tz}`,target:"bonus"},hm,8,cm)])]),p("div",mm,[gm,vm,p("div",_m,[p("a",{class:"btn btn-primary",href:"#",onClick:t[0]||(t[0]=I((...l)=>o.redirect&&o.redirect(...l),["prevent"]))},"Get notified..")])])])}var bm=J(Wh,[["render",ym]]),wm=[{label:"Australia",value:"au"},{label:"Canada",value:"ca"},{label:"India",value:"in"},{label:"United Kingdom",value:"uk"},{label:"United States",value:"us"}];let Ks={ar:"arabic",af:"afrikaans",am:"",hy:"",az:"azerbaijani",eu:"",bn:"bengali",bg:"bulgarian",ca:"catalan","zh-HK":"","zh-CN":"chinese","zh-TW":"chinese",hr:"croatian",cs:"czech",da:"danish",nl:"dutch","en-GB":"english",en:"english",et:"estonian",fil:"",fi:"finnish",fr:"french","fr-CA":"french",gl:"",ka:"georgian",de:"german","de-AT":"german","de-CH":"german",el:"greek",gu:"",iw:"hebrew",hi:"hindi",hu:"hungarian",is:"icelandic",id:"indonesian",it:"italian",ja:"japanese",kn:"kannada",ko:"korean",lo:"laothian",lv:"latvian",lt:"lithuanian",ms:"malay",ml:"",mr:"",mn:"mongolian",no:"norwegian",fa:"persian",pl:"polish",pt:"portuguese","pt-BR":"portuguese","pt-PT":"portuguese",ro:"romanian",ru:"russian",sr:"serbian",si:"",sk:"slovak",sl:"slovenian",es:"spanish","es-419":"spanish",sw:"swahili",sv:"swedish",ta:"tamil",te:"telugu",th:"thai",tr:"turkish",uk:"ukrainian",ur:"urdu",vi:"vietnamese",zu:"zulu"};var Sm=()=>Object.keys(Ks).map(e=>({label:Ks[e],value:e})).filter(e=>/^[a-z]+$/.test(e.value)&&!!e.label);const xm={props:{info:{type:Object,default:"",required:!1}},methods:{getScore(){return this.score},getAssessment(){return this.assessment}},computed:{ppcScore(){let e=this.info||{cpc:0,vol:0};return e.cpc>5?0:e.cpc>4?1:e.cpc>3?2:e.cpc>2?3:e.cpc>1?4:(e.cpc>0,5)},trafficScore(){let e=this.info||{cpc:0,vol:0};return e.vol>5e5?-3:e.vol>2e5?-1:e.vol>1e5?0:e.vol>5e4?1:e.vol>1e4?2:e.vol>5e3?3:e.vol>1e3?4:(e.vol>0,5)},score(){return Yo(10-(this.ppcScore+this.trafficScore),0,10)},noTraffic(){return this.info.vol<50},assessment(){if(this.noTraffic)return"No traffic";let e=this.score;return e>9?"Avoid":e>7?"Ultra hard":e>5?"Very hard":e>3?"Hard":e>2?"Fair":e>1?"Good":"Great"}}},km=p("br",null,null,-1),$m={class:"small m-0 p-0"};function Em(e,t,n,r,s,o){return b(),C("div",null,[(b(),C(we,null,Oe(10,l=>p("b",{class:re(o.noTraffic?"text-muted faded":l<o.score?"text-danger":"text-success"),key:l},"|",2)),64)),km,p("label",$m,"("+Ee(o.assessment)+")",1)])}var Cm=J(xm,[["render",Em]]);const Mm={name:"Trends",props:{trend:{type:String,default:"",required:!1}},computed:{points(){let e=this.trend;if(!e)return;let t=e.split("|").reverse(),n={};for(let r=t.length-1,s=0;r>=0;r--,s++)Er(new Date-s*86400*1e3,"Y-m-d"),n[r+1]=t[r]||0;return console.log("results: ",n),n}}};function Tm(e,t,n,r,s,o){const l=j("line-chart");return b(),C("div",null,[ee(l,{data:o.points,width:"500px",height:"300px"},null,8,["data"])])}var Om=J(Mm,[["render",Tm]]);const Am={name:"ShowResult",components:{Bars:Cm,Trends:Om},props:{hasAvr:{type:Boolean,default:!0,required:!1},hasBpr:{type:Boolean,default:!0,required:!1},seed:{type:String,default:"",required:!1},keyword:{type:String,default:"",required:!0},info:{}},data(){return{trend:!1}},methods:{exportRow(){var e,t,n,r;return{keyword:this.keyword,vol:((e=this.info)==null?void 0:e.vol)||"N/A",cpc:((t=this.info)==null?void 0:t.cpc)||"N/A",score:Math.min((((n=this.$refs.bar)==null?void 0:n.score)||0)*10,
45100),assessment:((r=this.$refs.bar)==null?void 0:r.assessment)||"N/A"}},toggleSaved(e){this.saved[e]?delete this.saved[e]:this.saved[e]={seed:this.seed,keyword:e,info:this.info,group:this.seed}}},computed:{avr(){return`https://www.articlevideorobot.com/app.html?kw=${encodeURIComponent($r(this.keyword,this.seed)?this.seed:this.seed+","+this.keyword)}`},bpr(){return`https://www.blogpostrobot.com/app.html?kw=${encodeURIComponent($r(this.keyword,this.seed)?this.seed:this.seed+","+this.keyword)}`},saved:{get(){var e;return(e=this.$root)==null?void 0:e.saved},set(e){this.$root.saved=e}}}},Rm={class:""},zm=p("i",{class:"fa fa-plus"},null,-1),Pm=[zm],Dm={class:"text-muted"},Nm=p("i",{class:"fa fa-spinner fa-spin"},null,-1),Lm=q(" Loading.."),Bm=[Nm,Lm],Im={class:"text-success"},Vm={class:""},Um={class:""},jm={class:""},qm={key:0,href:"#",class:"text-muted"},Hm=p("i",{class:"fa fa-chart-area"},null,-1),Gm=[Hm],Fm=p("i",{class:"fa fa-chart-area"},null,-1),Ym=[Fm],Wm={key:2,class:"position-relative"},Xm=p("i",{class:"fa fa-times-circle"},null,-1),Jm=[Xm],Km={class:""},Qm=["href"],Zm=p("i",{class:"fa fa-youtube"},null,-1),eg=[Zm],tg={key:1,href:"/oto2",target:"avr",class:"ms-2 yt-btn mx-3"},ng=p("i",{class:"fa fa-youtube"},null,-1),rg=[ng],sg=["href"],ig=p("i",{class:"fa fa-robot"},null,-1),og=[ig],ag={key:3,href:"/oto1",target:"avr",class:"text-success mx-2"},lg=p("i",{class:"fa fa-robot"},null,-1),ug=[lg],dg=p("i",{class:"fa fa-heart"},null,-1),cg=[dg];function fg(e,t,n,r,s,o){var h;const l=j("bars"),u=j("trends"),d=Pt("hint");return b(),C("tr",null,[zt(e.$slots,"default"),p("td",Rm,[q(Ee(n.keyword)+" ",1),n.info?(b(),C("a",{key:0,href:"#",onClick:t[0]||(t[0]=I(f=>e.$emit("drill",n.keyword),["prevent"])),class:"text-muted",title:"drill down"},Pm)):V("",!0)]),n.info?(b(),C(we,{key:1},[p("td",Im,Ee(n.info.vol||"0"),1),p("td",Vm,Ee(n.info.cpc||"0"),1),p("td",Um,[ee(l,{info:n.info,ref:"bar"},null,8,["info"])]),p("td",jm,[n.info.vol?s.trend?(b(),C("div",Wm,[p("a",{href:"#",onClick:t[2]||(t[2]=I(f=>s.trend=!1,["prevent"])),class:"position-absolute text-danger",style:{right:"-9px",top:"-9px"}},Jm),ee(u,{trend:n.info.trend},null,8,["trend"])])):(b(),C("a",{key:1,href:"#",onClick:t[1]||(t[1]=I(f=>s.trend=!0,["prevent"]))},Ym)):(b(),C("a",qm,Gm))]),p("td",Km,[n.hasAvr?te((b(),C("a",{key:0,href:o.avr,target:"avr",class:"ms-2 yt-btn mx-3"},eg,8,Qm)),[[d,`Create video for ${n.keyword}`]]):te((b(),C("a",tg,rg)),[[d,`Create video for ${n.keyword}`]]),n.hasBpr?te((b(),C("a",{key:2,href:o.bpr,target:"avr",class:"text-success mx-2"},og,8,sg)),[[d,`Generate an article for ${n.keyword}`]]):te((b(),C("a",ag,ug)),[[d,`Generate an article for ${n.keyword}`]]),te((b(),C("a",{href:"#",onClick:t[3]||(t[3]=I(f=>o.toggleSaved(n.keyword),["prevent"])),class:re(["mx-2",(h=o.saved)!=null&&h[n.keyword]?"text-danger":"text-muted"])},cg,2)),[[d,`Save this ${n.keyword}`]]),zt(e.$slots,"actions")])],64)):(b(),C(we,{key:0},Oe(5,f=>p("td",Dm,Bm)),64))])}var Vi=J(Am,[["render",fg]]);const pg={name:"Sort",mixins:[xe()],props:{by:{type:String,default:"",required:!0}},methods:{toggle(){this.item=this.asc?`${this.by}:desc`:`${this.by}:asc`}},computed:{asc(){return this.item===`${this.by}:asc`},desc(){return this.item===`${this.by}:desc`}}};function hg(e,t,n,r,s,o){return b(),C("a",{href:"#",class:"d-inline text-dark",onClick:t[0]||(t[0]=I((...l)=>o.toggle&&o.toggle(...l),["prevent"]))},[p("i",{class:re(["fa fa-caret-up",{faded:!o.asc}])},null,2),p("i",{class:re(["fa fa-caret-down",{faded:!o.desc}])},null,2)])}var mg=J(pg,[["render",hg]]);const gg={name:"Search",components:{Sort:mg,ShowResult:Vi},props:{type:{type:String,default:"",required:!1}},data(){return{sort:"",filter:{vol:{},cpc:{},keyword:"",comp:""},map:{},charIndex:-1,stats:{},submitted:!1,results:null,item:{keyword:"weight loss",lang:"en",country:"",mode:"quick"},loading:null,loadingStats:null,drillStack:[],selection:!1,selected:[],showFilters:null,accounts:{}}},async mounted(){var t;let e=(t=this.$route.params)==null?void 0:t.kw;if(!$e(e))this.item.keyword=e,await this.doSearch();else{let n=ui("last_search");n!=null&&n.keyword&&(this.item=pn(n))}this.accounts=await nt("/api/members/accounts","POST")},methods:{async safe_google_suggest(e,t,n,r){let s=await Uo(e,t,n,r);return[...new Set(s)].map(o=>o.replace(/['\-#]/g,""))},async newSearch(){location.reload(!0)},async restart(){this.charIndex=-1,this.submitted=!1,this.results=null,await this.generate()},async generate(){await this.$root.authUser({modal:!0}),this.submitted=this.loading=!0;let e=this.item.keyword;try{if(this.charIndex===-1){let t=await this.safe_google_suggest(e,0,this.item.lang,this.type==="youtube");this.results=vr(this.results,[e],t)}do{let t=this.chars[++this.charIndex],n=e.length+1,r=`${e} ${t}`.replace(/\s+/g," ").trim();console.log("term, index: ",{term:r,index:n});let s=await this.safe_google_suggest(r,n,this.item.lang,this.type==="youtube");if((s==null?void 0:s[0])===`${e} ${t}`&&(s=s.slice(1)),this.results=vr(this.results,s),s.length>1)return}while(this.charIndex<this.chars.length-1)}catch(t){console.log("error:",t)}finally{this.loading=!1}},async generateQuestions(){var t,n;await this.$root.authUser({modal:!0});let e=["how","why","what","where","when","who"];this.submitted=this.loading=!0;try{do{let r=++this.charIndex%this.chars.length,s=((t=this.results)==null?void 0:t.length)||0;for(let o of e){let l=`${o} ${this.item.keyword}`,u=this.charIndex>this.chars.length,d=this.chars[r],h=u?l.length+1:o.length+1,f=(l.substr(0,h)+` ${d} `+l.substr(h)).replace(/\s+/g," ").trim(),v=await this.safe_google_suggest(f,h,this.item.lang,this.type==="youtube");console.log("term, index: ",{term:f,index:h,results:v,length:v.length}),((n=v==null?void 0:v[0])==null?void 0:n.trim())===f&&(v=v.slice(1)),v.length>0&&(this.results=vr(this.results,v))}if(this.results.length>s)return}while(this.charIndex<(this.chars.length-1)*2)}catch(r){console.log("error:",r)}finally{this.loading=!1}},async loadStats(){var e,t;if(this.loadingStats)return Cr("load_stats",()=>this.loadStats(),1e3);try{this.loadingStats=!0;let n=(t=(e=this.results)==null?void 0:e.filter)==null?void 0:t.call(e,s=>!this.stats[s]);if($e(n))return;let r=await nt("/api/members/traffic","POST",{keywords:n,country:this.item.country,seed:this.item.keyword,type:this.t
45ype});for(let s of(r==null?void 0:r.results)||[])this.stats[s.keyword]=s}catch(n){console.log("error:",n)}finally{this.loadingStats=!1,setTimeout(()=>this.updateMap(),100)}},updateMap(){var e,t;if(((t=(e=this.$refs)==null?void 0:e.results)==null?void 0:t.length)>0)for(let n of this.$refs.results)this.map[n.keyword]=n.exportRow()},drill(e){if(e===this.item.keyword)return Ct("You cannot drill down on the same keyword","error");this.drillStack.push(this.item.keyword),this.item.keyword=e,this.restart()},exportAll(){let e=$e(this.selected)?this.results:this.selected,t=this.$refs.results;this.$root.exportAll(e,t)},test(){let{hide:e,modal:t}=sa({msg:`<div class="d-flex flex-column align-items-center"><h5 class="mb-3">Please prove that you're not a bot</h5><div id="g-recaptcha" ref="captcha"></div></div>`,size:""});grecaptcha.render("g-recaptcha",{sitekey:"6LcrXqMZAAAAAM9YGhDXudsLdS-U14ooZ12W-uxR",callback:async n=>{await nt("/api/members/access/recaptcha-bypass","POST",{token2:n}),e()},"error-callback ":n=>alert("recaptcha error: "+n.message)})},drillBack(e){this.drillStack.length&&(this.item.keyword=this.drillStack.splice(e,this.drillStack.length-e)[0],this.restart())},doSearch(){this.item.keyword=String(this.item.keyword).toLowerCase().trim().replace(/['\-#]/g,""),li("last_search",this.item),this.drillStack=[],this.loadMore()},loadMore(){this.type==="questions"?this.generateQuestions():this.generate()},toggleSelectAll(){this.isAllSelected?this.selected=[]:this.selected=pn(this.results)}},computed:{isAllSelected(){return this.selected.length===this.results.length},langs(){return Sm()},countries(){return wm},modes(){return[{label:"Quick",value:"quick"},{label:"Detailed (very slow)",value:"detailed"}]},chars(){return" abcdefghijklmnopqrstuvwxyz0123456789".split("")},showLoadMore(){return this.charIndex<(this.chars.length-1)*(this.type==="questions"?2:1)},filtered(){let e=[...this.results];if(this.filter.keyword){let t=this.filter.keyword.startsWith("-"),n=t?this.filter.keyword.substr(1):this.filter.keyword;e=e.filter(r=>bn(n,r)!==t)}if((this.filter.vol.min||this.filter.vol.max)&&(e=e.filter(t=>{var r;let n=+((r=this.stats[t])==null?void 0:r.vol);return(this.filter.vol.min?n>=this.filter.vol.min:!0)&&(this.filter.vol.max?n<=this.filter.vol.max:!0)})),(this.filter.cpc.min||this.filter.cpc.max)&&(e=e.filter(t=>{var r;let n=+((r=this.stats[t])==null?void 0:r.cpc);return(this.filter.cpc.min?n>=this.filter.cpc.min:!0)&&(this.filter.cpc.max?n<=this.filter.cpc.max:!0)})),!$e(this.filter.comp)){let t=this.map;e=e.filter(n=>{var r,s;return $e((r=t==null?void 0:t[n])==null?void 0:r.assessment)||$r((s=t==null?void 0:t[n])==null?void 0:s.assessment,this.filter.comp)})}if(this.sort){let[t,n]=this.sort.split(":");e.sort((r,s)=>{var u,d,h,f;let o=t==="keyword"?(u=this.stats[r])==null?void 0:u[t]:+((d=this.stats[r])==null?void 0:d[t]),l=t==="keyword"?(h=this.stats[s])==null?void 0:h[t]:+((f=this.stats[s])==null?void 0:f[t]);return o===l?0:o>l?1:-1}),n==="desc"&&e.reverse()}return e}},watch:{results:{immediate:!0,handler(){Cr("load_stats",()=>this.loadStats(),1e3)}}}},vg={class:"my-3 pb-4"},_g={key:0},yg={class:"d-flex flex-row align-items-center justify-content-between"},bg={class:"flex-grow-1"},wg={class:"d-flex flex-row align-items-center h-spacing-3"},Sg={key:0,class:"btn-group btn-group-sm"},xg=p("i",{class:"fa fa-caret-left"},null,-1),kg=q(" Back"),$g=[xg,kg],Eg=p("button",{type:"button",class:"btn btn-info dropdown-toggle dropdown-toggle-split","data-bs-toggle":"dropdown","aria-expanded":"false"},[p("span",{class:"visually-hidden"},"Toggle Dropdown")],-1),Cg={class:"dropdown-menu"},Mg=["onClick"],Tg=p("i",{class:"fa fa-search"},null,-1),Og=q(" New search"),Ag=[Tg,Og],Rg=p("i",{class:"fa fa-filter"},null,-1),zg=q(" Filter"),Pg=[Rg,zg],Dg={class:"btn-group btn-group-sm"},Ng=p("i",{class:"fa fa-download"},null,-1),Lg=q(" Export Selected"),Bg=[Ng,Lg],Ig=p("i",{class:"fa fa-download"},null,-1),Vg=q(" Export CSV"),Ug=[Ig,Vg],jg=p("button",{type:"button",class:"btn btn-warning dropdown-toggle dropdown-toggle-split","data-bs-toggle":"dropdown","aria-expanded":"false"},null,-1),qg={class:"dropdown-menu"},Hg=p("hr",null,null,-1),Gg={key:0},Fg=p("i",{class:"fa fa-spinner fa-spin"},null,-1),Yg=q(" Loading.."),Wg=[Fg,Yg],Xg={key:1},Jg={class:"table table-striped"},Kg={key:0},Qg=["checked"],Zg={class:""},ev=q("Keyword "),tv={key:0,class:"d-flex flex-row align-items-center h-spacing-3"},nv={class:"text-success"},rv=q("Search Volume "),sv={key:0,class:"d-flex flex-row align-items-center h-spacing-3"},iv={class:""},ov=q("Cost per click "),av={key:0,class:"d-flex flex-row align-items-center h-spacing-3"},lv={class:""},uv=q("Competition "),dv={key:0,class:"d-flex flex-row align-items-center h-spacing-3"},cv=p("option",{value:""},"All",-1),fv=p("option",null,"Great",-1),pv=p("option",null,"Good",-1),hv=p("option",null,"Fair",-1),mv=p("option",null,"Hard",-1),gv=p("option",null,"Very hard",-1),vv=p("option",null,"Ultra hard",-1),_v=p("option",null,"Avoid",-1),yv=p("option",null,"No traffic",-1),bv=[cv,fv,pv,hv,mv,gv,vv,_v,yv],wv={class:""},Sv=q("Trends "),xv={key:0,class:"d-flex flex-row align-items-center h-spacing-3",style:{height:"32px"}},kv={class:""},$v=q("\xA0 "),Ev={key:0,class:"d-flex flex-row align-items-center h-spacing-3"},Cv={key:0},Mv=["value"],Tv={key:2},Ov=p("i",{class:"fa fa-spinner fa-spin"},null,-1),Av=q(" Searching.."),Rv=[Ov,Av],zv={key:3,class:"my-3 text-center"},Pv=p("i",{class:"fa fa-plus-circle"},null,-1),Dv=q(" Load more results "),Nv=[Pv,Dv],Lv={key:0,class:"text-capitalize mb-3"},Bv={key:1,class:"text-capitalize mb-3"},Iv={class:"d-flex flex-column flex-md-row align-items-center h-spacing-3"},Vv=Eo('<button class="btn btn-primary btn-lg my-3" type="submit"><i class="fa fa-fw fa-bolt"></i> Generate suggestions</button><div class="py-3 position-fixed bottom-left text-center w-100 d-none d-lg-block m-0"><b style="background:yellow;"><i class="fa fa-warning"></i> Note:</b> InstaKeywords requires <a href="//www.google.com/search?q=download+chrome" target="_blank">Google Chrome Browser</a> without any ad-blocker to function properly. </div>',2);function Uv(e,t,n,r,s,o){var h,f;const l=j("sort"),u=j("show-result"),d=j("x-input");
45return b(),C("div",vg,[s.submitted?(b(),C("div",_g,[p("div",yg,[p("h3",bg,"Keyword Results: "+Ee(s.item.keyword),1),p("div",wg,[(h=s.drillStack)!=null&&h.length?(b(),C("div",Sg,[p("button",{class:"btn btn-info",type:"button",onClick:t[0]||(t[0]=I(v=>o.drillBack(0),["prevent"]))},$g),Eg,p("ul",Cg,[(b(!0),C(we,null,Oe(s.drillStack,(v,m)=>(b(),C("li",{key:m},[p("a",{class:"dropdown-item",href:"#",onClick:I(y=>o.drillBack(m),["prevent"])},Ee(v),9,Mg)]))),128))])])):V("",!0),p("button",{class:"btn btn-primary btn-sm",type:"button",onClick:t[1]||(t[1]=I((...v)=>o.newSearch&&o.newSearch(...v),["prevent"]))},Ag),p("button",{class:re(["btn btn-info btn-sm",{active:s.showFilters}]),type:"button",onClick:t[2]||(t[2]=I(v=>s.showFilters=!s.showFilters,["prevent"]))},Pg,2),p("div",Dg,[(f=s.selected)!=null&&f.length?(b(),C("button",{key:0,class:"btn btn-warning",type:"button",onClick:t[3]||(t[3]=I((...v)=>o.exportAll&&o.exportAll(...v),["prevent"]))},Bg)):(b(),C("button",{key:1,class:"btn btn-warning",type:"button",onClick:t[4]||(t[4]=I((...v)=>o.exportAll&&o.exportAll(...v),["prevent"]))},Ug)),s.selection?V("",!0):(b(),C(we,{key:2},[jg,p("ul",qg,[p("li",null,[p("a",{class:"dropdown-item",href:"#",onClick:t[5]||(t[5]=I(v=>s.selection=!0,["prevent"]))},"Select keywords")])])],64))])])]),Hg,s.results===null?(b(),C("div",Gg,Wg)):(b(),C("div",Xg,[p("table",Jg,[p("thead",null,[p("tr",null,[s.selection?(b(),
45C("th",Kg,[p("input",{type:"checkbox",checked:o.isAllSelected,onChange:t[6]||(t[6]=(...v)=>o.toggleSelectAll&&o.toggleSelectAll(...v))},null,40,Qg)])):V("",!0),p("th",Zg,[ev,ee(l,{modelValue:s.sort,"onUpdate:modelValue":t[7]||(t[7]=v=>s.sort=v),by:"keyword"},null,8,["modelValue"]),s.showFilters?(b(),C("div",tv,[te(p("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":t[8]||(t[8]=v=>s.filter.keyword=v),placeholder:"Filter"},null,512),[[Fe,s.filter.keyword]])])):V("",!0)]),p("th",nv,[rv,ee(l,{modelValue:s.sort,"onUpdate:modelValue":t[9]||(t[9]=v=>s.sort=v),filter:s.filter,"onUpdate:filter":t[10]||(t[10]=v=>s.filter=v),by:"vol"},null,8,["modelValue","filter"]),s.showFilters?(b(),C("div",sv,[te(p("input",{type:"number",class:"form-control form-control-sm","onUpdate:modelValue":t[11]||(t[11]=v=>s.filter.vol.min=v),placeholder:"Min"},null,512),[[Fe,s.filter.vol.min]]),te(p("input",{type:"number",class:"form-control form-control-sm","onUpdate:modelValue":t[12]||(t[12]=v=>s.filter.vol.max=v),placeholder:"Max"},null,512),[[Fe,s.filter.vol.max]])])):V("",!0)]),p("th",iv,[ov,ee(l,{modelValue:s.sort,"onUpdate:modelValue":t[13]||(t[13]=v=>s.sort=v),filter:s.filter,"onUpdate:filter":t[14]||(t[14]=v=>s.filter=v),by:"cpc"},null,8,["modelValue","filter"]),s.showFilters?(b(),C("div",av,[te(p("input",{type:"number",class:"form-control form-control-sm","onUpdate:modelValue":t[15]||(t[15]=v=>s.filter.cpc.min=v),placeholder:"Min"},null,512),[[Fe,s.filter.cpc.min]]),te(p("input",{type:"number",class:"form-control form-control-sm","onUpdate:modelValue":t[16]||(t[16]=v=>s.filter.cpc.max=v),placeholder:"Max"},null,512),[[Fe,s.filter.cpc.max]])])):V("",!0)]),p("th",lv,[uv,s.showFilters?(b(),C("div",dv,[te(p("select",{class:"form-select form-select-sm","onUpdate:modelValue":t[17]||(t[17]=v=>s.filter.comp=v),placeholder:"All"},bv,512),[[ti,s.filter.comp]])])):V("",!0)]),p("th",wv,[Sv,s.showFilters?(b(),C("div",xv,"\xA0")):V("",!0)]),p("th",kv,[$v,s.showFilters?(b(),C("div",Ev,"\xA0")):V("",!0)])])]),p("tbody",null,[(b(!0),C(we,null,Oe(o.filtered,(v,m)=>(b(),Z(u,{onDrill:o.drill,class:re({"bg-light":m%2}),keyword:v,seed:s.item.keyword,info:s.stats[v],ref_for:!0,ref:"results","has-avr":s.accounts.avr>0,"has-bpr":s.accounts.bpr>0},{default:ut(()=>
45[s.selection?(b(),C("td",Cv,[te(p("input",{type:"checkbox",value:v,"onUpdate:modelValue":t[18]||(t[18]=y=>s.selected=y)},null,8,Mv),[[$o,s.selected]])])):V("",!0)]),_:2},1032,["onDrill","class","keyword","seed","info","has-avr","has-bpr"]))),256))])])])),s.loading?(b(),C("div",Tv,Rv)):V("",!0),o.showLoadMore?(b(),C("div",zv,[p("button",{class:"btn btn-light btn-lg",type:"button",onClick:t[19]||(t[19]=I(v=>o.loadMore(!1),["prevent"]))},Nv)])):V("",!0)])):(b(),C("form",{key:1,class:"card card-body p-4 bg-light",onSubmit:t[23]||(t[23]=I(v=>o.doSearch(),["prevent"]))},[n.type==="questions"?(b(),C("h3",Lv,"Find questions about keyword")):(b(),C("h3",Bv,Ee(n.type)+"\u2122 keyword research",1)),p("div",Iv,[ee(d,{type:"search",modelValue:s.item.keyword,"onUpdate:modelValue":t[20]||(t[20]=v=>s.item.keyword=v),label:"Type your seed keyword:",placeholder:"golf, video, marketing, etc",size:"lg",class:"mb-2","wrapper-class":"flex-grow-1",required:""},null,8,["modelValue"]),ee(d,{type:"select",modelValue:s.item.lang,"onUpdate:modelValue":t[21]||(t[21]=v=>s.item.lang=v),label:"Language:",size:"lg",class:"mb-2",options:o.langs,required:""},null,8,["modelValue","options"]),ee(d,{type:"select",modelValue:s.item.country,"onUpdate:modelValue":t[22]||(t[22]=v=>s.item.country=v),label:"Country:",size:"lg",class:"mb-2",placeholder:"Global",options:o.countries},null,8,["modelValue","options"])]),Vv],32))])}var Kr=J(gg,[["render",Uv]]);const jv={name:"Google",components:{Search:Kr}};function qv(e,t,n,r,s,o){const l=j("search");return b(),Z(l,{type:"google"})}var Hv=J(jv,[["render",qv]]);const Gv={name:"Questions",components:{Search:Kr}};function Fv(e,t,n,r,s,o){const l=j("search");return b(),Z(l,{type:"questions"})}var Yv=J(Gv,[["render",Fv]]);const Wv={name:"Youtube",components:{Search:Kr}};function Xv(e,t,n,r,s,o){const l=j("search");return b(),Z(l,{type:"youtube"})}var Jv=J(Wv,[["render",Xv]]);const Kv={name:"Saved",components:{ShowResult:Vi},methods:{removeGroup(e){let t=this.saved;for(let n in t)t[n].group===e&&delete t[n];this.saved=t},async changeGroup(e){let t=await ra({title:"Change group name",value:e.group});t&&(e.group=t)},drill(e){let t=`/google/${e.keyword}`;this.$router.push({path:t})},exportAll(){let e=Object.keys(this.saved),t=this.$refs.results;this.$root.exportAll(e,t)}},computed:{saved:{get(){var e;return(e=this.$root)==null?void 0:e.saved},set(e){this.$root.saved=e}},groups(){let e={};for(let t in this.saved){let n=this.saved[t].group;e[n]||(e[n]=[]),e[n].push(this.saved[t])}return e},hasSaved(){return!$e(this.saved)}}},Qv={class:"d-flex flex-column flex-md-row align-items-center justify-content-between"},Zv=p("h3",null,"Your saved keywords",-1),e_=p("i",{class:"fa fa-download"},null,-1),t_=[e_],n_=p("hr",null,null,-1),r_={key:0,class:"text-muted text-center"},s_=p("i",{class:"fa fa-heart fa-3x"},null,-1),i_=p("p",{class:"mt-3"},"You have no saved keywords",-1),o_=[s_,i_],a_={class:"card mb-3"},l_={class:"card-header text-capitalize"},u_={class:"d-flex flex-column flex-md-row align-items-center justify-content-between"},d_=["onClick"],c_=p("i",{class:"fa fa-trash"},null,-1),f_=[c_],p_={class:"card-body"},h_={class:"table table-striped"},m_=p("thead",null,[p("tr",null,[p("th",{class:""},"Keyword"),p("th",{class:"text-success"},"Search Volume"),p("th",{class:""},"Cost per click"),p("th",{class:""},"Competition"),p("th",{class:""},"Trends"),p("th",null,"\xA0")])],-1),g_=["onClick"],v_=p("i",{class:"fa fa-folder"},null,-1),__=[v_];function y_(e,t,n,r,s,o){const l=j("show-result"),u=Pt("hint");return b(),C("div",null,[p("div",Qv,[Zv,p("div",null,[te((b(),C("a",{href:"#",onClick:t[0]||(t[0]=I(d=>o.exportAll(),["prevent"]))},t_)),[[u,"Export saved keywords"]])])]),n_,o.hasSaved?(b(!0),C(we,{key:1},Oe(o.groups,(d,h)=>(b(),C("div",a_,[p("div",l_,[p("div",u_,[q(Ee(h)+" ",1),p("a",{href:"#",onClick:I(f=>o.removeGroup(h),["prevent"]),class:"text-muted"},f_,8,d_)])]),p("div",p_,[p("table",h_,[m_,p("tbody",null,[(b(!0),C(we,null,Oe(d,(f,v)=>(b(),Z(l,Se(f,{onDrill:m=>o.drill(f),ref_for:!0,ref:"results"}),{actions:ut(()=>[te((b(),C("a",{href:"#",onClick:I(m=>o.changeGroup(f),["prevent"]),class:"text-muted mx-2"},__,8,g_)),[[u,"Change group name"]])]),_:2},1040,["onDrill"]))),256))])])])]))),256)):(b(),C("div",r_,o_))])}var b_=J(Kv,[["render",y_]]);const w_=[{path:"/google/:kw?",name:"Google",component:Hv},{path:"/youtube",name:"Youtube",component:Jv},{path:"/questions",name:"Questions",component:Yv},{path:"/bonuses",name:"Bonuses",component:bm},{path:"/saved",name:"Saved",component:b_},{path:"/:pathMatch(.*)*",redirect:"/google"}],S_=Fh({history:ah(),routes:w_});var Ui={exports:{}};/*! 46 * Chartkick.js 47 * Create beautiful charts with one line of JavaScript 48 * https://github.com/ankane/chartkick.js 49 * v4.2.0 50 * MIT License 51 */(function(e,t){(function(n,r){e.exports=r()})(Fd,function(){function n(a){return Object.prototype.toString.call(a)==="[object Array]"}function r(a){return a instanceof Function}function s(a){return Object.prototype.toString.call(a)==="[object Object]"&&!r(a)&&a instanceof Object}function o(a,i){var c;for(c in i)c!=="__proto__"&&(s(i[c])||n(i[c])?(s(i[c])&&!s(a[c])&&(a[c]={}),n(i[c])&&!n(a[c])&&(a[c]=[]),o(a[c],i[c])):i[c]!==void 0&&(a[c]=i[c]))}function l(a,i){var c={};return o(c,a),o(c,i),c}var u=/^(\d\d\d\d)(-)?(\d\d)(-)?(\d\d)$/i;function d(a){var i,c,g;for(i=0;i<a.length;i++)for(g=a[i].data,c=0;c<g.length;c++)if(g[c][1]<0)return!0;return!1}function h(a){return""+a}function f(a){return parseFloat(a)}function v(a){var i,c,g,E;if(typeof a!="object")if(typeof a=="number")a=new Date(a*1e3);else{if(a=h(a),i=a.match(u))return c=parseInt(i[1],10),g=parseInt(i[3],10)-1,E=parseInt(i[5],10),new Date(c,g,E);var M=a.replace(/ /,"T").replace(" ","").replace("UTC","Z");a=new Date(Date.parse(M)||a)}return a}function m(a){if(!n(a)){var i=[],c;for(c in a)a.hasOwnProperty(c)&&i.push([c,a[c]]);a=i}return a}function y(a,i,c,g,E,M,z,D){return function(N,G,X){var pe=N.data,U=l({},a);return U=l(U,X||{}),(N.singleSeriesFormat||"legend"in G)&&i(U,G.legend,N.singleSeriesFormat),G.title&&c(U,G.title),"min"in G?g(U,G.min):d(pe)||g(U,0),G.max&&E(U,G.max),"stacked"in G&&M(U,G.stacked),G.colors&&(U.colors=G.colors),G.xtitle&&z(U,G.xtitle),G.ytitle&&D(U,G.ytitle),U=l(U,G.library||{}),U}}function _(a,i){return a[0].getTime()-i[0].getTime()}function S(a,i){return a[0]-i[0]}function x(a,i){return a-i}function k(a){return a.getMilliseconds()===0&&a.getSeconds()===0}function w(a){return k(a)&&a.getMinutes()===0}function L(a){return w(a)&&a.getHours()===0}function P(a,i){return L(a)&&a.getDay()===i}function F(a){return L(a)&&a.getDate()===1}function H(a){return F(a)&&a.getMonth()===0}function W(a){return!isNaN(v(a))&&h(a).length>=6}function ue(a){return typeof a=="number"}var ce=["bytes","KB","MB","GB","TB","PB","EB"];function se(a,i,c,g){a=a||"",c.prefix&&(i<0&&(i=i*-1,a+="-"),a+=c.prefix);var E=c.suffix||"",M=c.precision,z=c.round;if(c.byteScale){var D,N=g?c.byteScale:i;N>=1152921504606847e3?(i/=1152921504606847e3,D=6):N>=0x4000000000000?(i/=0x4000000000000,D=5):N>=1099511627776?(i/=1099511627776,D=4):N>=1073741824?(i/=1073741824,D=3):N>=1048576?(i/=1048576,D=2):N>=1024?(i/=1024,D=1):D=0,M===void 0&&z===void 0&&(i>=1023.5&&D<ce.length-1&&(i=1,D+=1),M=i>=1e3?4:3),E=" "+ce[D]}if(M!==void 0&&z!==void 0)throw Error("Use either round or precision, not both");if(!g&&(M!==void 0&&(i=i.toPrecision(M),c.zeros||(i=parseFloat(i))),z!==void 0))if(z<0){var G=Math.pow(10,-1*z);i=parseInt((1*i/G).toFixed(0))*G}
51else i=i.toFixed(z),c.zeros||(i=parseFloat(i));if(c.thousands||c.decimal){i=h(i);var X=i.split(".");i=X[0],c.thousands&&(i=i.replace(/\B(?=(\d{3})+(?!\d))/g,c.thousands)),X.length>1&&(i+=(c.decimal||".")+X[1])}return a+i+E}function de(a,i,c){return c in i?i[c]:c in a.options?a.options[c]:null}function me(a){var i,c,g;for(i=0;i<a.length;i++)for(g=a[i].data,c=0;c<g.length;c++)if(g[c][1]!=0)return!1;return!0}var ge={maintainAspectRatio:!1,animation:!1,plugins:{legend:{},tooltip:{displayColors:!1,callbacks:{}},title:{font:{size:20},color:"#333"}},interaction:{}},Pe={scales:{y:{ticks:{maxTicksLimit:4},title:{font:{size:16},color:"#333"},grid:{}},x:{grid:{drawOnChartArea:!1},title:{font:{size:16},color:"#333"},time:{},ticks:{}}}},je=["#3366CC","#DC3912","#FF9900","#109618","#990099","#3B3EAC","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#329262","#5574A6","#651067"],fe=function(a,i,c){i!==void 0?(a.plugins.legend.display=!!i,i&&i!==!0&&(a.plugins.legend.position=i)):c&&(a.plugins.legend.display=!1)},ve=function(a,i){a.plugins.title.display=!0,a.plugins.title.text=i},ft=function(a,i){i!==null&&(a.scales.y.min=f(i))},Ae=function(a,i){a.scales.y.max=f(i)},it=function(a,i){i!==null&&(a.scales.x.min=f(i))},ot=function(a,i){a.scales.x.max=f(i)},De=function(a,i){a.scales.x.stacked=!!i,a.scales.y.stacked=!!i},qe=function(a,i){a.scales.x.title.display=!0,a.scales.x.title.text=i},Ne=function(a,i){a.scales.y.title.display=!0,a.scales.y.title.text=i},T=function(a,i){var c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return c?"rgba("+parseInt(c[1],16)+", "+parseInt(c[2],16)+", "+parseInt(c[3],16)+", "+i+")":a},A=function(a){return a!=null},O=function(a,i,c){var g=Math.ceil(a.element.offsetWidth/4/i.labels.length);g>25?g=25:g<10&&(g=10),c.scales.x.ticks.callback||(c.scales.x.ticks.callback=function(E){return E=h(this.getLabelForValue(E)),E.length>g?E.substring(0,g-2)+"...":E})},R=function(a,i,c){var g={prefix:a.options.prefix,suffix:a.options.suffix,thousands:a.options.thousands,decimal:a.options.decimal,precision:a.options.precision,round:a.options.round,zeros:a.options.zeros};if(a.options.bytes){var E=a.data;c==="pie"&&(E=[{data:E}]);for(var M=0,z=0;z<E.length;z++)for(var D=E[z],N=0;N<D.data.length;N++)D.data[N][1]>M&&(M=D.data[N][1]);for(var G=1;M>=1024;)G*=1024,M/=1024;g.byteScale=G}if(c!=="pie"){var X=i.scales.y;c==="bar"&&(X=i.scales.x),g.byteScale&&(X.ticks.stepSize||(X.ticks.stepSize=g.byteScale/2),X.ticks.maxTicksLimit||(X.ticks.maxTicksLimit=4)),X.ticks.callback||(X.ticks.callback=function(U){return se("",U,g,!0)})}if(!i.plugins.tooltip.callbacks.label)if(c==="scatter")i.plugins.tooltip.callbacks.label=function(U){var K=U.dataset.label||"";return K&&(K+=": "),K+"("+U.label+", "+U.formattedValue+")"};else if(c==="bubble")i.plugins.tooltip.callbacks.label=function(U){var K=U.dataset.label||"";K&&(K+=": ");var Ze=U.raw;return K+"("+Ze.x+", "+Ze.y+", "+Ze.v+")"};else if(c==="pie")i.plugins.tooltip.callbacks.label=function(U){var K=U.label,Ze=": ";return n(K)?(K=K.slice(),K[0]+=Ze):K+=Ze,se(K,U.parsed,g)};else{var pe=c==="bar"?"x":"y";i.plugins.tooltip.callbacks.label=function(U){if(U.parsed[pe]!==null){var K=U.dataset.label||"";return K&&(K+=": "),se(K,U.parsed[pe],g)}}}},Q=y(l(ge,Pe),fe,ve,ft,Ae,De,qe,Ne),oe=function(a,i,c){var g=[],E=[],M=a.options.colors||je,z=!0,D=!0,N,G=!0,X=!0,pe=!0,U=!0,K=a.data,Ze=0;if(c==="bubble")for(var lr=0;lr<K.length;lr++)for(var ur=K[lr],zn=0;zn<ur.data.length;zn++)ur.data[zn][2]>Ze&&(Ze=ur.data[zn][2]);var he,Re,ze,Pn,It,an=[],Dn=[];if(c==="bar"||c==="column"||a.xtype!=="number"&&a.xtype!=="bubble"){var ln=[];for(he=0;he<K.length;he++)for(ze=K[he],Re=0;Re<ze.data.length;Re++)Pn=ze.data[Re],It=a.xtype=="datetime"?Pn[0].getTime():Pn[0],an[It]||(an[It]=new Array(K.length)),an[It][he]=f(Pn[1]),ln.indexOf(It)===-1&&ln.push(It);for((a.xtype==="datetime"||a.xtype==="number")&&ln.sort(x),Re=0;Re<K.length;Re++)Dn.push([]);var et,Nn;for(Nn=0;Nn<ln.length;Nn++)for(he=ln[Nn],a.xtype==="datetime"?(et=new Date(f(he)),z=z&&L(et),N||(N=et.getDay()),D=D&&P(et,N),G=G&&F(et),X=X&&H(et),pe=pe&&w(et),U=U&&k(et)):et=he,E.push(et),Re=0;Re<K.length;Re++)Dn[Re].push(an[he][Re]===void 0?null:an[he][Re])}else for(var dr=0;dr<K.length;dr++){for(var un=K[dr],us=[],Vt=0;Vt<un.data.length;Vt++){var cr={x:f(un.data[Vt][0]),y:f(un.data[Vt][1])};c==="bubble"&&(cr.r=f(un.data[Vt][2])*20/Ze,cr.v=un.data[Vt][2]),us.push(cr)}Dn.push(us)}var gt,Ut;for(he=0;he<K.length;he++){if(ze=K[he],a.options.colors&&a.singleSeriesFormat&&(c==="bar"||c==="column")&&!ze.color&&n(a.options.colors)&&!n(a.options.colors[0])){gt=M,Ut=[];for(var Ln=0;Ln<M.length;Ln++)Ut[Ln]=T(gt[Ln],.5)}else gt=ze.color||M[he],Ut=c!=="line"?T(gt,.5):gt;var be={label:ze.name||"",data:Dn[he],fill:c==="area",borderColor:gt,backgroundColor:Ut,borderWidth:2},ds=c==="line"||c==="area"||c==="scatter"||c==="bubble";
51ds&&(be.pointBackgroundColor=gt,be.pointHoverBackgroundColor=gt,be.pointHitRadius=50),c==="bubble"&&(be.pointBackgroundColor=Ut,be.pointHoverBackgroundColor=Ut,be.pointHoverBorderWidth=2),ze.stack&&(be.stack=ze.stack);var ho=de(a,ze,"curve");ho===!1?be.tension=0:ds&&(be.tension=.4);var mo=de(a,ze,"points");mo===!1&&(be.pointRadius=0,be.pointHoverRadius=0),be=l(be,a.options.dataset||{}),be=l(be,ze.library||{}),be=l(be,ze.dataset||{}),g.push(be)}var vt=a.options.xmin,_t=a.options.xmax;if(a.xtype==="datetime"?(A(vt)&&(i.scales.x.min=v(vt).getTime()),A(_t)&&(i.scales.x.max=v(_t).getTime())):a.xtype==="number"&&(A(vt)&&(i.scales.x.min=vt),A(_t)&&(i.scales.x.max=_t)),a.xtype==="datetime"&&E.length===0&&(A(vt)&&E.push(v(vt)),A(_t)&&E.push(v(_t)),z=!1,D=!1,G=!1,X=!1,pe=!1,U=!1),a.xtype==="datetime"&&E.length>0){var fr=(A(vt)?v(vt):E[0]).getTime(),pr=(A(_t)?v(_t):E[0]).getTime();for(he=1;he<E.length;he++){var Bn=E[he].getTime();Bn<fr&&(fr=Bn),Bn>pr&&(pr=Bn)}var jt=(pr-fr)/(86400*1e3);if(!i.scales.x.time.unit){var yt;if(X||jt>365*10?(i.scales.x.time.unit="year",yt=365):G||jt>30*10?(i.scales.x.time.unit="month",yt=30):z||jt>10?(i.scales.x.time.unit="day",yt=1):pe||jt>.5?(i.scales.x.time.displayFormats={hour:"MMM d, h a"},i.scales.x.time.unit="hour",yt=1/24):U&&(i.scales.x.time.displayFormats={minute:"h:mm a"},i.scales.x.time.unit="minute",yt=1/24/60),yt&&jt>0){var cs=a.element.offsetWidth;if(cs>0){var hr=Math.ceil(jt/yt/(cs/100));D&&yt===1&&(hr=Math.ceil(hr/7)*7),i.scales.x.time.stepSize=hr}}}i.scales.x.time.tooltipFormat||(z?i.scales.x.time.tooltipFormat="PP":pe?i.scales.x.time.tooltipFormat="MMM d, h a":U&&(i.scales.x.time.tooltipFormat="h:mm a"))}var go={labels:E,datasets:g};return go},B=function(i){this.name="chartjs",this.library=i};B.prototype.renderLineChart=function(i,c){var g={};!i.options.max&&me(i.data)&&(g.max=1);var E=Q(i,l(g,i.options));R(i,E,c);var M=oe(i,E,c||"line");i.xtype==="number"?(E.scales.x.type=E.scales.x.type||"linear",E.scales.x.position=E.scales.x.position||"bottom"):E.scales.x.type=i.xtype==="string"?"category":"time",this.drawChart(i,"line",M,E)},B.prototype.renderPieChart=function(i){var c=l({},ge);i.options.donut&&(c.cutout="50%"),"legend"in i.options&&fe(c,i.options.legend),i.options.title&&ve(c,i.options.title),c=l(c,i.options.library||{}),R(i,c,"pie");for(var g=[],E=[],M=0;M<i.data.length;M++){var z=i.data[M];g.push(z[0]),E.push(z[1])}var D={data:E,backgroundColor:i.options.colors||je};D=l(D,i.options.dataset||{});var N={labels:g,datasets:[D]};this.drawChart(i,"pie",N,c)},B.prototype.renderColumnChart=function(i,c){var g;if(c==="bar"){var E=l(ge,Pe);E.indexAxis="y",E.scales.x.grid.drawOnChartArea=!0,E.scales.y.grid.drawOnChartArea=!1,delete E.scales.y.ticks.maxTicksLimit,g=y(E,fe,ve,it,ot,De,qe,Ne)(i,i.options)}else g=Q(i,i.options);R(i,g,c);var M=oe(i,g,"column");c!=="bar"&&O(i,M,g),this.drawChart(i,"bar",M,g)},B.prototype.renderAreaChart=function(i){this.renderLineChart(i,"area")},B.prototype.renderBarChart=function(i){this.renderColumnChart(i,"bar")},B.prototype.renderScatterChart=function(i,c){c=c||"scatter";var g=Q(i,i.options);R(i,g,c),"showLine"in g||(g.showLine=!1);var E=oe(i,g,c);g.scales.x.type=g.scales.x.type||"linear",g.scales.x.position=g.scales.x.position||"bottom","mode"in g.interaction||(g.interaction.mode="nearest"),this.drawChart(i,c,E,g)},B.prototype.renderBubbleChart=function(i){this.renderScatterChart(i,"bubble")},B.prototype.destroy=function(i){i.chart&&i.chart.destroy()},B.prototype.drawChart=function(i,c,g,E){if(this.destroy(i),!i.destroyed){var M={type:c,data:g,options:E};i.options.code&&window.console.log("new Chart(ctx, "+JSON.stringify(M)+");"),i.element.innerHTML="<canvas></canvas>";var z=i.element.getElementsByTagName("CANVAS")[0];i.chart=new this.library(z,M)}};var Y={chart:{},xAxis:{title:{text:null},labels:{style:{fontSize:"12px"}}},yAxis:{title:{text:null},labels:{style:{fontSize:"12px"}}},title:{text:null},credits:{enabled:!1},legend:{borderWidth:0},tooltip:{style:{fontSize:"12px"}},plotOptions:{areaspline:{},area:{},series:{marker:{}}},time:{useUTC:!1}},ae=function(a,i,c){i!==void 0?(a.legend.enabled=!!i,i&&i!==!0&&(i==="top"||i==="bottom"?a.legend.verticalAlign=i:(a.legend.layout="vertical",a.legend.verticalAlign="middle",a.legend.align=i))):c&&(a.legend.enabled=!1)},Qe=function(a,i){a.title.text=i},ke=function(a,i){a.yAxis.min=i},Mn=function(a,i){a.yAxis.max=i},Tn=function(a,i){var c=i?i===!0?"normal":i:null;a.plotOptions.series.stacking=c,a.plotOptions.area.stacking=c,a.plotOptions.areaspline.stacking=c},nr=function(a,i){a.xAxis.title.text=i},rr=function(a,i){a.yAxis.title.text=i},He=y(Y,ae,Qe,ke,Mn,Tn,nr,rr),pt=function(a,i,c){var g={prefix:a.options.prefix,suffix:a.options.suffix,thousands:a.options.thousands,decimal
51:a.options.decimal,precision:a.options.precision,round:a.options.round,zeros:a.options.zeros};c!=="pie"&&!n(i.yAxis)&&!i.yAxis.labels.formatter&&(i.yAxis.labels.formatter=function(){return se("",this.value,g)}),!i.tooltip.pointFormatter&&!i.tooltip.pointFormat&&(i.tooltip.pointFormatter=function(){return'<span style="color:'+this.color+'">\u25CF</span> '+se(this.series.name+": <b>",this.y,g)+"</b><br/>"})},Le=function(i){this.name="highcharts",this.library=i};Le.prototype.renderLineChart=function(i,c){c=c||"spline";var g={};c==="areaspline"&&(g={plotOptions:{areaspline:{stacking:"normal"},area:{stacking:"normal"},series:{marker:{enabled:!1}}}}),i.options.curve===!1&&(c==="areaspline"?c="area":c==="spline"&&(c="line"));var E=He(i,i.options,g),M,z,D;i.xtype==="number"?E.xAxis.type=E.xAxis.type||"linear":E.xAxis.type=i.xtype==="string"?"category":"datetime",E.chart.type||(E.chart.type=c),pt(i,E,c);var N=i.data;for(z=0;z<N.length;z++){if(N[z].name=N[z].name||"Value",M=N[z].data,i.xtype==="datetime")for(D=0;D<M.length;D++)M[D][0]=M[D][0].getTime();N[z].marker={symbol:"circle"},i.options.points===!1&&(N[z].marker.enabled=!1)}this.drawChart(i,N,E)},Le.prototype.renderScatterChart=function(i){var c=He(i,i.options,{});c.chart.type="scatter",this.drawChart(i,i.data,c)},Le.prototype.renderPieChart=function(i){var c=l(Y,{});i.options.colors&&(c.colors=i.options.colors),i.options.donut&&(c.plotOptions={pie:{innerSize:"50%"}}),"legend"in i.options&&ae(c,i.options.legend),i.options.title&&Qe(c,i.options.title);var g=l(c,i.options.library||{});pt(i,g,"pie");var E=[{type:"pie",name:i.options.label||"Value",data:i.data}];this.drawChart(i,E,g)},Le.prototype.renderColumnChart=function(i,c){c=c||"column";var g=i.data,E=He(i,i.options),M,z,D,N,G=[],X=[];for(E.chart.type=c,pt(i,E,c),M=0;M<g.length;M++)for(D=g[M],z=0;z<D.data.length;z++)N=D.data[z],G[N[0]]||(G[N[0]]=new Array(g.length),X.push(N[0])),G[N[0]][M]=N[1];i.xtype==="number"&&X.sort(x),E.xAxis.categories=X;var pe=[],U;for(M=0;M<g.length;M++){for(N=[],z=0;z<X.length;z++)N.push(G[X[z]][M]||0);U={name:g[M].name||"Value",data:N},g[M].stack&&(U.stack=g[M].stack),pe.push(U)}this.drawChart(i,pe,E)},Le.prototype.renderBarChart=function(i){this.renderColumnChart(i,"bar")},Le.prototype.renderAreaChart=function(i){this.renderLineChart(i,"areaspline")},Le.prototype.destroy=function(i){i.chart&&i.chart.destroy()},Le.prototype.drawChart=function(i,c,g){this.destroy(i),!i.destroyed&&(g.chart.renderTo=i.element.id,g.series=c,i.options.code&&window.console.log("new Highcharts.Chart("+JSON.stringify(g)+");"),i.chart=new this.library.Chart(g))};var nn={},ht=[],mt={chartArea:{},fontName:"'Lucida Grande', 'Lucida Sans Unicode', Verdana, Arial, Helvetica, sans-serif",pointSize:6,legend:{textStyle:{fontSize:12,color:"#444"},alignment:"center",position:"right"},curveType:"function",hAxis:{textStyle:{color:"#666",fontSize:12},titleTextStyle:{},gridlines:{color:"transparent"},baselineColor:"#ccc",viewWindow:{}},vAxis:{textStyle:{color:"#666",fontSize:12},titleTextStyle:{},baselineColor:"#ccc",viewWindow:{}},tooltip:{textStyle:{color:"#666",fontSize:12}}},Dt=function(a,i,c){if(i!==void 0){var g;i?i===!0?g="right":g=i:g="none",a.legend.position=g}else c&&(a.legend.position="none")},Nt=function(a,i){a.title=i,a.titleTextStyle={color:"#333",fontSize:"20px"}},On=function(a,i){a.vAxis.viewWindow.min=i},ji=function(a,i){a.vAxis.viewWindow.max=i},qi=function(a,i){a.hAxis.viewWindow.min=i},Hi=function(a,i){a.hAxis.viewWindow.max=i},Qr=function(a,i){a.isStacked=i||!1},Zr=function(a,i){a.hAxis.title=i,a.hAxis.titleTextStyle.italic=!1},es=function(a,i){a.vAxis.title=i,a.vAxis.titleTextStyle.italic=!1},An=y(mt,Dt,Nt,On,ji,Qr,Zr,es),Gi=function(a){window.attachEvent?window.attachEvent("onresize",a):window.addEventListener&&window.addEventListener("resize",a,!0),a()},Ce=function(i){this.name="google",this.library=i};Ce.prototype.renderLineChart=function(i){var c=this;this.waitForLoaded(i,function(){var g={};i.options.curve===!1&&(g.curveType="none"),i.options.points===!1&&(g.pointSize=0);var E=An(i,i.options,g),M=c.createDataTable(i.data,i.xtype);c.drawChart(i,"LineChart",M,E)})},Ce.prototype.renderPieChart=function(i){var c=this;this.waitForLoaded(i,function(){var g={chartArea:{top:"10%",height:"80%"},legend:{}};i.options.colors&&(g.colors=i.options.colors),i.options.donut&&(g.pieHole=.5),"legend"in i.options&&Dt(g,i.options.legend),i.options.title&&Nt(g,i.options.title);var E=l(l(mt,g),i.options.library||{}),M=new c.library.visualization.DataTable;M.addColumn("string",""),M.addColumn("number","Value"),M.addRows(i.data),c.drawChart(i,"PieChart",M,E)})},Ce.prototype.renderColumnChart=function(i){var c=this;this.waitForLoaded(i,function(){var g=An(i,i.options),E=c.createDataTable(i.data,i.xtype);c.drawChart(i,"ColumnChart",E,g)})},Ce.prototype.renderBarChart=function(i){var c=this;this.waitForLoaded(i,function(){var g={hAxis:{gridlines:{color:"#ccc"}}},E=y(mt,Dt,Nt,qi,Hi,Qr,Zr,es)(i,i.options,g),M=c.createDataTable(i.data,i.xtype);c.drawChart(i,"BarChart",M,E)})},Ce.prototype.renderAreaChart=function(i){var c=this;this.waitForLoaded(i,function(){var g={isStacked:!0,pointSize:0,areaOpacity:.5},E=An(i,i.options,g),M=c.createDataTable(i.data,i.xtype);c.drawChart(i,"AreaChart",M,E)})},Ce.prototype.renderGeoChart=function(i){var c=this;this.waitForLoaded(i,"geochart",function(){var g={legend:"none",colorAxis:{colors:i.options.colors||["#f6c7b6","#ce502d"]}},E=l(l(mt,g),i.options.library||{}),M=new c.library.visualization.DataTable;M.addColumn("string",""),M.addColumn("number",i.options.label||"Value"),M.addRows(i.data),c.drawChart(i,"GeoChart",M,E)})},Ce.prototype.renderScatterChart=function(i){var c=this;this.waitForLoaded(i,function(){var g={},E=An(i,i.options,g),M=i.data,z=[],D,N,G,X;for(D=0;D<M.length;D++)for(M[D].name=M[D].name||"Value",X=M[D].data,N=0;N<X.length;N++){var pe=new Array(M.length+1);pe[0]=X[N][0],pe[D+1]=X[N][1],z.push(pe)}for(G=new c.library.visualization.DataTable,G.addColumn("number",""),D=0;D<M.length;D++)G.addColumn("number",M[D].name);G.addRows(z),c.drawChart(i,"ScatterChart",G,E)})},Ce.prototype.renderTimeline=function(i){var c=this;this.waitForLoaded(i,"timeline",function(){var g={legend:"none"};i.options.colors&&(g.colors=i.options.colors);var E=l(l(mt,g),i.options.library||{}),M=new c.library.visualization.DataTable;M.addColumn({type:"string",id:"Name"}),M.addColumn({type:"date",id:"Start"}),M.addColumn({type:"date",id:"End"}),M.addRows(i.data),i.element.style.lineHeight="normal",c.drawChart(i,"Timeline",M,E)})},Ce.prototype.destroy=function(i){i.chart&&i.chart.clearChart()},Ce.prototype.drawChart=function(i,c,g,E){this.destroy(i),!i.destroyed&&(i.options.code&&window.console.log("var data = new google.visualization.DataTable("+g.toJSON()+`); 52var chart = new google.visualization.`+c+`(element); 53chart.draw(data, `+JSON.stringify(E)+");"),i.chart=new this.library.visualization[c](i.element),Gi(function(){i.chart.draw(g,E)}
53))},Ce.prototype.waitForLoaded=function(i,c,g){var E=this;if(g||(g=c,c="corechart"),ht.push({pack:c,callback:g}),nn[c])this.runCallbacks();else{nn[c]=!0;var M={packages:[c],callback:function(){E.runCallbacks()}},z=i.__config();z.language&&(M.language=z.language),c==="geochart"&&z.mapsApiKey&&(M.mapsApiKey=z.mapsApiKey),this.library.charts.load("current",M)}},Ce.prototype.runCallbacks=function(){for(var i,c,g=0;g<ht.length;g++)i=ht[g],c=this.library.visualization&&(i.pack==="corechart"&&this.library.visualization.LineChart||i.pack==="timeline"&&this.library.visualization.Timeline||i.pack==="geochart"&&this.library.visualization.GeoChart),c&&(i.callback(),ht.splice(g,1),g--)},Ce.prototype.createDataTable=function(i,c){var g,E,M,z,D,N=[],G=[];for(g=0;g<i.length;g++)for(M=i[g],i[g].name=i[g].name||"Value",E=0;E<M.data.length;E++)z=M.data[E],D=c==="datetime"?z[0].getTime():z[0],N[D]||(N[D]=new Array(i.length),G.push(D)),N[D][g]=f(z[1]);var X=[],pe=!0,U;for(E=0;E<G.length;E++)g=G[E],c==="datetime"?(U=new Date(f(g)),pe=pe&&L(U)):c==="number"?U=f(g):U=g,X.push([U].concat(N[g]));if(c==="datetime")X.sort(_);else if(c==="number"){for(X.sort(S),g=0;g<X.length;g++)X[g][0]=h(X[g][0]);c="string"}var K=new this.library.visualization.DataTable;for(c=c==="datetime"&&pe?"date":c,K.addColumn(c,""),g=0;g<i.length;g++)K.addColumn("number",i[g].name);return K.addRows(X),K};function Fi(a,i){var c=[],g,E;if(i==="number"?E=f:i==="datetime"?E=v:E=h,i==="bubble")for(g=0;g<a.length;g++)c.push([f(a[g][0]),f(a[g][1]),f(a[g][2])]);else for(g=0;g<a.length;g++)c.push([E(a[g][0]),f(a[g][1])]);return i==="datetime"?c.sort(_):i==="number"&&c.sort(S),c}function Yi(a,i,c){return rs(a)?(c.xmin||c.xmax)&&(!c.xmin||W(c.xmin))&&(!c.xmax||W(c.xmax))?"datetime":"number":ts(a,ue)?"number":!i&&ts(a,W)?"datetime":"string"}function ts(a,i){var c,g,E;for(c=0;c<a.length;c++)for(E=m(a[c].data),g=0;g<E.length;g++)if(!i(E[g][0]))return!1;return!0}function Wi(a){var i=[],c,g;for(c=0;c<a.length;c++){var E={};for(g in a[c])a[c].hasOwnProperty(g)&&(E[g]=a[c][g]);i.push(E)}return i}function Lt(a,i,c){var g,E=a.options,M=a.rawData;for(a.singleSeriesFormat=!n(M)||typeof M[0]!="object"||n(M[0]),a.singleSeriesFormat&&(M=[{name:E.label,data:M}]),M=Wi(M),g=0;g<M.length;
53g++)M[g].data=m(M[g].data);for(a.xtype=i||(E.discrete?"string":Yi(M,c,E)),g=0;g<M.length;g++)M[g].data=Fi(M[g].data,a.xtype);return M}function ns(a){var i=m(a.rawData),c;for(c=0;c<i.length;c++)i[c]=[h(i[c][0]),f(i[c][1])];return i}function rs(a,i){if(i==="PieChart"||i==="GeoChart"||i==="Timeline")return a.length===0;for(var c=0;c<a.length;c++)if(a[c].data.length>0)return!1;return!0}function Xi(a){var i=a.element,c=document.createElement("a"),g=a.options.download;g===!0?g={}:typeof g=="string"&&(g={filename:g}),c.download=g.filename||"chart.png",c.style.position="absolute",c.style.top="20px",c.style.right="20px",c.style.zIndex=1e3,c.style.lineHeight="20px",c.target="_blank";var E=document.createElement("img");E.alt="Download",E.style.border="none",E.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABCFBMVEUAAADMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMywEsqxAAAAV3RSTlMAAQIDBggJCgsMDQ4PERQaHB0eISIjJCouLzE0OTo/QUJHSUpLTU5PUllhYmltcHh5foWLjI+SlaCio6atr7S1t7m6vsHHyM7R2tze5Obo7fHz9ff5+/1hlxK2AAAA30lEQVQYGUXBhVYCQQBA0TdYWAt2d3d3YWAHyur7/z9xgD16Lw0DW+XKx+1GgX+FRzM3HWQWrHl5N/oapW5RPe0PkBu+UYeICvozTWZVK23Ao04B79oJrOsJDOoxkZoQPWgX29pHpCZEk7rEvQYiNSFq1UMqvlCjJkRBS1R8hb00Vb/TajtBL7nTHE1X1vyMQF732dQhyF2o6SAwrzP06iUQzvwsArlnzcOdrgBhJyHa1QOgO9U1GsKuvjUTjavliZYQ8nNPapG6sap/3nrIdJ6bOWzmX/fy0XVpfzZP3S8OJT3g9EEiJwAAAABJRU5ErkJggg==",c.appendChild(E),i.style.position="relative",a.__downloadAttached=!0,a.__enterEvent=ss(i,"mouseover",function(M){var z=M.relatedTarget;(!z||z!==this&&!os(this,z))&&a.options.download&&(c.href=a.toImage(g),i.appendChild(c))}),a.__leaveEvent=ss(i,"mouseout",function(M){var z=M.relatedTarget;(!z||z!==this&&!os(this,z))&&c.parentNode&&c.parentNode.removeChild(c)})}function ss(a,i,c){if(a.addEventListener)return a.addEventListener(i,c,!1),c;var g=function(){return c.call(a,window.event)};return a.attachEvent("on"+i,g),g}function is(a,i,c){a.removeEventListener?a.removeEventListener(i,c,!1):a.detachEvent("on"+i,c)}function os(a,i){if(a===i)return!1;for(;i&&i!==a;)i=i.parentNode;return i===a}var as=[],sr=0,Ji=4;function Ki(a,i,c){as.push([a,i,c]),ir()}function ir(){if(sr<Ji){var a=as.shift();a&&(sr++,Qi(a[0],a[1],a[2]),ir())}}function ls(){sr--,ir()}function Qi(a,i,c){Zi(a,i,function(g,E,M){var z=typeof M=="string"?M:M.message;c(z)})}function Zi(a,i,c){var g=window.jQuery||window.Zepto||window.$;if(g&&g.ajax)g.ajax({dataType:"json",url:a,success:i,error:c,complete:ls});else{var E=new XMLHttpRequest;E.open("GET",a,!0),E.setRequestHeader("Content-Type","application/json"),E.onload=function(){ls(),E.status===200?i(JSON.parse(E.responseText),E.statusText,E):c(E,"error",E.statusText)},E.send()}}var rn={},Bt=[];function or(a,i){document.body.innerText?a.innerText=i:a.textContent=i}function Rn(a,i,c){c||(i="Error Loading Chart: "+i),or(a,i),a.style.color="#ff0000"}function ar(a){try{a.__render()}catch(i){throw Rn(a.element,i.message),i}}function sn(a,i,c){if(c&&a.options.loading&&(typeof i=="string"||typeof i=="function")&&or(a.element,a.options.loading),typeof i=="string")Ki(i,function(g){a.rawData=g,ar(a)},function(g){Rn(a.element,g)});else if(typeof i=="function")try{i(function(g){a.rawData=g,ar(a)},function(g){Rn(a.element,g,!0)})}catch(g){Rn(a.element,g,!0)}else a.rawData=i,ar(a)}function eo(a){if(a){if(a.product==="Highcharts")return Le;if(a.charts)return Ce;if(r(a))return B}throw new Error("Unknown adapter")}function on(a){var i=eo(a),c=new i(a);Bt.indexOf(c)===-1&&Bt.push(c)}function to(){"Chart"in window&&on(window.Chart),"Highcharts"in window&&on(window.Highcharts),window.google&&window.google.charts&&on(window.google)}function no(a,i){if(rs(i.data,a)){var c=i.options.empty||i.options.messages&&i.options.messages.empty||"No data";or(i.element,c)}else ro(a,i),i.options.download&&!i.__downloadAttached&&i.adapter==="chartjs"&&Xi(i)}function ro(a,i){var c,g,E,M;for(E="render"+a,M=i.options.adapter,to(),c=0;c<Bt.length;c++)if(g=Bt[c],(!M||M===g.name)&&r(g[E]))return i.adapter=g.name,i.__adapterObject=g,g[E](i);throw Bt.length>0?new Error("No charting library found for "+a):new Error("No charting libraries found - be sure to include one before your charts")}var ie=function(i,c,g){var E;if(typeof i=="string"&&(E=i,i=document.getElementById(i),!i))throw new Error("No element with id "+E);this.element=i,this.options=l(ye.options,g||{}),this.dataSource=c,ye.charts[i.id]=this,sn(this,c,!0),this.options.refresh&&this.startRefresh()};ie.prototype.getElement=function(){return this.element},ie.prototype.getDataSource=function(){return this.dataSource},ie.prototype.getData=function(){return this.data},ie.prototype.getOptions=function(){return this.options},ie.prototype.getChartObject=function(){return this.chart},ie.prototype.getAdapter=function(){return this.adapter},ie.prototype.updateData=function(i,c){this.dataSource=i,c&&this.__updateOptions(c),sn(this,i,!0)},ie.prototype.setOptions=function(i){this.__updateOptions(i),this.redraw()},ie.prototype.redraw=function(){sn(this,this.rawData)},ie.prototype.refreshData=function(){if(typeof this.dataSource=="string"){var i=this.dataSource.indexOf("?")===-1?"?":"&",c=this.dataSource+i+"_="+new Date().getTime();sn(this,c)}else typeof this.dataSource=="function"&&sn(this,this.dataSource)},ie.prototype.startRefresh=function(){var i=this,c=this.options.refresh;if(c&&typeof this.dataSource!="string"&&typeof this.dataSource!="function")throw new Error("Data source must be a URL or callback for refresh");if(!this.intervalId)if(c)this.intervalId=setInterval(function(){i.refreshData()},c*1e3);else throw new Error("No refresh interval")},ie.prototype.stopRefresh=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},ie.prototype.toImage=function(i){if(this.adapter==="chartjs")if(i&&i.background&&i.background!=="transparent"){var c=this.chart.canvas,g=this.chart.ctx,E=document.createElement("canvas"),M=E.getContext("2d");return E.width=g.canvas.width,E.height=g.canvas.height,M.fillStyle=i.background,M.fillRect(0,0,E.width,E.height),M.drawImage(c,0,0),E.toDataURL("image/png")}else return this.chart.toBase64Image();else throw new Error("Feature only available for Chart.js")},ie.prototype.destroy=function(){this.destroyed=!0,this.stopRefresh(),this.__adapterObject&&this.__adapterObject.destroy(this),this.__enterEvent&&is(this.element,"mouseover",this.__enterEvent),this.__leaveEvent&&is(this.element,"mouseout",this.__leaveEvent)},ie.prototype.__updateOptions=function(i){var c=i.refresh&&i.refresh!==this.options.refresh;this.options=l(ye.options,i),c&&(this.stopRefresh(),this.startRefresh())},ie.prototype.__render=function(){this.data=this.__processData(),no(this.__chartName(),this)},ie.prototype.__config=function(){return rn};var so=function(a){function i(){a.apply(this,arguments)}return a&&(i.__proto__=a),i.prototype=Object.create(a&&a.prototype),i.prototype.constructor=i,i.prototype.__processData=function(){return Lt(this)},i.prototype.__chartName=function(){return"LineChart"},i}(ie),io=function(a){function i(){a.apply(this,arguments)}return a&&(i.__proto__=a),i.prototype=Object.create(a&&a.prototype),i.prototype.constructor=i,i.prototype.__processData=function(){return ns(this)},i.prototype.__chartName=function(){return"PieChart"},i}(ie),oo=function(a){function i(){a.apply(this,arguments)}return a&&(i.__proto__=a),i.prototype=Object.create(a&&a.prototype),i.prototype.constructor=i,i.prototype.__processData=function(){return Lt(this,null,!0)},i.prototype.__chartName=function(){return"ColumnChart"},i}(ie),ao=function(a){function i(){a.apply(this,arguments)}return a&&(i.__proto__=a),i.prototype=Object.create(a&&a.prototype),i.prototype.constructor=i,i.prototype.__processData=function(){return Lt(this,null,!0)},i.prototype.__chartName=function(){return"BarChart"},i}(ie),lo=function(a){function i(){a.apply(this,arguments)}return a&&(i.__proto__=a),i.prototype=Object.create(a&&a.prototype),i.prototype.constructor=i,i.prototype.__processData=function(){return Lt(this)},i.prototype.__chartName=function(){return"AreaChart"},i}(ie),uo=function(a){function i(){a.apply(this,arguments)}return a&&(i.__proto__=a),i.prototype=Object.create(a&&a.prototype),i.prototype.constructor=i,i.prototype.__processData=function(){return ns(this)},i.prototype.__chartName=function(){return"GeoChart"},i}(ie),co=function(a){function i(){a.apply(this,arguments)}return a&&(i.__proto__=a),i.prototype=Object.create(a&&a.prototype),i.prototype.constructor=i,i.prototype.__processData=function(){return Lt(this,"number")},i.prototype.__chartName=function(){return"ScatterChart"},i}(ie),fo=function(a){function i(){a.apply(this,arguments)}return a&&(i.__proto__=a),i.prototype=Object.create(a&&a.prototype),i.prototype.constructor=i,i.prototype.__processData=function(){return Lt(this,"bubble")},i.prototype.__chartName=function(){return"BubbleChart"},i}(ie),po=function(a){function i(){a.apply(this,arguments)}return a&&(i.__proto__=a),i.prototype=Object.create(a&&a.prototype),i.prototype.constructor=i,i.prototype.__processData=function(){var g,E=this.rawData;for(g=0;g<E.length;g++)E[g][1]=v(E[g][1]),E[g][2]=v(E[g][2]);return E},i.prototype.__chartName=function(){return"Timeline"},i}
53(ie),ye={LineChart:so,PieChart:io,ColumnChart:oo,BarChart:ao,AreaChart:lo,GeoChart:uo,ScatterChart:co,BubbleChart:fo,Timeline:po,charts:{},configure:function(a){for(var i in a)a.hasOwnProperty(i)&&(rn[i]=a[i])},setDefaultOptions:function(a){ye.options=a},eachChart:function(a){for(var i in ye.charts)ye.charts.hasOwnProperty(i)&&a(ye.charts[i])},destroyAll:function(){for(var a in ye.charts)ye.charts.hasOwnProperty(a)&&(ye.charts[a].destroy(),delete ye.charts[a])},config:rn,options:{},adapters:Bt,addAdapter:on,use:function(a){return on(a),ye}};return typeof window!="undefined"&&!window.Chartkick&&(window.Chartkick=ye,document.addEventListener("turbolinks:before-render",function(){rn.autoDestroy!==!1&&ye.destroyAll()}),document.addEventListener("turbo:before-render",function(){rn.autoDestroy!==!1&&ye.destroyAll()}),setTimeout(function(){window.dispatchEvent(new Event("chartkick:load"))},0)),ye.default=ye,ye})})(Ui);var Ge=Ui.exports;/*! 54 * Vue Chartkick 55 * Create beautiful JavaScript charts with one line of Vue 56 * https://github.com/ankane/vue-chartkick 57 * v1.1.0 58 * MIT License 59 */var x_=1,St=function(e,t,n){var r=["adapter","bytes","code","colors","curve","dataset","decimal","discrete","donut","download","empty","label","legend","library","loading","max","messages","min","points","precision","prefix","refresh","round","stacked","suffix","thousands","title","xmax","xmin","xtitle","ytitle","zeros"];e.component(t,{props:["data","id","width","height"].concat(r),render:function(){var s=this.chartOptions.loading!==void 0?this.chartOptions.loading:"Loading...";if(typeof s!="string")throw new Error("loading must be a string");return Pr("div",{id:this.chartId,style:this.chartStyle},[s])},data:function(){return{chartId:null}},computed:{chartStyle:function(){return this.data,this.chartOptions,{height:this.height||"300px",lineHeight:this.height||"300px",width:this.width||"100%",textAlign:"center",color:"#999",fontSize:"14px",fontFamily:"'Lucida Grande', 'Lucida Sans Unicode', Verdana, Arial, Helvetica, sans-serif"}},chartOptions:function(){for(var s={},o=r,l=0;l<o.length;l++){var u=o[l];this[u]!==void 0&&(s[u]=this[u])}return s}},created:function(){this.chartId=this.chartId||this.id||"chart-"+x_++},mounted:function(){this.updateChart()},updated:function(){this.updateChart()},beforeUnmount:function(){this.chart&&this.chart.destroy()},methods:{updateChart:function(){this.data!==null?this.chart?this.chart.updateData(this.data,this.chartOptions):this.chart=new n(this.chartId,this.data,this.chartOptions):this.chart&&(this.chart.destroy(),this.chart=null,this.$el.innerText="Loading...")}}})};Ge.install=function(e,t){t&&t.adapter&&Ge.addAdapter(t.adapter),St(e,"line-chart",Ge.LineChart),St(e,"pie-chart",Ge.PieChart),St(e,"column-chart",Ge.ColumnChart),St(e,"bar-chart",Ge.BarChart),St(e,"area-chart",Ge.AreaChart),St(e,"scatter-chart",Ge.ScatterChart),St(e,"geo-chart",Ge.GeoChart),St(e,"timeline",Ge.Timeline)};window.app=Co(Qu);Yd(app);ef(app);jp(app);app.use(S_);app.mount("#app");app.use(Ge);app.config.performance=!0;export{cf as C,Ei as _,lc as a,Cr as b,Zc as c,E_ as d,$e as e,dt as i,$_ as n,xe as v}; 60//# sourceMappingURL=app.3e08c0cd.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.