@paperless/core 0.1.0-alpha.19 → 0.1.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/build/{p-aae3d4f0.entry.js → p-06a38756.entry.js} +1 -1
- package/dist/{paperless/p-47b52f92.entry.js → build/p-19afe191.entry.js} +1 -1
- package/dist/build/{p-76464e0b.js → p-229f113b.js} +1 -1
- package/dist/build/{p-8501ba07.entry.js → p-23980fbb.entry.js} +1 -1
- package/dist/build/{p-f65d7bbf.entry.js → p-31f80006.entry.js} +1 -1
- package/dist/build/{p-adcb0b93.entry.js → p-5f0ec763.entry.js} +1 -1
- package/dist/build/{p-42dab9d4.entry.js → p-6c6c1137.entry.js} +1 -1
- package/dist/build/{p-5ec6ea71.entry.js → p-6cd89223.entry.js} +1 -1
- package/dist/build/{p-8c8fb70b.entry.js → p-80bf9d06.entry.js} +1 -1
- package/dist/build/p-c24c42de.entry.js +1 -0
- package/dist/build/{p-bbec0e86.entry.js → p-e80637b9.entry.js} +1 -1
- package/dist/build/{p-17c11169.entry.js → p-ec52095f.entry.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{index-a46a39a5.js → index-6b6e08cc.js} +0 -10
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/p-avatar.cjs.entry.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +2 -2
- package/dist/cjs/p-counter.cjs.entry.js +1 -1
- package/dist/cjs/p-divider.cjs.entry.js +1 -1
- package/dist/cjs/p-helper.cjs.entry.js +1 -1
- package/dist/cjs/p-illustration.cjs.entry.js +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination-item.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination.cjs.entry.js +11 -11
- package/dist/cjs/p-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/paperless.cjs.js +2 -2
- package/dist/collection/components/molecules/pagination/pagination.component.js +14 -14
- package/dist/collection/components/molecules/pagination/pagination.value-accessor.js +2 -2
- package/dist/components/loader.component.js +1 -1
- package/dist/components/p-pagination.js +11 -11
- package/dist/esm/{index-a68e547b.js → index-5c917d13.js} +0 -10
- package/dist/esm/loader.js +2 -2
- package/dist/esm/p-avatar.entry.js +1 -1
- package/dist/esm/p-button_3.entry.js +2 -2
- package/dist/esm/p-counter.entry.js +1 -1
- package/dist/esm/p-divider.entry.js +1 -1
- package/dist/esm/p-helper.entry.js +1 -1
- package/dist/esm/p-illustration.entry.js +1 -1
- package/dist/esm/p-info-panel.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +1 -1
- package/dist/esm/p-pagination-item.entry.js +1 -1
- package/dist/esm/p-pagination.entry.js +11 -11
- package/dist/esm/p-tooltip.entry.js +1 -1
- package/dist/esm/paperless.js +2 -2
- package/dist/index.html +1 -1
- package/dist/paperless/{p-aae3d4f0.entry.js → p-06a38756.entry.js} +1 -1
- package/dist/{build/p-47b52f92.entry.js → paperless/p-19afe191.entry.js} +1 -1
- package/dist/paperless/{p-76464e0b.js → p-229f113b.js} +1 -1
- package/dist/paperless/{p-8501ba07.entry.js → p-23980fbb.entry.js} +1 -1
- package/dist/paperless/{p-f65d7bbf.entry.js → p-31f80006.entry.js} +1 -1
- package/dist/paperless/{p-adcb0b93.entry.js → p-5f0ec763.entry.js} +1 -1
- package/dist/paperless/{p-42dab9d4.entry.js → p-6c6c1137.entry.js} +1 -1
- package/dist/paperless/{p-5ec6ea71.entry.js → p-6cd89223.entry.js} +1 -1
- package/dist/paperless/{p-8c8fb70b.entry.js → p-80bf9d06.entry.js} +1 -1
- package/dist/paperless/p-c24c42de.entry.js +1 -0
- package/dist/paperless/{p-bbec0e86.entry.js → p-e80637b9.entry.js} +1 -1
- package/dist/paperless/{p-17c11169.entry.js → p-ec52095f.entry.js} +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +47 -47
- package/dist/types/components/molecules/pagination/pagination.component.d.ts +2 -2
- package/dist/types/components.d.ts +9 -9
- package/package.json +1 -1
- package/dist/build/p-554b5a22.entry.js +0 -1
- package/dist/paperless/p-554b5a22.entry.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
let e,t,n,l=!1,o=!1,s=!1,r=!1;const c="undefined"!=typeof window?window:{},i=c.document||{head:{}},f={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},a=e=>Promise.resolve(e),u=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),$=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=h(e,n),r=d(t,o),c=p(n);f.ael(s,l,r,c),(t.o=t.o||[]).push((()=>f.rel(s,l,r,c)))}))},d=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){fe(e)}},h=(e,t)=>4&t?i:e,p=e=>0!=(2&e),y=new WeakMap,m=e=>"sc-"+e.$,b={},w=e=>"object"==(e=typeof e)||"function"===e,v=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const c=[],i=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!w(l))&&(l+=""),s&&r?c[c.length-1].h+=l:c.push(s?S(null,l):l),r=s)};if(i(n),t){t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,j);const f=S(e,null);return f.p=t,c.length>0&&(f.m=c),f.v=o,f},S=(e,t)=>({t:0,S:e,h:t,g:null,m:null,p:null,v:null}),g={},j={forEach:(e,t)=>e.map(k).forEach(t),map:(e,t)=>e.map(k).map(t).map(M)},k=e=>({vattrs:e.p,vchildren:e.m,vkey:e.j,vname:e.v,vtag:e.S,vtext:e.h}),M=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),v(e.vtag,t,...e.vchildren||[])}const t=S(e.vtag,e.vtext);return t.p=e.vattrs,t.m=e.vchildren,t.j=e.vkey,t.v=e.vname,t},O=(e,t,n,l,o,s)=>{if(n!==l){let r=ie(e,t),i=t.toLowerCase();if("class"===t){const t=e.classList,o=R(n),s=R(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const c=w(l);if((r||c&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||o)&&!c&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):ie(c,i)?i.slice(2):i[2]+t.slice(3),n&&f.rel(e,t,n,!1),l&&f.ael(e,t,l,!1)}},C=/\s/,R=e=>e?e.split(C):[],T=(e,t,n,l)=>{const o=11===t.g.nodeType&&t.g.host?t.g.host:t.g,s=e&&e.p||b,r=t.p||b;for(l in s)l in r||O(o,l,s[l],void 0,n,t.t);for(l in r)O(o,l,s[l],r[l],n,t.t)},x=(o,r,c,f)=>{const a=r.m[c];let u,$,d,h=0;if(l||(s=!0,"slot"===a.S&&(e&&f.classList.add(e+"-s"),a.t|=a.m?2:1)),null!==a.h)u=a.g=i.createTextNode(a.h);else if(1&a.t)u=a.g=i.createTextNode("");else if(u=a.g=i.createElement(2&a.t?"slot-fb":a.S),T(null,a,!1),null!=e&&u["s-si"]!==e&&u.classList.add(u["s-si"]=e),a.m)for(h=0;h<a.m.length;++h)$=x(o,a,h,u),$&&u.appendChild($);return u["s-hn"]=n,3&a.t&&(u["s-sr"]=!0,u["s-cr"]=t,u["s-sn"]=a.v||"",d=o&&o.m&&o.m[c],d&&d.S===a.S&&o.g&&E(o.g,!1)),u},E=(e,t)=>{f.t|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const o=l[e];o["s-hn"]!==n&&o["s-ol"]&&(F(o).insertBefore(o,A(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&E(o,t)}f.t&=-2},N=(e,t,l,o,s,r)=>{let c,i=e["s-cr"]&&e["s-cr"].parentNode||e;for(i.shadowRoot&&i.tagName===n&&(i=i.shadowRoot);s<=r;++s)o[s]&&(c=x(null,l,s,e),c&&(o[s].g=c,i.insertBefore(c,A(t))))},P=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.g,_(l),o=!0,s["s-ol"]?s["s-ol"].remove():E(s,!0),s.remove())},W=(e,t)=>e.S===t.S&&("slot"!==e.S||e.v===t.v),A=e=>e&&e["s-ol"]||e,F=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,H=(e,t)=>{const n=t.g=e.g,l=e.m,o=t.m,s=t.h;let r;null===s?("slot"===t.S||T(e,t,!1),null!==l&&null!==o?((e,t,n,l)=>{let o,s=0,r=0,c=t.length-1,i=t[0],f=t[c],a=l.length-1,u=l[0],$=l[a];for(;s<=c&&r<=a;)null==i?i=t[++s]:null==f?f=t[--c]:null==u?u=l[++r]:null==$?$=l[--a]:W(i,u)?(H(i,u),i=t[++s],u=l[++r]):W(f,$)?(H(f,$),f=t[--c],$=l[--a]):W(i,$)?("slot"!==i.S&&"slot"!==$.S||E(i.g.parentNode,!1),H(i,$),e.insertBefore(i.g,f.g.nextSibling),i=t[++s],$=l[--a]):W(f,u)?("slot"!==i.S&&"slot"!==$.S||E(f.g.parentNode,!1),H(f,u),e.insertBefore(f.g,i.g),f=t[--c],u=l[++r]):(o=x(t&&t[r],n,r,e),u=l[++r],o&&F(i.g).insertBefore(o,A(i.g)));s>c?N(e,null==l[a+1]?null:l[a+1].g,n,l,r,a):r>a&&P(t,s,c)})(n,l,t,o):null!==o?(null!==e.h&&(n.textContent=""),N(n,null,t,o,0,o.length-1)):null!==l&&P(l,0,l.length-1)):(r=n["s-cr"])?r.parentNode.textContent=s:e.h!==s&&(n.data=s)},L=e=>{const t=e.childNodes;let n,l,o,s,r,c;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(r=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(c=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==r){if(1===c&&r===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===c||3===c&&""!==t[s].textContent.trim()){n.hidden=!0;break}L(n)}},U=[],q=e=>{let t,n,l,s,r,c,i=0;const f=e.childNodes,a=f.length;for(;i<a;i++){if(t=f[i],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=t["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(V(n,s)?(r=U.find((e=>e.k===n)),o=!0,n["s-sn"]=n["s-sn"]||s,r?r.M=t:U.push({M:t,k:n}),n["s-sr"]&&U.map((e=>{V(e.k,n["s-sn"])&&(r=U.find((e=>e.k===n)),r&&!e.M&&(e.M=r.M))}))):U.some((e=>e.k===n))||U.push({k:n}));1===t.nodeType&&q(t)}},V=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,_=e=>{e.p&&e.p.ref&&e.p.ref(null),e.m&&e.m.map(_)},z=e=>se(e).O,B=(e,t,n)=>{const l=z(e);return{emit:e=>D(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},D=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},G=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},I=(e,t)=>{if(e.t|=16,!(4&e.t))return G(e,e.R),we((()=>J(e,t)));e.t|=512},J=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>Z(n,e,t))),e.u=null)),l=ee(l,(()=>Z(n,"componentWillRender"))),ee(l,(()=>K(e,n,t)))},K=async(e,t,n)=>{const l=e.O,o=l["s-rc"];n&&(e=>{const t=e.T,n=e.O,l=t.t,o=((e,t)=>{let n=m(t);const l=$e.get(n);if(e=11===e.nodeType?e:i,l)if("string"==typeof l){let t,o=y.get(e=e.head||e);o||y.set(e,o=new Set),o.has(n)||(t=i.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);Q(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>X(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},Q=(r,c)=>{try{c=c.render(),r.t&=-17,r.t|=2,((r,c)=>{const a=r.O,u=r.T,$=r.N||S(null,null),d=(e=>e&&e.S===g)(c)?c:v(null,null,c);if(n=a.tagName,u.P&&(d.p=d.p||{},u.P.map((([e,t])=>d.p[t]=a[e]))),d.S=null,d.t|=4,r.N=d,d.g=$.g=a.shadowRoot||a,e=a["s-sc"],t=a["s-cr"],l=0!=(1&u.t),o=!1,H($,d),f.t|=1,s){let e,t,n,l,o,s;q(d.g);let r=0;for(;r<U.length;r++)e=U[r],t=e.k,t["s-ol"]||(n=i.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(r=0;r<U.length;r++)if(e=U[r],t=e.k,e.M){for(l=e.M.parentNode,o=e.M.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}o&&L(d.g),f.t&=-2,U.length=0})(r,c)}catch(e){fe(e,r.O)}return null},X=e=>{const t=e.O,n=e.R;64&e.t||(e.t|=64,te(t),e.W(t),n||Y()),e.C&&(e.C(),e.C=void 0),512&e.t&&be((()=>I(e,!1))),e.t&=-517},Y=()=>{te(i.documentElement),be((()=>D(c,"appload",{detail:{namespace:"paperless"}})))},Z=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){fe(e)}},ee=(e,t)=>e&&e.then?e.then(t):t(),te=e=>e.classList.add("hydrated"),ne=(e,t,n)=>{if(t.A){e.watchers&&(t.F=e.watchers);const l=Object.entries(t.A),o=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,e,{get(){return((e,t)=>se(this).H.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=se(e),s=o.O,r=o.H.get(t),c=o.t,i=o.i;if(n=((e,t)=>null==e||w(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.A[t][0]),(!(8&c)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(o.H.set(t,n),i)){if(l.F&&128&c){const e=l.F[t];e&&e.map((e=>{try{i[e](n,r,t)}catch(e){fe(e,s)}}))}if(2==(18&c)){if(i.componentShouldUpdate&&!1===i.componentShouldUpdate(n,r,t))return;I(o,!1)}}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){f.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.P.push([e,o]),o}))}}return e},le=(e,t={})=>{const n=[],l=t.exclude||[],o=c.customElements,s=i.head,r=s.querySelector("meta[charset]"),a=i.createElement("style"),d=[];let h,p=!0;Object.assign(f,t),f.l=new URL(t.resourcesUrl||"./",i.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],$:t[1],A:t[2],L:t[3]};s.A=t[2],s.L=t[3],s.P=[],s.F={};const r=s.$,c=class extends HTMLElement{constructor(e){super(e),ce(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),p?d.push(this):f.jmp((()=>(e=>{if(0==(1&f.t)){const t=se(e),n=t.T,l=()=>{};if(1&t.t)$(e,t,n.L);else{t.t|=1,12&n.t&&(e=>{const t=e["s-cr"]=i.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){G(t,t.R=n);break}}n.A&&Object.entries(n.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=ue(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.F=o.watchers,ne(o,n,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(e){fe(e)}t.t&=-9,t.t|=128,e()}if(o.style){let e=o.style;const t=m(n);if(!$e.has(t)){const l=()=>{};((e,t,n)=>{let l=$e.get(e);u&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,$e.set(e,l)})(t,e,!!(1&n.t)),l()}}}const s=t.R,r=()=>I(t,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(()=>{if(0==(1&f.t)){const e=se(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return se(this).U}};s.q=e[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,ne(c,s,1)))}))})),a.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",a.setAttribute("data-styles",""),s.insertBefore(a,r?r.nextSibling:s.firstChild),p=!1,d.length?d.map((e=>e.connectedCallback())):f.jmp((()=>h=setTimeout(Y,30)))},oe=new WeakMap,se=e=>oe.get(e),re=(e,t)=>oe.set(t.i=e,t),ce=(e,t)=>{const n={t:0,O:e,T:t,H:new Map};return n.U=new Promise((e=>n.W=e)),e["s-p"]=[],e["s-rc"]=[],$(e,n,t.L),oe.set(e,n)},ie=(e,t)=>t in e,fe=(e,t)=>(0,console.error)(e,t),ae=new Map,ue=e=>{const t=e.$.replace(/-/g,"_"),n=e.q,l=ae.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(ae.set(n,e),e[t])),fe)
|
|
1
|
+
let e,t,n,l=!1,o=!1,s=!1,r=!1;const c="undefined"!=typeof window?window:{},i=c.document||{head:{}},f={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},a=e=>Promise.resolve(e),u=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),$=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=h(e,n),r=d(t,o),c=p(n);f.ael(s,l,r,c),(t.o=t.o||[]).push((()=>f.rel(s,l,r,c)))}))},d=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){fe(e)}},h=(e,t)=>4&t?i:e,p=e=>0!=(2&e),y=new WeakMap,m=e=>"sc-"+e.$,b={},w=e=>"object"==(e=typeof e)||"function"===e,v=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const c=[],i=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!w(l))&&(l+=""),s&&r?c[c.length-1].h+=l:c.push(s?S(null,l):l),r=s)};if(i(n),t){t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,j);const f=S(e,null);return f.p=t,c.length>0&&(f.m=c),f.v=o,f},S=(e,t)=>({t:0,S:e,h:t,g:null,m:null,p:null,v:null}),g={},j={forEach:(e,t)=>e.map(k).forEach(t),map:(e,t)=>e.map(k).map(t).map(M)},k=e=>({vattrs:e.p,vchildren:e.m,vkey:e.j,vname:e.v,vtag:e.S,vtext:e.h}),M=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),v(e.vtag,t,...e.vchildren||[])}const t=S(e.vtag,e.vtext);return t.p=e.vattrs,t.m=e.vchildren,t.j=e.vkey,t.v=e.vname,t},O=(e,t,n,l,o,s)=>{if(n!==l){let r=ie(e,t),i=t.toLowerCase();if("class"===t){const t=e.classList,o=R(n),s=R(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const c=w(l);if((r||c&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||o)&&!c&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):ie(c,i)?i.slice(2):i[2]+t.slice(3),n&&f.rel(e,t,n,!1),l&&f.ael(e,t,l,!1)}},C=/\s/,R=e=>e?e.split(C):[],T=(e,t,n,l)=>{const o=11===t.g.nodeType&&t.g.host?t.g.host:t.g,s=e&&e.p||b,r=t.p||b;for(l in s)l in r||O(o,l,s[l],void 0,n,t.t);for(l in r)O(o,l,s[l],r[l],n,t.t)},x=(o,r,c,f)=>{const a=r.m[c];let u,$,d,h=0;if(l||(s=!0,"slot"===a.S&&(e&&f.classList.add(e+"-s"),a.t|=a.m?2:1)),null!==a.h)u=a.g=i.createTextNode(a.h);else if(1&a.t)u=a.g=i.createTextNode("");else if(u=a.g=i.createElement(2&a.t?"slot-fb":a.S),T(null,a,!1),null!=e&&u["s-si"]!==e&&u.classList.add(u["s-si"]=e),a.m)for(h=0;h<a.m.length;++h)$=x(o,a,h,u),$&&u.appendChild($);return u["s-hn"]=n,3&a.t&&(u["s-sr"]=!0,u["s-cr"]=t,u["s-sn"]=a.v||"",d=o&&o.m&&o.m[c],d&&d.S===a.S&&o.g&&E(o.g,!1)),u},E=(e,t)=>{f.t|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const o=l[e];o["s-hn"]!==n&&o["s-ol"]&&(F(o).insertBefore(o,A(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&E(o,t)}f.t&=-2},N=(e,t,l,o,s,r)=>{let c,i=e["s-cr"]&&e["s-cr"].parentNode||e;for(i.shadowRoot&&i.tagName===n&&(i=i.shadowRoot);s<=r;++s)o[s]&&(c=x(null,l,s,e),c&&(o[s].g=c,i.insertBefore(c,A(t))))},P=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.g,_(l),o=!0,s["s-ol"]?s["s-ol"].remove():E(s,!0),s.remove())},W=(e,t)=>e.S===t.S&&("slot"!==e.S||e.v===t.v),A=e=>e&&e["s-ol"]||e,F=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,H=(e,t)=>{const n=t.g=e.g,l=e.m,o=t.m,s=t.h;let r;null===s?("slot"===t.S||T(e,t,!1),null!==l&&null!==o?((e,t,n,l)=>{let o,s=0,r=0,c=t.length-1,i=t[0],f=t[c],a=l.length-1,u=l[0],$=l[a];for(;s<=c&&r<=a;)null==i?i=t[++s]:null==f?f=t[--c]:null==u?u=l[++r]:null==$?$=l[--a]:W(i,u)?(H(i,u),i=t[++s],u=l[++r]):W(f,$)?(H(f,$),f=t[--c],$=l[--a]):W(i,$)?("slot"!==i.S&&"slot"!==$.S||E(i.g.parentNode,!1),H(i,$),e.insertBefore(i.g,f.g.nextSibling),i=t[++s],$=l[--a]):W(f,u)?("slot"!==i.S&&"slot"!==$.S||E(f.g.parentNode,!1),H(f,u),e.insertBefore(f.g,i.g),f=t[--c],u=l[++r]):(o=x(t&&t[r],n,r,e),u=l[++r],o&&F(i.g).insertBefore(o,A(i.g)));s>c?N(e,null==l[a+1]?null:l[a+1].g,n,l,r,a):r>a&&P(t,s,c)})(n,l,t,o):null!==o?(null!==e.h&&(n.textContent=""),N(n,null,t,o,0,o.length-1)):null!==l&&P(l,0,l.length-1)):(r=n["s-cr"])?r.parentNode.textContent=s:e.h!==s&&(n.data=s)},L=e=>{const t=e.childNodes;let n,l,o,s,r,c;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(r=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(c=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==r){if(1===c&&r===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===c||3===c&&""!==t[s].textContent.trim()){n.hidden=!0;break}L(n)}},U=[],q=e=>{let t,n,l,s,r,c,i=0;const f=e.childNodes,a=f.length;for(;i<a;i++){if(t=f[i],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=t["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(V(n,s)?(r=U.find((e=>e.k===n)),o=!0,n["s-sn"]=n["s-sn"]||s,r?r.M=t:U.push({M:t,k:n}),n["s-sr"]&&U.map((e=>{V(e.k,n["s-sn"])&&(r=U.find((e=>e.k===n)),r&&!e.M&&(e.M=r.M))}))):U.some((e=>e.k===n))||U.push({k:n}));1===t.nodeType&&q(t)}},V=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,_=e=>{e.p&&e.p.ref&&e.p.ref(null),e.m&&e.m.map(_)},z=e=>se(e).O,B=(e,t,n)=>{const l=z(e);return{emit:e=>D(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},D=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},G=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},I=(e,t)=>{if(e.t|=16,!(4&e.t))return G(e,e.R),we((()=>J(e,t)));e.t|=512},J=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>Z(n,e,t))),e.u=null)),l=ee(l,(()=>Z(n,"componentWillRender"))),ee(l,(()=>K(e,n,t)))},K=async(e,t,n)=>{const l=e.O,o=l["s-rc"];n&&(e=>{const t=e.T,n=e.O,l=t.t,o=((e,t)=>{let n=m(t);const l=$e.get(n);if(e=11===e.nodeType?e:i,l)if("string"==typeof l){let t,o=y.get(e=e.head||e);o||y.set(e,o=new Set),o.has(n)||(t=i.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);Q(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>X(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},Q=(r,c)=>{try{c=c.render(),r.t&=-17,r.t|=2,((r,c)=>{const a=r.O,u=r.T,$=r.N||S(null,null),d=(e=>e&&e.S===g)(c)?c:v(null,null,c);if(n=a.tagName,d.S=null,d.t|=4,r.N=d,d.g=$.g=a.shadowRoot||a,e=a["s-sc"],t=a["s-cr"],l=0!=(1&u.t),o=!1,H($,d),f.t|=1,s){let e,t,n,l,o,s;q(d.g);let r=0;for(;r<U.length;r++)e=U[r],t=e.k,t["s-ol"]||(n=i.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(r=0;r<U.length;r++)if(e=U[r],t=e.k,e.M){for(l=e.M.parentNode,o=e.M.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}o&&L(d.g),f.t&=-2,U.length=0})(r,c)}catch(e){fe(e,r.O)}return null},X=e=>{const t=e.O,n=e.R;64&e.t||(e.t|=64,te(t),e.P(t),n||Y()),e.C&&(e.C(),e.C=void 0),512&e.t&&be((()=>I(e,!1))),e.t&=-517},Y=()=>{te(i.documentElement),be((()=>D(c,"appload",{detail:{namespace:"paperless"}})))},Z=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){fe(e)}},ee=(e,t)=>e&&e.then?e.then(t):t(),te=e=>e.classList.add("hydrated"),ne=(e,t,n)=>{if(t.W){e.watchers&&(t.A=e.watchers);const l=Object.entries(t.W),o=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,e,{get(){return((e,t)=>se(this).F.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=se(e),s=o.O,r=o.F.get(t),c=o.t,i=o.i;if(n=((e,t)=>null==e||w(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.W[t][0]),(!(8&c)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(o.F.set(t,n),i)){if(l.A&&128&c){const e=l.A[t];e&&e.map((e=>{try{i[e](n,r,t)}catch(e){fe(e,s)}}))}if(2==(18&c)){if(i.componentShouldUpdate&&!1===i.componentShouldUpdate(n,r,t))return;I(o,!1)}}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;o.attributeChangedCallback=function(e,n,l){f.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,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},le=(e,t={})=>{const n=[],l=t.exclude||[],o=c.customElements,s=i.head,r=s.querySelector("meta[charset]"),a=i.createElement("style"),d=[];let h,p=!0;Object.assign(f,t),f.l=new URL(t.resourcesUrl||"./",i.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],$:t[1],W:t[2],H:t[3]};s.W=t[2],s.H=t[3],s.A={};const r=s.$,c=class extends HTMLElement{constructor(e){super(e),ce(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),p?d.push(this):f.jmp((()=>(e=>{if(0==(1&f.t)){const t=se(e),n=t.T,l=()=>{};if(1&t.t)$(e,t,n.H);else{t.t|=1,12&n.t&&(e=>{const t=e["s-cr"]=i.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){G(t,t.R=n);break}}n.W&&Object.entries(n.W).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=ue(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.A=o.watchers,ne(o,n,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(e){fe(e)}t.t&=-9,t.t|=128,e()}if(o.style){let e=o.style;const t=m(n);if(!$e.has(t)){const l=()=>{};((e,t,n)=>{let l=$e.get(e);u&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,$e.set(e,l)})(t,e,!!(1&n.t)),l()}}}const s=t.R,r=()=>I(t,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(()=>{if(0==(1&f.t)){const e=se(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return se(this).L}};s.U=e[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,ne(c,s,1)))}))})),a.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",a.setAttribute("data-styles",""),s.insertBefore(a,r?r.nextSibling:s.firstChild),p=!1,d.length?d.map((e=>e.connectedCallback())):f.jmp((()=>h=setTimeout(Y,30)))},oe=new WeakMap,se=e=>oe.get(e),re=(e,t)=>oe.set(t.i=e,t),ce=(e,t)=>{const n={t:0,O:e,T:t,F:new Map};return n.L=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],$(e,n,t.H),oe.set(e,n)},ie=(e,t)=>t in e,fe=(e,t)=>(0,console.error)(e,t),ae=new Map,ue=e=>{const t=e.$.replace(/-/g,"_"),n=e.U,l=ae.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(ae.set(n,e),e[t])),fe)
|
|
2
2
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},$e=new Map,de=[],he=[],pe=(e,t)=>n=>{e.push(n),r||(r=!0,t&&4&f.t?be(me):f.raf(me))},ye=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){fe(e)}e.length=0},me=()=>{ye(de),ye(he),(r=de.length>0)&&f.raf(me)},be=e=>a().then(e),we=pe(he,!0);export{g as H,le as b,B as c,z as g,v as h,a as p,re as r}
|