vendor: 4,948 bytes, line 1
1"use strict";(globalThis.webpackChunk_atlas_docs_zen=globalThis.webpackChunk_atlas_docs_zen||[]).push([[140],{1850(e,r,o){o.d(r,{A:()=>b});var t,n,a=o(2155),s=o(5723),i=Object.create,d=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,u=(t=(e,r)=>{var o=function(){var e=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",t={};function n(e,r){if(!t[e]){t[e]={};for(var o=0;o<e.length;o++)t[e][e.charAt(o)]=o}return t[e][r]}var a={compressToBase64:function(e){if(null==e)return"";var o=a._compress(e,6,function(e){return r.charAt(e)});switch(o.length%4){default:case 0:return o;case 1:return o+"===";case 2:return o+"==";case 3:return o+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:a._decompress(e.length,32,function(o){return n(r,e.charAt(o))})},compressToUTF16:function(r){return null==r?"":a._compress(r,15,function(r){return e(r+32)})+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:a._decompress(e.length,16384,function(r){return e.charCodeAt(r)-32})},compressToUint8Array:function(e){for(var r=a.compress(e),o=new Uint8Array(2*r.length),t=0,n=r.length;t<n;t++){var s=r.charCodeAt(t);o[2*t]=s>>>8,o[2*t+1]=s%256}return o},decompressFromUint8Array:function(r){if(null==r)return a.decompress(r);for(var o=new Array(r.length/2),t=0,n=o.length;t<n;t++)o[t]=256*r[2*t]+r[2*t+1];var s=[];return o.forEach(function(r){s.push(e(r))}),a.decompress(s.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":a._compress(e,6,function(e){return o.charAt(e)})},decompressFromEncodedURIComponent:function(e){return null==e?"":""==e?null:(e=e.replace(/ /g,"+"),a._decompress(e.length,32,function(r){return n(o,e.charAt(r))}))},compress:function(r){return a._compress(r,16,function(r){return e(r)})},_compress:function(e,r,o){if(null==e)return"";var t,n,a,s={},i={},d="",l="",c="",p=2,h=3,u=2,m=[],f=0,b=0;for(a=0;a<e.length;a+=1)if(d=e.charAt(a),Object.prototype.hasOwnProperty.call(s,d)||(s[d]=h++,i[d]=!0),l=c+d,Object.prototype.hasOwnProperty.call(s,l))c=l;else{if(Object.prototype.hasOwnProperty.call(i,c)){if(c.charCodeAt(0)<256){for(t=0;t<u;t++)f<<=1,b==r-1?(b=0,m.push(o(f)),f=0):b++;for(n=c.charCodeAt(0),t=0;t<8;t++)f=f<<1|1&n,b==r-1?(b=0,m.push(o(f)),f=0):b++,n>>=1}else{for(n=1,t=0;t<u;t++)f=f<<1|n,b==r-1?(b=0,m.push(o(f)),f=0):b++,n=0;for(n=c.charCodeAt(0),t=0;t<16;t++)f=f<<1|1&n,b==r-1?(b=0,m.push(o(f)),f=0):b++,n>>=1}0==--p&&(p=Math.pow(2,u),u++),delete i[c]}else for(n=s[c],t=0;t<u;t++)f=f<<1|1&n,b==r-1?(b=0,m.push(o(f)),f=0):b++,n>>=1;0==--p&&(p=Math.pow(2,u),u++),s[l]=h++,c=String(d)}if(""!==c){if(Object.prototype.hasOwnProperty.call(i,c)){if(c.charCodeAt(0)<256){for(t=0;t<u;t++)f<<=1,b==r-1?(b=0,m.push(o(f)),f=0):b++;for(n=c.charCodeAt(0),t=0;t<8;t++)f=f<<1|1&n,b==r-1?(b=0,m.push(o(f)),f=0):b++,n>>=1}else{for(n=1,t=0;t<u;t++)f=f<<1|n,b==r-1?(b=0,m.push(o(f)),f=0):b++,n=0;for(n=c.charCodeAt(0),t=0;t<16;t++)f=f<<1|1&n,b==r-1?(b=0,m.push(o(f)),f=0):b++,n>>=1}0==--p&&(p=Math.pow(2,u),u++),delete i[c]}else for(n=s[c],t=0;t<u;t++)f=f<<1|1&n,b==r-1?(b=0,m.push(o(f)),f=0):b++,n>>=1;0==--p&&(p=Math.pow(2,u),u++)}for(n=2,t=0;t<u;t++)f=f<<1|1&n,b==r-1?(b=0,m.push(o(f)),f=0):b++,n>>=1;for(;;){if(f<<=1,b==r-1){m.push(o(f));break}b++}return m.join("")},decompress:function(e){return null==e?"":""==e?null:a._decompress(e.length,32768,function(r){return e.charCodeAt(r)})},_decompress:function(r,o,t){var n,a,s,i,d,l,c,p=[],h=4,u=4,m=3,f="",b=[],g={val:t(0),position:o,index:1};for(n=0;n<3;n+=1)p[n]=n;for(s=0,d=Math.pow(2,2),l=1;l!=d;)i=g.val&g.position,g.position>>=1,0==g.position&&(g.position=o,g.val=t(g.index++)),s|=(i>0?1:0)*l,l<<=1;switch(s){case 0:for(s=0,d=Math.pow(2,8),l=1;l!=d;)i=g.val&g.position,g.position>>=1,0==g.position&&(g.position=o,g.val=t(g.index++)),s|=(i>0?1:0)*l,l<<=1;c=e(s);break;case 1:for(s=0,d=Math.pow(2,16),l=1;l!=d;)i=g.val&g.position,g.position>>=1,0==g.position&&(g.position=o,g.val=t(g.index++)),s|=(i>0?1:0)*l,l<<=1;c=e(s);break;case 2:return""}for(p[3]=c,a=c,b.push(c);;){if(g.index>r)return"";for(s=0,d=Math.pow(2,m),l=1;l!=d;)i=g.val&g.position,g.position>>=1,0==g.position&&(g.position=o,g.val=t(g.index++)),s|=(i>0?1:0)*l,l<<=1;switch(c=s){case 0:for(s=0,d=Math.pow(2,8),l=1;l!=d;)i=g.val&g.position,g.position>>=1,0==g.position&&(g.position=o,g.val=t(g.index++)),s|=(i>0?1:0)*l,l<<=1;p[u++]=e(s),c=u-1,h--;break;case 1:for(s=0,d=Math.pow(2,16),l=1;l!=d;)i=g.val&g.position,g.position>>=1,0==g.position&&(g.position=o,g.val=t(g.index++)),s|=(i>0?1:0)*l,l<<=1;p[u++]=e(s),c=u-1,h--;break;case 2:return b.join("")}if(0==h&&(h=Math.pow(2,m),m++),p[c])f=p[c];else{if(c!==u)return null;f=a+a.charAt(0)}b.push(f),p[u++]=a+f.charAt(0),a=f,0==--h&&(h=Math.pow(2,m),m++)}}};return a}();void 0!==r&&null!=r&&(r.exports=o)},()=>(n||t((n={exports:{}}
1).exports,n),n.exports)),m=((e,r,o)=>(o=null!=e?i(p(e)):{},((e,r,o,t)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let n of c(r))!h.call(e,n)&&n!==o&&d(e,n,{get:()=>r[n],enumerable:!(t=l(r,n))||t.enumerable});return e})(!r&&e&&e.__esModule?o:d(o,"default",{value:e,enumerable:!0}),e)))(u());async function f(e,r={}){"object"==typeof e&&!(e instanceof HTMLElement)&&(e.headless||"headless"===e.view)&&(r=e,e=null);let{config:o={},headless:t,loading:n="lazy",view:a}=r,s=t||"headless"===a,i=null,d=null;if("string"==typeof e)i=document.querySelector(e);else if(e instanceof HTMLElement)i=e;else if(!s||"object"!=typeof e)throw new Error("A valid container element is required.");if(!i){if(!s)throw new Error(`Cannot find element: "${e}"`);i=document.createElement("div"),_(i),document.body.appendChild(i)}let l=new URL(function(e={}){let r,{appUrl:o="https://livecodes.io",params:t={},config:n={},headless:a,import:s,lite:i,view:d,...l}=e;try{r=new URL(o)}catch(h){throw new Error(`${o} is not a valid URL.`)}let c=new URLSearchParams;Object.entries(l).forEach(([e,o])=>{void 0!==o&&r.searchParams.set(e,String(o))});let p="headless"===e.view||a;if(i&&(console.warn('Deprecation notice: "lite" option is deprecated. Use "config: { mode: \'lite\' }" instead.'),"object"==typeof n&&null==n.mode?n.mode="lite":r.searchParams.set("lite","true")),d&&(console.warn('Deprecation notice: The "view" option has been moved to "config.view". For headless mode use "headless: true".'),"object"==typeof n&&null==n.view&&"headless"!==d?n.view=d:r.searchParams.set("view",d)),"string"==typeof n)try{new URL(n),r.searchParams.set("config",encodeURIComponent(n))}catch(h){throw new Error('"config" is not a valid URL or configuration object.')}else n&&"object"==typeof n&&Object.keys(n).length>0&&(n.title&&"Untitled Project"!==n.title&&r.searchParams.set("title",n.title),n.description&&n.description.length>0&&r.searchParams.set("description",n.description),c.set("config","code/"+(0,m.compressToEncodedURIComponent)(JSON.stringify(n))));if(t&&"object"==typeof t&&Object.keys(t).length>0)try{c.set("params",(0,m.compressToEncodedURIComponent)(JSON.stringify(t)))}catch(h){Object.keys(t).forEach(e=>{r.searchParams.set(e,encodeURIComponent(String(t[e])))})}return s&&r.searchParams.set("x",encodeURIComponent(s)),p&&r.searchParams.set("headless","true"),c.toString().length>0&&(r.hash=c.toString()),r.href}(r)),c=l.origin;l.searchParams.set("embed","true"),l.searchParams.set("loading",s?"eager":n),l.searchParams.set("sdkVersion","0.13.0"),"object"==typeof o&&Object.keys(o).length>0&&l.searchParams.set("config","sdk");let p=r.params;"object"==typeof p&&Object.keys(p).length>0&&JSON.stringify(p).length<1800&&Object.keys(p).forEach(e=>{l.searchParams.set(e,encodeURIComponent(String(p[e])))});let h=!1,u="Cannot call API methods after calling `destroy()`.",f=[],b=(e,r="message")=>{addEventListener(r,e),f.push(e)},g=await new Promise(e=>{var r,t,a,p,h,u,m,f,g;if(!i)return;let w=i.dataset.height||i.style.height;if(w&&!s){let e=isNaN(Number(w))?w:w+"px";i.style.height=e}"false"!==i.dataset.defaultStyles&&!s&&((r=i.style).backgroundColor||(r.backgroundColor="#fff"),(t=i.style).border||(t.border="1px solid black"),(a=i.style).borderRadius||(a.borderRadius="8px"),(p=i.style).boxSizing||(p.boxSizing="border-box"),(h=i.style).padding||(h.padding="0"),(u=i.style).width||(u.width="100%"),(m=i.style).height||(m.height=i.style.height||"300px"),i.style.minHeight="200px",i.style.flexGrow="1",(f=i.style).overflow||(f.overflow="hidden"),(g=i.style).resize||(g.resize="vertical"));let v="livecodes",x=i.querySelector(`iframe.${v}`),y=x||document.createElement("iframe");y.classList.add(v),y.setAttribute("allow","accelerometer; camera; encrypted-media; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; web-share"),y.setAttribute("allowtransparency","true"),y.setAttribute("allowpaymentrequest","true"),y.setAttribute("allowfullscreen","true"),y.setAttribute("sandbox","allow-same-origin allow-downloads allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-presentation allow-scripts");let k="eager"===n?"eager":"lazy";y.setAttribute("loading",k),s?_(y):(y.style.height="100%",y.style.minHeight="200px",y.style.width="100%",y.style.margin="0",y.style.border="0",y.style.borderRadius=i.style.borderRadius),b(function e(r){var o;r.source!==y.contentWindow||r.origin!==c||"livecodes-init"!==(null==(o=r.data)?void 0:o.type)||(removeEventListener("message",e),d=Number(r.data.payload.appVersion.replace(/^v/,"")))}),(!d||d<46)&&b(function e(r){var t,n;r.source!==y.contentWindow||r.origin!==c||"livecodes-get-config"!==(null==(t=r.data)?void 0:t.type)||(removeEventListener("message",e),null==(n=y.contentWindow)||n.postMessage({type:"livecodes-config",payload:o},c))}),y.onload=()=>{e(y)},y.src=l.href,x||i.appendChild(y)}),w=new Promise(e=>{b(function r(o){var t;o.source!==g.contentWindow||o.origin!==c||"livecodes-ready"!==(null==(t=o.data)?void 0:t.type)||(removeEventListener("message",r),e(),w.settled=!0)})}),v=()=>h?Promise.reject(u):new Promise(async e=>{var r;w.settled&&e();null==(r=g.contentWindow)||r.postMessage({type:"livecodes-load"},c),await w,e()}),x=(e,r)=>new Promise(async(o,t)=>{var n;if(h)return t(u);await v();let a=E();b(function r(n){var s,i;if(n.source===g.contentWindow&&n.origin===c&&"livecodes-api-response"===(null==(s=n.data)?void 0:s.type)&&(null==(i=n.data)?void 0:i.id)===a&&n.data.method===e){removeEventListener("message",r);let e=n.data.payload;null!=e&&e.error?t(e.error):o(e)}}),null==(n=g.contentWindow)||n.postMessage({method:e,id:a,args:r},c)}),y={},k=["load","ready","code","console","tests","destroy"],j=(e,r)=>{var o;if(h)throw new Error(u);return k.includes(e)?(x("watch",[e]),y[e]||(y[e]=[]),null==(o=y[e])||o.push(r),{remove:()=>{var o,t;y[e]=null==(o=y[e])?void 0:o.filter(e=>e!==r),0===(null==(t=y[e])?void 0:t.length)&&x("watch",[e,"unsubscribe"])}}):{remove:()=>{}}};b(async function(e){var r,o,t,n;let a={"livecodes-app-loaded":"load","livecodes-ready":"ready","livecodes-change":"code","livecodes-console":"console","livecodes-test-results":"tests","livecodes-destroy":"destroy"}[null!=(o=null==(r=e.data)?void 0:r.type)?o:""];if(e.source!==g.contentWindow||e.origin!==c||!a||!y[a])return;let s=null==(t=e.data)?void 0:t.payload;
1null==(n=y[a])||n.forEach(e=>{e(s)})});let C;function _(e){e.style.position="absolute",e.style.top="0",e.style.visibility="hidden",e.style.opacity="0"}"lazy"===n&&"IntersectionObserver"in window&&(C=new IntersectionObserver((e,r)=>{e.forEach(async e=>{e.isIntersecting&&(await v(),r.unobserve(i))})},{rootMargin:"150px"}),C.observe(i));let E=()=>(String(Math.random())+Date.now().toFixed()).replace("0.","");return{load:()=>v(),run:()=>x("run"),format:e=>x("format",[e]),getShareUrl:e=>x("getShareUrl",[e]),getConfig:e=>x("getConfig",[e]),setConfig:e=>x("setConfig",[e]),getCode:()=>x("getCode"),show:(e,r)=>x("show",[e,r]),runTests:()=>x("runTests"),onChange:e=>j("code",e),watch:j,exec:(e,...r)=>x("exec",[e,...r]),destroy:()=>{return h?Promise.reject(u):(null==(e=null==g?void 0:g.remove)||e.call(g),Object.values(y).forEach(e=>{e.length=0}),f.forEach(e=>removeEventListener("message",e)),f.length=0,C&&i&&C.unobserve(i),h=!0,Promise.resolve());var e}}}function b(e){let r=(0,a.useRef)(null),[o,t]=(0,a.useState)(e.className||""),[n,i]=(0,a.useState)(e.style||{}),[d,l]=(0,a.useState)(e.height),[c,p]=(0,a.useState)(),[h,u]=(0,a.useState)(JSON.stringify(e.config||"")),[m,b]=(0,a.useState)("");return(0,a.useEffect)(()=>{if(!r.current)return;let{className:o,style:n,height:a,sdkReady:s,config:d,...g}=e;if(t(o||""),i(n||{}),l(a),c&&m===JSON.stringify(g)){if(h===JSON.stringify(d))return;u(JSON.stringify(d)),"string"==typeof d?fetch(d).then(e=>e.json()).then(e=>{null==c||c.setConfig(e)}):d&&c.setConfig(d)}else b(JSON.stringify(g)),null==c||c.destroy(),f(r.current,{config:d,...g}).then(e=>{p(e),"function"==typeof s&&s(e)})},[e]),(0,a.useEffect)(()=>()=>{null==c||c.destroy()},[]),(0,s.jsx)("div",{ref:r,className:o,style:n,"data-height":d})}},3673(e,r,o){o.d(r,{n:()=>h,u:()=>c});var t=o(9363),n=o(4049),a=o(1850);const s='body {\n font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;\n margin: 0;\n padding: 1.5rem;\n background-color: #f9fafb;\n color: #111827;\n font-size: 14px;\n line-height: 1.5;\n display: flex;\n justify-content: center;\n}\nform {\n width: 100%;\n max-width: 24rem;\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n}\ninput + label { margin-top: 0.5rem; }\nlabel {\n display: block;\n font-size: 0.8125rem;\n font-weight: 500;\n color: #374151;\n}\ninput, textarea {\n width: 100%;\n padding: 0.5rem 0.75rem;\n font-size: 0.875rem;\n font-family: inherit;\n color: #111827;\n background-color: #ffffff;\n border: 1px solid #d1d5db;\n border-radius: 0.375rem;\n box-sizing: border-box;\n transition: border-color 150ms ease, box-shadow 150ms ease;\n}\ntextarea { min-height: 5rem; resize: vertical; line-height: 1.5; }\ninput:focus, textarea:focus {\n outline: none;\n border-color: #2933e6;\n box-shadow: 0 0 0 3px rgba(41, 51, 230, 0.15);\n}\n[data-theme="dark"] body { background-color: #1f1f1f; color: #e5e7eb; }\n[data-theme="dark"] label { color: #d1d5db; }\n[data-theme="dark"] input, [data-theme="dark"] textarea {\n background-color: #2a2a2a;\n border-color: #444950;\n color: #e5e7eb;\n}\n[data-theme="dark"] input:focus, [data-theme="dark"] textarea:focus {\n border-color: #545ceb;\n box-shadow: 0 0 0 3px rgba(84, 92, 235, 0.25);\n}\n\n/* Postcode Lookup widget default chrome \u2014 matches form input styling.\n Wrapped in :where() so user-supplied .idpc-* rules always win regardless of\n load order. */\n:where(.idpc-input) {\n border-color: #2933e6;\n box-shadow: 0 0 0 1px rgba(41, 51, 230, 0.1);\n}\n:where(.idpc-input:focus) { border-color: #2933e6; box-shadow: 0 0 0 3px rgba(41, 51, 230, 0.2); }\n:where([data-theme="dark"] .idpc-input) { border-color: #545ceb; box-shadow: 0 0 0 1px rgba(84, 92, 235, 0.15); }\n:where([data-theme="dark"] .idpc-input:focus) { border-color: #545ceb; box-shadow: 0 0 0 3px rgba(84, 92, 235, 0.3); }\n:where(.idpc-button) {\n margin-top: 0.5rem;\n padding: 0.5rem 1rem;\n font-size: 0.875rem;\n font-weight: 500;\n color: #ffffff;\n background-color: #2933e6;\n border: 1px solid #2933e6;\n border-radius: 0.375rem;\n cursor: pointer;\n transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;\n}\n:where(.idpc-button:hover) { background-color: #1f29c4; border-color: #1f29c4; }\n:where(.idpc-button:focus) { outline: none; box-shadow: 0 0 0 3px rgba(41, 51, 230, 0.25); }\n:where(.idpc-select-container) { margin-top: 0.5rem; }\n:where(.idpc-select-container select) {\n width: 100%;\n padding: 0.5rem 2.25rem 0.5rem 0.75rem;\n font-size: 0.875rem;\n color: #111827;\n background-color: #ffffff;\n background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 20 20\' fill=\'%236b7280\'%3E%3Cpath fill-rule=\'evenodd\' d=\'M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z\' clip-rule=\'evenodd\'/%3E%3C/svg%3E");\n background-repeat: no-repeat;\n background-position: right 0.625rem center;\n background-size: 1rem;\n border: 1px solid #d1d5db;\n border-radius: 0.375rem;\n box-sizing: border-box;\n cursor: pointer;\n appearance: none;\n -webkit-appearance: none;\n transition: border-color 150ms ease, box-shadow 150ms ease;\n}\n:where(.idpc-select-container select:focus) {\n outline: none;\n border-color: #2933e6;\n box-shadow: 0 0 0 3px rgba(41, 51, 230, 0.15);\n}\n:where(.idpc-error) { margin-top: 0.5rem; font-size: 0.8125rem; color: #b91c1c; }\n:where(.idpc-unhide) {\n display: block;\n width: fit-content;\n margin-top: 1rem;\n margin-bottom: 0.5rem;\n padding: 0.375rem 0.75rem;\n font-size: 0.8125rem;\n font-weight: 500;\n color: #2933e6;\n background-color: transparent;\n border: 1px solid #2933e6;\n border-radius: 0.375rem;\n cursor: pointer;\n user-select: none;\n transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;\n}\n:where(.idpc-unhide:hover) { background-color: #2933e6; color: #ffffff; }\n:where(.idpc-unhide:focus) { outline: none; box-shadow: 0 0 0 3px rgba(41, 51, 230, 0.25); }\n:where([data-theme="dark"] .idpc-unhide) { color: #545ceb; border-color: #545ceb; }\n:where([data-theme="dark"] .idpc-unhide:hover) { background-color: #545ceb; color: #ffffff; }\n/* Separate the widget context from address fields that follow it. */\n:where(form >
1 div:has(> .idpc-input)), :where(form > div:has(> .idpc-button)) { margin-bottom: 0.75rem; }\n:where([data-theme="dark"] .idpc-button) { background-color: #545ceb; border-color: #545ceb; }\n:where([data-theme="dark"] .idpc-button:hover) { background-color: #4047d6; border-color: #4047d6; }\n:where([data-theme="dark"] .idpc-select-container select) {\n background-color: #2a2a2a;\n border-color: #444950;\n color: #e5e7eb;\n background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 20 20\' fill=\'%239ca3af\'%3E%3Cpath fill-rule=\'evenodd\' d=\'M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z\' clip-rule=\'evenodd\'/%3E%3C/svg%3E");\n}\n:where([data-theme="dark"] .idpc-select-container select:focus) {\n border-color: #545ceb;\n box-shadow: 0 0 0 3px rgba(84, 92, 235, 0.25);\n}\n:where([data-theme="dark"] .idpc-error) { color: #f87171; }\n\n/* Address Finder / Postcode Lookup dropdown \u2014 dark variant.\n Targets v5.0.4\'s actual selectors (idpc_af is the dropdown wrapper).\n Once the unreleased beta with --idpc-* variables ships, swap to variable\n overrides for cleaner theming. */\nhtml[data-theme="dark"] div.idpc_autocomplete {\n color: #e5e7eb !important;\n}\nhtml[data-theme="dark"] div.idpc_af {\n background: #2a2a2a !important;\n border-color: rgba(255, 255, 255, 0.15) !important;\n box-shadow: 0.05em 0.2em 0.6em rgba(0, 0, 0, 0.6) !important;\n}\nhtml[data-theme="dark"] div.idpc_af > ul > li:hover {\n background-color: #3a3a3a !important;\n}\nhtml[data-theme="dark"] div.idpc_af > ul > li.idpc_error,\nhtml[data-theme="dark"] div.idpc_af > ul > li.idpc_error:hover {\n background-color: #2a2a2a !important;\n color: #9ca3af !important;\n}\nhtml[data-theme="dark"] div.idpc_af > ul > li[aria-selected="true"] {\n background-color: #545ceb !important;\n color: #ffffff !important;\n}\nhtml[data-theme="dark"] div.idpc_toolbar {\n border-top-color: rgba(255, 255, 255, 0.15) !important;\n}\n/* Country toggle: source CSS sets hover bg to #e5e4e2 (light grey) which\n reads as bright white-on-white in dark mode. Tone it down and ensure the\n country-name text stays legible when it expands on hover. */\nhtml[data-theme="dark"] div.idpc_autocomplete > div > div > span:hover {\n background-color: #3a3a3a !important;\n}\nhtml[data-theme="dark"] div.idpc_toolbar > span span.idpc_country {\n color: #e5e7eb !important;\n}';var i=o(5723);const d={border:"1px solid var(--ifm-color-emphasis-300)",borderRadius:"var(--ifm-card-border-radius)",backgroundColor:"var(--ifm-background-surface-color)"},l=(e={})=>{const{imports:r={},sdkPackage:o,mode:t="simple",themeColor:l,editor:c,editorTheme:p,fontFamily:h,baseCss:u=s}=e;return function({html:e,js:s,language:m="javascript",sdk:f=!1,css:b,scripts:g,stylesheets:w,head:v,baseCss:x=u,imports:y,height:k="500px",view:j="split",mode:C=t,loading:_="lazy",activeEditor:E,className:z,style:P,editorTheme:S=p,theme:A="light"}){const O="dark"===A;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.A,{fallback:(0,i.jsx)("div",{style:{height:k},children:"Loading..."}),children:()=>{const t=[x&&`<style>${x}</style>`,f&&"<style>body { display: block; } form { margin-bottom: 1rem; } #app { margin-top: 1rem; } #output { white-space: pre-wrap; overflow-wrap: anywhere; } button { cursor: pointer; } button:disabled { cursor: wait; }</style>
1",v].filter(Boolean).join("\n");return(0,i.jsx)(a.A,{height:k,loading:_,className:z,style:{...d,...P},config:{mode:C,view:j,theme:O?"dark":"light",htmlAttrs:{"data-theme":O?"dark":"light"},markup:{language:"html",content:e},...s&&{script:{language:m,content:s}},...b&&{style:{language:"css",content:b}},languages:[...s?[m]:[],"html",...b?["css"]:[]],activeEditor:E??(s?"script":"markup"),lineNumbers:!1,wordWrap:!0,useTabs:!1,tabSize:2,...g&&{scripts:g},...w&&{stylesheets:w},...t&&{head:t},imports:{...r,...f&&o?{[o]:new URL("/sdk/index.mjs",window.location.origin).href,[`${o}/autocomplete`]:new URL("/sdk/autocomplete.mjs",window.location.origin).href,[`${o}/react-query`]:new URL("/sdk/react-query.mjs",window.location.origin).href,[`${o}/preact-query`]:new URL("/sdk/preact-query.mjs",window.location.origin).href,react:"https://esm.sh/[email protected]","react/jsx-runtime":"https://esm.sh/[email protected]/jsx-runtime?external=react","react/jsx-dev-runtime":"https://esm.sh/[email protected]/jsx-dev-runtime?external=react","react-dom/client":"https://esm.sh/[email protected]/client?external=react",preact:"https://esm.sh/[email protected]","preact/jsx-runtime":"https://esm.sh/[email protected]/jsx-runtime?external=preact","preact/hooks":"https://esm.sh/[email protected]/hooks?external=preact","@tanstack/react-query":"https://esm.sh/@tanstack/[email protected]?external=react","@tanstack/preact-query":"https://esm.sh/@tanstack/[email protected]?external=preact,preact/hooks"}:{},...y},...S&&{editorTheme:S},...l&&{themeColor:O?l.dark:l.light},...f?{editor:"codemirror"}:c&&{editor:c},...h&&{fontFamily:h}}})}}),(0,i.jsxs)("div",{style:{display:"none"},"aria-hidden":"true",children:[(0,i.jsx)("pre",{children:e}),s&&(0,i.jsx)("pre",{children:s}),b&&(0,i.jsx)("pre",{children:b})]})]})}},c=(l(),'@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600&display=swap");\nbody {\n font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;\n margin: 0;\n padding: 1.5rem;\n background-color: #f5efe2;\n color: #1d1a17;\n font-size: 14px;\n line-height: 1.5;\n display: flex;\n justify-content: center;\n}\nform {\n width: 100%;\n max-width: 24rem;\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n}\ninput + label { margin-top: 0.5rem; }\nlabel {\n display: block;\n font-size: 0.8125rem;\n font-weight: 500;\n color: #5f5a50;\n}\ninput, textarea {\n width: 100%;\n padding: 0.5rem 0.75rem;\n font-size: 0.875rem;\n font-family: inherit;\n color: #1d1a17;\n background-color: #fbf7ee;\n border: 1px solid rgba(29, 26, 23, 0.18);\n border-radius: 8px;\n box-sizing: border-box;\n transition: border-color 150ms ease, box-shadow 150ms ease;\n}\ntextarea { min-height: 5rem; resize: vertical; line-height: 1.5; }\ninput:focus, textarea:focus {\n outline: none;\n border-color: #c13b2a;\n box-shadow: 0 0 0 3px rgba(193, 59, 42, 0.16);\n}\n[data-theme="dark"] body { background-color: #1d1a17; color: #f7f2e9; }\n[data-theme="dark"] label { color: #a8a093; }\n[data-theme="dark"] input, [data-theme="dark"] textarea {\n background-color: #262220;\n border-color: rgba(247, 242, 233, 0.16);\n color: #f7f2e9;\n}\n[data-theme="dark"] input:focus, [data-theme="dark"] textarea:focus {\n border-color: #e0a196;\n box-shadow: 0 0 0 3px rgba(224, 161, 150, 0.25);\n}\n\n/* Widget default chrome \u2014 matches the form inputs. Wrapped in :where() so\n user-supplied .idpc-* rules always win regardless of load order. */\n:where(.idpc-input) {\n border-color: #c13b2a;\n box-shadow: 0 0 0 1px rgba(193, 59, 42, 0.1);\n}\n:where(.idpc-input:focus) { border-color: #c13b2a; box-shadow: 0 0 0 3px rgba(193, 59, 42, 0.2); }\n:where([data-theme="dark"] .idpc-input) { border-color: #e0a196; box-shadow: 0 0 0 1px rgba(224, 161, 150, 0.15); }\n:where([data-theme="dark"] .idpc-input:focus) { border-color: #e0a196; box-shadow: 0 0 0 3px rgba(224, 161, 150, 0.3); }\n:where(.idpc-button) {\n margin-top: 0.5rem;\n padding: 0.5rem 1rem;\n font-size: 0.875rem;\n font-weight: 500;\n color: #f5efe2;\n background-color: #c13b2a;\n border: 1px solid #c13b2a;\n border-radius: 100px;\n cursor: pointer;\n transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;\n}\n:where(.idpc-button:hover) { background-color: #a83224; border-color: #a83224; }\n:where(.idpc-button:focus) { outline: none; box-shadow: 0 0 0 3px rgba(193, 59, 42, 0.25); }\n:where(.idpc-select-container) { margin-top: 0.5rem; }\n:where(.idpc-select-container select) {\n width: 100%;\n padding: 0.5rem 2.25rem 0.5rem 0.75rem;\n font-size: 0.875rem;\n color: #1d1a17;\n background-color: #fbf7ee;\n background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 20 20\' fill=\'%238a8375\'%3E%3Cpath fill-rule=\'evenodd\' d=\'M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z\' clip-rule=\'evenodd\'/%3E%3C/svg%3E");\n background-repeat: no-repeat;\n background-position: right 0.625rem center;\n background-size: 1rem;\n border: 1px solid rgba(29, 26, 23, 0.18);\n border-radius: 8px;\n box-sizing: border-box;\n cursor: pointer;\n appearance: none;\n -webkit-appearance: none;\n transition: border-color 150ms ease, box-shadow 150ms ease;\n}\n:where(.idpc-select-container select:focus) {\n outline: none;\n border-color: #c13b2a;\n box-shadow: 0 0 0 3px rgba(193, 59, 42, 0.16);\n}\n:where(.idpc-error) { margin-top: 0.5rem; font-size: 0.8125rem; color: #a83224; }\n:where(.idpc-unhide) {\n display: block;\n width: fit-content;\n margin-top: 1rem;\n margin-bottom: 0.5rem;\n padding: 0.375rem 0.75rem;\n font-size: 0.8125rem;\n font-weight: 500;\n color: #c13b2a;\n background-color: transparent;\n border: 1px solid #c13b2a;\n border-radius: 100px;\n cursor: pointer;\n user-select: none;\n transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;\n}\n:where(.idpc-unhide:hover) { background-color: #c13b2a; color: #f5efe2; }\n:where(.idpc-unhide:focus) { outline: none; box-shadow: 0 0 0 3px rgba(193, 59, 42, 0.25); }
1\n:where([data-theme="dark"] .idpc-unhide) { color: #e0a196; border-color: #e0a196; }\n:where([data-theme="dark"] .idpc-unhide:hover) { background-color: #e0a196; color: #1d1a17; }\n/* Separate the widget context from address fields that follow it. */\n:where(form > div:has(> .idpc-input)), :where(form > div:has(> .idpc-button)) { margin-bottom: 0.75rem; }\n:where([data-theme="dark"] .idpc-button) { background-color: #e0a196; border-color: #e0a196; color: #1d1a17; }\n:where([data-theme="dark"] .idpc-button:hover) { background-color: #d48b7e; border-color: #d48b7e; }\n:where([data-theme="dark"] .idpc-select-container select) {\n background-color: #262220;\n border-color: rgba(247, 242, 233, 0.16);\n color: #f7f2e9;\n background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 20 20\' fill=\'%23a8a093\'%3E%3Cpath fill-rule=\'evenodd\' d=\'M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z\' clip-rule=\'evenodd\'/%3E%3C/svg%3E");\n}\n:where([data-theme="dark"] .idpc-select-container select:focus) {\n border-color: #e0a196;\n box-shadow: 0 0 0 3px rgba(224, 161, 150, 0.25);\n}\n:where([data-theme="dark"] .idpc-error) { color: #e0a196; }\n\n/* Address Lookup dropdown \u2014 dark variant. Targets the widget\'s own selectors\n (idpc_af is the dropdown wrapper). */\nhtml[data-theme="dark"] div.idpc_autocomplete {\n color: #f7f2e9 !important;\n}\nhtml[data-theme="dark"] div.idpc_af {\n background: #262220 !important;\n border-color: rgba(247, 242, 233, 0.16) !important;\n box-shadow: 0.05em 0.2em 0.6em rgba(0, 0, 0, 0.6) !important;\n}\nhtml[data-theme="dark"] div.idpc_af > ul > li:hover {\n background-color: #33302b !important;\n}\nhtml[data-theme="dark"] div.idpc_af > ul > li.idpc_error,\nhtml[data-theme="dark"] div.idpc_af > ul > li.idpc_error:hover {\n background-color: #262220 !important;\n color: #a8a093 !important;\n}\nhtml[data-theme="dark"] div.idpc_af > ul > li[aria-selected="true"] {\n background-color: #e0a196 !important;\n color: #1d1a17 !important;\n}\nhtml[data-theme="dark"] div.idpc_toolbar {\n border-top-color: rgba(247, 242, 233, 0.16) !important;\n}\nhtml[data-theme="dark"] div.idpc_autocomplete > div > div > span:hover {\n background-color: #33302b !important;\n}\nhtml[data-theme="dark"] div.idpc_toolbar > span span.idpc_country {\n color: #f7f2e9 !important;\n}'),p=l({sdkPackage:"@addresszen/sdk",mode:"focus",imports:{"@addresszen/address-lookup":"https://esm.sh/@addresszen/address-lookup@2"},themeColor:{light:"hsl(40, 10%, 55%)",dark:"hsl(40, 12%, 50%)"},editorTheme:["solarized-light@light","gruvbox-dark@dark"],fontFamily:"IBM Plex Mono",baseCss:c});function h(e){const{isDarkTheme:r}=(0,t.G)();return(0,i.jsx)(p,{...e,theme:r?"dark":"light"})}},4049(e,r,o){o.d(r,{A:()=>a});o(2155);var t=o(4530),n=o(5723);function a({children:e,fallback:r}){return(0,t.A)()?(0,n.jsx)(n.Fragment,{children:e?.()}):r??null}},4056(e,r,o){o.d(r,{R:()=>s,x:()=>i});var t=o(2155);const n={},a=t.createContext(n);function s(e){const r=t.useContext(a);return t.useMemo(function(){return"function"==typeof e?e(r):{...r,...e}},[r,e])}function i(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:s(e.components),t.createElement(a.Provider,{value:r},e.children)}},9001(e,r,o){o.r(r),o.d(r,{assets:()=>l,contentTitle:()=>d,default:()=>h,frontMatter:()=>i,metadata:()=>t,toc:()=>c});const t=JSON.parse('{"id":"address-lookup/exclude-islands","title":"Exclude Islands","description":"Removes US addresses from these islands:","source":"@site/docs/address-lookup/exclude-islands.mdx","sourceDirName":"address-lookup","slug":"/address-lookup/exclude-islands","permalink":"/docs/address-lookup/exclude-islands","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"title":"Exclude Islands","sidebar_label":"Exclude Islands"},"sidebar":"addressfinder","previous":{"title":"Exclude Military Addresses","permalink":"/docs/address-lookup/exclude-military"},"next":{"title":"Bias By IP","permalink":"/docs/address-lookup/bias-by-ip"}}');var n=o(5723),a=o(4056),s=o(3673);const i={title:"Exclude Islands",sidebar_label:"Exclude Islands"},d=void 0,l={},c=[];function p(e){const r={code:"code",p:"p",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.p,{children:"Removes US addresses from these islands:"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:'"AS"'}),", ",(0,n.jsx)(r.code,{children:'"GU"'}),", ",(0,n.jsx)(r.code,{children:'"FM"'}),", ",(0,n.jsx)(r.code,{children:'"MH"'}),", ",(0,n.jsx)(r.code,{children:'"MP"'}),", ",(0,n.jsx)(r.code,{children:'"PW"'}),", ",(0,n.jsx)(r.code,{children:'"PR"'}),", ",(0,n.jsx)(r.code,{children:'"VI"'})]}),"\n",(0,n.jsx)(s.n,{html:'<form>\n<label for="line_1">Address First Line</label>\n<input type="text" id="line_1" />\n<label for="line_2">Address Second Line</label>\n<input type="text" id="line_2" />\n<label for="city">City</label>\n<input type="text" id="city" />\n<label for="state">State</label>\n<input type="text" id="state" />\n<label for="zipcode">Zip Code</label>\n<input type="text" id="zipcode" />\n</form>',js:'\nimport { AddressLookup } from "@addresszen/address-lookup";\n\nAddressLookup.setup({\n apiKey: "ak_test",\n queryOptions: {\n set: "insular",\n },\n outputFields: {\n line_1: "#line_1",\n line_2: "#line_2",\n city: "#city",\n state: "#state",\n zip_plus_4_code: "#zipcode",\n },\n});\n'})]})}function h(e={}){const{wrapper:r}={...(0,a.R)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.