@estjs/template 0.0.14 → 0.0.15-beta.5
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/README.md +14 -0
- package/dist/template.cjs.js +4 -3
- package/dist/template.cjs.js.map +1 -1
- package/dist/template.d.cts +459 -2364
- package/dist/template.d.ts +459 -2364
- package/dist/template.dev.cjs.js +1809 -774
- package/dist/template.dev.esm.js +1778 -772
- package/dist/template.esm.js +4 -3
- package/dist/template.esm.js.map +1 -1
- package/package.json +5 -5
- package/types/component.d.ts +0 -21
- package/types/index.d.ts +0 -3
- package/types/jsx.d.ts +0 -2182
- package/types/node.d.ts +0 -15
package/README.md
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# @estjs/template
|
|
2
|
+
|
|
3
|
+
The template engine for **Essor**. It handles the normalization of JSX templates and provides the runtime support for Server-Side Rendering (SSR) and Static Site Generation (SSG).
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @estjs/template
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## License
|
|
13
|
+
|
|
14
|
+
MIT
|
package/dist/template.cjs.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
'use strict';var shared=require('@estjs/shared'),
|
|
2
|
-
* @estjs/template v0.0.
|
|
1
|
+
'use strict';var shared=require('@estjs/shared'),signals=require('@estjs/signals');/**
|
|
2
|
+
* @estjs/template v0.0.15-beta.5
|
|
3
3
|
* (c) 2023-Present jiangxd <jiangxd2016@gmail.com>
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
|
-
var R="on",w="update",E="children",A="",U="0",B="1";var H="ref",_=" __PLACEHOLDER__ ";var G=class{constructor(){this.renderMode=0;}get isSSG(){return this.renderMode===1}get isSSR(){return this.renderMode===2}get isClient(){return this.renderMode===0}setSSR(){this.renderMode=2;}setSSG(){this.renderMode=1;}setClient(){this.renderMode=0;}},u=new G,q=new Map;function z(n,t){q.set(n,{index:t});}function W(n){var t;return (t=q.get(n))==null?void 0:t.index}var T=class T{constructor(){this.hooks={mounted:new Set,destroy:new Set};}addEventListener(){}removeEventListener(){}addHook(t,e){var o;(o=this.hooks[t])==null||o.add(e);}getContext(t){return T.context[t]}setContext(t,e){T.context[t]=e;}initRef(){T.ref=this;}removeRef(){T.ref=null;}clearHooks(){Object.values(this.hooks).forEach(t=>t.clear());}};T.ref=null,T.context={};var l=T;function O(n){return n instanceof b}var C=1,b=class extends l{constructor(e,o={},r){super();this.template=e;this.props=o;this.key=r;z(e,C),this.templates=this.processTemplate();}processTemplate(){if(shared.isArray(this.template)){let e=this.template.join(_);return this.processHtmlString(e).split(_)}return []}processHtmlString(e){return e.replaceAll(/(<[^>]+>)|([^<]+)/g,(o,r,i)=>r?r.includes("data-ci")?o:r.replace(/<\s*([\da-z]+)(\s[^>]*)?>/i,(s,c,a)=>`<${c} data-ci="${C}"${a||""}>`):i&&i.replace(_,"").trim()?`<!--0-${C}-->${i}<!$>`:o)}mount(){this.initRef();let e=this.render();return this.removeRef(),e}render(){if(shared.isFunction(this.template)){let e=this.template(this.props);return O(e)?e.mount():String(e)}return this.renderTemplate()}renderTemplate(){return Object.entries(this.props).forEach(([e,o])=>{let r=o.children;this.normalizeProps(o);let i=this.templates.findIndex(s=>s.includes(`data-hk="${e}"`));r&&this.renderChildren(r,i),this.templates[i]=this.templates[i].replace(`data-hk="${e}"`,`data-hk="${e}" ${this.generateAttributes(o)}`);}),this.templates.join("")}normalizeProps(e){Object.entries(e).forEach(([o,r])=>{o===E||shared.isFunction(r)?delete e[o]:signal.isSignal(r)&&(e[o]=r.value);});}generateAttributes(e){return Object.entries(e).filter(([o,r])=>o!==E&&!shared.isFunction(r)).map(([o,r])=>`${o}="${shared.escape(String(r))}"`).join(" ")}renderChildren(e,o){e.forEach(([r])=>{C++;let i=this.renderChild(r);this.templates[o]+=i;});}renderChild(e){if(signal.isSignal(e))return `<!--1-${C}-->${e.value}<!$>`;if(shared.isFunction(e))return this.renderChild(e(this.props));if(O(e)){let o=e.mount();return shared.isFunction(o)?o(this.props):$(o)}else return `<!--1-${C}-->${e}<!$>`}};var Ne="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr".split(",");function D(n){if(h(n)||n instanceof Node||O(n))return n;let t=shared.isFalsy(n)?"":String(n);return document.createTextNode(t)}function g(n,t,e=null){let o=h(e)?e.firstChild:e,r=u.isSSR;h(t)?t.mount(n,o):o&&!r?o.before(t):r||n.append(t);}function M(n){h(n)?n.unmount():n.parentNode&&n.remove();}function F(n,t,e){g(n,t,e),M(e);}function ee(n,t,e){t==="class"?Ee(n,e):t==="style"?ge(n,e):Te(n,t,e);}function Ee(n,t){typeof t=="string"?n.className=t:shared.isArray(t)?n.className=t.join(" "):t&&typeof t=="object"&&(n.className=Object.entries(t).reduce((e,[o,r])=>e+(r?` ${o}`:""),"").trim());}function ge(n,t){typeof t=="string"?n.style.cssText=t:t&&typeof t=="object"&&Object.entries(t).forEach(([o,r])=>{n.style.setProperty(shared.kebabCase(o),String(r));});}function Te(n,t,e){shared.isFalsy(e)?n.removeAttribute(t):e===!0?n.setAttribute(t,""):n instanceof HTMLInputElement&&t==="value"?n.value=String(e):n.setAttribute(t,String(e));}function te(n,t){if(n instanceof HTMLInputElement)switch(n.type){case"checkbox":return m(n,"change",()=>{t(!!n.checked);});case"date":return m(n,"change",()=>{t(n.value?n.value:"");});case"file":return m(n,"change",()=>{n.files&&t(n.files);});case"number":return m(n,"input",()=>{let e=Number.parseFloat(n.value);t(Number.isNaN(e)?"":String(e));});case"radio":return m(n,"change",()=>{t(n.checked?n.value:"");});case"text":return m(n,"input",()=>{t(n.value);})}if(n instanceof HTMLSelectElement)return m(n,"change",()=>{t(n.value);});if(n instanceof HTMLTextAreaElement)return m(n,"input",()=>{t(n.value);})}function m(n,t,e){return n.addEventListener(t,e),()=>n.removeEventListener(t,e)}function oe(n){return Ne.includes(n)?`<${n}/>`:`<${n}></${n}>`}function $(n){return signal.isSignal(n)?n.value:n}var y=class extends l{constructor(e,o,r){super();this.template=e;this.props=o;this.key=r;this.emitter=new Set;this.rootNode=null;this.trackMap=new Map;this.nodes=[];this.parent=null;this.before=null;this.key||(this.key=o&&o.key),this.proxyProps||(this.proxyProps=signal.shallowReactive(o||{}));}get firstChild(){var e,o;return (o=(e=this.rootNode)==null?void 0:e.firstChild)!=null?o:null}get isConnected(){var e,o;return (o=(e=this.rootNode)==null?void 0:e.isConnected)!=null?o:!1}mount(e,o){var r,i,s,c;if(this.parent=e,!shared.isFunction(this.template))throw new Error("Template must be a function");return this.isConnected?(i=(r=this.rootNode)==null?void 0:r.mount(e,o))!=null?i:[]:(this.initRef(),this.rootNode=this.template(signal.useReactive(this.proxyProps,[E])),this.nodes=(c=(s=this.rootNode)==null?void 0:s.mount(e,o))!=null?c:[],this.callMountHooks(),this.patchProps(this.props),this.removeRef(),this.nodes)}unmount(){var e;this.callLifecycleHooks("destroy"),this.cleanup(),(e=this.rootNode)==null||e.unmount(),this.resetState(),this.key&&k.delete(this.key);}resetState(){this.rootNode=null,this.proxyProps={},this.nodes=[],this.parent=null;}callLifecycleHooks(e){this.hooks[e].forEach(o=>o());}callMountHooks(){this.hooks.mounted.forEach(e=>e());}callDestroyHooks(){this.hooks.destroy.forEach(e=>e());}clearEmitter(){for(let e of this.emitter)e();this.emitter.clear();}inheritNode(e){if(Object.assign(this.proxyProps,e.proxyProps),this.rootNode=e.rootNode,this.trackMap=e.trackMap,this.hooks=e.hooks,shared.hasChanged(e.props,this.props)){let o=this.props;this.props=e.props,this.patchProps(o);}}getNodeTrack(e){let o=this.trackMap.get(e);return o||(o={cleanup:()=>{}},this.trackMap.set(e,o)),o.cleanup(),o}patchProps(e){var o;if(e){for(let[r,i]of Object.entries(e))shared.startsWith(r,R)&&((o=this.rootNode)!=null&&o.firstChild)?this.patchEventListener(r,i):r===H?this.patchRef(i):shared.startsWith(r,w)?this.patchUpdateHandler(r,i):r!==E&&this.patchNormalProp(r,i);this.props=e;}}patchEventListener(e,o){let r=e.slice(2).toLowerCase(),i=m(this.rootNode.nodes[0],r,o);this.emitter.add(i);}patchRef(e){var o,r;e.value=(r=(o=this.rootNode)==null?void 0:o.firstChild)!=null?r:null;}patchUpdateHandler(e,o){this.proxyProps[e]=$(o);}patchNormalProp(e,o){let r=this.getNodeTrack(e);r.cleanup=signal.useEffect(()=>{this.proxyProps[e]=shared.isFunction(o)?o():o;});}cleanup(){this.trackMap.forEach(e=>{var o;return (o=e.cleanup)==null?void 0:o.call(e)}),this.trackMap.clear(),this.emitter.forEach(e=>e()),this.emitter.clear();}};function ie(n,t,e,o){let r=new Map,i=Array.from(t.values());if(i.length&&e.length===0)return Ce(n,i,o),r;let s=[],c=Me(e),a=0;for(let[d,p]of e.entries()){let f=i[a],v=S(f,d);for(;f&&!c.has(v);)M(f),t.delete(v),f=i[++a],v=S(f,d);let V=S(p,d),X=t.get(V);if(X&&(p=be(n,X,p)),f)if(f===X)a++;else {let Y=document.createComment("");g(n,Y,f),s.push([Y,p]);}else g(n,p,o);r.set(V,p);}return s.forEach(([d,p])=>{F(n,p,d);}),t.forEach((d,p)=>{d.isConnected&&!r.has(p)&&M(d);}),r}function Ce(n,t,e){if(n.childNodes.length===t.length+(e?1:0))n.innerHTML="",e&&g(n,e);else {let o=document.createRange(),r=t[0],i=h(r)?r.firstChild:r;o.setStartBefore(i),e?o.setEndBefore(e):o.setEndAfter(n),o.deleteContents();}t.forEach(o=>{h(o)&&o.unmount();});}function be(n,t,e){return t===e?t:h(t)&&h(e)&&t.template===e.template?(e.inheritNode(t),e):t instanceof Text&&e instanceof Text?(t.textContent!==e.textContent&&(t.textContent=e.textContent),t):(F(n,e,t),e)}function Me(n){let t=new Map;for(let[e,o]of n.entries()){let r=S(o,e);t.set(r,o);}return t}function S(n,t){if(h(n)){let e=n.key;if(e!=null)return String(e)}return `_$${t}$`}var x=class{constructor(t,e,o){this.template=t;this.props=e;this.key=o;this.treeMap=new Map;this.mounted=!1;this.nodes=[];this.trackMap=new Map;this.bindValueKeys=[];this.parent=null;u.isSSR&&(this.componentIndex=W(this.template));}get firstChild(){var t;return (t=this.nodes[0])!=null?t:null}get isConnected(){return this.mounted}addEventListener(){}removeEventListener(){}mount(t,e){var i;if(this.parent=t,this.isConnected)return this.nodes.forEach(s=>g(t,s,e)),this.nodes;shared.isArray(this.template)&&(this.template=P(this.template.join("")));let o=this.template.content.cloneNode(!0),r=o.firstChild;return (i=r==null?void 0:r.hasAttribute)!=null&&i.call(r,"_svg_")&&(r.remove(),r.childNodes.forEach(s=>{o.append(s);})),this.nodes=Array.from(o.childNodes),u.isSSR?this.mapSSGNodeTree(t):this.mapNodeTree(t,o),g(t,o,e),this.patchProps(this.props),this.mounted=!0,this.nodes}unmount(){this.trackMap.forEach(t=>{t.cleanup&&t.cleanup();}),this.trackMap.clear(),this.treeMap.clear(),this.nodes.forEach(t=>M(t)),this.nodes=[],this.mounted=!1,this.key&&k.delete(this.key);}inheritNode(t){this.mounted=t.mounted,this.nodes=t.nodes,this.trackMap=t.trackMap,this.treeMap=t.treeMap;let e=this.props;this.props=t.props,this.patchProps(e);}mapSSGNodeTree(t){this.treeMap.set(0,t),this.walkNodeTree(t,this.handleSSGNode.bind(this));}mapNodeTree(t,e){let o=1;this.treeMap.set(0,t);let r=[t],i=s=>{s.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(this.treeMap.set(o++,s),r.push(s));};this.walkNodeTree(e,i);}walkNodeTree(t,e){t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&e(t);let o=t.firstChild;for(;o;)this.walkNodeTree(o,e),o=o.nextSibling;}handleSSGNode(t){var e;if(t.nodeType===Node.COMMENT_NODE){let[o,r]=((e=t.textContent)==null?void 0:e.split("-"))||[];if(0===+o&&+r===this.componentIndex){let i=t.nextSibling;this.treeMap.set(+r,i);}}else if(t.nodeType!==Node.TEXT_NODE){let{ci:o="-1",hk:r}=(t==null?void 0:t.dataset)||{};r&&+o===this.componentIndex&&this.treeMap.set(+r,t);}}patchProps(t){t&&(Object.entries(t).forEach(([e,o])=>{let r=Number(e),i=this.treeMap.get(r);i&&this.patchProp(e,i,o,r===0);}),this.props=t);}patchProp(t,e,o,r){o&&Object.entries(o).forEach(([i,s])=>{if(i===E&&s)this.patchChildren(t,e,s,r);else if(i===H)o[i].value=e;else if(shared.startsWith(i,R))this.patchEventListener(t,e,i,s);else {if(this.bindValueKeys.includes(i))return;let c=this.getBindUpdateValue(o,t,i);this.patchAttribute(t,e,i,s,c);}});}getBindUpdateValue(t,e,o){let r=`${w}${shared.capitalize(o)}`;if(r&&t[r]&&shared.isFunction(t[r]))return this.bindValueKeys.push(r),t[r]}patchChildren(t,e,o,r){if(shared.isArray(o))o.filter(Boolean).forEach((i,s)=>{var v;let[c,a]=shared.isArray(i)?i:[i,null],d=shared.isNil(a)?null:(v=this.treeMap.get(a))!=null?v:null,p=`${t}:${E}:${s}`,f=this.getNodeTrack(p,!0,r);this.patchChild(f,e,c,d);});else {let i=`${t}:${E}:0`,s=this.getNodeTrack(i,!0,r);this.patchChild(s,e,o,null);}}patchEventListener(t,e,o,r){let i=o.slice(2).toLowerCase(),s=this.getNodeTrack(`${t}:${o}`);s.cleanup=m(e,i,r);}patchAttribute(t,e,o,r,i){let s=this.getNodeTrack(`${t}:${o}`),c=signal.shallowSignal(),a=signal.useEffect(()=>{c.value=signal.isSignal(r)||signal.isComputed(r)?r.value:r,ee(e,o,c.value);}),d;i&&shared.isHTMLElement(e)&&(d=te(e,p=>{i(p);})),s.cleanup=()=>{a&&a(),d&&d();};}getNodeTrack(t,e,o){let r=this.trackMap.get(t);return r||(r={cleanup:()=>{}},e&&(r.lastNodes=new Map),o&&(r.isRoot=!0),this.trackMap.set(t,r)),r.cleanup&&r.cleanup(),r}patchChild(t,e,o,r){shared.isFunction(o)?t.cleanup=signal.useEffect(()=>{let i=shared.coerceArray(o()).map(D);u.isSSR?t.lastNodes=this.reconcileChildren(e,i,r):t.lastNodes=ie(e,t.lastNodes,i,r);}):shared.coerceArray(o).forEach((i,s)=>{let c=D(i),a=S(c,s);u.isSSR?t.lastNodes=this.reconcileChildren(e,[c],r):(t.lastNodes.set(a,c),g(e,c,r));});}reconcileChildren(t,e,o){let r=new Map,i=Array.from(t.childNodes).filter(s=>{var c,a;return s.nodeType===Node.TEXT_NODE&&((c=s.previousSibling)==null?void 0:c.nodeType)===Node.COMMENT_NODE&&((a=s.nextSibling)==null?void 0:a.nodeType)===Node.COMMENT_NODE});return e.forEach((s,c)=>{let a=S(s,c);s.nodeType===Node.TEXT_NODE?i.forEach(d=>{s.textContent===d.textContent&&t.replaceChild(s,d);}):g(t,s,o),r.set(a,s);}),r}};var k=new Map;function I(n,t,e={},o){if(o){let i=k.get(o);if(i)return i}typeof t=="string"&&(t=P(t));let r=new n(t,e,o);return o&&r instanceof y&&k.set(o,r),r}function j(n,t={},e){if(n===A)return de(n,t);if(shared.isString(n)){let o=oe(n),r={[B]:t};return I(x,o,r,e)}return shared.isFunction(n)?I(y,n,t,e):I(x,n,t,e)}function $e(n){return n instanceof y}function h(n){return n instanceof y||n instanceof x}function P(n){let t=document.createElement("template");return t.innerHTML=n,t}function de(n,t){let e=t.children?{[U]:{children:Array.isArray(t.children)?t.children.filter(Boolean):[t.children]}}:t,o=n===A?P(A):n;return I(x,o,e)}function Ie(n){l.ref&&l.ref.addHook("mounted",n);}function je(n){l.ref&&l.ref.addHook("destroy",n);}function Ke(n,t){l.ref&&l.ref.setContext(n,t);}function Xe(n,t){var e;return (e=l.ref&&l.ref.getContext(n))!=null?e:t}function Ge(n,t){u.setSSG();let o=new b(n,t||{}).mount();return u.setClient(),o}function De(n,t){let e=typeof t=="string"?document.querySelector(t):t;if(!e)throw new Error(`Could not find container: ${t}`);u.setSSR(),j(n).mount(e),u.setClient();}function Fe(n,t){return u.isSSG?new b(n,t):j(n,t)}exports.Fragment=de;exports.h=j;exports.hydrate=De;exports.inject=Xe;exports.isComponent=$e;exports.isJsxElement=h;exports.onDestroy=je;exports.onMount=Ie;exports.provide=Ke;exports.renderToString=Ge;exports.ssg=Fe;exports.template=P;//# sourceMappingURL=template.cjs.js.map
|
|
6
|
+
var ct=Object.defineProperty;var Ne=Object.getOwnPropertySymbols;var ft=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable;var xe=(e,t,n)=>t in e?ct(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,U=(e,t)=>{for(var n in t||(t={}))ft.call(t,n)&&xe(e,n,t[n]);if(Ne)for(var n of Ne(t))at.call(t,n)&&xe(e,n,t[n]);return e};var I=(e,t,n)=>new Promise((r,o)=>{var s=c=>{try{f(n.next(c));}catch(a){o(a);}},i=c=>{try{f(n.throw(c));}catch(a){o(a);}},f=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,i);f((n=n.apply(e,t)).next());});var w=null,ut=0,q=[];function N(){return w}function lt(e){w=e;}function Ee(e=w){let t={id:++ut,parent:e,children:null,provides:null,cleanup:null,onMount:null,onUpdate:null,onDestroy:null,isMounted:false,isDestroyed:false};return e&&(e.children||(e.children=new Set),e.children.add(t)),t}function _(e,t){let n=w;n&&q.push(n),w=e;try{return t()}finally{w=q.length>0?q.pop():n;}}function B(e){var t,n,r,o,s;if(!(!e||e.isDestroyed)){if(e.children){let i=Array.from(e.children);for(let f of i)B(f);}if(e.onDestroy){for(let i of e.onDestroy)try{i();}catch(f){}e.onDestroy.clear();}if(e.cleanup){for(let i of e.cleanup)try{i();}catch(f){}e.cleanup.clear();}(t=e.parent)!=null&&t.children&&e.parent.children.delete(e),(n=e.children)==null||n.clear(),(r=e.provides)==null||r.clear(),(o=e.onMount)==null||o.clear(),(s=e.onUpdate)==null||s.clear(),lt(e.parent),e.parent=null,e.isDestroyed=true;}}function $(e){let t=w;t&&(t.cleanup||(t.cleanup=new Set),t.cleanup.add(e));}var Ae="_$spread$";var ve="http://www.w3.org/2000/svg",J="http://www.w3.org/2000/xlink",Q="http://www.w3.org/2000/xmlns/",Z=/^\d+-\d+$/;var be=1e3,_e=new WeakMap;function Te(e){let t=_e.get(e);if(!t){let n=e.name||"anonymous",r=Ce(e.toString()).toString(36);t=`${n}_${r}`,_e.set(e,t);}return t}function Ce(e){let t=0,n=e.length<100?e.length:100;for(let r=0;r<n;r++)t=Math.trunc((t<<5)-t+e.charCodeAt(r));return t<0?-t:t}var yt=0;function te(e){if(!shared.isFalsy(e)){if(shared.isString(e))return e.length<=be?e:`${e.slice(0,be-10)}_${Ce(e).toString(36)}`;if(shared.isNumber(e))return String(e);if(shared.isSymbol(e)){let t=Symbol.keyFor(e);if(t)return `_s.${t}`;let n=e.description;return n?`_s.${n}`:`${yt++}`}return String(e)}}var ee=Symbol("essor.key");function K(e,t){if(p(e)||!e||e.nodeType===Node.DOCUMENT_NODE)return;let n=te(t);shared.isFalsy(n)?delete e[ee]:e[ee]=n;}function k(e){if(e)return p(e)?e.key:e[ee]}function St(e,t){let n=new Set(t);return new Proxy(e,{get(r,o){if(!n.has(o))return Reflect.get(r,o)},ownKeys(r){return Reflect.ownKeys(r).filter(o=>!n.has(o))},getOwnPropertyDescriptor(r,o){if(!n.has(o))return Reflect.getOwnPropertyDescriptor(r,o)},has(r,o){return n.has(o)?false:Reflect.has(r,o)}})}function E(e){if(e)try{if(p(e))e.destroy();else {let t=e;t.parentElement&&t.remove();}}catch(t){shared.error("Failed to remove node:",t);}}function g(e,t,n){if(!(!e||!t))try{let r=p(n)?n.firstChild:n;if(p(t)){t.mount(e,r);return}r?e.insertBefore(t,r):e.appendChild(t);}catch(r){shared.error("Failed to insert node:",r);}}function re(e,t,n){if(!(!e||!t||!n||t===n))try{let r=p(n)?n.beforeNode:n.nextSibling;E(n),g(e,t,r);}catch(r){shared.error("Failed to replace node:",r);}}function T(e){if(e){if(p(e))return e.firstChild;if(!shared.isPrimitive(e))return e}}function C(e,t){let n=k(e),r=k(t);if(n!==r)return false;let o=p(e),s=p(t);if(o&&s)return e.component===t.component;if(o!==s)return false;if(shared.isPrimitive(e)||shared.isPrimitive(t))return e===t;let i=e,f=t;return i.nodeType!==f.nodeType?false:i.nodeType===Node.ELEMENT_NODE?i.tagName===f.tagName:true}function D(e){if(shared.isHTMLElement(e))return e;if(shared.isPrimitive(e)){let t=shared.isFalsy(e)?"":String(e);return document.createTextNode(t)}return e}function De(e){return e instanceof HTMLInputElement}function Le(e){return e instanceof HTMLSelectElement}function Pe(e){return e instanceof HTMLTextAreaElement}function oe(e){return e instanceof Text}function we(e,t){if(e===t)return true;if(!e||!t||Array.isArray(e)!==Array.isArray(t))return false;for(let n in e)if(e[n]!==t[n])return false;for(let n in t)if(!(n in e))return false;return true}function Me(e,t){if(p(e)||p(t))return;let n=k(e);n&&!k(t)&&K(t,n);}function L(e,t,n){if(n===t)return t;let r=shared.isHTMLElement(t);if(shared.isHTMLElement(n)&&r){if(n.isEqualNode(t))return t;if(t.tagName===n.tagName){let f=t.attributes,c=n.attributes;for(let a=f.length-1;a>=0;a--){let l=f[a].name;n.hasAttribute(l)||t.removeAttribute(l);}for(let a=0,l=c.length;a<l;a++){let u=c[a];t.getAttribute(u.name)!==u.value&&t.setAttribute(u.name,u.value);}return Me(t,n),t}}if(oe(t)&&oe(n))return t.textContent!==n.textContent&&(t.textContent=n.textContent),Me(t,n),t;let s=p(t),i=p(n);return s&&i&&t.component===n.component?n.update(t):(re(e,n,t),n)}function He(e,t,n,r){let o=t.length,s=n.length;if(o===0&&s===0)return [];if(o===0){for(let i=0;i<s;i++)g(e,n[i],r);return n}if(s===0){for(let i=0;i<o;i++)E(t[i]);return []}if(o===1&&s===1){let i=t[0],f=n[0];return C(i,f)?(L(e,i,f),n[0]=i):re(e,f,i),n}if(o===2&&s===2){let i=t[0],f=t[1],c=n[0],a=n[1];if(C(i,c)&&C(f,a))return L(e,i,c),L(e,f,a),n[0]=i,n[1]=f,n;if(C(i,a)&&C(f,c)){L(e,i,a),L(e,f,c);let l=T(f),u=T(i);return l&&u&&l.parentNode===e&&e.insertBefore(l,u),n[0]=f,n[1]=i,n}}return Nt(e,t,n,r)}function Nt(e,t,n,r){let o=0,s=0,i=t.length-1,f=n.length-1,c=t[0],a=t[i],l=n[0],u=n[f];for(;o<=i&&s<=f;)if(!c)c=t[++o];else if(!a)a=t[--i];else if(C(c,l))L(e,c,l),n[s]=c,c=t[++o],l=n[++s];else break;for(;o<=i&&s<=f;)if(!c)c=t[++o];else if(!a)a=t[--i];else if(C(a,u))L(e,a,u),n[f]=a,a=t[--i],u=n[--f];else break;if(o>i){if(s<=f){let y=f+1<n.length?T(n[f+1]):r;for(let m=s;m<=f;m++)g(e,n[m],y);}}else if(s>f)for(let y=o;y<=i;y++){let m=t[y];m&&E(m);}else xt(e,t,n,o,i,s,f,r);return n}function xt(e,t,n,r,o,s,i,f){let c=i-s+1,a=n.length,l;for(let h=s;h<=i;h++){let S=k(n[h]);S!==void 0&&(l||(l=Object.create(null)),l[S]=h);}let u=new Int32Array(c),y=false,m=0,v=0;for(let h=r;h<=o;h++){let S=t[h];if(!S)continue;if(v>=c){E(S);continue}let x,P=k(S);if(P!==void 0&&l&&P in l)x=l[P];else for(let b=s;b<=i;b++)if(u[b-s]===0&&P===void 0&&k(n[b])===void 0&&C(S,n[b])){x=b;break}x===void 0?E(S):(u[x-s]=h+1,x>=m?m=x:y=true,L(e,S,n[x]),n[x]=S,v++);}let H=y?Et(u):[],W=H.length-1;for(let h=c-1;h>=0;h--){let S=s+h,x=n[S],P=S+1<a?T(n[S+1]):f;if(u[h]===0)g(e,x,P);else if(y)if(W<0||h!==H[W]){let b=T(x);b&&b.parentNode===e&&g(e,b,P);}else W--;}}function Et(e){let t=e.length;if(t===0)return [];if(t===1)return e[0]!==0?[0]:[];let n=[],r=new Int32Array(t),o,s,i,f,c;for(o=0;o<t;o++){let a=e[o];if(a!==0){if(s=n[n.length-1],n.length===0||e[s]<a){r[o]=s,n.push(o);continue}for(i=0,f=n.length-1;i<f;)c=i+f>>1,e[n[c]]<a?i=c+1:f=c;a<e[n[i]]&&(i>0&&(r[o]=n[i-1]),n[i]=o);}}for(i=n.length,f=n[i-1];i-- >0;)n[i]=f,f=r[f];return n}function A(e,t,n,r){e.addEventListener(t,n,r),$(()=>{e.removeEventListener(t,n,r);});}function bt(e,t,n,r){if(De(e))switch(e.type){case "checkbox":A(e,"change",()=>{r(!!e.checked);});break;case "radio":A(e,"change",()=>{r(e.checked?e.value:"");});break;case "file":A(e,"change",()=>{r(e.files);});break;case "number":case "range":A(e,"input",()=>{r(e.value||"");});break;case "date":case "datetime-local":case "month":case "time":case "week":A(e,"change",()=>{r(e.value||"");});break;default:A(e,"input",()=>{r(e.value);});break}else Le(e)?A(e,"change",()=>{if(e.multiple){let o=Array.from(e.options).filter(s=>s.selected).map(s=>s.value);r(o);}else r(e.value);}):Pe(e)&&A(e,"input",()=>{r(e.value);});}function ie(e,t,n){if(!e)return;let r=N(),o=[],s=signals.effect(()=>{let i=()=>{let f=shared.isFunction(t)?t():t,c=shared.coerceArray(f).map(a=>shared.isFunction(a)?a():a).flatMap(a=>a).map(D);o=He(e,o,c,n);};r&&!r.isDestroyed?_(r,i):i();});return $(()=>{s(),o.forEach(i=>E(i)),o.length=0;}),o}function se(e,t){let n=t.length,r=new Array(n),o=new Set(t),s=1,i=0,f=c=>{if(c.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){if(o.has(s)&&(r[i++]=c,i===n))return true;s++;}let a=c.firstChild;for(;a;){if(f(a))return true;a=a.nextSibling;}return false};return f(e),r}function _t(e){let t=N();if(t){if(t.isMounted){try{e();}catch(n){}return}t.onMount||(t.onMount=new Set),t.onMount.add(e);}}function kt(e){let t=N();t&&(t.onUpdate||(t.onUpdate=new Set),t.onUpdate.add(e));}function Tt(e){let t=N();t&&(t.onDestroy||(t.onDestroy=new Set),t.onDestroy.add(e));}function $e(e){!e||e.isDestroyed||e.isMounted||(e.isMounted=true,e.onMount&&_(e,()=>{for(let t of e.onMount)try{t();}catch(n){}}));}function ce(e){if(!(!e||e.isDestroyed)&&e.onUpdate)for(let t of e.onUpdate)try{t();}catch(n){}}function fe(e){_t(e);}function ae(e){Tt(e);}function Ct(e){kt(e);}var je;je="normal";var V=class{constructor(t,n){this.component=t;this.props=n;this.renderedNodes=[];this.scope=null;this.parentNode=void 0;this.beforeNode=void 0;this.reactiveProps={};this.state=0;this.parentScope=null;this[je]=true;this.key=n!=null&&n.key?te(n.key):Te(t),this.reactiveProps=signals.shallowReactive(U({},this.props||{})),this.parentScope=N();}get isConnected(){return this.state===2}get firstChild(){for(let t of this.renderedNodes){let n=T(t);if(n)return n}}mount(t,n){var s;if(this.parentNode=t,this.beforeNode=n,this.state=1,this.renderedNodes.length>0){for(let i of this.renderedNodes)g(t,i,n);return this.state=2,this.renderedNodes}let r=(s=this.parentScope)!=null?s:N();this.scope=Ee(r);let o=_(this.scope,()=>{var c;let i=this.component(this.reactiveProps);return shared.isFunction(i)&&(i=i(this.reactiveProps)),(signals.isSignal(i)||signals.isComputed(i))&&(i=i.value),(c=ie(t,i,n))!=null?c:[]});return this.renderedNodes=o,_(this.scope,()=>{this.applyProps(this.props||{});}),this.state=2,this.scope&&$e(this.scope),this.renderedNodes}update(t){if(this.key!==t.key)return this.mount(t.parentNode,t.beforeNode),this;if(this.parentNode=t.parentNode,this.beforeNode=t.beforeNode,this.scope=t.scope,this.parentScope=t.parentScope,this.renderedNodes=t.renderedNodes,this.state=t.state,this.reactiveProps=t.reactiveProps,this.props)for(let n in this.props){if(n==="key")continue;let r=this.props[n],o=this.reactiveProps[n];Object.is(o,r)||shared.isObject(o)&&shared.isObject(r)&&we(o,r)||(this.reactiveProps[n]=r);}return !this.isConnected&&this.parentNode&&this.mount(this.parentNode,this.beforeNode),this.scope&&(_(this.scope,()=>{this.applyProps(this.props||{});}),ce(this.scope)),this}forceUpdate(){return I(this,null,function*(){if(yield Promise.resolve(),this.state===5||!this.parentNode||!this.scope)return;let t=[...this.renderedNodes];try{_(this.scope,()=>{let n=this.component(this.reactiveProps);shared.isFunction(n)&&(n=n(this.reactiveProps)),(signals.isSignal(n)||signals.isComputed(n))&&(n=n.value);let r=shared.coerceArray(n);if(this.parentNode){let o=this.beforeNode;if(!o&&this.renderedNodes.length>0){let s=this.renderedNodes[this.renderedNodes.length-1],i=T(s);i&&(o=i.nextSibling);}for(let s of this.renderedNodes)E(s);for(let s of r)g(this.parentNode,s,o);this.renderedNodes=r;}}),this.scope&&ce(this.scope);}catch(n){throw this.renderedNodes=t,n}})}destroy(){if(this.state===4||this.state===5)return;this.state=4;let t=this.scope;t&&(B(t),this.scope=null);for(let n of this.renderedNodes)E(n);this.renderedNodes=[],this.parentNode=void 0,this.beforeNode=void 0,this.parentScope=null,this.reactiveProps={},this.props=void 0,this.state=5;}applyProps(t){if(!t)return;let n=this.firstChild;for(let[r,o]of Object.entries(t))if(shared.startsWith(r,"on")&&n){let s=r.slice(2).toLowerCase();shared.isHTMLElement(n)&&A(n,s,o);}else r==="ref"&&signals.isSignal(o)&&(o.value=n);this.props=t;}};function p(e){return !!e&&!!e.normal}function F(e,t){return p(e)?e:new V(e,t)}function le(e){let t,n=()=>{let r=document.createElement("template");r.innerHTML=e;let o=r.content.firstChild;if(!o)throw new Error("Invalid template: empty content");return o};return ()=>(t||(t=n())).cloneNode(true)}function Mt(e,t){let n=shared.isString(t)?document.querySelector(t):t;if(!n){shared.error(`Target element not found: ${t}`);return}n.innerHTML&&(shared.error(`Target element is not empty, it will be delete: ${t}`),n.innerHTML="");let o=F(e);return o.mount(n),o}function de(e,t){let n=N();n&&(n.provides||(n.provides=new Map),n.provides.set(e,t));}function pe(e,t){let n=N();if(console.log(n),!n)return t;let r=n;for(;r;){if(r.provides){console.log(r.provides);let o=r.provides.get(e);if(o)return o}r=r.parent;}return t}function It(e){let t=e.target,n=`${e.type}`,r=e.target,o=e.currentTarget,s=c=>Object.defineProperty(e,"target",{configurable:true,value:c}),i=()=>{let c=t[`_$${n}`];if(c&&shared.isFunction(c)&&!t.disabled){let a=t[`${n}Data`];if(a?c.call(t,a,e):c.call(t,e),e.cancelBubble)return false}return t.host&&!shared.isString(t.host)&&!t.host._$host&&shared.isFunction(t.contains)&&t.contains(e.target)&&s(t.host),true},f=()=>{for(;i()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:true,get(){return t||document}}),e.composedPath){let c=e.composedPath();s(c[0]);for(let a=0;a<c.length-2&&(t=c[a],!!i());a++){if(t._$host){t=t._$host,f();break}if(t.parentNode===o)break}}else f();s(r);}var Ve=Symbol("_$EVENTS");function $t(e,t=window.document){let n=t,r=n[Ve]||(n[Ve]=new Set);for(let o of e)r.has(o)||(r.add(o),t.addEventListener(o,It));}function Ot(e,t,n,r=false){if(t===n)return;let o=G(n),s=G(t);o&&s===o||(o?r?e.setAttribute("class",o):e.className=o:e.removeAttribute("class"));}function G(e){if(e==null)return "";if(typeof e=="string")return e.trim();if(shared.isArray(e))return e.map(G).filter(Boolean).join(" ");if(shared.isObject(e)){let t=[];for(let n in e)e[n]&&t.push(n);return t.join(" ")}return String(e).trim()}var Ge=/\s*!important$/,Vt=["Webkit","Moz","ms"],me={};function Gt(e,t,n){let r=e.style,o=shared.isString(n);if(n&&o){t!==n&&(r.cssText=n);return}if(!n){t&&e.removeAttribute("style");return}if(t&&!shared.isString(t))for(let s in t)(!n||n[s]==null)&&j(r,s,"");else if(t&&shared.isString(t)){let s=t.split(";");for(let i of s){let f=i.indexOf(":");if(f>0){let c=i.slice(0,f).trim();n&&shared.isObject(n)&&n[c]==null&&j(r,c,"");}}}if(n&&!shared.isString(n))for(let s in n){let i=n[s];(!t||shared.isString(t)||t[s]!==i)&&i!=null&&j(r,s,i);}}function j(e,t,n){if(shared.isArray(n)){for(let o of n)j(e,t,o);return}if((n==null||n==="")&&(n=""),t.startsWith("--")){e.setProperty(t,n);return}let r=Xt(e,t);typeof n=="string"&&Ge.test(n)?e.setProperty(shared.camelCase(r),n.replace(Ge,""),"important"):e[r]=n;}function Xt(e,t){let n=me[t];if(n)return n;let r=shared.camelCase(t);if(r!=="filter"&&r in e)return me[t]=r;r=shared.capitalize(r);for(let o of Vt){let s=o+r;if(s in e)return me[t]=s}return t}function Ye(e,t,n,r){if(t==="key"){r==null?K(e,void 0):K(e,String(r));return}if(t===Ae){Object.keys(r).forEach(u=>{Ye(e,u,n==null?void 0:n[u],r==null?void 0:r[u]);});return}let o=(e==null?void 0:e.namespaceURI)===ve,s=o&&t.startsWith("xlink:"),i=o&&t.startsWith("xmlns:"),f=shared.isSpecialBooleanAttr(t)||shared.isBooleanAttr(t);if(n===r)return;let c=t.toLowerCase();if(/^on[a-z]+/.test(c)||c==="innerhtml")return;if(r==null){if(s)e.removeAttributeNS(J,t.slice(6));else if(i){let u=t.slice(6);e.removeAttributeNS(Q,u);}else e.removeAttribute(t);return}if(s){e.setAttributeNS(J,t,String(r));return}if(i){e.setAttributeNS(Q,t,String(r));return}if(f){shared.includeBooleanAttr(r)?e.setAttribute(t,""):e.removeAttribute(t);return}let a=shared.isSymbol(r)?String(r):r;if((c==="href"||c==="src"||c==="xlink:href")&&typeof a=="string"){let u=a.trim().toLowerCase();if(u.startsWith("javascript:")||u.startsWith("data:"))return}if(o)e.setAttribute(t,String(a));else if(t in e)try{e[t]=a;}catch(u){e.setAttribute(t,String(a));}else e.setAttribute(t,String(a));}function Qt(e,t,n,r){if(!(r!=null&&r.delegate))return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r);let o=r.delegate,s=f=>{let c=f.target;(c.matches(o)||c.closest(o))&&n.call(e,f);},i=U({},r);return i.delegate=void 0,e.addEventListener(t,s,i),()=>{e.removeEventListener(t,s,i);}}function Zt(e){return e==null?void 0:e.children}Zt.fragment=true;function oo(e){return !!e&&!!e.fragment}function tn(e){if(typeof document=="undefined"){let r=e.children;return r?(shared.isArray(r)?r:[r]).map(s=>String(s||"")).join(""):""}let t=document.createComment("portal");t.portal=true;let n=e.children;if(n){let r=shared.isArray(n)?n:[n],o=[];fe(()=>{let s=shared.isString(e.target)?document.querySelector(e.target):e.target;s&&(r.forEach(i=>{if(i!=null){let f=D(i);f&&(g(s,f),o.push(f));}}),$(()=>{o.forEach(i=>{typeof i!="string"&&i.parentNode===s&&s.removeChild(i);});}));});}return t}tn.portal=true;function po(e){return !!e&&!!e.portal}var he=Symbol("SuspenseContext");function on(e){if(shared.isUndefined(document)){let u=e.fallback;return u?String(u||""):""}let t=document.createElement("div");t.style.display="contents";let n=true,r=0,o=false,s=null,i=()=>{if(!o){for(o=true;t.firstChild;)t.removeChild(t.firstChild);if(e.fallback!=null){let u=D(e.fallback);u&&g(t,u);}}},f=()=>{if(!(!o||!(s||e.children!=null&&!shared.isPromise(e.children)))){for(o=false;t.firstChild;)t.removeChild(t.firstChild);s?c(s):e.children!=null&&!shared.isPromise(e.children)&&c(e.children);}},c=u=>{for(;t.firstChild;)t.removeChild(t.firstChild);if(u==null)return;let y=N();if((shared.isArray(u)?u:[u]).forEach(v=>{if(v!=null){p(v)&&(v.parentContext=y);let H=D(v);H&&g(t,H);}}),o){for(;t.firstChild;)t.removeChild(t.firstChild);if(e.fallback!=null){let v=D(e.fallback);v&&g(t,v);}}},a={register:u=>{r++,i(),u.then(()=>{n&&(r--,r===0&&f());}).catch(y=>{n&&(r--,r===0&&f());});},increment:()=>{r++,i();},decrement:()=>{r--,r===0&&f();}};de(he,a);let l=e.children;return shared.isPromise(l)?(l.then(u=>{s=u;}).catch(()=>{}),a.register(l)):l!=null?c(l):i(),ae(()=>{for(n=false;t.firstChild;)t.removeChild(t.firstChild);}),t}on.suspense=true;function vo(e){return !!e&&!!e.suspense}function Do(e,t){let n=signals.signal(t==null?void 0:t.initialValue),r=signals.signal(true),o=signals.signal(null),s=signals.signal("pending"),i=0,f=null,c=()=>I(null,null,function*(){let u=++i;r.value=true,s.value="pending",o.value=null;let y=e();f=y.then(()=>{});try{let m=yield y;u===i&&(n.value=m,s.value="ready",r.value=!1);}catch(m){u===i&&(o.value=m instanceof Error?m:new Error(String(m)),s.value="errored",r.value=false);}});c();let a=(()=>{if(r.value&&f){let u=pe(he,null);u&&u.register(f);}return n.value});return a.loading=r,a.error=o,a.state=s,[a,{mutate:u=>{n.value=u,s.value="ready",r.value=false,o.value=null;},refetch:()=>I(null,null,function*(){yield c();})}]}var qe=0;function ge(){return `${qe++}`}function Y(){qe=0;}function Se(){}function R(e,t=false){return shared.isNil(e)?"":shared.isString(e)?e:shared.isArray(e)?e.map(n=>R(n,t)).join(""):shared.isFunction(e)?R(e(),t):String(e)}function Qe(e,t){let n=/^<([a-z]+)(\s*)([^>]*)>/i,r=/data-idx="(\d+)"/g,o=/<!--(.*?)-->/g;return e.replace(n,`<$1$2$3 data-hk="${t}">`).replaceAll(r,`data-idx="${t}-$1"`).replaceAll(o,`<!--${t}-$1-->`)}function un(e,t){if(!shared.isFunction(e))return shared.error("Component must be a function"),"";Y();let n=e(t);return R(n)}function ln(e,t,...n){let r="",o=0;for(let i of e)if(r+=i,o<n.length){let f=n[o++];f&&(r+=R(f));}return Qe(r,t)}function dn(e,t={}){if(!shared.isFunction(e))return shared.error("create ssg component: Component is not a function"),"";let n=e(t);return R(n)}function rt(e){if(shared.isArray(e)){let t={};for(let n of e){let r=shared.isString(n)?xn(n):rt(n);if(r)for(let o in r)t[o]=r[o];}return t}if(shared.isString(e)||shared.isObject(e))return e}var gn=/;(?![^(]*\))/g,Sn=/:([\s\S]+)/,Nn=/\/\*[\s\S]*?\*\//g;function xn(e){let t={};return e.replaceAll(Nn,"").split(gn).forEach(n=>{if(n){let r=n.split(Sn);r.length>1&&(t[r[0].trim()]=r[1].trim());}}),t}function En(e){if(!e)return "";if(shared.isString(e))return e;let t="";for(let n in e){let r=e[n];if(shared.isString(r)||shared.isNumber(r)){let o=n.startsWith("--")?n:shared.kebabCase(n);t+=`${o}:${r};`;}}return t}function ot(e){let t="";if(shared.isString(e))t=e;else if(shared.isArray(e))for(let n of e){let r=ot(n);r&&(t+=`${r} `);}else if(shared.isObject(e))for(let n in e)e[n]&&(t+=`${n} `);return t.trim()}function it(e,t,n){if(signals.isSignal(t)||signals.isComputed(t))return it(e,t.value);if(!t&&t!==0)return "";if(e==="style"){let r=rt(t);return r?shared.isString(r)?` style="${r}"`:` style="${En(r)}"`:""}if(e==="class"){let r=ot(t);return r?` class="${r}"`:""}return e.startsWith("on")?"":t===true?` ${e}`:` ${e}="${t}"`}function vn(e){return ()=>{let t=ge();return document.querySelector(`[data-hk="${t}"]`)||le(e)()}}function bn(e,t){let n=e.dataset.hk;if(!n)return se(e,t);let r=[],o=e.querySelectorAll(`[data-idx^="${n}"]`);o.length>0&&r.push(...Array.from(o).filter(c=>{let a=c.dataset.idx;return a!==null&&Z.test(a)}).map(c=>{let a=c.dataset.idx||"",[l,u]=a.split("-");return {hk:l,idx:u,node:c}}));let s=[],i=c=>{if(c.nodeType===Node.COMMENT_NODE&&c.textContent&&Z.test(c.textContent)){let[l,u]=c.textContent.split("-");s.push({hk:l,idx:u,node:c});}let a=c.firstChild;for(;a;)i(a),a=a.nextSibling;};i(e),r.push(...s);let f=[e];return t.forEach(c=>{let a=r.find(l=>l.idx===String(c));a&&f.push(a.node);}),f}function _n(e,t,n={}){Y();try{let r=shared.isString(t)?document.querySelector(t):t;if(!r){shared.error("Hydration error: Root element not found");return}let o=F(e,n);return o.mount(r),Se(),o}catch(r){shared.error("Hydration error:",r);return}}
|
|
7
|
+
Object.defineProperty(exports,"escapeHTML",{enumerable:true,get:function(){return shared.escapeHTML}});exports.Component=V;exports.Fragment=Zt;exports.Portal=tn;exports.Suspense=on;exports.SuspenseContext=he;exports.addEvent=Qt;exports.addEventListener=A;exports.bindElement=bt;exports.createApp=Mt;exports.createComponent=F;exports.createResource=Do;exports.createSSGComponent=dn;exports.delegateEvents=$t;exports.getHydrationKey=ge;exports.getRenderedElement=vn;exports.hydrate=_n;exports.inject=pe;exports.insert=ie;exports.isComponent=p;exports.isFragment=oo;exports.isPortal=po;exports.isSuspense=vo;exports.mapNodes=se;exports.mapSSRNodes=bn;exports.normalizeClass=G;exports.omitProps=St;exports.onDestroy=ae;exports.onMount=fe;exports.onUpdate=Ct;exports.patchAttr=Ye;exports.patchClass=Ot;exports.patchStyle=Gt;exports.provide=de;exports.render=ln;exports.renderToString=un;exports.setSSGAttr=it;exports.setStyle=j;exports.template=le;//# sourceMappingURL=template.cjs.js.map
|
|
7
8
|
//# sourceMappingURL=template.cjs.js.map
|