UNPKG

ionicons

Version:

Premium icons for Ionic.

2 lines 9.52 kB
let e,n,t=!1;const l=e=>{const n=new URL(e,Y.t);return n.origin!==Q.location.origin?n.href:n.pathname},o=e=>Y.t=e,s="http://www.w3.org/1999/xlink",i={},c=e=>"object"==(e=typeof e)||"function"===e;function r(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const u=(e,n,...t)=>{let l=null,o=null,s=!1,i=!1;const r=[],u=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!c(l))&&(l+=""),s&&i?r[r.length-1].l+=l:r.push(s?a(null,l):l),i=s)};if(u(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}const f=a(e,null);return f.o=n,r.length>0&&(f.i=r),f.u=o,f},a=(e,n)=>({$:0,h:e,l:n,p:null,i:null,o:null,u:null}),f={},d=e=>V(e).m,y=new WeakMap,$=e=>"sc-"+e.v,h=(e,n,t,l,o,i)=>{if(t!==l){let r=B(e,n),u=n.toLowerCase();if("class"===n){const n=e.classList,o=m(t),s=m(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===n){for(const n in t)l&&null!=l[n]||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in l)t&&l[n]===t[n]||(n.includes("-")?e.style.setProperty(n,l[n]):e.style[n]=l[n])}else if("key"===n);else if("ref"===n)l&&l(e);else if(r||"o"!==n[0]||"n"!==n[1]){const a=c(l);if((r||a&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?r=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(n=u,f=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(n)||(f?e.removeAttributeNS(s,n):e.removeAttribute(n)):(!r||4&i||o)&&!a&&(l=!0===l?"":l,f?e.setAttributeNS(s,n,l):e.setAttribute(n,l))}else n="-"===n[2]?n.slice(3):B(Q,u)?u.slice(2):u[2]+n.slice(3),t&&Y.rel(e,n,t,!1),l&&Y.ael(e,n,l,!1)}},p=/\s/,m=e=>e?e.split(p):[],b=(e,n,t,l)=>{const o=11===n.p.nodeType&&n.p.host?n.p.host:n.p,s=e&&e.o||i,c=n.o||i;for(l in s)l in c||h(o,l,s[l],void 0,t,n.$);for(l in c)h(o,l,s[l],c[l],t,n.$)},v=(n,t,l)=>{const o=t.i[l];let s,i,c=0;if(null!==o.l)s=o.p=X.createTextNode(o.l);else if(s=o.p=X.createElement(o.h),b(null,o,!1),null!=e&&s["s-si"]!==e&&s.classList.add(s["s-si"]=e),o.i)for(c=0;c<o.i.length;++c)i=v(n,o,c),i&&s.appendChild(i);return s},w=(e,t,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=v(null,l,s),c&&(o[s].p=c,r.insertBefore(c,t)))},k=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.p;j(n),e&&e.remove()}}},g=(e,n)=>e.h===n.h&&e.u===n.u,S=(e,n)=>{const t=n.p=e.p,l=e.i,o=n.i,s=n.l;null===s?(b(e,n,!1),null!==l&&null!==o?((e,n,t,l)=>{let o,s,i=0,c=0,r=0,u=0,a=n.length-1,f=n[0],d=n[a],y=l.length-1,$=l[0],h=l[y];for(;i<=a&&c<=y;)if(null==f)f=n[++i];else if(null==d)d=n[--a];else if(null==$)$=l[++c];else if(null==h)h=l[--y];else if(g(f,$))S(f,$),f=n[++i],$=l[++c];else if(g(d,h))S(d,h),d=n[--a],h=l[--y];else if(g(f,h))S(f,h),e.insertBefore(f.p,d.p.nextSibling),f=n[++i],h=l[--y];else if(g(d,$))S(d,$),e.insertBefore(d.p,f.p),d=n[--a],$=l[++c];else{for(r=-1,u=i;u<=a;++u)if(n[u]&&null!==n[u].u&&n[u].u===$.u){r=u;break}r>=0?(s=n[r],s.h!==$.h?o=v(n&&n[c],t,r):(S(s,$),n[r]=void 0,o=s.p),$=l[++c]):(o=v(n&&n[c],t,c),$=l[++c]),o&&f.p.parentNode.insertBefore(o,f.p)}i>a?w(e,null==l[y+1]?null:l[y+1].p,t,l,c,y):c>y&&k(n,i,a)})(t,l,n,o):null!==o?(null!==e.l&&(t.textContent=""),w(t,null,n,o,0,o.length-1)):null!==l&&k(l,0,l.length-1)):e.l!==s&&(t.data=s)},j=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(j)},C=(e,n)=>{n&&!e.k&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.k=n)))},M=(e,n)=>{if(e.$|=16,!(4&e.$))return C(e,e.g),ce((()=>O(e,n)));e.$|=512},O=(e,n)=>{const t=e.S;let l;return n&&(l=T(t,"componentWillLoad")),x(l,(()=>P(e,t,n)))},x=(e,n)=>L(e)?e.then(n):n(),L=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,P=async(e,n,t)=>{var l;const o=e.m,s=o["s-rc"];t&&(e=>{const n=e.j,t=e.m,l=n.$,o=((e,n)=>{var t;const l=$(n),o=K.get(l);if(e=11===e.nodeType?e:X,o)if("string"==typeof o){let n,s=y.get(e=e.head||e);if(s||y.set(e,s=new Set),!s.has(l)){{n=X.createElement("style"),n.innerHTML=o;const l=null!==(t=Y.C)&&void 0!==t?t:r(X);null!=l&&n.setAttribute("nonce",l),e.insertBefore(n,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"))})(e);E(e,n,o,t),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const n=null!==(l=o["s-p"])&&void 0!==l?l:[],t=()=>N(e);0===n.length?t():(Promise.all(n).then(t),e.$|=4,n.length=0)}},E=(t,l,o,s)=>{try{l=l.render(),t.$&=-17,t.$|=2,((t,l,o=!1)=>{const s=t.m,i=t.j,c=t.M||a(null,null),r=(e=>e&&e.h===f)(l)?l:u(null,null,l);if(n=s.tagName,i.O&&(r.o=r.o||{},i.O.map((([e,n])=>r.o[n]=s[e]))),o&&r.o)for(const e of Object.keys(r.o))s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.o[e]=s[e]);r.h=null,r.$|=4,t.M=r,r.p=c.p=s.shadowRoot||s,e=s["s-sc"],S(c,r)})(t,l,s)}catch(e){G(e,t.m)}return null},N=e=>{const n=e.m,t=e.S,l=e.g;64&e.$||(e.$|=64,U(n),T(t,"componentDidLoad"),e.L(n),l||R()),e.k&&(e.k(),e.k=void 0),512&e.$&&ie((()=>M(e,!1))),e.$&=-517},R=()=>{U(X.documentElement),ie((()=>(e=>{const n=Y.ce("appload",{detail:{namespace:"ionicons"}});return e.dispatchEvent(n),n})(Q)))},T=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){G(e)}},U=e=>e.classList.add("hydrated"),W=(e,n,t)=>{if(n.P){e.watchers&&(n.N=e.watchers);const l=Object.entries(n.P),o=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(o,e,{get(){return((e,n)=>V(this).R.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=V(e),s=o.m,i=o.R.get(n),r=o.$,u=o.S;if(t=((e,n)=>null==e||c(e)?e:4&n?"false"!==e&&(""===e||!!e):1&n?e+"":e)(t,l.P[n][0]),(!(8&r)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(o.R.set(n,t),u)){if(l.N&&128&r){const e=l.N[n];e&&e.map((e=>{try{u[e](t,i,n)}catch(e){G(e,s)}}))}2==(18&r)&&M(o,!1)}})(this,e,t,n)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;o.attributeChangedCallback=function(e,n,l){Y.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,n])=>15&n[0])).map((([e,l])=>{const o=l[1]||e;return t.set(o,e),512&l[0]&&n.O.push([e,o]),o}))}}return e},A=e=>{T(e,"connectedCallback")},H=e=>{T(e,"disconnectedCallback")},q=(e,n={})=>{var t;const l=[],o=n.exclude||[],s=Q.customElements,i=X.head,c=i.querySelector("meta[charset]"),u=X.createElement("style"),a=[];let f,d=!0;Object.assign(Y,n),Y.t=new URL(n.resourcesUrl||"./",X.baseURI).href,e.map((e=>{e[1].map((n=>{const t={$:n[0],v:n[1],P:n[2],T:n[3]};t.P=n[2],t.O=[],t.N={};const i=t.v,c=class extends HTMLElement{constructor(e){super(e),z(e=this,t),1&t.$&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):Y.jmp((()=>(e=>{if(0==(1&Y.$)){const n=V(e),t=n.j,l=()=>{};if(1&n.$)(null==n?void 0:n.S)?A(n.S):(null==n?void 0:n.U)&&n.U.then((()=>A(n.S)));else{n.$|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){C(n,n.g=t);break}}t.P&&Object.entries(t.P).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t,l,o)=>{if(0==(32&n.$)){n.$|=32;{if((o=J(t)).then){const e=()=>{};o=await o,e()}o.isProxied||(t.N=o.watchers,W(o,t,2),o.isProxied=!0);const e=()=>{};n.$|=8;try{new o(n)}catch(e){G(e)}n.$&=-9,n.$|=128,e(),A(n.S)}if(o.style){let e=o.style;const n=$(t);if(!K.has(n)){const l=()=>{};((e,n,t)=>{let l=K.get(e);ee&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,K.set(e,l)})(n,e,!!(1&t.$)),l()}}}const s=n.g,i=()=>M(n,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,n,t)}l()}})(this)))}disconnectedCallback(){Y.jmp((()=>(async()=>{if(0==(1&Y.$)){const e=V(this);(null==e?void 0:e.S)?H(e.S):(null==e?void 0:e.U)&&e.U.then((()=>H(e.S)))}})()))}componentOnReady(){return V(this).U}};t.W=e[0],o.includes(i)||s.get(i)||(l.push(i),s.define(i,W(c,t,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const e=null!==(t=Y.C)&&void 0!==t?t:r(X);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,c?c.nextSibling:i.firstChild)}d=!1,a.length?a.map((e=>e.connectedCallback())):Y.jmp((()=>f=setTimeout(R,30)))},D=e=>Y.C=e,F=new WeakMap,V=e=>F.get(e),_=(e,n)=>F.set(n.S=e,n),z=(e,n)=>{const t={$:0,m:e,j:n,R:new Map};return t.U=new Promise((e=>t.L=e)),e["s-p"]=[],e["s-rc"]=[],F.set(e,t)},B=(e,n)=>n in e,G=(e,n)=>(0,console.error)(e,n),I=new Map,J=e=>{const n=e.v.replace(/-/g,"_"),t=e.W,l=I.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(I.set(t,e),e[n])),G) /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},K=new Map,Q="undefined"!=typeof window?window:{},X=Q.document||{head:{}},Y={$:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},Z=e=>Promise.resolve(e),ee=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ne=[],te=[],le=(e,n)=>l=>{e.push(l),t||(t=!0,n&&4&Y.$?ie(se):Y.raf(se))},oe=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){G(e)}e.length=0},se=()=>{oe(ne),oe(te),(t=ne.length>0)&&Y.raf(se)},ie=e=>Z().then(e),ce=le(te,!0);export{f as H,o as a,q as b,d as c,l as g,u as h,Z as p,_ as r,D as s}