2 lines
341 KiB
JavaScript
2 lines
341 KiB
JavaScript
|
(()=>{"use strict";var e,n,t={48:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},269:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},460:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},778:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},125:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},65:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.classnames=void 0;const t=e=>!!e,a=(e,n,t)=>t.indexOf(e)===n,r=[];function o(e){return e?"string"==typeof e?[e]:Array.isArray(e)?e.flatMap(o).filter(t):(n=e,Object.entries(n).map((([e,n])=>n&&e))).filter(t):r;var n}n.classnames=function(e){const n=o(e).filter(a);return n.length>0?n.join(" "):void 0}},665:function(e,n,t){var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,r)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(48),n),r(t(269),n),r(t(125),n),r(t(778),n),r(t(460),n),r(t(65),n)},53:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.createRef=n.h=n.createElement=void 0;const a=t(136),r=t(56);function o(e,n,...t){if("function"==typeof e)return e({...n,children:t});const{finalTag:o,finalAttrs:i}=(0,r.applyTsxTag)(e,n),s=(0,r.createDomElement)(o,i);return i&&(0,a.setAttributes)(s,i),(0,r.applyChildren)(s,t),s}n.createElement=o,n.h=o;n.createRef=()=>({current:null})},325:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.defineCustomElement=void 0;const a=t(553);n.defineCustomElement=function(e,n,t){return customElements.define(e,n,t),n=>(0,a.jsx)(e,n)}},29:function(e,n,t){var a=this&&this.__createBinding||(Object.create?function(e,n,t,a){void 0===a&&(a=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,r)}:function(e,n,t,a){void 0===a&&(a=t),e[a]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||a(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(53),n),r(t(325),n),r(t(553),n),r(t(836),n)},553:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.jsxDEV=n.jsxs=n.jsx=void 0;const a=t(136),r=t(56);function o(e,n){if("function"==typeof e)return e(n);const{children:t,...o}=n,{finalTag:i,finalAttrs:s}=(0,r.applyTsxTag)(e,o),l=(0,r.createDomElement)(i,s);return(0,a.setAttributes)(l,s),(0,r.applyChildren)(l,[t]),l}n.jsx=o,n.jsxs=o,n.jsxDEV=o},136:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.setAttributes=void 0;const a=t(665);function r(e,n){for(const t of Object.keys(e))t in n&&(n[t]=e[t])}const o=/^on\p{Lu}/u;n.setAttributes=function(e,n){for(const t of Object.keys(n)){if("__source"===t||"__self"===t||"tsxTag"===t)continue;const i=n[t];if("class"===t){const n=(0,a.classnames)(i);n&&e.setAttribute(t,n)}else if("ref"===t)i.current=e;else if(o.test(t)){const n=t.replace(/Capture$/,""),a=t!==n,r=n.toLowerCase().substring(2);e.addEventListener(r,i,a)}else"style"===t&&"string"!=typeof i?r(i,e.style):"dangerouslySetInnerHTML"===t?e.innerHTML=i:!0===i?e.setAttribute(t,t):(i||0===i)&&e.setAttribute(t,i.toString())}}},836:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0})},56:(e,n)=>{function t(e,n){n instanceof Element?e.appendChild(n):"string"==typeof n||"number"==typeof n?e.appendChild(document.createTextNode(n.toString())):console.warn("Unknown type to append: ",n)}Object.defineProperty(n,"__esModule",{value:!0}),n.applyTsxTag=n.createDomElement=n.applyChildren=void 0,n.applyChildren=function e(n,a){for(const r of a)(r||0===r)&&(Array.isArray(r)?e(n,r):t(n,r))},n.createDomElement=function(e,n){const t=n?.is?{is:n.is}:void 0;return n?.xmlns?document.createElementNS(n.xmlns,e,t):document.createElement(e,
|
||
|
//# sourceMappingURL=ruffle.js.map
|