diff --git a/assets/index-DQz_OLPQ.css b/assets/index-Bf3nYPLc.css similarity index 69% rename from assets/index-DQz_OLPQ.css rename to assets/index-Bf3nYPLc.css index 1477407..03617e0 100644 --- a/assets/index-DQz_OLPQ.css +++ b/assets/index-Bf3nYPLc.css @@ -1 +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}nav[data-v-293795a1]{width:100%;height:fit-content;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:1vw;padding:5vw 5vw 1vw}.button-wrap[data-v-293795a1]{width:100%;height:fit-content;display:flex}.nav-button[data-v-293795a1]{height:45px;width:49%;display:flex;align-items:center;justify-content:center;color:#b1b1b1;background-color:#505050;font-weight:600;box-sizing:border-box;border:2px solid transparent}.nav-button[data-v-293795a1]:first-child{border-radius:1vw 0 0 1vw}.nav-button[data-v-293795a1]:last-child{border-radius:0 1vw 1vw 0}.nav-button[data-v-293795a1]:hover{background-color:#5a5a5a;border:2px solid rgb(100,100,100);color:#fff}.credits span[data-v-293795a1]:first-child{font-weight:600}.main[data-v-293795a1]{display:flex;align-items:center;justify-content:stretch;flex-direction:column;min-height:90vh;width:100vw}@media screen and (max-width: 700px){.main[data-v-293795a1]{min-height:90vh;max-height:90vh}.credits[data-v-293795a1]{display:flex;height:auto;align-items:center;justify-content:center;margin-top:10px}}.cards[data-v-cdcb6267]{width:100%;box-sizing:border-box;padding:0 5vw;display:flex;align-items:start;justify-content:start;flex-wrap:wrap;gap:5px;overflow-y:auto}.card[data-v-cdcb6267]{width:16%;height:25%;border-radius:1vw;background-color:#505050;display:flex;flex-direction:column;padding:15px;box-sizing:border-box;overflow:hidden}.city-info[data-v-cdcb6267]{height:30px;font-weight:600;color:orange}.cep[data-v-cdcb6267]{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-cdcb6267]{height:45px;height:fit-content;width:100%;padding:5px 5px 5px 0;box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.card-buttons[data-v-cdcb6267]{width:100%;display:flex;align-items:center;justify-content:end;gap:10px}#gotToMapsButton[data-v-cdcb6267],#copyClipboardButton[data-v-cdcb6267]{cursor:pointer;opacity:.7}#gotToMapsButton[data-v-cdcb6267]:hover,#copyClipboardButton[data-v-cdcb6267]:hover{opacity:1}@media screen and (max-width: 700px){nav[data-v-cdcb6267]{display:none}.cards[data-v-cdcb6267]{display:flex;align-items:start;justify-content:center}.card[data-v-cdcb6267]{min-width:49%;max-width:49%}.wrap-title[data-v-cdcb6267]{font-weight:700;font-size:large}.wrap-select[data-v-cdcb6267]{width:100%;height:fit-content;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 5vw 5vw;border-radius:1vw}.wrap-select-option[data-v-cdcb6267]{width:100%;height:fit-content;display:flex}.wrap-select-option select[data-v-cdcb6267]{height:45px;width:49%;color:#b1b1b1;background-color:#505050;text-align:start;font-weight:600;text-indent:5vw;position:relative;border:none;outline:none;border:2px solid transparent}.wrap-select-option select option[data-v-cdcb6267]{background-color:#505050;color:#b1b1b1;font-weight:600}.wrap-select-option select[data-v-cdcb6267]:hover{background-color:#5a5a5a;border:2px solid rgb(100,100,100);color:#fff;cursor:pointer}.wrap-select-option select[data-v-cdcb6267]:first-child{border-radius:1vw 0 0 1vw}.wrap-select-option select[data-v-cdcb6267]:last-child{border-radius:0 1vw 1vw 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}nav[data-v-293795a1]{width:100%;height:fit-content;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:1vw;padding:5vw 5vw 1vw}.button-wrap[data-v-293795a1]{width:100%;height:fit-content;display:flex}.nav-button[data-v-293795a1]{height:45px;width:49%;display:flex;align-items:center;justify-content:center;color:#b1b1b1;background-color:#505050;font-weight:600;box-sizing:border-box;border:2px solid transparent}.nav-button[data-v-293795a1]:first-child{border-radius:1vw 0 0 1vw}.nav-button[data-v-293795a1]:last-child{border-radius:0 1vw 1vw 0}.nav-button[data-v-293795a1]:hover{background-color:#5a5a5a;border:2px solid rgb(100,100,100);color:#fff}.credits span[data-v-293795a1]:first-child{font-weight:600}.main[data-v-293795a1]{display:flex;align-items:center;justify-content:stretch;flex-direction:column;min-height:90vh;width:100vw}@media screen and (max-width: 700px){.main[data-v-293795a1]{min-height:90vh;max-height:90vh}.credits[data-v-293795a1]{display:flex;height:auto;align-items:center;justify-content:center;margin-top:10px}}.cards[data-v-fd8f1975]{width:100%;box-sizing:border-box;padding:0 5vw;display:flex;align-items:start;justify-content:start;flex-wrap:wrap;gap:5px;overflow-y:auto}.card[data-v-fd8f1975]{width:16%;height:25%;border-radius:1vw;background-color:#505050;display:flex;flex-direction:column;padding:15px;box-sizing:border-box;overflow:hidden}.city-info[data-v-fd8f1975]{height:30px;font-weight:600;color:orange}.cep[data-v-fd8f1975]{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-fd8f1975]{height:45px;height:fit-content;width:100%;padding:5px 5px 5px 0;box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.card-buttons[data-v-fd8f1975]{width:100%;display:flex;align-items:center;justify-content:end;gap:10px}#gotToMapsButton[data-v-fd8f1975],#copyClipboardButton[data-v-fd8f1975]{cursor:pointer;opacity:.7}#gotToMapsButton[data-v-fd8f1975]:hover,#copyClipboardButton[data-v-fd8f1975]:hover{opacity:1}@media screen and (max-width: 700px){nav[data-v-fd8f1975]{display:none}.cards[data-v-fd8f1975]{display:flex;align-items:start;justify-content:center}.card[data-v-fd8f1975]{min-width:49%;max-width:49%}.wrap-title[data-v-fd8f1975]{font-weight:700;font-size:large}.wrap-select[data-v-fd8f1975]{width:100%;height:fit-content;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 5vw 5vw;border-radius:1vw}.wrap-select-option[data-v-fd8f1975]{width:100%;height:fit-content;display:flex}.wrap-select-option select[data-v-fd8f1975]{height:45px;width:49%;color:#b1b1b1;background-color:#505050;text-align:start;font-weight:600;text-indent:5vw;position:relative;border:none;outline:none;border:2px solid transparent}.wrap-select-option select option[data-v-fd8f1975]{background-color:#505050;color:#b1b1b1;font-weight:600}.wrap-select-option select[data-v-fd8f1975]:hover{background-color:#5a5a5a;border:2px solid rgb(100,100,100);color:#fff;cursor:pointer}.wrap-select-option select[data-v-fd8f1975]:first-child{border-radius:1vw 0 0 1vw}.wrap-select-option select[data-v-fd8f1975]:last-child{border-radius:0 1vw 1vw 0}} diff --git a/assets/index-Bwo7GwE-.js b/assets/index-C5HbYYgV.js similarity index 99% rename from assets/index-Bwo7GwE-.js rename to assets/index-C5HbYYgV.js index 18f71c9..217fcb3 100644 --- a/assets/index-Bwo7GwE-.js +++ b/assets/index-C5HbYYgV.js @@ -22,4 +22,4 @@ * vue-router v4.3.0 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const gt=typeof document<"u";function ic(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]=Pe(r)?r.map(e):e(r)}return n}const Ut=()=>{},Pe=Array.isArray,So=/#/g,lc=/&/g,cc=/\//g,uc=/=/g,fc=/\?/g,Co=/\+/g,ac=/%5B/g,dc=/%5D/g,Po=/%5E/g,hc=/%60/g,Ao=/%7B/g,pc=/%7C/g,Oo=/%7D/g,gc=/%20/g;function ws(e){return encodeURI(""+e).replace(pc,"|").replace(ac,"[").replace(dc,"]")}function mc(e){return ws(e).replace(Ao,"{").replace(Oo,"}").replace(Po,"^")}function Zn(e){return ws(e).replace(Co,"%2B").replace(gc,"+").replace(So,"%23").replace(lc,"%26").replace(hc,"`").replace(Ao,"{").replace(Oo,"}").replace(Po,"^")}function _c(e){return Zn(e).replace(uc,"%3D")}function yc(e){return ws(e).replace(So,"%23").replace(fc,"%3F")}function vc(e){return e==null?"":yc(e).replace(cc,"%2F")}function Vt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const bc=/\/$/,Ec=e=>e.replace(bc,"");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=Sc(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:Vt(i)}}function xc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function cr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function wc(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(!Rc(e[n],t[n]))return!1;return!0}function Rc(e,t){return Pe(e)?ur(e,t):Pe(t)?ur(t,e):e===t}function ur(e,t){return Pe(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Sc(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 Wt;(function(e){e.pop="pop",e.push="push"})(Wt||(Wt={}));var Ht;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ht||(Ht={}));function Cc(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),Ec(e)}const Pc=/^[^#]+#/;function Ac(e,t){return e.replace(Pc,"#")+t}function Oc(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 Ic(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=Oc(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 fr(e,t){return(history.state?history.state.position-t:-1)+e}const es=new Map;function Tc(e,t){es.set(e,t)}function Mc(e){const t=es.get(e);return es.delete(e),t}let Fc=()=>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),cr(l,"")}return cr(n,e)+s+r}function Lc(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:Wt.pop,direction:F?F>0?Ht.forward:Ht.back:Ht.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 ar(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 Nc(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:Fc()+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,ar(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({},ar(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 $c(e){e=Cc(e);const t=Nc(e),n=Lc(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:Ac.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 jc(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 dr;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(dr||(dr={}));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 hr="[^/]+?",Uc={sensitive:!1,strict:!1,start:!0,end:!0},Hc=/[.+*?^${}()[\]/\\]/g;function Bc(e,t){const n=z({},Uc,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 Kc(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 Wc(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)}:Ut}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&&!mr(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(gr(h.params,p.keys.filter(I=>!I.optional).concat(p.parent?p.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),a.params&&gr(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:Yc(F)}}return e.forEach(a=>o(a)),{addRoute:o,resolve:d,removeRoute:i,getRoutes:u,getRecordMatcher:r}}function gr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function qc(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 mr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Yc(e){return e.reduce((t,n)=>z(t,n.meta),{})}function _r(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 Jc(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Zn(o)):[s&&Zn(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Xc(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Pe(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Zc=Symbol(""),vr=Symbol(""),Rs=Symbol(""),No=Symbol(""),ts=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):jc(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(eu(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=ic(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 eu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function br(e){const t=De(Rs),n=De(No),s=Re(()=>t.resolve($e(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=Er(l[d-2]);return d>1&&Er(a)===v&&h[h.length-1].path!==v?h.findIndex(Rt.bind(null,l[d-2])):p}),o=Re(()=>r.value>-1&&su(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 nu(l)?t[$e(e.replace)?"replace":"push"]($e(e.to)).catch(Ut):Promise.resolve()}return{route:s,href:Re(()=>s.value.href),isActive:o,isExactActive:i,navigate:u}}const tu=io({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:br,setup(e,{slots:t}){const n=yn(br(e)),{options:s}=De(Rs),r=Re(()=>({[xr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[xr(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)}}}),cn=tu;function nu(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 su(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(!Pe(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function Er(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const xr=(e,t,n)=>e??t??n,ru=io({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=De(ts),r=Re(()=>e.route||s.value),o=De(vr,0),i=Re(()=>{let d=$e(o);const{matched:a}=r.value;let h;for(;(h=a[d])&&!h.components;)d++;return d}),u=Re(()=>r.value.matched[i.value]);rn(vr,Re(()=>i.value+1)),rn(Zc,u),rn(ts,r);const l=Fe();return nn(()=>[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 wr(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 wr(n.default,{Component:F,route:d})||F}}});function wr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const $o=ru;function ou(e){const t=zc(e.routes,e),n=e.parseQuery||Jc,s=e.stringifyQuery||yr,r=e.history,o=Tt(),i=Tt(),u=Tt(),l=Ei(ze);let d=ze;gt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=jn.bind(null,_=>""+_),h=jn.bind(null,vc),p=jn.bind(null,Vt);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:Vt(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=xc(s,z({},_,{hash:mc(G),path:M.path})),c=r.createHref(Y);return z({fullPath:Y,hash:G,query:s===yr?Xc(_.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 V(_){return ce(_)}function te(_){return V(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 ce(_,A){const S=d=w(_),M=l.value,G=_.state,Y=_.force,c=_.replace===!0,f=H(S);if(f)return ce(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&&wc(s,M,S)&&(y=St(16,{to:g,from:M}),Ie(M,M,!0,!1)),(y?Promise.resolve(y):Ae(g,M)).catch(m=>He(m)?He(m,2)?m:Ve(m):W(m,g,M)).then(m=>{if(m){if(He(m,2))return ce(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 ke(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 Ae(_,A){let S;const[M,G,Y]=iu(_,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),ie(S).then(()=>{S=[];for(const f of o.list())S.push(Je(f,_,A));return S.push(c),ie(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),ie(S)}).then(()=>{S=[];for(const f of Y)if(f.beforeEnter)if(Pe(f.beforeEnter))for(const g of f.beforeEnter)S.push(Je(g,_,A));else S.push(Je(f.beforeEnter,_,A));return S.push(c),ie(S)}).then(()=>(_.matched.forEach(f=>f.enterCallbacks={}),S=Hn(Y,"beforeRouteEnter",_,A,tt),S.push(c),ie(S))).then(()=>{S=[];for(const f of i.list())S.push(Je(f,_,A));return S.push(c),ie(S)}).catch(f=>He(f,8)?f:Promise.reject(f))}function ke(_,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=_,Ie(_,A,S,c),Ve()}let Oe;function At(){Oe||(Oe=r.listen((_,A,S)=>{if(!zt.listening)return;const M=w(_),G=H(M);if(G){ce(z(G,{replace:!0}),M).catch(Ut);return}d=M;const Y=l.value;gt&&Tc(fr(Y.fullPath,S.delta),Cn()),Ae(M,Y).catch(c=>He(c,12)?c:He(c,2)?(ce(c.to,M).then(f=>{He(f,20)&&!S.delta&&S.type===Wt.pop&&r.go(-1,!1)}).catch(Ut),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===Wt.pop&&He(c,20)&&r.go(-1,!1)),ke(M,Y,c)}).catch(Ut)}))}let at=Tt(),se=Tt(),q;function W(_,A,S){Ve(_);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 Ve(_){return q||(q=!_,At(),at.list().forEach(([A,S])=>_?S(_):A()),at.reset()),_}function Ie(_,A,S,M){const{scrollBehavior:G}=e;if(!gt||!G)return Promise.resolve();const Y=!S&&Mc(fr(_.fullPath,0))||(M||!S)&&history.state&&history.state.scroll||null;return Xr().then(()=>G(_,A,Y)).then(c=>c&&Ic(c)).catch(c=>W(c,_,A))}const de=_=>r.go(_);let dt;const ht=new Set,zt={currentRoute:l,listening:!0,addRoute:v,removeRoute:T,hasRoute:F,getRoutes:P,resolve:w,options:e,push:V,replace:te,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",cn),_.component("RouterView",$o),_.config.globalProperties.$router=A,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>$e(l)}),gt&&!dt&&l.value===ze&&(dt=!0,V(r.location).catch(G=>{}));const S={};for(const G in ze)Object.defineProperty(S,G,{get:()=>l.value[G],enumerable:!0});_.provide(Rs,A),_.provide(No,Vr(S)),_.provide(ts,l);const M=_.unmount;ht.add(_),_.unmount=function(){ht.delete(_),ht.size<1&&(d=ze,Oe&&Oe(),Oe=null,l.value=ze,dt=!1,q=!1),M()}}};function ie(_){return _.reduce((A,S)=>A.then(()=>tt(S)),Promise.resolve())}return zt}function iu(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 jo=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Uo=e=>(so("data-v-293795a1"),e=e(),ro(),e),lu=Uo(()=>ee("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0"},null,-1)),cu={class:"main"},uu={class:"button-wrap"},fu=Uo(()=>ee("div",{class:"credits"},[ee("span",null,"Developed By"),jt(" "),ee("span",null,"Elder")],-1)),au={__name:"App",setup(e){const t=Fe(!0),n=()=>{t.value=!t.value};return(s,r)=>(pe(),xe(ge,null,[lu,ee("div",cu,[ee("nav",null,[ee("div",uu,[t.value==!1?(pe(),Yn($e(cn),{key:0,onClick:n,class:"nav-button",to:"/"},{default:tn(()=>[jt("Início")]),_:1})):qs("",!0),t.value==!0?(pe(),Yn($e(cn),{key:1,onClick:n,class:"nav-button",to:"/generateCep"},{default:tn(()=>[jt("Gerador de CEPs")]),_:1})):qs("",!0),ae($e(cn),{class:"nav-button",to:""},{default:tn(()=>[jt("Meus Arquivos")]),_:1})])]),ae($e($o))]),fu],64))}},du=jo(au,[["__scopeId","data-v-293795a1"]]),hu="data:text/csv;base64,SURzdGF0ZXMsZXN0YWRvLHVmCjEsQWNyZSxBQwoyLEFsYWdvYXMsQUwKMyxBbWF6b25hcyxBTQo0LEFtYXDDoSxBUAo1LEJhaGlhLEJBCjYsQ2VhcmEsQ0UKNyxEaXN0cml0byBGZWRlcmFsLERGCjgsRXNwaXJpdG8gU2FudG8sRVMKOSxHb2nDoXMsR08KMTAsTWFyYW5ow6NvLE1BCjExLE1pbmFzIEdlcmFpcyxNRwoxMixNYXRvIEdyb3NzbyBkbyBTdWwsTVMKMTMsTWF0byBHcm9zc28sTVQKMTQsUGFyw6EsUEEKMTUsUGFyYcOtYmEsUEIKMTYsUGVybmFtYnVjbyxQRQoxNyxQaWF1w60sUEkKMTgsUGFyYW7DoSxQUgoxOSxSaW8gZGUgSmFuZWlybyxSSgoyMCxSaW8gR3JhbmRlIGRvIE5vcnRlLFJOCjIxLFJvbmTDtG5pYSxSTwoyMixSb3JhaW1hLFJSCjIzLFJpbyBHcmFuZGUgZG8gU3VsLFJTCjI0LFNhbnRhIENhdGFyaW5hLFNDCjI1LFNlcmdpcGUsU0UKMjYsU8OjbyBQYXVsbyxTUAoyNyxUb2NhbnRpbnMsVE8K",pu="/ceplocate/assets/cities-JaQBhjwm.csv",gu="/ceplocate/assets/sp_ceps-DnIRAFP4.csv",Ho=e=>(so("data-v-cdcb6267"),e=e(),ro(),e),mu={class:"wrap-select"},_u={class:"wrap-select-option"},yu=Ho(()=>ee("option",{value:"default",disabled:"",selected:""},"Selecione",-1)),vu=["value"],bu=Ho(()=>ee("option",{value:"default",disabled:"",selected:""},"Selecione",-1)),Eu=["value"],xu={class:"cards"},wu={class:"city-info"},Ru={class:"cep"},Su={key:0,class:"logradouro"},Cu={key:1,class:"logradouro",style:{opacity:"0.5"}},Pu={class:"card-buttons"},Au=["onClick"],Ou={key:1,class:""},Iu={__name:"CepGenerator",setup(e){const t=Fe([]),n=Fe([]),s=Fe([]),r=Fe([]),o=Fe([]),i=Fe(""),u=Fe("");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([hu,pu,gu])},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)||""};Hi(()=>{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)=>(pe(),xe(ge,null,[ee("div",mu,[ee("div",_u,[ee("select",{name:"estado",onChange:a},[yu,(pe(!0),xe(ge,null,Tn(t.value,(w,I)=>(pe(),xe("option",{key:I,value:w.IDstates},We(w.estado),9,vu))),128))],32),ee("select",{name:"cidade",onChange:h},[bu,(pe(!0),xe(ge,null,Tn(r.value,(w,I)=>(pe(),xe("option",{key:I,value:w.IDcities},We(w.cidade),9,Eu))),128))],32)])]),ee("div",xu,[o.value.length>0?(pe(!0),xe(ge,{key:0},Tn(o.value,(w,I)=>(pe(),xe("div",{class:"card",key:I},[ee("div",wu,We(u.value)+", "+We(i.value),1),ee("div",Ru,We(p(w.cep)),1),w.logradouro1||w.logradouro2?(pe(),xe("div",Su,We(w.logradouro1)+" "+We(w.logradouro2)+" - "+We(w.bairro),1)):(pe(),xe("div",Cu," Endereço não encontrado ")),ee("div",Pu,[ee("span",{id:"gotToMapsButton",class:"material-symbols-rounded",onClick:$=>v(w.cep)},"location_on",8,Au),ee("span",{id:"copyClipboardButton",class:"material-symbols-rounded",onClick:F[0]||(F[0]=$=>T($.target.parentElement.parentElement))},"content_copy")])]))),128)):(pe(),xe("div",Ou,"Nenhum CEP encontrado"))])],64))}},Tu=jo(Iu,[["__scopeId","data-v-cdcb6267"]]),Mu=ou({history:$c("/ceplocate/"),routes:[{path:"/generateCep",name:"generateCep",component:Tu}]}),Ss=ec(du);Ss.use(oc());Ss.use(Mu);Ss.mount("#app"); + */const gt=typeof document<"u";function ic(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]=Pe(r)?r.map(e):e(r)}return n}const Ut=()=>{},Pe=Array.isArray,So=/#/g,lc=/&/g,cc=/\//g,uc=/=/g,fc=/\?/g,Co=/\+/g,ac=/%5B/g,dc=/%5D/g,Po=/%5E/g,hc=/%60/g,Ao=/%7B/g,pc=/%7C/g,Oo=/%7D/g,gc=/%20/g;function ws(e){return encodeURI(""+e).replace(pc,"|").replace(ac,"[").replace(dc,"]")}function mc(e){return ws(e).replace(Ao,"{").replace(Oo,"}").replace(Po,"^")}function Zn(e){return ws(e).replace(Co,"%2B").replace(gc,"+").replace(So,"%23").replace(lc,"%26").replace(hc,"`").replace(Ao,"{").replace(Oo,"}").replace(Po,"^")}function _c(e){return Zn(e).replace(uc,"%3D")}function yc(e){return ws(e).replace(So,"%23").replace(fc,"%3F")}function vc(e){return e==null?"":yc(e).replace(cc,"%2F")}function Vt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const bc=/\/$/,Ec=e=>e.replace(bc,"");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=Sc(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:Vt(i)}}function xc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function cr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function wc(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(!Rc(e[n],t[n]))return!1;return!0}function Rc(e,t){return Pe(e)?ur(e,t):Pe(t)?ur(t,e):e===t}function ur(e,t){return Pe(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Sc(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 Wt;(function(e){e.pop="pop",e.push="push"})(Wt||(Wt={}));var Ht;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ht||(Ht={}));function Cc(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),Ec(e)}const Pc=/^[^#]+#/;function Ac(e,t){return e.replace(Pc,"#")+t}function Oc(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 Ic(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=Oc(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 fr(e,t){return(history.state?history.state.position-t:-1)+e}const es=new Map;function Tc(e,t){es.set(e,t)}function Mc(e){const t=es.get(e);return es.delete(e),t}let Fc=()=>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),cr(l,"")}return cr(n,e)+s+r}function Lc(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:Wt.pop,direction:F?F>0?Ht.forward:Ht.back:Ht.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 ar(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 Nc(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:Fc()+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,ar(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({},ar(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 $c(e){e=Cc(e);const t=Nc(e),n=Lc(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:Ac.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 jc(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 dr;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(dr||(dr={}));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 hr="[^/]+?",Uc={sensitive:!1,strict:!1,start:!0,end:!0},Hc=/[.+*?^${}()[\]/\\]/g;function Bc(e,t){const n=z({},Uc,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 Kc(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 Wc(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)}:Ut}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&&!mr(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(gr(h.params,p.keys.filter(I=>!I.optional).concat(p.parent?p.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),a.params&&gr(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:Yc(F)}}return e.forEach(a=>o(a)),{addRoute:o,resolve:d,removeRoute:i,getRoutes:u,getRecordMatcher:r}}function gr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function qc(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 mr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Yc(e){return e.reduce((t,n)=>z(t,n.meta),{})}function _r(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 Jc(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Zn(o)):[s&&Zn(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Xc(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Pe(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Zc=Symbol(""),vr=Symbol(""),Rs=Symbol(""),No=Symbol(""),ts=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):jc(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(eu(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=ic(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 eu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function br(e){const t=De(Rs),n=De(No),s=Re(()=>t.resolve($e(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=Er(l[d-2]);return d>1&&Er(a)===v&&h[h.length-1].path!==v?h.findIndex(Rt.bind(null,l[d-2])):p}),o=Re(()=>r.value>-1&&su(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 nu(l)?t[$e(e.replace)?"replace":"push"]($e(e.to)).catch(Ut):Promise.resolve()}return{route:s,href:Re(()=>s.value.href),isActive:o,isExactActive:i,navigate:u}}const tu=io({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:br,setup(e,{slots:t}){const n=yn(br(e)),{options:s}=De(Rs),r=Re(()=>({[xr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[xr(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)}}}),cn=tu;function nu(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 su(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(!Pe(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function Er(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const xr=(e,t,n)=>e??t??n,ru=io({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=De(ts),r=Re(()=>e.route||s.value),o=De(vr,0),i=Re(()=>{let d=$e(o);const{matched:a}=r.value;let h;for(;(h=a[d])&&!h.components;)d++;return d}),u=Re(()=>r.value.matched[i.value]);rn(vr,Re(()=>i.value+1)),rn(Zc,u),rn(ts,r);const l=Fe();return nn(()=>[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 wr(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 wr(n.default,{Component:F,route:d})||F}}});function wr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const $o=ru;function ou(e){const t=zc(e.routes,e),n=e.parseQuery||Jc,s=e.stringifyQuery||yr,r=e.history,o=Tt(),i=Tt(),u=Tt(),l=Ei(ze);let d=ze;gt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=jn.bind(null,_=>""+_),h=jn.bind(null,vc),p=jn.bind(null,Vt);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:Vt(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=xc(s,z({},_,{hash:mc(G),path:M.path})),c=r.createHref(Y);return z({fullPath:Y,hash:G,query:s===yr?Xc(_.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 V(_){return ce(_)}function te(_){return V(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 ce(_,A){const S=d=w(_),M=l.value,G=_.state,Y=_.force,c=_.replace===!0,f=H(S);if(f)return ce(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&&wc(s,M,S)&&(y=St(16,{to:g,from:M}),Ie(M,M,!0,!1)),(y?Promise.resolve(y):Ae(g,M)).catch(m=>He(m)?He(m,2)?m:Ve(m):W(m,g,M)).then(m=>{if(m){if(He(m,2))return ce(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 ke(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 Ae(_,A){let S;const[M,G,Y]=iu(_,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),ie(S).then(()=>{S=[];for(const f of o.list())S.push(Je(f,_,A));return S.push(c),ie(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),ie(S)}).then(()=>{S=[];for(const f of Y)if(f.beforeEnter)if(Pe(f.beforeEnter))for(const g of f.beforeEnter)S.push(Je(g,_,A));else S.push(Je(f.beforeEnter,_,A));return S.push(c),ie(S)}).then(()=>(_.matched.forEach(f=>f.enterCallbacks={}),S=Hn(Y,"beforeRouteEnter",_,A,tt),S.push(c),ie(S))).then(()=>{S=[];for(const f of i.list())S.push(Je(f,_,A));return S.push(c),ie(S)}).catch(f=>He(f,8)?f:Promise.reject(f))}function ke(_,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=_,Ie(_,A,S,c),Ve()}let Oe;function At(){Oe||(Oe=r.listen((_,A,S)=>{if(!zt.listening)return;const M=w(_),G=H(M);if(G){ce(z(G,{replace:!0}),M).catch(Ut);return}d=M;const Y=l.value;gt&&Tc(fr(Y.fullPath,S.delta),Cn()),Ae(M,Y).catch(c=>He(c,12)?c:He(c,2)?(ce(c.to,M).then(f=>{He(f,20)&&!S.delta&&S.type===Wt.pop&&r.go(-1,!1)}).catch(Ut),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===Wt.pop&&He(c,20)&&r.go(-1,!1)),ke(M,Y,c)}).catch(Ut)}))}let at=Tt(),se=Tt(),q;function W(_,A,S){Ve(_);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 Ve(_){return q||(q=!_,At(),at.list().forEach(([A,S])=>_?S(_):A()),at.reset()),_}function Ie(_,A,S,M){const{scrollBehavior:G}=e;if(!gt||!G)return Promise.resolve();const Y=!S&&Mc(fr(_.fullPath,0))||(M||!S)&&history.state&&history.state.scroll||null;return Xr().then(()=>G(_,A,Y)).then(c=>c&&Ic(c)).catch(c=>W(c,_,A))}const de=_=>r.go(_);let dt;const ht=new Set,zt={currentRoute:l,listening:!0,addRoute:v,removeRoute:T,hasRoute:F,getRoutes:P,resolve:w,options:e,push:V,replace:te,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",cn),_.component("RouterView",$o),_.config.globalProperties.$router=A,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>$e(l)}),gt&&!dt&&l.value===ze&&(dt=!0,V(r.location).catch(G=>{}));const S={};for(const G in ze)Object.defineProperty(S,G,{get:()=>l.value[G],enumerable:!0});_.provide(Rs,A),_.provide(No,Vr(S)),_.provide(ts,l);const M=_.unmount;ht.add(_),_.unmount=function(){ht.delete(_),ht.size<1&&(d=ze,Oe&&Oe(),Oe=null,l.value=ze,dt=!1,q=!1),M()}}};function ie(_){return _.reduce((A,S)=>A.then(()=>tt(S)),Promise.resolve())}return zt}function iu(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 jo=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Uo=e=>(so("data-v-293795a1"),e=e(),ro(),e),lu=Uo(()=>ee("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0"},null,-1)),cu={class:"main"},uu={class:"button-wrap"},fu=Uo(()=>ee("div",{class:"credits"},[ee("span",null,"Developed By"),jt(" "),ee("span",null,"Elder")],-1)),au={__name:"App",setup(e){const t=Fe(!0),n=()=>{t.value=!t.value};return(s,r)=>(pe(),xe(ge,null,[lu,ee("div",cu,[ee("nav",null,[ee("div",uu,[t.value==!1?(pe(),Yn($e(cn),{key:0,onClick:n,class:"nav-button",to:"/"},{default:tn(()=>[jt("Início")]),_:1})):qs("",!0),t.value==!0?(pe(),Yn($e(cn),{key:1,onClick:n,class:"nav-button",to:"/generateCep"},{default:tn(()=>[jt("Gerador de CEPs")]),_:1})):qs("",!0),ae($e(cn),{class:"nav-button",to:""},{default:tn(()=>[jt("Meus Arquivos")]),_:1})])]),ae($e($o))]),fu],64))}},du=jo(au,[["__scopeId","data-v-293795a1"]]),hu="data:text/csv;base64,SURzdGF0ZXMsZXN0YWRvLHVmCjEsQWNyZSxBQwoyLEFsYWdvYXMsQUwKMyxBbWF6b25hcyxBTQo0LEFtYXDDoSxBUAo1LEJhaGlhLEJBCjYsQ2VhcmEsQ0UKNyxEaXN0cml0byBGZWRlcmFsLERGCjgsRXNwaXJpdG8gU2FudG8sRVMKOSxHb2nDoXMsR08KMTAsTWFyYW5ow6NvLE1BCjExLE1pbmFzIEdlcmFpcyxNRwoxMixNYXRvIEdyb3NzbyBkbyBTdWwsTVMKMTMsTWF0byBHcm9zc28sTVQKMTQsUGFyw6EsUEEKMTUsUGFyYcOtYmEsUEIKMTYsUGVybmFtYnVjbyxQRQoxNyxQaWF1w60sUEkKMTgsUGFyYW7DoSxQUgoxOSxSaW8gZGUgSmFuZWlybyxSSgoyMCxSaW8gR3JhbmRlIGRvIE5vcnRlLFJOCjIxLFJvbmTDtG5pYSxSTwoyMixSb3JhaW1hLFJSCjIzLFJpbyBHcmFuZGUgZG8gU3VsLFJTCjI0LFNhbnRhIENhdGFyaW5hLFNDCjI1LFNlcmdpcGUsU0UKMjYsU8OjbyBQYXVsbyxTUAoyNyxUb2NhbnRpbnMsVE8K",pu="/ceplocate/assets/cities-JaQBhjwm.csv",gu="/ceplocate/assets/sp_ceps-DnIRAFP4.csv",Ho=e=>(so("data-v-fd8f1975"),e=e(),ro(),e),mu={class:"wrap-select"},_u={class:"wrap-select-option"},yu=Ho(()=>ee("option",{value:"default",disabled:"",selected:""},"Selecione",-1)),vu=["value"],bu=Ho(()=>ee("option",{value:"default",disabled:"",selected:""},"Selecione",-1)),Eu=["value"],xu={class:"cards"},wu={class:"city-info"},Ru={class:"cep"},Su={key:0,class:"logradouro"},Cu={key:1,class:"logradouro",style:{opacity:"0.5"}},Pu={class:"card-buttons"},Au=["onClick"],Ou={key:1,class:""},Iu={__name:"CepGenerator",setup(e){const t=Fe([]),n=Fe([]),s=Fe([]),r=Fe([]),o=Fe([]),i=Fe(""),u=Fe("");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([hu,pu,gu])},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)||""};Hi(()=>{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)=>(pe(),xe(ge,null,[ee("div",mu,[ee("div",_u,[ee("select",{name:"estado",onChange:a},[yu,(pe(!0),xe(ge,null,Tn(t.value,(w,I)=>(pe(),xe("option",{key:I,value:w.IDstates},We(w.estado),9,vu))),128))],32),ee("select",{name:"cidade",onChange:h},[bu,(pe(!0),xe(ge,null,Tn(r.value,(w,I)=>(pe(),xe("option",{key:I,value:w.IDcities},We(w.cidade),9,Eu))),128))],32)])]),ee("div",xu,[o.value.length>0?(pe(!0),xe(ge,{key:0},Tn(o.value,(w,I)=>(pe(),xe("div",{class:"card",key:I},[ee("div",wu,We(u.value)+", "+We(i.value),1),ee("div",Ru,We(p(w.cep)),1),w.logradouro1||w.logradouro2?(pe(),xe("div",Su,We(w.logradouro1)+" "+We(w.logradouro2)+" - "+We(w.bairro),1)):(pe(),xe("div",Cu," Endereço não encontrado ")),ee("div",Pu,[ee("span",{id:"gotToMapsButton",class:"material-symbols-rounded",onClick:$=>v(w.cep)},"location_on",8,Au),ee("span",{id:"copyClipboardButton",class:"material-symbols-rounded",onClick:F[0]||(F[0]=$=>T($.target.parentElement.parentElement))},"content_copy")])]))),128)):(pe(),xe("div",Ou,"Nenhum CEP encontrado, Selecione uma região"))])],64))}},Tu=jo(Iu,[["__scopeId","data-v-fd8f1975"]]),Mu=ou({history:$c("/ceplocate/"),routes:[{path:"/generateCep",name:"generateCep",component:Tu}]}),Ss=ec(du);Ss.use(oc());Ss.use(Mu);Ss.mount("#app"); diff --git a/index.html b/index.html index d83b4ee..7de6edd 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ Vite App - - + +