@revolist/revogrid 4.12.12 → 4.13.2
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/{column.drag.plugin-0ce0b39a.js → column.drag.plugin-0f367fe1.js} +2 -1
- package/dist/cjs/column.drag.plugin-0f367fe1.js.map +1 -0
- package/dist/cjs/column.service-b59380a3.js.map +1 -1
- package/dist/cjs/{sorting.sign-a1e9d97a.js → grouping.row.renderer-d6119ced.js} +6 -6
- package/dist/cjs/grouping.row.renderer-d6119ced.js.map +1 -0
- package/dist/cjs/index.cjs.js +7 -6
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/revo-grid.cjs.entry.js +2 -2
- package/dist/cjs/revo-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-data_4.cjs.entry.js +5 -5
- package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +1 -1
- package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -1
- package/dist/collection/components/revoGrid/revo-grid-style.css +109 -197
- package/dist/collection/plugins/filter/filter.style.css +12 -25
- package/dist/collection/plugins/sorting/sorting.plugin.js +2 -0
- package/dist/collection/plugins/sorting/sorting.plugin.js.map +1 -1
- package/dist/collection/store/selection/selection.store.js.map +1 -1
- package/dist/esm/{column.drag.plugin-017c4fb3.js → column.drag.plugin-d201beb7.js} +2 -2
- package/dist/esm/{column.drag.plugin-017c4fb3.js.map → column.drag.plugin-d201beb7.js.map} +1 -1
- package/dist/esm/column.service-f39c0a1d.js.map +1 -1
- package/dist/esm/{sorting.sign-c02e3b12.js → grouping.row.renderer-95f32c6b.js} +6 -6
- package/dist/esm/grouping.row.renderer-95f32c6b.js.map +1 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/revo-grid.entry.js +2 -2
- package/dist/esm/revo-grid.entry.js.map +1 -1
- package/dist/esm/revogr-data_4.entry.js +1 -1
- package/dist/esm/revogr-filter-panel.entry.js +1 -1
- package/dist/esm/revogr-filter-panel.entry.js.map +1 -1
- package/dist/revo-grid/app-globals-6b929fd8.js +8 -1
- package/dist/revo-grid/app-globals-6b929fd8.js.map +1 -1
- package/dist/revo-grid/column.drag.plugin-d201beb7.js +2522 -0
- package/dist/revo-grid/column.drag.plugin-d201beb7.js.map +1 -0
- package/dist/revo-grid/column.service-f39c0a1d.js +1293 -1
- package/dist/revo-grid/column.service-f39c0a1d.js.map +1 -1
- package/dist/revo-grid/debounce-b3166f78.js +491 -1
- package/dist/revo-grid/debounce-b3166f78.js.map +1 -1
- package/dist/revo-grid/dimension.helpers-5567e424.js +3608 -1
- package/dist/revo-grid/dimension.helpers-5567e424.js.map +1 -1
- package/dist/revo-grid/edit.utils-b59306be.js +13 -1
- package/dist/revo-grid/edit.utils-b59306be.js.map +1 -1
- package/dist/revo-grid/events-cf0893a3.js +38 -1
- package/dist/revo-grid/events-cf0893a3.js.map +1 -1
- package/dist/revo-grid/filter.button-84396156.js +34 -1
- package/dist/revo-grid/filter.button-84396156.js.map +1 -1
- package/dist/revo-grid/grouping.row.renderer-95f32c6b.js +65 -0
- package/dist/revo-grid/grouping.row.renderer-95f32c6b.js.map +1 -0
- package/dist/revo-grid/header-cell-renderer-31f53644.js +335 -1
- package/dist/revo-grid/header-cell-renderer-31f53644.js.map +1 -1
- package/dist/revo-grid/index-f6fae858.js +2090 -2
- package/dist/revo-grid/index-f6fae858.js.map +1 -1
- package/dist/revo-grid/index.esm.js +160 -1
- package/dist/revo-grid/index.esm.js.map +1 -1
- package/dist/revo-grid/key.utils-3632161b.js +85 -1
- package/dist/revo-grid/key.utils-3632161b.js.map +1 -1
- package/dist/revo-grid/resize-observer-83c9e167.js +501 -1
- package/dist/revo-grid/resize-observer-83c9e167.js.map +1 -1
- package/dist/revo-grid/revo-grid.entry.js +1943 -1
- package/dist/revo-grid/revo-grid.entry.js.map +1 -1
- package/dist/revo-grid/revo-grid.esm.js +21 -1
- package/dist/revo-grid/revo-grid.esm.js.map +1 -1
- package/dist/revo-grid/revogr-attribution_7.entry.js +1446 -1
- package/dist/revo-grid/revogr-attribution_7.entry.js.map +1 -1
- package/dist/revo-grid/revogr-clipboard_3.entry.js +455 -1
- package/dist/revo-grid/revogr-clipboard_3.entry.js.map +1 -1
- package/dist/revo-grid/revogr-data_4.entry.js +960 -1
- package/dist/revo-grid/revogr-data_4.entry.js.map +1 -1
- package/dist/revo-grid/revogr-filter-panel.entry.js +340 -1
- package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -1
- package/dist/revo-grid/text-editor-e47e56c3.js +74 -1
- package/dist/revo-grid/text-editor-e47e56c3.js.map +1 -1
- package/dist/revo-grid/throttle-dec28f5b.js +229 -1
- package/dist/revo-grid/throttle-dec28f5b.js.map +1 -1
- package/dist/revo-grid/viewport.helpers-7e7f9dad.js +48 -1
- package/dist/revo-grid/viewport.helpers-7e7f9dad.js.map +1 -1
- package/dist/revo-grid/viewport.store-c18a25a6.js +402 -1
- package/dist/revo-grid/viewport.store-c18a25a6.js.map +1 -1
- package/dist/types/plugins/sorting/sorting.plugin.d.ts +2 -0
- package/dist/types/store/selection/selection.store.d.ts +1 -1
- package/hydrate/index.js +7 -7
- package/hydrate/index.mjs +7 -7
- package/package.json +1 -1
- package/standalone/column.service.js.map +1 -1
- package/standalone/index.js +1 -1
- package/standalone/revo-grid.js +2 -2
- package/standalone/revo-grid.js.map +1 -1
- package/standalone/revogr-filter-panel.js +1 -1
- package/standalone/revogr-filter-panel.js.map +1 -1
- package/dist/cjs/column.drag.plugin-0ce0b39a.js.map +0 -1
- package/dist/cjs/sorting.sign-a1e9d97a.js.map +0 -1
- package/dist/esm/sorting.sign-c02e3b12.js.map +0 -1
- package/dist/revo-grid/column.drag.plugin-017c4fb3.js +0 -5
- package/dist/revo-grid/column.drag.plugin-017c4fb3.js.map +0 -1
- package/dist/revo-grid/sorting.sign-c02e3b12.js +0 -5
- package/dist/revo-grid/sorting.sign-c02e3b12.js.map +0 -1
|
@@ -1,6 +1,2094 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built by Revolist OU ❤️
|
|
3
3
|
*/
|
|
4
|
-
const
|
|
5
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${r}.entry.js${""}`).then((e=>{{u.set(r,e)}return e[l]}),c)};var d=new Map;var h="r";var p="o";var m="s";var $="t";var y="c";var b="s-id";var w="sty-id";var g="c-id";var S="slot-fb{display:contents}slot-fb[hidden]{display:none}";var k="http://www.w3.org/1999/xlink";var C=typeof window!=="undefined"?window:{};var j=C.document||{head:{}};var x={l:0,S:"",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)};var O=t.shadowDom;var T=(()=>{let e=false;try{j.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=true}}))}catch(e){}return e})();var D=e=>Promise.resolve(e);var R=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var E=false;var L=[];var M=[];var A=(e,t)=>n=>{e.push(n);if(!E){E=true;if(t&&x.l&4){I(P)}else{x.raf(P)}}};var F=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){c(e)}}e.length=0};var P=()=>{F(L);{F(M);if(E=L.length>0){x.raf(P)}}};var I=e=>D().then(e);var N=A(M,true);var U={};var W="http://www.w3.org/2000/svg";var H="http://www.w3.org/1999/xhtml";var B=e=>e!=null;var z=e=>{e=typeof e;return e==="object"||e==="function"};function Q(e){var t,n,l;return(l=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?l:void 0}var q={};l(q,{err:()=>K,map:()=>V,ok:()=>G,unwrap:()=>X,unwrapErr:()=>_});var G=e=>({isOk:true,isErr:false,value:e});var K=e=>({isOk:false,isErr:true,value:e});function V(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>G(e)))}else{return G(n)}}if(e.isErr){const t=e.value;return K(t)}throw"should never get here"}var X=e=>{if(e.isOk){return e.value}else{throw e.value}};var _=e=>{if(e.isErr){return e.value}else{throw e.value}};var J=(e,t,...n)=>{let l=null;let r=null;let s=null;let i=false;let o=false;const f=[];const a=t=>{for(let n=0;n<t.length;n++){l=t[n];if(Array.isArray(l)){a(l)}else if(l!=null&&typeof l!=="boolean"){if(i=typeof e!=="function"&&!z(l)){l=String(l)}if(i&&o){f[f.length-1].k+=l}else{f.push(i?Y(null,l):l)}o=i}}};a(n);if(t){if(t.key){r=t.key}if(t.name){s=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,f,te)}const c=Y(e,null);c.C=t;if(f.length>0){c.j=f}{c.O=r}{c.T=s}return c};var Y=(e,t)=>{const n={l:0,D:e,k:t,R:null,j:null};{n.C=null}{n.O=null}{n.T=null}return n};var Z={};var ee=e=>e&&e.D===Z;var te={forEach:(e,t)=>e.map(ne).forEach(t),map:(e,t)=>e.map(ne).map(t).map(le)};var ne=e=>({vattrs:e.C,vchildren:e.j,vkey:e.O,vname:e.T,vtag:e.D,vtext:e.k});var le=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return J(e.vtag,t,...e.vchildren||[])}const t=Y(e.vtag,e.vtext);t.C=e.vattrs;t.j=e.vchildren;t.O=e.vkey;t.T=e.vname;return t};var re=(e,t,n,l,r,s)=>{if(n!==l){let i=a(e,t);let o=t.toLowerCase();if(t==="class"){const t=e.classList;const r=ie(n);const s=ie(l);if(e["s-si"]&&s.indexOf(e["s-si"])<0){s.push(e["s-si"])}t.remove(...r.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!r.includes(e))))}else if(t==="style"){{for(const t in n){if(!l||l[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in l){if(!n||l[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,l[t])}else{e.style[t]=l[t]}}}}else if(t==="key");else if(t==="ref"){if(l){l(e)}}else if(!i&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(a(C,o)){t=o.slice(2)}else{t=o[2]+t.slice(3)}if(n||l){const r=t.endsWith(oe);t=t.replace(fe,"");if(n){x.rel(e,t,n,r)}if(l){x.ael(e,t,l,r)}}}else{const f=z(l);if((i||f&&l!==null)&&!r){try{if(!e.tagName.includes("-")){const r=l==null?"":l;if(t==="list"){i=false}else if(n==null||e[t]!=r){if(typeof e.__lookupSetter__(t)==="function"){e[t]=r}else{e.setAttribute(t,r)}}}else{e[t]=l}}catch(e){}}let a=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){t=o;a=true}}if(l==null||l===false){if(l!==false||e.getAttribute(t)===""){if(a){e.removeAttributeNS(k,t)}else{e.removeAttribute(t)}}}else if((!i||s&4||r)&&!f){l=l===true?"":l;if(a){e.setAttributeNS(k,t,l)}else{e.setAttribute(t,l)}}}}};var se=/\s/;var ie=e=>!e?[]:e.split(se);var oe="Capture";var fe=new RegExp(oe+"$");var ae=(e,t,n)=>{const l=t.R.nodeType===11&&t.R.host?t.R.host:t.R;const r=e&&e.C||U;const s=t.C||U;{for(const e of ce(Object.keys(r))){if(!(e in s)){re(l,e,r[e],void 0,n,t.l)}}}for(const e of ce(Object.keys(s))){re(l,e,r[e],s[e],n,t.l)}};function ce(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var ue;var ve;var de;var he=false;var pe=false;var me=false;var $e=false;var ye=(e,n,l,r)=>{var s;const i=n.j[l];let o=0;let f;let a;let c;if(!he){me=true;if(i.D==="slot"){i.l|=i.j?2:1}}if(i.k!==null){f=i.R=j.createTextNode(i.k)}else if(i.l&1){f=i.R=j.createTextNode("")}else{if(!$e){$e=i.D==="svg"}f=i.R=j.createElementNS($e?W:H,!he&&t.slotRelocation&&i.l&2?"slot-fb":i.D);if($e&&i.D==="foreignObject"){$e=false}{ae(null,i,$e)}const n=f.getRootNode();const l=!n.querySelector("body");if(!l&&t.scoped&&B(ue)&&f["s-si"]!==ue){f.classList.add(f["s-si"]=ue)}if(i.j){for(o=0;o<i.j.length;++o){a=ye(e,i,o);if(a){f.appendChild(a)}}}{if(i.D==="svg"){$e=false}else if(f.tagName==="foreignObject"){$e=true}}}f["s-hn"]=de;{if(i.l&(2|1)){f["s-sr"]=true;f["s-cr"]=ve;f["s-sn"]=i.T||"";f["s-rf"]=(s=i.C)==null?void 0:s.ref;c=e&&e.j&&e.j[l];if(c&&c.D===i.D&&e.R){{be(e.R,false)}}}}return f};var be=(e,n)=>{x.l|=1;const l=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]&&t.experimentalSlotFixes){let t=e;while(t=t.nextSibling){if(t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===de){l.push(t)}}}for(let e=l.length-1;e>=0;e--){const t=l[e];if(t["s-hn"]!==de&&t["s-ol"]){Le(je(t),t,Ce(t));t["s-ol"].remove();t["s-ol"]=void 0;t["s-sh"]=void 0;me=true}if(n){be(t,n)}}x.l&=~1};var we=(e,t,n,l,r,s)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e;let o;for(;r<=s;++r){if(l[r]){o=ye(null,n,r);if(o){l[r].R=o;Le(i,o,Ce(t))}}}};var ge=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.R;Ee(t);if(e){{pe=true;if(e["s-ol"]){e["s-ol"].remove()}else{be(e,true)}}e.remove()}}}};var Se=(e,t,n,l,r=false)=>{let s=0;let i=0;let o=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=l.length-1;let d=l[0];let h=l[v];let p;let m;while(s<=a&&i<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--a]}else if(d==null){d=l[++i]}else if(h==null){h=l[--v]}else if(ke(c,d,r)){xe(c,d,r);c=t[++s];d=l[++i]}else if(ke(u,h,r)){xe(u,h,r);u=t[--a];h=l[--v]}else if(ke(c,h,r)){if(c.D==="slot"||h.D==="slot"){be(c.R.parentNode,false)}xe(c,h,r);Le(e,c.R,u.R.nextSibling);c=t[++s];h=l[--v]}else if(ke(u,d,r)){if(c.D==="slot"||h.D==="slot"){be(u.R.parentNode,false)}xe(u,d,r);Le(e,u.R,c.R);u=t[--a];d=l[++i]}else{o=-1;{for(f=s;f<=a;++f){if(t[f]&&t[f].O!==null&&t[f].O===d.O){o=f;break}}}if(o>=0){m=t[o];if(m.D!==d.D){p=ye(t&&t[i],n,o)}else{xe(m,d,r);t[o]=void 0;p=m.R}d=l[++i]}else{p=ye(t&&t[i],n,i);d=l[++i]}if(p){{Le(je(c.R),p,Ce(c.R))}}}}if(s>a){we(e,l[v+1]==null?null:l[v+1].R,n,l,i,v)}else if(i>v){ge(t,s,a)}};var ke=(e,t,n=false)=>{if(e.D===t.D){if(e.D==="slot"){if("L"in e&&n&&e.R.nodeType!==8){return false}return e.T===t.T}if(!n){return e.O===t.O}return true}return false};var Ce=e=>e&&e["s-ol"]||e;var je=e=>(e["s-ol"]?e["s-ol"]:e).parentNode;var xe=(e,n,l=false)=>{const r=n.R=e.R;const s=e.j;const i=n.j;const o=n.D;const f=n.k;let a;if(f===null){{$e=o==="svg"?true:o==="foreignObject"?false:$e}{if(o==="slot"&&!he);else{ae(e,n,$e)}}if(s!==null&&i!==null){Se(r,s,n,i,l)}else if(i!==null){if(e.k!==null){r.textContent=""}we(r,null,n,i,0,i.length-1)}else if(!l&&t.updatable&&s!==null){ge(s,0,s.length-1)}if($e&&o==="svg"){$e=false}}else if(a=r["s-cr"]){a.parentNode.textContent=f}else if(e.k!==f){r.data=f}};var Oe=e=>{const t=e.__childNodes||e.childNodes;for(const e of t){if(e.nodeType===1){if(e["s-sr"]){const n=e["s-sn"];e.hidden=false;for(const l of t){if(l!==e){if(l["s-hn"]!==e["s-hn"]||n!==""){if(l.nodeType===1&&(n===l.getAttribute("slot")||n===l["s-sn"])||l.nodeType===3&&n===l["s-sn"]){e.hidden=true;break}}else if(n===l["s-sn"]){if(l.nodeType===1||l.nodeType===3&&l.textContent.trim()!==""){e.hidden=true;break}}}}}Oe(e)}}};var Te=[];var De=e=>{let n;let l;let r;const s=e.__childNodes||e.childNodes;for(const e of s){if(e["s-sr"]&&(n=e["s-cr"])&&n.parentNode){l=n.parentNode.__childNodes||n.parentNode.childNodes;const s=e["s-sn"];for(r=l.length-1;r>=0;r--){n=l[r];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==e["s-hn"]&&!t.experimentalSlotFixes){if(Re(n,s)){let t=Te.find((e=>e.M===n));pe=true;n["s-sn"]=n["s-sn"]||s;if(t){t.M["s-sh"]=e["s-hn"];t.A=e}else{n["s-sh"]=e["s-hn"];Te.push({A:e,M:n})}if(n["s-sr"]){Te.map((e=>{if(Re(e.M,n["s-sn"])){t=Te.find((e=>e.M===n));if(t&&!e.A){e.A=t.A}}}))}}else if(!Te.some((e=>e.M===n))){Te.push({M:n})}}}}if(e.nodeType===1){De(e)}}};var Re=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var Ee=e=>{{e.C&&e.C.ref&&e.C.ref(null);e.j&&e.j.map(Ee)}};var Le=(e,t,n)=>{const l=e==null?void 0:e.insertBefore(t,n);return l};var Me=(e,t,n=false)=>{var l,r,s,i;const o=e.$hostElement$;const f=e.i;const a=e.F||Y(null,null);const c=ee(t)?t:J(null,null,t);de=o.tagName;if(f.P){c.C=c.C||{};f.P.map((([e,t])=>c.C[t]=o[e]))}if(n&&c.C){for(const e of Object.keys(c.C)){if(o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){c.C[e]=o[e]}}}c.D=null;c.l|=4;e.F=c;c.R=a.R=o;he=O;{ve=o["s-cr"];pe=false}xe(a,c,n);{x.l|=1;if(me){De(c.R);for(const e of Te){const t=e.M;if(!t["s-ol"]){const e=j.createTextNode("");e["s-nr"]=t;Le(t.parentNode,t["s-ol"]=e,t)}}for(const e of Te){const t=e.M;const o=e.A;if(o){const e=o.parentNode;let n=o.nextSibling;{let s=(l=t["s-ol"])==null?void 0:l.previousSibling;while(s){let l=(r=s["s-nr"])!=null?r:null;if(l&&l["s-sn"]===t["s-sn"]&&e===l.parentNode){l=l.nextSibling;while(l===t||(l==null?void 0:l["s-sr"])){l=l==null?void 0:l.nextSibling}if(!l||!l["s-nr"]){n=l;break}}s=s.previousSibling}}if(!n&&e!==t.parentNode||t.nextSibling!==n){if(t!==n){if(!t["s-hn"]&&t["s-ol"]){t["s-hn"]=t["s-ol"].parentNode.nodeName}Le(e,t,n);if(t.nodeType===1){t.hidden=(s=t["s-ih"])!=null?s:false}}}t&&typeof o["s-rf"]==="function"&&o["s-rf"](t)}else{if(t.nodeType===1){if(n){t["s-ih"]=(i=t.hidden)!=null?i:false}t.hidden=true}}}}if(pe){Oe(c.R)}x.l&=~1;Te.length=0}ve=void 0};var Ae=(e,t,n,l)=>{let r;if(e["s-ol"]&&e["s-ol"].isConnected){r=e["s-ol"]}else{r=document.createTextNode("");r["s-nr"]=e}if(!t["s-cr"]||!t["s-cr"].parentNode)return;const s=t["s-cr"].parentNode;const i=n?s.__prepend||s.prepend:s.__appendChild||s.appendChild;if(typeof l!=="undefined"){{r["s-oo"]=l;const e=s.__childNodes||s.childNodes;const t=[r];e.forEach((e=>{if(e["s-nr"])t.push(e)}));t.sort(((e,t)=>{if(!e["s-oo"]||e["s-oo"]<t["s-oo"])return-1;else if(!t["s-oo"]||t["s-oo"]<e["s-oo"])return 1;return 0}));t.forEach((e=>i.call(s,e)))}}else{i.call(s,r)}e["s-ol"]=r;e["s-sh"]=t["s-hn"]};var Fe=(e,t="")=>{{return()=>{}}};var Pe=(e,t)=>{{return()=>{}}};var Ie=(e,t,n,l)=>{const r=Fe("hydrateClient",t);const s=e.shadowRoot;const i=[];const o=[];const f=[];const a=null;const c=Y(t,null);c.R=e;if(!x.I){Ue(j.body,x.I=new Map)}e[b]=n;e.removeAttribute(b);l.F=Ne(c,i,o,a,e,e,n,f);let u=0;const v=i.length;let d;for(u;u<v;u++){d=i[u];const n=d.N+"."+d.L;const l=x.I.get(n);const r=d.R;if(!s){r["s-hn"]=t.toUpperCase();if(d.D==="slot"){r["s-cr"]=e["s-cr"]}}if(l&&l.isConnected){if(s&&l["s-en"]===""){l.parentNode.insertBefore(r,l.nextSibling)}l.parentNode.removeChild(l);if(!s){r["s-oo"]=parseInt(d.L)}}x.I.delete(n)}const h=[];let p=0;const m=f.length;let $;let y;let w;let g;for(p;p<m;p++){$=f[p];if(!$||!$.length)continue;w=$.length;y=0;for(y;y<w;y++){g=$[y];if(!h[g.hostId]){h[g.hostId]=x.I.get(g.hostId)}if(!h[g.hostId])continue;const e=h[g.hostId];if(!e.shadowRoot||!s){g.slot["s-cr"]=e["s-cr"];if(!g.slot["s-cr"]&&e.shadowRoot){g.slot["s-cr"]=e}else{const t=e.__childNodes||e.childNodes;g.slot["s-cr"]=t[0]}Ae(g.node,g.slot,false,g.node["s-oo"])}if(e.shadowRoot&&g.node.parentElement!==e){e.appendChild(g.node)}}}l.$hostElement$=e;r()};var Ne=(e,t,n,l,r,s,i,o=[])=>{let f;let a;let c;let u;const v=r["s-sc"];if(s.nodeType===1){f=s.getAttribute(g);if(f){a=f.split(".");if(a[0]===i||a[0]==="0"){c=We({l:0,N:a[0],L:a[1],U:a[2],W:a[3],D:s.tagName.toLowerCase(),R:s,C:{class:s.className}});t.push(c);s.removeAttribute(g);if(!e.j){e.j=[]}const r=c.R.getAttribute("s-sn");if(typeof r==="string"){if(c.D==="slot-fb"){He(r,a[2],c,s,e,t,n,l,o)}c.R["s-sn"]=r;c.R.removeAttribute("s-sn")}if(c.W!==void 0){e.j[c.W]=c}if(v)s["s-si"]=v;e=c;if(l&&c.U==="0"){l[c.W]=c.R}}}if(s.shadowRoot){for(u=s.shadowRoot.childNodes.length-1;u>=0;u--){Ne(e,t,n,l,r,s.shadowRoot.childNodes[u],i,o)}}const d=s.__childNodes||s.childNodes;for(u=d.length-1;u>=0;u--){Ne(e,t,n,l,r,d[u],i,o)}}else if(s.nodeType===8){a=s.nodeValue.split(".");if(a[1]===i||a[1]==="0"){f=a[0];c=We({N:a[1],L:a[2],U:a[3],W:a[4]||"0",R:s,C:null,j:null,O:null,T:null,D:null,k:null});if(f===$){c.R=s.nextSibling;if(c.R&&c.R.nodeType===3){c.k=c.R.textContent;t.push(c);s.remove();if(i===c.N){if(!e.j){e.j=[]}e.j[c.W]=c}if(l&&c.U==="0"){l[c.W]=c.R}}}else if(f===y){c.R=s.nextSibling;if(c.R&&c.R.nodeType===8){t.push(c);s.remove()}}else if(c.N===i){if(f===m){c.D="slot";const r=s["s-sn"]=c.T=a[5]||"";He(r,a[2],c,s,e,t,n,l,o)}else if(f===h){{r["s-cr"]=s;s["s-cn"]=true}}}}}else if(e&&e.D==="style"){const t=Y(null,s.textContent);t.R=s;t.W="0";e.j=[t]}return e};var Ue=(e,t)=>{if(e.nodeType===1){const n=e[b]||e.getAttribute(b);if(n){t.set(n,e)}let l=0;if(e.shadowRoot){for(;l<e.shadowRoot.childNodes.length;l++){Ue(e.shadowRoot.childNodes[l],t)}}const r=e.__childNodes||e.childNodes;for(l=0;l<r.length;l++){Ue(r[l],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===p){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var We=e=>{const t={l:0,N:null,L:null,U:null,W:"0",R:null,C:null,j:null,O:null,T:null,D:null,k:null};return{...t,...e}};function He(e,t,n,l,r,s,i,o,f){l["s-sr"]=true;const a=(r==null?void 0:r.R)?r.R["s-id"]||r.R.getAttribute("s-id"):"";{const i=n.R;const o=a&&a!==n.N&&r.R.shadowRoot;Be(f,t,e,l,o?a:n.N);if(o){r.R.insertBefore(i,r.R.children[0])}s.push(n)}i.push(n);if(!r.j){r.j=[]}r.j[n.W]=n}var Be=(e,t,n,l,r)=>{let s=l.nextSibling;e[t]=e[t]||[];while(s&&((s["getAttribute"]&&s.getAttribute("slot")||s["s-sn"])===n||n===""&&!s["s-sn"]&&(s.nodeType===8&&s.nodeValue.indexOf(".")!==1||s.nodeType===3))){s["s-sn"]=n;e[t].push({slot:l,node:s,hostId:r});s=s.nextSibling}};var ze=(e,t)=>{if(e!=null&&!z(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var Qe=e=>i(e).$hostElement$;var qe=(e,t,n)=>{const l=Qe(e);return{emit:e=>Ge(l,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};var Ge=(e,t,n)=>{const l=x.ce(t,n);e.dispatchEvent(l);return l};var Ke=new WeakMap;var Ve=(e,t,n)=>{let l=d.get(e);if(R&&n){l=l||new CSSStyleSheet;if(typeof l==="string"){l=t}else{l.replaceSync(t)}}else{l=t}d.set(e,l)};var Xe=(e,t,n)=>{var l;const r=Je(t);const s=d.get(r);e=e.nodeType===11?e:j;if(s){if(typeof s==="string"){e=e.head||e;let n=Ke.get(e);let i;if(!n){Ke.set(e,n=new Set)}if(!n.has(r)){if(e.host&&(i=e.querySelector(`[${w}="${r}"]`))){i.innerHTML=s}else{i=j.createElement("style");i.innerHTML=s;const n=(l=x.H)!=null?l:Q(j);if(n!=null){i.setAttribute("nonce",n)}if(!(t.l&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(i,n)}else if("host"in e){if(R){const t=new CSSStyleSheet;t.replaceSync(s);e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");if(t){t.innerHTML=s+t.innerHTML}else{e.prepend(i)}}}else{e.append(i)}}if(t.l&1&&e.nodeName!=="HEAD"){e.insertBefore(i,null)}}if(t.l&4){i.innerHTML+=S}if(n){n.add(r)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}return r};var _e=e=>{const t=e.i;const n=e.$hostElement$;const l=Fe("attachStyles",t.m);Xe(n.getRootNode(),t);l()};var Je=(e,t)=>"sc-"+e.m;var Ye=(e,t)=>{if(t&&!e.B&&t["s-p"]){t["s-p"].push(new Promise((t=>e.B=t)))}};var Ze=(e,t)=>{{e.l|=16}if(e.l&4){e.l|=512;return}Ye(e,e.q);const n=()=>et(e,t);return N(n)};var et=(e,t)=>{const n=e.$hostElement$;const l=Fe("scheduleUpdate",e.i.m);const r=e.t;if(!r){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){{e.l|=256;if(e.G){e.G.map((([e,t])=>ct(r,e,t)));e.G=void 0}}{s=ct(r,"componentWillLoad")}}{s=tt(s,(()=>ct(r,"componentWillRender")))}l();return tt(s,(()=>lt(e,r,t)))};var tt=(e,t)=>nt(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var nt=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var lt=async(e,t,n)=>{var l;const r=e.$hostElement$;const s=Fe("update",e.i.m);const i=r["s-rc"];if(n){_e(e)}const o=Fe("render",e.i.m);{st(e,t,r,n)}if(i){i.map((e=>e()));r["s-rc"]=void 0}o();s();{const t=(l=r["s-p"])!=null?l:[];const n=()=>ot(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.l|=4;t.length=0}}};var rt=null;var st=(e,t,n,l)=>{try{rt=t;t=t.render&&t.render();{e.l&=~16}{e.l|=2}{{{Me(e,t,l)}}}}catch(t){c(t,e.$hostElement$)}rt=null;return null};var it=()=>rt;var ot=e=>{const t=e.i.m;const n=e.$hostElement$;const l=Fe("postUpdate",t);const r=e.t;const s=e.q;{ct(r,"componentDidRender")}if(!(e.l&64)){e.l|=64;{ut(n)}{ct(r,"componentDidLoad")}l();{e.p(n);if(!s){at()}}}else{l()}{e.v(n)}{if(e.B){e.B();e.B=void 0}if(e.l&512){I((()=>Ze(e,false)))}e.l&=~(4|512)}};var ft=e=>{{const t=i(e);const n=t.$hostElement$.isConnected;if(n&&(t.l&(2|16))===2){Ze(t,false)}return n}};var at=t=>{{ut(j.documentElement)}I((()=>Ge(C,"appload",{detail:{namespace:e}})))};var ct=(e,t,n)=>{if(e&&e[t]){try{return e[t](n)}catch(e){c(e)}}return void 0};var ut=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var vt=(e,t)=>i(e).o.get(t);var dt=(e,t,n,l)=>{const r=i(e);if(!r){throw new Error(`Couldn't find host element for "${l.m}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`)}const s=r.$hostElement$;const o=r.o.get(t);const f=r.l;const a=r.t;n=ze(n,l.K[t][0]);const u=Number.isNaN(o)&&Number.isNaN(n);const v=n!==o&&!u;if((!(f&8)||o===void 0)&&v){r.o.set(t,n);if(a){if(l.V&&f&128){const e=l.V[t];if(e){e.map((e=>{try{a[e](n,o,t)}catch(e){c(e,s)}}))}}if((f&(2|16))===2){Ze(r,false)}}}};var ht=(e,t,n)=>{var l,r;const s=e.prototype;if(t.K||(t.V||e.watchers)){if(e.watchers&&!t.V){t.V=e.watchers}const o=Object.entries((l=t.K)!=null?l:{});o.map((([e,[l]])=>{if(l&31||n&2&&l&32){if((l&2048)===0){Object.defineProperty(s,e,{get(){return vt(this,e)},set(n){dt(this,e,n,t)},configurable:true,enumerable:true})}else if(n&1&&l&2048){{Object.defineProperty(s,e,{get(){const t=i(this);const n=t?t.t:s;if(!n)return;return n[e]},configurable:true,enumerable:true})}if(l&4096){const n=Object.getOwnPropertyDescriptor(s,e).set;Object.defineProperty(s,e,{set(l){const r=i(this);if(n){const s=r.$hostElement$[e];if(!r.o.get(e)&&s){r.o.set(e,s)}n.apply(this,[ze(l,t.K[e][0])]);dt(this,e,r.$hostElement$[e],t);return}if(!r)return;const s=()=>{const n=r.t[e];if(!r.o.get(e)&&n){r.o.set(e,n)}r.t[e]=ze(l,t.K[e][0]);dt(this,e,r.t[e],t)};if(r.t){s()}else{r.h.then((()=>s()))}}})}}}else if(n&1&&l&64){Object.defineProperty(s,e,{value(...t){var n;const l=i(this);return(n=l==null?void 0:l.u)==null?void 0:n.then((()=>{var n;return(n=l.t)==null?void 0:n[e](...t)}))}})}}));if(n&1){const n=new Map;s.attributeChangedCallback=function(e,l,r){x.jmp((()=>{var o;const f=n.get(e);if(this.hasOwnProperty(f)){r=this[f];delete this[f]}else if(s.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==r){return}else if(f==null){const n=i(this);const s=n==null?void 0:n.l;if(s&&!(s&8)&&s&128&&r!==l){const s=n.t;const i=(o=t.V)==null?void 0:o[e];i==null?void 0:i.forEach((t=>{if(s[t]!=null){s[t].call(s,r,l,e)}}))}return}const a=Object.getOwnPropertyDescriptor(s,f);if(!a.get||!!a.set){this[f]=r===null&&typeof this[f]==="boolean"?false:r}}))};e.observedAttributes=Array.from(new Set([...Object.keys((r=t.V)!=null?r:{}),...o.filter((([e,t])=>t[0]&15)).map((([e,l])=>{var r;const s=l[1]||e;n.set(s,e);if(l[0]&512){(r=t.P)==null?void 0:r.push([e,s])}return s}))]))}}return e};var pt=async(e,t,n,l)=>{let r;if((t.l&32)===0){t.l|=32;const l=n.$;if(l){const e=v(n);if(e&&"then"in e){const t=Pe();r=await e;t()}else{r=e}if(!r){throw new Error(`Constructor for "${n.m}#${t.X}" was not found`)}if(!r.isProxied){{n.V=r.watchers}ht(r,n,2);r.isProxied=true}const l=Fe("createInstance",n.m);{t.l|=8}try{new r(t)}catch(e){c(e)}{t.l&=~8}{t.l|=128}l();mt(t.t)}else{r=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.l|=128))}if(r&&r.style){let e;if(typeof r.style==="string"){e=r.style}const t=Je(n);if(!d.has(t)){const l=Fe("registerStyles",n.m);Ve(t,e,!!(n.l&1));l()}}}const s=t.q;const i=()=>Ze(t,true);if(s&&s["s-rc"]){s["s-rc"].push(i)}else{i()}};var mt=e=>{{ct(e,"connectedCallback")}};var $t=e=>{if((x.l&1)===0){const t=i(e);const n=t.i;const l=Fe("connectedCallback",n.m);if(!(t.l&1)){t.l|=1;let l;{l=e.getAttribute(b);if(l){Ie(e,n.m,l,t)}}if(!l){if(n.l&(4|8)){yt(e)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Ye(t,t.q=n);break}}}if(n.K){Object.entries(n.K).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{I((()=>pt(e,t,n)))}}else{St(e,t,n._);if(t==null?void 0:t.t){mt(t.t)}else if(t==null?void 0:t.h){t.h.then((()=>mt(t.t)))}}l()}};var yt=e=>{const t=e["s-cr"]=j.createComment("");t["s-cn"]=true;Le(e,t,e.firstChild)};var bt=e=>{{ct(e,"disconnectedCallback")}};var wt=async e=>{if((x.l&1)===0){const t=i(e);{if(t.J){t.J.map((e=>e()));t.J=void 0}}if(t==null?void 0:t.t){bt(t.t)}else if(t==null?void 0:t.h){t.h.then((()=>bt(t.t)))}}};var gt=(e,t={})=>{var n;const l=Fe();const r=[];const s=t.exclude||[];const o=C.customElements;const a=j.head;const c=a.querySelector("meta[charset]");const u=j.createElement("style");const v=[];let d;let h=true;Object.assign(x,t);x.S=new URL(t.resourcesUrl||"./",j.baseURI).href;{x.l|=2}let p=false;e.map((e=>{e[1].map((t=>{var n;const l={l:t[0],m:t[1],K:t[2],_:t[3]};if(l.l&4){p=true}{l.K=t[2]}{l._=t[3]}{l.P=[]}{l.V=(n=t[4])!=null?n:{}}const a=l.m;const c=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;f(e,l)}connectedCallback(){const e=i(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;St(this,e,l._)}if(d){clearTimeout(d);d=null}if(h){v.push(this)}else{x.jmp((()=>$t(this)))}}disconnectedCallback(){x.jmp((()=>wt(this)))}componentOnReady(){return i(this).h}};l.$=e[0];if(!s.includes(a)&&!o.get(a)){r.push(a);o.define(a,ht(c,l,1))}}))}));if(r.length>0){if(p){u.textContent+=S}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=x.H)!=null?n:Q(j);if(e!=null){u.setAttribute("nonce",e)}a.insertBefore(u,c?c.nextSibling:a.firstChild)}}h=false;if(v.length){v.map((e=>e.connectedCallback()))}else{{x.jmp((()=>d=setTimeout(at,30)))}}l()};var St=(e,t,n,l)=>{if(n){n.map((([n,l,r])=>{const s=Ct(e,n);const i=kt(t,r);const o=jt(n);x.ael(s,l,i,o);(t.J=t.J||[]).push((()=>x.rel(s,l,i,o)))}))}};var kt=(e,t)=>n=>{var l;try{{if(e.l&256){(l=e.t)==null?void 0:l[t](n)}else{(e.G=e.G||[]).push([t,n])}}}catch(e){c(e)}};var Ct=(e,t)=>{if(t&4)return j;return e};var jt=e=>T?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var xt=e=>x.H=e;export{r as B,Z as H,Qe as a,gt as b,qe as c,ft as f,it as g,J as h,D as p,o as r,xt as s};
|
|
4
|
+
const NAMESPACE = 'revo-grid';
|
|
5
|
+
const BUILD = /* revo-grid */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: true, invisiblePrehydration: false, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
Stencil Client Platform v4.23.0 | MIT Licensed | https://stenciljs.com
|
|
9
|
+
*/
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __export = (target, all) => {
|
|
12
|
+
for (var name in all)
|
|
13
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
|
+
};
|
|
15
|
+
var Build = {
|
|
16
|
+
isDev: false,
|
|
17
|
+
isBrowser: true,
|
|
18
|
+
isServer: false,
|
|
19
|
+
isTesting: false
|
|
20
|
+
};
|
|
21
|
+
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
22
|
+
var getHostRef = (ref) => hostRefs.get(ref);
|
|
23
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
24
|
+
var registerHost = (hostElement, cmpMeta) => {
|
|
25
|
+
const hostRef = {
|
|
26
|
+
$flags$: 0,
|
|
27
|
+
$hostElement$: hostElement,
|
|
28
|
+
$cmpMeta$: cmpMeta,
|
|
29
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
|
30
|
+
};
|
|
31
|
+
{
|
|
32
|
+
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
33
|
+
}
|
|
34
|
+
{
|
|
35
|
+
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
36
|
+
hostElement["s-p"] = [];
|
|
37
|
+
hostElement["s-rc"] = [];
|
|
38
|
+
}
|
|
39
|
+
return hostRefs.set(hostElement, hostRef);
|
|
40
|
+
};
|
|
41
|
+
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
42
|
+
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
43
|
+
|
|
44
|
+
// src/client/client-load-module.ts
|
|
45
|
+
var cmpModules = /* @__PURE__ */ new Map();
|
|
46
|
+
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
47
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
48
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
49
|
+
if (!bundleId) {
|
|
50
|
+
return void 0;
|
|
51
|
+
}
|
|
52
|
+
const module = cmpModules.get(bundleId) ;
|
|
53
|
+
if (module) {
|
|
54
|
+
return module[exportName];
|
|
55
|
+
}
|
|
56
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
57
|
+
return import(
|
|
58
|
+
/* @vite-ignore */
|
|
59
|
+
/* webpackInclude: /\.entry\.js$/ */
|
|
60
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
61
|
+
/* webpackMode: "lazy" */
|
|
62
|
+
`./${bundleId}.entry.js${""}`
|
|
63
|
+
).then((importedModule) => {
|
|
64
|
+
{
|
|
65
|
+
cmpModules.set(bundleId, importedModule);
|
|
66
|
+
}
|
|
67
|
+
return importedModule[exportName];
|
|
68
|
+
}, consoleError);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// src/client/client-style.ts
|
|
72
|
+
var styles = /* @__PURE__ */ new Map();
|
|
73
|
+
|
|
74
|
+
// src/runtime/runtime-constants.ts
|
|
75
|
+
var CONTENT_REF_ID = "r";
|
|
76
|
+
var ORG_LOCATION_ID = "o";
|
|
77
|
+
var SLOT_NODE_ID = "s";
|
|
78
|
+
var TEXT_NODE_ID = "t";
|
|
79
|
+
var COMMENT_NODE_ID = "c";
|
|
80
|
+
var HYDRATE_ID = "s-id";
|
|
81
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
82
|
+
var HYDRATE_CHILD_ID = "c-id";
|
|
83
|
+
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
84
|
+
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
85
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
86
|
+
var doc = win.document || { head: {} };
|
|
87
|
+
var plt = {
|
|
88
|
+
$flags$: 0,
|
|
89
|
+
$resourcesUrl$: "",
|
|
90
|
+
jmp: (h2) => h2(),
|
|
91
|
+
raf: (h2) => requestAnimationFrame(h2),
|
|
92
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
93
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
94
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
95
|
+
};
|
|
96
|
+
var supportsShadow = BUILD.shadowDom;
|
|
97
|
+
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
98
|
+
let supportsListenerOptions2 = false;
|
|
99
|
+
try {
|
|
100
|
+
doc.addEventListener(
|
|
101
|
+
"e",
|
|
102
|
+
null,
|
|
103
|
+
Object.defineProperty({}, "passive", {
|
|
104
|
+
get() {
|
|
105
|
+
supportsListenerOptions2 = true;
|
|
106
|
+
}
|
|
107
|
+
})
|
|
108
|
+
);
|
|
109
|
+
} catch (e) {
|
|
110
|
+
}
|
|
111
|
+
return supportsListenerOptions2;
|
|
112
|
+
})();
|
|
113
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
|
114
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
115
|
+
try {
|
|
116
|
+
new CSSStyleSheet();
|
|
117
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
118
|
+
} catch (e) {
|
|
119
|
+
}
|
|
120
|
+
return false;
|
|
121
|
+
})() ;
|
|
122
|
+
var queuePending = false;
|
|
123
|
+
var queueDomReads = [];
|
|
124
|
+
var queueDomWrites = [];
|
|
125
|
+
var queueTask = (queue, write) => (cb) => {
|
|
126
|
+
queue.push(cb);
|
|
127
|
+
if (!queuePending) {
|
|
128
|
+
queuePending = true;
|
|
129
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
130
|
+
nextTick(flush);
|
|
131
|
+
} else {
|
|
132
|
+
plt.raf(flush);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
var consume = (queue) => {
|
|
137
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
138
|
+
try {
|
|
139
|
+
queue[i2](performance.now());
|
|
140
|
+
} catch (e) {
|
|
141
|
+
consoleError(e);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
queue.length = 0;
|
|
145
|
+
};
|
|
146
|
+
var flush = () => {
|
|
147
|
+
consume(queueDomReads);
|
|
148
|
+
{
|
|
149
|
+
consume(queueDomWrites);
|
|
150
|
+
if (queuePending = queueDomReads.length > 0) {
|
|
151
|
+
plt.raf(flush);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
|
156
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
157
|
+
|
|
158
|
+
// src/utils/constants.ts
|
|
159
|
+
var EMPTY_OBJ = {};
|
|
160
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
161
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
162
|
+
|
|
163
|
+
// src/utils/helpers.ts
|
|
164
|
+
var isDef = (v) => v != null;
|
|
165
|
+
var isComplexType = (o) => {
|
|
166
|
+
o = typeof o;
|
|
167
|
+
return o === "object" || o === "function";
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
171
|
+
function queryNonceMetaTagContent(doc2) {
|
|
172
|
+
var _a, _b, _c;
|
|
173
|
+
return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// src/utils/result.ts
|
|
177
|
+
var result_exports = {};
|
|
178
|
+
__export(result_exports, {
|
|
179
|
+
err: () => err,
|
|
180
|
+
map: () => map,
|
|
181
|
+
ok: () => ok,
|
|
182
|
+
unwrap: () => unwrap,
|
|
183
|
+
unwrapErr: () => unwrapErr
|
|
184
|
+
});
|
|
185
|
+
var ok = (value) => ({
|
|
186
|
+
isOk: true,
|
|
187
|
+
isErr: false,
|
|
188
|
+
value
|
|
189
|
+
});
|
|
190
|
+
var err = (value) => ({
|
|
191
|
+
isOk: false,
|
|
192
|
+
isErr: true,
|
|
193
|
+
value
|
|
194
|
+
});
|
|
195
|
+
function map(result, fn) {
|
|
196
|
+
if (result.isOk) {
|
|
197
|
+
const val = fn(result.value);
|
|
198
|
+
if (val instanceof Promise) {
|
|
199
|
+
return val.then((newVal) => ok(newVal));
|
|
200
|
+
} else {
|
|
201
|
+
return ok(val);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
if (result.isErr) {
|
|
205
|
+
const value = result.value;
|
|
206
|
+
return err(value);
|
|
207
|
+
}
|
|
208
|
+
throw "should never get here";
|
|
209
|
+
}
|
|
210
|
+
var unwrap = (result) => {
|
|
211
|
+
if (result.isOk) {
|
|
212
|
+
return result.value;
|
|
213
|
+
} else {
|
|
214
|
+
throw result.value;
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
var unwrapErr = (result) => {
|
|
218
|
+
if (result.isErr) {
|
|
219
|
+
return result.value;
|
|
220
|
+
} else {
|
|
221
|
+
throw result.value;
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
var h = (nodeName, vnodeData, ...children) => {
|
|
225
|
+
let child = null;
|
|
226
|
+
let key = null;
|
|
227
|
+
let slotName = null;
|
|
228
|
+
let simple = false;
|
|
229
|
+
let lastSimple = false;
|
|
230
|
+
const vNodeChildren = [];
|
|
231
|
+
const walk = (c) => {
|
|
232
|
+
for (let i2 = 0; i2 < c.length; i2++) {
|
|
233
|
+
child = c[i2];
|
|
234
|
+
if (Array.isArray(child)) {
|
|
235
|
+
walk(child);
|
|
236
|
+
} else if (child != null && typeof child !== "boolean") {
|
|
237
|
+
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
238
|
+
child = String(child);
|
|
239
|
+
}
|
|
240
|
+
if (simple && lastSimple) {
|
|
241
|
+
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
242
|
+
} else {
|
|
243
|
+
vNodeChildren.push(simple ? newVNode(null, child) : child);
|
|
244
|
+
}
|
|
245
|
+
lastSimple = simple;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
walk(children);
|
|
250
|
+
if (vnodeData) {
|
|
251
|
+
if (vnodeData.key) {
|
|
252
|
+
key = vnodeData.key;
|
|
253
|
+
}
|
|
254
|
+
if (vnodeData.name) {
|
|
255
|
+
slotName = vnodeData.name;
|
|
256
|
+
}
|
|
257
|
+
{
|
|
258
|
+
const classData = vnodeData.className || vnodeData.class;
|
|
259
|
+
if (classData) {
|
|
260
|
+
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
if (typeof nodeName === "function") {
|
|
265
|
+
return nodeName(
|
|
266
|
+
vnodeData === null ? {} : vnodeData,
|
|
267
|
+
vNodeChildren,
|
|
268
|
+
vdomFnUtils
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
const vnode = newVNode(nodeName, null);
|
|
272
|
+
vnode.$attrs$ = vnodeData;
|
|
273
|
+
if (vNodeChildren.length > 0) {
|
|
274
|
+
vnode.$children$ = vNodeChildren;
|
|
275
|
+
}
|
|
276
|
+
{
|
|
277
|
+
vnode.$key$ = key;
|
|
278
|
+
}
|
|
279
|
+
{
|
|
280
|
+
vnode.$name$ = slotName;
|
|
281
|
+
}
|
|
282
|
+
return vnode;
|
|
283
|
+
};
|
|
284
|
+
var newVNode = (tag, text) => {
|
|
285
|
+
const vnode = {
|
|
286
|
+
$flags$: 0,
|
|
287
|
+
$tag$: tag,
|
|
288
|
+
$text$: text,
|
|
289
|
+
$elm$: null,
|
|
290
|
+
$children$: null
|
|
291
|
+
};
|
|
292
|
+
{
|
|
293
|
+
vnode.$attrs$ = null;
|
|
294
|
+
}
|
|
295
|
+
{
|
|
296
|
+
vnode.$key$ = null;
|
|
297
|
+
}
|
|
298
|
+
{
|
|
299
|
+
vnode.$name$ = null;
|
|
300
|
+
}
|
|
301
|
+
return vnode;
|
|
302
|
+
};
|
|
303
|
+
var Host = {};
|
|
304
|
+
var isHost = (node) => node && node.$tag$ === Host;
|
|
305
|
+
var vdomFnUtils = {
|
|
306
|
+
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
|
307
|
+
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
|
|
308
|
+
};
|
|
309
|
+
var convertToPublic = (node) => ({
|
|
310
|
+
vattrs: node.$attrs$,
|
|
311
|
+
vchildren: node.$children$,
|
|
312
|
+
vkey: node.$key$,
|
|
313
|
+
vname: node.$name$,
|
|
314
|
+
vtag: node.$tag$,
|
|
315
|
+
vtext: node.$text$
|
|
316
|
+
});
|
|
317
|
+
var convertToPrivate = (node) => {
|
|
318
|
+
if (typeof node.vtag === "function") {
|
|
319
|
+
const vnodeData = { ...node.vattrs };
|
|
320
|
+
if (node.vkey) {
|
|
321
|
+
vnodeData.key = node.vkey;
|
|
322
|
+
}
|
|
323
|
+
if (node.vname) {
|
|
324
|
+
vnodeData.name = node.vname;
|
|
325
|
+
}
|
|
326
|
+
return h(node.vtag, vnodeData, ...node.vchildren || []);
|
|
327
|
+
}
|
|
328
|
+
const vnode = newVNode(node.vtag, node.vtext);
|
|
329
|
+
vnode.$attrs$ = node.vattrs;
|
|
330
|
+
vnode.$children$ = node.vchildren;
|
|
331
|
+
vnode.$key$ = node.vkey;
|
|
332
|
+
vnode.$name$ = node.vname;
|
|
333
|
+
return vnode;
|
|
334
|
+
};
|
|
335
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
336
|
+
if (oldValue !== newValue) {
|
|
337
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
338
|
+
let ln = memberName.toLowerCase();
|
|
339
|
+
if (memberName === "class") {
|
|
340
|
+
const classList = elm.classList;
|
|
341
|
+
const oldClasses = parseClassList(oldValue);
|
|
342
|
+
const newClasses = parseClassList(newValue);
|
|
343
|
+
if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
|
|
344
|
+
newClasses.push(elm["s-si"]);
|
|
345
|
+
}
|
|
346
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
347
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
348
|
+
} else if (memberName === "style") {
|
|
349
|
+
{
|
|
350
|
+
for (const prop in oldValue) {
|
|
351
|
+
if (!newValue || newValue[prop] == null) {
|
|
352
|
+
if (prop.includes("-")) {
|
|
353
|
+
elm.style.removeProperty(prop);
|
|
354
|
+
} else {
|
|
355
|
+
elm.style[prop] = "";
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
for (const prop in newValue) {
|
|
361
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
362
|
+
if (prop.includes("-")) {
|
|
363
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
364
|
+
} else {
|
|
365
|
+
elm.style[prop] = newValue[prop];
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
370
|
+
if (newValue) {
|
|
371
|
+
newValue(elm);
|
|
372
|
+
}
|
|
373
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
374
|
+
if (memberName[2] === "-") {
|
|
375
|
+
memberName = memberName.slice(3);
|
|
376
|
+
} else if (isMemberInElement(win, ln)) {
|
|
377
|
+
memberName = ln.slice(2);
|
|
378
|
+
} else {
|
|
379
|
+
memberName = ln[2] + memberName.slice(3);
|
|
380
|
+
}
|
|
381
|
+
if (oldValue || newValue) {
|
|
382
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
383
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
384
|
+
if (oldValue) {
|
|
385
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
386
|
+
}
|
|
387
|
+
if (newValue) {
|
|
388
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
} else {
|
|
392
|
+
const isComplex = isComplexType(newValue);
|
|
393
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
394
|
+
try {
|
|
395
|
+
if (!elm.tagName.includes("-")) {
|
|
396
|
+
const n = newValue == null ? "" : newValue;
|
|
397
|
+
if (memberName === "list") {
|
|
398
|
+
isProp = false;
|
|
399
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
400
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
401
|
+
elm[memberName] = n;
|
|
402
|
+
} else {
|
|
403
|
+
elm.setAttribute(memberName, n);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
} else {
|
|
407
|
+
elm[memberName] = newValue;
|
|
408
|
+
}
|
|
409
|
+
} catch (e) {
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
let xlink = false;
|
|
413
|
+
{
|
|
414
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
415
|
+
memberName = ln;
|
|
416
|
+
xlink = true;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
if (newValue == null || newValue === false) {
|
|
420
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
421
|
+
if (xlink) {
|
|
422
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
423
|
+
} else {
|
|
424
|
+
elm.removeAttribute(memberName);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
428
|
+
newValue = newValue === true ? "" : newValue;
|
|
429
|
+
if (xlink) {
|
|
430
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
431
|
+
} else {
|
|
432
|
+
elm.setAttribute(memberName, newValue);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
var parseClassListRegex = /\s/;
|
|
439
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
440
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
441
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
442
|
+
|
|
443
|
+
// src/runtime/vdom/update-element.ts
|
|
444
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
445
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
446
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
447
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
448
|
+
{
|
|
449
|
+
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
450
|
+
if (!(memberName in newVnodeAttrs)) {
|
|
451
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
456
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
function sortedAttrNames(attrNames) {
|
|
460
|
+
return attrNames.includes("ref") ? (
|
|
461
|
+
// we need to sort these to ensure that `'ref'` is the last attr
|
|
462
|
+
[...attrNames.filter((attr) => attr !== "ref"), "ref"]
|
|
463
|
+
) : (
|
|
464
|
+
// no need to sort, return the original array
|
|
465
|
+
attrNames
|
|
466
|
+
);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
// src/runtime/vdom/vdom-render.ts
|
|
470
|
+
var scopeId;
|
|
471
|
+
var contentRef;
|
|
472
|
+
var hostTagName;
|
|
473
|
+
var useNativeShadowDom = false;
|
|
474
|
+
var checkSlotFallbackVisibility = false;
|
|
475
|
+
var checkSlotRelocate = false;
|
|
476
|
+
var isSvgMode = false;
|
|
477
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
478
|
+
var _a;
|
|
479
|
+
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
480
|
+
let i2 = 0;
|
|
481
|
+
let elm;
|
|
482
|
+
let childNode;
|
|
483
|
+
let oldVNode;
|
|
484
|
+
if (!useNativeShadowDom) {
|
|
485
|
+
checkSlotRelocate = true;
|
|
486
|
+
if (newVNode2.$tag$ === "slot") {
|
|
487
|
+
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
488
|
+
// slot element has fallback content
|
|
489
|
+
// still create an element that "mocks" the slot element
|
|
490
|
+
2 /* isSlotFallback */
|
|
491
|
+
) : (
|
|
492
|
+
// slot element does not have fallback content
|
|
493
|
+
// create an html comment we'll use to always reference
|
|
494
|
+
// where actual slot content should sit next to
|
|
495
|
+
1 /* isSlotReference */
|
|
496
|
+
);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
if (newVNode2.$text$ !== null) {
|
|
500
|
+
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
501
|
+
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
502
|
+
elm = newVNode2.$elm$ = doc.createTextNode("");
|
|
503
|
+
} else {
|
|
504
|
+
if (!isSvgMode) {
|
|
505
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
|
506
|
+
}
|
|
507
|
+
elm = newVNode2.$elm$ = doc.createElementNS(
|
|
508
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
|
509
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
510
|
+
) ;
|
|
511
|
+
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
512
|
+
isSvgMode = false;
|
|
513
|
+
}
|
|
514
|
+
{
|
|
515
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
516
|
+
}
|
|
517
|
+
const rootNode = elm.getRootNode();
|
|
518
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
519
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
520
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
521
|
+
}
|
|
522
|
+
if (newVNode2.$children$) {
|
|
523
|
+
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
524
|
+
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
525
|
+
if (childNode) {
|
|
526
|
+
elm.appendChild(childNode);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
{
|
|
531
|
+
if (newVNode2.$tag$ === "svg") {
|
|
532
|
+
isSvgMode = false;
|
|
533
|
+
} else if (elm.tagName === "foreignObject") {
|
|
534
|
+
isSvgMode = true;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
elm["s-hn"] = hostTagName;
|
|
539
|
+
{
|
|
540
|
+
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
541
|
+
elm["s-sr"] = true;
|
|
542
|
+
elm["s-cr"] = contentRef;
|
|
543
|
+
elm["s-sn"] = newVNode2.$name$ || "";
|
|
544
|
+
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
545
|
+
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
546
|
+
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
547
|
+
{
|
|
548
|
+
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
return elm;
|
|
554
|
+
};
|
|
555
|
+
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
556
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
557
|
+
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
558
|
+
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
559
|
+
let node = parentElm;
|
|
560
|
+
while (node = node.nextSibling) {
|
|
561
|
+
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
|
562
|
+
oldSlotChildNodes.push(node);
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
567
|
+
const childNode = oldSlotChildNodes[i2];
|
|
568
|
+
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
569
|
+
insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
|
|
570
|
+
childNode["s-ol"].remove();
|
|
571
|
+
childNode["s-ol"] = void 0;
|
|
572
|
+
childNode["s-sh"] = void 0;
|
|
573
|
+
checkSlotRelocate = true;
|
|
574
|
+
}
|
|
575
|
+
if (recursive) {
|
|
576
|
+
putBackInOriginalLocation(childNode, recursive);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
580
|
+
};
|
|
581
|
+
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
582
|
+
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
583
|
+
let childNode;
|
|
584
|
+
for (; startIdx <= endIdx; ++startIdx) {
|
|
585
|
+
if (vnodes[startIdx]) {
|
|
586
|
+
childNode = createElm(null, parentVNode, startIdx);
|
|
587
|
+
if (childNode) {
|
|
588
|
+
vnodes[startIdx].$elm$ = childNode;
|
|
589
|
+
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
595
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
596
|
+
const vnode = vnodes[index];
|
|
597
|
+
if (vnode) {
|
|
598
|
+
const elm = vnode.$elm$;
|
|
599
|
+
nullifyVNodeRefs(vnode);
|
|
600
|
+
if (elm) {
|
|
601
|
+
{
|
|
602
|
+
checkSlotFallbackVisibility = true;
|
|
603
|
+
if (elm["s-ol"]) {
|
|
604
|
+
elm["s-ol"].remove();
|
|
605
|
+
} else {
|
|
606
|
+
putBackInOriginalLocation(elm, true);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
elm.remove();
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
|
|
615
|
+
let oldStartIdx = 0;
|
|
616
|
+
let newStartIdx = 0;
|
|
617
|
+
let idxInOld = 0;
|
|
618
|
+
let i2 = 0;
|
|
619
|
+
let oldEndIdx = oldCh.length - 1;
|
|
620
|
+
let oldStartVnode = oldCh[0];
|
|
621
|
+
let oldEndVnode = oldCh[oldEndIdx];
|
|
622
|
+
let newEndIdx = newCh.length - 1;
|
|
623
|
+
let newStartVnode = newCh[0];
|
|
624
|
+
let newEndVnode = newCh[newEndIdx];
|
|
625
|
+
let node;
|
|
626
|
+
let elmToMove;
|
|
627
|
+
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
628
|
+
if (oldStartVnode == null) {
|
|
629
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
630
|
+
} else if (oldEndVnode == null) {
|
|
631
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
632
|
+
} else if (newStartVnode == null) {
|
|
633
|
+
newStartVnode = newCh[++newStartIdx];
|
|
634
|
+
} else if (newEndVnode == null) {
|
|
635
|
+
newEndVnode = newCh[--newEndIdx];
|
|
636
|
+
} else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
637
|
+
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
638
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
639
|
+
newStartVnode = newCh[++newStartIdx];
|
|
640
|
+
} else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
641
|
+
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
642
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
643
|
+
newEndVnode = newCh[--newEndIdx];
|
|
644
|
+
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
645
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
646
|
+
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
647
|
+
}
|
|
648
|
+
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
649
|
+
insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
650
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
651
|
+
newEndVnode = newCh[--newEndIdx];
|
|
652
|
+
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
653
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
654
|
+
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
655
|
+
}
|
|
656
|
+
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
657
|
+
insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
658
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
659
|
+
newStartVnode = newCh[++newStartIdx];
|
|
660
|
+
} else {
|
|
661
|
+
idxInOld = -1;
|
|
662
|
+
{
|
|
663
|
+
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
664
|
+
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
665
|
+
idxInOld = i2;
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
if (idxInOld >= 0) {
|
|
671
|
+
elmToMove = oldCh[idxInOld];
|
|
672
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
673
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
674
|
+
} else {
|
|
675
|
+
patch(elmToMove, newStartVnode, isInitialRender);
|
|
676
|
+
oldCh[idxInOld] = void 0;
|
|
677
|
+
node = elmToMove.$elm$;
|
|
678
|
+
}
|
|
679
|
+
newStartVnode = newCh[++newStartIdx];
|
|
680
|
+
} else {
|
|
681
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
682
|
+
newStartVnode = newCh[++newStartIdx];
|
|
683
|
+
}
|
|
684
|
+
if (node) {
|
|
685
|
+
{
|
|
686
|
+
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
if (oldStartIdx > oldEndIdx) {
|
|
692
|
+
addVnodes(
|
|
693
|
+
parentElm,
|
|
694
|
+
newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
|
|
695
|
+
newVNode2,
|
|
696
|
+
newCh,
|
|
697
|
+
newStartIdx,
|
|
698
|
+
newEndIdx
|
|
699
|
+
);
|
|
700
|
+
} else if (newStartIdx > newEndIdx) {
|
|
701
|
+
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
705
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
706
|
+
if (leftVNode.$tag$ === "slot") {
|
|
707
|
+
if (
|
|
708
|
+
// The component gets hydrated and no VDOM has been initialized.
|
|
709
|
+
// Here the comparison can't happen as $name$ property is not set for `leftNode`.
|
|
710
|
+
"$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
|
|
711
|
+
// hydration comments to be removed
|
|
712
|
+
leftVNode.$elm$.nodeType !== 8
|
|
713
|
+
) {
|
|
714
|
+
return false;
|
|
715
|
+
}
|
|
716
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
717
|
+
}
|
|
718
|
+
if (!isInitialRender) {
|
|
719
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
|
720
|
+
}
|
|
721
|
+
return true;
|
|
722
|
+
}
|
|
723
|
+
return false;
|
|
724
|
+
};
|
|
725
|
+
var referenceNode = (node) => {
|
|
726
|
+
return node && node["s-ol"] || node;
|
|
727
|
+
};
|
|
728
|
+
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
|
729
|
+
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
730
|
+
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
731
|
+
const oldChildren = oldVNode.$children$;
|
|
732
|
+
const newChildren = newVNode2.$children$;
|
|
733
|
+
const tag = newVNode2.$tag$;
|
|
734
|
+
const text = newVNode2.$text$;
|
|
735
|
+
let defaultHolder;
|
|
736
|
+
if (text === null) {
|
|
737
|
+
{
|
|
738
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
739
|
+
}
|
|
740
|
+
{
|
|
741
|
+
if (tag === "slot" && !useNativeShadowDom) ; else {
|
|
742
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
if (oldChildren !== null && newChildren !== null) {
|
|
746
|
+
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
747
|
+
} else if (newChildren !== null) {
|
|
748
|
+
if (oldVNode.$text$ !== null) {
|
|
749
|
+
elm.textContent = "";
|
|
750
|
+
}
|
|
751
|
+
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
752
|
+
} else if (
|
|
753
|
+
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
754
|
+
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
755
|
+
) {
|
|
756
|
+
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
757
|
+
}
|
|
758
|
+
if (isSvgMode && tag === "svg") {
|
|
759
|
+
isSvgMode = false;
|
|
760
|
+
}
|
|
761
|
+
} else if ((defaultHolder = elm["s-cr"])) {
|
|
762
|
+
defaultHolder.parentNode.textContent = text;
|
|
763
|
+
} else if (oldVNode.$text$ !== text) {
|
|
764
|
+
elm.data = text;
|
|
765
|
+
}
|
|
766
|
+
};
|
|
767
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
768
|
+
const childNodes = elm.__childNodes || elm.childNodes;
|
|
769
|
+
for (const childNode of childNodes) {
|
|
770
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
771
|
+
if (childNode["s-sr"]) {
|
|
772
|
+
const slotName = childNode["s-sn"];
|
|
773
|
+
childNode.hidden = false;
|
|
774
|
+
for (const siblingNode of childNodes) {
|
|
775
|
+
if (siblingNode !== childNode) {
|
|
776
|
+
if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
|
|
777
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
|
|
778
|
+
childNode.hidden = true;
|
|
779
|
+
break;
|
|
780
|
+
}
|
|
781
|
+
} else if (slotName === siblingNode["s-sn"]) {
|
|
782
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
|
783
|
+
childNode.hidden = true;
|
|
784
|
+
break;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
updateFallbackSlotVisibility(childNode);
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
};
|
|
794
|
+
var relocateNodes = [];
|
|
795
|
+
var markSlotContentForRelocation = (elm) => {
|
|
796
|
+
let node;
|
|
797
|
+
let hostContentNodes;
|
|
798
|
+
let j;
|
|
799
|
+
const children = elm.__childNodes || elm.childNodes;
|
|
800
|
+
for (const childNode of children) {
|
|
801
|
+
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
802
|
+
hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
|
|
803
|
+
const slotName = childNode["s-sn"];
|
|
804
|
+
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
805
|
+
node = hostContentNodes[j];
|
|
806
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
|
|
807
|
+
if (isNodeLocatedInSlot(node, slotName)) {
|
|
808
|
+
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
809
|
+
checkSlotFallbackVisibility = true;
|
|
810
|
+
node["s-sn"] = node["s-sn"] || slotName;
|
|
811
|
+
if (relocateNodeData) {
|
|
812
|
+
relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
|
|
813
|
+
relocateNodeData.$slotRefNode$ = childNode;
|
|
814
|
+
} else {
|
|
815
|
+
node["s-sh"] = childNode["s-hn"];
|
|
816
|
+
relocateNodes.push({
|
|
817
|
+
$slotRefNode$: childNode,
|
|
818
|
+
$nodeToRelocate$: node
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
if (node["s-sr"]) {
|
|
822
|
+
relocateNodes.map((relocateNode) => {
|
|
823
|
+
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
|
|
824
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
825
|
+
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
826
|
+
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
} else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
832
|
+
relocateNodes.push({
|
|
833
|
+
$nodeToRelocate$: node
|
|
834
|
+
});
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
840
|
+
markSlotContentForRelocation(childNode);
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
};
|
|
844
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
845
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
846
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
847
|
+
return true;
|
|
848
|
+
}
|
|
849
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
850
|
+
return true;
|
|
851
|
+
}
|
|
852
|
+
return false;
|
|
853
|
+
}
|
|
854
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
855
|
+
return true;
|
|
856
|
+
}
|
|
857
|
+
return slotName === "";
|
|
858
|
+
};
|
|
859
|
+
var nullifyVNodeRefs = (vNode) => {
|
|
860
|
+
{
|
|
861
|
+
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
862
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
863
|
+
}
|
|
864
|
+
};
|
|
865
|
+
var insertBefore = (parent, newNode, reference) => {
|
|
866
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
867
|
+
return inserted;
|
|
868
|
+
};
|
|
869
|
+
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
870
|
+
var _a, _b, _c, _d;
|
|
871
|
+
const hostElm = hostRef.$hostElement$;
|
|
872
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
873
|
+
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
874
|
+
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
875
|
+
hostTagName = hostElm.tagName;
|
|
876
|
+
if (cmpMeta.$attrsToReflect$) {
|
|
877
|
+
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
878
|
+
cmpMeta.$attrsToReflect$.map(
|
|
879
|
+
([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
|
|
880
|
+
);
|
|
881
|
+
}
|
|
882
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
883
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
884
|
+
if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
|
|
885
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
rootVnode.$tag$ = null;
|
|
890
|
+
rootVnode.$flags$ |= 4 /* isHost */;
|
|
891
|
+
hostRef.$vnode$ = rootVnode;
|
|
892
|
+
rootVnode.$elm$ = oldVNode.$elm$ = hostElm;
|
|
893
|
+
useNativeShadowDom = supportsShadow ;
|
|
894
|
+
{
|
|
895
|
+
contentRef = hostElm["s-cr"];
|
|
896
|
+
checkSlotFallbackVisibility = false;
|
|
897
|
+
}
|
|
898
|
+
patch(oldVNode, rootVnode, isInitialLoad);
|
|
899
|
+
{
|
|
900
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
901
|
+
if (checkSlotRelocate) {
|
|
902
|
+
markSlotContentForRelocation(rootVnode.$elm$);
|
|
903
|
+
for (const relocateData of relocateNodes) {
|
|
904
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
905
|
+
if (!nodeToRelocate["s-ol"]) {
|
|
906
|
+
const orgLocationNode = doc.createTextNode("");
|
|
907
|
+
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
908
|
+
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
for (const relocateData of relocateNodes) {
|
|
912
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
913
|
+
const slotRefNode = relocateData.$slotRefNode$;
|
|
914
|
+
if (slotRefNode) {
|
|
915
|
+
const parentNodeRef = slotRefNode.parentNode;
|
|
916
|
+
let insertBeforeNode = slotRefNode.nextSibling;
|
|
917
|
+
{
|
|
918
|
+
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
919
|
+
while (orgLocationNode) {
|
|
920
|
+
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
921
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
|
922
|
+
refNode = refNode.nextSibling;
|
|
923
|
+
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
924
|
+
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
925
|
+
}
|
|
926
|
+
if (!refNode || !refNode["s-nr"]) {
|
|
927
|
+
insertBeforeNode = refNode;
|
|
928
|
+
break;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
orgLocationNode = orgLocationNode.previousSibling;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
935
|
+
if (nodeToRelocate !== insertBeforeNode) {
|
|
936
|
+
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
937
|
+
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
938
|
+
}
|
|
939
|
+
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
940
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
941
|
+
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
|
|
946
|
+
} else {
|
|
947
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
948
|
+
if (isInitialLoad) {
|
|
949
|
+
nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
|
|
950
|
+
}
|
|
951
|
+
nodeToRelocate.hidden = true;
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
if (checkSlotFallbackVisibility) {
|
|
957
|
+
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
958
|
+
}
|
|
959
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
960
|
+
relocateNodes.length = 0;
|
|
961
|
+
}
|
|
962
|
+
contentRef = void 0;
|
|
963
|
+
};
|
|
964
|
+
var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
965
|
+
let slottedNodeLocation;
|
|
966
|
+
if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
|
|
967
|
+
slottedNodeLocation = newChild["s-ol"];
|
|
968
|
+
} else {
|
|
969
|
+
slottedNodeLocation = document.createTextNode("");
|
|
970
|
+
slottedNodeLocation["s-nr"] = newChild;
|
|
971
|
+
}
|
|
972
|
+
if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
|
|
973
|
+
const parent = slotNode["s-cr"].parentNode;
|
|
974
|
+
const appendMethod = prepend ? parent.__prepend || parent.prepend : parent.__appendChild || parent.appendChild;
|
|
975
|
+
if (typeof position !== "undefined") {
|
|
976
|
+
{
|
|
977
|
+
slottedNodeLocation["s-oo"] = position;
|
|
978
|
+
const childNodes = parent.__childNodes || parent.childNodes;
|
|
979
|
+
const slotRelocateNodes = [slottedNodeLocation];
|
|
980
|
+
childNodes.forEach((n) => {
|
|
981
|
+
if (n["s-nr"]) slotRelocateNodes.push(n);
|
|
982
|
+
});
|
|
983
|
+
slotRelocateNodes.sort((a, b) => {
|
|
984
|
+
if (!a["s-oo"] || a["s-oo"] < b["s-oo"]) return -1;
|
|
985
|
+
else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
|
|
986
|
+
return 0;
|
|
987
|
+
});
|
|
988
|
+
slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
|
|
989
|
+
}
|
|
990
|
+
} else {
|
|
991
|
+
appendMethod.call(parent, slottedNodeLocation);
|
|
992
|
+
}
|
|
993
|
+
newChild["s-ol"] = slottedNodeLocation;
|
|
994
|
+
newChild["s-sh"] = slotNode["s-hn"];
|
|
995
|
+
};
|
|
996
|
+
var createTime = (fnName, tagName = "") => {
|
|
997
|
+
{
|
|
998
|
+
return () => {
|
|
999
|
+
return;
|
|
1000
|
+
};
|
|
1001
|
+
}
|
|
1002
|
+
};
|
|
1003
|
+
var uniqueTime = (key, measureText) => {
|
|
1004
|
+
{
|
|
1005
|
+
return () => {
|
|
1006
|
+
return;
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
};
|
|
1010
|
+
|
|
1011
|
+
// src/runtime/client-hydrate.ts
|
|
1012
|
+
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1013
|
+
const endHydrate = createTime("hydrateClient", tagName);
|
|
1014
|
+
const shadowRoot = hostElm.shadowRoot;
|
|
1015
|
+
const childRenderNodes = [];
|
|
1016
|
+
const slotNodes = [];
|
|
1017
|
+
const slottedNodes = [];
|
|
1018
|
+
const shadowRootNodes = null;
|
|
1019
|
+
const vnode = newVNode(tagName, null);
|
|
1020
|
+
vnode.$elm$ = hostElm;
|
|
1021
|
+
if (!plt.$orgLocNodes$) {
|
|
1022
|
+
initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
1023
|
+
}
|
|
1024
|
+
hostElm[HYDRATE_ID] = hostId;
|
|
1025
|
+
hostElm.removeAttribute(HYDRATE_ID);
|
|
1026
|
+
hostRef.$vnode$ = clientHydrate(
|
|
1027
|
+
vnode,
|
|
1028
|
+
childRenderNodes,
|
|
1029
|
+
slotNodes,
|
|
1030
|
+
shadowRootNodes,
|
|
1031
|
+
hostElm,
|
|
1032
|
+
hostElm,
|
|
1033
|
+
hostId,
|
|
1034
|
+
slottedNodes
|
|
1035
|
+
);
|
|
1036
|
+
let crIndex = 0;
|
|
1037
|
+
const crLength = childRenderNodes.length;
|
|
1038
|
+
let childRenderNode;
|
|
1039
|
+
for (crIndex; crIndex < crLength; crIndex++) {
|
|
1040
|
+
childRenderNode = childRenderNodes[crIndex];
|
|
1041
|
+
const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
|
|
1042
|
+
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
1043
|
+
const node = childRenderNode.$elm$;
|
|
1044
|
+
if (!shadowRoot) {
|
|
1045
|
+
node["s-hn"] = tagName.toUpperCase();
|
|
1046
|
+
if (childRenderNode.$tag$ === "slot") {
|
|
1047
|
+
node["s-cr"] = hostElm["s-cr"];
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
1051
|
+
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1052
|
+
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
1053
|
+
}
|
|
1054
|
+
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
1055
|
+
if (!shadowRoot) {
|
|
1056
|
+
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1060
|
+
}
|
|
1061
|
+
const hosts = [];
|
|
1062
|
+
let snIndex = 0;
|
|
1063
|
+
const snLen = slottedNodes.length;
|
|
1064
|
+
let slotGroup;
|
|
1065
|
+
let snGroupIdx;
|
|
1066
|
+
let snGroupLen;
|
|
1067
|
+
let slottedItem;
|
|
1068
|
+
for (snIndex; snIndex < snLen; snIndex++) {
|
|
1069
|
+
slotGroup = slottedNodes[snIndex];
|
|
1070
|
+
if (!slotGroup || !slotGroup.length) continue;
|
|
1071
|
+
snGroupLen = slotGroup.length;
|
|
1072
|
+
snGroupIdx = 0;
|
|
1073
|
+
for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
|
|
1074
|
+
slottedItem = slotGroup[snGroupIdx];
|
|
1075
|
+
if (!hosts[slottedItem.hostId]) {
|
|
1076
|
+
hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
|
|
1077
|
+
}
|
|
1078
|
+
if (!hosts[slottedItem.hostId]) continue;
|
|
1079
|
+
const hostEle = hosts[slottedItem.hostId];
|
|
1080
|
+
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1081
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
1082
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
1083
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
1084
|
+
} else {
|
|
1085
|
+
const hostChildren = hostEle.__childNodes || hostEle.childNodes;
|
|
1086
|
+
slottedItem.slot["s-cr"] = hostChildren[0];
|
|
1087
|
+
}
|
|
1088
|
+
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
1089
|
+
}
|
|
1090
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1091
|
+
hostEle.appendChild(slottedItem.node);
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
hostRef.$hostElement$ = hostElm;
|
|
1096
|
+
endHydrate();
|
|
1097
|
+
};
|
|
1098
|
+
var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
|
|
1099
|
+
let childNodeType;
|
|
1100
|
+
let childIdSplt;
|
|
1101
|
+
let childVNode;
|
|
1102
|
+
let i2;
|
|
1103
|
+
const scopeId2 = hostElm["s-sc"];
|
|
1104
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
1105
|
+
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
1106
|
+
if (childNodeType) {
|
|
1107
|
+
childIdSplt = childNodeType.split(".");
|
|
1108
|
+
if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
|
|
1109
|
+
childVNode = createSimpleVNode({
|
|
1110
|
+
$flags$: 0,
|
|
1111
|
+
$hostId$: childIdSplt[0],
|
|
1112
|
+
$nodeId$: childIdSplt[1],
|
|
1113
|
+
$depth$: childIdSplt[2],
|
|
1114
|
+
$index$: childIdSplt[3],
|
|
1115
|
+
$tag$: node.tagName.toLowerCase(),
|
|
1116
|
+
$elm$: node,
|
|
1117
|
+
// If we don't add the initial classes to the VNode, the first `vdom-render.ts` reconciliation will fail:
|
|
1118
|
+
// client side changes before componentDidLoad will be ignored, `set-accessor.ts` will just take the element's initial classes
|
|
1119
|
+
$attrs$: { class: node.className }
|
|
1120
|
+
});
|
|
1121
|
+
childRenderNodes.push(childVNode);
|
|
1122
|
+
node.removeAttribute(HYDRATE_CHILD_ID);
|
|
1123
|
+
if (!parentVNode.$children$) {
|
|
1124
|
+
parentVNode.$children$ = [];
|
|
1125
|
+
}
|
|
1126
|
+
const slotName = childVNode.$elm$.getAttribute("s-sn");
|
|
1127
|
+
if (typeof slotName === "string") {
|
|
1128
|
+
if (childVNode.$tag$ === "slot-fb") {
|
|
1129
|
+
addSlot(
|
|
1130
|
+
slotName,
|
|
1131
|
+
childIdSplt[2],
|
|
1132
|
+
childVNode,
|
|
1133
|
+
node,
|
|
1134
|
+
parentVNode,
|
|
1135
|
+
childRenderNodes,
|
|
1136
|
+
slotNodes,
|
|
1137
|
+
shadowRootNodes,
|
|
1138
|
+
slottedNodes
|
|
1139
|
+
);
|
|
1140
|
+
}
|
|
1141
|
+
childVNode.$elm$["s-sn"] = slotName;
|
|
1142
|
+
childVNode.$elm$.removeAttribute("s-sn");
|
|
1143
|
+
}
|
|
1144
|
+
if (childVNode.$index$ !== void 0) {
|
|
1145
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1146
|
+
}
|
|
1147
|
+
if (scopeId2) node["s-si"] = scopeId2;
|
|
1148
|
+
parentVNode = childVNode;
|
|
1149
|
+
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1150
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
if (node.shadowRoot) {
|
|
1155
|
+
for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
|
|
1156
|
+
clientHydrate(
|
|
1157
|
+
parentVNode,
|
|
1158
|
+
childRenderNodes,
|
|
1159
|
+
slotNodes,
|
|
1160
|
+
shadowRootNodes,
|
|
1161
|
+
hostElm,
|
|
1162
|
+
node.shadowRoot.childNodes[i2],
|
|
1163
|
+
hostId,
|
|
1164
|
+
slottedNodes
|
|
1165
|
+
);
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
const nonShadowNodes = node.__childNodes || node.childNodes;
|
|
1169
|
+
for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
|
|
1170
|
+
clientHydrate(
|
|
1171
|
+
parentVNode,
|
|
1172
|
+
childRenderNodes,
|
|
1173
|
+
slotNodes,
|
|
1174
|
+
shadowRootNodes,
|
|
1175
|
+
hostElm,
|
|
1176
|
+
nonShadowNodes[i2],
|
|
1177
|
+
hostId,
|
|
1178
|
+
slottedNodes
|
|
1179
|
+
);
|
|
1180
|
+
}
|
|
1181
|
+
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1182
|
+
childIdSplt = node.nodeValue.split(".");
|
|
1183
|
+
if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
|
|
1184
|
+
childNodeType = childIdSplt[0];
|
|
1185
|
+
childVNode = createSimpleVNode({
|
|
1186
|
+
$hostId$: childIdSplt[1],
|
|
1187
|
+
$nodeId$: childIdSplt[2],
|
|
1188
|
+
$depth$: childIdSplt[3],
|
|
1189
|
+
$index$: childIdSplt[4] || "0",
|
|
1190
|
+
$elm$: node,
|
|
1191
|
+
$attrs$: null,
|
|
1192
|
+
$children$: null,
|
|
1193
|
+
$key$: null,
|
|
1194
|
+
$name$: null,
|
|
1195
|
+
$tag$: null,
|
|
1196
|
+
$text$: null
|
|
1197
|
+
});
|
|
1198
|
+
if (childNodeType === TEXT_NODE_ID) {
|
|
1199
|
+
childVNode.$elm$ = node.nextSibling;
|
|
1200
|
+
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
|
|
1201
|
+
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
1202
|
+
childRenderNodes.push(childVNode);
|
|
1203
|
+
node.remove();
|
|
1204
|
+
if (hostId === childVNode.$hostId$) {
|
|
1205
|
+
if (!parentVNode.$children$) {
|
|
1206
|
+
parentVNode.$children$ = [];
|
|
1207
|
+
}
|
|
1208
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1209
|
+
}
|
|
1210
|
+
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1211
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
} else if (childNodeType === COMMENT_NODE_ID) {
|
|
1215
|
+
childVNode.$elm$ = node.nextSibling;
|
|
1216
|
+
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
|
|
1217
|
+
childRenderNodes.push(childVNode);
|
|
1218
|
+
node.remove();
|
|
1219
|
+
}
|
|
1220
|
+
} else if (childVNode.$hostId$ === hostId) {
|
|
1221
|
+
if (childNodeType === SLOT_NODE_ID) {
|
|
1222
|
+
childVNode.$tag$ = "slot";
|
|
1223
|
+
const slotName = node["s-sn"] = childVNode.$name$ = childIdSplt[5] || "";
|
|
1224
|
+
addSlot(
|
|
1225
|
+
slotName,
|
|
1226
|
+
childIdSplt[2],
|
|
1227
|
+
childVNode,
|
|
1228
|
+
node,
|
|
1229
|
+
parentVNode,
|
|
1230
|
+
childRenderNodes,
|
|
1231
|
+
slotNodes,
|
|
1232
|
+
shadowRootNodes,
|
|
1233
|
+
slottedNodes
|
|
1234
|
+
);
|
|
1235
|
+
} else if (childNodeType === CONTENT_REF_ID) {
|
|
1236
|
+
{
|
|
1237
|
+
hostElm["s-cr"] = node;
|
|
1238
|
+
node["s-cn"] = true;
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
} else if (parentVNode && parentVNode.$tag$ === "style") {
|
|
1244
|
+
const vnode = newVNode(null, node.textContent);
|
|
1245
|
+
vnode.$elm$ = node;
|
|
1246
|
+
vnode.$index$ = "0";
|
|
1247
|
+
parentVNode.$children$ = [vnode];
|
|
1248
|
+
}
|
|
1249
|
+
return parentVNode;
|
|
1250
|
+
};
|
|
1251
|
+
var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
1252
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
1253
|
+
const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
|
|
1254
|
+
if (componentId) {
|
|
1255
|
+
orgLocNodes.set(componentId, node);
|
|
1256
|
+
}
|
|
1257
|
+
let i2 = 0;
|
|
1258
|
+
if (node.shadowRoot) {
|
|
1259
|
+
for (; i2 < node.shadowRoot.childNodes.length; i2++) {
|
|
1260
|
+
initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
const nonShadowNodes = node.__childNodes || node.childNodes;
|
|
1264
|
+
for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
|
|
1265
|
+
initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
|
|
1266
|
+
}
|
|
1267
|
+
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1268
|
+
const childIdSplt = node.nodeValue.split(".");
|
|
1269
|
+
if (childIdSplt[0] === ORG_LOCATION_ID) {
|
|
1270
|
+
orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
|
|
1271
|
+
node.nodeValue = "";
|
|
1272
|
+
node["s-en"] = childIdSplt[3];
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
};
|
|
1276
|
+
var createSimpleVNode = (vnode) => {
|
|
1277
|
+
const defaultVNode = {
|
|
1278
|
+
$flags$: 0,
|
|
1279
|
+
$hostId$: null,
|
|
1280
|
+
$nodeId$: null,
|
|
1281
|
+
$depth$: null,
|
|
1282
|
+
$index$: "0",
|
|
1283
|
+
$elm$: null,
|
|
1284
|
+
$attrs$: null,
|
|
1285
|
+
$children$: null,
|
|
1286
|
+
$key$: null,
|
|
1287
|
+
$name$: null,
|
|
1288
|
+
$tag$: null,
|
|
1289
|
+
$text$: null
|
|
1290
|
+
};
|
|
1291
|
+
return { ...defaultVNode, ...vnode };
|
|
1292
|
+
};
|
|
1293
|
+
function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
|
|
1294
|
+
node["s-sr"] = true;
|
|
1295
|
+
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
1296
|
+
{
|
|
1297
|
+
const slot = childVNode.$elm$;
|
|
1298
|
+
const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
|
|
1299
|
+
addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
|
|
1300
|
+
if (shouldMove) {
|
|
1301
|
+
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1302
|
+
}
|
|
1303
|
+
childRenderNodes.push(childVNode);
|
|
1304
|
+
}
|
|
1305
|
+
slotNodes.push(childVNode);
|
|
1306
|
+
if (!parentVNode.$children$) {
|
|
1307
|
+
parentVNode.$children$ = [];
|
|
1308
|
+
}
|
|
1309
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1310
|
+
}
|
|
1311
|
+
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1312
|
+
let slottedNode = slotNode.nextSibling;
|
|
1313
|
+
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1314
|
+
while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
1315
|
+
slottedNode["s-sn"] = slotName;
|
|
1316
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1317
|
+
slottedNode = slottedNode.nextSibling;
|
|
1318
|
+
}
|
|
1319
|
+
};
|
|
1320
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
1321
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
1322
|
+
if (propType & 4 /* Boolean */) {
|
|
1323
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1324
|
+
}
|
|
1325
|
+
if (propType & 2 /* Number */) {
|
|
1326
|
+
return parseFloat(propValue);
|
|
1327
|
+
}
|
|
1328
|
+
if (propType & 1 /* String */) {
|
|
1329
|
+
return String(propValue);
|
|
1330
|
+
}
|
|
1331
|
+
return propValue;
|
|
1332
|
+
}
|
|
1333
|
+
return propValue;
|
|
1334
|
+
};
|
|
1335
|
+
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
1336
|
+
|
|
1337
|
+
// src/runtime/event-emitter.ts
|
|
1338
|
+
var createEvent = (ref, name, flags) => {
|
|
1339
|
+
const elm = getElement(ref);
|
|
1340
|
+
return {
|
|
1341
|
+
emit: (detail) => {
|
|
1342
|
+
return emitEvent(elm, name, {
|
|
1343
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
1344
|
+
composed: !!(flags & 2 /* Composed */),
|
|
1345
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
1346
|
+
detail
|
|
1347
|
+
});
|
|
1348
|
+
}
|
|
1349
|
+
};
|
|
1350
|
+
};
|
|
1351
|
+
var emitEvent = (elm, name, opts) => {
|
|
1352
|
+
const ev = plt.ce(name, opts);
|
|
1353
|
+
elm.dispatchEvent(ev);
|
|
1354
|
+
return ev;
|
|
1355
|
+
};
|
|
1356
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1357
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1358
|
+
let style = styles.get(scopeId2);
|
|
1359
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
1360
|
+
style = style || new CSSStyleSheet();
|
|
1361
|
+
if (typeof style === "string") {
|
|
1362
|
+
style = cssText;
|
|
1363
|
+
} else {
|
|
1364
|
+
style.replaceSync(cssText);
|
|
1365
|
+
}
|
|
1366
|
+
} else {
|
|
1367
|
+
style = cssText;
|
|
1368
|
+
}
|
|
1369
|
+
styles.set(scopeId2, style);
|
|
1370
|
+
};
|
|
1371
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1372
|
+
var _a;
|
|
1373
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
1374
|
+
const style = styles.get(scopeId2);
|
|
1375
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
1376
|
+
if (style) {
|
|
1377
|
+
if (typeof style === "string") {
|
|
1378
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1379
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1380
|
+
let styleElm;
|
|
1381
|
+
if (!appliedStyles) {
|
|
1382
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1383
|
+
}
|
|
1384
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
1385
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1386
|
+
styleElm.innerHTML = style;
|
|
1387
|
+
} else {
|
|
1388
|
+
styleElm = doc.createElement("style");
|
|
1389
|
+
styleElm.innerHTML = style;
|
|
1390
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
1391
|
+
if (nonce != null) {
|
|
1392
|
+
styleElm.setAttribute("nonce", nonce);
|
|
1393
|
+
}
|
|
1394
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1395
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
1396
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1397
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1398
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
1399
|
+
} else if ("host" in styleContainerNode) {
|
|
1400
|
+
if (supportsConstructableStylesheets) {
|
|
1401
|
+
const stylesheet = new CSSStyleSheet();
|
|
1402
|
+
stylesheet.replaceSync(style);
|
|
1403
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1404
|
+
} else {
|
|
1405
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1406
|
+
if (existingStyleContainer) {
|
|
1407
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1408
|
+
} else {
|
|
1409
|
+
styleContainerNode.prepend(styleElm);
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
} else {
|
|
1413
|
+
styleContainerNode.append(styleElm);
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
1417
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1421
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1422
|
+
}
|
|
1423
|
+
if (appliedStyles) {
|
|
1424
|
+
appliedStyles.add(scopeId2);
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1428
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
return scopeId2;
|
|
1432
|
+
};
|
|
1433
|
+
var attachStyles = (hostRef) => {
|
|
1434
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1435
|
+
const elm = hostRef.$hostElement$;
|
|
1436
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1437
|
+
addStyle(
|
|
1438
|
+
elm.getRootNode(),
|
|
1439
|
+
cmpMeta);
|
|
1440
|
+
endAttachStyles();
|
|
1441
|
+
};
|
|
1442
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
1443
|
+
|
|
1444
|
+
// src/runtime/update-component.ts
|
|
1445
|
+
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1446
|
+
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
1447
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
1448
|
+
}
|
|
1449
|
+
};
|
|
1450
|
+
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
1451
|
+
{
|
|
1452
|
+
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
1453
|
+
}
|
|
1454
|
+
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1455
|
+
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
1456
|
+
return;
|
|
1457
|
+
}
|
|
1458
|
+
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
1459
|
+
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1460
|
+
return writeTask(dispatch) ;
|
|
1461
|
+
};
|
|
1462
|
+
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
1463
|
+
const elm = hostRef.$hostElement$;
|
|
1464
|
+
const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
|
1465
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1466
|
+
if (!instance) {
|
|
1467
|
+
throw new Error(
|
|
1468
|
+
`Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
|
1469
|
+
);
|
|
1470
|
+
}
|
|
1471
|
+
let maybePromise;
|
|
1472
|
+
if (isInitialLoad) {
|
|
1473
|
+
{
|
|
1474
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1475
|
+
if (hostRef.$queuedListeners$) {
|
|
1476
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1477
|
+
hostRef.$queuedListeners$ = void 0;
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
{
|
|
1481
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
{
|
|
1485
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
1486
|
+
}
|
|
1487
|
+
endSchedule();
|
|
1488
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1489
|
+
};
|
|
1490
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
|
1491
|
+
console.error(err2);
|
|
1492
|
+
fn();
|
|
1493
|
+
}) : fn();
|
|
1494
|
+
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
1495
|
+
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
1496
|
+
var _a;
|
|
1497
|
+
const elm = hostRef.$hostElement$;
|
|
1498
|
+
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
1499
|
+
const rc = elm["s-rc"];
|
|
1500
|
+
if (isInitialLoad) {
|
|
1501
|
+
attachStyles(hostRef);
|
|
1502
|
+
}
|
|
1503
|
+
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
1504
|
+
{
|
|
1505
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
1506
|
+
}
|
|
1507
|
+
if (rc) {
|
|
1508
|
+
rc.map((cb) => cb());
|
|
1509
|
+
elm["s-rc"] = void 0;
|
|
1510
|
+
}
|
|
1511
|
+
endRender();
|
|
1512
|
+
endUpdate();
|
|
1513
|
+
{
|
|
1514
|
+
const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
|
|
1515
|
+
const postUpdate = () => postUpdateComponent(hostRef);
|
|
1516
|
+
if (childrenPromises.length === 0) {
|
|
1517
|
+
postUpdate();
|
|
1518
|
+
} else {
|
|
1519
|
+
Promise.all(childrenPromises).then(postUpdate);
|
|
1520
|
+
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
1521
|
+
childrenPromises.length = 0;
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
};
|
|
1525
|
+
var renderingRef = null;
|
|
1526
|
+
var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
1527
|
+
try {
|
|
1528
|
+
renderingRef = instance;
|
|
1529
|
+
instance = instance.render && instance.render();
|
|
1530
|
+
{
|
|
1531
|
+
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
1532
|
+
}
|
|
1533
|
+
{
|
|
1534
|
+
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
1535
|
+
}
|
|
1536
|
+
{
|
|
1537
|
+
{
|
|
1538
|
+
{
|
|
1539
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
} catch (e) {
|
|
1544
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1545
|
+
}
|
|
1546
|
+
renderingRef = null;
|
|
1547
|
+
return null;
|
|
1548
|
+
};
|
|
1549
|
+
var getRenderingRef = () => renderingRef;
|
|
1550
|
+
var postUpdateComponent = (hostRef) => {
|
|
1551
|
+
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
1552
|
+
const elm = hostRef.$hostElement$;
|
|
1553
|
+
const endPostUpdate = createTime("postUpdate", tagName);
|
|
1554
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1555
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1556
|
+
{
|
|
1557
|
+
safeCall(instance, "componentDidRender");
|
|
1558
|
+
}
|
|
1559
|
+
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1560
|
+
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1561
|
+
{
|
|
1562
|
+
addHydratedFlag(elm);
|
|
1563
|
+
}
|
|
1564
|
+
{
|
|
1565
|
+
safeCall(instance, "componentDidLoad");
|
|
1566
|
+
}
|
|
1567
|
+
endPostUpdate();
|
|
1568
|
+
{
|
|
1569
|
+
hostRef.$onReadyResolve$(elm);
|
|
1570
|
+
if (!ancestorComponent) {
|
|
1571
|
+
appDidLoad();
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
} else {
|
|
1575
|
+
endPostUpdate();
|
|
1576
|
+
}
|
|
1577
|
+
{
|
|
1578
|
+
hostRef.$onInstanceResolve$(elm);
|
|
1579
|
+
}
|
|
1580
|
+
{
|
|
1581
|
+
if (hostRef.$onRenderResolve$) {
|
|
1582
|
+
hostRef.$onRenderResolve$();
|
|
1583
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
1584
|
+
}
|
|
1585
|
+
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
1586
|
+
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1587
|
+
}
|
|
1588
|
+
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
1589
|
+
}
|
|
1590
|
+
};
|
|
1591
|
+
var forceUpdate = (ref) => {
|
|
1592
|
+
{
|
|
1593
|
+
const hostRef = getHostRef(ref);
|
|
1594
|
+
const isConnected = hostRef.$hostElement$.isConnected;
|
|
1595
|
+
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1596
|
+
scheduleUpdate(hostRef, false);
|
|
1597
|
+
}
|
|
1598
|
+
return isConnected;
|
|
1599
|
+
}
|
|
1600
|
+
};
|
|
1601
|
+
var appDidLoad = (who) => {
|
|
1602
|
+
{
|
|
1603
|
+
addHydratedFlag(doc.documentElement);
|
|
1604
|
+
}
|
|
1605
|
+
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1606
|
+
};
|
|
1607
|
+
var safeCall = (instance, method, arg) => {
|
|
1608
|
+
if (instance && instance[method]) {
|
|
1609
|
+
try {
|
|
1610
|
+
return instance[method](arg);
|
|
1611
|
+
} catch (e) {
|
|
1612
|
+
consoleError(e);
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
return void 0;
|
|
1616
|
+
};
|
|
1617
|
+
var addHydratedFlag = (elm) => {
|
|
1618
|
+
var _a;
|
|
1619
|
+
return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
|
|
1620
|
+
};
|
|
1621
|
+
|
|
1622
|
+
// src/runtime/set-value.ts
|
|
1623
|
+
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1624
|
+
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1625
|
+
const hostRef = getHostRef(ref);
|
|
1626
|
+
if (!hostRef) {
|
|
1627
|
+
throw new Error(
|
|
1628
|
+
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
|
|
1629
|
+
);
|
|
1630
|
+
}
|
|
1631
|
+
const elm = hostRef.$hostElement$ ;
|
|
1632
|
+
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1633
|
+
const flags = hostRef.$flags$;
|
|
1634
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1635
|
+
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1636
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1637
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1638
|
+
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1639
|
+
hostRef.$instanceValues$.set(propName, newVal);
|
|
1640
|
+
if (instance) {
|
|
1641
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1642
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1643
|
+
if (watchMethods) {
|
|
1644
|
+
watchMethods.map((watchMethodName) => {
|
|
1645
|
+
try {
|
|
1646
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
1647
|
+
} catch (e) {
|
|
1648
|
+
consoleError(e, elm);
|
|
1649
|
+
}
|
|
1650
|
+
});
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1654
|
+
scheduleUpdate(hostRef, false);
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
};
|
|
1659
|
+
|
|
1660
|
+
// src/runtime/proxy-component.ts
|
|
1661
|
+
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1662
|
+
var _a, _b;
|
|
1663
|
+
const prototype = Cstr.prototype;
|
|
1664
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
1665
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1666
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1667
|
+
}
|
|
1668
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1669
|
+
members.map(([memberName, [memberFlags]]) => {
|
|
1670
|
+
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1671
|
+
if ((memberFlags & 2048 /* Getter */) === 0) {
|
|
1672
|
+
Object.defineProperty(prototype, memberName, {
|
|
1673
|
+
get() {
|
|
1674
|
+
return getValue(this, memberName);
|
|
1675
|
+
},
|
|
1676
|
+
set(newValue) {
|
|
1677
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1678
|
+
},
|
|
1679
|
+
configurable: true,
|
|
1680
|
+
enumerable: true
|
|
1681
|
+
});
|
|
1682
|
+
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
1683
|
+
{
|
|
1684
|
+
Object.defineProperty(prototype, memberName, {
|
|
1685
|
+
get() {
|
|
1686
|
+
const ref = getHostRef(this);
|
|
1687
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1688
|
+
if (!instance) return;
|
|
1689
|
+
return instance[memberName];
|
|
1690
|
+
},
|
|
1691
|
+
configurable: true,
|
|
1692
|
+
enumerable: true
|
|
1693
|
+
});
|
|
1694
|
+
}
|
|
1695
|
+
if (memberFlags & 4096 /* Setter */) {
|
|
1696
|
+
const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
|
|
1697
|
+
Object.defineProperty(prototype, memberName, {
|
|
1698
|
+
set(newValue) {
|
|
1699
|
+
const ref = getHostRef(this);
|
|
1700
|
+
if (origSetter) {
|
|
1701
|
+
const currentValue = ref.$hostElement$[memberName];
|
|
1702
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1703
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1704
|
+
}
|
|
1705
|
+
origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
|
|
1706
|
+
setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
|
|
1707
|
+
return;
|
|
1708
|
+
}
|
|
1709
|
+
if (!ref) return;
|
|
1710
|
+
const setterSetVal = () => {
|
|
1711
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1712
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1713
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1714
|
+
}
|
|
1715
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
1716
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1717
|
+
};
|
|
1718
|
+
if (ref.$lazyInstance$) {
|
|
1719
|
+
setterSetVal();
|
|
1720
|
+
} else {
|
|
1721
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
});
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
1728
|
+
Object.defineProperty(prototype, memberName, {
|
|
1729
|
+
value(...args) {
|
|
1730
|
+
var _a2;
|
|
1731
|
+
const ref = getHostRef(this);
|
|
1732
|
+
return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
|
|
1733
|
+
var _a3;
|
|
1734
|
+
return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
|
|
1735
|
+
});
|
|
1736
|
+
}
|
|
1737
|
+
});
|
|
1738
|
+
}
|
|
1739
|
+
});
|
|
1740
|
+
if ((flags & 1 /* isElementConstructor */)) {
|
|
1741
|
+
const attrNameToPropName = /* @__PURE__ */ new Map();
|
|
1742
|
+
prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
|
|
1743
|
+
plt.jmp(() => {
|
|
1744
|
+
var _a2;
|
|
1745
|
+
const propName = attrNameToPropName.get(attrName);
|
|
1746
|
+
if (this.hasOwnProperty(propName)) {
|
|
1747
|
+
newValue = this[propName];
|
|
1748
|
+
delete this[propName];
|
|
1749
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1750
|
+
this[propName] == newValue) {
|
|
1751
|
+
return;
|
|
1752
|
+
} else if (propName == null) {
|
|
1753
|
+
const hostRef = getHostRef(this);
|
|
1754
|
+
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1755
|
+
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1756
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1757
|
+
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1758
|
+
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
1759
|
+
if (instance[callbackName] != null) {
|
|
1760
|
+
instance[callbackName].call(instance, newValue, oldValue, attrName);
|
|
1761
|
+
}
|
|
1762
|
+
});
|
|
1763
|
+
}
|
|
1764
|
+
return;
|
|
1765
|
+
}
|
|
1766
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1767
|
+
if (!propDesc.get || !!propDesc.set) {
|
|
1768
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1769
|
+
}
|
|
1770
|
+
});
|
|
1771
|
+
};
|
|
1772
|
+
Cstr.observedAttributes = Array.from(
|
|
1773
|
+
/* @__PURE__ */ new Set([
|
|
1774
|
+
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
1775
|
+
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
|
1776
|
+
var _a2;
|
|
1777
|
+
const attrName = m[1] || propName;
|
|
1778
|
+
attrNameToPropName.set(attrName, propName);
|
|
1779
|
+
if (m[0] & 512 /* ReflectAttr */) {
|
|
1780
|
+
(_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
|
|
1781
|
+
}
|
|
1782
|
+
return attrName;
|
|
1783
|
+
})
|
|
1784
|
+
])
|
|
1785
|
+
);
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
return Cstr;
|
|
1789
|
+
};
|
|
1790
|
+
|
|
1791
|
+
// src/runtime/initialize-component.ts
|
|
1792
|
+
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1793
|
+
let Cstr;
|
|
1794
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1795
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1796
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1797
|
+
if (bundleId) {
|
|
1798
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1799
|
+
if (CstrImport && "then" in CstrImport) {
|
|
1800
|
+
const endLoad = uniqueTime();
|
|
1801
|
+
Cstr = await CstrImport;
|
|
1802
|
+
endLoad();
|
|
1803
|
+
} else {
|
|
1804
|
+
Cstr = CstrImport;
|
|
1805
|
+
}
|
|
1806
|
+
if (!Cstr) {
|
|
1807
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1808
|
+
}
|
|
1809
|
+
if (!Cstr.isProxied) {
|
|
1810
|
+
{
|
|
1811
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1812
|
+
}
|
|
1813
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1814
|
+
Cstr.isProxied = true;
|
|
1815
|
+
}
|
|
1816
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1817
|
+
{
|
|
1818
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1819
|
+
}
|
|
1820
|
+
try {
|
|
1821
|
+
new Cstr(hostRef);
|
|
1822
|
+
} catch (e) {
|
|
1823
|
+
consoleError(e);
|
|
1824
|
+
}
|
|
1825
|
+
{
|
|
1826
|
+
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1827
|
+
}
|
|
1828
|
+
{
|
|
1829
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1830
|
+
}
|
|
1831
|
+
endNewInstance();
|
|
1832
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1833
|
+
} else {
|
|
1834
|
+
Cstr = elm.constructor;
|
|
1835
|
+
const cmpTag = elm.localName;
|
|
1836
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1837
|
+
}
|
|
1838
|
+
if (Cstr && Cstr.style) {
|
|
1839
|
+
let style;
|
|
1840
|
+
if (typeof Cstr.style === "string") {
|
|
1841
|
+
style = Cstr.style;
|
|
1842
|
+
}
|
|
1843
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
1844
|
+
if (!styles.has(scopeId2)) {
|
|
1845
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1846
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1847
|
+
endRegisterStyles();
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1852
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1853
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1854
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
1855
|
+
} else {
|
|
1856
|
+
schedule();
|
|
1857
|
+
}
|
|
1858
|
+
};
|
|
1859
|
+
var fireConnectedCallback = (instance) => {
|
|
1860
|
+
{
|
|
1861
|
+
safeCall(instance, "connectedCallback");
|
|
1862
|
+
}
|
|
1863
|
+
};
|
|
1864
|
+
|
|
1865
|
+
// src/runtime/connected-callback.ts
|
|
1866
|
+
var connectedCallback = (elm) => {
|
|
1867
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1868
|
+
const hostRef = getHostRef(elm);
|
|
1869
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1870
|
+
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1871
|
+
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1872
|
+
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1873
|
+
let hostId;
|
|
1874
|
+
{
|
|
1875
|
+
hostId = elm.getAttribute(HYDRATE_ID);
|
|
1876
|
+
if (hostId) {
|
|
1877
|
+
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
if (!hostId) {
|
|
1881
|
+
if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
1882
|
+
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
|
1883
|
+
setContentReference(elm);
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
{
|
|
1887
|
+
let ancestorComponent = elm;
|
|
1888
|
+
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
1889
|
+
if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
|
|
1890
|
+
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
|
1891
|
+
break;
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
if (cmpMeta.$members$) {
|
|
1896
|
+
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1897
|
+
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1898
|
+
const value = elm[memberName];
|
|
1899
|
+
delete elm[memberName];
|
|
1900
|
+
elm[memberName] = value;
|
|
1901
|
+
}
|
|
1902
|
+
});
|
|
1903
|
+
}
|
|
1904
|
+
{
|
|
1905
|
+
nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
|
|
1906
|
+
}
|
|
1907
|
+
} else {
|
|
1908
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1909
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1910
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1911
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1912
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
endConnected();
|
|
1916
|
+
}
|
|
1917
|
+
};
|
|
1918
|
+
var setContentReference = (elm) => {
|
|
1919
|
+
const contentRefElm = elm["s-cr"] = doc.createComment(
|
|
1920
|
+
""
|
|
1921
|
+
);
|
|
1922
|
+
contentRefElm["s-cn"] = true;
|
|
1923
|
+
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1924
|
+
};
|
|
1925
|
+
var disconnectInstance = (instance) => {
|
|
1926
|
+
{
|
|
1927
|
+
safeCall(instance, "disconnectedCallback");
|
|
1928
|
+
}
|
|
1929
|
+
};
|
|
1930
|
+
var disconnectedCallback = async (elm) => {
|
|
1931
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1932
|
+
const hostRef = getHostRef(elm);
|
|
1933
|
+
{
|
|
1934
|
+
if (hostRef.$rmListeners$) {
|
|
1935
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1936
|
+
hostRef.$rmListeners$ = void 0;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1940
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1941
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1942
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
};
|
|
1946
|
+
|
|
1947
|
+
// src/runtime/bootstrap-lazy.ts
|
|
1948
|
+
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1949
|
+
var _a;
|
|
1950
|
+
const endBootstrap = createTime();
|
|
1951
|
+
const cmpTags = [];
|
|
1952
|
+
const exclude = options.exclude || [];
|
|
1953
|
+
const customElements2 = win.customElements;
|
|
1954
|
+
const head = doc.head;
|
|
1955
|
+
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
1956
|
+
const dataStyles = /* @__PURE__ */ doc.createElement("style");
|
|
1957
|
+
const deferredConnectedCallbacks = [];
|
|
1958
|
+
let appLoadFallback;
|
|
1959
|
+
let isBootstrapping = true;
|
|
1960
|
+
Object.assign(plt, options);
|
|
1961
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
|
|
1962
|
+
{
|
|
1963
|
+
plt.$flags$ |= 2 /* appLoaded */;
|
|
1964
|
+
}
|
|
1965
|
+
let hasSlotRelocation = false;
|
|
1966
|
+
lazyBundles.map((lazyBundle) => {
|
|
1967
|
+
lazyBundle[1].map((compactMeta) => {
|
|
1968
|
+
var _a2;
|
|
1969
|
+
const cmpMeta = {
|
|
1970
|
+
$flags$: compactMeta[0],
|
|
1971
|
+
$tagName$: compactMeta[1],
|
|
1972
|
+
$members$: compactMeta[2],
|
|
1973
|
+
$listeners$: compactMeta[3]
|
|
1974
|
+
};
|
|
1975
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1976
|
+
hasSlotRelocation = true;
|
|
1977
|
+
}
|
|
1978
|
+
{
|
|
1979
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1980
|
+
}
|
|
1981
|
+
{
|
|
1982
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1983
|
+
}
|
|
1984
|
+
{
|
|
1985
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1986
|
+
}
|
|
1987
|
+
{
|
|
1988
|
+
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
1989
|
+
}
|
|
1990
|
+
const tagName = cmpMeta.$tagName$;
|
|
1991
|
+
const HostElement = class extends HTMLElement {
|
|
1992
|
+
// StencilLazyHost
|
|
1993
|
+
constructor(self) {
|
|
1994
|
+
super(self);
|
|
1995
|
+
this.hasRegisteredEventListeners = false;
|
|
1996
|
+
self = this;
|
|
1997
|
+
registerHost(self, cmpMeta);
|
|
1998
|
+
}
|
|
1999
|
+
connectedCallback() {
|
|
2000
|
+
const hostRef = getHostRef(this);
|
|
2001
|
+
if (!this.hasRegisteredEventListeners) {
|
|
2002
|
+
this.hasRegisteredEventListeners = true;
|
|
2003
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
2004
|
+
}
|
|
2005
|
+
if (appLoadFallback) {
|
|
2006
|
+
clearTimeout(appLoadFallback);
|
|
2007
|
+
appLoadFallback = null;
|
|
2008
|
+
}
|
|
2009
|
+
if (isBootstrapping) {
|
|
2010
|
+
deferredConnectedCallbacks.push(this);
|
|
2011
|
+
} else {
|
|
2012
|
+
plt.jmp(() => connectedCallback(this));
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
disconnectedCallback() {
|
|
2016
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
2017
|
+
}
|
|
2018
|
+
componentOnReady() {
|
|
2019
|
+
return getHostRef(this).$onReadyPromise$;
|
|
2020
|
+
}
|
|
2021
|
+
};
|
|
2022
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
2023
|
+
if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
|
|
2024
|
+
cmpTags.push(tagName);
|
|
2025
|
+
customElements2.define(
|
|
2026
|
+
tagName,
|
|
2027
|
+
proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
|
|
2028
|
+
);
|
|
2029
|
+
}
|
|
2030
|
+
});
|
|
2031
|
+
});
|
|
2032
|
+
if (cmpTags.length > 0) {
|
|
2033
|
+
if (hasSlotRelocation) {
|
|
2034
|
+
dataStyles.textContent += SLOT_FB_CSS;
|
|
2035
|
+
}
|
|
2036
|
+
if (dataStyles.innerHTML.length) {
|
|
2037
|
+
dataStyles.setAttribute("data-styles", "");
|
|
2038
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
2039
|
+
if (nonce != null) {
|
|
2040
|
+
dataStyles.setAttribute("nonce", nonce);
|
|
2041
|
+
}
|
|
2042
|
+
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
isBootstrapping = false;
|
|
2046
|
+
if (deferredConnectedCallbacks.length) {
|
|
2047
|
+
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
2048
|
+
} else {
|
|
2049
|
+
{
|
|
2050
|
+
plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
endBootstrap();
|
|
2054
|
+
};
|
|
2055
|
+
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2056
|
+
if (listeners) {
|
|
2057
|
+
listeners.map(([flags, name, method]) => {
|
|
2058
|
+
const target = getHostListenerTarget(elm, flags) ;
|
|
2059
|
+
const handler = hostListenerProxy(hostRef, method);
|
|
2060
|
+
const opts = hostListenerOpts(flags);
|
|
2061
|
+
plt.ael(target, name, handler, opts);
|
|
2062
|
+
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
2063
|
+
});
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2066
|
+
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
2067
|
+
var _a;
|
|
2068
|
+
try {
|
|
2069
|
+
{
|
|
2070
|
+
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
2071
|
+
(_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
|
|
2072
|
+
} else {
|
|
2073
|
+
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
} catch (e) {
|
|
2077
|
+
consoleError(e);
|
|
2078
|
+
}
|
|
2079
|
+
};
|
|
2080
|
+
var getHostListenerTarget = (elm, flags) => {
|
|
2081
|
+
if (flags & 4 /* TargetDocument */) return doc;
|
|
2082
|
+
return elm;
|
|
2083
|
+
};
|
|
2084
|
+
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
2085
|
+
passive: (flags & 1 /* Passive */) !== 0,
|
|
2086
|
+
capture: (flags & 2 /* Capture */) !== 0
|
|
2087
|
+
} : (flags & 2 /* Capture */) !== 0;
|
|
2088
|
+
|
|
2089
|
+
// src/runtime/nonce.ts
|
|
2090
|
+
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
2091
|
+
|
|
2092
|
+
export { Build as B, Host as H, getElement as a, bootstrapLazy as b, createEvent as c, forceUpdate as f, getRenderingRef as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
2093
|
+
|
|
6
2094
|
//# sourceMappingURL=index-f6fae858.js.map
|