From f972b199d7957b2a54d99c639e6b1620ca1f6f45 Mon Sep 17 00:00:00 2001 From: Gacktto Date: Wed, 27 Mar 2024 06:34:41 -0300 Subject: [PATCH] atualizando --- assets/index-CJva4fHQ.css | 1 + assets/index-CuOvtrKR.css | 1 - assets/{index-fH_KTjRE.js => index-DKBjoz99.js} | 2 +- index.html | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 assets/index-CJva4fHQ.css delete mode 100644 assets/index-CuOvtrKR.css rename assets/{index-fH_KTjRE.js => index-DKBjoz99.js} (99%) diff --git a/assets/index-CJva4fHQ.css b/assets/index-CJva4fHQ.css new file mode 100644 index 0000000..a9f24f5 --- /dev/null +++ b/assets/index-CJva4fHQ.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";*{padding:0;margin:0;font-family:Montserrat,sans-serif;font-size:small;color:#fff;-webkit-user-select:none;user-select:none;-moz-user-select:none}body *{-webkit-user-drag:auto}body{background-color:#252525;overflow:hidden}body,html{height:100%;width:100%}a{text-decoration:unset}select,option{color:#000}::-webkit-scrollbar{width:7px}::-webkit-scrollbar-thumb{background-color:gray;border-radius:10px}.sidemenu[data-v-0d239fd9]{position:absolute;background-color:#505050;height:100vh;top:0;left:0;width:50vw;border-radius:0 1vh 1vh 0;box-shadow:30px 0 100px #000;display:flex;align-items:start;justify-content:start;box-sizing:border-box;padding:5vw}.sidemenu .nav[data-v-0d239fd9]{display:flex;justify-content:start;flex-direction:column}.sidemenu .nav .nav-button[data-v-0d239fd9]{height:5vh;display:flex;align-items:center;justify-content:start}.sidemenu .nav .nav-button[data-v-0d239fd9]:hover{font-weight:600}@media screen and (max-width: 450px){.sidemenu[data-v-0d239fd9]{width:80vw}}.toggle-menu[data-v-1277a889]{position:absolute;top:10px;left:10px;width:32px;height:32px;font-size:32px;background-color:#505050;display:flex;align-items:center;justify-content:center;border-radius:1vh}.toggle-menu[data-v-1277a889]:hover{background-color:red}nav[data-v-1277a889]{height:10%;width:100vw;display:flex;justify-content:center;align-items:center}.nav-button[data-v-1277a889]{padding:2vh;background-color:#505050;border-radius:1vh;border:2px solid transparent}.nav-button[data-v-1277a889]:first-child{margin-right:2vh}.nav-button[data-v-1277a889]:hover{border:2px solid white}.main[data-v-1277a889]{display:flex;align-items:center;justify-content:start;flex-direction:column;min-height:90%;width:100vw}@media screen and (min-width: 700px){.sidemenu[data-v-1277a889]{display:none}}@media screen and (max-width: 700px){nav[data-v-1277a889],.wrap-select[data-v-1277a889]{display:none}.main[data-v-1277a889]{max-height:90%;width:100%}}.cards[data-v-80b8bea0]{width:100%;max-height:100vh;box-sizing:border-box;padding:5vw;display:flex;align-items:start;justify-content:center;flex-wrap:wrap;gap:1vw;overflow-y:auto}.card[data-v-80b8bea0]{min-width:49%;height:25%;border-radius:1vw;background-color:#505050;display:flex;flex-direction:column;padding:15px;box-sizing:border-box}.city-info[data-v-80b8bea0]{height:30px;font-weight:600;color:orange}.cep[data-v-80b8bea0]{font-weight:600;height:25px;width:100px;text-indent:10px;display:flex;align-items:center;justify-content:start;background-color:#5a5a5a;border-radius:1vh}.logradouro[data-v-80b8bea0]{height:45px;display:flex;flex-wrap:wrap;padding:5px 5px 5px 0;box-sizing:border-box}.card-buttons[data-v-80b8bea0]{width:100%;display:flex;align-items:center;justify-content:end;gap:10px}#gotToMapsButton[data-v-80b8bea0],#copyClipboardButton[data-v-80b8bea0]{cursor:pointer;opacity:.7}#gotToMapsButton[data-v-80b8bea0]:hover,#copyClipboardButton[data-v-80b8bea0]:hover{opacity:1}@media screen and (max-width: 700px){nav[data-v-80b8bea0]{display:none}.card[data-v-80b8bea0]{min-width:200px;max-width:200px}.wrap-title[data-v-80b8bea0]{font-weight:700;font-size:large}.wrap-select[data-v-80b8bea0]{width:100%;height:fit-content;display:flex;align-items:start;justify-content:start;flex-direction:column;box-sizing:border-box;padding:5vw;font-size:large;border-radius:1vw;gap:2vw}.wrap-select-option[data-v-80b8bea0]{width:100%;height:fit-content;display:flex}.wrap-select-option select[data-v-80b8bea0]{height:5vh;width:50%;color:#b1b1b1;background-color:#505050;text-indent:5vw;font-weight:600;position:relative;border:none;outline:none}.wrap-select-option select[data-v-80b8bea0]:first-child{border-radius:1vw 0 0 1vw}.wrap-select-option select[data-v-80b8bea0]:last-child{border-radius:0 1vw 1vw 0}} diff --git a/assets/index-CuOvtrKR.css b/assets/index-CuOvtrKR.css deleted file mode 100644 index ad03edd..0000000 --- a/assets/index-CuOvtrKR.css +++ /dev/null @@ -1 +0,0 @@ -@import"https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";*{padding:0;margin:0;font-family:Montserrat,sans-serif;font-size:small;color:#fff;-webkit-user-select:none;user-select:none;-moz-user-select:none}body *{-webkit-user-drag:auto}body{background-color:#252525;overflow:hidden}body,html{height:100%;width:100%}a{text-decoration:unset}select,option{color:#000}::-webkit-scrollbar{width:7px}::-webkit-scrollbar-thumb{background-color:gray;border-radius:10px}.sidemenu[data-v-0d239fd9]{position:absolute;background-color:#505050;height:100vh;top:0;left:0;width:50vw;border-radius:0 1vh 1vh 0;box-shadow:30px 0 100px #000;display:flex;align-items:start;justify-content:start;box-sizing:border-box;padding:5vw}.sidemenu .nav[data-v-0d239fd9]{display:flex;justify-content:start;flex-direction:column}.sidemenu .nav .nav-button[data-v-0d239fd9]{height:5vh;display:flex;align-items:center;justify-content:start}.sidemenu .nav .nav-button[data-v-0d239fd9]:hover{font-weight:600}@media screen and (max-width: 450px){.sidemenu[data-v-0d239fd9]{width:80vw}}.toggle-menu[data-v-efd2a392]{position:absolute;top:10px;left:10px;width:32px;height:32px;font-size:32px;background-color:#505050;display:flex;align-items:center;justify-content:center;border-radius:1vh}.toggle-menu[data-v-efd2a392]:hover{background-color:red}nav[data-v-efd2a392]{height:10%;width:100vw;display:flex;justify-content:center;align-items:center}.nav-button[data-v-efd2a392]{padding:2vh;background-color:#505050;border-radius:1vh;border:2px solid transparent}.nav-button[data-v-efd2a392]:first-child{margin-right:2vh}.nav-button[data-v-efd2a392]:hover{border:2px solid white}.main[data-v-efd2a392]{display:flex;align-items:center;justify-content:start;flex-direction:column;min-height:90%;width:100vw}@media screen and (min-width: 700px){.sidemenu[data-v-efd2a392]{display:none}}@media screen and (max-width: 700px){nav[data-v-efd2a392],.wrap-select[data-v-efd2a392]{display:none}}.cards[data-v-6ad979ea]{width:100%;flex:1;box-sizing:border-box;padding:5vw;display:flex;align-items:start;justify-content:center;flex-wrap:wrap;gap:1vw}.card[data-v-6ad979ea]{min-width:49%;height:25%;border-radius:1vw;background-color:#505050;display:flex;flex-direction:column;padding:15px;box-sizing:border-box}.city-info[data-v-6ad979ea]{height:30px;font-weight:600;color:orange}.cep[data-v-6ad979ea]{font-weight:600;height:25px;width:100px;text-indent:10px;display:flex;align-items:center;justify-content:start;background-color:#5a5a5a;border-radius:1vh}.logradouro[data-v-6ad979ea]{height:45px;display:flex;flex-wrap:wrap;padding:5px 5px 5px 0;box-sizing:border-box}.card-buttons[data-v-6ad979ea]{width:100%;display:flex;align-items:center;justify-content:end;gap:10px}#gotToMapsButton[data-v-6ad979ea],#copyClipboardButton[data-v-6ad979ea]{cursor:pointer;opacity:.7}#gotToMapsButton[data-v-6ad979ea]:hover,#copyClipboardButton[data-v-6ad979ea]:hover{opacity:1}@media screen and (max-width: 700px){nav[data-v-6ad979ea]{display:none}.card[data-v-6ad979ea]{min-width:200px;max-width:200px}.wrap-title[data-v-6ad979ea]{font-weight:700;font-size:large}.wrap-select[data-v-6ad979ea]{width:100%;height:fit-content;display:flex;align-items:start;justify-content:start;flex-direction:column;box-sizing:border-box;padding:5vw;font-size:large;border-radius:1vw;gap:2vw}.wrap-select-option[data-v-6ad979ea]{width:100%;height:fit-content;display:flex}.wrap-select-option select[data-v-6ad979ea]{height:5vh;width:50%;color:#b1b1b1;background-color:#505050;text-indent:5vw;font-weight:600;position:relative;border:none;outline:none}.wrap-select-option select[data-v-6ad979ea]:first-child{border-radius:1vw 0 0 1vw}.wrap-select-option select[data-v-6ad979ea]:last-child{border-radius:0 1vw 1vw 0}} diff --git a/assets/index-fH_KTjRE.js b/assets/index-DKBjoz99.js similarity index 99% rename from assets/index-fH_KTjRE.js rename to assets/index-DKBjoz99.js index e7cd706..09243b0 100644 --- a/assets/index-fH_KTjRE.js +++ b/assets/index-DKBjoz99.js @@ -22,4 +22,4 @@ * vue-router v4.3.0 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const gt=typeof document<"u";function oc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const z=Object.assign;function jn(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ae(r)?r.map(e):e(r)}return n}const jt=()=>{},Ae=Array.isArray,So=/#/g,ic=/&/g,lc=/\//g,cc=/=/g,uc=/\?/g,Co=/\+/g,fc=/%5B/g,ac=/%5D/g,Po=/%5E/g,dc=/%60/g,Ao=/%7B/g,hc=/%7C/g,Oo=/%7D/g,pc=/%20/g;function xs(e){return encodeURI(""+e).replace(hc,"|").replace(fc,"[").replace(ac,"]")}function gc(e){return xs(e).replace(Ao,"{").replace(Oo,"}").replace(Po,"^")}function Xn(e){return xs(e).replace(Co,"%2B").replace(pc,"+").replace(So,"%23").replace(ic,"%26").replace(dc,"`").replace(Ao,"{").replace(Oo,"}").replace(Po,"^")}function mc(e){return Xn(e).replace(cc,"%3D")}function _c(e){return xs(e).replace(So,"%23").replace(uc,"%3F")}function yc(e){return e==null?"":_c(e).replace(lc,"%2F")}function Wt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const vc=/\/$/,bc=e=>e.replace(vc,"");function Un(e,t,n="/"){let s,r={},o="",i="";const u=t.indexOf("#");let l=t.indexOf("?");return u=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,u>-1?u:t.length),r=e(o)),u>-1&&(s=s||t.slice(0,u),i=t.slice(u,t.length)),s=Rc(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:Wt(i)}}function Ec(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function lr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function xc(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Rt(t.matched[s],n.matched[r])&&Io(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Rt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Io(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!wc(e[n],t[n]))return!1;return!0}function wc(e,t){return Ae(e)?cr(e,t):Ae(t)?cr(t,e):e===t}function cr(e,t){return Ae(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Rc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,u;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}var Gt;(function(e){e.pop="pop",e.push="push"})(Gt||(Gt={}));var Ut;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ut||(Ut={}));function Sc(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),bc(e)}const Cc=/^[^#]+#/;function Pc(e,t){return e.replace(Cc,"#")+t}function Ac(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Cn=()=>({left:window.scrollX,top:window.scrollY});function Oc(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Ac(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ur(e,t){return(history.state?history.state.position-t:-1)+e}const Zn=new Map;function Ic(e,t){Zn.set(e,t)}function Tc(e){const t=Zn.get(e);return Zn.delete(e),t}let Mc=()=>location.protocol+"//"+location.host;function To(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let u=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(u);return l[0]!=="/"&&(l="/"+l),lr(l,"")}return lr(n,e)+s+r}function Fc(e,t,n,s){let r=[],o=[],i=null;const u=({state:p})=>{const v=To(e,location),T=n.value,P=t.value;let F=0;if(p){if(n.value=v,t.value=p,i&&i===T){i=null;return}F=P?p.position-P.position:0}else s(v);r.forEach(w=>{w(n.value,T,{delta:F,type:Gt.pop,direction:F?F>0?Ut.forward:Ut.back:Ut.unknown})})};function l(){i=n.value}function d(p){r.push(p);const v=()=>{const T=r.indexOf(p);T>-1&&r.splice(T,1)};return o.push(v),v}function a(){const{history:p}=window;p.state&&p.replaceState(z({},p.state,{scroll:Cn()}),"")}function h(){for(const p of o)p();o=[],window.removeEventListener("popstate",u),window.removeEventListener("beforeunload",a)}return window.addEventListener("popstate",u),window.addEventListener("beforeunload",a,{passive:!0}),{pauseListeners:l,listen:d,destroy:h}}function fr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Cn():null}}function Lc(e){const{history:t,location:n}=window,s={value:To(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,d,a){const h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:Mc()+e+l;try{t[a?"replaceState":"pushState"](d,"",p),r.value=d}catch(v){console.error(v),n[a?"replace":"assign"](p)}}function i(l,d){const a=z({},t.state,fr(r.value.back,l,r.value.forward,!0),d,{position:r.value.position});o(l,a,!0),s.value=l}function u(l,d){const a=z({},r.value,t.state,{forward:l,scroll:Cn()});o(a.current,a,!0);const h=z({},fr(s.value,l,null),{position:a.position+1},d);o(l,h,!1),s.value=l}return{location:s,state:r,push:u,replace:i}}function Nc(e){e=Sc(e);const t=Lc(e),n=Fc(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=z({location:"",base:e,go:s,createHref:Pc.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function $c(e){return typeof e=="string"||e&&typeof e=="object"}function Mo(e){return typeof e=="string"||typeof e=="symbol"}const ze={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Fo=Symbol("");var ar;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ar||(ar={}));function St(e,t){return z(new Error,{type:e,[Fo]:!0},t)}function He(e,t){return e instanceof Error&&Fo in e&&(t==null||!!(e.type&t))}const dr="[^/]+?",jc={sensitive:!1,strict:!1,start:!0,end:!0},Uc=/[.+*?^${}()[\]/\\]/g;function Hc(e,t){const n=z({},jc,t),s=[];let r=n.start?"^":"";const o=[];for(const d of e){const a=d.length?[]:[90];n.strict&&!d.length&&(r+="/");for(let h=0;ht.length?t.length===1&&t[0]===80?1:-1:0}function Dc(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Kc={type:0,value:""},Vc=/[a-zA-Z0-9_]/;function kc(e){if(!e)return[[]];if(e==="/")return[[Kc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${d}": ${v}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let u=0,l,d="",a="";function h(){d&&(n===0?o.push({type:0,value:d}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:d,regexp:a,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function p(){d+=l}for(;u{i(I)}:jt}function i(a){if(Mo(a)){const h=s.get(a);h&&(s.delete(a),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(a);h>-1&&(n.splice(h,1),a.record.name&&s.delete(a.record.name),a.children.forEach(i),a.alias.forEach(i))}}function u(){return n}function l(a){let h=0;for(;h=0&&(a.record.path!==n[h].record.path||!Lo(a,n[h]));)h++;n.splice(h,0,a),a.record.name&&!gr(a)&&s.set(a.record.name,a)}function d(a,h){let p,v={},T,P;if("name"in a&&a.name){if(p=s.get(a.name),!p)throw St(1,{location:a});P=p.record.name,v=z(pr(h.params,p.keys.filter(I=>!I.optional).concat(p.parent?p.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),a.params&&pr(a.params,p.keys.map(I=>I.name))),T=p.stringify(v)}else if(a.path!=null)T=a.path,p=n.find(I=>I.re.test(T)),p&&(v=p.parse(T),P=p.record.name);else{if(p=h.name?s.get(h.name):n.find(I=>I.re.test(h.path)),!p)throw St(1,{location:a,currentLocation:h});P=p.record.name,v=z({},h.params,a.params),T=p.stringify(v)}const F=[];let w=p;for(;w;)F.unshift(w.record),w=w.parent;return{name:P,path:T,params:v,matched:F,meta:Qc(F)}}return e.forEach(a=>o(a)),{addRoute:o,resolve:d,removeRoute:i,getRoutes:u,getRecordMatcher:r}}function pr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function zc(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:qc(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 qc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function gr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Qc(e){return e.reduce((t,n)=>z(t,n.meta),{})}function mr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Lo(e,t){return t.children.some(n=>n===e||Lo(e,n))}function Yc(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Xn(o)):[s&&Xn(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Jc(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ae(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Xc=Symbol(""),yr=Symbol(""),ws=Symbol(""),No=Symbol(""),es=Symbol("");function Tt(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Je(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((u,l)=>{const d=p=>{p===!1?l(St(4,{from:n,to:t})):p instanceof Error?l(p):$c(p)?l(St(2,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),u())},a=o(()=>e.call(s&&s.instances[r],t,n,d));let h=Promise.resolve(a);e.length<3&&(h=h.then(d)),h.catch(p=>l(p))})}function Hn(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const u in i.components){let l=i.components[u];if(!(t!=="beforeRouteEnter"&&!i.instances[u]))if(Zc(l)){const a=(l.__vccOpts||l)[t];a&&o.push(Je(a,n,s,i,u,r))}else{let d=l();o.push(()=>d.then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${u}" at "${i.path}"`));const h=oc(a)?a.default:a;i.components[u]=h;const v=(h.__vccOpts||h)[t];return v&&Je(v,n,s,i,u,r)()}))}}return o}function Zc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vr(e){const t=De(ws),n=De(No),s=Re(()=>t.resolve(Ce(e.to))),r=Re(()=>{const{matched:l}=s.value,{length:d}=l,a=l[d-1],h=n.matched;if(!a||!h.length)return-1;const p=h.findIndex(Rt.bind(null,a));if(p>-1)return p;const v=br(l[d-2]);return d>1&&br(a)===v&&h[h.length-1].path!==v?h.findIndex(Rt.bind(null,l[d-2])):p}),o=Re(()=>r.value>-1&&nu(n.params,s.value.params)),i=Re(()=>r.value>-1&&r.value===n.matched.length-1&&Io(n.params,s.value.params));function u(l={}){return tu(l)?t[Ce(e.replace)?"replace":"push"](Ce(e.to)).catch(jt):Promise.resolve()}return{route:s,href:Re(()=>s.value.href),isActive:o,isExactActive:i,navigate:u}}const eu=oo({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:vr,setup(e,{slots:t}){const n=yn(vr(e)),{options:s}=De(ws),r=Re(()=>({[Er(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Er(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Ro("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),zt=eu;function tu(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 nu(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Ae(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function br(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Er=(e,t,n)=>e??t??n,su=oo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=De(es),r=Re(()=>e.route||s.value),o=De(yr,0),i=Re(()=>{let d=Ce(o);const{matched:a}=r.value;let h;for(;(h=a[d])&&!h.components;)d++;return d}),u=Re(()=>r.value.matched[i.value]);on(yr,Re(()=>i.value+1)),on(Xc,u),on(es,r);const l=Le();return sn(()=>[l.value,u.value,e.name],([d,a,h],[p,v,T])=>{a&&(a.instances[h]=d,v&&v!==a&&d&&d===p&&(a.leaveGuards.size||(a.leaveGuards=v.leaveGuards),a.updateGuards.size||(a.updateGuards=v.updateGuards))),d&&a&&(!v||!Rt(a,v)||!p)&&(a.enterCallbacks[h]||[]).forEach(P=>P(d))},{flush:"post"}),()=>{const d=r.value,a=e.name,h=u.value,p=h&&h.components[a];if(!p)return xr(n.default,{Component:p,route:d});const v=h.props[a],T=v?v===!0?d.params:typeof v=="function"?v(d):v:null,F=Ro(p,z({},T,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(h.instances[a]=null)},ref:l}));return xr(n.default,{Component:F,route:d})||F}}});function xr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const $o=su;function ru(e){const t=Gc(e.routes,e),n=e.parseQuery||Yc,s=e.stringifyQuery||_r,r=e.history,o=Tt(),i=Tt(),u=Tt(),l=vi(ze);let d=ze;gt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=jn.bind(null,_=>""+_),h=jn.bind(null,yc),p=jn.bind(null,Wt);function v(_,A){let S,M;return Mo(_)?(S=t.getRecordMatcher(_),M=A):M=_,t.addRoute(M,S)}function T(_){const A=t.getRecordMatcher(_);A&&t.removeRoute(A)}function P(){return t.getRoutes().map(_=>_.record)}function F(_){return!!t.getRecordMatcher(_)}function w(_,A){if(A=z({},A||l.value),typeof _=="string"){const f=Un(n,_,A.path),g=t.resolve({path:f.path},A),y=r.createHref(f.fullPath);return z(f,g,{params:p(g.params),hash:Wt(f.hash),redirectedFrom:void 0,href:y})}let S;if(_.path!=null)S=z({},_,{path:Un(n,_.path,A.path).path});else{const f=z({},_.params);for(const g in f)f[g]==null&&delete f[g];S=z({},_,{params:h(f)}),A.params=h(A.params)}const M=t.resolve(S,A),G=_.hash||"";M.params=a(p(M.params));const Y=Ec(s,z({},_,{hash:gc(G),path:M.path})),c=r.createHref(Y);return z({fullPath:Y,hash:G,query:s===_r?Jc(_.query):_.query||{}},M,{redirectedFrom:void 0,href:c})}function I(_){return typeof _=="string"?Un(n,_,l.value.path):z({},_)}function $(_,A){if(d!==_)return St(8,{from:A,to:_})}function k(_){return ue(_)}function ee(_){return k(z(I(_),{replace:!0}))}function H(_){const A=_.matched[_.matched.length-1];if(A&&A.redirect){const{redirect:S}=A;let M=typeof S=="function"?S(_):S;return typeof M=="string"&&(M=M.includes("?")||M.includes("#")?M=I(M):{path:M},M.params={}),z({query:_.query,hash:_.hash,params:M.path!=null?{}:_.params},M)}}function ue(_,A){const S=d=w(_),M=l.value,G=_.state,Y=_.force,c=_.replace===!0,f=H(S);if(f)return ue(z(I(f),{state:typeof f=="object"?z({},G,f.state):G,force:Y,replace:c}),A||S);const g=S;g.redirectedFrom=A;let y;return!Y&&xc(s,M,S)&&(y=St(16,{to:g,from:M}),Te(M,M,!0,!1)),(y?Promise.resolve(y):Oe(g,M)).catch(m=>He(m)?He(m,2)?m:ke(m):W(m,g,M)).then(m=>{if(m){if(He(m,2))return ue(z({replace:c},I(m.to),{state:typeof m.to=="object"?z({},G,m.to.state):G,force:Y}),A||g)}else m=nt(g,M,!0,c,G);return Ve(g,M,m),m})}function ve(_,A){const S=$(_,A);return S?Promise.reject(S):Promise.resolve()}function tt(_){const A=ht.values().next().value;return A&&typeof A.runWithContext=="function"?A.runWithContext(_):_()}function Oe(_,A){let S;const[M,G,Y]=ou(_,A);S=Hn(M.reverse(),"beforeRouteLeave",_,A);for(const f of M)f.leaveGuards.forEach(g=>{S.push(Je(g,_,A))});const c=ve.bind(null,_,A);return S.push(c),le(S).then(()=>{S=[];for(const f of o.list())S.push(Je(f,_,A));return S.push(c),le(S)}).then(()=>{S=Hn(G,"beforeRouteUpdate",_,A);for(const f of G)f.updateGuards.forEach(g=>{S.push(Je(g,_,A))});return S.push(c),le(S)}).then(()=>{S=[];for(const f of Y)if(f.beforeEnter)if(Ae(f.beforeEnter))for(const g of f.beforeEnter)S.push(Je(g,_,A));else S.push(Je(f.beforeEnter,_,A));return S.push(c),le(S)}).then(()=>(_.matched.forEach(f=>f.enterCallbacks={}),S=Hn(Y,"beforeRouteEnter",_,A,tt),S.push(c),le(S))).then(()=>{S=[];for(const f of i.list())S.push(Je(f,_,A));return S.push(c),le(S)}).catch(f=>He(f,8)?f:Promise.reject(f))}function Ve(_,A,S){u.list().forEach(M=>tt(()=>M(_,A,S)))}function nt(_,A,S,M,G){const Y=$(_,A);if(Y)return Y;const c=A===ze,f=gt?history.state:{};S&&(M||c?r.replace(_.fullPath,z({scroll:c&&f&&f.scroll},G)):r.push(_.fullPath,G)),l.value=_,Te(_,A,S,c),ke()}let Ie;function At(){Ie||(Ie=r.listen((_,A,S)=>{if(!Qt.listening)return;const M=w(_),G=H(M);if(G){ue(z(G,{replace:!0}),M).catch(jt);return}d=M;const Y=l.value;gt&&Ic(ur(Y.fullPath,S.delta),Cn()),Oe(M,Y).catch(c=>He(c,12)?c:He(c,2)?(ue(c.to,M).then(f=>{He(f,20)&&!S.delta&&S.type===Gt.pop&&r.go(-1,!1)}).catch(jt),Promise.reject()):(S.delta&&r.go(-S.delta,!1),W(c,M,Y))).then(c=>{c=c||nt(M,Y,!1),c&&(S.delta&&!He(c,8)?r.go(-S.delta,!1):S.type===Gt.pop&&He(c,20)&&r.go(-1,!1)),Ve(M,Y,c)}).catch(jt)}))}let at=Tt(),se=Tt(),q;function W(_,A,S){ke(_);const M=se.list();return M.length?M.forEach(G=>G(_,A,S)):console.error(_),Promise.reject(_)}function Ue(){return q&&l.value!==ze?Promise.resolve():new Promise((_,A)=>{at.add([_,A])})}function ke(_){return q||(q=!_,At(),at.list().forEach(([A,S])=>_?S(_):A()),at.reset()),_}function Te(_,A,S,M){const{scrollBehavior:G}=e;if(!gt||!G)return Promise.resolve();const Y=!S&&Tc(ur(_.fullPath,0))||(M||!S)&&history.state&&history.state.scroll||null;return Jr().then(()=>G(_,A,Y)).then(c=>c&&Oc(c)).catch(c=>W(c,_,A))}const de=_=>r.go(_);let dt;const ht=new Set,Qt={currentRoute:l,listening:!0,addRoute:v,removeRoute:T,hasRoute:F,getRoutes:P,resolve:w,options:e,push:k,replace:ee,go:de,back:()=>de(-1),forward:()=>de(1),beforeEach:o.add,beforeResolve:i.add,afterEach:u.add,onError:se.add,isReady:Ue,install(_){const A=this;_.component("RouterLink",zt),_.component("RouterView",$o),_.config.globalProperties.$router=A,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>Ce(l)}),gt&&!dt&&l.value===ze&&(dt=!0,k(r.location).catch(G=>{}));const S={};for(const G in ze)Object.defineProperty(S,G,{get:()=>l.value[G],enumerable:!0});_.provide(ws,A),_.provide(No,Vr(S)),_.provide(es,l);const M=_.unmount;ht.add(_),_.unmount=function(){ht.delete(_),ht.size<1&&(d=ze,Ie&&Ie(),Ie=null,l.value=ze,dt=!1,q=!1),M()}}};function le(_){return _.reduce((A,S)=>A.then(()=>tt(S)),Promise.resolve())}return Qt}function ou(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iRt(d,u))?s.push(u):n.push(u));const l=e.matched[i];l&&(t.matched.find(d=>Rt(d,l))||r.push(l))}return[n,s,r]}const Rs=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},iu={class:"sidemenu"},lu={class:"nav"},cu={__name:"Sidemenu",setup(e){return(t,n)=>(ye(),we("div",iu,[te("div",lu,[oe(Ce(zt),{class:"nav-button",to:"/generateCep"},{default:Kt(()=>[kt("Gerador de CEPs")]),_:1}),oe(Ce(zt),{class:"nav-button",to:""},{default:Kt(()=>[kt("Meus Arquivos")]),_:1})])]))}},uu=Rs(cu,[["__scopeId","data-v-0d239fd9"]]),fu=e=>(no("data-v-efd2a392"),e=e(),so(),e),au=fu(()=>te("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0"},null,-1)),du={class:"main"},hu={__name:"App",setup(e){const t=Le(!0),n=()=>{t.value=!t.value,console.log("click")};return(s,r)=>(ye(),we(pe,null,[au,te("div",du,[oe(Ce($o))]),te("nav",null,[oe(Ce(zt),{class:"nav-button",to:"/generateCep"},{default:Kt(()=>[kt("Gerador de CEPs")]),_:1}),oe(Ce(zt),{class:"nav-button",to:""},{default:Kt(()=>[kt("Meus Arquivos")]),_:1})]),t.value==!0?(ye(),bo(uu,{key:0})):yl("",!0),te("div",{class:"toggle-menu",onClick:n},"=")],64))}},pu=Rs(hu,[["__scopeId","data-v-efd2a392"]]),gu="data:text/csv;base64,SURzdGF0ZXMsZXN0YWRvLHVmCjEsQWNyZSxBQwoyLEFsYWdvYXMsQUwKMyxBbWF6b25hcyxBTQo0LEFtYXDDoSxBUAo1LEJhaGlhLEJBCjYsQ2VhcmEsQ0UKNyxEaXN0cml0byBGZWRlcmFsLERGCjgsRXNwaXJpdG8gU2FudG8sRVMKOSxHb2nDoXMsR08KMTAsTWFyYW5ow6NvLE1BCjExLE1pbmFzIEdlcmFpcyxNRwoxMixNYXRvIEdyb3NzbyBkbyBTdWwsTVMKMTMsTWF0byBHcm9zc28sTVQKMTQsUGFyw6EsUEEKMTUsUGFyYcOtYmEsUEIKMTYsUGVybmFtYnVjbyxQRQoxNyxQaWF1w60sUEkKMTgsUGFyYW7DoSxQUgoxOSxSaW8gZGUgSmFuZWlybyxSSgoyMCxSaW8gR3JhbmRlIGRvIE5vcnRlLFJOCjIxLFJvbmTDtG5pYSxSTwoyMixSb3JhaW1hLFJSCjIzLFJpbyBHcmFuZGUgZG8gU3VsLFJTCjI0LFNhbnRhIENhdGFyaW5hLFNDCjI1LFNlcmdpcGUsU0UKMjYsU8OjbyBQYXVsbyxTUAoyNyxUb2NhbnRpbnMsVE8K",mu="/ceplocate/assets/cities-JaQBhjwm.csv",_u="/ceplocate/assets/sp_ceps-DnIRAFP4.csv",jo=e=>(no("data-v-6ad979ea"),e=e(),so(),e),yu={class:"wrap-select"},vu={class:"wrap-select-option"},bu=jo(()=>te("option",{value:"default"},"Selecione",-1)),Eu=["value"],xu=jo(()=>te("option",{value:"default"},"Selecione",-1)),wu=["value"],Ru={class:"cards"},Su={class:"city-info"},Cu={class:"cep"},Pu={key:0,class:"logradouro"},Au={key:1,class:"logradouro",style:{opacity:"0.5"}},Ou={class:"card-buttons"},Iu=["onClick"],Tu={__name:"CepGenerator",setup(e){const t=Le([]),n=Le([]),s=Le([]),r=Le([]),o=Le([]),i=Le(""),u=Le("");let l=20;const d=async()=>{const P=new Worker(new URL("/ceplocate/assets/fileloader-UOokMDXS.js",import.meta.url));P.onmessage=function(F){const[w,I,$]=F.data;t.value=w,n.value=I,s.value=$},P.postMessage([gu,mu,_u])},a=P=>{const F=P.target.value;r.value=n.value.filter(I=>I.IDstates===F);const w=t.value.find(I=>I.IDstates===F);i.value=w?w.uf:""},h=P=>{var w;const F=P.target.value;o.value=s.value.filter(I=>I.IDcities===F).slice(0,l),u.value=((w=n.value.find(I=>I.IDcities===F))==null?void 0:w.cidade)||""};ji(()=>{i.value="",u.value=""}),d();const p=P=>typeof P=="string"&&P.length===8?P.slice(0,5)+"-"+P.slice(5):P,v=P=>{window.open(`https://www.google.com/maps/search/?api=1&query=${P}`,"_blank")},T=P=>{const F=P.querySelector(".logradouro").innerText,w=document.createElement("textarea");w.value=F,document.body.appendChild(w),w.select(),document.execCommand("copy"),document.body.removeChild(w)};return(P,F)=>(ye(),we(pe,null,[te("div",yu,[te("div",vu,[te("select",{name:"estado",onChange:a},[bu,(ye(!0),we(pe,null,Tn(t.value,(w,I)=>(ye(),we("option",{key:I,value:w.IDstates},We(w.estado),9,Eu))),128))],32),te("select",{name:"cidade",onChange:h},[xu,(ye(!0),we(pe,null,Tn(r.value,(w,I)=>(ye(),we("option",{key:I,value:w.IDcities},We(w.cidade),9,wu))),128))],32)])]),te("div",Ru,[(ye(!0),we(pe,null,Tn(o.value,(w,I)=>(ye(),we("div",{class:"card",key:I},[te("div",Su,We(u.value)+", "+We(i.value),1),te("div",Cu,We(p(w.cep)),1),w.logradouro1||w.logradouro2?(ye(),we("div",Pu,We(w.logradouro1)+" "+We(w.logradouro2)+" - "+We(w.bairro),1)):(ye(),we("div",Au," Endereço não encontrado ")),te("div",Ou,[te("span",{id:"gotToMapsButton",class:"material-symbols-rounded",onClick:$=>v(w.cep)},"location_on",8,Iu),te("span",{id:"copyClipboardButton",class:"material-symbols-rounded",onClick:F[0]||(F[0]=$=>T($.target.parentElement.parentElement))},"content_copy")])]))),128))])],64))}},Mu=Rs(Tu,[["__scopeId","data-v-6ad979ea"]]),Fu=ru({history:Nc("/ceplocate/"),routes:[{path:"/generateCep",name:"generateCep",component:Mu}]}),Ss=Zl(pu);Ss.use(rc());Ss.use(Fu);Ss.mount("#app"); + */const gt=typeof document<"u";function oc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const z=Object.assign;function jn(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ae(r)?r.map(e):e(r)}return n}const jt=()=>{},Ae=Array.isArray,So=/#/g,ic=/&/g,lc=/\//g,cc=/=/g,uc=/\?/g,Co=/\+/g,fc=/%5B/g,ac=/%5D/g,Po=/%5E/g,dc=/%60/g,Ao=/%7B/g,hc=/%7C/g,Oo=/%7D/g,pc=/%20/g;function xs(e){return encodeURI(""+e).replace(hc,"|").replace(fc,"[").replace(ac,"]")}function gc(e){return xs(e).replace(Ao,"{").replace(Oo,"}").replace(Po,"^")}function Xn(e){return xs(e).replace(Co,"%2B").replace(pc,"+").replace(So,"%23").replace(ic,"%26").replace(dc,"`").replace(Ao,"{").replace(Oo,"}").replace(Po,"^")}function mc(e){return Xn(e).replace(cc,"%3D")}function _c(e){return xs(e).replace(So,"%23").replace(uc,"%3F")}function yc(e){return e==null?"":_c(e).replace(lc,"%2F")}function Wt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const vc=/\/$/,bc=e=>e.replace(vc,"");function Un(e,t,n="/"){let s,r={},o="",i="";const u=t.indexOf("#");let l=t.indexOf("?");return u=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,u>-1?u:t.length),r=e(o)),u>-1&&(s=s||t.slice(0,u),i=t.slice(u,t.length)),s=Rc(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:Wt(i)}}function Ec(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function lr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function xc(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Rt(t.matched[s],n.matched[r])&&Io(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Rt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Io(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!wc(e[n],t[n]))return!1;return!0}function wc(e,t){return Ae(e)?cr(e,t):Ae(t)?cr(t,e):e===t}function cr(e,t){return Ae(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Rc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,u;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}var Gt;(function(e){e.pop="pop",e.push="push"})(Gt||(Gt={}));var Ut;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ut||(Ut={}));function Sc(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),bc(e)}const Cc=/^[^#]+#/;function Pc(e,t){return e.replace(Cc,"#")+t}function Ac(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Cn=()=>({left:window.scrollX,top:window.scrollY});function Oc(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Ac(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ur(e,t){return(history.state?history.state.position-t:-1)+e}const Zn=new Map;function Ic(e,t){Zn.set(e,t)}function Tc(e){const t=Zn.get(e);return Zn.delete(e),t}let Mc=()=>location.protocol+"//"+location.host;function To(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let u=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(u);return l[0]!=="/"&&(l="/"+l),lr(l,"")}return lr(n,e)+s+r}function Fc(e,t,n,s){let r=[],o=[],i=null;const u=({state:p})=>{const v=To(e,location),T=n.value,P=t.value;let F=0;if(p){if(n.value=v,t.value=p,i&&i===T){i=null;return}F=P?p.position-P.position:0}else s(v);r.forEach(w=>{w(n.value,T,{delta:F,type:Gt.pop,direction:F?F>0?Ut.forward:Ut.back:Ut.unknown})})};function l(){i=n.value}function d(p){r.push(p);const v=()=>{const T=r.indexOf(p);T>-1&&r.splice(T,1)};return o.push(v),v}function a(){const{history:p}=window;p.state&&p.replaceState(z({},p.state,{scroll:Cn()}),"")}function h(){for(const p of o)p();o=[],window.removeEventListener("popstate",u),window.removeEventListener("beforeunload",a)}return window.addEventListener("popstate",u),window.addEventListener("beforeunload",a,{passive:!0}),{pauseListeners:l,listen:d,destroy:h}}function fr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Cn():null}}function Lc(e){const{history:t,location:n}=window,s={value:To(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,d,a){const h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:Mc()+e+l;try{t[a?"replaceState":"pushState"](d,"",p),r.value=d}catch(v){console.error(v),n[a?"replace":"assign"](p)}}function i(l,d){const a=z({},t.state,fr(r.value.back,l,r.value.forward,!0),d,{position:r.value.position});o(l,a,!0),s.value=l}function u(l,d){const a=z({},r.value,t.state,{forward:l,scroll:Cn()});o(a.current,a,!0);const h=z({},fr(s.value,l,null),{position:a.position+1},d);o(l,h,!1),s.value=l}return{location:s,state:r,push:u,replace:i}}function Nc(e){e=Sc(e);const t=Lc(e),n=Fc(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=z({location:"",base:e,go:s,createHref:Pc.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function $c(e){return typeof e=="string"||e&&typeof e=="object"}function Mo(e){return typeof e=="string"||typeof e=="symbol"}const ze={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Fo=Symbol("");var ar;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ar||(ar={}));function St(e,t){return z(new Error,{type:e,[Fo]:!0},t)}function He(e,t){return e instanceof Error&&Fo in e&&(t==null||!!(e.type&t))}const dr="[^/]+?",jc={sensitive:!1,strict:!1,start:!0,end:!0},Uc=/[.+*?^${}()[\]/\\]/g;function Hc(e,t){const n=z({},jc,t),s=[];let r=n.start?"^":"";const o=[];for(const d of e){const a=d.length?[]:[90];n.strict&&!d.length&&(r+="/");for(let h=0;ht.length?t.length===1&&t[0]===80?1:-1:0}function Dc(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Kc={type:0,value:""},Vc=/[a-zA-Z0-9_]/;function kc(e){if(!e)return[[]];if(e==="/")return[[Kc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${d}": ${v}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let u=0,l,d="",a="";function h(){d&&(n===0?o.push({type:0,value:d}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:d,regexp:a,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function p(){d+=l}for(;u{i(I)}:jt}function i(a){if(Mo(a)){const h=s.get(a);h&&(s.delete(a),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(a);h>-1&&(n.splice(h,1),a.record.name&&s.delete(a.record.name),a.children.forEach(i),a.alias.forEach(i))}}function u(){return n}function l(a){let h=0;for(;h=0&&(a.record.path!==n[h].record.path||!Lo(a,n[h]));)h++;n.splice(h,0,a),a.record.name&&!gr(a)&&s.set(a.record.name,a)}function d(a,h){let p,v={},T,P;if("name"in a&&a.name){if(p=s.get(a.name),!p)throw St(1,{location:a});P=p.record.name,v=z(pr(h.params,p.keys.filter(I=>!I.optional).concat(p.parent?p.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),a.params&&pr(a.params,p.keys.map(I=>I.name))),T=p.stringify(v)}else if(a.path!=null)T=a.path,p=n.find(I=>I.re.test(T)),p&&(v=p.parse(T),P=p.record.name);else{if(p=h.name?s.get(h.name):n.find(I=>I.re.test(h.path)),!p)throw St(1,{location:a,currentLocation:h});P=p.record.name,v=z({},h.params,a.params),T=p.stringify(v)}const F=[];let w=p;for(;w;)F.unshift(w.record),w=w.parent;return{name:P,path:T,params:v,matched:F,meta:Qc(F)}}return e.forEach(a=>o(a)),{addRoute:o,resolve:d,removeRoute:i,getRoutes:u,getRecordMatcher:r}}function pr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function zc(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:qc(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 qc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function gr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Qc(e){return e.reduce((t,n)=>z(t,n.meta),{})}function mr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Lo(e,t){return t.children.some(n=>n===e||Lo(e,n))}function Yc(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Xn(o)):[s&&Xn(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Jc(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ae(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Xc=Symbol(""),yr=Symbol(""),ws=Symbol(""),No=Symbol(""),es=Symbol("");function Tt(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Je(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((u,l)=>{const d=p=>{p===!1?l(St(4,{from:n,to:t})):p instanceof Error?l(p):$c(p)?l(St(2,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),u())},a=o(()=>e.call(s&&s.instances[r],t,n,d));let h=Promise.resolve(a);e.length<3&&(h=h.then(d)),h.catch(p=>l(p))})}function Hn(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const u in i.components){let l=i.components[u];if(!(t!=="beforeRouteEnter"&&!i.instances[u]))if(Zc(l)){const a=(l.__vccOpts||l)[t];a&&o.push(Je(a,n,s,i,u,r))}else{let d=l();o.push(()=>d.then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${u}" at "${i.path}"`));const h=oc(a)?a.default:a;i.components[u]=h;const v=(h.__vccOpts||h)[t];return v&&Je(v,n,s,i,u,r)()}))}}return o}function Zc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vr(e){const t=De(ws),n=De(No),s=Re(()=>t.resolve(Ce(e.to))),r=Re(()=>{const{matched:l}=s.value,{length:d}=l,a=l[d-1],h=n.matched;if(!a||!h.length)return-1;const p=h.findIndex(Rt.bind(null,a));if(p>-1)return p;const v=br(l[d-2]);return d>1&&br(a)===v&&h[h.length-1].path!==v?h.findIndex(Rt.bind(null,l[d-2])):p}),o=Re(()=>r.value>-1&&nu(n.params,s.value.params)),i=Re(()=>r.value>-1&&r.value===n.matched.length-1&&Io(n.params,s.value.params));function u(l={}){return tu(l)?t[Ce(e.replace)?"replace":"push"](Ce(e.to)).catch(jt):Promise.resolve()}return{route:s,href:Re(()=>s.value.href),isActive:o,isExactActive:i,navigate:u}}const eu=oo({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:vr,setup(e,{slots:t}){const n=yn(vr(e)),{options:s}=De(ws),r=Re(()=>({[Er(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Er(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Ro("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),zt=eu;function tu(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 nu(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Ae(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function br(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Er=(e,t,n)=>e??t??n,su=oo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=De(es),r=Re(()=>e.route||s.value),o=De(yr,0),i=Re(()=>{let d=Ce(o);const{matched:a}=r.value;let h;for(;(h=a[d])&&!h.components;)d++;return d}),u=Re(()=>r.value.matched[i.value]);on(yr,Re(()=>i.value+1)),on(Xc,u),on(es,r);const l=Le();return sn(()=>[l.value,u.value,e.name],([d,a,h],[p,v,T])=>{a&&(a.instances[h]=d,v&&v!==a&&d&&d===p&&(a.leaveGuards.size||(a.leaveGuards=v.leaveGuards),a.updateGuards.size||(a.updateGuards=v.updateGuards))),d&&a&&(!v||!Rt(a,v)||!p)&&(a.enterCallbacks[h]||[]).forEach(P=>P(d))},{flush:"post"}),()=>{const d=r.value,a=e.name,h=u.value,p=h&&h.components[a];if(!p)return xr(n.default,{Component:p,route:d});const v=h.props[a],T=v?v===!0?d.params:typeof v=="function"?v(d):v:null,F=Ro(p,z({},T,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(h.instances[a]=null)},ref:l}));return xr(n.default,{Component:F,route:d})||F}}});function xr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const $o=su;function ru(e){const t=Gc(e.routes,e),n=e.parseQuery||Yc,s=e.stringifyQuery||_r,r=e.history,o=Tt(),i=Tt(),u=Tt(),l=vi(ze);let d=ze;gt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=jn.bind(null,_=>""+_),h=jn.bind(null,yc),p=jn.bind(null,Wt);function v(_,A){let S,M;return Mo(_)?(S=t.getRecordMatcher(_),M=A):M=_,t.addRoute(M,S)}function T(_){const A=t.getRecordMatcher(_);A&&t.removeRoute(A)}function P(){return t.getRoutes().map(_=>_.record)}function F(_){return!!t.getRecordMatcher(_)}function w(_,A){if(A=z({},A||l.value),typeof _=="string"){const f=Un(n,_,A.path),g=t.resolve({path:f.path},A),y=r.createHref(f.fullPath);return z(f,g,{params:p(g.params),hash:Wt(f.hash),redirectedFrom:void 0,href:y})}let S;if(_.path!=null)S=z({},_,{path:Un(n,_.path,A.path).path});else{const f=z({},_.params);for(const g in f)f[g]==null&&delete f[g];S=z({},_,{params:h(f)}),A.params=h(A.params)}const M=t.resolve(S,A),G=_.hash||"";M.params=a(p(M.params));const Y=Ec(s,z({},_,{hash:gc(G),path:M.path})),c=r.createHref(Y);return z({fullPath:Y,hash:G,query:s===_r?Jc(_.query):_.query||{}},M,{redirectedFrom:void 0,href:c})}function I(_){return typeof _=="string"?Un(n,_,l.value.path):z({},_)}function $(_,A){if(d!==_)return St(8,{from:A,to:_})}function k(_){return ue(_)}function ee(_){return k(z(I(_),{replace:!0}))}function H(_){const A=_.matched[_.matched.length-1];if(A&&A.redirect){const{redirect:S}=A;let M=typeof S=="function"?S(_):S;return typeof M=="string"&&(M=M.includes("?")||M.includes("#")?M=I(M):{path:M},M.params={}),z({query:_.query,hash:_.hash,params:M.path!=null?{}:_.params},M)}}function ue(_,A){const S=d=w(_),M=l.value,G=_.state,Y=_.force,c=_.replace===!0,f=H(S);if(f)return ue(z(I(f),{state:typeof f=="object"?z({},G,f.state):G,force:Y,replace:c}),A||S);const g=S;g.redirectedFrom=A;let y;return!Y&&xc(s,M,S)&&(y=St(16,{to:g,from:M}),Te(M,M,!0,!1)),(y?Promise.resolve(y):Oe(g,M)).catch(m=>He(m)?He(m,2)?m:ke(m):W(m,g,M)).then(m=>{if(m){if(He(m,2))return ue(z({replace:c},I(m.to),{state:typeof m.to=="object"?z({},G,m.to.state):G,force:Y}),A||g)}else m=nt(g,M,!0,c,G);return Ve(g,M,m),m})}function ve(_,A){const S=$(_,A);return S?Promise.reject(S):Promise.resolve()}function tt(_){const A=ht.values().next().value;return A&&typeof A.runWithContext=="function"?A.runWithContext(_):_()}function Oe(_,A){let S;const[M,G,Y]=ou(_,A);S=Hn(M.reverse(),"beforeRouteLeave",_,A);for(const f of M)f.leaveGuards.forEach(g=>{S.push(Je(g,_,A))});const c=ve.bind(null,_,A);return S.push(c),le(S).then(()=>{S=[];for(const f of o.list())S.push(Je(f,_,A));return S.push(c),le(S)}).then(()=>{S=Hn(G,"beforeRouteUpdate",_,A);for(const f of G)f.updateGuards.forEach(g=>{S.push(Je(g,_,A))});return S.push(c),le(S)}).then(()=>{S=[];for(const f of Y)if(f.beforeEnter)if(Ae(f.beforeEnter))for(const g of f.beforeEnter)S.push(Je(g,_,A));else S.push(Je(f.beforeEnter,_,A));return S.push(c),le(S)}).then(()=>(_.matched.forEach(f=>f.enterCallbacks={}),S=Hn(Y,"beforeRouteEnter",_,A,tt),S.push(c),le(S))).then(()=>{S=[];for(const f of i.list())S.push(Je(f,_,A));return S.push(c),le(S)}).catch(f=>He(f,8)?f:Promise.reject(f))}function Ve(_,A,S){u.list().forEach(M=>tt(()=>M(_,A,S)))}function nt(_,A,S,M,G){const Y=$(_,A);if(Y)return Y;const c=A===ze,f=gt?history.state:{};S&&(M||c?r.replace(_.fullPath,z({scroll:c&&f&&f.scroll},G)):r.push(_.fullPath,G)),l.value=_,Te(_,A,S,c),ke()}let Ie;function At(){Ie||(Ie=r.listen((_,A,S)=>{if(!Qt.listening)return;const M=w(_),G=H(M);if(G){ue(z(G,{replace:!0}),M).catch(jt);return}d=M;const Y=l.value;gt&&Ic(ur(Y.fullPath,S.delta),Cn()),Oe(M,Y).catch(c=>He(c,12)?c:He(c,2)?(ue(c.to,M).then(f=>{He(f,20)&&!S.delta&&S.type===Gt.pop&&r.go(-1,!1)}).catch(jt),Promise.reject()):(S.delta&&r.go(-S.delta,!1),W(c,M,Y))).then(c=>{c=c||nt(M,Y,!1),c&&(S.delta&&!He(c,8)?r.go(-S.delta,!1):S.type===Gt.pop&&He(c,20)&&r.go(-1,!1)),Ve(M,Y,c)}).catch(jt)}))}let at=Tt(),se=Tt(),q;function W(_,A,S){ke(_);const M=se.list();return M.length?M.forEach(G=>G(_,A,S)):console.error(_),Promise.reject(_)}function Ue(){return q&&l.value!==ze?Promise.resolve():new Promise((_,A)=>{at.add([_,A])})}function ke(_){return q||(q=!_,At(),at.list().forEach(([A,S])=>_?S(_):A()),at.reset()),_}function Te(_,A,S,M){const{scrollBehavior:G}=e;if(!gt||!G)return Promise.resolve();const Y=!S&&Tc(ur(_.fullPath,0))||(M||!S)&&history.state&&history.state.scroll||null;return Jr().then(()=>G(_,A,Y)).then(c=>c&&Oc(c)).catch(c=>W(c,_,A))}const de=_=>r.go(_);let dt;const ht=new Set,Qt={currentRoute:l,listening:!0,addRoute:v,removeRoute:T,hasRoute:F,getRoutes:P,resolve:w,options:e,push:k,replace:ee,go:de,back:()=>de(-1),forward:()=>de(1),beforeEach:o.add,beforeResolve:i.add,afterEach:u.add,onError:se.add,isReady:Ue,install(_){const A=this;_.component("RouterLink",zt),_.component("RouterView",$o),_.config.globalProperties.$router=A,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>Ce(l)}),gt&&!dt&&l.value===ze&&(dt=!0,k(r.location).catch(G=>{}));const S={};for(const G in ze)Object.defineProperty(S,G,{get:()=>l.value[G],enumerable:!0});_.provide(ws,A),_.provide(No,Vr(S)),_.provide(es,l);const M=_.unmount;ht.add(_),_.unmount=function(){ht.delete(_),ht.size<1&&(d=ze,Ie&&Ie(),Ie=null,l.value=ze,dt=!1,q=!1),M()}}};function le(_){return _.reduce((A,S)=>A.then(()=>tt(S)),Promise.resolve())}return Qt}function ou(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iRt(d,u))?s.push(u):n.push(u));const l=e.matched[i];l&&(t.matched.find(d=>Rt(d,l))||r.push(l))}return[n,s,r]}const Rs=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},iu={class:"sidemenu"},lu={class:"nav"},cu={__name:"Sidemenu",setup(e){return(t,n)=>(ye(),we("div",iu,[te("div",lu,[oe(Ce(zt),{class:"nav-button",to:"/generateCep"},{default:Kt(()=>[kt("Gerador de CEPs")]),_:1}),oe(Ce(zt),{class:"nav-button",to:""},{default:Kt(()=>[kt("Meus Arquivos")]),_:1})])]))}},uu=Rs(cu,[["__scopeId","data-v-0d239fd9"]]),fu=e=>(no("data-v-1277a889"),e=e(),so(),e),au=fu(()=>te("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0"},null,-1)),du={class:"main"},hu={__name:"App",setup(e){const t=Le(!0),n=()=>{t.value=!t.value,console.log("click")};return(s,r)=>(ye(),we(pe,null,[au,te("div",du,[oe(Ce($o))]),te("nav",null,[oe(Ce(zt),{class:"nav-button",to:"/generateCep"},{default:Kt(()=>[kt("Gerador de CEPs")]),_:1}),oe(Ce(zt),{class:"nav-button",to:""},{default:Kt(()=>[kt("Meus Arquivos")]),_:1})]),t.value==!0?(ye(),bo(uu,{key:0})):yl("",!0),te("div",{class:"toggle-menu",onClick:n},"=")],64))}},pu=Rs(hu,[["__scopeId","data-v-1277a889"]]),gu="data:text/csv;base64,SURzdGF0ZXMsZXN0YWRvLHVmCjEsQWNyZSxBQwoyLEFsYWdvYXMsQUwKMyxBbWF6b25hcyxBTQo0LEFtYXDDoSxBUAo1LEJhaGlhLEJBCjYsQ2VhcmEsQ0UKNyxEaXN0cml0byBGZWRlcmFsLERGCjgsRXNwaXJpdG8gU2FudG8sRVMKOSxHb2nDoXMsR08KMTAsTWFyYW5ow6NvLE1BCjExLE1pbmFzIEdlcmFpcyxNRwoxMixNYXRvIEdyb3NzbyBkbyBTdWwsTVMKMTMsTWF0byBHcm9zc28sTVQKMTQsUGFyw6EsUEEKMTUsUGFyYcOtYmEsUEIKMTYsUGVybmFtYnVjbyxQRQoxNyxQaWF1w60sUEkKMTgsUGFyYW7DoSxQUgoxOSxSaW8gZGUgSmFuZWlybyxSSgoyMCxSaW8gR3JhbmRlIGRvIE5vcnRlLFJOCjIxLFJvbmTDtG5pYSxSTwoyMixSb3JhaW1hLFJSCjIzLFJpbyBHcmFuZGUgZG8gU3VsLFJTCjI0LFNhbnRhIENhdGFyaW5hLFNDCjI1LFNlcmdpcGUsU0UKMjYsU8OjbyBQYXVsbyxTUAoyNyxUb2NhbnRpbnMsVE8K",mu="/ceplocate/assets/cities-JaQBhjwm.csv",_u="/ceplocate/assets/sp_ceps-DnIRAFP4.csv",jo=e=>(no("data-v-80b8bea0"),e=e(),so(),e),yu={class:"wrap-select"},vu={class:"wrap-select-option"},bu=jo(()=>te("option",{value:"default"},"Selecione",-1)),Eu=["value"],xu=jo(()=>te("option",{value:"default"},"Selecione",-1)),wu=["value"],Ru={class:"cards"},Su={class:"city-info"},Cu={class:"cep"},Pu={key:0,class:"logradouro"},Au={key:1,class:"logradouro",style:{opacity:"0.5"}},Ou={class:"card-buttons"},Iu=["onClick"],Tu={__name:"CepGenerator",setup(e){const t=Le([]),n=Le([]),s=Le([]),r=Le([]),o=Le([]),i=Le(""),u=Le("");let l=20;const d=async()=>{const P=new Worker(new URL("/ceplocate/assets/fileloader-UOokMDXS.js",import.meta.url));P.onmessage=function(F){const[w,I,$]=F.data;t.value=w,n.value=I,s.value=$},P.postMessage([gu,mu,_u])},a=P=>{const F=P.target.value;r.value=n.value.filter(I=>I.IDstates===F);const w=t.value.find(I=>I.IDstates===F);i.value=w?w.uf:""},h=P=>{var w;const F=P.target.value;o.value=s.value.filter(I=>I.IDcities===F).slice(0,l),u.value=((w=n.value.find(I=>I.IDcities===F))==null?void 0:w.cidade)||""};ji(()=>{i.value="",u.value=""}),d();const p=P=>typeof P=="string"&&P.length===8?P.slice(0,5)+"-"+P.slice(5):P,v=P=>{window.open(`https://www.google.com/maps/search/?api=1&query=${P}`,"_blank")},T=P=>{const F=P.querySelector(".logradouro").innerText,w=document.createElement("textarea");w.value=F,document.body.appendChild(w),w.select(),document.execCommand("copy"),document.body.removeChild(w)};return(P,F)=>(ye(),we(pe,null,[te("div",yu,[te("div",vu,[te("select",{name:"estado",onChange:a},[bu,(ye(!0),we(pe,null,Tn(t.value,(w,I)=>(ye(),we("option",{key:I,value:w.IDstates},We(w.estado),9,Eu))),128))],32),te("select",{name:"cidade",onChange:h},[xu,(ye(!0),we(pe,null,Tn(r.value,(w,I)=>(ye(),we("option",{key:I,value:w.IDcities},We(w.cidade),9,wu))),128))],32)])]),te("div",Ru,[(ye(!0),we(pe,null,Tn(o.value,(w,I)=>(ye(),we("div",{class:"card",key:I},[te("div",Su,We(u.value)+", "+We(i.value),1),te("div",Cu,We(p(w.cep)),1),w.logradouro1||w.logradouro2?(ye(),we("div",Pu,We(w.logradouro1)+" "+We(w.logradouro2)+" - "+We(w.bairro),1)):(ye(),we("div",Au," Endereço não encontrado ")),te("div",Ou,[te("span",{id:"gotToMapsButton",class:"material-symbols-rounded",onClick:$=>v(w.cep)},"location_on",8,Iu),te("span",{id:"copyClipboardButton",class:"material-symbols-rounded",onClick:F[0]||(F[0]=$=>T($.target.parentElement.parentElement))},"content_copy")])]))),128))])],64))}},Mu=Rs(Tu,[["__scopeId","data-v-80b8bea0"]]),Fu=ru({history:Nc("/ceplocate/"),routes:[{path:"/generateCep",name:"generateCep",component:Mu}]}),Ss=Zl(pu);Ss.use(rc());Ss.use(Fu);Ss.mount("#app"); diff --git a/index.html b/index.html index a8c589e..45c62c5 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ Vite App - - + +