solid-intlayer 5.7.7 → 5.8.0-canary.0

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.
Files changed (40) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/IntlayerNode.cjs +1 -1
  3. package/dist/cjs/UI/ContentSelector.cjs +1 -1
  4. package/dist/cjs/client/IntlayerProvider.cjs +1 -1
  5. package/dist/cjs/client/getBrowserLocale.cjs +1 -1
  6. package/dist/cjs/client/useDictionary.cjs +1 -1
  7. package/dist/cjs/client/useDictionaryAsync.cjs +1 -1
  8. package/dist/cjs/client/useDictionaryDynamic.cjs +1 -1
  9. package/dist/cjs/client/useIntlayer.cjs +1 -1
  10. package/dist/cjs/client/useLocale.cjs +1 -1
  11. package/dist/cjs/editor/ContentSelectorWrapper.cjs +1 -1
  12. package/dist/cjs/editor/IntlayerEditorProvider.cjs +1 -1
  13. package/dist/cjs/editor/contexts/CommunicatorContext.cjs +1 -1
  14. package/dist/cjs/editor/contexts/EditedContentContext.cjs +1 -1
  15. package/dist/cjs/editor/contexts/EditorProvider.cjs +1 -1
  16. package/dist/cjs/editor/contexts/useCrossFrameMessageListener.cjs +1 -1
  17. package/dist/cjs/plugins.cjs +1 -1
  18. package/dist/cjs/solidElement/renderSolidElement.cjs +1 -1
  19. package/dist/esm/IntlayerNode.mjs +9 -9
  20. package/dist/esm/UI/ContentSelector.mjs +30 -32
  21. package/dist/esm/client/IntlayerProvider.mjs +38 -42
  22. package/dist/esm/client/getBrowserLocale.mjs +41 -42
  23. package/dist/esm/client/useDictionary.mjs +9 -10
  24. package/dist/esm/client/useDictionaryAsync.mjs +8 -9
  25. package/dist/esm/client/useDictionaryDynamic.mjs +11 -12
  26. package/dist/esm/client/useIntlayer.mjs +8 -8
  27. package/dist/esm/client/useLocale.mjs +18 -19
  28. package/dist/esm/editor/ContentSelectorWrapper.mjs +22 -25
  29. package/dist/esm/editor/IntlayerEditorProvider.mjs +19 -20
  30. package/dist/esm/editor/contexts/CommunicatorContext.mjs +16 -16
  31. package/dist/esm/editor/contexts/EditedContentContext.mjs +81 -85
  32. package/dist/esm/editor/contexts/EditorProvider.mjs +7 -7
  33. package/dist/esm/editor/contexts/useCrossFrameMessageListener.mjs +16 -16
  34. package/dist/esm/plugins.mjs +9 -9
  35. package/dist/esm/solidElement/renderSolidElement.mjs +13 -14
  36. package/dist/web-Ch-xTpJg.js +1 -0
  37. package/dist/web-mv0y5CK4.mjs +567 -0
  38. package/package.json +14 -14
  39. package/dist/web-BFg6-54-.mjs +0 -443
  40. package/dist/web-qH6jV2Kc.js +0 -1
@@ -5,7 +5,7 @@ import { EditedContentRenderer as y } from "./editor/useEditedContentRenderer.mj
5
5
  import "./markdown/MarkdownProvider.mjs";
6
6
  import { MarkdownRenderer as f, MarkdownMetadataRenderer as h } from "./markdown/MarkdownRenderer.mjs";
7
7
  import { renderSolidElement as k } from "./solidElement/renderSolidElement.mjs";
8
- import { createComponent as i, mergeProps as o } from "solid-js";
8
+ import { createComponent as o, mergeProps as i } from "solid-js";
9
9
  const C = {
10
10
  id: "intlayer-node-plugin",
11
11
  canHandle: (e) => typeof e == "bigint" || typeof e == "string" || typeof e == "number",
@@ -16,9 +16,9 @@ const C = {
16
16
  }) => d({
17
17
  ...n,
18
18
  value: n.children,
19
- children: i(l, o(n, {
19
+ children: o(l, i(n, {
20
20
  get children() {
21
- return i(y, o(n, {
21
+ return o(y, i(n, {
22
22
  get children() {
23
23
  return n.children;
24
24
  }
@@ -36,7 +36,7 @@ const C = {
36
36
  }) => d({
37
37
  ...n,
38
38
  value: "[[solid-element]]",
39
- children: i(l, o(n, {
39
+ children: o(l, i(n, {
40
40
  get children() {
41
41
  return k(e);
42
42
  }
@@ -57,9 +57,9 @@ const C = {
57
57
  transform: (a, m) => d({
58
58
  ...m,
59
59
  value: a,
60
- children: i(l, o(r, {
60
+ children: o(l, i(r, {
61
61
  get children() {
62
- return i(h, o(r, {
62
+ return o(h, i(r, {
63
63
  get metadataKeyPath() {
64
64
  return m.keyPath;
65
65
  },
@@ -75,9 +75,9 @@ const C = {
75
75
  return d({
76
76
  ...t,
77
77
  value: e,
78
- children: i(l, o(r, {
78
+ children: o(l, i(r, {
79
79
  get children() {
80
- return i(f, o(r, {
80
+ return o(f, i(r, {
81
81
  children: e
82
82
  }));
83
83
  }
@@ -89,7 +89,7 @@ const C = {
89
89
  }
90
90
  }, j = {
91
91
  id: "markdown-plugin",
92
- canHandle: (e) => typeof e == "object" && (e == null ? void 0 : e.nodeType) === u.Markdown,
92
+ canHandle: (e) => typeof e == "object" && e?.nodeType === u.Markdown,
93
93
  transform: (e, t, n) => {
94
94
  const c = [...t.keyPath, {
95
95
  type: u.Markdown
@@ -1,31 +1,30 @@
1
- import { D as t } from "../../web-BFg6-54-.mjs";
2
- const f = (o) => {
1
+ import { D as d } from "../../web-mv0y5CK4.mjs";
2
+ const h = (o) => {
3
3
  if (typeof o == "string")
4
4
  return o;
5
5
  const n = ((r) => {
6
- var s;
7
- if (r != null && r.props && typeof r.props.children == "object") {
8
- const c = [], { children: i } = r.props;
9
- return Object.keys(i ?? {}).forEach((h) => {
10
- c.push(
11
- f((i ?? {})[h])
6
+ if (r?.props && typeof r.props.children == "object") {
7
+ const s = [], { children: c } = r.props;
8
+ return Object.keys(c ?? {}).forEach((t) => {
9
+ s.push(
10
+ h((c ?? {})[t])
12
11
  );
13
12
  }), {
14
13
  ...r,
15
- props: { ...r.props, children: c }
14
+ props: { ...r.props, children: s }
16
15
  };
17
16
  }
18
17
  return {
19
18
  ...r,
20
- props: { ...r.props, children: ((s = r.props) == null ? void 0 : s.children) ?? [] }
19
+ props: { ...r.props, children: r.props?.children ?? [] }
21
20
  };
22
- })(o), { type: d, props: p } = n;
23
- return t({
24
- component: d ?? "span",
21
+ })(o), { type: i, props: p } = n;
22
+ return d({
23
+ component: i ?? "span",
25
24
  ...p,
26
25
  children: p.children
27
26
  });
28
27
  };
29
28
  export {
30
- f as renderSolidElement
29
+ h as renderSolidElement
31
30
  };
@@ -0,0 +1 @@
1
+ "use strict";const a=require("solid-js"),L=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],x=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...L]),I=new Set(["innerHTML","textContent","innerText","children"]),k=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),O=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function D(i,e){const t=O[i];return typeof t=="object"?t[e]?t.$:void 0:t}const R=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),p=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),F={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},B=i=>a.createMemo(()=>i());function G(i,e,t){let l=t.length,s=e.length,o=l,f=0,n=0,r=e[s-1].nextSibling,c=null;for(;f<s||n<o;){if(e[f]===t[n]){f++,n++;continue}for(;e[s-1]===t[o-1];)s--,o--;if(s===f){const u=o<l?n?t[n-1].nextSibling:t[o-n]:r;for(;n<o;)i.insertBefore(t[n++],u)}else if(o===n)for(;f<s;)(!c||!c.has(e[f]))&&e[f].remove(),f++;else if(e[f]===t[o-1]&&t[n]===e[s-1]){const u=e[--s].nextSibling;i.insertBefore(t[n++],e[f++].nextSibling),i.insertBefore(t[--o],u),e[s]=t[o]}else{if(!c){c=new Map;let h=n;for(;h<o;)c.set(t[h],h++)}const u=c.get(e[f]);if(u!=null)if(n<u&&u<o){let h=f,d=1,g;for(;++h<s&&h<o&&!((g=c.get(e[h]))==null||g!==u+d);)d++;if(d>u-n){const b=e[f];for(;n<u;)i.insertBefore(t[n++],b)}else i.replaceChild(t[n++],e[f++])}else f++;else e[f++].remove()}}}const C="_$DX_DELEGATE";function V(i,e,t,l){let s;const o=()=>{const n=document.createElement("template");return n.innerHTML=i,n.content.firstChild},f=()=>(s||(s=o())).cloneNode(!0);return f.cloneNode=f,f}function P(i,e=window.document){const t=e[C]||(e[C]=new Set);for(let l=0,s=i.length;l<s;l++){const o=i[l];t.has(o)||(t.add(o),e.addEventListener(o,z))}}function A(i,e,t){y(i)||(t==null?i.removeAttribute(e):i.setAttribute(e,t))}function j(i,e,t,l){y(i)||(l==null?i.removeAttributeNS(e,t):i.setAttributeNS(e,t,l))}function U(i,e,t){y(i)||(t?i.setAttribute(e,""):i.removeAttribute(e))}function _(i,e){y(i)||(e==null?i.removeAttribute("class"):i.className=e)}function H(i,e,t,l){if(l)Array.isArray(t)?(i[`$$${e}`]=t[0],i[`$$${e}Data`]=t[1]):i[`$$${e}`]=t;else if(Array.isArray(t)){const s=t[0];i.addEventListener(e,t[0]=o=>s.call(i,t[1],o))}else i.addEventListener(e,t,typeof t!="function"&&t)}function K(i,e,t={}){const l=Object.keys(e||{}),s=Object.keys(t);let o,f;for(o=0,f=s.length;o<f;o++){const n=s[o];!n||n==="undefined"||e[n]||($(i,n,!1),delete t[n])}for(o=0,f=l.length;o<f;o++){const n=l[o],r=!!e[n];!n||n==="undefined"||t[n]===r||!r||($(i,n,!0),t[n]=r)}return t}function q(i,e,t){if(!e)return t?A(i,"style"):e;const l=i.style;if(typeof e=="string")return l.cssText=e;typeof t=="string"&&(l.cssText=t=void 0),t||(t={}),e||(e={});let s,o;for(o in t)e[o]==null&&l.removeProperty(o),delete t[o];for(o in e)s=e[o],s!==t[o]&&(l.setProperty(o,s),t[o]=s);return t}function M(i,e={},t,l){const s={};return l||a.createRenderEffect(()=>s.children=m(i,e.children,s.children)),a.createRenderEffect(()=>typeof e.ref=="function"&&S(e.ref,i)),a.createRenderEffect(()=>W(i,e,t,!0,s,!0)),s}function S(i,e,t){return a.untrack(()=>i(e,t))}function X(i,e,t,l){if(typeof e!="function")return m(i,e,l,t);a.createRenderEffect(s=>m(i,e(),s,t),l)}function W(i,e,t,l,s={},o=!1){e||(e={});for(const f in s)if(!(f in e)){if(f==="children")continue;s[f]=T(i,f,null,s[f],t,o,e)}for(const f in e){if(f==="children")continue;const n=e[f];s[f]=T(i,f,n,s[f],t,o,e)}}function J(i){let e,t;return!y()||!(e=a.sharedConfig.registry.get(t=Q()))?i():(a.sharedConfig.completed&&a.sharedConfig.completed.add(e),a.sharedConfig.registry.delete(t),e)}function y(i){return!!a.sharedConfig.context&&!a.sharedConfig.done&&(!i||i.isConnected)}function Y(i){return i.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function $(i,e,t){const l=e.trim().split(/\s+/);for(let s=0,o=l.length;s<o;s++)i.classList.toggle(l[s],t)}function T(i,e,t,l,s,o,f){let n,r,c,u,h;if(e==="style")return q(i,t,l);if(e==="classList")return K(i,t,l);if(t===l)return l;if(e==="ref")o||t(i);else if(e.slice(0,3)==="on:"){const d=e.slice(3);l&&i.removeEventListener(d,l,typeof l!="function"&&l),t&&i.addEventListener(d,t,typeof t!="function"&&t)}else if(e.slice(0,10)==="oncapture:"){const d=e.slice(10);l&&i.removeEventListener(d,l,!0),t&&i.addEventListener(d,t,!0)}else if(e.slice(0,2)==="on"){const d=e.slice(2).toLowerCase(),g=R.has(d);if(!g&&l){const b=Array.isArray(l)?l[0]:l;i.removeEventListener(d,b)}(g||t)&&(H(i,d,t,g),g&&P([d]))}else if(e.slice(0,5)==="attr:")A(i,e.slice(5),t);else if(e.slice(0,5)==="bool:")U(i,e.slice(5),t);else if((h=e.slice(0,5)==="prop:")||(c=I.has(e))||!s&&((u=D(e,i.tagName))||(r=x.has(e)))||(n=i.nodeName.includes("-")||"is"in f)){if(h)e=e.slice(5),r=!0;else if(y(i))return t;e==="class"||e==="className"?_(i,t):n&&!r&&!c?i[Y(e)]=t:i[u||e]=t}else{const d=s&&e.indexOf(":")>-1&&F[e.split(":")[0]];d?j(i,d,e,t):A(i,k[e]||e,t)}return t}function z(i){if(a.sharedConfig.registry&&a.sharedConfig.events&&a.sharedConfig.events.find(([r,c])=>c===i))return;let e=i.target;const t=`$$${i.type}`,l=i.target,s=i.currentTarget,o=r=>Object.defineProperty(i,"target",{configurable:!0,value:r}),f=()=>{const r=e[t];if(r&&!e.disabled){const c=e[`${t}Data`];if(c!==void 0?r.call(e,c,i):r.call(e,i),i.cancelBubble)return}return e.host&&typeof e.host!="string"&&!e.host._$host&&e.contains(i.target)&&o(e.host),!0},n=()=>{for(;f()&&(e=e._$host||e.parentNode||e.host););};if(Object.defineProperty(i,"currentTarget",{configurable:!0,get(){return e||document}}),a.sharedConfig.registry&&!a.sharedConfig.done&&(a.sharedConfig.done=_$HY.done=!0),i.composedPath){const r=i.composedPath();o(r[0]);for(let c=0;c<r.length-2&&(e=r[c],!!f());c++){if(e._$host){e=e._$host,n();break}if(e.parentNode===s)break}}else n();o(l)}function m(i,e,t,l,s){const o=y(i);if(o){!t&&(t=[...i.childNodes]);let n=[];for(let r=0;r<t.length;r++){const c=t[r];c.nodeType===8&&c.data.slice(0,2)==="!$"?c.remove():n.push(c)}t=n}for(;typeof t=="function";)t=t();if(e===t)return t;const f=typeof e;if(i=i,f==="string"||f==="number"){if(o||f==="number"&&(e=e.toString(),e===t))return t;t!==""&&typeof t=="string"?t=i.firstChild.data=e:t=i.textContent=e}else if(e==null||f==="boolean"){if(o)return t;t=w(i,t,l)}else{if(f==="function")return a.createRenderEffect(()=>{let n=e();for(;typeof n=="function";)n=n();t=m(i,n,t,l)}),()=>t;if(Array.isArray(e)){const n=[],r=t&&Array.isArray(t);if(E(n,e,t,s))return a.createRenderEffect(()=>t=m(i,n,t,l,!0)),()=>t;if(o)return n.length?t=[...i.childNodes]:t;n.length===0?t=w(i,t,l):r?t.length===0?N(i,n,l):G(i,t,n):(t&&w(i),N(i,n)),t=n}else if(e.nodeType){if(o&&e.parentNode)return t=e;Array.isArray(t)?w(i,t,null,e):t==null||t===""||!i.firstChild?i.appendChild(e):i.replaceChild(e,i.firstChild),t=e}}return t}function E(i,e,t,l){let s=!1;for(let o=0,f=e.length;o<f;o++){let n=e[o],r=t&&t[i.length],c;if(!(n==null||n===!0||n===!1))if((c=typeof n)=="object"&&n.nodeType)i.push(n);else if(Array.isArray(n))s=E(i,n,r)||s;else if(c==="function")if(l){for(;typeof n=="function";)n=n();s=E(i,Array.isArray(n)?n:[n],Array.isArray(r)?r:[r])||s}else i.push(n),s=!0;else{const u=String(n);r&&r.nodeType===3&&r.data===u?i.push(r):i.push(document.createTextNode(u))}}return s}function N(i,e,t=null){for(let l=0,s=e.length;l<s;l++)i.insertBefore(e[l],t)}function w(i,e,t,l){if(t===void 0)return i.textContent="";const s=l||document.createTextNode("");if(e.length){let o=!1;for(let f=e.length-1;f>=0;f--){const n=e[f];if(s!==n){const r=n.parentNode===i;!o&&!f?r?i.replaceChild(s,n):i.insertBefore(s,t):r&&n.remove()}else o=!0}}else i.insertBefore(s,t);return[s]}function Q(){return a.sharedConfig.getNextContextId()}const Z="http://www.w3.org/2000/svg";function v(i,e=!1,t=void 0){return e?document.createElementNS(Z,i):document.createElement(i,{is:t})}function ee(i,e){const t=a.createMemo(i);return a.createMemo(()=>{const l=t();switch(typeof l){case"function":return a.untrack(()=>l(e));case"string":const s=p.has(l),o=a.sharedConfig.context?J():v(l,s,a.untrack(()=>e.is));return M(o,e,s),o}})}function te(i){const[,e]=a.splitProps(i,["component"]);return ee(()=>i.component,e)}exports.Dynamic=te;exports.delegateEvents=P;exports.insert=X;exports.memo=B;exports.spread=M;exports.template=V;exports.use=S;
@@ -0,0 +1,567 @@
1
+ import { sharedConfig as u, createMemo as E, createRenderEffect as m, splitProps as x, untrack as $ } from "solid-js";
2
+ const L = [
3
+ "allowfullscreen",
4
+ "async",
5
+ "alpha",
6
+ "autofocus",
7
+ "autoplay",
8
+ "checked",
9
+ "controls",
10
+ "default",
11
+ "disabled",
12
+ "formnovalidate",
13
+ "hidden",
14
+ "indeterminate",
15
+ "inert",
16
+ "ismap",
17
+ "loop",
18
+ "multiple",
19
+ "muted",
20
+ "nomodule",
21
+ "novalidate",
22
+ "open",
23
+ "playsinline",
24
+ "readonly",
25
+ "required",
26
+ "reversed",
27
+ "seamless",
28
+ "selected",
29
+ "adauctionheaders",
30
+ "browsingtopics",
31
+ "credentialless",
32
+ "defaultchecked",
33
+ "defaultmuted",
34
+ "defaultselected",
35
+ "defer",
36
+ "disablepictureinpicture",
37
+ "disableremoteplayback",
38
+ "preservespitch",
39
+ "shadowrootclonable",
40
+ "shadowrootcustomelementregistry",
41
+ "shadowrootdelegatesfocus",
42
+ "shadowrootserializable",
43
+ "sharedstoragewritable"
44
+ ], I = /* @__PURE__ */ new Set([
45
+ "className",
46
+ "value",
47
+ "readOnly",
48
+ "noValidate",
49
+ "formNoValidate",
50
+ "isMap",
51
+ "noModule",
52
+ "playsInline",
53
+ "adAuctionHeaders",
54
+ "allowFullscreen",
55
+ "browsingTopics",
56
+ "defaultChecked",
57
+ "defaultMuted",
58
+ "defaultSelected",
59
+ "disablePictureInPicture",
60
+ "disableRemotePlayback",
61
+ "preservesPitch",
62
+ "shadowRootClonable",
63
+ "shadowRootCustomElementRegistry",
64
+ "shadowRootDelegatesFocus",
65
+ "shadowRootSerializable",
66
+ "sharedStorageWritable",
67
+ ...L
68
+ ]), O = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), k = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
69
+ className: "class",
70
+ htmlFor: "for"
71
+ }), D = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
72
+ class: "className",
73
+ novalidate: {
74
+ $: "noValidate",
75
+ FORM: 1
76
+ },
77
+ formnovalidate: {
78
+ $: "formNoValidate",
79
+ BUTTON: 1,
80
+ INPUT: 1
81
+ },
82
+ ismap: {
83
+ $: "isMap",
84
+ IMG: 1
85
+ },
86
+ nomodule: {
87
+ $: "noModule",
88
+ SCRIPT: 1
89
+ },
90
+ playsinline: {
91
+ $: "playsInline",
92
+ VIDEO: 1
93
+ },
94
+ readonly: {
95
+ $: "readOnly",
96
+ INPUT: 1,
97
+ TEXTAREA: 1
98
+ },
99
+ adauctionheaders: {
100
+ $: "adAuctionHeaders",
101
+ IFRAME: 1
102
+ },
103
+ allowfullscreen: {
104
+ $: "allowFullscreen",
105
+ IFRAME: 1
106
+ },
107
+ browsingtopics: {
108
+ $: "browsingTopics",
109
+ IMG: 1
110
+ },
111
+ defaultchecked: {
112
+ $: "defaultChecked",
113
+ INPUT: 1
114
+ },
115
+ defaultmuted: {
116
+ $: "defaultMuted",
117
+ AUDIO: 1,
118
+ VIDEO: 1
119
+ },
120
+ defaultselected: {
121
+ $: "defaultSelected",
122
+ OPTION: 1
123
+ },
124
+ disablepictureinpicture: {
125
+ $: "disablePictureInPicture",
126
+ VIDEO: 1
127
+ },
128
+ disableremoteplayback: {
129
+ $: "disableRemotePlayback",
130
+ AUDIO: 1,
131
+ VIDEO: 1
132
+ },
133
+ preservespitch: {
134
+ $: "preservesPitch",
135
+ AUDIO: 1,
136
+ VIDEO: 1
137
+ },
138
+ shadowrootclonable: {
139
+ $: "shadowRootClonable",
140
+ TEMPLATE: 1
141
+ },
142
+ shadowrootdelegatesfocus: {
143
+ $: "shadowRootDelegatesFocus",
144
+ TEMPLATE: 1
145
+ },
146
+ shadowrootserializable: {
147
+ $: "shadowRootSerializable",
148
+ TEMPLATE: 1
149
+ },
150
+ sharedstoragewritable: {
151
+ $: "sharedStorageWritable",
152
+ IFRAME: 1,
153
+ IMG: 1
154
+ }
155
+ });
156
+ function R(i, e) {
157
+ const t = D[i];
158
+ return typeof t == "object" ? t[e] ? t.$ : void 0 : t;
159
+ }
160
+ const p = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), F = /* @__PURE__ */ new Set([
161
+ "altGlyph",
162
+ "altGlyphDef",
163
+ "altGlyphItem",
164
+ "animate",
165
+ "animateColor",
166
+ "animateMotion",
167
+ "animateTransform",
168
+ "circle",
169
+ "clipPath",
170
+ "color-profile",
171
+ "cursor",
172
+ "defs",
173
+ "desc",
174
+ "ellipse",
175
+ "feBlend",
176
+ "feColorMatrix",
177
+ "feComponentTransfer",
178
+ "feComposite",
179
+ "feConvolveMatrix",
180
+ "feDiffuseLighting",
181
+ "feDisplacementMap",
182
+ "feDistantLight",
183
+ "feDropShadow",
184
+ "feFlood",
185
+ "feFuncA",
186
+ "feFuncB",
187
+ "feFuncG",
188
+ "feFuncR",
189
+ "feGaussianBlur",
190
+ "feImage",
191
+ "feMerge",
192
+ "feMergeNode",
193
+ "feMorphology",
194
+ "feOffset",
195
+ "fePointLight",
196
+ "feSpecularLighting",
197
+ "feSpotLight",
198
+ "feTile",
199
+ "feTurbulence",
200
+ "filter",
201
+ "font",
202
+ "font-face",
203
+ "font-face-format",
204
+ "font-face-name",
205
+ "font-face-src",
206
+ "font-face-uri",
207
+ "foreignObject",
208
+ "g",
209
+ "glyph",
210
+ "glyphRef",
211
+ "hkern",
212
+ "image",
213
+ "line",
214
+ "linearGradient",
215
+ "marker",
216
+ "mask",
217
+ "metadata",
218
+ "missing-glyph",
219
+ "mpath",
220
+ "path",
221
+ "pattern",
222
+ "polygon",
223
+ "polyline",
224
+ "radialGradient",
225
+ "rect",
226
+ "set",
227
+ "stop",
228
+ "svg",
229
+ "switch",
230
+ "symbol",
231
+ "text",
232
+ "textPath",
233
+ "tref",
234
+ "tspan",
235
+ "use",
236
+ "view",
237
+ "vkern"
238
+ ]), B = {
239
+ xlink: "http://www.w3.org/1999/xlink",
240
+ xml: "http://www.w3.org/XML/1998/namespace"
241
+ }, se = (i) => E(() => i());
242
+ function G(i, e, t) {
243
+ let l = t.length, n = e.length, o = l, f = 0, s = 0, c = e[n - 1].nextSibling, r = null;
244
+ for (; f < n || s < o; ) {
245
+ if (e[f] === t[s]) {
246
+ f++, s++;
247
+ continue;
248
+ }
249
+ for (; e[n - 1] === t[o - 1]; )
250
+ n--, o--;
251
+ if (n === f) {
252
+ const d = o < l ? s ? t[s - 1].nextSibling : t[o - s] : c;
253
+ for (; s < o; ) i.insertBefore(t[s++], d);
254
+ } else if (o === s)
255
+ for (; f < n; )
256
+ (!r || !r.has(e[f])) && e[f].remove(), f++;
257
+ else if (e[f] === t[o - 1] && t[s] === e[n - 1]) {
258
+ const d = e[--n].nextSibling;
259
+ i.insertBefore(t[s++], e[f++].nextSibling), i.insertBefore(t[--o], d), e[n] = t[o];
260
+ } else {
261
+ if (!r) {
262
+ r = /* @__PURE__ */ new Map();
263
+ let h = s;
264
+ for (; h < o; ) r.set(t[h], h++);
265
+ }
266
+ const d = r.get(e[f]);
267
+ if (d != null)
268
+ if (s < d && d < o) {
269
+ let h = f, a = 1, g;
270
+ for (; ++h < n && h < o && !((g = r.get(e[h])) == null || g !== d + a); )
271
+ a++;
272
+ if (a > d - s) {
273
+ const A = e[f];
274
+ for (; s < d; ) i.insertBefore(t[s++], A);
275
+ } else i.replaceChild(t[s++], e[f++]);
276
+ } else f++;
277
+ else e[f++].remove();
278
+ }
279
+ }
280
+ }
281
+ const N = "_$DX_DELEGATE";
282
+ function ne(i, e, t, l) {
283
+ let n;
284
+ const o = () => {
285
+ const s = document.createElement("template");
286
+ return s.innerHTML = i, s.content.firstChild;
287
+ }, f = () => (n || (n = o())).cloneNode(!0);
288
+ return f.cloneNode = f, f;
289
+ }
290
+ function V(i, e = window.document) {
291
+ const t = e[N] || (e[N] = /* @__PURE__ */ new Set());
292
+ for (let l = 0, n = i.length; l < n; l++) {
293
+ const o = i[l];
294
+ t.has(o) || (t.add(o), e.addEventListener(o, Q));
295
+ }
296
+ }
297
+ function T(i, e, t) {
298
+ y(i) || (t == null ? i.removeAttribute(e) : i.setAttribute(e, t));
299
+ }
300
+ function j(i, e, t, l) {
301
+ y(i) || (l == null ? i.removeAttributeNS(e, t) : i.setAttributeNS(e, t, l));
302
+ }
303
+ function U(i, e, t) {
304
+ y(i) || (t ? i.setAttribute(e, "") : i.removeAttribute(e));
305
+ }
306
+ function _(i, e) {
307
+ y(i) || (e == null ? i.removeAttribute("class") : i.className = e);
308
+ }
309
+ function H(i, e, t, l) {
310
+ if (l)
311
+ Array.isArray(t) ? (i[`$$${e}`] = t[0], i[`$$${e}Data`] = t[1]) : i[`$$${e}`] = t;
312
+ else if (Array.isArray(t)) {
313
+ const n = t[0];
314
+ i.addEventListener(e, t[0] = (o) => n.call(i, t[1], o));
315
+ } else i.addEventListener(e, t, typeof t != "function" && t);
316
+ }
317
+ function K(i, e, t = {}) {
318
+ const l = Object.keys(e || {}), n = Object.keys(t);
319
+ let o, f;
320
+ for (o = 0, f = n.length; o < f; o++) {
321
+ const s = n[o];
322
+ !s || s === "undefined" || e[s] || (P(i, s, !1), delete t[s]);
323
+ }
324
+ for (o = 0, f = l.length; o < f; o++) {
325
+ const s = l[o], c = !!e[s];
326
+ !s || s === "undefined" || t[s] === c || !c || (P(i, s, !0), t[s] = c);
327
+ }
328
+ return t;
329
+ }
330
+ function X(i, e, t) {
331
+ if (!e) return t ? T(i, "style") : e;
332
+ const l = i.style;
333
+ if (typeof e == "string") return l.cssText = e;
334
+ typeof t == "string" && (l.cssText = t = void 0), t || (t = {}), e || (e = {});
335
+ let n, o;
336
+ for (o in t)
337
+ e[o] == null && l.removeProperty(o), delete t[o];
338
+ for (o in e)
339
+ n = e[o], n !== t[o] && (l.setProperty(o, n), t[o] = n);
340
+ return t;
341
+ }
342
+ function q(i, e = {}, t, l) {
343
+ const n = {};
344
+ return l || m(() => n.children = w(i, e.children, n.children)), m(() => typeof e.ref == "function" && W(e.ref, i)), m(() => Y(i, e, t, !0, n, !0)), n;
345
+ }
346
+ function W(i, e, t) {
347
+ return $(() => i(e, t));
348
+ }
349
+ function oe(i, e, t, l) {
350
+ if (typeof e != "function") return w(i, e, l, t);
351
+ m((n) => w(i, e(), n, t), l);
352
+ }
353
+ function Y(i, e, t, l, n = {}, o = !1) {
354
+ e || (e = {});
355
+ for (const f in n)
356
+ if (!(f in e)) {
357
+ if (f === "children") continue;
358
+ n[f] = S(i, f, null, n[f], t, o, e);
359
+ }
360
+ for (const f in e) {
361
+ if (f === "children")
362
+ continue;
363
+ const s = e[f];
364
+ n[f] = S(i, f, s, n[f], t, o, e);
365
+ }
366
+ }
367
+ function z(i) {
368
+ let e, t;
369
+ return !y() || !(e = u.registry.get(t = Z())) ? i() : (u.completed && u.completed.add(e), u.registry.delete(t), e);
370
+ }
371
+ function y(i) {
372
+ return !!u.context && !u.done && (!i || i.isConnected);
373
+ }
374
+ function J(i) {
375
+ return i.toLowerCase().replace(/-([a-z])/g, (e, t) => t.toUpperCase());
376
+ }
377
+ function P(i, e, t) {
378
+ const l = e.trim().split(/\s+/);
379
+ for (let n = 0, o = l.length; n < o; n++) i.classList.toggle(l[n], t);
380
+ }
381
+ function S(i, e, t, l, n, o, f) {
382
+ let s, c, r, d, h;
383
+ if (e === "style") return X(i, t, l);
384
+ if (e === "classList") return K(i, t, l);
385
+ if (t === l) return l;
386
+ if (e === "ref")
387
+ o || t(i);
388
+ else if (e.slice(0, 3) === "on:") {
389
+ const a = e.slice(3);
390
+ l && i.removeEventListener(a, l, typeof l != "function" && l), t && i.addEventListener(a, t, typeof t != "function" && t);
391
+ } else if (e.slice(0, 10) === "oncapture:") {
392
+ const a = e.slice(10);
393
+ l && i.removeEventListener(a, l, !0), t && i.addEventListener(a, t, !0);
394
+ } else if (e.slice(0, 2) === "on") {
395
+ const a = e.slice(2).toLowerCase(), g = p.has(a);
396
+ if (!g && l) {
397
+ const A = Array.isArray(l) ? l[0] : l;
398
+ i.removeEventListener(a, A);
399
+ }
400
+ (g || t) && (H(i, a, t, g), g && V([a]));
401
+ } else if (e.slice(0, 5) === "attr:")
402
+ T(i, e.slice(5), t);
403
+ else if (e.slice(0, 5) === "bool:")
404
+ U(i, e.slice(5), t);
405
+ else if ((h = e.slice(0, 5) === "prop:") || (r = O.has(e)) || !n && ((d = R(e, i.tagName)) || (c = I.has(e))) || (s = i.nodeName.includes("-") || "is" in f)) {
406
+ if (h)
407
+ e = e.slice(5), c = !0;
408
+ else if (y(i)) return t;
409
+ e === "class" || e === "className" ? _(i, t) : s && !c && !r ? i[J(e)] = t : i[d || e] = t;
410
+ } else {
411
+ const a = n && e.indexOf(":") > -1 && B[e.split(":")[0]];
412
+ a ? j(i, a, e, t) : T(i, k[e] || e, t);
413
+ }
414
+ return t;
415
+ }
416
+ function Q(i) {
417
+ if (u.registry && u.events && u.events.find(([c, r]) => r === i))
418
+ return;
419
+ let e = i.target;
420
+ const t = `$$${i.type}`, l = i.target, n = i.currentTarget, o = (c) => Object.defineProperty(i, "target", {
421
+ configurable: !0,
422
+ value: c
423
+ }), f = () => {
424
+ const c = e[t];
425
+ if (c && !e.disabled) {
426
+ const r = e[`${t}Data`];
427
+ if (r !== void 0 ? c.call(e, r, i) : c.call(e, i), i.cancelBubble) return;
428
+ }
429
+ return e.host && typeof e.host != "string" && !e.host._$host && e.contains(i.target) && o(e.host), !0;
430
+ }, s = () => {
431
+ for (; f() && (e = e._$host || e.parentNode || e.host); ) ;
432
+ };
433
+ if (Object.defineProperty(i, "currentTarget", {
434
+ configurable: !0,
435
+ get() {
436
+ return e || document;
437
+ }
438
+ }), u.registry && !u.done && (u.done = _$HY.done = !0), i.composedPath) {
439
+ const c = i.composedPath();
440
+ o(c[0]);
441
+ for (let r = 0; r < c.length - 2 && (e = c[r], !!f()); r++) {
442
+ if (e._$host) {
443
+ e = e._$host, s();
444
+ break;
445
+ }
446
+ if (e.parentNode === n)
447
+ break;
448
+ }
449
+ } else s();
450
+ o(l);
451
+ }
452
+ function w(i, e, t, l, n) {
453
+ const o = y(i);
454
+ if (o) {
455
+ !t && (t = [...i.childNodes]);
456
+ let s = [];
457
+ for (let c = 0; c < t.length; c++) {
458
+ const r = t[c];
459
+ r.nodeType === 8 && r.data.slice(0, 2) === "!$" ? r.remove() : s.push(r);
460
+ }
461
+ t = s;
462
+ }
463
+ for (; typeof t == "function"; ) t = t();
464
+ if (e === t) return t;
465
+ const f = typeof e;
466
+ if (i = i, f === "string" || f === "number") {
467
+ if (o || f === "number" && (e = e.toString(), e === t))
468
+ return t;
469
+ t !== "" && typeof t == "string" ? t = i.firstChild.data = e : t = i.textContent = e;
470
+ } else if (e == null || f === "boolean") {
471
+ if (o) return t;
472
+ t = b(i, t, l);
473
+ } else {
474
+ if (f === "function")
475
+ return m(() => {
476
+ let s = e();
477
+ for (; typeof s == "function"; ) s = s();
478
+ t = w(i, s, t, l);
479
+ }), () => t;
480
+ if (Array.isArray(e)) {
481
+ const s = [], c = t && Array.isArray(t);
482
+ if (C(s, e, t, n))
483
+ return m(() => t = w(i, s, t, l, !0)), () => t;
484
+ if (o)
485
+ return s.length ? t = [...i.childNodes] : t;
486
+ s.length === 0 ? t = b(i, t, l) : c ? t.length === 0 ? M(i, s, l) : G(i, t, s) : (t && b(i), M(i, s)), t = s;
487
+ } else if (e.nodeType) {
488
+ if (o && e.parentNode) return t = e;
489
+ Array.isArray(t) ? b(i, t, null, e) : t == null || t === "" || !i.firstChild ? i.appendChild(e) : i.replaceChild(e, i.firstChild), t = e;
490
+ }
491
+ }
492
+ return t;
493
+ }
494
+ function C(i, e, t, l) {
495
+ let n = !1;
496
+ for (let o = 0, f = e.length; o < f; o++) {
497
+ let s = e[o], c = t && t[i.length], r;
498
+ if (!(s == null || s === !0 || s === !1)) if ((r = typeof s) == "object" && s.nodeType)
499
+ i.push(s);
500
+ else if (Array.isArray(s))
501
+ n = C(i, s, c) || n;
502
+ else if (r === "function")
503
+ if (l) {
504
+ for (; typeof s == "function"; ) s = s();
505
+ n = C(i, Array.isArray(s) ? s : [s], Array.isArray(c) ? c : [c]) || n;
506
+ } else
507
+ i.push(s), n = !0;
508
+ else {
509
+ const d = String(s);
510
+ c && c.nodeType === 3 && c.data === d ? i.push(c) : i.push(document.createTextNode(d));
511
+ }
512
+ }
513
+ return n;
514
+ }
515
+ function M(i, e, t = null) {
516
+ for (let l = 0, n = e.length; l < n; l++) i.insertBefore(e[l], t);
517
+ }
518
+ function b(i, e, t, l) {
519
+ if (t === void 0) return i.textContent = "";
520
+ const n = l || document.createTextNode("");
521
+ if (e.length) {
522
+ let o = !1;
523
+ for (let f = e.length - 1; f >= 0; f--) {
524
+ const s = e[f];
525
+ if (n !== s) {
526
+ const c = s.parentNode === i;
527
+ !o && !f ? c ? i.replaceChild(n, s) : i.insertBefore(n, t) : c && s.remove();
528
+ } else o = !0;
529
+ }
530
+ } else i.insertBefore(n, t);
531
+ return [n];
532
+ }
533
+ function Z() {
534
+ return u.getNextContextId();
535
+ }
536
+ const v = "http://www.w3.org/2000/svg";
537
+ function ee(i, e = !1, t = void 0) {
538
+ return e ? document.createElementNS(v, i) : document.createElement(i, {
539
+ is: t
540
+ });
541
+ }
542
+ function te(i, e) {
543
+ const t = E(i);
544
+ return E(() => {
545
+ const l = t();
546
+ switch (typeof l) {
547
+ case "function":
548
+ return $(() => l(e));
549
+ case "string":
550
+ const n = F.has(l), o = u.context ? z() : ee(l, n, $(() => e.is));
551
+ return q(o, e, n), o;
552
+ }
553
+ });
554
+ }
555
+ function le(i) {
556
+ const [, e] = x(i, ["component"]);
557
+ return te(() => i.component, e);
558
+ }
559
+ export {
560
+ le as D,
561
+ V as d,
562
+ oe as i,
563
+ se as m,
564
+ q as s,
565
+ ne as t,
566
+ W as u
567
+ };