@3t-transform/threeteeui 0.0.1
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/dist/cjs/index-eb8fc323.js +1620 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/toolbar-656be6e6.js +34259 -0
- package/dist/cjs/tttx-page.cjs.entry.js +927 -0
- package/dist/cjs/tttx-worksheet.cjs.entry.js +47 -0
- package/dist/cjs/tttx.cjs.js +19 -0
- package/dist/collection/collection-manifest.json +13 -0
- package/dist/collection/components/patterns/tttx-page/tttx-page.css +162 -0
- package/dist/collection/components/patterns/tttx-page/tttx-page.js +213 -0
- package/dist/collection/components/patterns/tttx-page/tttx-page.stories.js +80 -0
- package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.css +134 -0
- package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.js +70 -0
- package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.stories.js +44 -0
- package/dist/collection/docs/gettingstarted-developer.stories.js +9 -0
- package/dist/collection/docs/template.stories.js +10 -0
- package/dist/collection/index.js +1 -0
- package/dist/components/index.d.ts +23 -0
- package/dist/components/index.js +3 -0
- package/dist/components/tttx-page.d.ts +11 -0
- package/dist/components/tttx-page.js +953 -0
- package/dist/components/tttx-worksheet.d.ts +11 -0
- package/dist/components/tttx-worksheet.js +6 -0
- package/dist/components/tttx-worksheet2.js +34288 -0
- package/dist/esm/index-4c11a593.js +1594 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/toolbar-cede4385.js +34231 -0
- package/dist/esm/tttx-page.entry.js +923 -0
- package/dist/esm/tttx-worksheet.entry.js +43 -0
- package/dist/esm/tttx.js +17 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/tttx/index.esm.js +0 -0
- package/dist/tttx/p-2681b874.js +2 -0
- package/dist/tttx/p-d038fe18.js +1 -0
- package/dist/tttx/p-d5c31f03.entry.js +1 -0
- package/dist/tttx/p-e40966f3.entry.js +1 -0
- package/dist/tttx/tttx.css +1 -0
- package/dist/tttx/tttx.esm.js +1 -0
- package/dist/types/components/patterns/tttx-page/tttx-page.d.ts +21 -0
- package/dist/types/components/patterns/tttx-page/tttx-page.stories.d.ts +48 -0
- package/dist/types/components/patterns/tttx-worksheet/tttx-worksheet.d.ts +9 -0
- package/dist/types/components/patterns/tttx-worksheet/tttx-worksheet.stories.d.ts +23 -0
- package/dist/types/components.d.ts +66 -0
- package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -0
- package/dist/types/docs/template.stories.d.ts +5 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1581 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +60 -0
- package/readme.md +90 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-4c11a593.js';
|
|
2
|
+
import { T as Toolbar, a as Button } from './toolbar-cede4385.js';
|
|
3
|
+
|
|
4
|
+
const tttxWorksheetCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto&display=swap\");*{box-sizing:border-box}.flex-start{justify-content:start}.flex-end{justify-content:end}.flex-centre{justify-content:center}[class^=col-]{display:flex;padding-left:8px !important;padding-right:8px !important}h1,h2,h3,h4,h5,h6,p,label,small{margin:0;padding:0}h1,h2,h3,h4,h5,h6,p,label{display:block}*{font-family:\"Roboto\", sans-serif}html,body{font-weight:normal;font-size:16px}h1{font-weight:700;font-size:24px}h2{font-weight:700;font-size:20px}h3{font-weight:700;font-size:18px}h4{font-weight:normal;font-size:14px;text-transform:uppercase}button{font-weight:500;font-size:14px;text-transform:uppercase}small{font-weight:normal;font-size:14px}label{font-weight:700;font-size:16px}:host{display:block}.worksheet__container,.worksheet__container--large,.worksheet__container--medium,.worksheet__container--small{position:absolute;top:104px;bottom:8px;left:0px;right:0px;overflow:auto;background-color:#ffffff;clear:both}.worksheet__container,.worksheet__container--medium,.worksheet__container--small,.worksheet__footer--medium,.worksheet__footer--small{margin:0px auto}.worksheet__container--large{margin:0px 16px}.worksheet__container--medium{width:900px}.worksheet__container--small{width:600px}.worksheet__footer--medium.dx-toolbar,.worksheet__footer--small.dx-toolbar{position:fixed;bottom:0px;left:0px;right:0px;padding:0 8px}.worksheet__footer--medium.dx-toolbar{width:900px}.worksheet__footer--small.dx-toolbar{width:600px}";
|
|
5
|
+
|
|
6
|
+
const TttxWorksheet = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.pageSize = 'large';
|
|
10
|
+
}
|
|
11
|
+
componentDidLoad() {
|
|
12
|
+
this.footer();
|
|
13
|
+
}
|
|
14
|
+
pageSizeIsNumeric() {
|
|
15
|
+
return /^\d+$/.test(this.pageSize);
|
|
16
|
+
}
|
|
17
|
+
pageSizeClasses(baseClassName) {
|
|
18
|
+
return this.pageSizeIsNumeric() ? baseClassName : `${baseClassName}--${this.pageSize}`;
|
|
19
|
+
}
|
|
20
|
+
footer() {
|
|
21
|
+
if (!['medium', 'small'].includes(this.pageSize)) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
new Toolbar(this.footerBar, {
|
|
25
|
+
items: [
|
|
26
|
+
{
|
|
27
|
+
location: 'after',
|
|
28
|
+
widget: Button,
|
|
29
|
+
options: {
|
|
30
|
+
text: 'save'
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
const customPageWidth = this.pageSizeIsNumeric ? { width: `${this.pageSize}px` } : {};
|
|
38
|
+
return (h(Host, null, h("div", { class: this.pageSizeClasses('worksheet__container'), style: Object.assign({}, customPageWidth) }, h("slot", null), h("div", { class: `worksheet__footer--${this.pageSize}`, ref: el => (this.footerBar = el) }))));
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
TttxWorksheet.style = tttxWorksheetCss;
|
|
42
|
+
|
|
43
|
+
export { TttxWorksheet as tttx_worksheet };
|
package/dist/esm/tttx.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-4c11a593.js';
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
Stencil Client Patch Browser v2.20.0 | MIT Licensed | https://stenciljs.com
|
|
5
|
+
*/
|
|
6
|
+
const patchBrowser = () => {
|
|
7
|
+
const importMeta = import.meta.url;
|
|
8
|
+
const opts = {};
|
|
9
|
+
if (importMeta !== '') {
|
|
10
|
+
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
11
|
+
}
|
|
12
|
+
return promiseResolve(opts);
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
patchBrowser().then(options => {
|
|
16
|
+
return bootstrapLazy([["tttx-worksheet",[[4,"tttx-worksheet",{"pageSize":[1,"page-size"]}]]],["tttx-page",[[0,"tttx-page",{"appName":[1,"app-name"],"pageTitle":[1,"page-title"],"lastUpdated":[1,"last-updated"],"manageAccountsUrl":[1,"manage-accounts-url"],"logoutUrl":[1,"logout-url"],"pageSize":[1,"page-size"],"helpUrl":[1,"help-url"]}]]]], options);
|
|
17
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/index.cjs.js');
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esm/index.js';
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let t,e,n=!1,l=!1,o=!1,s=!1;const r={},i=t=>"object"==(t=typeof t)||"function"===t,c=(t,e,...n)=>{let l=null,o=null,s=!1,r=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!i(l))&&(l+=""),s&&r?c[c.length-1].t+=l:c.push(s?f(null,l):l),r=s)};if(u(n),e){e.name&&(o=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const a=f(t,null);return a.l=e,c.length>0&&(a.o=c),a.i=o,a},f=(t,e)=>({u:0,$:t,t:e,h:null,o:null,l:null,i:null}),u={},a=new WeakMap,$=t=>"sc-"+t.m,d=(t,e,n,l,o,s)=>{if(n!==l){let r=G(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,o=h(n),s=h(l);e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("ref"===e)l&&l(t);else{const c=i(l);if((r||c&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]=l;else{const o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&s||o)&&!c&&t.setAttribute(e,l=!0===l?"":l)}}},y=/\s/,h=t=>t?t.split(y):[],m=(t,e,n,l)=>{const o=11===e.h.nodeType&&e.h.host?e.h.host:e.h,s=t&&t.l||r,i=e.l||r;for(l in s)l in i||d(o,l,s[l],void 0,n,e.u);for(l in i)d(o,l,s[l],i[l],n,e.u)},p=(l,s,r)=>{const i=s.o[r];let c,f,u,a=0;if(n||(o=!0,"slot"===i.$&&(i.u|=i.o?2:1)),1&i.u)c=i.h=Y.createTextNode("");else if(c=i.h=Y.createElement(2&i.u?"slot-fb":i.$),m(null,i,!1),i.o)for(a=0;a<i.o.length;++a)f=p(l,i,a),f&&c.appendChild(f);return c["s-hn"]=e,3&i.u&&(c["s-sr"]=!0,c["s-cr"]=t,c["s-sn"]=i.i||"",u=l&&l.o&&l.o[r],u&&u.$===i.$&&l.h&&b(l.h,!1)),c},b=(t,n)=>{Z.u|=1;const l=t.childNodes;for(let t=l.length-1;t>=0;t--){const s=l[t];s["s-hn"]!==e&&s["s-ol"]&&(k(s).insertBefore(s,j(s)),s["s-ol"].remove(),s["s-ol"]=void 0,o=!0),n&&b(s,n)}Z.u&=-2},w=(t,e,n,l,o,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(;o<=s;++o)l[o]&&(r=p(null,n,o),r&&(l[o].h=r,i.insertBefore(r,j(e))))},S=(t,e,n,o,s)=>{for(;e<=n;++e)(o=t[e])&&(s=o.h,T(o),l=!0,s["s-ol"]?s["s-ol"].remove():b(s,!0),s.remove())},g=(t,e)=>t.$===e.$&&("slot"!==t.$||t.i===e.i),j=t=>t&&t["s-ol"]||t,k=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,v=(t,e)=>{const n=e.h=t.h,l=t.o,o=e.o;"slot"===e.$||m(t,e,!1),null!==l&&null!==o?((t,e,n,l)=>{let o,s=0,r=0,i=e.length-1,c=e[0],f=e[i],u=l.length-1,a=l[0],$=l[u];for(;s<=i&&r<=u;)null==c?c=e[++s]:null==f?f=e[--i]:null==a?a=l[++r]:null==$?$=l[--u]:g(c,a)?(v(c,a),c=e[++s],a=l[++r]):g(f,$)?(v(f,$),f=e[--i],$=l[--u]):g(c,$)?("slot"!==c.$&&"slot"!==$.$||b(c.h.parentNode,!1),v(c,$),t.insertBefore(c.h,f.h.nextSibling),c=e[++s],$=l[--u]):g(f,a)?("slot"!==c.$&&"slot"!==$.$||b(f.h.parentNode,!1),v(f,a),t.insertBefore(f.h,c.h),f=e[--i],a=l[++r]):(o=p(e&&e[r],n,r),a=l[++r],o&&k(c.h).insertBefore(o,j(c.h)));s>i?w(t,null==l[u+1]?null:l[u+1].h,n,l,r,u):r>u&&S(e,s,i)})(n,l,e,o):null!==o?w(n,null,e,o,0,o.length-1):null!==l&&S(l,0,l.length-1)},M=t=>{const e=t.childNodes;let n,l,o,s,r,i;for(l=0,o=e.length;l<o;l++)if(n=e[l],1===n.nodeType){if(n["s-sr"])for(r=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(i=e[s].nodeType,e[s]["s-hn"]!==n["s-hn"]||""!==r){if(1===i&&r===e[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===i||3===i&&""!==e[s].textContent.trim()){n.hidden=!0;break}M(n)}},C=[],O=t=>{let e,n,o,s,r,i,c=0;const f=t.childNodes,u=f.length;for(;c<u;c++){if(e=f[c],e["s-sr"]&&(n=e["s-cr"])&&n.parentNode)for(o=n.parentNode.childNodes,s=e["s-sn"],i=o.length-1;i>=0;i--)n=o[i],n["s-cn"]||n["s-nr"]||n["s-hn"]===e["s-hn"]||(R(n,s)?(r=C.find((t=>t.p===n)),l=!0,n["s-sn"]=n["s-sn"]||s,r?r.S=e:C.push({S:e,p:n}),n["s-sr"]&&C.map((t=>{R(t.p,n["s-sn"])&&(r=C.find((t=>t.p===n)),r&&!t.S&&(t.S=r.S))}))):C.some((t=>t.p===n))||C.push({p:n}));1===e.nodeType&&O(e)}},R=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,T=t=>{t.l&&t.l.ref&&t.l.ref(null),t.o&&t.o.map(T)},x=(t,e)=>{e&&!t.g&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.g=e)))},N=(t,e)=>{if(t.u|=16,!(4&t.u))return x(t,t.j),ct((()=>P(t,e)));t.u|=512},P=(t,e)=>{const n=t.k;return W(void 0,(()=>E(t,n,e)))},E=async(t,e,n)=>{const l=t.v,o=l["s-rc"];n&&(t=>{const e=t.M;((t,e)=>{let n=$(e);const l=Q.get(n);if(t=11===t.nodeType?t:Y,l)if("string"==typeof l){let e,o=a.get(t=t.head||t);o||a.set(t,o=new Set),o.has(n)||(e=Y.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),o&&o.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l])})(t.v.getRootNode(),e)})(t);L(t,e),o&&(o.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>A(t);0===e.length?n():(Promise.all(e).then(n),t.u|=4,e.length=0)}},L=(s,r)=>{try{r=r.render(),s.u&=-17,s.u|=2,((s,r)=>{const i=s.v,a=s.M,$=s.C||f(null,null),d=(t=>t&&t.$===u)(r)?r:c(null,null,r);if(e=i.tagName,d.$=null,d.u|=4,s.C=d,d.h=$.h=i,t=i["s-cr"],n=0!=(1&a.u),l=!1,v($,d),Z.u|=1,o){let t,e,n,l,o,s;O(d.h);let r=0;for(;r<C.length;r++)t=C[r],e=t.p,e["s-ol"]||(n=Y.createTextNode(""),n["s-nr"]=e,e.parentNode.insertBefore(e["s-ol"]=n,e));for(r=0;r<C.length;r++)if(t=C[r],e=t.p,t.S){for(l=t.S.parentNode,o=t.S.nextSibling,n=e["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===e["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==e.parentNode||e.nextSibling!==o)&&e!==o&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),l.insertBefore(e,o))}else 1===e.nodeType&&(e.hidden=!0)}l&&M(d.h),Z.u&=-2,C.length=0})(s,r)}catch(t){I(t,s.v)}return null},A=t=>{const e=t.v,n=t.k,l=t.j;64&t.u||(t.u|=64,q(e),U(n,"componentDidLoad"),t.O(e),l||H()),t.g&&(t.g(),t.g=void 0),512&t.u&&it((()=>N(t,!1))),t.u&=-517},H=()=>{q(Y.documentElement),it((()=>(t=>{const e=Z.ce("appload",{detail:{namespace:"tttx"}});return t.dispatchEvent(e),e})(X)))},U=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){I(t)}},W=(t,e)=>t&&t.then?t.then(e):e(),q=t=>t.classList.add("hydrated"),D=(t,e,n)=>{if(e.R){const l=Object.entries(e.R),o=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,t,{get(){return((t,e)=>_(this).T.get(e))(0,t)},set(n){((t,e,n,l)=>{const o=_(t),s=o.T.get(e),r=o.u,c=o.k;n=((t,e)=>null==t||i(t)?t:1&e?t+"":t)(n,l.R[e][0]),8&r&&void 0!==s||n===s||Number.isNaN(s)&&Number.isNaN(n)||(o.T.set(e,n),c&&2==(18&r)&&N(o,!1))})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const e=new Map;o.attributeChangedCallback=function(t,n,l){Z.jmp((()=>{const n=e.get(t);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}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,n])=>{const l=n[1]||t;return e.set(l,t),l}))}}return t},F=(t,e={})=>{const n=[],l=e.exclude||[],o=X.customElements,s=Y.head,r=s.querySelector("meta[charset]"),i=Y.createElement("style"),c=[];let f,u=!0;Object.assign(Z,e),Z.N=new URL(e.resourcesUrl||"./",Y.baseURI).href,t.map((t=>{t[1].map((e=>{const s={u:e[0],m:e[1],R:e[2],P:e[3]};s.R=e[2];const r=s.m,i=class extends HTMLElement{constructor(t){super(t),B(t=this,s)}connectedCallback(){f&&(clearTimeout(f),f=null),u?c.push(this):Z.jmp((()=>(t=>{if(0==(1&Z.u)){const e=_(t),n=e.M,l=()=>{};if(!(1&e.u)){e.u|=1,12&n.u&&(t=>{const e=t["s-cr"]=Y.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){x(e,e.j=n);break}}n.R&&Object.entries(n.R).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,o)=>{if(0==(32&e.u)){{if(e.u|=32,(o=K(n)).then){const t=()=>{};o=await o,t()}o.isProxied||(D(o,n,2),o.isProxied=!0);const t=()=>{};e.u|=8;try{new o(e)}catch(t){I(t)}e.u&=-9,t()}if(o.style){let t=o.style;const e=$(n);if(!Q.has(e)){const l=()=>{};((t,e,n)=>{let l=Q.get(t);et&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,Q.set(t,l)})(e,t,!!(1&n.u)),l()}}}const s=e.j,r=()=>N(e,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){Z.jmp((()=>{}))}componentOnReady(){return _(this).L}};s.A=t[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,D(i,s,1)))}))})),i.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",i.setAttribute("data-styles",""),s.insertBefore(i,r?r.nextSibling:s.firstChild),u=!1,c.length?c.map((t=>t.connectedCallback())):Z.jmp((()=>f=setTimeout(H,30)))},V=new WeakMap,_=t=>V.get(t),z=(t,e)=>V.set(e.k=t,e),B=(t,e)=>{const n={u:0,v:t,M:e,T:new Map};return n.L=new Promise((t=>n.O=t)),t["s-p"]=[],t["s-rc"]=[],V.set(t,n)},G=(t,e)=>e in t,I=(t,e)=>(0,console.error)(t,e),J=new Map,K=t=>{const e=t.m.replace(/-/g,"_"),n=t.A,l=J.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(J.set(n,t),t[e])),I)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Q=new Map,X="undefined"!=typeof window?window:{},Y=X.document||{head:{}},Z={u:0,N:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},tt=t=>Promise.resolve(t),et=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),nt=[],lt=[],ot=(t,e)=>n=>{t.push(n),s||(s=!0,e&&4&Z.u?it(rt):Z.raf(rt))},st=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){I(t)}t.length=0},rt=()=>{st(nt),st(lt),(s=nt.length>0)&&Z.raf(rt)},it=t=>tt().then(t),ct=ot(lt,!0);export{u as H,F as b,c as h,tt as p,z as r}
|