(()=>{var e={paths:{}},t=e=>"function"==typeof e,r=e=>Array.isArray?Array.isArray(e):"object"==typeof e&&e.hasOwnProperty("length"),o={},d={},i={};function n(e,t,n){(e=>"string"==typeof e)(e)||(n=t,t=e,e=void 0),r(t)||(n=t,t=void 0);let a=document.currentScript&&document.currentScript.src;e||(e=Object.keys(i).find((e=>i[e]===a))),e||(e=a),e&&(o[e]={deps:t,factory:n,src:a,loaded:!1},d[e]&&(d[e].map((e=>e())),delete d[e]))}n.amd={pico:!0};var a=/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/;Object.defineProperty(window,"picoConfig",{get:t=>(void 0!==t&&void 0!==t.paths&&(e.paths=t.paths),e)}),Object.defineProperty(window,"define",{value:n}),Object.defineProperty(window,"require",{value:function n(c,s){if(!c||!c.length)return void s();if(r(c)){let e=new Array(c.length).fill(void 0);return void c.forEach(((t,r)=>n(t,(t=>{e[r]=t,e.some((e=>void 0===e))||s(...e)}))))}let l=c;if("!"===l.charAt(0)&&(l=l.slice(1),delete o[l],delete i[l]),o[l]){let e=o[l];e.loaded?s(e.factory):t(e.factory)?n(e.deps||[],((...t)=>{e.factory=e.factory(...t),e.loaded=!0,s(e.factory)})):(e.loaded=!0,s(e.factory))}else{let r=function(r){return t(e.paths)?e.paths(r):e.paths[r]||r}(l);if(a.test(r))d[l]=d[l]||[],d[l].push((()=>n(l,s)));else if(!i[l]){let e=document.createElement("script");if(!e.addEventListener)return void console.error('Your browser is too OLD to run "pico" loader');e.addEventListener("load",(()=>{let t=Object.keys(o).find((t=>o[t].src===e.src));t?(n(t,s),document.body.removeChild(e)):console.error(`module:${l} missing!`)})),e.src=r,e.async=!0,document.body.appendChild(e),i[l]=e.src}}}})})();