nodality 1.2.4 → 1.2.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/dist/bundle.umd.js +1 -1
- package/dist/designer.cjs.js +1 -1
- package/dist/designer.esm.js +1 -1
- package/dist/element-mapper.cjs.js +1 -1
- package/dist/element-mapper.esm.js +1 -1
- package/dist/finalresult.esm.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/layout/animator.js +1 -1
- package/layout/audio.js +1 -1
- package/layout/audionew.js +1 -1
- package/layout/base.js +1 -1
- package/layout/beta-desktop-bar.js +1 -1
- package/layout/beta-mobile-bar.js +1 -1
- package/layout/button.js +1 -1
- package/layout/center.js +1 -1
- package/layout/checkbox.js +1 -1
- package/layout/circle.js +1 -1
- package/layout/code.js +1 -1
- package/layout/container.js +1 -1
- package/layout/dropdown-2025.js +1 -1
- package/layout/flex-card.js +1 -1
- package/layout/flex-grid.js +1 -1
- package/layout/flex-row.js +1 -1
- package/layout/form-components/custom.js +1 -1
- package/layout/form-components/data-list.js +1 -1
- package/layout/form-components/floating-input.js +1 -1
- package/layout/form-components/form-all.js +1 -1
- package/layout/form-components/form.js +1 -1
- package/layout/form-components/image-picker.js +1 -1
- package/layout/form-components/picker.js +1 -1
- package/layout/form-components/radio.js +1 -1
- package/layout/form-components/radiogroup.js +1 -1
- package/layout/form-components/range.js +1 -1
- package/layout/free.js +1 -1
- package/layout/grid-switcher.js +1 -1
- package/layout/grid.js +1 -1
- package/layout/horizontal-scroller.js +1 -1
- package/layout/image.js +1 -1
- package/layout/index.js +1 -1
- package/layout/link.js +1 -1
- package/layout/list.js +1 -1
- package/layout/meta-adder.js +1 -1
- package/layout/modal-2025.js +1 -1
- package/layout/morph.js +1 -1
- package/layout/multiswitcher.js +1 -1
- package/layout/nav-bar.js +1 -1
- package/layout/nav-factor/custom-div.js +1 -1
- package/layout/new-nav-bar.js +1 -1
- package/layout/polygon.js +1 -1
- package/layout/prerender-site.js +1 -1
- package/layout/prerender.js +1 -1
- package/layout/progress.js +1 -1
- package/layout/row.js +1 -1
- package/layout/scroll-video.js +1 -1
- package/layout/side-bar.js +1 -1
- package/layout/side-nav-bar.js +1 -1
- package/layout/simple-bar.js +1 -1
- package/layout/slider-2025.js +1 -1
- package/layout/spacer.js +1 -1
- package/layout/stack.js +1 -1
- package/layout/svg.js +1 -1
- package/layout/switcher.js +1 -1
- package/layout/table.js +1 -1
- package/layout/text-field.js +1 -1
- package/layout/text.js +1 -1
- package/layout/ulist.js +1 -1
- package/layout/video.js +1 -1
- package/layout/wrap.js +1 -1
- package/layout/zoom-card.js +1 -1
- package/lib/agent-surface.js +1 -1
- package/lib/card-getter.js +1 -1
- package/lib/codegen.js +1 -1
- package/lib/data.js +1 -1
- package/lib/designer.js +1 -1
- package/lib/element-mapper.js +7 -3
- package/lib/keyframe-animation.js +1 -1
- package/lib/link-getter.js +1 -1
- package/lib/morph-node.js +1 -1
- package/lib/raster-inspect.js +1 -1
- package/lib/raster-ops.js +1 -1
- package/lib/raster-presets.js +1 -1
- package/lib/scroll-video.js +1 -1
- package/lib/seo.js +1 -1
- package/lib/stacker.js +1 -1
- package/lib/suggest.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/transform-anim.js +1 -1
- package/lib/transition.js +1 -1
- package/lib/validate-nodes.js +1 -1
- package/lib/webmcp-adapter.js +1 -1
- package/package.json +1 -1
package/dist/bundle.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see bundle.umd.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Bundle=t():e.Bundle=t()}(this,()=>(()=>{"use strict";var __webpack_modules__={153:(e,t,r)=>{r.d(t,{m:()=>y});var n=r(9873),o=r(1382);function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},f.apply(null,arguments)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var y=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=p(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}(this,t)).res=null,r.setup(e),r.code=[],r.isLast=!1,r.constrObj=e,r.code.push("\n new Wrapper() \n"),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),r=t,n=[{key:"toCode",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.code=[],this.excludeFromCodeTrue)return[""];var r=" ".repeat(t),n="".concat(r,'new Wrapper("').concat(this.constrObj,'")');if(this.constrObj||(n="".concat(r,"new Wrapper()")),Object.keys(this.obj).length){var i=Object.fromEntries(Object.entries(this.obj).filter(function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2);return t[0],null!==t[1]})),a=(0,o.sy)(i,2);n+="\n".concat(r," .set(").concat(a,")")}return null!==(e=this.items)&&void 0!==e&&e.length&&(n+="\n".concat(r," .add([\n")+this.items.map(function(e){return e.toCode(t+4)}).join(",\n")+"\n".concat(r," ])")),[n+="\n".concat(r)]}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"set",value:function(e){this.obj=e,this.commonMethods(e),e.onTap&&this.onTap(e.onTap);var r=".set({";e.isHidden&&this.isHidden(e.isHidden),e.scale&&(this.res.style.scale=e.scale),e.scale&&(r+="scale: ".concat(e.scale)),e.keySet&&this.keySet(e.keySet),e.resprop&&this.resprop(e.resprop),e.position&&(this.res.style.position=e.position),void 0!==e.top&&(this.res.style.top=e.top),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.gpos&&this.gpos(e.gpos);var n,o,s,l=[],c=e.transform&&"object"===a(e.transform);if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||c){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&(n=t,o=this,"function"==typeof(s=f(p(1&3?n.prototype:n),"setAny",o))?function(e){return s.apply(o,e)}:s)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var u=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,c?e.transform:void 0];u=u.filter(function(e){return null!=e});for(var d=0;d<u.length;d++)l.push({range:u[d].range,log:u[d].op.name,target:u[d].target,op:u[d].op});var h=[];e.borderObj&&h.push("border"),e.background&&h.push("background"),e.mar&&h.push("margin"),e.animation&&h.push("animation"),e.span&&h.push("span"),c&&h.push("transform"),e.gradient&&h.push("gradient"),e.blast,this.options=e,this.chainReact(l,this.options.id,h)}if(e.centerColumn&&this.deprecatedOption("centerColumn",'center: "x"'),e.mboth&&(this.deprecatedOption("mboth",'mar: "center"'),this.mar("center")),e.mar&&this.mar(e.mar),e.sticky&&this.sticky(),e.transition&&(this.res.style.transition=e.transition),e.class&&this.res.setAttribute("class",e.class),e.ga&&(this.res.style.gridArea=e.ga),e.opacity&&(0==e.opacity&&(this.res.style.opacity=0),e.opacity&&(this.res.style.opacity=e.opacity)),e.maxHeight&&(this.res.style.maxHeight=e.maxHeight),e.id&&this.res.setAttribute("id",e.id),e.simpleCenter&&this.deprecatedOption("simpleCenter","center: true"),e.filter&&(this.res.style.backdropFilter="blur(3px)"),e.radius&&this.corner(e.radius),e.radius&&(r+='\n radius: "'.concat(e.radius,'",')),e.border&&this.border(e.border),e.simpleBorder&&(this.res.style.border=e.simpleBorder),e.width&&this.width(e.width),e.width&&(r+='\n width: "'.concat(e.width,'",')),e.overflow&&(r+='\n overflow: "'.concat(e.overflow,'",')),e.height&&this.heightNoAuto(e.height),e.height&&(r+='\n height: "'.concat(e.height,'",')),e.align&&this.flexAlign(e.align),e.align&&(r+='\n align: "'.concat(e.align,'",')),e.borderObj&&(this.res.style.border="".concat(e.borderObj.width," solid ").concat(e.borderObj.color),void 0!==e.borderObj.radius&&(this.res.style.borderRadius=e.borderObj.radius)),e.borderObja&&(this.res.style.border="".concat(e.borderObja.width," solid ").concat(e.borderObja.color),void 0!==e.borderObja.radius&&(this.res.style.borderRadius=e.borderObja.radius)),e.font&&this.font(e.font),e.font&&(r+='font: "'.concat(e.font,'",')),e.maxWidth&&this.maxWidth(e.maxWidth),e.flexCenter&&this.deprecatedOption("flexCenter",'center: "y"'),e.color&&this.color(e.color),e.background&&this.background(e.background),e.background&&(r+='background: "'.concat(e.background,'",')),e.weight&&this.weight(e.weight),e.area&&this.setArea(e.area),e.area&&(r+='area: "'.concat(e.area,'"')),e.column&&this.makeCol(),e.column&&(r+='\n column: "'.concat(e.column,'",')),e.alignIts&&(this.res.style.background="gray"),e.alignIts&&(this.res.style.alignItems="flex-start"),e.alignIts&&(this.res.style.justifyItems="flex-start"),e.customAlign&&(this.res.style.alignItems=e.customAlign),e.customJustify&&(this.res.style.justifyItems=e.customJustify),e.disp&&(this.res.style.display=e.disp),e.flexDir&&(this.res.style.flexDirection=e.flexDir),e.flexDir&&(this.res.style.display="flex"),e.flexDir&&(r+='\n flexDir: "'.concat(e.flexDir,'",')),e.center&&(r+="center: ".concat(JSON.stringify(e.center),",")),e.zIndex&&(this.res.style.zIndex=e.zIndex),e.transform&&"object"===a(e.transform)&&this.reactOnTransform(e.transform),e.name&&(this.name=e.name),e.responsive&&this.rsp(e.responsive),e.stretch){e.stretch&&this.stretch(e.stretch);var y=this.removeQuotesFromFirstWord(JSON.stringify(e.stretch));r+="\n stretch: ".concat(y,",")}for(var m in e)if("margin"===m){var v=e[m];if(Array.isArray(v)&&v.length>0){var b,g=i(v);try{for(g.s();!(b=g.n()).done;){var w=b.value;w.hasOwnProperty("top")&&(this.res.style.marginTop=w.top),w.hasOwnProperty("right")&&(this.res.style.marginRight=w.right),w.hasOwnProperty("bottom")&&(this.res.style.marginBottom=w.bottom),w.hasOwnProperty("left")&&(this.res.style.marginLeft=w.left)}}catch(e){g.e(e)}finally{g.f()}}}return 8===(r+="})\n").length&&(r=""),this.code.push(r),this}},{key:"rsp",value:function(e){var t=this;this.res.style.display="flex";var r=e.sequence.split("-"),n=function(){var n=e.ranges;"0px"!==n[0]&&n.unshift("0px");for(var o=0;o<n.length-1;o++)(window.matchMedia("(min-width: ".concat(n[o],") and (max-width: ").concat(n[o+1],")")).matches||window.matchMedia("(min-width: ".concat(n[n.length-1],")")).matches)&&("row"===r[o]&&(t.res.style.flexDirection="row",t.res.style.border="3px solid green"),"col"===r[o]&&(t.res.style.flexDirection="column",t.res.style.border="3px solid purple"));return t};window.addEventListener("resize",n),n()}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"toSticky",value:function(){return this.res.style.position="sticky",this.res.style.top="0",this}},{key:"stretch",value:function(e){var t=this,r=function(){window.matchMedia("(max-width: ".concat(e.at,")")).matches?t.res.style.width="auto":window.matchMedia("(max-device-width: 415px)").matches?t.res.style.width="100%":t.res.style.width=e.backTo};r(),window.addEventListener("resize",r)}},{key:"makeCol",value:function(){return this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.alignItems="flex-start",this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"weight",value:function(e){return this.res.style.fontWeight=e,this}},{key:"flexAlign",value:function(e){return this.res.style.display="flex",this.res.style.justifyContent="flex-start",this.res.style.alignItems="flex-start","center"===e?(this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.alignItems="center",this):this}},{key:"heightNoAuto",value:function(e){return this.res.style.height=e,this}},{key:"border",value:function(e){return this.res.style.borderRadius="".concat(e.radius,"px"),this.res.style.border="".concat(e.width,"px solid ").concat(e.color),this}},{key:"add",value:function(e){this.items=e,this.code.push(".add([ \n");var t=e.map(function(t,r){return t.toCode().flatMap(function(e){return e}).join("")+(r<e.length-1?",":"")}).join("");this.code.push(t);for(var r=0;r<e.length;r++)if(void 0!==e[r]&&void 0!==e[r].toCode){var n=e[r].render();this.res.appendChild(n)}return this.code.push("])"),this}},{key:"setWidth",value:function(e){this.res.style.width="100vw"}},{key:"setHeight",value:function(e){return this.res.style.height="".concat(e),this}},{key:"setup",value:function(e){var t=null;return e?(e.isLink&&(t=document.createElement("a")),"aside"===e&&(t=document.createElement("aside")),"article"===e&&(t=document.createElement("article")),"main"===e&&(t=document.createElement("main")),"section"===e&&(t=document.createElement("section")),"header"===e&&(t=document.createElement("header")),"footer"===e&&(t=document.createElement("footer"))):t=document.createElement("div"),e&&e.isLink&&(t.style.textDecoration="none",t.setAttribute("href",e.child)),this.res=t,this.res.style.margin=0,this.res.style.padding=0,e&&!0===e.hideOverflow&&(this.res.style.overflow="hidden",this.res.style.overflowY="scroll"),e&&!0===e.center&&(this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.justifyContent="center",this.res.style.alignItems="center"),e&&"left"===e.align&&(this.res.style.alignItems="flex-start"),e&&"right"===e.align&&(this.res.style.alignItems="flex-end"),e&&e.height&&(this.res.style.height=e.height),e&&e.width&&(this.res.style.width=e.width,this.res.style.marginLeft="auto",this.res.style.marginRight="auto",window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="95%")),this}},{key:"height",value:function(e){return this.res.style.width="auto",this.res.style.height="".concat(e),this}},{key:"dimensions",value:function(e,t){return this.w=e,this.h=t,this.w?this.res.style.width=this.w:this.res.style.width=window.innerWidth,this.h?this.res.style.height=this.h:this.res.style.height=window.innerHeight,this}},{key:"size",value:function(e,t){return this.deprecatedOption("size() on this component","dimensions(w, h)"),this.dimensions(e,t)}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"corner",value:function(e){return this.res.style.borderRadius=e,this}},{key:"apply",value:function(e){var t=this,r=function(){for(var r=0;r<e.length;r++){var n=e[r],o=window.matchMedia("(max-width: ".concat(n.width,"px)"));n.device&&(o=window.matchMedia("(max-device-width: ".concat(n.width,"px)"))),o.matches&&Object.assign(t.res.style,n.styles)}},n=window.matchMedia("(max-width: ".concat(e[0].width,"px)"));return e[0].device&&(n=window.matchMedia("(max-device-width: ".concat(e[0].width,"px)"))),n.matches||Object.assign(this.res.style,e[0].styles),r(),window.addEventListener("resize",r),this}},{key:"mount",value:function(e){document.querySelector(e).appendChild(this.res)}},{key:"render",value:function(e){return e?(document.querySelector("#mount"),document.querySelector(e).appendChild(this.res),this):this.res}}],n&&c(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},827:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{k:()=>c});var c=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t))._noTheme=!0,r.res=null,r.value=e,r.setup(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,i=[{key:"setup",value:function(){var e=document.createElement("div"),t=document.createElement("div"),r=document.createElement("div");return t.style.position="absolute",r.style.position="relative",e.appendChild(t),e.appendChild(r),this.res=e,this}},{key:"padding",value:function(e,t,r,n){return(e||t||r||n)&&(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=n),t||r||n||(this.res.style.padding=e),this}},{key:"size",value:function(e){var t=this,r=e.width.split("%")[0],n=e.height;this.res.children[0].style.width=r/100*window.innerWidth,this.res.children[0].style.height=n,this.res.children[1].style.width=r/100*window.innerWidth*this.value,this.res.children[1].style.height=n;var o=function(){t.res.children[0].style.width=r/100*window.innerWidth,t.res.children[0].style.height=n,t.res.children[1].style.width=r/100*window.innerWidth*t.value,t.res.children[1].style.height=n};return window.addEventListener("resize",o),o(),this}},{key:"colors",value:function(e,t){return this.res.children[0].style.background=e,this.res.children[1].style.background=t,this}},{key:"round",value:function(e){return this.res.children[0].style.borderRadius="".concat(e,"px"),this.res.children[1].style.borderRadius="".concat(e,"px"),this}},{key:"render",value:function(e){if(Array.from(this.res.children).forEach(function(e){return e.style.padding=0}),Array.from(this.res.children).forEach(function(e){return e.style.margin=0}),!e)return this.res;document.querySelector(e).appendChild(this.res)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},849:(e,t,r)=>{r.d(t,{I:()=>N}),r(9873);var n=r(5379),o=r(8597),i=(r(9793),r(6131)),a=r(9383),s=r(7108),l=r(3050),c=(r(8807),r(3440),r(5367),r(7879)),u=r(7258),d=r(3420),f=(r(827),r(1873),r(2789)),p=r(7926),h=r(153),y=(r(1980),r(6182)),m=r(3665),v=(r(3243),r(3014)),b=(r(9310),r(1632),r(5860),r(4550),r(9290),r(2387)),g=r(9521),w=r(1236),_=r(3180),x=r(1557),k=r(2689),O=r(4617),S=(r(1353),r(3257)),E=(r(5613),r(1371)),j=r(2588),P=r(9932),C=(r(6679),r(9668)),T=r(8424),A=r(2027),R=(r(7698),r(9800)),M=r(5632);function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach(function(t){W(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function W(e,t,r){return(t=z(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,z(n.key),n)}}function z(e){var t=function(e){if("object"!=D(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==D(t)?t:t+""}var q=["h1","h2","h3","h4","h5","h6","p","img","a","cards","free","nav","sideNav","row","dropdown","radio","input","labelInput","filePicker","picker","video","audio","multiswitcher","button","form","checkbox","stack","simple","copy","wrap","circle","polygon","code","table","ulist"],N=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"mapType",value:function(e){if(["h1","h2","h3","h4","h5","h6","p"].includes(e.el.type))return this.mapText(e);if("img"===e.el.type)return this.mapImage(e);if("a"===e.el.type)return this.mapLink(e);if("cards"===e.el.type)return this.mapGrid(e);if("free"===e.el.type)return this.mapFree(e);if("nav"===e.el.type)return this.protoNav(e);if("sideNav"===e.el.type)return this.sideNav(e);if("row"===e.el.type)return this.mapRow(e);if("dropdown"===e.el.type)return this.dropdown(e);if("radio"===e.el.type)return this.radio(e);if("input"===e.el.type)return this.input(e);if("labelInput"===e.el.type)return this.floatInput(e);if("filePicker"===e.el.type)return this.filePicker(e);if("picker"===e.el.type)return this.picker(e);if("video"===e.el.type)return this.video(e);if("audio"===e.el.type)return this.audio(e);if("multiswitcher"===e.el.type)return this.multiswitcher(e);if("button"===e.el.type)return this.button(e);if("form"===e.el.type)return this.form(e);if("checkbox"===e.el.type)return this.checkbox(e);if("stack"===e.el.type)return this.stack(e);if("simple"===e.el.type)return this.simple(e);if("copy"===e.el.type)return this.mapCopy(e);if("wrap"===e.el.type)return this.mapWrap(e);if("circle"===e.el.type)return this.mapCircle(e);if("polygon"===e.el.type)return this.mapPolygon(e);if("code"===e.el.type)return this.mapCode(e);if("table"===e.el.type)return this.mapTable(e);if("ulist"===e.el.type)return this.mapUList(e);throw new Error("[nodality] "+(0,o.au)(e.el.type,q,"element type"))}},{key:"mapTable",value:function(e){var t=e.el;return(new y.X).add([{abbr:"AUIUI/AK9PT",name:"Pokročilé mobilní technologie",grade:"A",date:"09.01.2024"},{abbr:"AUIUI/AK9PT",name:"Pokročilé mobilní technologie",grade:"A",date:"09.01.2024"},{abbr:"AUIUI/AK9PT",name:"Pokročilé mobilní technologie",grade:"A",date:"09.01.2024"}]).set({cellPadding:"0.3em",cellAlign:"center",style:{font:"Arial"},headStyle:{color:"white",background:"#ff6d22"},border:"2px solid black",center:!0,borderRadius:2.2,stroke:this.filtero("blast",t.id,e.customOptions),gradient:this.filtero("gradient",t.id,e.customOptions),animation:this.filtero("animation",t.id,e.customOptions),shadow:this.filtero("shadow",t.id,e.customOptions),span:this.filtero("span",t.id,e.customOptions),backgroundOp:this.filtero("background",t.id,e.customOptions),marginOp:this.filtero("margin",t.id,e.customOptions),transform:this.filtero("transform",t.id,e.customOptions),filtera:this.filtero("filter",t.id,e.customOptions),raster:this.filteroRaster(t.id,e.customOptions)})}},{key:"mapRow",value:function(e){var t=e.el;return(new l.Y).set({stroke:this.filtero("blast",t.id,e.customOptions),gradient:this.filtero("gradient",t.id,e.customOptions),animation:this.filtero("animation",t.id,e.customOptions),shadow:this.filtero("shadow",t.id,e.customOptions),span:this.filtero("span",t.id,e.customOptions),backgroundOp:this.filtero("background",t.id,e.customOptions),marginOp:this.filtero("margin",t.id,e.customOptions),transform:this.filtero("transform",t.id,e.customOptions),filtera:this.filtero("filter",t.id,e.customOptions),raster:this.filteroRaster(t.id,e.customOptions)}).items([new i.E("This").set({size:"S3"}),new i.E("is").set({size:"S3",text:"Hello"}),new i.E("row.").set({size:"S3",text:"Hello"})])}},{key:"mapCode",value:function(e){var t=e.el;return(new f.C).set({stroke:this.filtero("blast",t.id,e.customOptions),gradient:this.filtero("gradient",t.id,e.customOptions),animation:this.filtero("animation",t.id,e.customOptions),shadow:this.filtero("shadow",t.id,e.customOptions),span:this.filtero("span",t.id,e.customOptions),backgroundOp:this.filtero("background",t.id,e.customOptions),marginOp:this.filtero("margin",t.id,e.customOptions),transform:this.filtero("transform",t.id,e.customOptions),filtera:this.filtero("filter",t.id,e.customOptions),raster:this.filteroRaster(t.id,e.customOptions),pad:[{l:30}],mar:[{a:30}],class:"language-js",code:'new Text("Modality").set({ font: "Arial" })'})}},{key:"mapCopy",value:function(e){var t,r=e.customOptions,n=r.filter(function(e){return"copy"===e.op})[0],o=null!==(t=null==n?void 0:n.count)&&void 0!==t?t:3,i=(this.filteroRaster(e.el.id,r)||[]).filter(function(e){return e!==n}),a=300;return'new Wrapper()\n.set({\n width: "'.concat(a,'px",\n height: "').concat(a,'px",\n display: "flex",\n justifyContent: "center",\n alignItems: "center",\n position: "absolute",\n id: "#first",\n scale: 0.3,\n ').concat(null!=n&&n.animation?'\nanimation: {\n op: {\n name: "animation",\n color: "green",\n width: "1px",\n fireAt: "inview",\n keyframesOpen: [\n {\n transform: "rotate(360deg)",\n opacity: 0\n },\n {\n transform: "rotate(0deg)",\n opacity: 1\n }\n ],\n keyframesClose: [\n {\n transform: "rotate(0deg)",\n opacity: 1\n },\n {\n transform: "rotate(0deg)",\n opacity: 0\n }\n ],\n openOptions: {\n duration: 300,\n fill: "forwards",\n delay: 1000\n },\n closeOptions: {\n duration: 1,\n fill: "forwards",\n delay: 1000\n }\n },\n target: [\n "#first"\n ]\n },\n ':"").concat(i.length?",\n raster: ".concat(JSON.stringify(i)):"","\n})\n.add(\n Array.from({ length: ").concat(o,' }).map((_, i) => {\n\n const bbox = {width: "').concat(a,'px", height: "').concat(a,'px"};\n\n const elHeight = bbox.height;\n\n const cx = ').concat(150,";\n const cy = ").concat(150,";\n\n const R = ").concat(150,";\n\n const n = ").concat(o,';\n\n // Evenly spaced angles, starting at top (-90°)\n const angle = (i / n) * Math.PI * 2 - Math.PI/2;\n const dist = R + parseFloat(elHeight)/2;\n\n const x = cx + dist * Math.cos(angle);\n const y = cy + dist * Math.sin(angle);\n\n let rot = angle * 180 / Math.PI + 90;\n rot = (rot % 360 + 360) % 360;\n rot = (rot % 360 + 360) % 360;\n\n return new Text("Hello").set({\n size: "S1",\n color: "green",\n font: "Arial",\n left: `${x}px`,\n top: `${y}px`,\n transform: {\n op: {\n name: "transform",\n transform: {\n static: true,\n keep: true,\n values: [\n "tx:-50%",\n "ty:-50%",\n `rotate(${rot}deg)`\n ]\n }\n }\n }\n })\n\n \n })\n)')}},{key:"button",value:function(e){var t,r=e.el;return new T.$(null!==(t=r.text)&&void 0!==t?t:"Button").set(B(B({fluidc:"S6"},this.elOpts(r)),{},{raster:this.filteroRaster(r.id,e.customOptions)}))}},{key:"multiswitcher",value:function(e){var t=this,r=Array.isArray(e.el.breakpoints)?e.el.breakpoints:null;if(!r||!r.length)throw new Error('[nodality] a "multiswitcher" element needs a non-empty `breakpoints` array of { at, view }.');return(new w.i).set({id:e.el.id,area:e.el.area,breakpoints:r.map(function(r){return{at:r.at,view:r.view&&"function"==typeof r.view.render?r.view:t.mapType(B(B({},e),{},{el:r.view}))}})})}},{key:"video",value:function(e){var t=e.el;if(!t.url)throw new Error('[nodality] a "video" element needs a `url`.');return this.attachRaster(new k.C(t.url).set(this.elOpts(t)),t,e.customOptions)}},{key:"audio",value:function(e){var t=e.el;if(!t.url)throw new Error('[nodality] an "audio" element needs a `url`.');return this.attachRaster(new d.f(t.url),t,e.customOptions)}},{key:"radio",value:function(e){var t,r=e.el;return(new E.z).set(B({items:Array.isArray(r.items)?r.items:[],multiple:null!==(t=r.multiple)&&void 0!==t&&t},this.elOpts(r)))}},{key:"input",value:function(e){var t,r=e.el;return(new v.A).set(B(B({type:null!==(t=r.inputType)&&void 0!==t?t:"text"},this.elOpts(r)),{},{raster:this.filteroRaster(r.id,e.customOptions)}))}},{key:"floatInput",value:function(e){var t,r=e.el;return this.attachRaster((new S.l).set(B({type:null!==(t=r.inputType)&&void 0!==t?t:"input"},this.elOpts(r))),r,e.customOptions)}},{key:"filePicker",value:function(e){var t,r=e.el;return this.attachRaster((new P.I).set(B({title:null!==(t=r.title)&&void 0!==t?t:"Choose a file"},this.elOpts(r))),r,e.customOptions)}},{key:"picker",value:function(e){var t=e.el;return(new j.L).set(B(B({items:Array.isArray(t.items)?t.items:[],arrayPadding:{sides:["all"],value:"0.5rem"},rounded:!0},this.elOpts(t)),{},{raster:this.filteroRaster(t.id,e.customOptions)}))}},{key:"dropdown",value:function(e){e.el.items||(e.el.items=["Flower","Car","Maseratti"]);var t=e.el.items.map(function(e){return(new s.N).set({pad:[{a:10}],font:"Arial",bold:!0,link:"https://www.apple.com",text:e,icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"},hover:{color:"wheat",animation:.3}})}),r=(new m.m).set({behaviour:"click",pad:[{a:"1rem"}],mar:[{a:"1rem"}],border:"1px solid black",width:"180px",radius:"1rem"}).add([new i.E(e.el.items[0]).set({font:"Arial",fluidc:"S6",weight:"bold",align:"center",cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},pad:[{l:10,r:10}]}),(new h.m).set({border:"1px solid green",background:"#1abc9c",radius:"0.7rem",socenter:!0}).add(t.slice(1))]),n=this.filteroRaster(e.el.id,e.customOptions);return n&&r.rasterize(n),r}},{key:"protoNav",value:function(e){var t=e.customOptions,r=[{title:"Fire",link:"@e"},{title:"and",link:"@e"},{title:"smoke",link:"@e"}],n=r.map(function(e,t){return new s.N('"'.concat(e.title,'"')).set({fluidc:"S6",text:e.title,link:e.link,font:"Arial",pad:[{a:40}],bold:!0,hover:{color:"wheat",animation:.3}})}),o=r.map(function(e,t){return new s.N('"'.concat(e.title,'"')).set({fluidc:"S6",text:e.title,link:e.link,font:"Arial",pad:[{a:40}],bold:!0,hover:{color:"wheat",animation:.3},animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px",keyframesOpen:[{transform:"translate(100%, ".concat(10*t,"%)"),opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, ".concat(10*t,"%)"),opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}})});if(e.el.dropdown){var a=(new m.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black"}).add([new i.E("First").set({cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},fluidc:"S6",pad:[{l:20,r:10}],font:"Arial",align:"center",weight:"bold"}),(new h.m).set({centerColumn:!0,radius:"0.7rem",background:"#1abc9c",makeResponsiveBehaviour:"undefined"}).add([(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Second",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}}),(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Third",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}})])]);o.push(a),n.push(a)}e.el.animation;var l=(new w.i).set({breakpoints:[{at:"0px",view:(new g.m).set({background:"#ecf0f1",mar:[{a:21}],brand:new i.E("Company").set({size:"S6",font:"Helvetica"}),hamburgerColour:"#3498db",radius:"1rem"}).add([(new s.N).set({text:"About",url:"#a"}),(new m.m).set({behaviour:"mouseover",pad:[{a:40}],mar:[{lr:"auto"}],breakpoint:"1200px",padding:"10px",border:"1px solid black",height:"auto"}).add([new i.E("More").set({cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new i.E("Our story").set({cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new i.E("Team").set({cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"})]),new s.N("B").set({text:"About",url:"#b"}),new s.N("C").set({text:"Contact",url:"https://www.abcnews.com"})])},{at:"1200px",view:(new b.C).set({background:"#ecf0f1",mar:[{a:21}],maxHeight:"100px",radius:"1rem"}).add([new i.E("Company").set({size:"S6",font:"Helvetica"}),new _.h(!0),(new m.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black",radius:"30px",width:"130px"}).add([new i.E("More").set({cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),(new h.m).set({flexDir:"column",mar:[{t:"10px"}],radius:".3rem"}).add([new s.N("").set({text:"Who we are",url:"jk",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new s.N("").set({text:"Info",url:"#u",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new s.N("").set({text:"About",url:"#u",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"})])]),(new s.N).set({text:"About",url:"#a"}),(new s.N).set({text:"Services",url:"#a"}),(new s.N).set({text:"Contact",url:"#a"})])}]});return this.attachRaster(l,e.el,t)}},{key:"sideNav",value:function(e){e.customOptions;var t=[{title:"Home",link:"@e"},{title:"Projects",link:"@e"},{title:"Services",link:"@e"}],r=t.map(function(e,t){return new s.N('"'.concat(e.title,'"')).set({fluidc:"S4",text:e.title,link:e.link,isNavA:!0,url:"#e",id:"#"+e.title.toLowerCase(),font:"Arial",pad:[{a:20}],bold:!0,tags:{open:"sidebar:open",close:"sidebar:closed"},align:"left",hover:{color:"wheat",animation:.3}})}),n=(new m.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px",keyframesOpen:[{transform:"translate(100%, ".concat(10,"%)"),opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, ".concat(10,"%)"),opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}}).add([new i.E("More").set({cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),(new h.m).set({centerColumn:!0,radius:"0.7rem",background:"#1abc9c",makeResponsiveBehaviour:"undefined"}).add([(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Second",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}}),(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Third",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}})])]),o=t.map(function(e,t){return new s.N('"'.concat(e.title,'"')).set({fluidc:"S4",text:e.title,link:e.link,isNavA:!0,url:"#myURL",id:"#"+e.title.toLowerCase(),font:"Arial",pad:[{a:20}],bold:!0,tags:{open:"sidebar:open",close:"sidebar:closed"},align:"left",hover:{color:"wheat",animation:.3},animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px",keyframesOpen:[{transform:"translate(100%, ".concat(10*t,"%)"),opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, ".concat(10*t,"%)"),opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}})});e.el.dropdown&&(o.push(n),r.push(n));var a=(new h.m).set({column:!0}).add([new i.E("Sidebar").set({size:"S6",font:"Arial",id:"#olod",italic:!0,animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}},pad:[{l:20},{t:20}]}),e.el.animation?o[0]:r[0],e.el.animation?o[1]:r[1],e.el.animation?o[2]:r[2],e.el.animation&&e.el.dropdown?o[3]:new i.E("").set({}).excludeFromCode(),new i.E("Company, 2025").set({pad:[{a:20}],animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}}})]),l=(new h.m).set({column:!0}).add([new i.E("Off canvas").set({fluidc:"S6",font:"Arial",id:"#olod",italic:!0,animation:e.el.animation?{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}}:null,pad:[{l:40},{t:20}]})]),u=(new c.f).setup({animate:!0,radius:"1rem",isSide:!0,background:"#ecf0f1",hamColour:{opened:"#1abc9c",closed:"#e67e22"},mobileSize:"1.2em",fixed:!0,tags:{open:"sidebar:open",close:"sidebar:closed"}}).items(e.el.offcanvas?l:a),d=this.filteroRaster(e.el.id,e.customOptions);return d&&u.rasterize(d),u}},{key:"mapFree",value:function(e){var t=e.customOptions.filter(function(e){return"slayout"===e.op.name||"layout"===e.op.name})[0],r=null,n={cols:6,rows:6};"text-above-image"!==t.op.value&&"image-above-text"!==t.op.value||(r=null,n=null),"img-overlay-text"===t.op.value&&(r={text:{row:"1 / span 2",col:"3 / span 2"},image:{row:"2 / span 3",col:"3 / 3"}}),"img-leftof-text"===t.op.value&&(r={text:{row:"1",col:"1 / 3"},image:{row:"1",col:"3 / 4"}});var o=(new u.b).set({id:"#3",templateCols:n,height:"600px"}).add([new i.E("I am free").set({border:"3px solid green",font:"Arial",size:"S1",color:"#1abc9c",gpos:null!=r?r.text:null,zIndex:1}),(new a._).set({url:"https://upload.wikimedia.org/wikipedia/commons/a/ac/MSC_World_Europa_-_Saint-Nazaire_-_June_2022.jpg",width:"400px",height:"auto",gpos:null!=r?r.image:null})]),s=this.filteroRaster(e.el.id,e.customOptions);return s&&o.rasterize(s),o}},{key:"mapCircle",value:function(e){var t=e.el;return(new M.j).set({diameter:108,background:"#1abc9c",stroke:this.filtero("blast",t.id,e.customOptions),gradient:this.filtero("gradient",t.id,e.customOptions),animation:this.filtero("animation",t.id,e.customOptions),shadow:this.filtero("shadow",t.id,e.customOptions),span:this.filtero("span",t.id,e.customOptions),backgroundOp:this.filtero("background",t.id,e.customOptions),marginOp:this.filtero("margin",t.id,e.customOptions),transform:this.filtero("transform",t.id,e.customOptions),filtera:this.filtero("filter",t.id,e.customOptions),raster:this.filteroRaster(t.id,e.customOptions)})}},{key:"mapPolygon",value:function(e){var t,r=e.el,n=null!==(t=e.el.sides)&&void 0!==t?t:7;return new R.t({id:"hex"}).set({sides:n,size:300,background:"#1abc9c",gradient:this.filtero("gradient",r.id,e.customOptions),animation:this.filtero("animation",r.id,e.customOptions),shadow:this.filtero("shadow",r.id,e.customOptions),span:this.filtero("span",r.id,e.customOptions),backgroundOp:this.filtero("background",r.id,e.customOptions),marginOp:this.filtero("margin",r.id,e.customOptions),transform:this.filtero("transform",r.id,e.customOptions),filtera:this.filtero("filter",r.id,e.customOptions),raster:this.filteroRaster(r.id,e.customOptions)})}},{key:"mapText",value:function(e){var t,r,n=e.el;return new i.E(n.text||n.value).set({id:n.id,class:n.class,color:n.color,size:this.getElType(n.type),font:null!==(t=n.font)&&void 0!==t?t:"Arial",stroke:this.filtero("blast",n.id,e.customOptions),gradient:this.filtero("gradient",n.id,e.customOptions),animation:this.filtero("animation",n.id,e.customOptions),shadow:this.filtero("shadow",n.id,e.customOptions),span:this.filtero("span",n.id,e.customOptions),backgroundOp:this.filtero("background",n.id,e.customOptions),marginOp:this.filtero("margin",n.id,e.customOptions),transform:this.filtero("transform",n.id,e.customOptions),filtera:this.filtero("filter",n.id,e.customOptions),raster:this.filteroRaster(n.id,e.customOptions),resprop:null!==(r=n.resprop)&&void 0!==r?r:null})}},{key:"mapImage",value:function(e){var t=e.el;return new a._(t.url).set(B(B({},t),{},{isFull:t.isFull,animation:this.filtero("animation",t.id,e.customOptions),shadow:this.filtero("shadow",t.id,e.customOptions),marginOp:this.filtero("margin",t.id,e.customOptions),filtera:this.filtero("filter",t.id,e.customOptions),raster:this.filteroRaster(t.id,e.customOptions)}))}},{key:"mapLink",value:function(e){var t=e.customOptions.filter(function(e){return"link-style"===e.op.name}),r=e.el;return e.el.id&&(r.id=e.el.id),e.el.link&&e.el.text&&(r.url=e.el.link,r.text=e.el.text),r.animation=this.filtero("animation",e.el.id,e.customOptions),r.class=e.el.class,r.width=e.el.width,r.font="Arial",r.fluidc=e.el.fluidc,r.transform=this.filtero("transform",e.el.id,e.customOptions),r.shadow=this.filtero("shadow",e.el.id,e.customOptions),r.gradient=this.filtero("gradient",e.el.id,e.customOptions),r.blast=this.filtero("blast",e.el.id,e.customOptions),r.backgroundOp=this.filtero("background",e.el.id,e.customOptions),r.raster=this.filteroRaster(e.el.id,e.customOptions),r.pad=[{a:10}],t.length>0?A.a.style({el:e.el,re:r,bst:t,options:e.customOptions})[t.length-1]:(new s.N).set(r)}},{key:"mapGrid",value:function(e){var t=e.el,r=(e.customOptions.find(function(e){return"card-style"===e.op.name}),this.filtero("gradient",t.id,e.customOptions)),n=this.filtero("animation",t.id,e.customOptions),o=this.filtero("shadow",t.id,e.customOptions),i=this.filtero("margin",t.id,e.customOptions),a=this.filtero("filter",t.id,e.customOptions),s=this.filteroRaster(t.id,e.customOptions),l=this.filtero("blast",t.id,e.customOptions),c='\n new Card()\n .set({\n width: "300px", \n height: "700px",\n radius: "0.7rem", \n mar: { sides: ["all"], value: "0.8rem" }\n '.concat(void 0!==r?",\n gradient: ".concat(JSON.stringify(r)):"").concat(void 0!==n?",\n animation: ".concat(JSON.stringify(n)):"").concat(void 0!==o?",\n shadow: ".concat(JSON.stringify(o)):"").concat(void 0!==i?",\n marginOp: ".concat(JSON.stringify(i)):"").concat(void 0!==a?",\n filtera: ".concat(JSON.stringify(a)):"").concat(void 0!==l?",\n blast: ".concat(JSON.stringify(l)):"",'\n })\n .items([\n new Image(item.img).set({isFull: true, url: item.img}),\n new Text(item.title).set({ size: "S5", color: "orange" }),\n new Link("Link").set({\n text: item.title, \n url: item.link, \n background: "#3498db", \n pad: [{ lr: "0.5rem", tb: "1rem" }], \n radius: "0.4rem", \n color: "white",\n mar: [{"a": 21}]\n })\n ])'),u=e.el.backgroundCard?'\n new ZoomCard()\n .set({\n url: item.img, \n font: "Arial", \n mar: { sides: ["all"], value: "0.8rem" }, \n inpad: "1rem", \n useBrightness: true\n })\n .items([\n new Text(item.title).set({ fluidc: "S6", color: "orange" }),\n new Link("Link").set({\n text: item.title, \n url: item.link, \n background: "#3498db", \n pad: [{ lr: "0.5rem", tb: "1rem" }], \n radius: "0.4rem", \n color: "white"\n })\n ])':c;return' new FlexGrid()\n .set({\n colat: "700px",\n wrap: true,\n align: "center",\n gap: "1rem"\n '.concat(void 0!==r?",\n gradient: ".concat(JSON.stringify(r)):"").concat(void 0!==n?",\n animation: ".concat(JSON.stringify(n)):"").concat(void 0!==o?",\n shadow: ".concat(JSON.stringify(o)):"").concat(void 0!==i?",\n marginOp: ".concat(JSON.stringify(i)):"").concat(void 0!==a?",\n filtera: ".concat(JSON.stringify(a)):"").concat(void 0!==l?",\n blast: ".concat(JSON.stringify(l)):"").concat(void 0!==s?",\n raster: ".concat(JSON.stringify(s)):"",'\n })\n .items(\n [\n { img: "https://upload.wikimedia.org/wikipedia/commons/3/3a/Starship_S20.jpg", title: "Starship", link: "#ship" },\n { img: "https://upload.wikimedia.org/wikipedia/commons/1/16/Apollo_11_Launch_-_GPN-2000-000630.jpg", title: "Saturn V", link: "#saturn" },\n { img: "https://upload.wikimedia.org/wikipedia/commons/d/d6/STS120LaunchHiRes-edit1.jpg", title: "Shuttle", link: "#shuttle" }\n ].map(item => \n ').concat(u,"\n )\n )\n ")}},{key:"checkbox",value:function(e){var t=e.el,r="string"==typeof t.label?new i.E(t.label).set({size:"S6"}):t.label;return this.attachRaster((new x.S).set(B(B({},this.elOpts(t,["label"])),void 0!==r?{label:r}:{})),t,e.customOptions)}},{key:"stack",value:function(e){var t=this,r=e.el,n=(new p.B).set(this.elOpts(r)),o=Array.isArray(r.children)?r.children:null;return o&&n.add(o.map(function(r){return t.mapType(B(B({},e),{},{el:r}))})),this.attachRaster(n,r,e.customOptions)}},{key:"form",value:function(e){var t,r=this,n=e.el,o=(new C.l).set(B(B({action:null!==(t=n.action)&&void 0!==t?t:""},void 0!==n.method?{method:n.method}:{}),void 0!==n.id?{id:n.id}:{})),i=Array.isArray(n.children)?n.children:null;return i&&o.add(i.map(function(t){return r.mapType(B(B({},e),{},{el:t}))})),o}},{key:"simple",value:function(e){var t,r,n=this,o=e.el,i=Array.isArray(o.react)?o.react:[];if(!i.length)throw new Error('[nodality] a "simple" element needs a non-empty `react` array of { at, template }.');var a=(Array.isArray(o.children)?o.children:[]).map(function(t){var r=n.mapType(B(B({},e),{},{el:t})).toCode();return Array.isArray(r)?r.join(""):String(r)}).join(",\n ");return"new AreaSwitcher()\n .set(".concat(JSON.stringify(B({gap:null!==(t=o.gap)&&void 0!==t?t:"10px",height:null!==(r=o.height)&&void 0!==r?r:"700px"},void 0!==o.id?{id:o.id}:{})),")\n .react(").concat(JSON.stringify(i,null,2),")\n .add([\n ").concat(a,"\n ])")}},{key:"mapWrap",value:function(e){var t,r,n=this,o=e.el,i=null!==(t=e.el.kind)&&void 0!==t?t:"",a=new h.m(i).set(B(B({},o),{},{font:null!==(r=o.font)&&void 0!==r?r:"Arial",stroke:this.filtero("blast",o.id,e.customOptions),gradient:this.filtero("gradient",o.id,e.customOptions),animation:this.filtero("animation",o.id,e.customOptions),shadow:this.filtero("shadow",o.id,e.customOptions),transform:this.filtero("transform",o.id,e.customOptions),filtera:this.filtero("filter",o.id,e.customOptions),raster:this.filteroRaster(o.id,e.customOptions)})),s=Array.isArray(o.children)?o.children:null;return s&&a.add(s.map(function(t){return n.mapType(B(B({},e),{},{el:t}))})),a}},{key:"mapUList",value:function(e){var t,r,n=this,o=e.el,a=null!==(t=e.el.kind)&&void 0!==t?t:"",s=new O.e(a).set(B(B({},o),{},{font:null!==(r=o.font)&&void 0!==r?r:"Arial",stroke:this.filtero("blast",o.id,e.customOptions),gradient:this.filtero("gradient",o.id,e.customOptions),animation:this.filtero("animation",o.id,e.customOptions),shadow:this.filtero("shadow",o.id,e.customOptions),transform:this.filtero("transform",o.id,e.customOptions),filtera:this.filtero("filter",o.id,e.customOptions),raster:this.filteroRaster(o.id,e.customOptions)})),l=Array.isArray(o.items)?o.items:null;return l&&s.setItems(l.map(function(t){return"string"==typeof t?new i.E(t).set({}):n.mapType(B(B({},e),{},{el:t}))})),s}},{key:"getElType",value:function(e){return"p"===e?"S6":"S".concat(e.substr(1))}},{key:"filtero",value:function(e,t,r){return r.filter(function(t){return t.op.name===e}).filter(function(e){return!e.target||e.target.includes(t)})[0]}},{key:"elOpts",value:function(e){for(var t=new Set(["type","children","items","breakpoints","inputType","text","url"].concat(function(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]))),r={},n=0,o=Object.keys(e);n<o.length;n++){var i=o[n];t.has(i)||(r[i]=e[i])}return r}},{key:"attachRaster",value:function(e,t,r){var n=this.filteroRaster(t.id,r);return n&&e&&"function"==typeof e.rasterize&&e.rasterize(n),e}},{key:"filteroRaster",value:function(e,t){var r=(t||[]).filter(function(t){return t&&"string"==typeof t.op&&n.ls.includes(t.op)&&(!t.target||e&&t.target.includes(e))});return r.length>0?r:void 0}}],null&&F(e.prototype,null),t&&F(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},1236:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}r.d(t,{i:()=>f});var f=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)).breakpoints=[],e.container=null,e.currentView=null,e.internalDiv=null,e.resizeListener=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,o=[{key:"set",value:function(e){var t=e.breakpoints,r=e.id,n=e.area;if(this.options={breakpoints:t},this._id=r,this._area=n,!Array.isArray(t))throw new Error("Breakpoints should be an array of objects with 'at' and 'view' properties.");return this.breakpoints=t.map(function(e){if("string"!=typeof e.at||!(e.view.render()instanceof HTMLElement))throw new Error("Each breakpoint must have 'at' as a string and 'view' as an HTMLElement.");return i(i({},e),{},{at:parseInt(e.at,10)})}),this.breakpoints.sort(function(e,t){return e.at-t.at}),this}},{key:"toCode",value:function(){JSON.stringify(this.options.breakpoints.map(function(e){return e.view.toCode()}).flat(),null,4),JSON.stringify(this.options.breakpoints.map(function(e){return e.at}),null,4),JSON.stringify(this.options.breakpoints,null,4);for(var e="",t=0;t<this.options.breakpoints.length;t++)e+='{ at: "'.concat(this.options.breakpoints[t].at,'", view: ').concat(this.options.breakpoints[t].view.toCode()," }, \n");return["new Switcher().set({\n breakpoints: [\n ".concat(e,"\n ]\n })")]}},{key:"render",value:function(e){return this.internalDiv=document.createElement("div"),this.res=this.internalDiv,this._id&&this.internalDiv.setAttribute("id",this._id),this._area&&(this.internalDiv.style.gridArea=this._area),this.applyView(),this.resizeListener=this.applyView.bind(this),window.addEventListener("resize",this.resizeListener),void 0!==e&&document.querySelector(e).appendChild(this.internalDiv),this.internalDiv}},{key:"createRanges",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:99999,r=[],n=0;n<e.length;n++)r.push({from:e[n],to:n<e.length-1?e[n+1]-1:t});return r}},{key:"addRanges",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:99999;return e.map(function(e,n){var o=t[n],a=n<t.length-1?t[n+1]-1:r;return i(i({},e),{},{range:{from:o,to:a}})})}},{key:"applyView",value:function(){var e=this,t=(window.innerWidth,this.breakpoints.map(function(e){return e.at})),r=this.breakpoints.map(function(e){return e.at});this.createRanges(r),this.addRanges(this.breakpoints,t).forEach(function(t){var r="(min-width: ".concat(t.range.from,"px) and (max-width: ").concat(t.range.to,"px)");window.matchMedia(r).matches&&e.currentView!==t.view.render()&&(e.internalDiv.innerHTML="",e.internalDiv.appendChild(t.view.render()),e.currentView=t.view.render())})}},{key:"destroy",value:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),this.internalDiv&&this.container&&this.container.removeChild(this.internalDiv),this.container=null,this.currentView=null,this.internalDiv=null}}],o&&s(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(9873).y)},1353:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(8424);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}var s=function(){return e=function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=document.createElement("div"),this.container.style.width="100%",this.container.style.margin="20px auto",this.container.style.textAlign="center",this.elements=t,this.currentSlideIndex=0,this.buttons=r,this.tintColor=o.tintColor||"green",this.inactiveColor=o.inactiveColor||"gray",this.options=o,!this.buttons){var i={leftButton:new n.$("L").set({frame:{width:50,height:50},svg:this.createArrowSVG("left",28,this.tintColor),color:this.tintColor,radius:"100%",mar:[{a:"1rem"}]}),rightButton:new n.$("R").set({frame:{width:50,height:50},svg:this.createArrowSVG("right",28,this.tintColor),color:this.tintColor,radius:"100%",mar:[{a:"1rem"}]})};this.buttons=i}this.createSlider(),this.init()},t=[{key:"createArrowSVG",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"left",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:28,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"currentColor",n="http://www.w3.org/2000/svg",o=document.createElementNS(n,"svg");o.setAttribute("viewBox","0 0 24 24"),o.setAttribute("width",String(t)),o.setAttribute("height",String(t)),o.setAttribute("aria-hidden","true"),o.style.display="block",o.style.pointerEvents="none";var i=document.createElementNS(n,"path");return i.setAttribute("fill",r),"left"===e?i.setAttribute("d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"):i.setAttribute("d","M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"),o.appendChild(i),o}},{key:"toCode",value:function(){var e="new Slider([".concat(this.elements.map(function(e){return e.toCode()}),"], null)");return[e=e.replace(/,\s*\./g,".")]}},{key:"createSlider",value:function(){var e,t=this;this.slider=document.createElement("div"),this.slider.style.width="100%",this.slider.style.height=null!==(e=this.options.height)&&void 0!==e?e:"400px",this.slider.style.borderRadius="20px",this.slider.style.overflow="hidden",this.slider.style.position="relative",this.slider.style.marginBottom="15px";var r=document.createElement("div");this.slidesWrapper=r,r.style.display="flex",r.style.overflowX="scroll",r.style.scrollBehavior="smooth",r.style.scrollSnapType="x mandatory",this.elements.forEach(function(e,n){var o=document.createElement("div");o.setAttribute("class","slide"),o.style.display="flex",o.style.justifyContent="center",o.style.alignItems="center",o.style.flexShrink="0",o.style.width="100%",o.style.height="400px",o.style.transformOrigin="center center",o.style.transform="scale(1)",o.style.scrollSnapAlign="center";var i=e.render();o.appendChild(i),i.style.cursor="pointer",i.addEventListener("click",function(){t.showLightbox(n)}),r.appendChild(o)}),this.arrowPrev=this.buttons.leftButton.render(),this.arrowPrev.style.position="absolute",this.arrowPrev.style.left="10px",this.arrowPrev.style.top="50%",this.arrowPrev.style.transform="translateY(-50%)",this.arrowPrev.style.zIndex="1",this.arrowPrev.style.display="flex",this.arrowPrev.style.alignItems="center",this.arrowPrev.style.justifyContent="center",this.arrowPrev.style.backgroundColor="white",this.arrowPrev.style.padding=".4rem",this.arrowNext=this.buttons.rightButton.render(),this.arrowNext.style.position="absolute",this.arrowNext.style.right="10px",this.arrowNext.style.top="50%",this.arrowNext.style.transform="translateY(-50%)",this.arrowNext.style.zIndex="1",this.arrowNext.style.display="flex",this.arrowNext.style.alignItems="center",this.arrowNext.style.justifyContent="center",this.arrowNext.style.backgroundColor="white",this.arrowNext.style.padding=".4rem";var n=document.createElement("div");n.style.position="absolute",n.style.bottom="10%",n.style.left="50%",n.style.transform="translateX(-50%)",n.style.textAlign="center",n.style.background="#ffffff",n.style.borderRadius="1rem",n.style.padding=".2rem",n.style.boxShadow="3px 3px 10px #000",this.options.hideSelector&&(n.style.display="none"),this.elements.forEach(function(e,r){var o=document.createElement("a");o.style.display="inline-block",o.style.height="15px",o.style.width="15px",o.style.borderRadius="50%",o.style.backgroundColor=t.inactiveColor,o.style.margin="0 10px",o.style.cursor="pointer",o.dataset.index=r,n.appendChild(o)});var o=document.createElement("div");o.style.display="flex",o.style.justifyContent="flex-start",o.style.margin="1rem",o.style.gap="10px",o.style.flexWrap="nowrap",o.style.overflowX="auto",this.options.hideThumbnails&&(o.style.display="none"),r.querySelectorAll(".slide").forEach(function(e,r){var n=document.createElement("div");n.className="slider-thumb",n.dataset.index=r.toString(),n.style.width="60px",n.style.height="40px",n.style.border="2px solid ".concat(t.inactiveColor),n.style.borderRadius="5px",n.style.overflow="hidden",n.style.cursor="pointer",n.style.flexShrink="0",n.style.position="relative";var i=(e.firstElementChild||e.cloneNode(!0)).cloneNode(!0);i.style.transform="scale(0.2)",i.style.transformOrigin="top left",i.style.width="300px",i.style.height="300px",i.style.backgroundSize="contain",i.style.pointerEvents="none",n.appendChild(i),o.appendChild(n)}),this.slider.appendChild(this.arrowPrev),this.slider.appendChild(this.arrowNext),this.slider.appendChild(r),this.slider.appendChild(n),this.container.appendChild(this.slider),this.container.appendChild(o),this.slidesWrapper=r,this.navLinks=Array.from(n.querySelectorAll("a")),this.thumbs=Array.from(o.querySelectorAll(".slider-thumb"))}},{key:"init",value:function(){this.updateActiveSlide(),this.attachEventListeners()}},{key:"attachEventListeners",value:function(){var e=this;this.arrowPrev.addEventListener("click",function(){e.moveToSlide(e.currentSlideIndex-1<0?e.elements.length-1:e.currentSlideIndex-1)}),this.arrowNext.addEventListener("click",function(){e.moveToSlide((e.currentSlideIndex+1)%e.elements.length)}),this.navLinks.forEach(function(t){t.addEventListener("click",function(r){r.preventDefault();var n=parseInt(t.dataset.index,10);e.moveToSlide(n)})}),this.thumbs.forEach(function(t){t.addEventListener("click",function(){var r=parseInt(t.dataset.index,10);e.moveToSlide(r)})}),document.addEventListener("keydown",function(t){"ArrowLeft"===t.key?e.moveToSlide(e.currentSlideIndex-1<0?e.elements.length-1:e.currentSlideIndex-1):"ArrowRight"===t.key&&e.moveToSlide((e.currentSlideIndex+1)%e.elements.length)})}},{key:"moveToSlide",value:function(e){this.currentSlideIndex=e,this.updateActiveSlide()}},{key:"updateActiveSlide",value:function(){var e=this;this.navLinks.forEach(function(t){var r=parseInt(t.dataset.index,10);t.style.backgroundColor=r===e.currentSlideIndex?e.tintColor:e.inactiveColor}),this.thumbs.forEach(function(t){var r=parseInt(t.dataset.index,10);t.style.borderColor=r===e.currentSlideIndex?e.tintColor:e.inactiveColor});var t=this.slidesWrapper.querySelector(".slide"),r=t?t.offsetWidth:this.slidesWrapper.clientWidth;this.slidesWrapper.scrollTo({left:this.currentSlideIndex*r,behavior:"smooth"})}},{key:"showLightbox",value:function(e){var t=this,r=e,n=document.createElement("div");n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.width="100vw",n.style.height="100vh",n.style.backgroundColor="rgba(0,0,0,0.9)",n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.zIndex="9999",n.style.cursor="default";var o=document.createElement("div");o.style.position="relative",o.style.display="flex",o.style.alignItems="center",o.style.justifyContent="center",o.style.maxWidth="90%",o.style.maxHeight="90%",n.appendChild(o);var i=function(e){o.innerHTML="";var r,n=t.elements[e].render();if(r="IMG"===n.tagName?n:n.querySelector("img")){var i=document.createElement("img");i.src=r.src,i.style.maxWidth="90vw",i.style.maxHeight="90vh",i.style.objectFit="contain",i.style.pointerEvents="none",i.style.display="block",o.appendChild(i)}else{var a=n.cloneNode(!0);a.style.width="90vw",a.style.height="90vh",a.style.maxWidth="90vw",a.style.maxHeight="90vh",a.style.pointerEvents="none",o.appendChild(a)}};i(r);var a=this.buttons.leftButton.render().cloneNode(!0),s=this.buttons.rightButton.render().cloneNode(!0),l={position:"absolute",top:"50%",transform:"translateY(-50%)",background:"white",border:"none",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",width:"50px",height:"50px",margin:"1rem",padding:"0",zIndex:"10000",cursor:"pointer",boxShadow:"0 2px 8px rgba(0,0,0,0.4)"};Object.assign(a.style,l,{left:"10px"}),Object.assign(s.style,l,{right:"10px"}),a.addEventListener("click",function(e){e.stopPropagation(),r=r-1<0?t.elements.length-1:r-1,i(r)}),s.addEventListener("click",function(e){e.stopPropagation(),r=(r+1)%t.elements.length,i(r)}),n.appendChild(a),n.appendChild(s);var c=document.createElement("div");c.innerHTML="✕",c.style.position="absolute",c.style.top="15px",c.style.right="20px",c.style.fontSize="2rem",c.style.color="white",c.style.cursor="pointer",c.style.zIndex="10000",c.style.userSelect="none",c.style.transition="transform 0.2s ease",c.addEventListener("mouseenter",function(){c.style.transform="scale(1.2)"}),c.addEventListener("mouseleave",function(){c.style.transform="scale(1)"}),c.addEventListener("click",function(e){e.stopPropagation(),document.body.removeChild(n),document.removeEventListener("keydown",u)}),n.appendChild(c),n.addEventListener("click",function(){document.body.removeChild(n),document.removeEventListener("keydown",u)});var u=function(e){"Escape"===e.key?(document.body.removeChild(n),document.removeEventListener("keydown",u)):"ArrowLeft"===e.key?(r=r-1<0?t.elements.length-1:r-1,i(r)):"ArrowRight"===e.key&&(r=(r+1)%t.elements.length,i(r))};document.addEventListener("keydown",u),document.body.appendChild(n)}},{key:"render",value:function(e){if(!e)return this.container;document.querySelector(e).appendChild(this.container)}}],t&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},1371:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{z:()=>a}),r(9873);var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=null,this.radioCount=0},t=[{key:"set",value:function(e){this.options=e,this.radioCount=e.items.length;for(var t=document.createElement("div"),r=e.items,n=0;n<r.length;n++){var o=document.createElement("label");r.font&&(o.style.font=r.font),r.color&&(o.style.color=r.color),r.exact&&(o.style.fontSize=r.exact);var i=document.createTextNode(r[n]);o.appendChild(i),o.setAttribute("for",r[n]);var a=document.createElement("input");a.setAttribute("type","radio"),a.setAttribute("id","S".concat(n)),a.setAttribute("value",r[n].split(" ").join("")),a.style.appearance="none",a.style.width="20px",a.style.height="20px",a.style.border=this.options.tint?"2px solid ".concat(this.options.tint):"2px solid #007BFF",a.style.borderRadius="50%",a.style.outline="none",a.style.cursor="pointer",a.style.transition="0.3s",this.options.font&&(o.style.fontFamily=this.options.font),e.multiple?a.setAttribute("name",r[n].split(" ").join("")):a.setAttribute("name",e.name),t.appendChild(a),t.appendChild(o),t.innerHTML+="</br>"}return this.el=t,this.responsive(),this}},{key:"padding",value:function(e){return this.el.style.padding=e,this}},{key:"getCheckedValues",value:function(){for(var e=[],t=0;t<this.radioCount;t++)if(document.querySelector("#S".concat(t)).checked){var r=document.querySelector("#S".concat(t));e.push(r.value)}return e}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new RadioGroup().set(".concat(e,")")]}},{key:"responsive",value:function(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.el.style.fontSize="1.7em"),this}},{key:"render",value:function(e){var t=this;if(!e){for(var r=function(){var e=t.el.children[n];"[object HTMLInputElement]"===e.toString()&&e.addEventListener("change",function(){if(e.checked){e.style.backgroundColor=t.options.tint?t.options.tint:"#007BFF",e.style.boxShadow=t.options.tint?"0 0 0 2px ".concat(t.options.tint," inset"):"0 0 0 2px #0056b3 inset";for(var r=0;r<t.el.children.length;r++){var n=t.el.children[r];"INPUT"===n.tagName&&"radio"===n.type&&!1===t.options.multiple&&n!==e&&(n.style.backgroundColor="transparent",n.style.boxShadow="none")}}else e.style.backgroundColor="transparent",e.style.boxShadow="none"})},n=0;n<this.el.children.length;n++)r();return this.el}document.querySelector(e).appendChild(this.el)}}],t&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();"undefined"!=typeof window&&(window.RadioGroup=a)},1382:(e,t,r)=>{r.d(t,{_H:()=>o,sy:()=>i});var n='"([A-Za-z_$][A-Za-z0-9_$]*)"\\s*:';function o(){return new RegExp(n,"g")}function i(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;return"string"!=typeof(t=JSON.stringify(e,null,r))?t:t.replace(o(),"$1:")}},1557:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{S:()=>u});var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t)).res=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,(a=[{key:"set",value:function(e){var t,r;this.options=e;var n=document.createElement("div");n.style.display="flex",n.style.alignItems="center";var o=document.createElement("input");o.type="checkbox",o.style.position="relative",o.style.marginRight="0.5rem";var i=e.size||"24px";o.style.width=i,o.style.height=i,e.customStyle&&(o.style.appearance="none"),o.style.border="2px solid #ccc",o.style.borderRadius="4px",o.style.backgroundColor=e.backgroundColor||"white",o.style.cursor="pointer",o.style.transition="background-color 0.2s ease, border-color 0.2s ease",o.style.display="inline-block",o.style.setProperty("--checked-bg-color",e.checkedBackgroundColor||"#4CAF50"),o.style.setProperty("--checkmark-color","white"),o.style.setProperty("--checkmark-clip-path",null!==(t=this.options.clipPath)&&void 0!==t?t:"polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%)");var a=document.createElement("style");a.textContent='\n input[type="checkbox"] {\n appearance: none;\n -webkit-appearance: none; /* For Safari */\n width: var(--size, 24px);\n height: var(--size, 24px);\n border: 2px solid #ccc;\n border-radius: 4px;\n background-color: white;\n position: relative;\n cursor: pointer;\n transition: background-color 0.2s ease, border-color 0.2s ease;\n }\n\n input[type="checkbox"]:checked {\n background-color: var(--checked-bg-color, #4CAF50);\n border-color: var(--checked-bg-color, #4CAF50);\n }\n\n input[type="checkbox"]::after {\n content: \'\';\n position: absolute;\n width: 50%;\n height: 50%;\n top: 25%;\n left: 25%;\n transform: scale(0);\n background-color: var(--checkmark-color, white);\n clip-path: var(--checkmark-clip-path);\n -webkit-clip-path: var(--checkmark-clip-path);\n transition: transform 0.2s ease;\n }\n\n input[type="checkbox"]:checked::after {\n transform: scale(1);\n }\n',e.customStyle&&document.head.appendChild(a),e.mar&&this.mar(e.mar),e.pad&&this.pad(e.pad),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),o.addEventListener("change",function(){o.checked?(o.style.backgroundColor=e.checkedBackgroundColor||"#4CAF50",o.style.borderColor=e.checkedBackgroundColor||"#4CAF50"):(o.style.backgroundColor=e.backgroundColor||"white",o.style.borderColor="#ccc")}),e.name&&o.setAttribute("name",e.name),n.appendChild(o);var s=document.createElement("div");if("function"==typeof(null===(r=e.label)||void 0===r?void 0:r.render))s.appendChild(e.label.render());else{var l=document.createTextNode(e.title||"Label");s.appendChild(l)}return s.style.opacity=.8,s.style.transition="opacity ease 0.2s, transform ease 0.2s",n.appendChild(s),this.res=n,this}},{key:"getValue",value:function(){return this.res.children[0].checked}},{key:"toCode",value:function(){var e=Object.entries(this.options).map(function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=t[0],i=t[1];return"string"==typeof i?"".concat(r,': "').concat(i,'"'):"object"===n(i)&&null!==i?"function"==typeof i.toCode?"".concat(r,": ").concat(i.toCode()[0]):"".concat(r,": ").concat(JSON.stringify(i,null,4)):"".concat(r,": ").concat(i)}).join(",\n ");return["new Checkbox().set({\n ".concat(e,"\n})")]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&i(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(r(9873).y);"undefined"!=typeof window&&(window.Checkbox=u)},1632:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{B:()=>c});var c=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t))._noTheme=!0,r.code=[],r.setup();for(var o=0;o<e.length;o++)r.res.appendChild(e[o].render().render());return r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"setup",value:function(){var e=document.createElement("div");e.style.padding=0,e.style.margin=0,this.res=e}},{key:"width",value:function(e,t){return this.res.style.width=e,t&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),this}},{key:"padding",value:function(e){return this.res.style.padding="".concat(e,"px"),this}},{key:"size",value:function(e,t){return this.w=e,this.h=t,this.w?this.res.style.width=this.w:this.res.style.width=window.innerWidth,this.h?this.res.style.height=this.h:this.res.style.height=window.innerHeight,this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},1873:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{o:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).setup(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"setup",value:function(){var e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.justifyContent="center",e.style.alignItems="center",e.style.width="100%",e.style.height="auto",e.style.margin=0,e.style.padding=0,this.res=e}},{key:"set",value:function(e){return void 0!==e.id&&null!==e.id&&this.res.setAttribute("id",e.id),this.commonMethods(e),this}},{key:"toCode",value:function(){return[""]}},{key:"items",value:function(e){for(var t=0;t<e.length;t++){var r=e[t].render();this.res.appendChild(r)}return this}},{key:"add",value:function(e){for(var t=0;t<e.length;t++){var r=e[t].render();this.res.appendChild(r)}return this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},1980:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{W:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t))._noTheme=!0,e.res=document.createElement("meta"),e.res.setAttribute("name","viewport"),e.res.setAttribute("content","width=device-width, initial-scale=1"),e.charset=document.createElement("meta"),e.charset.setAttribute("charset","UTF-8"),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"add",value:function(){document.head.appendChild(this.res),document.head.appendChild(this.charset)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},2027:(e,t,r)=>{r.d(t,{a:()=>s});var n=r(7108);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"style",value:function(e){for(var t=e.bst,r=e.el,o=e.re,i=(e.options,[]),a=0;a<t.length;a++)t[a].target&&(r.id,t[a].target[0]);for(a=0;a<t.length;a++){var s=!0;t[a].target&&(s=!1,r.id===t[a].target[0]&&(s=!0));var l=t[a].op.ops.split("-");s&&l.includes("air")&&(o.borderObj={color:"#1abc9c",radius:"0rem",width:"3px"},o.color="#1abc9c",o.background="transparent"),s&&l.includes("round")&&(l.includes("air")?o.borderObj={width:"4px",radius:"0.7rem",color:"#1abc9c"}:o.borderObj={width:"0px",radius:"0.7rem",color:"#1abc9c"}),s&&l.includes("full")&&(o.background="#3498db",o.borderObj&&o.borderObj.radius&&(o.borderObj.radius="0.3rem"),o.color="white"),s&&l.includes("pill")&&(o.background="#3498db",o.borderObj.radius="9999px",o.color="white"),s&&l.includes("hover")&&(o.hover={color:"#1abc9c",background:"orange"}),i.push((new n.N).set(o))}return i}}],null&&i(e.prototype,null),t&&i(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},2234:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{H:()=>Des});var _lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(849),_lib_morph_node_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5594),_lib_webmcp_adapter_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9110),_layout_animator_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(9873),_layout_base_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9793),_layout_text_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6131),_layout_image_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9383),_layout_link_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(7108),_layout_flex_row_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(3050),_layout_nav_factor_custom_div_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8807),_layout_new_nav_bar_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3440),_layout_side_bar_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5367),_layout_side_nav_bar_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(7879),_layout_free_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7258),_layout_audio_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3420),_layout_progress_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(827),_layout_center_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1873),_layout_code_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(2789),_layout_stack_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(7926),_layout_container_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(153),_layout_meta_adder_js__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(1980),_layout_table_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(6182),_layout_dropdown_2025_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(3665),_layout_modal_2025_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(3243),_layout_text_field_js__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(3014),_layout_flex_card_js__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(9310),_layout_wrap_js__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(1632),_layout_flex_grid_js__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__(5860),_layout_zoom_card_js__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__(4550),_layout_simple_bar_js__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__(9290),_layout_beta_desktop_bar_js__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__(2387),_layout_beta_mobile_bar_js__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__(9521),_layout_multiswitcher_js__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__(1236),_layout_spacer_js__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__(3180),_layout_horizontal_scroller_js__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__(7135),_layout_checkbox_js__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__(1557),_layout_video_js__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__(2689),_layout_ulist_js__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__(4617),_layout_slider_2025_js__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__(1353),_layout_form_components_floating_input_js__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__(3257),_layout_form_components_range_js__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__(5613),_layout_form_components_radio_js__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__(1371),_layout_form_components_picker_js__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__(2588),_layout_form_components_image_picker_js__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__(9932),_layout_form_components_data_list_js__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__(6679),_layout_form_components_form_js__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__(9668),_layout_button_js__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__(8424),_lib_link_getter_js__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__(2027),_lib_card_getter_js__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__(4753),_layout_grid_switcher_js__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__(7698),_layout_polygon_js__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__(9800),_layout_circle_js__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__(5632);function _construct(e,t,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&_setPrototypeOf(o,r.prototype),o}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Des=function(){function Des(){_classCallCheck(this,Des),this.items=[],this.options=[],this.code=[],this.ready2Render=[],this.stor={text:{miami:{code:'new Text("Hello").set({fluidc: "S3", color: "orange"})'},base:{code:'new Text("Hello").set({fluidc: "S3", color: "orange"})'},nepal:{code:'new Text("Hello").set({fluidc: "S3", color: "#2ECC71", font: "Helvetica Neue"})'},patagonia:{code:'new Text("Hello").set({fluidc: "S3", color: "#3498DB", font: "DIN Alternate"})'}},complexa:{code:"new Wrapper()\n .set({...}) // Rest of the code omitted for brevity"},complex:{code:'new Wrapper() \n\t.set({\n\t\t\n\t\tresponsive: {\n\t\t\tranges: ["700px", "1200px", "1400px"],\n\t\t\tsequence: "col-row-col"\n\t\t}\n\t})\n\t.add([\n\t\tnew Image("img/wix.jpeg").set({\n\t\t\twidth: "100%",\n\t\t\theight: "200px",\n objectFit: "cover"\n\t\t}),\n\n new Wrapper().set({\n responsive: {\n\t\t\tranges: ["700px", "1200px", "1400px"],\n\t\t\tsequence: "col-col-row"\n\t\t}\n }).add([\n new Text("Running in the desert").set({\n size: "S3",\n font: "Arial",\n color: "orange"\n }),\n\n new Text("This is example content").set({\n exact: "1rem",\n font: "Arial"\n }),\n\n\n new Image("img/wix.jpeg").set({\n width: "100%",\n height: "300px",\n objectFit: "cover"\n })\n ])\n\t])'},ops:{miami:{blast:{code:'stroke: {range:["0px","3000px"], op:{name:"blast",color:"orange",width:"3px"}}'},blastFun:function(e){return'stroke: {range:["0px","3000px"], op:{name:"blast",color:"orange",width:"'.concat(e,'px"}}')}},nepal:{blast:{code:'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#2ECC71",width:"3px"}}'},blastFun:function(e){return'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#2ECC71",width:"'.concat(e,'px"}}')}},patagonia:{blast:{code:'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#1abc9c",width:"3px"}}'},blastFun:function(e){return'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#1abc9c",width:"'.concat(e,'px"}}')}}},link:{miami:{code:'new Link("Link").set({text: "Hello", url: "#a", background: "", color: "orange", hover: {color: "white", background: "orange", animation: 0.6}, borderObj: {color: "orange", width: "3px", radius: "0.7rem"}, pad: { sides: ["all"], value: "0.6rem" }, mar: { "t": 0.8rem }, radius: "0.4rem"})'},base:{code:'new Link("Link").set({text: "Hello", url: "#ai", background: "#3498db", pad: [{lr: "0.5rem", tb: "1rem"}], radius: "0.4rem", color: "white"})'},nepal:{code:'new Link("Link").set({text: "Hello", url: "#a", background: "#2ECC71", pad: { sides: ["all"], value: "0.6rem" }, mar: { sides: ["top", "bottom"], value: "0.8rem" }, hover: {color: "#2ECC71", background: "white", border: true, animation: 0.3}, color: "white"})'},patagonia:{code:'new Link("Link", "#a").set({text: "Hello", url: "#a", background: "#1ABC9C", pad: { sides: ["all"], value: "0.6rem" }, mar: { sides: ["top", "bottom"], value: "0.8rem" }, hover: {color: "#2ECC71", background: "white", border: true, animation: 0.3}, color: "white"})'}},grid:{code:' new AreaSwitcher()\n .set({\n gap: "1rem"\n })\n .react([{\n at: "0px",\n template: [\n "eeeeee",\n "eeeeee",\n "abbbbb",\n "abbbbb",\n "abbbbb",\n "cccccc",\n "cccccc",\n "dddddd"\n ]\n },\n\n {\n at: "900px",\n color: "orange",\n template: [\n "aaaccc",\n "aaaccc",\n "bbbbbb",\n "dddddd",\n "eeeeee"\n ]\n },\n\n {\n at: "1200px",\n color: "purple",\n template: [\n "cccaaa",\n "cccaaa",\n "bbbbbb",\n "dddddd",\n "eeeeee"\n ]\n },\n ])\n .add([\n new Wrapper().set({\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem"\n }).add([\n new Text("NEW PRODUCT").set({\n exact: "1rem",\n font: "Oswald",\n width: "100%"\n }),\n new Text("Feel").set({\n fluidc: "S2",\n font: "Oswald",\n width: "100%",\n color: "black"\n }),\n new Text("Speed").set({\n exact: "7rem",\n font: "Oswald",\n width: "100%",\n color: "#3498db"\n }),\n ]),\n\n new Wrapper().set({\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem"\n }).add([\n new Text("TOP QUALITY").set({\n exact: "1rem",\n font: "Oswald",\n width: "100%"\n }),\n new Text("Amazing animals").set({\n fluidc: "S2",\n font: "Oswald",\n width: "100%",\n color: "black"\n }),\n\n new Text("Seals are intelligent, agile marine mammals found in oceans around the world, known for their streamlined bodies, flippers, and ability to thrive both in water and on land. Belonging to the pinniped family, they are divided into true seals, which lack external ears, and eared seals like sea lions, which are more mobile on land. Seals feed primarily on fish and squid, using their sensitive whiskers to detect prey underwater, and can dive to great depths while holding their breath for extended periods. Adapted to cold environments with thick blubber for insulation, seals play a crucial role in marine ecosystems but face threats from climate change, pollution, and human activity, making conservation efforts increasingly important.")\n .set({\n font: "Arial",\n exact: "1.3rem"\n })\n\n ]),\n\n new Wrapper().set({\n radius: "1.7rem",\n overflow: "hidden"\n\n }).add([\n\n new Image("https://cdn.pixabay.com/photo/2017/02/09/18/40/seal-2053165_640.jpg", "exact").set({\n width: "100%",\n height: "420px",\n minHeight: "100px",\n objectFit: "cover"\n\n })\n ]),\n\n new Wrapper().set({\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem",\n }).add([\n new Text("Welcome seals").set({\n fluidc: "S3",\n font: "Oswald",\n color: "black"\n }),\n \n ]),\n new Wrapper().set({\n mc: true,\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem",\n\n }).add([new Text("Top line").set({\n font: "Arial",\n exact: "1.3rem"\n }), ]),\n ])'},flexRow:function(e){return{image:{code:'new FlexRow().set({border: ["all", "3px"], colat: "600px"}).items([new Image(...), new Image(...), new Image(...)])'},text:{code:'new FlexRow().set({}).items([\n\nnew Text("This").set({\n size: "S3"\n}), \n\nnew Text("is").set({\n size: "S3",\n text: "Hello"\n}), \n\nnew Text("row.").set({\n size: "S3",\n text: "Hello"\n})\n \n])'}}},tabSpace:function(e){return" ".repeat(e)}}}return _createClass(Des,[{key:"at",value:function(e){Array.isArray(this.options)||(this.options=[]),Array.isArray(this.protoOptions)||(this.protoOptions=[]);var t=Des.cloneNodes([e])[0];return this.options.push(t),this.protoOptions.push(t),this}},{key:"nodes",value:function(e){return this.options=Des.cloneNodes(e),this.protoOptions=Des.cloneNodes(e),this}},{key:"getElType",value:function(e){return"p"===e?"S6":"S".concat(e.substr(1))}},{key:"filtero",value:function(e,t,r){return r.filter(function(t){return t.op.name===e}).filter(function(e){return!e.target||e.target.includes(t)})[0]}},{key:"add",value:function add(arr){var _this=this;this._elements=Array.isArray(arr)?arr:[],this.css=[],this.elCSS=[],this.elHTML=[];var customOptions=this.options;customOptions.forEach(function(e){"radial"===e.direction&&(e.gradient="radial-gradient(orange, green)")}),arr=[].concat(_toConsumableArray(arr.filter(function(e){return e&&("nav"===e.type||"sideNav"===e.type)})),_toConsumableArray(arr.filter(function(e){return!e||"nav"!==e.type&&"sideNav"!==e.type})));for(var _loop=function _loop(){var el=arr[i],ela=null,ops=["blast","gradient","shadow","filter","animation","transform","span"],replacementObjects=[{op:{name:"blast",color:"green",width:"1px"}},{op:{name:"gradient",gradient:"linear-gradient(orange, green)"}},{op:{name:"shadow",color:"#1abc9c",steps:3,colors:["orange","green","yellow"]}},{op:{name:"filter",filter:"grayscale(0.7)"}},{op:{name:"animation",color:"green",width:"1px",fireAt:"inview",keyframesOpen:[{transform:"translate(100%, 0%)",opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, 0%)",opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}},{op:{name:"transform",values:["ty:-20px","scale(3)","rotate(3deg)","skew(3deg, 0deg)","perspective(100px)","matrix(1, 0, 0, 1, 50, 50)"]}},{op:{name:"span",parts:[{text:"The first time",style:{italic:!0,arrpad:{sides:["left"],value:"3rem"},stroke:{range:["950px","1000px"],op:{name:"blast",background:["header","button"],color:"yellow",width:"1px"}}}},{text:"We went to the Moon",style:{}}]}}];for(q=0;q<ops.length;q++){var blastIDs=customOptions.map(function(e){return e.op}).map(function(e,t){return e===ops[q]?t:""}).filter(String);if(blastIDs.length>0)for(d=0;d<blastIDs.length;d++){var index=blastIDs[d],target=customOptions[index].target,range=customOptions[index].range,filter=customOptions[index].filter,gradient=customOptions[index].gradient,color=customOptions[index].color,width=customOptions[index].width,as=Des.cloneNodes([replacementObjects[q]])[0];as.target=target,null!=range&&(as.range=range),null!=filter&&(as.op.filter=filter),null!=gradient&&(as.op.gradient=gradient),"blast"===ops[q]&&(null!=color&&(as.op.color=color),null!=width&&(as.op.width=width)),customOptions[index]=as}}for(q=0;q<customOptions.length;q++){var option=customOptions[q].op.name,cool=_this.protoOptions[q].style||"default",duration=_this.protoOptions[q].duration||"default";if("transform"===option){var opts=[],_customOptions$q,_customOptions$q2,_customOptions$q3;opts="SOLARIUM"===cool?["scale(3)"]:"WAVE"===cool?["skew(15deg, 0deg)","tx:50px","rotate(10deg)","scale(1.1)"]:"CUBE-SPIN"===cool?["perspective(700px)","scale(0.9)"]:"TORNADO-SWITCH"===cool?["rotate(720deg)","scale(0.8)","tx:30px","ty:-50px","tz:-80px"]:"LASER-SWEEP"===cool?["tx:100px","opacity:0.2","scale(1.2, 1.0)"]:"TORNADO-TWIST"===cool?["rotate(720deg)","scale(0.8)","tx:30px","ty:-50px","skew(10deg, 0deg)"]:"JELLY-WOBBLE"===cool?["scale(1.2, 0.8)","rotate(5deg)","ty:-10px","skew(5deg, 0deg)"]:"DRUNKEN-SWAY"===cool?["rotate(15deg)","tx:20px","ty:-10px","skew(10deg, 5deg)"]:"FLAME-FLICKER"===cool?["scale(1.1, 0.9)","rotate(-5deg)","ty:5px","opacity:0.7"]:"PHANTOM-SHIFT"===cool?["tx:15px","ty:-5px","opacity:0.5","skew(5deg, 5deg)"]:"RUBBER-BOUNCE"===cool?["scale(1.3, 0.8)","skew(10deg, 0deg)","ty:-20px"]:"ASTEROID-CRASH"===cool?["tx:-80px","ty:100px","rotate(45deg)","scale(0.7)","opacity:0.5"]:"CYBER-GLITCH"===cool?["tx:5px","ty:-5px","rotate(3deg)","opacity:0.6","scale(1.05)"]:"BUBBLE-POP"===cool?["scale(1.5)","opacity:0.3","ty:-20px"]:"SUPERNOVA-BURST"===cool?["scale(2)","opacity:0","tx:50px","ty:-50px"]:"GRAVITY-DROP"===cool?["ty:100px","scale(0.8)","rotate(10deg)","skew(0deg, 10deg)"]:"LASER-SWEEP"===cool?["tx:100px","opacity:0.2","scale(1.2, 1.0)"]:"VORTEX-SINK"===cool?["rotate(-360deg)","scale(0.5)","ty:50px"]:"SHOCKWAVE"===cool?["scale(1.7)","opacity:0.4","skew(5deg, 5deg)"]:["ty:20px","tx:30px","rotate(3deg)","skew(40deg, 0deg)"],customOptions[q].op={name:"transform",values:opts,duration};var key="style",dur="duration";if(null!==(_customOptions$q=customOptions[q])&&void 0!==_customOptions$q&&_customOptions$q.op&&key in customOptions[q].op&&delete customOptions[q].op[key],null!==(_customOptions$q2=customOptions[q])&&void 0!==_customOptions$q2&&_customOptions$q2.op&&dur in customOptions[q].op&&delete customOptions[q].op[dur],null!==(_customOptions$q3=customOptions[q])&&void 0!==_customOptions$q3&&_customOptions$q3.op.values){var _customOptions$q4,values="values";null!==(_customOptions$q4=customOptions[q])&&void 0!==_customOptions$q4&&_customOptions$q4.op.values}}}function replaceMedium(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];if("object"===_typeof(e[n])&&null!==e[n])replaceMedium(e[n]);else if("string"==typeof e[n])switch(e[n].toLowerCase()){case"medium":e[n]="6s-ease-in-out";break;case"fast":e[n]="3s-ease-in-out";break;case"slow":e[n]="9s-ease-in-out";break;case"default":delete e[n]}}}replaceMedium(customOptions);var matchEls=["h1","h2","h3","h4","h5","h6","p"].includes(el.type)||"img"===el.type||"a"===el.type;matchEls?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i}),ela.toCode?_this.code.push(ela.toCode().join("")):_this.code.push(ela),_this.ready2Render.push(ela),ela=ela.render()):"table"===el.type?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela.toCode())):"slider"===el.type?_this.code.push(' \nlet texts = [\n\nnew Text("One").set({size: "S1", color: "#1abc9c", font: "Arial"}),\n /*new Image().set({\n url: "https://image.datart.cz/foto/500/7/0/8/product_7766807.jpg",\n width: "400px",\n height: "auto"\n }),*/\n\n new Text("Two").set({size: "S1", color: "#1abc9c", font: "Arial"}),\n \n new Text("Three").set({size: "S1", color: "#1abc9c", font: "Arial"}),\n\n new Text("Four").set({size: "S1", color: "#1abc9c", font: "Arial"}),\n];\n\nnew Slider(texts, null, { tintColor: "#e74c3c", inactiveColor: "#ccc" })\n \n'):"hslider"===el.type?_this.code.push('\n new HScroller()\n .seto({\n height: "300px",\n speed: 1.0 // the bigger the slower\n })\n .add([\n new Text("First").set({size: "S1", pad: [{"a": 40}] }),\n new Text("Second").set({size: "S1", pad: [{"a": 40}] }),\n new Text("Third").set({size: "S1", pad: [{"a": 40}] })\n ])\n '):"grid"===el.type?_this.code.push(_this.stor.grid.code):"modal"===el.type?_this.code.push('new Code()\n .set({\n pad: [\n { l: 30 },\n ], \n mar: [\n { a: 30 },\n ], \n class: "language-js",\n code: `\n // You need to copy and paste this example\n\n\n import {Animator} from "../layout/animator.js";\n import {Text} from "../layout/text.js";\n import {Modal} from "../layout/modal-2025.js";\n import {Stack} from "../layout/stack.js";\n import {Image} from "../layout/image.js";\n import {FlexRow} from "../layout/flex-row.js";\n import {Button} from "../layout/button.js";\n import {Spacer} from "../layout/spacer.js";\n import {Wrapper} from "../layout/container.js";\n \n \n let firstLong = "Apple today announced that the company has surpassed a 60 percent reduction in its global greenhouse gas emissions compared to 2015 levels, as part of its Apple 2030 goal to become carbon neutral across its entire footprint in the next five years. The company achieved several other major environmental milestones, including the use of 99 percent recycled rare earth elements in all magnets and 99 percent recycled cobalt in all Apple-designed batteries.1 Apple shared this and other progress in its annual Environmental Progress Report, published today.\n “We’re incredibly proud of the progress we’re making toward Apple 2030, which touches every part of our business,” said Lisa Jackson, Apple’s vice president of Environment, Policy, and Social Initiatives. “Today, we’re using more clean energy and recycled materials to make our products than ever before, we’re preserving water and preventing waste around the world, and we’re investing big in nature. As we get closer to 2030, the work gets even harder — and we’re meeting the challenge with innovation, collaboration, and urgency.\n Apple’s 2030 strategy prioritizes cutting greenhouse gas emissions by 75 percent compared with its 2015 baseline year, before applying high-quality carbon credits to balance the remaining emissions. Last year, Apple’s comprehensive efforts to reduce its carbon footprint — including the continued transition of its supply chain to renewable electricity and designing products with more recycled materials — avoided an estimated 41 million metric tons of greenhouse gas emissions.";\n \n let elements = [\n new Stack()\n .setup({})\n .add([\n new Image("https://pbs.twimg.com/media/DwYvbCBVAAEKY_R.jpg").set({}),\n \n new FlexRow().set({aligns: "start"}).items([\n \n new Button("×")\n \n .set({\n fluidc: "S3",\n onTap: () => modal.close(),\n frame: { width: 80, height: 80 },\n color: "white",\n background: "none"\n }),\n \n new Spacer(true),\n ])\n ]),\n \n \n new Text("Samuel Suresh")\n .set({\n color: "#00ae56",\n font: "SF Pro Display",\n fluidc: "S2",\n pad: [{"tl": 20}]\n }),\n \n \n new Text("Studying Science and Business, Western Sydney University, class of 2022")\n .set({\n font: "Arial",\n fluidc: "S6",\n pad: [{"l": 20}]\n }),\n \n \n new Text(firstLong)\n .set({\n font: "Arial",\n fluidc: "S6",\n pad: [{"l": 20}]\n }), \n ];\n \n \n let wrapper = new Wrapper()\n .set({})\n .add(elements);\n \n \n let modal = new Modal();\n modal\n .set({\n width: "600px", \n background: "#469d73cc",\n close: true\n })\n .add([wrapper])\n .render("#res"); \n \n \n new Button("Wow")\n .set({\n fluidc: "S3",\n onTap: () => modal.show()\n })\n .render("#res");\n \n `\n })'):"row"===el.type?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela.toCode())):"cards"===el.type?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela)):"wrap"===el.type?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela.toCode()),_this.ready2Render.push(ela)):"responsive"===el.type?_this.code.push(_this.stor.complex.code):"free"===el.type||"nav"===el.type||"sideNav"===el.type||"dropdown"===el.type?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela.toCode()),_this.ready2Render.push(ela),ela=ela.render()):(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),ela.toCode?_this.code.push(ela.toCode()):_this.code.push(ela),_this.ready2Render.push(ela),ela=eval(ela).render())},q,d,q,i=0;i<arr.length;i++)_loop();return this}},{key:"toTextArea",value:function(e){var t=e||"#mount",r=document.createElement("textarea");r.style.width=300,r.style.height=300,r.setAttribute("id","elements"),r.value=this.code.join(""),this.target="#elements";var n=document.createElement("pre"),o=document.createElement("code"),i=this.code.map(function(e){return"".concat(e,'.render("').concat(t,'"); \n \n')});return this.code=i,o.textContent=this.code,n.appendChild(o),n.setAttribute("class","nonLayout"),document.body.appendChild(n),document.body.appendChild(r),this._codeEl=r,this._preEl=n,this}},{key:"set",value:function(e){if("undefined"!=typeof globalThis&&!0===globalThis.NODALITY_EMIT){var t=this.code.map(function(t){return"".concat(t,'.render("').concat(e&&e.mount||"#mount",'")')});return globalThis.__NODALITY_EMITTED__=t,this}this.toTextArea(e&&e.mount),this._codeEl.style.display="none",this._preEl.style.display="block",!1===e.elements&&(this._preEl.style.display="none"),!1===e.layout&&null!=document.querySelector("#layoutPre")&&(document.querySelector("#layoutPre").style.display="none"),!1===e.code&&(this._preEl.style.display="none");for(var r={Text:_layout_text_js__WEBPACK_IMPORTED_MODULE_5__.E,Image:_layout_image_js__WEBPACK_IMPORTED_MODULE_6__._,Link:_layout_link_js__WEBPACK_IMPORTED_MODULE_7__.N,FlexRow:_layout_flex_row_js__WEBPACK_IMPORTED_MODULE_8__.Y,UINavBar:_layout_new_nav_bar_js__WEBPACK_IMPORTED_MODULE_10__.X,Free:_layout_free_js__WEBPACK_IMPORTED_MODULE_13__.b,Audio:_layout_audio_js__WEBPACK_IMPORTED_MODULE_14__.f,Progress:_layout_progress_js__WEBPACK_IMPORTED_MODULE_15__.k,Center:_layout_center_js__WEBPACK_IMPORTED_MODULE_16__.o,Code:_layout_code_js__WEBPACK_IMPORTED_MODULE_17__.C,Stack:_layout_stack_js__WEBPACK_IMPORTED_MODULE_18__.B,Wrapper:_layout_container_js__WEBPACK_IMPORTED_MODULE_19__.m,MetaAdder:_layout_meta_adder_js__WEBPACK_IMPORTED_MODULE_20__.W,Table:_layout_table_js__WEBPACK_IMPORTED_MODULE_21__.X,Dropdown:_layout_dropdown_2025_js__WEBPACK_IMPORTED_MODULE_22__.m,Modal:_layout_modal_2025_js__WEBPACK_IMPORTED_MODULE_23__.a,TextField:_layout_text_field_js__WEBPACK_IMPORTED_MODULE_24__.A,Card:_layout_flex_card_js__WEBPACK_IMPORTED_MODULE_25__.Z,Wrap:_layout_wrap_js__WEBPACK_IMPORTED_MODULE_26__.B,FlexGrid:_layout_flex_grid_js__WEBPACK_IMPORTED_MODULE_27__.M,ZoomCard:_layout_zoom_card_js__WEBPACK_IMPORTED_MODULE_28__.U,Switcher:_layout_multiswitcher_js__WEBPACK_IMPORTED_MODULE_32__.i,MobileBar:_layout_beta_mobile_bar_js__WEBPACK_IMPORTED_MODULE_31__.m,DesktopBar:_layout_beta_desktop_bar_js__WEBPACK_IMPORTED_MODULE_30__.C,SideNav:_layout_side_nav_bar_js__WEBPACK_IMPORTED_MODULE_12__.f,Spacer:_layout_spacer_js__WEBPACK_IMPORTED_MODULE_33__.h,HScroller:_layout_horizontal_scroller_js__WEBPACK_IMPORTED_MODULE_34__.J,Polygon:_layout_polygon_js__WEBPACK_IMPORTED_MODULE_50__.t,Circle:_layout_circle_js__WEBPACK_IMPORTED_MODULE_51__.j,UList:_layout_ulist_js__WEBPACK_IMPORTED_MODULE_37__.e},n={FloatingInput:_layout_form_components_floating_input_js__WEBPACK_IMPORTED_MODULE_39__.l,Range:_layout_form_components_range_js__WEBPACK_IMPORTED_MODULE_40__.Q,RadioGroup:_layout_form_components_radio_js__WEBPACK_IMPORTED_MODULE_41__.z,Picker:_layout_form_components_picker_js__WEBPACK_IMPORTED_MODULE_42__.L,FilePickera:_layout_form_components_image_picker_js__WEBPACK_IMPORTED_MODULE_43__.I,DataList:_layout_form_components_data_list_js__WEBPACK_IMPORTED_MODULE_44__.T,Base:_layout_base_js__WEBPACK_IMPORTED_MODULE_4__.C,Form:_layout_form_components_form_js__WEBPACK_IMPORTED_MODULE_45__.l,Button:_layout_button_js__WEBPACK_IMPORTED_MODULE_46__.$,Slider:_layout_slider_2025_js__WEBPACK_IMPORTED_MODULE_38__.A,Video:_layout_video_js__WEBPACK_IMPORTED_MODULE_36__.C,Checkbox:_layout_checkbox_js__WEBPACK_IMPORTED_MODULE_35__.S},o={ElementMapper:_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I,Animator:_layout_animator_js__WEBPACK_IMPORTED_MODULE_3__.y,LinkStyler:_lib_link_getter_js__WEBPACK_IMPORTED_MODULE_47__.a,CardGen:_lib_card_getter_js__WEBPACK_IMPORTED_MODULE_48__.Z,AreaSwitcher:_layout_grid_switcher_js__WEBPACK_IMPORTED_MODULE_49__.t},i=_objectSpread(_objectSpread(_objectSpread({},r),n),o),a=0;a<this.code.length;a++){var s=this.code[a];_construct(Function,_toConsumableArray(Object.keys(i)).concat([s])).apply(void 0,_toConsumableArray(Object.values(i)))}try{var l=document.querySelector(e&&e.mount||"#mount");this._morphs=(0,_lib_morph_node_js__WEBPACK_IMPORTED_MODULE_1__.A)(l,this._elements,this.protoOptions)}catch(e){console.warn("[nodality] morph node skipped:",e)}try{this._agentSurface=(0,_lib_webmcp_adapter_js__WEBPACK_IMPORTED_MODULE_2__.Ko)({mount:document.querySelector(e&&e.mount||"#mount"),elements:this._elements,nodes:this.protoOptions,morphs:this._morphs})}catch(e){console.warn("[nodality] agent surface skipped:",e)}}}],[{key:"cloneNodes",value:function(e){if(!Array.isArray(e))return[];try{if("function"==typeof structuredClone)return structuredClone(e)}catch(e){}var t=function(e){if(Array.isArray(e))return e.map(t);if(e&&"object"===_typeof(e)){var r={};for(var n in e)r[n]=t(e[n]);return r}return e};return e.map(t)}}])}()},2387:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{C:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).navbar=document.createElement("nav"),e.navbar.classList.add("desktop-navbar"),e.navbarHeader=document.createElement("div"),e.navbarHeader.classList.add("navbar-header"),e.brand=document.createElement("div"),e.brand.classList.add("navbar-brand"),e.navContent=document.createElement("div"),e.navContent.classList.add("navbar-content"),e.navContent.style.width="100%",e.navContent.style.alignItems="center",e.navbarHeader.appendChild(e.brand),e.navbarHeader.appendChild(e.navContent),e.navbar.appendChild(e.navbarHeader),e.res=e.navbar,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,i=[{key:"set",value:function(e){return this.obj=e,this.setStyles(e),e.background&&(this.res.style.backgroundColor=e.background),e.brand&&this.setBrand(e.brand),e.radius&&(this.res.style.borderRadius=e.radius),e.pad&&this.pad(e.pad),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.mar&&this.mar(e.mar),e.maxHeight&&(this.res.style.maxHeight=e.maxHeight),e.hamburgerColour&&(this.hamburgerColour=e.hamburgerColour),this}},{key:"setStyles",value:function(){var e;this.navbar.style.display="flex",this.navbar.style.flexDirection="column",this.navbar.style.padding="1rem",this.navbar.style.backgroundColor=null!==(e=this.obj.background)&&void 0!==e?e:"#333",this.navbarHeader.style.display="flex",this.navbarHeader.style.alignItems="center",this.navbarHeader.style.justifyContent="space-between",this.navbarHeader.style.width="100%",this.brand.style.fontSize="1.5rem",this.navContent.style.display="flex",this.navContent.style.gap="1rem"}},{key:"setBrand",value:function(e){return this.brand.innerHTML="",this.brand.appendChild(e),this}},{key:"add",value:function(e){this.items=e;for(var t=0;t<e.length;t++)e[t],this.navContent.appendChild(e[t].render());return this}},{key:"toCode",value:function(){var e=this.items.map(function(e){return e.toCode()}).flatMap(function(e){return e});return"new DesktopBar().set(".concat(this.removeQuotesFromFirstWord(JSON.stringify(this.obj)),").add([\n ").concat(e.join(","),"\n\n \n \n\n ])")}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.navbar),this.navbar}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},2588:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{L:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).el=null,e.file=null,e.selected="",e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,i=[{key:"setup",value:function(e,t){document.createElement("div");var r=document.createElement("select");r.setAttribute("type","file"),r.setAttribute("name",t),r.addEventListener("change",function(){r.options[r.selectedIndex].value});for(var n=0;n<e.length;n++)r.appendChild(this.addNode(e[n][0],e[n][1]));return this.el=r,this.res=r,this}},{key:"set",value:function(e){return this.options=e,e.items&&this.setup(e.items,e.name),e.arrayPadding&&this.arrayPadding(e.arrayPadding.sides,e.arrayPadding.value),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.radius&&(this.el.style.borderRadius=e.radius),e.background&&(this.el.style.background=e.background),this.commonMethods(e),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.el.style.paddingLeft=t),e.includes("right")&&(this.el.style.paddingRight=t),e.includes("top")&&(this.el.style.paddingTop=t),e.includes("bottom")&&(this.el.style.paddingBottom=t),e.includes("all")&&(this.el.style.padding=t),this}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.el.style.marginLeft=t),e.includes("right")&&(this.el.style.marginRight=t),e.includes("top")&&(this.el.style.marginTop=t),e.includes("bottom")&&(this.el.style.marginBottom=t),e.includes("all")&&(this.el.style.margin=t),this}},{key:"addNode",value:function(e,t){var r=document.createElement("option");r.setAttribute("value",e);var n=document.createTextNode(t);return r.appendChild(n),r}},{key:"padding",value:function(e){return this.el.style.padding=e,this}},{key:"font",value:function(e){return this.el.style.fontFamily=e,this}},{key:"margin",value:function(e){return this.el.style.margin=e,this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new Picker().set(".concat(e,")")]}},{key:"rounded",value:function(e){return this.el.style.borderRadius="4px",this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.el.style.fontSize="3rem":e.el.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"render",value:function(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y);"undefined"!=typeof window&&(window.Picker=c)},2689:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{C:()=>c});var c=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).url=e,r.res=null,r.setup(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"setup",value:function(){this.res=document.createElement("video"),this.res.setAttribute("src",this.url),this.res.setAttribute("controls","controls")}},{key:"set",value:function(e){return this.options=e,e.radius&&(this.res.style.borderRadius=e.radius),e.width&&(this.res.style.width="".concat(e.width)),e.opacity&&(this.res.style.opacity=e.opacity),this}},{key:"size",value:function(e){return this.res.style.width=e,this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return['new Video("'.concat(this.url,'").set(').concat(e,")")]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},2789:(e,t,r)=>{r.d(t,{C:()=>f});var n=r(9873),o=r(1382);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(null,arguments)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var f=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)).res=document.createElement("code"),e.pre=document.createElement("pre"),e.res.style.background="#18232e",e.res.style.display="block",e.res.style.width="auto",e.res.style.height="auto",e.res.style.borderRadius="1rem",e.pre.appendChild(e.res),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,n=[{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"toCode",value:function(){var e=this.options;Object.keys(e).forEach(function(t){return void 0===e[t]&&delete e[t]});var t=JSON.stringify(e,null,2).replace((0,o._H)(),"$1:").replace(/"([^"]+)"/g,function(e,t){return t.includes("\n")||t.includes("'")||t.includes('"')?"`"+t.replace(/`/g,"\\`")+"`":'"'.concat(t,'"')});return"new Code().set(".concat(t,")")}},{key:"callReact",value:function(e){this.options=e;var r,n,o,a=[],s=e.transform&&"object"===i(e.transform);if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||s){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&(r=t,n=this,"function"==typeof(o=c(u(1&3?r.prototype:r),"setAny",n))?function(e){return o.apply(n,e)}:o)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var l=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,s?e.transform:void 0];l=l.filter(function(e){return null!=e});for(var d=0;d<l.length;d++)a.push({range:l[d].range,log:l[d].op.name,target:l[d].target,op:l[d].op});var f=[];e.borderObj&&f.push("border"),e.background&&f.push("background"),e.mar&&f.push("margin"),e.animation&&f.push("animation"),e.span&&f.push("span"),this.chainReact(a,e.id,f)}}},{key:"set",value:function(e){return e.code&&(this.pre.children[0].innerHTML=e.code),e.class&&this.pre.children[0].setAttribute("class","".concat(e.class)),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.resprop&&this.resprop(e.resprop),e.width&&(this.res.style.width=e.width),e.background&&(this.res.style.background=e.background),e.color&&(this.res.style.color=e.color),e.borderRadius&&(this.res.style.background=e.borderRadius),e.borderObj&&(this.res.style.border="".concat(e.borderObj.width," solid ").concat(e.borderObj.color),this.res.style.borderRadius="".concat(e.borderObj.radius)),this.callReact(e),this}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.pre),this.res}}],n&&a(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},3014:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{A:()=>c});var c=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).text=e,r.res=null,r.valid=!1,r.setup(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,i=[{key:"setup",value:function(){var e=document.createElement("input");return this.res=e,this.res.style.padding=0,this.res.style.margin=0,this.res.style.padding=".4rem .75rem",this.res.style.fontSize="1rem",window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="100%"),this}},{key:"set",value:function(e){var t;return this.options=e,this.res.setAttribute("type",null!==(t=e.type)&&void 0!==t?t:"text"),e.placeholder&&(this.res.placeholder=e.placeholder),e.name&&this.res.setAttribute("name",e.name),e.id&&this.res.setAttribute("id",e.id),e.required&&this.res.setAttribute("required",""),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.maxWidth&&(this.res.style.maxWidth=e.maxWidth),e.exact&&(this.res.style.fontSize=e.exact),e.radius&&this.round(e.radius),e.color&&(this.res.style.color=e.color),e.background&&(this.res.style.background=e.background),e.font&&(this.res.style.fontFamily=e.font),e.weight&&(this.res.style.fontWeight=e.weight),e.bold&&(this.res.style.fontWeight="bold"),e.theme&&this.theme(e.theme),this.commonMethods(e),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return["new TextField().set(".concat(e,")")]}},{key:"setValid",value:function(e,t){return this.res.style.border=e?"6px solid green":"6px solid red",0===t.length&&(this.res.style.border="none"),this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="3rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"value",value:function(e){return this.res.setAttribute("value",e),this}},{key:"password",value:function(){return this.res.setAttribute("type","password"),this}},{key:"number",value:function(){return this.res.setAttribute("type","number"),this}},{key:"process",value:function(e){return this.res.value}},{key:"size",value:function(e){return this.res.style.fontSize=e,this}},{key:"em",value:function(e){return this.res.style.fontSize="".concat(e,"em"),this}},{key:"weight",value:function(e){return this.res.style.fontWeight=e,this}},{key:"bold",value:function(){return this.res.style.fontWeight="bold",this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"placeholder",value:function(e){return this.res.setAttribute("placeholder",e),this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"onChange",value:function(e){var t=this;return this.res.value,this.res.addEventListener("input",function(r){e(t.res.value)}),this}},{key:"render",value:function(e){return e?(document.querySelector(e).appendChild(this.res),this.res):this.res}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},3050:(e,t,r)=>{r.d(t,{Y:()=>h});var n=r(9873),o=r(1382);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},d.apply(null,arguments)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var h=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=f(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}(this,t)).code=[],n.saveEl=r,n.frs=e,n.res=null,n.setup(),n.responsive(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,n=[{key:"getType",value:function(){return"FlexRowLayoutElement"}},{key:"set",value:function(e){this.options=e;var t=e;return t.onTap&&this.onTap(t.onTap),t.id&&this.res.setAttribute("id",t.id),t.position&&(this.res.style.position=t.position),void 0!==t.top&&(this.res.style.top=t.top),e.id&&this.res.setAttribute("id",e.id),this.commonMethods(t),e.padding&&this.pad([{a:e.padding}]),e.background&&(this.res.style.backgroundColor="#ecf0f1",this.res.style.cornerRadius="#3rem"),e.alignTo&&(this.res.style.justifyContent=e.alignTo),e.background&&(this.res.style.backgroundColor=e.background),e.justify&&(this.res.style.justifyContent=e.justify),e.border&&("top"===e.border[0]&&(this.res.style.borderTop="".concat(e.border[1]," solid white")),"all"===e.border[0]&&(this.res.style.border="".concat(e.border[1]," solid orange"))),e.borderObj&&(this.borderObj(e.borderObj),JSON.stringify(e.borderObj)),e.width&&(this.res.style.width=e.width),e.height&&(this.res.style.height=e.height),e.gap&&(this.res.style.gap=e.gap),e.align&&(JSON.stringify(e.align),this.res.style.alignItems="flex-start",this.res.style.alignItems="flex-start"),e.wrap&&this.wrap(),e.alignIts&&(JSON.stringify(e.alignIts),this.res.style.alignItems="flex-start"),e.owrap&&this.onlyWrap(),null!=e.owrap&&!1===e.owrap&&(this.res.style.flexWrap="nowrap",this.res.style.background="yellow"),e.toColumn&&this.deprecatedOption("toColumn","colat"),e.column&&this.makeCol(),e.colat&&e.colat&&this.toColumnAt(e.colat),e.align&&this.makeJustify(e.justify),e.justify&&this.makeAlign(e.justify),"flex-start"===e.justifo&&(this.res.style.justifyContent="flex-start"),e.radius&&(this.res.style.borderRadius=e.radius),e.aligns&&this.aligns(e.aligns),this.callReact(t),!0===e.center&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),this}},{key:"callReact",value:function(e){this.options=e;var r,n,o,i=[],a=e.transform&&"object"===s(e.transform);if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||a){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&(r=t,n=this,"function"==typeof(o=d(f(1&3?r.prototype:r),"setAny",n))?function(e){return o.apply(n,e)}:o)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var l=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,a?e.transform:void 0];l=l.filter(function(e){return null!=e});for(var c=0;c<l.length;c++)i.push({range:l[c].range,log:l[c].op.name,target:l[c].target,op:l[c].op});var u=[];e.borderObj&&u.push("border"),e.background&&u.push("background"),e.mar&&u.push("margin"),e.animation&&u.push("animation"),e.span&&u.push("span"),this.chainReact(i,e.id,u)}}},{key:"toColumnAt",value:function(e){var t=this;if(!this.columnAlways){var r=function(){var r=window.matchMedia("(max-width: ".concat(e,")")),n=window.matchMedia("(max-device-width: 415px)");r.matches||n.matches?t.res.style.flexDirection="column":t.res.style.flexDirection="row"};r(),window.addEventListener("resize",r)}return this}},{key:"onlyWrap",value:function(){return this.res.style.flexWrap="wrap",this}},{key:"wrap",value:function(){return this.res.style.flexWrap="wrap",this.res.style.justifyContent="space-between",this}},{key:"aligns",value:function(e){return"start"===e&&(this.res.style.alignItems="flex-start"),"end"===e&&(this.res.style.alignItems="flex-end"),"center"===e&&(this.res.style.alignItems="center"),this}},{key:"toCode",value:function(){for(var e={},t=0,r=Object.entries(this.options||{});t<r.length;t++){var n=i(r[t],2),a=n[0],s=n[1];null!=s&&""!==s&&(e[a]=s)}var l=JSON.stringify(e,null,4).replace((0,o._H)(),"$1:").replace(/"([^"]*)"/g,function(e,t){return t.includes("\n")?"`"+t.replace(/`/g,"\\`")+"`":'"'.concat(t,'"')}),c=(this.items||[]).map(function(e){return null!=e&&e.toCode?e.toCode():"/* element */"}).join(",\n ");return[["new FlexRow().set(".concat(l,")"),c?".items([\n ".concat(c,"\n])"):""].join("")]}},{key:"cornerRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"makeJustify",value:function(e){return"start"===e&&(this.res.style.justifyContent="flex-start"),this}},{key:"makeAlign",value:function(e){return"center"===e?this.res.style.alignItems="center":this.res.style.justifyContent=e,this}},{key:"makeCol",value:function(){return this.res.style.flexDirection="column",this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"setup",value:function(){var e=document.createElement("div");return e.style.display="flex",e.style.justifyContent="space-around",e.style.alignItems="center",this.res=e,this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,window.matchMedia("(max-device-width: 415px)").matches&&e.mobile&&(this.res.style.width=e.mobile),this}},{key:"radius",value:function(e){return this.res.style.borderRadius="".concat(e,"px"),this}},{key:"shadow",value:function(e,t,r){return this.res.style.boxShadow="0px 1px 10px 0px rgb(145 145 145)",this}},{key:"items",value:function(e){this.els=e,this.items=e;for(var t=0;t<e.length;t++){if(null!=e[t])if(e[t].render instanceof Function){var r=e[t].render();this.res.appendChild(r)}else this.res.appendChild(e[t]);if(null!=e[t]&&e[t].render instanceof Function){var n=e[t].render();this.res.appendChild(n),void 0!==e[t].toCode&&this.code.push(e[t].toCode().flatMap(function(e){return e}))}}return this}},{key:"responsive",value:function(e){var t=this,r=window.matchMedia("(max-device-width: 415px)");return window.innerWidth<e||r.matches?this.res.style.gridTemplateColumns="1fr":this.res.style.gridTemplateColumns="1fr 1fr",window.addEventListener("resize",function(){window.innerWidth<e||r.matches?t.res.style.gridTemplateColumns="1fr":t.res.style.gridTemplateColumns="1fr 1fr"}),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],n&&l(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},3180:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{h:()=>u});var u=function(e){function t(e){var r,n,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=l(o=t),(r=a(n,s()?Reflect.construct(o,[],l(n).constructor):o.apply(n,i)))._noTheme=!0;var c=document.createElement("div");return c.style.flex="1",r.res=c,r.res.setAttribute("class","innerHider"),a(r,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,(n=[{key:"toCode",value:function(){return["new Spacer(".concat(this.hide,")")]}},{key:"render",value:function(){return this.res}}])&&o(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(r(9873).y)},3243:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{a:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t))._noTheme=!0,e.el=null,e.obj=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"set",value:function(e){var t=document.createElement("div");return t.style.width="100vw",t.style.height="100vh",t.style.backgroundColor=e.background,t.style.zIndex="1",t.style.position="absolute",t.style.overflowY="scroll",this.obj=e,this.res=t,e.close&&this.close(),this}},{key:"close",value:function(){return this.res.style.display="none",this}},{key:"show",value:function(){return this.res.style.display="block",this}},{key:"add",value:function(e){var t=document.createElement("div");t.style.width=this.obj.width,t.style.height="auto",t.style.marginLeft="auto",t.style.marginRight="auto",t.style.backgroundColor="white",window.matchMedia("(max-device-width: 415px)").matches&&(t.style.marginTop="200px",t.style.width="100%");for(var r=0;r<e.length;r++)t.appendChild(e[r].render());return this.res.appendChild(t),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector("body").style.margin=0,document.querySelector("body").style.padding=0,document.querySelector(e).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},3257:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{l:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).el=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"set",value:function(e){this.options=e;var t=document.createElement("div"),r=document.createElement("label");r.style.position="relative",r.style.display="block";var n=document.createTextNode(e.title);r.appendChild(n),r.style.opacity=0;var o=document.createElement("input");return"textarea"===e.type&&(o=document.createElement("textarea")),o.style.position="relative",o.placeholder=e.title,o.style.fontSize="1rem",o.style.padding=".4rem .75rem",t.appendChild(r),t.appendChild(o),this.res=t,e.mar&&this.mar(e.mar),e.pad&&this.pad(e.pad),o.addEventListener("focus",function(){r.style.transition="transform ease 0.2s",r.style.transform="scale(0.80)",r.style.textTransform="uppercase",r.style.transformOrigin="left top",r.style.fontWeight="bold",o.placeholder="",r.style.opacity="1.0",e.font&&(r.style.fontFamily=e.font),e.color&&(r.style.color=e.color),e.exact&&(r.style.fontSize=e.exact)}),o.addEventListener("focusout",function(){r.style.transform="scale(1.0)",o.placeholder=e.title,r.style.opacity="0.0"}),e.name&&o.setAttribute("name",e.name),window.matchMedia("(max-device-width: 415px)").matches&&(o.style.width="100%",t.style.width="100%"),o.style.fontSize="1rem",this.el=t,this}},{key:"getValue",value:function(){return this.el.children[1].value}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new FloatingInput().set(".concat(e,")")]}},{key:"margin",value:function(e){return this.el.style.margin=e,this}},{key:"render",value:function(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y);"undefined"!=typeof window&&(window.FloatingInput=c)},3420:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{f:()=>c});var c=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).url=e,r.res=null,r.setup(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"setup",value:function(){this.res=document.createElement("audio"),this.res.setAttribute("src",this.url),this.res.setAttribute("controls","controls")}},{key:"size",value:function(e){return this.res.style.width=e,this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},3440:(e,t,r)=>{r.d(t,{X:()=>h});var n=r(9873),o=r(1382);function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function d(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}var p=function(){return d(function e(t,r){c(this,e),this.obj=t||{},this.items=r||[]},[{key:"render",value:function(){var e=document.createElement("div");e.style.display="flex",e.style.width="100%",e.style.justifyContent="space-around",e.setAttribute("id","innerItemsWrapper");var t=window.matchMedia("(max-device-width: 415px)"),r=window.matchMedia("(max-width: 600px)");(t.matches||r.matches)&&(e.style.marginTop="3rem");for(var n=0;n<this.items.length;n++){var o=this.items[n];e.appendChild(o.render())}var i=document.createElement("div");return i.style.width=this.obj.isSide?"333px":"100%",i.style.background=this.obj.background||"white",i.style.display="flex",i.style.justifyContent="center",i.style.alignItems="center",i.style.height="100%",i.setAttribute("id","outerItemsWrapper"),i.appendChild(e),this.obj.customStyle&&(e.style.width="auto",e.style.top="0rem",e.style.borderRadius="1rem",e.style.background=this.obj.background||"white",e.style.margin="1rem",e.style.position="absolute",e.style.opacity=.8),i}}])}(),h=function(e){function t(e){var r,n,o,s;return c(this,t),r=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,i()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t),n=r,s=function(){var e,t=window.matchMedia("(max-device-width: 415px)"),n=document.createElement("button");if(n.setAttribute("id","hamburger"),n.setAttribute("type","button"),n.setAttribute("aria-label","Menu"),n.setAttribute("aria-expanded","false"),n.setAttribute("aria-controls","innerItemsWrapper"),n.style.border="none",n.style.fontWeight="bold",n.style.position="absolute",n.style.color=null!==(e=r.hamburgerColour)&&void 0!==e?e:"orange",n.style.backgroundColor="transparent",n.style.fontSize=t.matches?"2.1em":"2em",r.hamburgerInset){var o=String(r.hamburgerInset).trim().split(/\s+/);n.style.padding=o.length>1?"".concat(o[0]," ").concat(o[1]):"".concat(o[0]," ").concat(o[0])}var i=document.createTextNode(r.symbol?r.symbol:"☰");return n.appendChild(i),n.style.marginLeft="auto",r.isShown=!1,n.addEventListener("click",function(){r.isShown=!r.isShown,n.setAttribute("aria-expanded",String(r.isShown)),r.hasAnimatedToWide=!1;var e=r.items[0].options;if(e&&e.animation){var t=e.animation.op,o=r.res.children[0].children[1].children[0];if(t){if(r.isShown)for(var i=0;i<o.children.length;i++)o.children[i].animate(t.keyframesClose,{duration:1,fill:"forwards",delay:0}).onfinish=function(){o.parentElement.style.display="block"};else o.parentElement.style.display="none";for(i=0;i<o.children.length;i++){var a=o.children[i];a.animate(t.keyframesClose,{duration:1,fill:"forwards",delay:0}),r.isShown?a.animate(t.keyframesOpen,t.openOptions):a.animate(t.keyframesClose,t.closeOptions)}}}else r.isShown?innerItemsWrapper.parentElement.style.display="block":innerItemsWrapper.parentElement.style.display="none"}),n},(o=f(o="addHamburger"))in n?Object.defineProperty(n,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[o]=s,r.titleText="",r.hasHamburger=!1,r.code=[],r.attributes={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),d(t,[{key:"toCode",value:function(){var e="new UINavBar()";return Object.keys(this.attributes).length>0?e+=".setup(".concat((0,o.sy)(this.attributes,2),")"):e+=".setup({})",e+=".items([\n",e+=this.items.map(function(e){return e.toCode().join("").trim()}).join(",\n"),[e+="\n])"]}},{key:"styled",value:function(e){return this.setup(e),this.styles=e,this}},{key:"setup",value:function(e){this.obj=e,this.obj.isSide||(this.obj.animate=!1),this.attributes=e;var t=document.createElement("div");t.setAttribute("id","sars"),t.style.padding=0,t.style.margin=0;var r=document.createElement("div");return r.setAttribute("id","covid"),r.style.position="absolute",r.style.width="100%",r.style.zIndex=1,r.style.alignItems="flex-start",document.createElement("div").style.position="absolute",r.style.margin="20px",r.style.display="flex",r.style.alignItems="flex-end",r.style.margin=0,r.style.padding=0,r.style.margin=0,t.appendChild(r),this.addCloseButton=!1,this.res=t,e.background&&this.background({color:e.background}),e.openColor&&(this.openColor=e.openColor),e.sticky&&this.sticky(),e.pad&&this.pad(e.pad),e.hamburgerColour&&(this.hamburgerColour=e.hamburgerColour),e.hamburgerInset&&(this.hamburgerInset=e.hamburgerInset),e.mobileSize&&(this.mobileSize=e.mobileSize),e.desktopSize&&(this.desktopSize=e.desktopSize),e.height&&(this.res.children[0].style.height=e.height),this._ui={gap:e.gap,justify:e.justify,alignItems:e.alignItems,barPad:e.barPad,maxWidth:e.maxWidth,borderBottom:e.borderBottom},this.res.setAttribute("role","navigation"),this.res.setAttribute("aria-label",e.ariaLabel||"Primary"),this}},{key:"items",value:function(e){this.items=e;var t=["Link","Image","Spacer","Dropdown"].some(function(t){return e[0].__proto__.constructor.toString().startsWith("class ".concat(t))});this.itemCount=e.length;var r=new p(this.obj,this.items).render();this.res.children[0].appendChild(r);var n=this.res.children[0].children[0].children[0],o=this.items[0].options;if(o&&o.animation){var i=o.animation.op;if(i){var a=window.matchMedia("(max-device-width: 415px)"),s=window.matchMedia("(max-width: 600px)");if(a.matches||s.matches){var l={duration:1,fill:"forwards",delay:1};for(c=0;c<n.children.length;c++)n.children[c].animate(i.keyframesClose,l)}else for(var c=0;c<n.children.length;c++)n.children[c].animate(i.keyframesClose,{duration:1,fill:"forwards",delay:1}),n.children[c].animate(i.keyframesOpen,i.openOptions)}}if(this.adjust(),!t){this.itemCount=e.length;var u=document.createElement("div");for(u.style.backgroundColor="orange",c=0;c<e.length;c++){var d=e[c];if(d.logo){var f=new Image(d.logo).width("100px"),h=document.createElement("div");h.style.flex="1",h.style.height=23;var y=document.createElement("div");y.setAttribute("id","WR"),y.style.display="flex",y.style.flexDirection="row",y.appendChild(f.render()),this.res.children[0].appendChild(f.render()),this.obj.spacing&&this.res.children[0].appendChild(h)}if(d.logo&&(this.allowPad=!0),d.logo&&this.obj.spacing&&(this.res.children[0].children[0].style.marginLeft=this.obj.spacing.sides,this.res.children[0].children[0].style.marginRight=this.obj.spacing.sides),d.title){var m=void 0;m=this.allowPad?d.type?new Dropdown(d.items,d.title):new Link(d.title,d.url).pad([{lr:"1em"}]):d.type?new Link("DRPA",d.url):new Link(d.title,d.url),u.appendChild(m.render())}}this.res.children[0].appendChild(u),this.adjust()}var v=this.addHamburger();this.itemCount,this.obj.spacing,v.style.zIndex=1;var b=this.res.children[0];return b&&!b.querySelector("#hamburger")&&b.insertBefore(v,b.firstChild),this}},{key:"instance",value:function(){return this.res.children[0]}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=this.res.style.top||"0px",this.res.style.zIndex=this.res.style.zIndex||50,this._sticky=!0,this}},{key:"font",value:function(e){for(var t=0;t<this.res.children[0].children;t++)this.res.children[0].children[t].style.fontFamily=e;return this}},{key:"background",value:function(e){return e.background?(this.res.children[0].style.backgroundColor=e.color,this.res.children[0].style.opacity=e.opacity,this):(this.res.children[0].style.backgroundColor="transparent",this)}},{key:"adjust",value:function(e){var t=this,r=window.matchMedia("(max-width: 600px)"),n=window.matchMedia("(max-device-width: 415px)"),o=function(){t.isShown=!1,t.res.children[0],function(){for(var e=0;e<t.res.children[0].children.length;e++){var r=t.res.children[0].children[e];r.style.fontSize=n.matches?t.mobileSize?t.mobileSize:"1.2em":t.desktopSize?t.desktopSize:"1em","☰"===r.textContent&&(r.style.fontSize="2em")}}(),t.res.children[0].style.flexDirection="column";for(var e=0;e<t.res.children[0].children.length;e++)"☰"==t.res.children[0].children[e].textContent||t.res.children[0].children[e].textContent==t.keepItem?(t.res.children[0].children[e].id,t.res.children[0].children[e].style.display="flex"):t.res.children[0].children[e].style.display="none"};if(this.obj.isSide)o();else{var i=this.res.children[1];null!=i&&(i.style.background="yellow"),r.matches||n.matches?o():function(){t.res.children[0];for(var e=0;e<t.res.children[0].children.length;e++){var r=t.res.children[0].children[e];r.style.marginTop="0em",r.id,r.style.display="flex",r.textContent===t.titleText&&t.titleText.length>0&&(r.style.fontSize="2em")}var n=t.items[0].options;if(n&&n.animation){var o=n.animation.op,i=t.res.children[0].children[1].children[0];if(i.style.marginTop="0",o&&!t.hasAnimatedToWide)for(t.hasAnimatedToWide=!0,e=0;e<i.children.length;e++)i.children[e].animate(o.keyframesOpen,o.openOptions)}}()}return this}},{key:"render",value:function(e){var t=this,r=function(){var e=window.matchMedia("(max-width: 600px)"),r=window.matchMedia("(max-device-width: 415px)"),n=t.res.querySelector("#outerItemsWrapper")||t.res.children[0].children[1],o=n&&(n.querySelector("#innerItemsWrapper")||n.children[0]),i=t._ui||{};if(o&&(i.gap&&(o.style.gap=i.gap),i.justify&&(o.style.justifyContent=i.justify),i.alignItems&&(o.style.alignItems=i.alignItems),i.barPad&&(o.style.padding=i.barPad),i.maxWidth&&(o.style.maxWidth=i.maxWidth,o.style.marginLeft="auto",o.style.marginRight="auto")),n&&i.borderBottom&&(n.style.borderBottom=i.borderBottom),r.matches&&(o.style.position="relative"),(e.matches||r.matches)&&null!=o?o.style.flexDirection="column":null==o||t.obj.isSide||(o.style.flexDirection="row"),!t.obj.isSide&&!e.matches&&!r.matches){var a=t.res.querySelector("#hamburger");a&&(a.style.display="none")}t.obj.isSide&&(o.style.flexDirection="column"),t.obj.isSide||e.matches||(t.res.children[0].style.position="relative",n.style.transform="translateY(0px)"),!t.obj.isSide&&e.matches,t.obj.customStyle&&(t.res.children[0].style.marginTop="1rem",t.res.children[0].style.position="absolute",t.res.children[0].style.borderRadius="1rem",n.style.borderRadius="1rem"),t.obj.radius&&(t.res.children[0].style.borderRadius="1rem",n.style.borderRadius="1rem")};return window.addEventListener("resize",function(){return r()}),r(),e?(document.querySelector(e).style.padding=0,document.querySelector(e).style.margin=0,document.querySelector(e).appendChild(this.res),this.res):this.res}}])}(n.y)},3665:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}r.d(t,{m:()=>d});var d=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=c(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}(this,t)).res=document.createElement("div"),e.res.style.position="relative",e.toggleWrap=document.createElement("div"),e.toggleWrap.style.zIndex=9999,e.toggleWrap.style.borderRadius="0.3rem",e.toggleWrap.style.cursor="pointer",e.toggleWrap.style.display="flex",e.toggleWrap.style.alignItems="center",e.toggleWrap.style.justifyContent="center",e.res.appendChild(e.toggleWrap),e.contentWrap=document.createElement("div"),e.contentWrap.style.position="fixed",e.contentWrap.style.background="#ecf0f1",e.contentWrap.style.borderRadius="0.3rem",e.contentWrap.style.boxShadow="0 2px 5px rgba(0, 0, 0, 0.15)",e.contentWrap.style.width="250px",e.contentWrap.style.display="none",e.contentWrap.style.zIndex=99999,document.addEventListener("DOMContentLoaded",function(){document.body.appendChild(e.contentWrap)}),document.body&&document.body.appendChild(e.contentWrap),e.styles={},e.children=[],e.isExpanded=!1,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,s=[{key:"set",value:function(e){var t=this;this.options=e,e.title&&(this.toggleWrap.textContent=e.title),e.width&&(this.toggleWrap.style.width=e.width),e.contentWidth&&(this.contentWrap.style.width=e.contentWidth),e.background&&(this.contentWrap.style.backgroundColor=e.background),e.radius&&(this.contentWrap.style.borderRadius=e.radius);var r=function(){var e=t.toggleWrap.getBoundingClientRect(),r=t.contentWrap.style.display,n=t.contentWrap.style.visibility;"none"===r&&(t.contentWrap.style.visibility="hidden",t.contentWrap.style.display="block");var o=t.contentWrap.getBoundingClientRect();"none"===r&&(t.contentWrap.style.display=r,t.contentWrap.style.visibility=n||"");var i=window.innerWidth,a=e.left+e.width/2-o.width/2;a<8&&(a=8),a+o.width>i-8&&(a=i-8-o.width),a<8&&(a=8),t.contentWrap.style.top=e.bottom+4+"px",t.contentWrap.style.left=a+"px"};this._positionContent=r;var n=function(){"none"!==t.contentWrap.style.display&&r()};if(window.addEventListener("resize",n),window.addEventListener("scroll",n,!0),e.behaviour){var o=e.behaviour;if("mouseover"===o||"mouseenter"===o){var i,a=function(){clearTimeout(i),t.contentWrap.style.display="block",r()},s=function(){i=setTimeout(function(){t.contentWrap.style.display="none"},200)};this.toggleWrap.addEventListener("mouseenter",a),this.toggleWrap.addEventListener("mouseleave",s),this.contentWrap.addEventListener("mouseenter",a),this.contentWrap.addEventListener("mouseleave",s),this.toggleWrap.addEventListener("click",function(e){e.stopPropagation(),"block"===t.contentWrap.style.display?t.contentWrap.style.display="none":(t.contentWrap.style.display="block",r())}),document.addEventListener("click",function(e){"block"!==t.contentWrap.style.display||t.contentWrap.contains(e.target)||t.toggleWrap.contains(e.target)||(t.contentWrap.style.display="none")})}else"click"===o?this.res.addEventListener("click",function(){t.toggle(),"block"===t.contentWrap.style.display&&r()}):this.res.addEventListener(o,function(){t.contentWrap.style.display="block",r()})}else this.res.addEventListener("click",function(){t.toggle(),"block"===t.contentWrap.style.display&&r()});return e.mar&&this.mar(e.mar),e.pad&&this.pad(e.pad),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),this}},{key:"add",value:function(e){var t,r=this;if(!Array.isArray(e))throw new Error("The 'add' method expects an array of children.");if(e.forEach(function(e,t){if(0!==t){if(!(e.res instanceof HTMLElement))throw new Error("Each child must have a valid 'element' property that is an HTMLElement.");r.contentWrap.appendChild(e.res)}}),!this.options||!this.options.title){var n=e[0];n&&n.res&&this.toggleWrap.appendChild(n.res)}return(t=this.children).push.apply(t,function(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e)),this}},{key:"toggle",value:function(){this.isExpanded=!this.isExpanded,this.contentWrap.style.display=this.isExpanded?"block":"none"}},{key:"toCode",value:function(){var e=this,t=this.options?Object.entries(this.options).map(function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=t[0],i=t[1];return"string"==typeof i?"".concat(r,': "').concat(i,'"'):"object"===n(i)?"".concat(r,": ").concat(JSON.stringify(i)):"".concat(r,": ").concat(i)}).join(",\n "):"",r=this.children.map(function(t,r){return t.toCode().flatMap(function(e){return e}).join("")+(r<e.children.length-1?",":"")}).join("");return["new Dropdown().set({\n ".concat(t,"\n}).add([\n ").concat(r,"\n])")]}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.res),this.res}}],s&&a(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(r(9873).y)},4550:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{U:()=>c});var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,i=[{key:"set",value:function(e){return this.imageUrl=e.url,this.createCard(),e.useBrightness&&(this.useBrightness=!0),e.useBrightness&&"\n useBrightness: ".concat(this.useBrightness),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.inpad&&this.inpad(e.inpad),e.inpad&&"\n inpad: {".concat(e.inpad,"}"),e.font&&(this.res.style.fontFamily=e.font),e.inpad&&"\n font: ".concat(e.font),this.addListeners(),this}},{key:"inpad",value:function(e){return this.res.children[1].style.boxSizing="border-box",this.res.children[1].style.padding=e,this}},{key:"items",value:function(e){for(var t=0;t<e.length;t++)this.res.children[1].appendChild(e[t].render());return this}},{key:"createCard",value:function(){var e=document.createElement("div");e.style.display="grid",e.style.width="300px",e.style.height="400px",e.setAttribute("id","AAA");var t=document.createElement("div");t.style.gridArea="1/1",t.style.height="400px",t.style.borderRadius="15px",t.style.boxShadow="0 4px 8px 0 rgba(0,0,0,0.2)",t.style.overflow="hidden";var r=document.createElement("div");r.style.width="100%",r.style.height="100%",r.style.transition="0.9s",r.style.backgroundImage="url(".concat(this.imageUrl,")"),r.style.backgroundSize="cover",r.style.backgroundPostion="cover",r.style.backgroundRepeat="no-repeat",t.appendChild(r);var n=document.createElement("div");return n.style.gridArea="1/1",n.style.zIndex="1",e.appendChild(t),e.appendChild(n),this.res=e,this}},{key:"addListeners",value:function(){var e=this,t=this.res.children[0].children[0];return this.res.onmouseover=function(){t.style.transform="scale(1.3)",e.useBrightness&&(t.style.filter="brightness(31%)")},this.res.onmouseout=function(){t.style.transform="scale(1.0)",e.useBrightness&&(t.style.filter="brightness(100%)")},this}},{key:"render",value:function(e){if(!e)return this.res;this.options.id&&this.res.setAttribute("id",this.options.id),document.querySelector(e).appendChild(this.res)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},4617:(e,t,r)=>{function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},l.apply(null,arguments)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}r.d(t,{e:()=>d});var d=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=c(t),function(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}(this,t)).res=null,e.items=[],e.setup(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,a=[{key:"set",value:function(e){return this.options=e,e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),this.commonMethods(e),this.callReact(e),this}},{key:"callReact",value:function(e){var r,n,i,a=[],s=e.transform&&"object"===o(e.transform);if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||s){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&(r=t,n=this,"function"==typeof(i=l(c(1&3?r.prototype:r),"setAny",n))?function(e){return i.apply(n,e)}:i)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var u=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,s?e.transform:void 0];u=u.filter(function(e){return null!=e});for(var d=0;d<u.length;d++)a.push({range:u[d].range,log:u[d].op.name,target:u[d].target,op:u[d].op});var f=[];e.borderObj&&f.push("border"),e.background&&f.push("background"),e.mar&&f.push("margin"),e.animation&&f.push("animation"),e.span&&f.push("span"),this.chainReact(a,this.options.id,f)}}},{key:"setup",value:function(){var e=document.createElement("ul");return this.res=e,this.res.style.padding=0,this.res.style.margin=0,this}},{key:"setItems",value:function(e){this.items=e;var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if("string"==typeof o){var i=document.createElement("li");i.textContent=o,this.res.appendChild(i)}else{var a=o.render();this.res.appendChild(a)}}}catch(e){r.e(e)}finally{r.f()}return this}},{key:"font",value:function(e){return this.res.style.fontFamily=e,this}},{key:"size",value:function(e){return this.res.style.fontSize=e,this}},{key:"em",value:function(e){return this.res.style.fontSize="".concat(e,"em"),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"align",value:function(e){return this.res.style.textAlign="".concat(e),this}},{key:"weight",value:function(e){return this.res.style.fontWeight=e,this}},{key:"bold",value:function(){return this.res.style.fontWeight="bold",this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(e,"px solid ").concat(t),this}},{key:"toCode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.code=[],this.excludeFromCodeTrue)return[""];var t=" ".repeat(e),r="".concat(t,"new UList()");return this.items&&this.items.length&&(r+="\n".concat(t," .setItems([\n")+this.items.map(function(t){return"string"==typeof t?"".concat(" ".repeat(e+4),'"').concat(t,'"'):t.toCode(e+4)}).join(",\n")+"\n".concat(t," ])")),[r+="\n".concat(t)]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],a&&i(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(r(9873).y)},4753:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{Z:()=>a});var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"cards",value:function(e,t,r){for(var n=[],o=0;o<e.children.length;o++){var i=e.children[o];"text"===i&&this.insertTextToCard(n,t,e,r),"image"!==i||e.backgroundCard||n.push('\n new Image("https://upload.wikimedia.org/wikipedia/commons/3/3a/Starship_S20.jpg").set({})'),"link"===i&&(t.op?n.push("\n ".concat(r.tabSpace(6)," ").concat(r.link[t.op.theme.toLowerCase()].code)):n.push("\n ".concat(r.tabSpace(6)," ").concat(r.link.base.code)))}return n}},{key:"insertTextToCard",value:function(e,t,r,n){if(t.op)if(t.op.ops&&t.op.ops.includes("text-blast")){var o="\n ".concat(n.tabSpace(6)," ").concat(n.text[t.op.theme.toLowerCase()].code),i=n.ops[t.op.theme.toLowerCase()].blast.code;r.backgroundCard||(i=n.ops[t.op.theme.toLowerCase()].blastFun(1));var a=this.insertTextBetween(o,i);e.push(a)}else e.push("\n ".concat(n.tabSpace(6)," ").concat(n.text[t.op.theme.toLowerCase()].code));else e.push("\n ".concat(n.tabSpace(6)," ").concat(n.text.base.code))}},{key:"insertTextBetween",value:function(e,t){var r=e.match(/(color: ".+?",)(.+?)(id: ".+?")/);if(r){var n=r.index+r[0].length;return e.slice(0,n)+", "+t+", "+e.slice(n)}return e}}],null&&o(e.prototype,null),t&&o(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},5318:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{S:()=>a});var o="nodality.theme.mode",i="nodality:theme",a={mode:function(){try{var e=localStorage.getItem(o);if("light"===e||"dark"===e)return e}catch(e){}return"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}(),tokens:{light:{},dark:{}},defaults:{light:{color:"#111"},dark:{}},setDefaults:function(e){return e&&"object"===n(e)&&(e.light&&(this.defaults.light=Object.assign({},this.defaults.light,e.light)),e.dark&&(this.defaults.dark=Object.assign({},this.defaults.dark,e.dark)),this._broadcast()),this},setTokens:function(e){return e&&"object"===n(e)&&(e.light&&Object.assign(this.tokens.light,e.light),e.dark&&Object.assign(this.tokens.dark,e.dark)),this},get current(){return this.tokens[this.mode]||{}},set:function(e){if("light"!==e&&"dark"!==e)return this;if(e===this.mode)return this;this.mode=e;try{localStorage.setItem(o,e)}catch(e){}return this._broadcast(),this},toggle:function(){return this.set("dark"===this.mode?"light":"dark")},subscribe:function(e){if("undefined"==typeof document)return function(){};var t=function(t){return e(t.detail.mode,t.detail.tokens)};document.addEventListener(i,t);try{e(this.mode,this.current)}catch(e){}return function(){return document.removeEventListener(i,t)}},_broadcast:function(){"undefined"!=typeof document&&document.dispatchEvent(new CustomEvent(i,{detail:{mode:this.mode,tokens:this.current}}))}}},5367:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},s.apply(null,arguments)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{z:()=>u});var u=function(e){function t(e,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t))._noTheme=!0,o.res=null,o.width="16em",o.height="100vh",o.els=e,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,i=[{key:"setup",value:function(e){var r,n,o,i=this;e.tags&&(r=t,n=this,"function"==typeof(o=s(l(1&3?r.prototype:r),"setTags",n))?function(e){return o.apply(n,e)}:o)([e.tags]),e.width&&(this.width=e.width),e.height&&(this.height=e.height);var a=document.createElement("div");a.style.position="absolute";var c=document.createElement("button");c.style.position="absolute",c.style.background="white",c.style.opacity=.8,c.style.border="none",c.width="1.5em",c.height="1.5em",c.style.borderRadius="50%",c.style.zIndex=2;var u=document.createTextNode("☰");c.appendChild(u),c.style.fontSize="2em",window.matchMedia("(max-device-width: 400px)").matches&&(c.style.fontSize="6em"),window.matchMedia("(max-device-width: 400px)").matches&&e.fullMobile&&(this.width="100vw"),a.appendChild(c);var d=document.createElement("div");return d.style.position="absolute",d.style.backgroundColor="#fff",d.style.flexDirection="column",d.style.display="flex",d.style.alignItems="center",d.style.margin=0,d.style.padding=0,d.style.width=this.width,d.style.margin=0,d.style.marginTop="-10px",d.style.paddingTop="1em",d.style.paddingBottom="1em",d.style.height="".concat(this.height),d.style.transform="translateX(-".concat(this.width,")"),d.style.transition="all 0.80s",a.appendChild(d),this.hidden=!1,c.addEventListener("click",function(){i.hidden=!i.hidden;for(var e=0;e<d.children.length;e++)"☰"!==d.textContent&&(i.hidden?d.style.transform="translateX(0em)":d.style.transform="translateX(-".concat(i.width,")"))}),this.res=a,this.els&&this.items(this.els),this}},{key:"background",value:function(e){return this.res.children[1].style.backgroundColor=e.color,this.res.children[1].style.opacity=e.opacity,this}},{key:"items",value:function(e){this.itemCount=e.length;for(var t=0;t<e.length;t++)this.res.children[1].appendChild(e[t].render());return this}},{key:"render",value:function(e){return e?(document.querySelector(e).style.padding=0,document.querySelector(e).style.margin=0,document.querySelector(e).appendChild(this.res),this.res):this.res}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},5379:(e,t,r)=>{function n(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{hE:()=>z,ls:()=>p,sB:()=>U});var c={static:function(e){return{x:.5*e.w,y:.5*e.h,amt:1}},mouse:function(e){return{x:e.mouseX,y:e.mouseY,amt:1}},hover:function(e){return{x:e.mouseX,y:e.mouseY,amt:e.hover}},scroll:function(e){return{x:.5*e.w,y:e.h*e.scroll,amt:1}},time:function(e){return{x:e.w*(.5+.34*Math.cos(.6*e.t)),y:e.h*(.5+.34*Math.sin(.8*e.t)),amt:1}}},u=Object.keys(c),d={hexalize:{doc:{summary:"Hexagonal cell grid. Snaps sampling to a hex lattice and draws cell borders; with `lift`, cells near the driver swell toward the viewer and their content magnifies to match.",params:{size:{default:24,unit:"px",summary:"lattice pitch — the width of one cell"},lift:{default:0,unit:"ratio",structural:!0,summary:"how much bigger a cell gets at the focus: 0.3 renders the nearest hexagons at 1.3x. 0 compiles the cheap path entirely away, so crossing zero rebuilds."},radius:{default:200,unit:"px",summary:"falloff distance around the driver focus"}}},structuralOnToggle:["lift"],stage:"cell",decl:function(e){return"\n uniform float ".concat(e,"size;\n uniform float ").concat(e,"lift;\n uniform float ").concat(e,"radius;\n uniform vec2 ").concat(e,"dpos;\n uniform float ").concat(e,"damt;")},code:function(e,t){return t.lift?"\n {\n vec2 hp = warped / ".concat(e,"size;\n vec2 hr = vec2(1.0, 1.7320508), hh = hr * 0.5;\n vec2 ha = mod(hp, hr) - hh, hb = mod(hp - hh, hr) - hh;\n vec2 gv = dot(ha, ha) < dot(hb, hb) ? ha : hb;\n vec2 ").concat(e,"AX = normalize(vec2(1.0, 1.7320508));\n vec2 ").concat(e,"c0 = hp - gv;\n // Seed with the owning cell. Its own hexagon always covers the\n // fragment at any scale >= 1, so there is always a winner.\n vec2 ").concat(e,"bestC = ").concat(e,"c0;\n float ").concat(e,"bestF = (1.0 - smoothstep(0.0, ").concat(e,"radius,\n length(").concat(e,"c0 * ").concat(e,"size - ").concat(e,"dpos))) * ").concat(e,"damt;\n float ").concat(e,"bestS = 1.0 + ").concat(e,"lift * ").concat(e,"bestF;\n").concat([[1,0],[-1,0],[.5,.8660254],[-.5,.8660254],[.5,-.8660254],[-.5,-.8660254]].map(function(t){var r,n,o=a(t,2);return r=o[0],n=o[1],"\n {\n vec2 c = ".concat(e,"c0 + vec2(").concat(r.toFixed(7),", ").concat(n.toFixed(7),");\n float f = 1.0 - smoothstep(0.0, ").concat(e,"radius,\n length(c * ").concat(e,"size - ").concat(e,"dpos));\n f *= ").concat(e,"damt;\n float s = 1.0 + ").concat(e,"lift * f;\n vec2 q = hp - c;\n float hd = max(dot(abs(q), ").concat(e,"AX), abs(q).x);\n // Covered by this cell's grown hexagon, and nearer than\n // whatever we have so far.\n if (hd <= 0.5 * s && s > ").concat(e,"bestS) {\n ").concat(e,"bestS = s; ").concat(e,"bestC = c; ").concat(e,"bestF = f;\n }\n }")}).join(""),"\n center = ").concat(e,"bestC * ").concat(e,"size;\n // Divide by the winner's scale: the border test then reaches\n // 0.5 further out (a bigger hexagon) and the sample moves in\n // toward the centre (its content magnified to match), both by\n // the same factor, so proportions are preserved exactly.\n gv = (hp - ").concat(e,"bestC) / max(").concat(e,"bestS, 1e-3);\n warped = center + gv * ").concat(e,'size;\n gv = abs(gv);\n // Border strength follows the SAME falloff as the scale, so a\n // cell that has not been raised draws no border at all. Away\n // from the pointer bestF is 0, which means scale 1, sampling\n // untouched and edge 0 — bit-identical to the source image, so\n // nothing reveals that an effect is attached until the pointer\n // arrives. Pair with by:"hover" for a fully flush resting\n // state; by:"mouse" holds amt at 1 and so keeps a permanent\n // hotspot wherever the pointer last was.\n edge = max(edge, smoothstep(0.44, 0.5,\n max(dot(gv, ').concat(e,"AX), gv.x)) * ").concat(e,"bestF);\n }"):"\n {\n vec2 hp = warped / ".concat(e,"size;\n vec2 hr = vec2(1.0, 1.7320508), hh = hr * 0.5;\n vec2 ha = mod(hp, hr) - hh, hb = mod(hp - hh, hr) - hh;\n vec2 gv = dot(ha, ha) < dot(hb, hb) ? ha : hb;\n center = (hp - gv) * ").concat(e,"size;\n gv = abs(gv);\n edge = max(edge, smoothstep(0.44, 0.5,\n max(dot(gv, normalize(vec2(1.0, 1.7320508))), gv.x)));\n }")},uniforms:function(e,t){return{size:["1f",(e.size||24)*t],lift:["1f",null!=e.lift?e.lift:0],radius:["1f",(e.radius||200)*t]}},map:function(e,t){return t.lift?null:e}},offset:{doc:{summary:"Pushes the coordinate space away from the driver focus. Warp stage, so cell grids and borders move WITH the content instead of staying a fixed screen-space lattice.",params:{strength:{default:20,unit:"px",summary:"how far the space is pushed at full amount"},radius:{default:260,unit:"px",summary:"falloff distance around the focus"}}},stage:"warp",defaultDriver:"mouse",decl:function(e){return"uniform float ".concat(e,"strength; uniform float ").concat(e,"radius;\n uniform vec2 ").concat(e,"dpos; uniform float ").concat(e,"damt;")},code:function(e){return"\n {\n float d = length(warped - ".concat(e,"dpos);\n float fall = 1.0 - smoothstep(0.0, ").concat(e,"radius, d);\n vec2 dir = d > 0.5 ? (warped - ").concat(e,"dpos) / d : vec2(0.0);\n warped -= dir * ").concat(e,"strength * fall * ").concat(e,"damt;\n }")},uniforms:function(e,t){return{strength:["1f",(e.strength||20)*t],radius:["1f",(e.radius||260)*t]}},map:function(e,t,r){var n,o,i,a=(t.strength||20)*r.dpr,s=(t.radius||260)*r.dpr,l=e[0]-r.dpos[0],c=e[1]-r.dpos[1],u=Math.hypot(l,c),d=1-(n=s,o=u,(i=Math.min(1,Math.max(0,(o-0)/(n-0||1e-6))))*i*(3-2*i));if(!(u>.5))return e;var f=a*d*r.damt/u;return[e[0]-l*f,e[1]-c*f]}},flow:{doc:{summary:"Curl-noise current. The coordinate space drifts along a divergence-free field, so content slides as if carried by water. Divergence-free means the flow never piles up or tears.",params:{strength:{default:18,unit:"px",summary:"how far the current carries the space"},scale:{default:120,unit:"px",summary:"size of one eddy — small is turbulent, large is a slow drift"},speed:{default:.25,unit:"seconds",summary:"how fast the field evolves; 0 freezes it"},seed:{default:0,unit:"count",summary:"picks a different field of the same character"},radius:{default:320,unit:"px",summary:"falloff around the focus. Only used when `by` names a driver; without one the current covers the whole element."}}},structural:["by"],stage:"warp",decl:function(e){return"\n uniform float ".concat(e,"scale;\n uniform float ").concat(e,"strength;\n uniform float ").concat(e,"speed;\n uniform float ").concat(e,"seed;\n uniform float ").concat(e,"radius;\n uniform vec2 ").concat(e,"dpos;\n uniform float ").concat(e,"damt;\n // Polynomial bit-mixing hash, deliberately NOT the usual\n // fract(sin(dot(...))). Trig-based hashes disagree across GPU\n // vendors — sin's precision at large arguments is not\n // specified — so the same seed would render a different field\n // on different hardware. This one is multiply/fract only, so\n // the field is at least stable per-device. (Determinism rule,\n // MORPH-IMPL-SPEC §2.9.5a.)\n float ").concat(e,"h(vec2 v) {\n vec3 q = fract(vec3(v.xyx) * 0.1031 + ").concat(e,"seed);\n q += dot(q, q.yzx + 33.33);\n return fract((q.x + q.y) * q.z);\n }\n float ").concat(e,"n(vec2 v) {\n vec2 i = floor(v), f = v - i;\n f = f * f * (3.0 - 2.0 * f);\n return mix(mix(").concat(e,"h(i), ").concat(e,"h(i + vec2(1.0, 0.0)), f.x),\n mix(").concat(e,"h(i + vec2(0.0, 1.0)), ").concat(e,"h(i + vec2(1.0, 1.0)), f.x), f.y);\n }\n // The potential. Two octaves: enough structure to read as a\n // current without the cost of a full fBm.\n float ").concat(e,"psi(vec2 v) {\n return ").concat(e,"n(v) * 0.65 + ").concat(e,"n(v * 2.3 + 11.0) * 0.35;\n }")},code:function(e,t){return"\n {\n float sc = max(".concat(e,"scale, 1.0);\n vec2 drift = vec2(0.0, u_time * ").concat(e,"speed);").concat(t.by?"\n float fall = 1.0 - smoothstep(0.0, ".concat(e,"radius, length(warped - ").concat(e,"dpos));\n float amt = ").concat(e,"strength * fall * ").concat(e,"damt;"):"\n float amt = ".concat(e,"strength;"),"\n // Three fixed Euler steps along curl(psi). Fixed count, not\n // adaptive: the step budget is a compile-time property so the\n // shader cost cannot vary with the content.\n for (int i = 0; i < 3; i++) {\n vec2 q = warped / sc + drift;\n float e = 0.35;\n float dy = ").concat(e,"psi(q + vec2(0.0, e)) - ").concat(e,"psi(q - vec2(0.0, e));\n float dx = ").concat(e,"psi(q + vec2(e, 0.0)) - ").concat(e,"psi(q - vec2(e, 0.0));\n // curl of a 2D scalar potential = (dpsi/dy, -dpsi/dx)\n warped += vec2(dy, -dx) / (2.0 * e) * amt * 0.3333;\n }\n }")},uniforms:function(e,t){return{scale:["1f",(null!=e.scale?e.scale:120)*t],strength:["1f",(null!=e.strength?e.strength:18)*t],speed:["1f",null!=e.speed?e.speed:.25],seed:["1f",null!=e.seed?e.seed:0],radius:["1f",(null!=e.radius?e.radius:320)*t]}}},duotone:{doc:{summary:"Maps luminance onto a two-colour ramp. With `by`, the mapping is confined to a spot around the driver focus and the rest of the element keeps its own colour.",params:{colors:{default:["#104B87","#E8FF00"],unit:"color",summary:"[shadow, highlight] — the two ends of the ramp"},radius:{default:220,unit:"px",summary:"spot size when `by` names a driver"}}},structural:["by"],stage:"color",decl:function(e){return"uniform vec3 ".concat(e,"a; uniform vec3 ").concat(e,"b; uniform float ").concat(e,"radius;\n uniform vec2 ").concat(e,"dpos; uniform float ").concat(e,"damt;")},code:function(e,t){return"\n {\n float lum = dot(col, vec3(0.299, 0.587, 0.114));\n vec3 duo = mix(".concat(e,"a, ").concat(e,"b, lum);\n ").concat(t.by?"float mask = (1.0 - smoothstep(".concat(e,"radius * 0.35, ").concat(e,"radius,\n length(center - ").concat(e,"dpos))) * ").concat(e,"damt;"):"float mask = 1.0;","\n col = mix(col, duo, mask);\n }")},uniforms:function(e,t){var r=e.colors||["#104B87","#E8FF00"];return{a:["3fv",f(r[0])],b:["3fv",f(r[1])],radius:["1f",(e.radius||220)*t]}}},edges:{doc:{summary:"Draws the cell borders a cell-stage op produced. On its own it shows nothing — it colours `edge`, which only hexalize (or another cell op) writes.",params:{color:{default:"#FFFFFF",unit:"color",summary:"border colour"},strength:{default:1,unit:"ratio",summary:"border opacity"}}},stage:"color",decl:function(e){return"uniform vec3 ".concat(e,"color; uniform float ").concat(e,"strength;")},code:function(e){return"\n {\n edgeCol = ".concat(e,"color;\n edgeCov = max(edgeCov, edge * ").concat(e,"strength);\n }")},uniforms:function(e){return{color:["3fv",f(e.color||"#FFFFFF")],strength:["1f",null!=e.strength?e.strength:1]}}},halftone:{doc:{summary:"Print halftone: the image is redrawn as a grid of ink dots on paper, dot size following local luminance.",params:{size:{default:6,unit:"px",summary:"dot pitch"},angle:{default:15,unit:"deg",summary:"screen angle of the dot grid"},ink:{default:"#0B1B2B",unit:"color",summary:"dot colour"},paper:{default:"#FFFFFF",unit:"color",summary:"background colour"},softness:{default:.08,unit:"ratio",summary:"dot edge softness — 0 is a hard stencil"},amount:{default:1,unit:"ratio",summary:"blend back toward the un-screened image; 0 is identity. Keyframe it to 0 at both ends of a transition so the shader hands over to the real element without a pop."},radius:{default:220,unit:"px",summary:"spot size when `by` names a driver"}}},structural:["by"],stage:"color",decl:function(e){return"\n uniform float ".concat(e,"size;\n uniform float ").concat(e,"amount;\n uniform float ").concat(e,"angle;\n uniform vec3 ").concat(e,"ink;\n uniform vec3 ").concat(e,"paper;\n uniform float ").concat(e,"soft;\n uniform float ").concat(e,"radius;\n uniform vec2 ").concat(e,"dpos;\n uniform float ").concat(e,"damt;")},code:function(e,t){return"\n {\n float lum = dot(col, vec3(0.299, 0.587, 0.114));\n float sz = ".concat(e,"size;").concat(t.by?"\n float fd = 1.0 - smoothstep(0.0, ".concat(e,"radius, length(frag - ").concat(e,"dpos));\n sz *= 1.0 + fd * ").concat(e,"damt * 1.8;"):"","\n // Screen angle: rotating the grid is what stops the dots\n // reading as a horizontal/vertical texture.\n float ca = cos(").concat(e,"angle), sa = sin(").concat(e,"angle);\n vec2 rp = vec2(ca * frag.x - sa * frag.y,\n sa * frag.x + ca * frag.y) / max(sz, 1.0);\n vec2 cell = fract(rp) - 0.5;\n // Dot radius from tone: darker tone prints a bigger dot.\n // sqrt because ink coverage goes as area, not radius.\n float rr = sqrt(clamp(1.0 - lum, 0.0, 1.0)) * 0.55;\n float dm = smoothstep(rr, rr - ").concat(e,"soft, length(cell));\n col = mix(col, mix(").concat(e,"paper, ").concat(e,"ink, dm), clamp(").concat(e,"amount, 0.0, 1.0));\n }")},uniforms:function(e,t){return{size:["1f",(e.size||6)*t],amount:["1f",null!=e.amount?e.amount:1],angle:["1f",(null!=e.angle?e.angle:15)*Math.PI/180],ink:["3fv",f(e.ink||"#0B1B2B")],paper:["3fv",f(e.paper||"#FFFFFF")],soft:["1f",null!=e.softness?e.softness:.08],radius:["1f",(e.radius||220)*t]}}},dither:{doc:{summary:"Ordered (Bayer) dithering to a small palette — the look of an 8-bit display, and the one op that gets sharper as the element gets smaller.",params:{size:{default:1,unit:"px",summary:"size of one dither cell; 1 is per-pixel"},levels:{default:6,unit:"count",summary:"quantisation steps per channel"},amount:{default:1,unit:"ratio",summary:"blend back toward the undithered image"},mono:{default:!1,unit:"bool",structural:!0,summary:"quantise luminance to ink/paper instead of per-channel colour. A different shader, so toggling rebuilds."},ink:{default:"#0B1B2B",unit:"color",summary:"dark end, mono only"},paper:{default:"#FFFFFF",unit:"color",summary:"light end, mono only"},radius:{default:220,unit:"px",summary:"spot size when `by` names a driver"}}},structural:["by","mono"],stage:"color",decl:function(e){return"\n uniform float ".concat(e,"levels;\n uniform float ").concat(e,"size;\n uniform float ").concat(e,"amount;\n uniform vec3 ").concat(e,"ink;\n uniform vec3 ").concat(e,"paper;\n uniform vec2 ").concat(e,"dpos;\n uniform float ").concat(e,"damt;\n uniform float ").concat(e,"radius;\n // Bayer matrices by recursive bit-interleave rather than a\n // 64-entry table: WebGL1 has no constant array indexing, and\n // the nesting is exactly the recursive definition of the\n // ordered-dither matrix.\n float ").concat(e,"b2(vec2 a) {\n a = floor(a);\n return fract(a.x * 0.5 + a.y * a.y * 0.75);\n }\n float ").concat(e,"b4(vec2 a) { return ").concat(e,"b2(0.5 * a) * 0.25 + ").concat(e,"b2(a); }\n float ").concat(e,"b8(vec2 a) { return ").concat(e,"b4(0.5 * a) * 0.25 + ").concat(e,"b2(a); }")},code:function(e,t){return"\n {\n float sz = max(".concat(e,"size, 1e-3);").concat(t.by?"\n float fd = 1.0 - smoothstep(0.0, ".concat(e,"radius, length(frag - ").concat(e,"dpos));\n sz *= 1.0 + fd * ").concat(e,"damt * 1.8;"):"","\n // Centre the threshold on zero so dithering does not lift or\n // crush the overall exposure, only redistributes it.\n float t = ").concat(e,"b8(frag / sz) - 0.5;\n float lv = max(").concat(e,"levels, 1.0);\n ").concat(t.mono?"\n float lum = dot(col, vec3(0.299, 0.587, 0.114));\n float q = step(0.5, lum + t);\n vec3 dq = mix(".concat(e,"ink, ").concat(e,"paper, q);"):"\n // Per channel: scale to level index, offset by the threshold,\n // round, scale back. The +t before rounding is what turns a\n // hard band edge into an interleaved pattern of the two\n // neighbouring levels.\n vec3 dq = floor(col * lv + 0.5 + t) / lv;","\n col = mix(col, clamp(dq, 0.0, 1.0), clamp(").concat(e,"amount, 0.0, 1.0));\n }")},uniforms:function(e,t){return{levels:["1f",null!=e.levels?e.levels:6],size:["1f",(null!=e.size?e.size:1)*t],amount:["1f",null!=e.amount?e.amount:1],ink:["3fv",f(e.ink||"#0B1B2B")],paper:["3fv",f(e.paper||"#FFFFFF")],radius:["1f",(e.radius||220)*t]}}},aberration:{movesCoords:!1,doc:{summary:"Chromatic aberration: the three colour channels are sampled at slightly different offsets, like a cheap lens.",params:{amount:{default:6,unit:"px",summary:"channel separation"},radius:{default:240,unit:"px",summary:"falloff around the focus when `by` names a driver"}}},structural:["by"],stage:"displace",chroma:!0,decl:function(e){return"\n uniform float ".concat(e,"amount;\n uniform float ").concat(e,"radius;\n uniform vec2 ").concat(e,"dpos;\n uniform float ").concat(e,"damt;")},code:function(e,t){return"\n {\n vec2 ctr = ".concat(t.by?"".concat(e,"dpos"):"u_res * 0.5",";\n vec2 dv = sampleP - ctr;\n float dl = length(dv);\n vec2 dir = dl > 0.5 ? dv / dl : vec2(0.0);\n ").concat(t.by?"float amt = ".concat(e,"amount * ").concat(e,"damt *\n (1.0 - smoothstep(0.0, ").concat(e,"radius, dl));"):"float amt = ".concat(e,"amount * (dl / max(length(u_res) * 0.5, 1.0));"),"\n chroma += dir * amt;\n }")},uniforms:function(e,t){return{amount:["1f",(null!=e.amount?e.amount:6)*t],radius:["1f",(e.radius||240)*t]}}},mask:{doc:{summary:'Writes a scalar FIELD for later ops to read — draws nothing itself. Give a downstream op `masked: "name"` and it applies only where this field is high. This is how any op becomes local without knowing anything about masking.',params:{as:{default:"mask",unit:"name",structural:!0,summary:"name of the field written. Consumers name it in `masked:`."},from:{default:"radial",unit:"name",structural:!0,summary:"field shape — compiled in, so changing it rebuilds"},at:{default:[.5,.5],unit:"point",structural:!0,summary:"centre as a fraction of the element box; survives resizes"},radius:{default:260,unit:"px",summary:"field radius"},invert:{default:!1,unit:"bool",summary:"swap inside and outside"},remap:{default:[0,1],unit:"range",summary:"rescale the field's output range"}}},structural:["as","from","at"],stage:"field",producesField:!0,defaultDriver:"static",decl:function(e){return"\n uniform vec2 ".concat(e,"dpos;\n uniform float ").concat(e,"damt;\n uniform float ").concat(e,"radius;\n uniform vec2 ").concat(e,"at;\n uniform vec2 ").concat(e,"remap;\n uniform float ").concat(e,"invert;")},code:function(e,t){var r=t.from||"radial",n=t.at?"(".concat(e,"at * u_res)"):"".concat(e,"dpos"),o="vertical"===r?"frag.y / max(u_res.y, 1.0)":"horizontal"===r?"frag.x / max(u_res.x, 1.0)":"1.0 - smoothstep(0.0, ".concat(e,"radius, length(frag - ").concat(n,"))");return"\n {\n float m = ".concat(o,";\n m = clamp((m - ").concat(e,"remap.x) / max(").concat(e,"remap.y - ").concat(e,"remap.x, 1e-4), 0.0, 1.0);\n m = mix(m, 1.0 - m, ").concat(e,"invert);\n ").concat(_(t.as||"mask")," *= m * ").concat(e,"damt;\n }")},uniforms:function(e,t){return{radius:["1f",(null!=e.radius?e.radius:260)*t],at:["2fv",e.at||[.5,.5]],remap:["2fv",e.remap||[0,1]],invert:["1f",e.invert?1:0]}}},noise:{doc:{summary:"Writes an animated noise FIELD. Same contract as `mask` — it draws nothing; downstream ops read it via `masked:`. Use it to make any other op flicker, breathe or crawl.",params:{as:{default:"mask",unit:"name",structural:!0,summary:"name of the field written"},scale:{default:3,unit:"ratio",summary:"noise frequency across the element"},speed:{default:.3,unit:"seconds",summary:"how fast it evolves; 0 freezes it"},amount:{default:1,unit:"ratio",summary:"blend between flat 1.0 and full noise"},remap:{default:[0,1],unit:"range",summary:"rescale the field's output range"}}},structural:["as"],stage:"field",producesField:!0,decl:function(e){return"\n uniform float ".concat(e,"scale;\n uniform float ").concat(e,"speed;\n uniform vec2 ").concat(e,"remap;\n uniform float ").concat(e,"amp;\n float ").concat(e,"h(vec2 v) {\n return fract(sin(dot(v, vec2(41.113, 289.717))) * 43758.545);\n }\n float ").concat(e,"n(vec2 v) {\n vec2 i = floor(v), f = v - i;\n f = f * f * (3.0 - 2.0 * f);\n return mix(mix(").concat(e,"h(i), ").concat(e,"h(i + vec2(1.0, 0.0)), f.x),\n mix(").concat(e,"h(i + vec2(0.0, 1.0)), ").concat(e,"h(i + vec2(1.0, 1.0)), f.x), f.y);\n }")},code:function(e,t){return"\n {\n vec2 np = frag / max(u_res.y, 1.0) * ".concat(e,"scale;\n // Two octaves: enough structure to read as turbulence\n // without the cost of a full fBm.\n float n = ").concat(e,"n(np + u_time * ").concat(e,"speed) * 0.65 +\n ").concat(e,"n(np * 2.7 - u_time * ").concat(e,"speed * 0.6) * 0.35;\n n = clamp((n - ").concat(e,"remap.x) / max(").concat(e,"remap.y - ").concat(e,"remap.x, 1e-4), 0.0, 1.0);\n ").concat(_(t.as||"mask")," *= mix(1.0, n, ").concat(e,"amp);\n }")},uniforms:function(e){return{scale:["1f",null!=e.scale?e.scale:3],speed:["1f",null!=e.speed?e.speed:.3],remap:["2fv",e.remap||[0,1]],amp:["1f",null!=e.amount?e.amount:1]}}},copy:{multiSample:!0,doc:{summary:"Stamps extra copies of the element over itself. Copies sample the ORIGINAL texture, not the result of earlier colour ops, so a copy of a halftoned element is a copy of the unhalftoned source.",params:{count:{default:5,unit:"count",structural:!0,summary:"stamps arranged in a ring around the focus. The loop is unrolled at compile time, so this rebuilds — not something to animate."},points:{default:null,unit:"point",structural:!0,summary:"explicit [[x,y], ...] in fractions of the element box, instead of a ring. Survives resizes. Overrides `count`."},radius:{default:110,unit:"px",summary:"ring radius when using `count`"},scale:{default:.5,unit:"ratio",summary:"size of each copy"},rotate:{default:0,unit:"deg",summary:"rotation applied per copy"},fade:{default:1,unit:"ratio",summary:"opacity falloff across the set"},amount:{default:1,unit:"ratio",summary:"overall blend of the copies over the original"}}},structural:["count","points"],stage:"color",defaultDriver:"static",decl:function(e){return"\n uniform vec2 ".concat(e,"dpos;\n uniform float ").concat(e,"damt;\n uniform float ").concat(e,"radius;\n uniform float ").concat(e,"scale;\n uniform float ").concat(e,"rotate;\n uniform float ").concat(e,"fade;\n uniform float ").concat(e,"amount;")},code:function(e,t){for(var r=Array.isArray(t.points)&&t.points.length>0,n=r?t.points.length:Math.max(1,Math.min(24,Math.round(t.count||5))),o="",i=function(i){var a,s=r?"vec2(".concat((+t.points[i][0]).toFixed(5),", ").concat((+t.points[i][1]).toFixed(5),") * u_res"):(a=i/n*Math.PI*2,"".concat(e,"dpos + vec2(").concat(Math.cos(a).toFixed(5),", ")+"".concat(Math.sin(a).toFixed(5),") * ").concat(e,"radius"));o+="\n {\n float ang = ".concat(e,"rotate * ").concat((i+1).toFixed(1),";\n float cs = cos(ang), sn = sin(ang);\n // Inverse transform: to draw a stamp scaled by s about a\n // centre c, fetch from the source at (frag - c) / s.\n vec2 d = mat2(cs, -sn, sn, cs) * (frag - (").concat(s,"));\n vec2 q = d / max(").concat(e,"scale, 1e-3) + u_res * 0.5;\n vec2 quv = vec2(q.x / u_res.x, 1.0 - q.y / u_res.y);\n vec2 inside = step(vec2(0.0), quv) * step(quv, vec2(1.0));\n vec4 s = texture2D(u_tex, clamp(quv, 0.0, 1.0));\n float w = s.a * inside.x * inside.y * ").concat(e,"amount * ").concat(e,"damt\n * pow(").concat(e,"fade, ").concat(i.toFixed(1),");\n // Straight-alpha OVER, newest stamp on top.\n float na = w + ovA * (1.0 - w);\n ovCol = (s.rgb * w + ovCol * ovA * (1.0 - w)) / max(na, 1e-4);\n ovA = na;\n }")},a=0;a<n;a++)i(a);return o},uniforms:function(e,t){return{radius:["1f",(null!=e.radius?e.radius:110)*t],scale:["1f",null!=e.scale?e.scale:.5],rotate:["1f",null!=e.rotate?e.rotate:0],fade:["1f",null!=e.fade?e.fade:1],amount:["1f",null!=e.amount?e.amount:1]}}},merge:{doc:{summary:"Runs two sub-chains over the same source and blends the results. The only op that takes other ops as arguments — everything else composes by sequence, this composes in parallel.",params:{a:{default:null,summary:"first branch: an array of nodes",structural:!0},b:{default:null,summary:"second branch: an array of nodes",structural:!0},mode:{default:"over",unit:"name",structural:!0,summary:"how the branches combine: over, add, screen, multiply, difference, lighten. Compiled in, so it rebuilds."},mix:{default:1,unit:"ratio",summary:"how far to blend b into a"}}},structural:["mode","a","b"],stage:"color",decl:function(e){return"uniform float ".concat(e,"mix;")},code:function(){return""},uniforms:function(e){return{mix:["1f",null!=e.mix?e.mix:1]}}},echo:{doc:{summary:"Temporal accumulation — a fading trail of what CHANGED. Typing smears, a ticking counter leaves a comet. The one op that does nothing on the snapshot backend, because a frozen image has no motion to record.",params:{strength:{default:.85,unit:"ratio",summary:"opacity of the trail"},decay:{default:.92,unit:"ratio",summary:"per-second persistence — higher is a longer tail"},tint:{default:"#7FD4FF",unit:"color",summary:"colour pushed into the trail"},tintAmount:{default:.5,unit:"ratio",summary:"how far the trail is tinted"}}},stage:"color",decl:function(e){return"\n uniform sampler2D ".concat(e,"hist;\n uniform float ").concat(e,"strength;\n uniform vec3 ").concat(e,"tint;\n uniform float ").concat(e,"tintAmt;")},code:function(e){return"\n {\n // Sampled in screen space: the trail records where things\n // WERE, which is not where a warp op would fetch them from.\n vec2 huv = vec2(frag.x / u_res.x, 1.0 - frag.y / u_res.y);\n vec4 h = texture2D(".concat(e,"hist, clamp(huv, 0.001, 0.999));\n float ha = clamp(h.a * ").concat(e,"strength, 0.0, 1.0);\n vec3 hc = mix(h.rgb, ").concat(e,"tint, ").concat(e,"tintAmt);\n // Straight-alpha OVER into the border layer so an edges op\n // in the same chain still composites correctly.\n float na = ha + edgeCov * (1.0 - ha);\n edgeCol = (hc * ha + edgeCol * edgeCov * (1.0 - ha)) / max(na, 1e-4);\n edgeCov = na;\n }")},uniforms:function(e){return{strength:["1f",null!=e.strength?e.strength:.85],tint:["3fv",f(e.tint||"#7FD4FF")],tintAmt:["1f",e.tint?null!=e.tintAmount?e.tintAmount:.5:0]}},solver:{resolutions:function(e,t,r){return{frame:[t,r]}},targets:{history:{double:!0,res:"frame",fmt:"rgba",smooth:!0}},samplers:{hist:"history"},programs:{accumulate:"\nprecision highp float;\nuniform sampler2D u_content;\nuniform sampler2D u_hist;\nuniform vec2 u_texel;\nuniform float u_decay;\nvoid main() {\n vec2 uv = gl_FragCoord.xy * u_texel;\n vec4 c = texture2D(u_content, uv);\n vec4 h = texture2D(u_hist, uv) * u_decay;\n gl_FragColor = max(c, h);\n}"},splatColor:function(){return[0,0,0]},step:function(e,t,r){var n=Math.min(r.dt,1/30),o=Math.pow(null!=t.decay?t.decay:.92,60*n);e.use("accumulate"),e.f2("u_texel",1/e.canvasW,1/e.canvasH),e.f1("u_decay",o),e.smp("u_content",e.content,0),e.smp("u_hist",e.read("history"),1),e.blit(e.write("history")),e.swap("history")}}},stir:{doc:{summary:"Stirred liquid: a real fluid simulation the content is dragged through. STATEFUL — it owns a ping-pong pair of render targets that evolve frame to frame, so it is the most expensive op here.",params:{strength:{default:26,unit:"px",summary:"how far the fluid carries the content"},force:{default:1,unit:"ratio",summary:"how hard the pointer pushes the fluid"},radius:{default:.1,unit:"ratio",summary:"splat size, as a fraction of the sim grid"},curl:{default:2.2,unit:"ratio",summary:"vorticity — how much the fluid curls into eddies"},decay:{default:.985,unit:"ratio",summary:"per-second velocity persistence"},pressure:{default:.8,unit:"ratio",summary:"pressure retained between frames"},pressureIterations:{default:6,unit:"count",summary:"solver iterations; higher is stiffer and slower"},intensity:{default:1.6,unit:"ratio",summary:"brightness of the dye layer"},sheen:{default:.15,unit:"ratio",summary:"specular highlight on the surface"},tint:{default:"#7FD4FF",unit:"color",summary:"dye colour, unless `rainbow`"},rainbow:{default:!1,unit:"bool",summary:"cycle dye hue instead of using `tint`"},dye:{default:.85,unit:"ratio",summary:"how much dye colour reaches the final image"},dyeAmount:{default:.6,unit:"ratio",summary:"how much dye each splat injects"},dyeFade:{default:.97,unit:"ratio",summary:"per-second dye persistence"},resolution:{default:128,unit:"count",summary:"velocity grid size, clamped 32..512"},dyeResolution:{default:512,unit:"count",summary:"dye grid size, clamped 64..1024"}}},stage:["warp","color"],decl:function(e){return"\n uniform sampler2D ".concat(e,"vel;\n uniform sampler2D ").concat(e,"dye;\n uniform float ").concat(e,"strength;\n uniform float ").concat(e,"dyemix;\n uniform float ").concat(e,"intensity;\n uniform float ").concat(e,"sheen;\n uniform vec3 ").concat(e,"tint;")},code:function(e,t,r){return"warp"===r?"\n {\n // frag/warped are top-down pixels, the field is bottom-up\n // [0,1]: flip y going in, and flip the y of the vector coming\n // out so the content drags WITH the pointer.\n vec2 fuv = vec2(warped.x / u_res.x, 1.0 - warped.y / u_res.y);\n vec2 v = texture2D(".concat(e,"vel, clamp(fuv, 0.001, 0.999)).xy;\n warped += vec2(v.x, -v.y) * ").concat(e,"strength;\n }"):"\n {\n // Sampled at the CONTINUOUS warped position, never at the\n // cell centre: a cell op upstream (hexalize) snaps the cell\n // centre to one point per tile, which would quantise the\n // liquid into flat per-hex patches instead of smooth swirls.\n vec2 suv = vec2(warped.x / u_res.x, 1.0 - warped.y / u_res.y);\n vec3 dc = texture2D(".concat(e,"dye, clamp(suv, 0.001, 0.999)).rgb;\n float mag = length(dc);\n // Colour is carried IN the dye field and advected with it, so\n // a ribbon keeps its hue while the flow folds it. Deriving\n // colour from the local flow direction instead would make\n // neighbouring pixels jump hue and read as confetti.\n vec3 liquid = mag > 1e-4 ? clamp(dc / mag * 1.25, 0.0, 1.0) : ").concat(e,"tint;\n float amt = clamp((1.0 - exp(-mag * ").concat(e,"intensity)) * ").concat(e,"dyemix, 0.0, 1.0);\n // Straight-alpha OVER so a later overlay op (blobs) still\n // composites correctly on top of the liquid.\n float na = amt + ovA * (1.0 - amt);\n ovCol = (liquid * amt + ovCol * ovA * (1.0 - amt)) / max(na, 1e-4);\n ovA = na;\n\n // Faint sheen on the content itself where the flow is fast.\n float sp = length(texture2D(").concat(e,"vel, clamp(suv, 0.001, 0.999)).xy);\n col = mix(col, ").concat(e,"tint, (1.0 - exp(-sp * 0.7)) * ").concat(e,"sheen);\n }")},uniforms:function(e,t){return{strength:["1f",(null!=e.strength?e.strength:26)*t],sheen:["1f",null!=e.sheen?e.sheen:.15],tint:["3fv",f(e.tint||"#7FD4FF")],dyemix:["1f",null!=e.dye?e.dye:.85],intensity:["1f",null!=e.intensity?e.intensity:1.6]}},solver:{resolutions:function(e){return{sim:Math.max(32,Math.min(e.resolution||128,512)),dye:Math.max(64,Math.min(e.dyeResolution||512,1024))}},targets:{velocity:{double:!0,res:"sim",fmt:"rg",smooth:!0},dye:{double:!0,res:"dye",fmt:"rgba",smooth:!0},pressure:{double:!0,res:"sim",fmt:"r",smooth:!1},divergence:{double:!1,res:"sim",fmt:"r",smooth:!1},vorticity:{double:!1,res:"sim",fmt:"r",smooth:!1}},samplers:{vel:"velocity",dye:"dye"},programs:{splat:"\nprecision highp float;\nuniform sampler2D u_src;\nuniform vec2 u_texel;\nuniform vec2 u_point;\nuniform vec3 u_amount;\nuniform float u_radius;\nuniform float u_aspect;\nvoid main() {\n vec2 uv = gl_FragCoord.xy * u_texel;\n vec2 d = uv - u_point;\n if (u_aspect >= 1.0) d.y /= u_aspect; else d.x *= u_aspect;\n float g = exp(-dot(d, d) / max(u_radius * u_radius, 1e-6));\n gl_FragColor = vec4(texture2D(u_src, uv).xyz + u_amount * g, 1.0);\n}",advect:"\nprecision highp float;\nuniform sampler2D u_vel;\nuniform sampler2D u_src;\nuniform vec2 u_texel;\nuniform float u_dt;\nuniform float u_diss;\nvoid main() {\n vec2 uv = gl_FragCoord.xy * u_texel;\n vec2 back = uv - texture2D(u_vel, uv).xy * u_dt;\n gl_FragColor = vec4(texture2D(u_src, clamp(back, 0.0, 1.0)).xyz * u_diss, 1.0);\n}",curl:"\nprecision highp float;\nuniform sampler2D u_vel;\nuniform vec2 u_texel;\nvoid main() {\n vec2 uv = gl_FragCoord.xy * u_texel;\n float r = texture2D(u_vel, uv + vec2(u_texel.x, 0.0)).y;\n float l = texture2D(u_vel, uv - vec2(u_texel.x, 0.0)).y;\n float t = texture2D(u_vel, uv + vec2(0.0, u_texel.y)).x;\n float b = texture2D(u_vel, uv - vec2(0.0, u_texel.y)).x;\n gl_FragColor = vec4(0.5 * ((r - l) - (t - b)), 0.0, 0.0, 1.0);\n}",confine:"\nprecision highp float;\nuniform sampler2D u_vel;\nuniform sampler2D u_curl;\nuniform vec2 u_texel;\nuniform float u_eps;\nuniform float u_dt;\nvoid main() {\n vec2 uv = gl_FragCoord.xy * u_texel;\n float r = texture2D(u_curl, uv + vec2(u_texel.x, 0.0)).x;\n float l = texture2D(u_curl, uv - vec2(u_texel.x, 0.0)).x;\n float t = texture2D(u_curl, uv + vec2(0.0, u_texel.y)).x;\n float b = texture2D(u_curl, uv - vec2(0.0, u_texel.y)).x;\n float c = texture2D(u_curl, uv).x;\n vec2 grad = 0.5 * vec2(abs(r) - abs(l), abs(t) - abs(b));\n vec2 n = grad / (length(grad) + 1e-5);\n vec2 force = u_eps * c * vec2(n.y, -n.x);\n vec2 v = texture2D(u_vel, uv).xy + force * u_dt;\n gl_FragColor = vec4(clamp(v, -64.0, 64.0), 0.0, 1.0);\n}",divergence:"\nprecision highp float;\nuniform sampler2D u_vel;\nuniform vec2 u_texel;\nvoid main() {\n vec2 uv = gl_FragCoord.xy * u_texel;\n float r = texture2D(u_vel, uv + vec2(u_texel.x, 0.0)).x;\n float l = texture2D(u_vel, uv - vec2(u_texel.x, 0.0)).x;\n float t = texture2D(u_vel, uv + vec2(0.0, u_texel.y)).y;\n float b = texture2D(u_vel, uv - vec2(0.0, u_texel.y)).y;\n vec2 c = texture2D(u_vel, uv).xy;\n if (uv.x - u_texel.x < 0.0) l = -c.x;\n if (uv.x + u_texel.x > 1.0) r = -c.x;\n if (uv.y - u_texel.y < 0.0) b = -c.y;\n if (uv.y + u_texel.y > 1.0) t = -c.y;\n gl_FragColor = vec4(0.5 * ((r - l) + (t - b)), 0.0, 0.0, 1.0);\n}",jacobi:"\nprecision highp float;\nuniform sampler2D u_p;\nuniform sampler2D u_div;\nuniform vec2 u_texel;\nvoid main() {\n vec2 uv = gl_FragCoord.xy * u_texel;\n float r = texture2D(u_p, uv + vec2(u_texel.x, 0.0)).x;\n float l = texture2D(u_p, uv - vec2(u_texel.x, 0.0)).x;\n float t = texture2D(u_p, uv + vec2(0.0, u_texel.y)).x;\n float b = texture2D(u_p, uv - vec2(0.0, u_texel.y)).x;\n float d = texture2D(u_div, uv).x;\n gl_FragColor = vec4((r + l + t + b - d) * 0.25, 0.0, 0.0, 1.0);\n}",subtract:"\nprecision highp float;\nuniform sampler2D u_p;\nuniform sampler2D u_vel;\nuniform vec2 u_texel;\nvoid main() {\n vec2 uv = gl_FragCoord.xy * u_texel;\n float r = texture2D(u_p, uv + vec2(u_texel.x, 0.0)).x;\n float l = texture2D(u_p, uv - vec2(u_texel.x, 0.0)).x;\n float t = texture2D(u_p, uv + vec2(0.0, u_texel.y)).x;\n float b = texture2D(u_p, uv - vec2(0.0, u_texel.y)).x;\n vec2 v = texture2D(u_vel, uv).xy - 0.5 * vec2(r - l, t - b);\n gl_FragColor = vec4(v, 0.0, 1.0);\n}",decay:"\nprecision highp float;\nuniform sampler2D u_tex;\nuniform vec2 u_texel;\nuniform float u_value;\nvoid main() {\n gl_FragColor = texture2D(u_tex, gl_FragCoord.xy * u_texel) * u_value;\n}"},splatColor:function(e,t,r){var n=null!=e.dyeAmount?e.dyeAmount:.6;if(!e.rainbow){var o=f(e.tint||"#7FD4FF");return[o[0]*n,o[1]*n,o[2]*n]}var i=Math.atan2(r,t);return[(.5+.5*Math.cos(i))*n,(.5+.5*Math.cos(i+2.0944))*n,(.5+.5*Math.cos(i+4.1888))*n]},step:function(e,t,r){var n=Math.min(r.dt,1/30),o=1/e.res.sim,i=1/e.res.dye,a=function(e,t){return Math.pow(e,60*t)};if(r.moving){var s=null!=t.force?t.force:1;e.use("splat"),e.f1("u_radius",null!=t.radius?t.radius:.1),e.f1("u_aspect",r.aspect),e.f2("u_point",r.px,r.py),e.f2("u_texel",o,o),e.smp("u_src",e.read("velocity"),0),e.f3("u_amount",r.dx*s,r.dy*s,0),e.blit(e.write("velocity")),e.swap("velocity"),e.f2("u_texel",i,i),e.smp("u_src",e.read("dye"),0),e.f3("u_amount",r.col[0],r.col[1],r.col[2]),e.blit(e.write("dye")),e.swap("dye")}e.use("curl"),e.f2("u_texel",o,o),e.smp("u_vel",e.read("velocity"),0),e.blit(e.single("vorticity")),e.use("confine"),e.f2("u_texel",o,o),e.f1("u_eps",null!=t.curl?t.curl:2.2),e.f1("u_dt",n),e.smp("u_vel",e.read("velocity"),0),e.smp("u_curl",e.single("vorticity"),1),e.blit(e.write("velocity")),e.swap("velocity"),e.use("divergence"),e.f2("u_texel",o,o),e.smp("u_vel",e.read("velocity"),0),e.blit(e.single("divergence")),e.use("decay"),e.f2("u_texel",o,o),e.f1("u_value",a(null!=t.pressure?t.pressure:.8,n)),e.smp("u_tex",e.read("pressure"),0),e.blit(e.write("pressure")),e.swap("pressure"),e.use("jacobi"),e.f2("u_texel",o,o),e.smp("u_div",e.single("divergence"),1);for(var l=Math.max(1,Math.min(t.pressureIterations||6,40)),c=0;c<l;c++)e.smp("u_p",e.read("pressure"),0),e.blit(e.write("pressure")),e.swap("pressure");e.use("subtract"),e.f2("u_texel",o,o),e.smp("u_p",e.read("pressure"),0),e.smp("u_vel",e.read("velocity"),1),e.blit(e.write("velocity")),e.swap("velocity"),e.use("advect"),e.f1("u_dt",n),e.f2("u_texel",o,o),e.smp("u_vel",e.read("velocity"),0),e.smp("u_src",e.read("velocity"),0),e.f1("u_diss",a(null!=t.decay?t.decay:.985,n)),e.blit(e.write("velocity")),e.swap("velocity"),e.f2("u_texel",i,i),e.smp("u_vel",e.read("velocity"),0),e.smp("u_src",e.read("dye"),1),e.f1("u_diss",a(null!=t.dyeFade?t.dyeFade:.97,n)),e.blit(e.write("dye")),e.swap("dye")}}},blobs:{doc:{summary:"Liquid-glass blobs that follow the pointer: a chain of metaballs refracting the content behind them, stretching apart on a fast flick and relaxing back to a single circle at rest.",params:{count:{default:1,unit:"count",structural:!0,summary:"independent drifting blobs, on top of the trail chain"},trail:{default:7,unit:"count",structural:!0,summary:"blobs in the follow-the-leader chain. Unrolled at compile time, so it rebuilds."},radius:{default:46,unit:"px",summary:"blob radius at rest"},color:{default:"#EAF4EE",unit:"color",summary:"glass tint"},refract:{default:70,unit:"px",summary:"how far the glass bends what is behind it"},rim:{default:.6,unit:"ratio",summary:"brightness of the rim light"},alpha:{default:1,unit:"ratio",summary:"overall opacity"},iridescence:{default:.8,unit:"ratio",summary:"colour shift across the rim"},dispersion:{default:1,unit:"ratio",summary:"per-channel refraction spread"},frost:{default:.25,unit:"ratio",summary:"blur of what shows through"}}},structural:["count","trail"],stage:"color",overlay:!0,mips:!0,decl:function(e){return"\n uniform vec3 ".concat(e,"blobs[").concat(12,"];\n uniform int ").concat(e,"count;\n uniform vec3 ").concat(e,"tint;\n uniform float ").concat(e,"refract;\n uniform float ").concat(e,"rim;\n uniform float ").concat(e,"alpha;\n uniform float ").concat(e,"irid;\n uniform float ").concat(e,"disp;\n uniform float ").concat(e,"frost;\n float ").concat(e,"hash(vec3 v) {\n return fract(sin(dot(v, vec3(21.9898, 63.233, 41.719))) * 41739.317);\n }\n float ").concat(e,"noise(vec3 v) {\n vec3 f = floor(v);\n vec3 r = v - f;\n r = r * r * (3.0 - 2.0 * r);\n float c000 = ").concat(e,"hash(f);\n float c100 = ").concat(e,"hash(f + vec3(1.0, 0.0, 0.0));\n float c010 = ").concat(e,"hash(f + vec3(0.0, 1.0, 0.0));\n float c110 = ").concat(e,"hash(f + vec3(1.0, 1.0, 0.0));\n float c001 = ").concat(e,"hash(f + vec3(0.0, 0.0, 1.0));\n float c101 = ").concat(e,"hash(f + vec3(1.0, 0.0, 1.0));\n float c011 = ").concat(e,"hash(f + vec3(0.0, 1.0, 1.0));\n float c111 = ").concat(e,"hash(f + vec3(1.0, 1.0, 1.0));\n return mix(\n mix(mix(c000, c100, r.x), mix(c010, c110, r.x), r.y),\n mix(mix(c001, c101, r.x), mix(c011, c111, r.x), r.y), r.z);\n }")},code:function(e){return"\n {\n float field = 0.0;\n vec2 grad = vec2(0.0);\n for (int bi = 0; bi < ".concat(12,"; bi++) {\n if (bi >= ").concat(e,"count) break;\n vec2 bd = frag - ").concat(e,"blobs[bi].xy;\n float br = ").concat(e,"blobs[bi].z;\n float dd = max(dot(bd, bd), 1.0);\n field += (br * br) / dd;\n grad += (-2.0 * (br * br) / (dd * dd)) * bd;\n }\n float bmask = smoothstep(0.6, 1.0, field);\n if (bmask > 0.003) {\n float gmag = length(grad);\n vec2 g2 = gmag > 1e-6 ? -grad / gmag : vec2(0.0);\n // Pseudo-3D surface normal from the 2D field. For a\n // metaball field (sum of r^2/d^2), 1/sqrt(field) IS the\n // normalized radial position: 0 at the centre, 1 at the\n // surface. That yields a true hemisphere profile — the\n // curvature (and therefore refraction) varies smoothly\n // across the WHOLE disc, not just an edge annulus.\n float s = clamp(inversesqrt(max(field, 1e-4)), 0.0, 1.0);\n vec3 n = normalize(vec3(g2 * s, sqrt(max(1.0 - s * s, 0.004))));\n vec3 rd = vec3(0.0, 0.0, -1.0);\n\n // Dispersion: refract each channel with a slightly\n // different index (water-glass ~1.33). Near the rim the\n // exit direction flattens (|z| -> 0), so the sampling\n // offsets stretch — producing the smooth concentric\n // colour-fringed bands of a thick lens.\n float ca = 0.03 * ").concat(e,"disp;\n vec3 tR = refract(rd, n, 1.0 / (1.33 - ca));\n vec3 tG = refract(rd, n, 1.0 / 1.33);\n vec3 tB = refract(rd, n, 1.0 / (1.33 + ca));\n vec2 oR = tR.xy * (").concat(e,"refract / max(abs(tR.z), 0.3));\n vec2 oG = tG.xy * (").concat(e,"refract / max(abs(tG.z), 0.3));\n vec2 oB = tB.xy * (").concat(e,"refract / max(abs(tB.z), 0.3));\n\n // Blur grows with how far the ray was bent (mip bias), so\n // strongly-refracted regions smear smoothly instead of\n // showing sharp displaced copies. frost adds a base blur.\n float lod = ").concat(e,"frost * 5.0 + log2(1.0 + length(oG) * 0.035);\n vec2 px = 1.0 / u_res;\n vec4 sG = texture2D(u_tex, clamp(uv + oG * px, 0.002, 0.998), lod);\n vec3 refr;\n refr.r = texture2D(u_tex, clamp(uv + oR * px, 0.002, 0.998), lod).r;\n refr.g = sG.g;\n refr.b = texture2D(u_tex, clamp(uv + oB * px, 0.002, 0.998), lod).b;\n // Blend in (approximately) linear light for clean fringes.\n refr = pow(max(refr, 0.0), vec3(2.2));\n\n vec3 tintLin = pow(").concat(e,"tint, vec3(2.2));\n vec3 bodyLin = mix(tintLin * 0.35, refr, sG.a);\n\n // Glass darkens toward the silhouette (absorption), the\n // opposite of an additive glow ring.\n float edge = pow(1.0 - clamp(n.z, 0.0, 1.0), 1.5);\n bodyLin *= 1.0 - 0.35 * ").concat(e,"rim * edge;\n vec3 body = pow(max(bodyLin, 0.0), vec3(1.0 / 2.2));\n\n // Sparse iridescent glints: two drifting value-noise\n // fields sampled on the reflection direction, one warm\n // one cool, sharpened hard so only sparkles survive.\n vec3 rf = reflect(rd, n);\n float nA = ").concat(e,"noise(rf * 2.3 + u_time * 0.5);\n float nB = ").concat(e,"noise(rf * 2.3 - u_time * 0.5);\n vec3 glint = pow(max(vec3(0.30, 0.52, 0.86) * nA +\n vec3(0.80, 0.56, 0.34) * nB, 0.0), vec3(6.0));\n body += glint * ").concat(e,"irid;\n\n // Small hard specular from a fixed key light.\n vec3 L = normalize(vec3(-0.5, 0.7, 0.6));\n float spec = pow(max(dot(reflect(-L, n), vec3(0.0, 0.0, 1.0)), 0.0), 60.0);\n body += spec * 0.35;\n\n ovCol = body;\n ovA = max(ovA, bmask * ").concat(e,"alpha);\n }\n }")},uniforms:function(e,t){return{tint:["3fv",f(e.color||"#EAF4EE")],refract:["1f",(null!=e.refract?e.refract:70)*t],rim:["1f",null!=e.rim?e.rim:.6],alpha:["1f",null!=e.alpha?e.alpha:1],irid:["1f",null!=e.iridescence?e.iridescence:.8],disp:["1f",null!=e.dispersion?e.dispersion:1],frost:["1f",null!=e.frost?e.frost:.25]}},init:function(e,t,r,n){for(var o=(e.radius||46)*t,i=Math.max(1,Math.min(null!=e.trail?e.trail:7,12)),a=[],s=0,l=0;l<i;l++){var c=Math.pow(.86,l);a.push(c),s+=c*c}for(var u=Math.sqrt(s),d=a.map(function(e){return o*e/u}),f=a.map(function(e,t){return.85*o*Math.pow(.955,t)}),p=function(e,t){return e+Math.random()*(t-e)},h=Math.max(0,Math.min((e.count||1)-1,12-i)),y=[],m=0;m<h;m++){var v=p(0,2*Math.PI),b=p(30,80)*t;y.push({x:p(o,r-o),y:p(o,n-o),r:o*p(.45,.8),vx:Math.cos(v)*b,vy:Math.sin(v)*b,phase:p(0,2*Math.PI)})}for(var g={x:.5*r,y:.55*n},w=[],_=0;_<i;_++)w.push({x:g.x,y:g.y});return{head:g,chain:w,nTrail:i,drifters:y,trailIdleR:d,trailMoveR:f,stretch:0,seg:.9*o}},tick:function(e,t){var r=Math.min(t.dt,.05),n=t.w,o=t.h,a=1-Math.exp(9*-r);e.head.x+=(t.mouseX-e.head.x)*a,e.head.y+=(t.mouseY-e.head.y)*a;var s=e.chain;s[0].x=e.head.x,s[0].y=e.head.y;for(var l=1-Math.exp(16*-r),c=1;c<s.length;c++){var u=s[c-1],d=s[c],f=u.x-d.x,p=u.y-d.y,h=Math.hypot(f,p)||1e-4,y=e.seg;h>y&&(d.x+=f*(1-y/h),d.y+=p*(1-y/h)),d.x+=(u.x-d.x)*l,d.y+=(u.y-d.y)*l}var m=s[s.length-1],v=Math.hypot(m.x-e.head.x,m.y-e.head.y),b=Math.max(1,e.seg*(e.nTrail-1)),g=Math.min(1,v/b);e.stretch+=(g-e.stretch)*(1-Math.exp(8*-r));var w,_=i(e.drifters);try{for(_.s();!(w=_.n()).done;){var x=w.value;x.x+=x.vx*r,x.y+=x.vy*r,x.x<x.r?(x.x=x.r,x.vx=Math.abs(x.vx)):x.x>n-x.r&&(x.x=n-x.r,x.vx=-Math.abs(x.vx)),x.y<x.r?(x.y=x.r,x.vy=Math.abs(x.vy)):x.y>o-x.r&&(x.y=o-x.r,x.vy=-Math.abs(x.vy)),x.phase+=1.6*r}}catch(e){_.e(e)}finally{_.f()}for(var k=new Float32Array(36),O=e.stretch,S=0;S<e.nTrail;S++){var E=s[S];k[3*S]=E.x,k[3*S+1]=E.y,k[3*S+2]=e.trailIdleR[S]+(e.trailMoveR[S]-e.trailIdleR[S])*O}return e.drifters.forEach(function(t,r){var n=e.nTrail+r;k[3*n]=t.x,k[3*n+1]=t.y,k[3*n+2]=t.r*(1+.12*Math.sin(t.phase))}),[{name:"blobs",kind:"3fv",value:k},{name:"count",kind:"1i",value:e.nTrail+e.drifters.length}]}}};function f(e){return[1,3,5].map(function(t){return parseInt(e.slice(t,t+2),16)/255})}var p=Object.keys(d).concat("switch"),h=["px","ratio","deg","count","seconds"];function y(e,t,r){if(!Array.isArray(r)||r.length<2)return!1;var n,o=i(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("number"!=typeof a||!Number.isFinite(a))return!1}}catch(e){o.e(e)}finally{o.f()}var s=d[e],l=s&&s.doc&&s.doc.params&&s.doc.params[t];return!!l&&h.includes(l.unit)}function m(e,t){var r=e.length-1,n=Math.min(1,Math.max(0,t))*r,o=Math.min(r-1,Math.floor(n));return e[o]+(e[o+1]-e[o])*(n-o)}var v={linear:function(e){return e},in:function(e){return e*e*e},out:function(e){return 1-Math.pow(1-e,3)},"in-out":function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},back:function(e){return 1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2)}},b=Object.keys(v);var g="attribute vec2 a; void main(){ gl_Position = vec4(a, 0.0, 1.0); }",w={warp:["warped"],cell:["center","edge"],displace:["sampleP","chroma"],color:["col","edgeCol","edgeCov","ovCol","ovA"]},_=(["field"].concat(n(Object.keys(w))),"what steers the effect: ".concat(u.join(", "),". "),"easing for this node's local progress: ".concat(b.join(", ")),function(e){return"fld_".concat(String(e).replace(/[^A-Za-z0-9_]/g,""))}),x=function(e){return!0===e.masked?"mask":"string"==typeof e.masked?e.masked:null},k=function(e){return"edge"===e||"edgeCov"===e||"ovA"===e?"float":"col"===e||"edgeCol"===e||"ovCol"===e?"vec3":"vec2"},O={over:function(e,t){return t},add:function(e,t){return"min(".concat(e," + ").concat(t,", vec3(1.0))")},screen:function(e,t){return"1.0 - (1.0 - ".concat(e,") * (1.0 - ").concat(t,")")},multiply:function(e,t){return"".concat(e," * ").concat(t)},difference:function(e,t){return"abs(".concat(e," - ").concat(t,")")},lighten:function(e,t){return"max(".concat(e,", ").concat(t,")")},darken:function(e,t){return"min(".concat(e,", ").concat(t,")")}},S=function(){return{field:"",warp:"",cell:"",displace:"",color:""}};function E(e,t){var r,n=[],o=i(e||[]);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a&&a.op){var s={node:a,i:t.length};t.push(a),"merge"===a.op&&(s.a=E(a.a,t),s.b=E(a.b,t)),n.push(s)}}}catch(e){o.e(e)}finally{o.f()}return n}function j(e,t){var r,n=i(e);try{var o=function(){var e=r.value,n=e.node;if("merge"===n.op)return function(e,t){var r="u".concat(e.i,"_"),n=O[e.node.mode]||O.over,o=S(),i=S();j(e.a||[],o),j(e.b||[],i),t.field+=o.field+i.field;for(var a=function(){var e=l[s];if(!o[e]&&!i[e])return 1;var a=w[e],c=" {\n";a.forEach(function(e,t){c+=" ".concat(k(e)," pre").concat(t," = ").concat(e,";\n")}),c+=o[e],a.forEach(function(e,t){c+=" ".concat(k(e)," bra").concat(t," = ").concat(e,";\n")}),a.forEach(function(e,t){c+=" ".concat(e," = pre").concat(t,";\n")}),c+=i[e],a.forEach(function(e,t){var o="vec3"===k(e)?n("bra".concat(t),e):e;c+=" ".concat(e," = mix(bra").concat(t,", ").concat(o,", ").concat(r,"mix);\n")}),c+=" }\n",t[e]+=c},s=0,l=["warp","cell","displace","color"];s<l.length;s++)a()}(e,t),0;var o=d[n.op];if(!o)return 0;var i="u".concat(e.i,"_"),a=Array.isArray(o.stage)?o.stage:[o.stage],s=x(n);a.forEach(function(e){var r=o.code(i,n,e)+"\n";if(s&&w[e]){var a=w[e],l=a.map(function(e,t){return" ".concat(k(e)," msv").concat(t," = ").concat(e,";")}).join("\n"),c=a.map(function(e,t){return" ".concat(e," = mix(msv").concat(t,", ").concat(e,", ").concat(_(s),");")}).join("\n");r=" {\n".concat(l,"\n").concat(r,"\n").concat(c,"\n }\n")}t["field"===e||"warp"===e||"cell"===e||"displace"===e?e:"color"]+=r})};for(n.s();!(r=n.n()).done;)o()}catch(e){n.e(e)}finally{n.f()}}function P(e,t,r,o){var i=o&&o.fade||"opaque",a="",s=new Set;t.forEach(function(e){var t=d[e.op];t&&t.producesField&&s.add(e.as||"mask");var r=x(e);r&&s.add(r)});var l=n(s).map(function(e){return" float ".concat(_(e)," = 1.0;")}).join("\n");t.forEach(function(e,t){var r=d[e.op];r&&(a+=r.decl("u".concat(t,"_"),e)+"\n")});var c=function(e){var t=e&&e.node&&e.node.side;if("old"!==t&&"new"!==t)return null;var r=d[e.node.op],n=r?Array.isArray(r.stage)?r.stage:[r.stage]:[];return n.every(function(e){return"color"===e})?o?t:(console.warn('[nodality] side:"'.concat(t,'" has no meaning without a ')+"transition — there is only one image. Ignoring it."),null):(console.warn('[nodality] "'.concat(e.node.op,'" is a ').concat(n.join("+")," op, ")+'so side:"'.concat(t,'" cannot apply to it — a sided op must be colour-only, ')+"because both sides share one sampling coordinate. Running it on the blended result instead."),null)},u=e.filter(function(e){return!c(e)}),f=e.filter(function(e){return"old"===c(e)}),p=e.filter(function(e){return"new"===c(e)}),h=S();j(u,h);var y=function(e,t){if(!e.length)return"";var r=S();if(j(e,r),!r.color)return"";var n=w.color.filter(function(e){return"col"!==e}).map(function(e){return" ".concat(k(e)," ").concat(e," = ").concat("vec3"===k(e)?"vec3(0.0)":"0.0",";")}).join("\n");return" {\n vec2 frag = p;\n vec3 col = ".concat(t,".rgb;\n").concat(n,"\n").concat(r.color,"\n ").concat(t,".rgb = col;\n }\n")},m=y(f,"o"),v=y(p,"n"),b=h.field,g=h.warp,O=h.cell,E=h.displace,P=h.color,C=t,T=C.some(function(e){return"edges"===e.op})?"":" col *= 1.0 - edge * 0.55;",A=C.some(function(e){return(d[e.op]||{}).chroma})?o?"\n vec2 cdev = vec2(chroma.x, chroma.y);\n col.r = nodSampleAt(sampleP + cdev).r;\n col.b = nodSampleAt(sampleP - cdev).b;":"\n vec2 cpx = vec2(chroma.x, -chroma.y) / u_res;\n col.r = texture2D(u_tex, clamp(uv + cpx, 0.001, 0.999)).r;\n col.b = texture2D(u_tex, clamp(uv - cpx, 0.001, 0.999)).b;":"",R=r?"u_probe + vec2(0.5)":"gl_FragCoord.xy";return"\nprecision highp float;\nuniform sampler2D u_tex;\nuniform vec2 u_res;\nuniform vec2 u_mouse;\nuniform float u_time;\nuniform float u_t; // phase T1: transition progress, 0..1\n\n// Op uniforms are declared HERE, above the transition helpers, because a\n// per-side op's code is emitted inside nodSampleAt. GLSL requires\n// declaration before use, and with the declarations further down every\n// sided op failed to compile with \"'u0_amount' : undeclared identifier\".\n".concat(r?"uniform vec2 u_probe;\n":"").concat(a,"\n").concat(o?"\n// ── phase T2: transition mode ──────────────────────────────────────\n// Two captures instead of one. u_tex is the NEW element, u_old the\n// frozen OLD one, and u_box is the content box they are both drawn\n// into — lerped from the old rect to the new rect by u_t. So geometry\n// (the box) and pixels (the effect chain) stay separate problems, which\n// is the split View Transitions also makes and the one that keeps this\n// maintainable.\nuniform sampler2D u_old;\n".concat(o&&o.newImage?"uniform sampler2D u_newimg;":"",'\n// Phase T2, gap 2. TWO boxes, not one. With a single shared box the\n// only expressible motion is "both sides march together", so the classic\n// "old slides out while new slides in" was impossible. Each capture now\n// interpolates in its own rect, which keeps per-side motion in the\n// GEOMETRY tier (P-3) instead of needing per-side op scoping.\nuniform vec4 u_boxOld; // x, y, w, h — device px, top-down\nuniform vec4 u_boxNew;\n\n// sRGB <-> linear. A naive crossfade in gamma space dips visibly in\n// brightness at mid-fade on photographic content; this is the classic\n// artifact and it is why the mix below is not just mix().\nvec3 nodToLinear(vec3 c) { return pow(c, vec3(2.2)); }\nvec3 nodToSRGB(vec3 c) { return pow(c, vec3(1.0 / 2.2)); }\n\n// Premultiplied, so anti-aliased edges over transparency do not pick up\n// a dark halo as the two sides cross.\nvec4 nodBlend(vec4 a, vec4 b, float t, float d) {\n vec3 pa = nodToLinear(a.rgb) * a.a;\n vec3 pb = nodToLinear(b.rgb) * b.a;\n').concat("morph"===i?"\n // MORPH — a per-pixel CHOICE, not a mix. d is a stable hash of the\n // output pixel, so each pixel flips from old to new at its own point\n // in t. At any instant almost every pixel is showing exactly ONE\n // side, and the two contents are never both legible at once.\n //\n // A uniform crossfade cannot do this: at t=0.5 it is by definition\n // 50% of each, which reads as a double exposure the moment the two\n // states differ much — a wide nav bar and a small card, say.\n float k = smoothstep(d - 0.12, d + 0.12, t);\n vec3 pm = pa * (1.0 - k) + pb * k;\n float al = a.a * (1.0 - k) + b.a * k;":"dissolve"===i?'\n // DISSOLVE — a true cross-dissolve: alpha lerps between the two.\n // Correct, and the right choice when one side really should fade to\n // nothing. Wrong for a shape morph, because any region covered by\n // only ONE side is translucent for the whole transition and the\n // morph reads as "everything is disappearing".\n vec3 pm = mix(pa, pb, t);\n float al = mix(a.a, b.a, t);':"\n // OPAQUE (default) — the colour crosses over without the shape\n // thinning out. The coverage-weighted lerp already gives that for\n // free, and it is worth seeing why:\n //\n // both sides cover a.a = b.a = 1 -> w = 1 at every t. Solid\n // throughout. No mid-fade.\n // only the old b.a = 0 -> w = 1-t. Releases.\n // only the new a.a = 0 -> w = t. Arrives.\n //\n // So one expression covers the union case AND each side's release,\n // linearly, with no curve to pop against.\n vec3 pm = pa * (1.0 - t) + pb * t;\n float al = a.a * (1.0 - t) + b.a * t;","\n return vec4(nodToSRGB(pm / max(al, 1e-4)), al);\n}\n\n// EVERY fetch in transition mode goes through here. A displace-stage op\n// that sampled u_tex directly — aberration does exactly that for its\n// per-channel taps — would show fringes from the new capture only, with\n// the old one silently absent from those channels.\n// Takes a position in DEVICE PX (sampleP space), not uv, because the two\n// captures no longer share a uv. Each is mapped through its own box and\n// masked to it, then blended.\nvec2 nodBoxUV(vec4 box, vec2 p) {\n return vec2((p.x - box.x) / max(box.z, 1.0),\n 1.0 - (p.y - box.y) / max(box.w, 1.0));\n}\nfloat nodInBox(vec2 uv) {\n return step(0.0, uv.x) * step(uv.x, 1.0) * step(0.0, uv.y) * step(uv.y, 1.0);\n}\nvec4 nodSampleAt(vec2 p) {\n vec2 uo = nodBoxUV(u_boxOld, p);\n vec2 un = nodBoxUV(u_boxNew, p);\n vec4 o = texture2D(u_old, clamp(uo, 0.001, 0.999));\n // With newImage the new side is a capture of the ELEMENT, so both\n // sides can travel between their own rects and converge into one\n // shape. Without it the new side is the HOST capture, which can only\n // be mapped 1:1 — the destination then sits at its final place from\n // t=0 while the old shrinks toward it, and the result reads as two\n // things on screen at once rather than one thing morphing.\n vec4 n = texture2D(").concat(o&&o.newImage?"u_newimg":"u_tex",",\n clamp(un, 0.001, 0.999));\n o.a *= nodInBox(uo);\n n.a *= nodInBox(un);\n").concat(m).concat(v,"\n // The threshold each pixel flips at. Mostly a COHERENT ramp down the\n // box with a little grain on top — pure white noise chooses correctly\n // (never two legible images at once) but reads as television static\n // rather than as one thing becoming another. The ramp makes it a\n // wipe; the grain keeps the edge from looking like a ruler.\n float grain = fract(sin(dot(floor(p / 3.0), vec2(12.9898, 78.233))) * 43758.5453);\n float ramp = clamp(un.y, 0.0, 1.0);\n float d = ramp * 0.82 + grain * 0.18;\n return nodBlend(o, n, u_t, d);\n}"):"","\nvoid main() {\n vec2 fc = ").concat(R,";\n vec2 frag = vec2(fc.x, u_res.y - fc.y);\n").concat(l,"\n").concat(b,"\n vec2 warped = frag;\n").concat(g,"\n vec2 center = warped;\n float edge = 0.0;\n").concat(O,"\n vec2 sampleP = warped;\n vec2 chroma = vec2(0.0);\n").concat(E).concat(r?"\n vec2 q = clamp(sampleP / u_res, 0.0, 1.0) * 255.0;\n vec2 hi = floor(q);\n vec2 lo = floor(fract(q) * 255.0);\n gl_FragColor = vec4(hi.x, lo.x, hi.y, lo.y) / 255.0;\n}":"\n".concat(o?"\n // uv stays defined, as the NEW box's, for ops that reference it.\n vec2 uv = nodBoxUV(u_boxNew, sampleP);\n vec4 tex = nodSampleAt(sampleP);":"\n vec2 uv = vec2(sampleP.x / u_res.x, 1.0 - sampleP.y / u_res.y);\n vec4 tex = texture2D(u_tex, clamp(uv, 0.001, 0.999));","\n vec3 col = tex.rgb;").concat(A,"\n vec3 edgeCol = vec3(1.0);\n float edgeCov = 0.0;\n vec3 ovCol = vec3(0.0);\n float ovA = 0.0;\n").concat(P,"\n").concat(T,"\n // content OVER border\n float baseA = tex.a + edgeCov * (1.0 - tex.a);\n vec3 baseRGB = (col * tex.a + edgeCol * edgeCov * (1.0 - tex.a)) / max(baseA, 1e-4);\n // overlay OVER (content+border)\n float outA = ovA + baseA * (1.0 - ovA);\n vec3 outRGB = (ovCol * ovA + baseRGB * baseA * (1.0 - ovA)) / max(outA, 1e-4);\n gl_FragColor = vec4(outRGB, outA);\n}"))}var C=/\d(?:vw|vh|vmin|vmax|dvw|dvh|svw|svh|lvw|lvh)\b/i,T=["color","font-family","font-size","font-weight","font-style","line-height","letter-spacing","text-align","text-transform","text-decoration-color","white-space","word-break"],A=["background-color","background-image","background-size","background-position","background-repeat","background-clip","border-radius","box-shadow","opacity","outline-color"],R=new Set(["none","rgba(0, 0, 0, 0)","transparent","0px","auto","1","repeat","0% 0%","border-box","0% 0% / auto repeat scroll padding-box border-box"]);var M={coarse:"(pointer: coarse)",fine:"(pointer: fine)",hover:"(hover: hover)","no-hover":"(hover: none)","reduced-motion":"(prefers-reduced-motion: reduce)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"};function D(e){if("function"==typeof e)try{return!!e()}catch(e){return!1}if("boolean"==typeof e)return e;if("string"!=typeof e||""===e)return!1;var t=M[e]||e;if("undefined"==typeof window||"function"!=typeof window.matchMedia)return!1;try{return window.matchMedia(t).matches}catch(e){return!1}}function I(e,t){if(!Array.isArray(e))return[];if((t||0)>8)return[];var r,n=[],o=i(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a&&"switch"===a.op){var s,l=i(I((D(a.when)?a.use:a.else)||[],(t||0)+1));try{for(l.s();!(s=l.n()).done;){var c=s.value;n.push(c)}}catch(e){l.e(e)}finally{l.f()}}else n.push(a)}}catch(e){o.e(e)}finally{o.f()}return n}var L=new Set(["IMG","VIDEO","CANVAS","IFRAME","INPUT","EMBED","OBJECT","TEXTAREA","SELECT","BR","HR","AREA","SOURCE","TRACK","WBR"]),B=["objectFit","objectPosition","borderRadius","imageRendering","filter"],W="nodality:raster-param",F=new Set;function z(){return n(F)}var q=["op","masked","live"],N=!1;function U(e,t,r){var s=t,l=r&&r.transition||null;if(!e||"undefined"==typeof document||"undefined"==typeof window)return null;if(!(t&&0!==t.length||l))return null;if(t||(t=[]),t.some(function(e){return e&&"switch"===e.op})&&0===(t=I(t,0)).length&&!l)return null;var f=[],p=E(t,f);if(t=f,"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)return null;if(L.has(e.tagName)){var h=e.parentElement&&e.parentElement.hasAttribute&&e.parentElement.hasAttribute("data-nodality-raster-host")?e.parentElement:null;if(e=h||function(e){if(!e.parentNode)return null;var t,r={},n=i(B);try{for(n.s();!(t=n.n()).done;){var o=t.value;e.style[o]&&(r[o]=e.style[o])}}catch(e){n.e(e)}finally{n.f()}var a=document.createElement("div");return a.setAttribute("data-nodality-raster-host",e.tagName.toLowerCase()),a.style.cssText=e.style.cssText,e.parentNode.insertBefore(a,e),a.appendChild(e),e.removeAttribute("style"),Object.assign(e.style,r),e.style.display="block",e.style.width="100%",e.style.height="100%","static"===("function"==typeof getComputedStyle?getComputedStyle(a).position:"static")&&(a.style.position="relative"),a.style.width||(a.style.width="100%"),a.style.height||(a.style.height="100%"),a}(e),!e)return null}if(e.querySelector&&e.querySelector(":scope > canvas[data-nodality-raster]"))return null;var b=function(){var t=e.getBoundingClientRect();return{width:t.width>=2?t.width:e.scrollWidth||0,height:t.height>=2?t.height:e.scrollHeight||0}},w=b();if(w.width<2||w.height<2)return null;var _=Math.max(1,Math.min(r&&r.resolution?r.resolution:window.devicePixelRatio||1,3)),k=t.some(function(e){return(d[e.op]||{}).overlay}),O=t.length>0&&!l&&t.every(function(e){return(d[e.op]||{}).overlay}),S=!(!l||!0!==l.live),j=!O&&(!l||S)&&!t.some(function(e){return!1===e.live}),M="undefined"!=typeof WebGL2RenderingContext&&"texElementImage2D"in WebGL2RenderingContext.prototype||"undefined"!=typeof WebGLRenderingContext&&"texElementImage2D"in WebGLRenderingContext.prototype,D=j&&M;j&&!D&&console.info("[nodality] HTML-in-Canvas API not available - raster ops fall back to snapshot capture.");var z=document.createElement("canvas");D&&z.setAttribute("layoutsubtree","");var H={alpha:!0,premultipliedAlpha:!1},G=z.getContext("webgl2",H)||z.getContext("webgl",H);if(!G)return null;var K="undefined"!=typeof WebGL2RenderingContext&&G instanceof WebGL2RenderingContext,X=K&&t.some(function(e){return(d[e.op]||{}).mips});D&&!("texElementImage2D"in G)&&(console.info("[nodality] texElementImage2D missing on the created context - snapshot fallback."),z.removeAttribute("layoutsubtree"),D=!1),"static"===window.getComputedStyle(e).position&&(e.style.position="relative"),z.width=Math.round(w.width*_),z.height=Math.round(w.height*_),z.setAttribute("data-nodality-raster",D?"live":"snapshot"),console.info("[nodality] raster backend:",D?"html-in-canvas (live)":"snapshot");var J={width:w.width,height:w.height},$=e;if(D){var V=document.createElement("div"),Y=getComputedStyle(e),Q="flex"===Y.display||"inline-flex"===Y.display,Z="grid"===Y.display||"inline-grid"===Y.display,ee=function(e){return parseFloat(e)||0},te=ee(Y.paddingLeft)+ee(Y.paddingRight),re=ee(Y.paddingTop)+ee(Y.paddingBottom);for(J.width=Math.max(2,w.width-te),J.height=Math.max(2,w.height-re),V.style.cssText="display:".concat(Q||Z?Y.display:"block",";")+"width:".concat(J.width,"px;height:").concat(J.height,"px;"),Z&&(V.style.gridTemplateColumns=Y.gridTemplateColumns,V.style.gridTemplateRows=Y.gridTemplateRows,V.style.gridTemplateAreas=Y.gridTemplateAreas,V.style.gap=Y.gap,V.style.alignItems=Y.alignItems,V.style.justifyItems=Y.justifyItems),Q&&(V.style.flexDirection=Y.flexDirection,V.style.alignItems=Y.alignItems,V.style.justifyContent=Y.justifyContent,V.style.gap=Y.gap);e.firstChild;)V.appendChild(e.firstChild);z.appendChild(V),$=V,z.style.cssText="display:block;width:".concat(J.width,"px;height:").concat(J.height,"px;")}else if(z.style.cssText="position:absolute;top:0;left:0;"+"width:".concat(w.width,"px;height:").concat(w.height,"px;")+"pointer-events:none;z-index:2147483000;",O)z.setAttribute("aria-hidden","true");else{z.setAttribute("role","img");var ne=(e.textContent||"").replace(/\s+/g," ").trim();ne&&z.setAttribute("aria-label",ne.slice(0,300))}e.appendChild(z);var oe=function(e,t){var r=G.createShader(e);if(G.shaderSource(r,t),G.compileShader(r),!G.getShaderParameter(r,G.COMPILE_STATUS))throw new Error("[nodality] raster shader: "+G.getShaderInfoLog(r));return r},ie=G.createProgram();G.attachShader(ie,oe(G.VERTEX_SHADER,g)),G.attachShader(ie,oe(G.FRAGMENT_SHADER,P(p,t,!1,l))),G.bindAttribLocation(ie,0,"a"),G.linkProgram(ie),G.useProgram(ie),G.bindBuffer(G.ARRAY_BUFFER,G.createBuffer()),G.bufferData(G.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),G.STATIC_DRAW),G.enableVertexAttribArray(0),G.vertexAttribPointer(0,2,G.FLOAT,!1,0,0);var ae=function(e){return G.getUniformLocation(ie,e)},se=function(e,t,r){"1f"===t?G.uniform1f(e,r):"1i"===t?G.uniform1i(e,r):"2fv"===t?G.uniform2fv(e,r):"3fv"===t&&G.uniform3fv(e,r)},le=0,ce=t.map(function(e,t){return{node:e,i:t}}).filter(function(e){return function(e){for(var t in e)if(y(e.op,t,e[t]))return!0;return!1}(e.node)}),ue=function(e,r){t.forEach(function(t,n){if(!r||r.has(n)){var o=d[t.op];if(o&&o.uniforms){var i=o.uniforms(function(e,t){var r=null,n=e.window||e.ease?function(e,t){var r=Math.min(1,Math.max(0,t)),n=e.window;Array.isArray(n)&&2===n.length&&n[1]!==n[0]&&(r=Math.min(1,Math.max(0,(r-n[0])/(n[1]-n[0]))));var o=e.ease&&v[e.ease];return o?o(r):r}(e,t):t;for(var o in e)y(e.op,o,e[o])&&((r=r||Object.assign({},e))[o]=m(e[o],n));return r||e}(t,le),_);for(var a in i)se(e("u".concat(n,"_").concat(a)),i[a][0],i[a][1])}}})};ue(ae);var de=new Set(ce.map(function(e){return e.i})),fe=[];t.forEach(function(e,t){var r=d[e.op];r&&"function"==typeof r.init&&fe.push({i:t,def:r,state:r.init(e,_,z.width,z.height)})});var pe="undefined"!=typeof performance?performance.now():0,he=[];t.forEach(function(e,t){var r=d[e.op];if(r&&r.solver){var n=function(e,t){var r=d[e.op];if(!K||!G.getExtension("EXT_color_buffer_float"))return console.info("[nodality] '"+e.op+"' needs WebGL2 float render targets - op skipped."),null;G.getExtension("OES_texture_float_linear");var n=r.solver.resolutions(e,z.width,z.height),o={r:[G.R16F,G.RED],rg:[G.RG16F,G.RG],rgba:[G.RGBA16F,G.RGBA]},i=[],s=function(e,t,r,n){var s=a(o[r],2),l=s[0],c=s[1],u=G.createTexture();G.bindTexture(G.TEXTURE_2D,u);var d=n?G.LINEAR:G.NEAREST;G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MIN_FILTER,d),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MAG_FILTER,d),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_S,G.CLAMP_TO_EDGE),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_T,G.CLAMP_TO_EDGE),G.texImage2D(G.TEXTURE_2D,0,l,e,t,0,c,G.HALF_FLOAT,null);var f=G.createFramebuffer();G.bindFramebuffer(G.FRAMEBUFFER,f),G.framebufferTexture2D(G.FRAMEBUFFER,G.COLOR_ATTACHMENT0,G.TEXTURE_2D,u,0);var p=G.checkFramebufferStatus(G.FRAMEBUFFER)===G.FRAMEBUFFER_COMPLETE;G.viewport(0,0,e,t),G.clearColor(0,0,0,1),G.clear(G.COLOR_BUFFER_BIT);var h={tex:u,fbo:f,w:e,h:t,ok:p};return i.push(h),h},l={},c=!0;for(var u in r.solver.targets){var f=r.solver.targets[u],p=n[f.res],h=a(Array.isArray(p)?p:[p,p],2),y=h[0],m=h[1];f.double?(l[u]={a:s(y,m,f.fmt,f.smooth),b:s(y,m,f.fmt,f.smooth)},c=c&&l[u].a.ok&&l[u].b.ok):(l[u]={a:s(y,m,f.fmt,f.smooth)},c=c&&l[u].a.ok)}G.bindFramebuffer(G.FRAMEBUFFER,null);var v=function(){return i.forEach(function(e){G.deleteFramebuffer(e.fbo),G.deleteTexture(e.tex)})};if(!c)return console.info("[nodality] '"+e.op+"' float targets incomplete - op skipped."),v(),null;var b={};try{for(var w in r.solver.programs){var _=G.createProgram();if(G.attachShader(_,oe(G.VERTEX_SHADER,g)),G.attachShader(_,oe(G.FRAGMENT_SHADER,r.solver.programs[w])),G.bindAttribLocation(_,0,"a"),G.linkProgram(_),!G.getProgramParameter(_,G.LINK_STATUS))throw new Error(w+": "+G.getProgramInfoLog(_));b[w]={prog:_,loc:{}}}}catch(t){for(var x in console.warn("[nodality] '"+e.op+"' solver programs failed:",t),v(),b)G.deleteProgram(b[x].prog);return null}return G.useProgram(ie),{i:t,node:e,def:r,res:n,targets:l,progs:b,cleanup:v,prevX:.5,prevY:.5,primed:!1}}(e,t);n&&he.push(n)}});var ye=function(e,t){var r=null,n={res:e.res,use:function(t){r=e.progs[t],G.useProgram(r.prog)},u:function(e){return e in r.loc||(r.loc[e]=G.getUniformLocation(r.prog,e)),r.loc[e]},f1:function(e,t){G.uniform1f(n.u(e),t)},f2:function(e,t,r){G.uniform2f(n.u(e),t,r)},f3:function(e,t,r,o){G.uniform3f(n.u(e),t,r,o)},smp:function(e,t,r){G.activeTexture(G.TEXTURE0+r),G.bindTexture(G.TEXTURE_2D,t.tex),G.uniform1i(n.u(e),r)},read:function(t){return e.targets[t].a},write:function(t){return e.targets[t].b},single:function(t){return e.targets[t].a},content:{tex:me},canvasW:z.width,canvasH:z.height,swap:function(t){var r=e.targets[t],n=r.a;r.a=r.b,r.b=n},blit:function(e){G.bindFramebuffer(G.FRAMEBUFFER,e.fbo),G.viewport(0,0,e.w,e.h),G.drawArrays(G.TRIANGLES,0,3)}},o=Me[0]/z.width,i=1-Me[1]/z.height,a=0,s=0;e.primed&&De&&(a=(o-e.prevX)/Math.max(t,.001),s=(i-e.prevY)/Math.max(t,.001)),e.prevX=o,e.prevY=i,e.primed=!0;var l=De&&Math.abs(a)+Math.abs(s)>.001;e.def.solver.step(n,e.node,{dt:t,px:o,py:i,dx:a,dy:s,moving:l,aspect:z.width/Math.max(z.height,1),col:e.def.solver.splatColor(e.node,a,s)})},me=G.createTexture();G.bindTexture(G.TEXTURE_2D,me),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MIN_FILTER,X?G.LINEAR_MIPMAP_LINEAR:G.LINEAR),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_S,G.CLAMP_TO_EDGE),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_T,G.CLAMP_TO_EDGE),G.pixelStorei(G.UNPACK_FLIP_Y_WEBGL,!0);var ve=function(){X&&G.generateMipmap(G.TEXTURE_2D)},be=!1,ge=null,we=null;if(l&&l.oldImage){ge=G.createTexture(),G.bindTexture(G.TEXTURE_2D,ge),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MIN_FILTER,G.LINEAR),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MAG_FILTER,G.LINEAR),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_S,G.CLAMP_TO_EDGE),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_T,G.CLAMP_TO_EDGE);try{G.texImage2D(G.TEXTURE_2D,0,G.RGBA,G.RGBA,G.UNSIGNED_BYTE,l.oldImage)}catch(e){console.warn("[nodality] transition: old capture upload failed:",e),G.deleteTexture(ge),ge=null}}if(l&&l.newImage){we=G.createTexture(),G.bindTexture(G.TEXTURE_2D,we),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MIN_FILTER,G.LINEAR),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MAG_FILTER,G.LINEAR),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_S,G.CLAMP_TO_EDGE),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_T,G.CLAMP_TO_EDGE);try{G.texImage2D(G.TEXTURE_2D,0,G.RGBA,G.RGBA,G.UNSIGNED_BYTE,l.newImage)}catch(e){console.warn("[nodality] transition: new capture upload failed:",e),G.deleteTexture(we),we=null}}var _e=!1,xe=D?"live":"snapshot",ke=!1,Oe={color:"transparent","-webkit-text-fill-color":"transparent","-webkit-text-stroke-color":"transparent","background-color":"transparent","background-image":"none","border-color":"transparent","box-shadow":"none","text-shadow":"none"},Se=null,Ee=function(){if(!Se){!function(){if(!N&&"undefined"!=typeof document){N=!0;var e=document.createElement("style");e.setAttribute("data-nodality","selection"),e.textContent="[data-nodality-ink]::selection,[data-nodality-ink] *::selection{color:var(--nod-ink);-webkit-text-fill-color:var(--nod-ink)}[data-nodality-ink]::-moz-selection,[data-nodality-ink] *::-moz-selection{color:var(--nod-ink);-webkit-text-fill-color:var(--nod-ink)}",(document.head||document.documentElement).appendChild(e)}}(),Se=[],e.setAttribute("data-nodality-ink","");for(var t=[e].concat(n(e.querySelectorAll("*"))).filter(function(e){return e!==z&&"CANVAS"!==e.tagName}),r=t.map(function(e){return getComputedStyle(e).color}),o=0;o<t.length;o++){var i=t[o],a={op:i.style.getPropertyValue("opacity"),ink:i.style.getPropertyValue("--nod-ink")};for(var s in Oe)a[s]=i.style.getPropertyValue(s);for(var l in Se.push([i,a]),i.style.setProperty("--nod-ink",r[o]),Oe)i.style.setProperty(l,Oe[l],"important");i!==e&&i.matches&&i.matches("img,svg,video,picture,iframe")&&i.style.setProperty("opacity","0","important")}e.style.isolation="isolate",z.style.zIndex="-1"}},je=function(){if(e.style.visibility="",e.removeAttribute("data-nodality-ink"),Se){var t,r=i(Se);try{for(r.s();!(t=r.n()).done;){var n=a(t.value,2),o=n[0],s=n[1];for(var l in Oe)s[l]?o.style.setProperty(l,s[l]):o.style.removeProperty(l);s.op?o.style.setProperty("opacity",s.op):o.style.removeProperty("opacity"),s.ink?o.style.setProperty("--nod-ink",s.ink):o.style.removeProperty("--nod-ink")}}catch(e){r.e(e)}finally{r.f()}Se=null,e.style.isolation="",z.style.zIndex=""}},Pe=function(){if(!l)return!1;var t=le>=1,r=$!==e,n=l.standDownAtStart&&le<=0,o=t&&!r||n?"hidden":"visible";return z.style.visibility!==o&&(z.style.visibility=o),t||n?Se&&je():Se||Ee(),!0},Ce=function(){if(k){var t=function(){var t="IMG"===e.tagName?e:e.querySelector?e.querySelector("img"):null;return t&&t.complete&&t.naturalWidth>0?t:null}();if(t)try{return G.bindTexture(G.TEXTURE_2D,me),G.texImage2D(G.TEXTURE_2D,0,G.RGBA,G.RGBA,G.UNSIGNED_BYTE,t),ve(),be=!0,Promise.resolve()}catch(e){}else if(!ke){var r="IMG"===e.tagName?e:e.querySelector&&e.querySelector("img");r&&(ke=!0,r.addEventListener("load",function(){_e||Ce()},{once:!0}))}}z.style.display="none",je();var o=function(e,t,r,o){var a=function(e){if(!e)return null;var t=null;if("IMG"===e.tagName)t=e;else if(e.children){var r=Array.prototype.filter.call(e.children,function(e){return!e.hasAttribute||!e.hasAttribute("data-nodality-raster")});1===r.length&&"IMG"===r[0].tagName&&(t=r[0])}if(!t||!t.complete||!t.naturalWidth)return null;try{if(new URL(t.currentSrc||t.src,location.href).origin!==location.origin)return null}catch(e){return null}return t}(e);return a?Promise.resolve(function(e,t,r,n){var o=Math.max(1,Math.round(t*n)),i=Math.max(1,Math.round(r*n)),a=e.naturalWidth,s=e.naturalHeight;if(!a||!s)return e;var l="fill",c="50% 50%";if("function"==typeof getComputedStyle){var u=getComputedStyle(e);l=u.objectFit||"fill",c=u.objectPosition||"50% 50%"}if("fill"===l)return e;var d=o/a,f=i/s,p="cover"===l?Math.max(d,f):"contain"===l?Math.min(d,f):"none"===l?1:"scale-down"===l?Math.min(1,Math.min(d,f)):Math.max(d,f),h=a*p,y=s*p,m=String(c).trim().split(/\s+/),v=function(e,t){if(null==e)return.5;if(e.endsWith("%"))return parseFloat(e)/100;if("left"===e||"top"===e)return 0;if("right"===e||"bottom"===e)return 1;if("center"===e)return.5;var r=parseFloat(e);return isNaN(r)?.5:r/(0===t?Math.max(o-h,1):Math.max(i-y,1))},b=v(m[0],0),g=v(m.length>1?m[1]:m[0],1),w=document.createElement("canvas");w.width=o,w.height=i;var _=w.getContext("2d");return _?(_.drawImage(e,(o-h)*b,(i-y)*g,h,y),w):e}(a,t,r,o)):new Promise(function(a,s){var l=(new XMLSerializer).serializeToString(function(e,t){for(var r=[e].concat(n(e.querySelectorAll("*"))),o=[t].concat(n(t.querySelectorAll("*"))),a=0;a<r.length&&a<o.length;a++){var s=o[a].style;if(s){if(s.length>0)for(var l=null,c=0,u=Array.from(s);c<u.length;c++){var d=u[c];if(C.test(s.getPropertyValue(d))){var f=(l=l||window.getComputedStyle(r[a])).getPropertyValue(d);f&&s.setProperty(d,f,s.getPropertyPriority(d))}}var p,h=window.getComputedStyle(r[a]),y=r[a].parentElement,m=0!==a&&y?window.getComputedStyle(y):null,v=i(T);try{for(v.s();!(p=v.n()).done;){var b=p.value,g=h.getPropertyValue(b);g&&(m&&m.getPropertyValue(b)===g||s.getPropertyValue(b)||s.setProperty(b,g))}}catch(e){v.e(e)}finally{v.f()}var w,_=i(A);try{for(_.s();!(w=_.n()).done;){var x=w.value;if(!s.getPropertyValue(x)){var k=h.getPropertyValue(x);k&&!R.has(k)&&s.setProperty(x,k)}}}catch(e){_.e(e)}finally{_.f()}}}return t}(e,e.cloneNode(!0))),c='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(t*o,'" height="').concat(r*o,'" viewBox="0 0 ').concat(t," ").concat(r,'">')+'<foreignObject width="100%" height="100%">'+'<div xmlns="http://www.w3.org/1999/xhtml">'.concat(l,"</div>")+"</foreignObject></svg>",u=document.createElement("img");u.onload=function(){return a(u)},u.onerror=s,u.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(c)})}(e,w.width,w.height,_).then(function(e){_e||(G.bindTexture(G.TEXTURE_2D,me),G.texImage2D(G.TEXTURE_2D,0,G.RGBA,G.RGBA,G.UNSIGNED_BYTE,e),ve(),be=!0,Pe()||(O||Ee(),z.style.visibility="visible"))}).catch(function(e){je(),console.warn("[nodality] raster snapshot failed:",e)});return z.style.display="",o},Te=-1,Ae=function(){if(!_e&&"live"===xe){G.bindTexture(G.TEXTURE_2D,me);var e,t=G.RGBA8||32856,r=[[G.TEXTURE_2D,t,$],[G.TEXTURE_2D,0,G.RGBA,G.RGBA,G.UNSIGNED_BYTE,$],[G.TEXTURE_2D,0,t,$],[G.TEXTURE_2D,0,$]];if(Te>=0)e=[Te];else{e=[0,1,2,3];var n={3:0,6:1,4:2}[G.texElementImage2D.length];null!=n&&(e.splice(e.indexOf(n),1),e.unshift(n))}var o,a=[],s=i(e);try{for(s.s();!(o=s.n()).done;){var l=o.value;try{return G.texElementImage2D.apply(G,r[l]),ve(),Te<0&&(Te=l,console.info("[nodality] texElementImage2D signature discovered: form",l,"(declared arity "+G.texElementImage2D.length+")")),void(be=!0)}catch(e){a.push("form"+l+" -> "+(e&&e.name?e.name:"?")+": "+(e&&e.message?e.message:e))}}}catch(e){s.e(e)}finally{s.f()}Re("texElementImage2D rejected all known signatures (arity "+G.texElementImage2D.length+"): "+a.join(" | "))}},Re=function(t){if(!_e&&"live"===xe){for(xe="snapshot",console.warn("[nodality] live raster backend failed ("+t+") - falling back to snapshot."),z.removeEventListener("paint",Ae);$.firstChild;)e.appendChild($.firstChild);$.parentNode===z&&z.removeChild($),z.removeAttribute("layoutsubtree"),z.style.cssText="position:absolute;top:0;left:0;"+"width:".concat(w.width,"px;height:").concat(w.height,"px;")+"pointer-events:none;z-index:2147483000;",z.setAttribute("aria-hidden","true"),z.setAttribute("data-nodality-raster","snapshot-fallback"),Ce()}};D&&(z.addEventListener("paint",Ae),setTimeout(function(){_e||"live"!==xe||be||Re("no paint event within 1500ms")},1500));var Me=[.5*z.width,.5*z.height],De=!1,Ie=function(e){var t=z.getBoundingClientRect(),r=e.touches?e.touches[0]:e,n=[(r.clientX-t.left)*_,(r.clientY-t.top)*_];n[0]===Me[0]&&n[1]===Me[1]||(De=!0),Me=n};e.addEventListener("mousemove",Ie,{passive:!0}),e.addEventListener("touchmove",Ie,{passive:!0});var Le=0,Be=0,We=function(){Le=1},Fe=function(){Le=0};e.addEventListener("mouseenter",We,{passive:!0}),e.addEventListener("mouseleave",Fe,{passive:!0});var ze=[];t.forEach(function(e,t){var r=d[e.op]||{},n=e.by||r.defaultDriver;n&&c[n]?ze.push({i:t,fn:c[n]}):e.by&&console.warn("[nodality] unknown driver '"+e.by+"' on op '"+e.op+"' - known drivers: "+u.join(", "))});var qe=function(){if("undefined"==typeof window)return.5;var t=e.getBoundingClientRect(),r=window.innerHeight||1;return Math.max(0,Math.min(1,(r-t.top)/(r+t.height)))},Ne=0,Ue=null,He=function(e,t){G.uniform2f(e("u_res"),t.res[0],t.res[1]),G.uniform2f(e("u_mouse"),t.mouse[0],t.mouse[1]),G.uniform1f(e("u_time"),t.time),G.uniform1f(e("u_t"),t.t);var r,n=i(t.drivers);try{for(n.s();!(r=n.n()).done;){var o=r.value;G.uniform2f(e("u".concat(o.i,"_dpos")),o.x,o.y),G.uniform1f(e("u".concat(o.i,"_damt")),o.amt)}}catch(e){n.e(e)}finally{n.f()}var a,s=i(t.dyn);try{for(s.s();!(a=s.n()).done;){var c,u=a.value,d=i(u.ups);try{for(d.s();!(c=d.n()).done;){var f=c.value;se(e("u".concat(u.i,"_").concat(f.name)),f.kind,f.value)}}catch(e){d.e(e)}finally{d.f()}}}catch(e){s.e(e)}finally{s.f()}G.activeTexture(G.TEXTURE0),G.bindTexture(G.TEXTURE_2D,me),G.uniform1i(e("u_tex"),0);var p=1;if(l&&ge){G.activeTexture(G.TEXTURE0+p),G.bindTexture(G.TEXTURE_2D,ge),G.uniform1i(e("u_old"),p),p++;var h=t.t,y=function(e,t){return[(e.x+(t.x-e.x)*h)*_,(e.y+(t.y-e.y)*h)*_,(e.w+(t.w-e.w)*h)*_,(e.h+(t.h-e.h)*h)*_]},m=y(l.oldRect,l.oldTo||l.newRect),v=y(l.newFrom||l.oldRect,l.newRect);G.uniform4f(e("u_boxOld"),m[0],m[1],m[2],m[3]),G.uniform4f(e("u_boxNew"),v[0],v[1],v[2],v[3]),we&&(G.activeTexture(G.TEXTURE0+p),G.bindTexture(G.TEXTURE_2D,we),G.uniform1i(e("u_newimg"),p),p++)}for(var b=0,g=he;b<g.length;b++){var w=g[b],x=w.def.solver.samplers;for(var k in x)G.activeTexture(G.TEXTURE0+p),G.bindTexture(G.TEXTURE_2D,w.targets[x[k]].a.tex),G.uniform1i(e("u".concat(w.i,"_").concat(k)),p),p++}G.activeTexture(G.TEXTURE0)},Ge=null,Ke=["warp","cell","displace"],Xe=function(e,r,n){if(_e||!Ue||!be)return null;var o=z.getBoundingClientRect();if(o.width&&o.height&&(!n||!n.gpu)){var a=z.width/o.width,s=z.height/o.height,c=(e-o.left)*a,u=(r-o.top)*s;if(c>=0&&u>=0&&c<z.width&&u<z.height){var f=Math.floor(c),h=Math.floor(z.height-u),y=function(e,r){if(!Ue)return null;var n,o={},a=i(Ue.drivers);try{for(a.s();!(n=a.n()).done;){var s=n.value;o[s.i]=s}}catch(e){a.e(e)}finally{a.f()}for(var l=[e,r],c=0,u=Ke;c<u.length;c++)for(var f=u[c],p=0;p<t.length;p++){var h=t[p],y=d[h.op];if(y&&(Array.isArray(y.stage)?y.stage:[y.stage]).includes(f)){if(x(h))return null;if("function"!=typeof y.map){if(!1===y.movesCoords)continue;return null}var m=o[p],v=y.map(l,h,{res:Ue.res,dpr:_,dpos:m?[m.x,m.y]:[Ue.res[0]/2,Ue.res[1]/2],damt:m?m.amt:1,time:Ue.time,mouse:Ue.mouse});if(!v)return null;l=v}}return l}(f+.5,z.height-h-.5);if(y)return{x:o.left+Math.min(Math.max(y[0],0),z.width)/a,y:o.top+Math.min(Math.max(y[1],0),z.height)/s}}}var m=function(){if(Ge)return Ge;var e=G.createProgram();if(G.attachShader(e,oe(G.VERTEX_SHADER,g)),G.attachShader(e,oe(G.FRAGMENT_SHADER,P(p,t,!0,l))),G.bindAttribLocation(e,0,"a"),G.linkProgram(e),!G.getProgramParameter(e,G.LINK_STATUS))return console.warn("[nodality] probe program failed:",G.getProgramInfoLog(e)),G.deleteProgram(e),Ge={broken:!0};var r=G.createTexture();G.bindTexture(G.TEXTURE_2D,r),G.texImage2D(G.TEXTURE_2D,0,G.RGBA,1,1,0,G.RGBA,G.UNSIGNED_BYTE,null),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MIN_FILTER,G.NEAREST),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MAG_FILTER,G.NEAREST),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_S,G.CLAMP_TO_EDGE),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_T,G.CLAMP_TO_EDGE);var n=G.createFramebuffer();G.bindFramebuffer(G.FRAMEBUFFER,n),G.framebufferTexture2D(G.FRAMEBUFFER,G.COLOR_ATTACHMENT0,G.TEXTURE_2D,r,0);var o=G.checkFramebufferStatus(G.FRAMEBUFFER);if(G.bindFramebuffer(G.FRAMEBUFFER,null),o!==G.FRAMEBUFFER_COMPLETE)return console.warn("[nodality] probe framebuffer incomplete:",o),G.deleteProgram(e),G.deleteFramebuffer(n),G.deleteTexture(r),Ge={broken:!0};var i={},a=function(t){return t in i?i[t]:i[t]=G.getUniformLocation(e,t)};return G.useProgram(e),ue(a),G.useProgram(ie),Ge={prog:e,fbo:n,tex:r,px:new Uint8Array(4),U:a}}();if(m.broken)return null;var v=z.getBoundingClientRect();if(!v.width||!v.height)return null;var b=z.width/v.width,w=z.height/v.height,k=(e-v.left)*b,O=(r-v.top)*w;if(k<0||O<0||k>=z.width||O>=z.height)return null;var S=Math.floor(k),E=Math.floor(z.height-O);G.bindFramebuffer(G.FRAMEBUFFER,m.fbo),G.useProgram(m.prog),G.viewport(0,0,1,1),G.uniform2f(m.U("u_probe"),S,E),He(m.U,Ue),G.drawArrays(G.TRIANGLES,0,3),G.readPixels(0,0,1,1,G.RGBA,G.UNSIGNED_BYTE,m.px),G.bindFramebuffer(G.FRAMEBUFFER,null),G.useProgram(ie),G.viewport(0,0,z.width,z.height);var j=m.px,C=(j[0]+j[1]/255)/255,T=(j[2]+j[3]/255)/255;return{x:v.left+C*z.width/b,y:v.top+T*z.height/w}},Je="__nodalityRetargeted",$e=!t.some(function(e){return!1===e.interactive}),Ve="data-nodality-hover",Ye=t.some(function(e){return!0===e.hoverAttr}),Qe=[],Ze=function(t){for(var r=[],n=t;n&&n!==e.parentNode;n=n.parentElement)r.push(n);for(var o=new Set(r),i=0,a=Qe;i<a.length;i++){var s=a[i];o.has(s)||s.removeAttribute(Ve)}for(var l=0,c=r;l<c.length;l++){var u=c[l];u.hasAttribute(Ve)||u.setAttribute(Ve,"")}Qe=r},et=0,tt=function(t){if($e&&!_e&&!t[Je]){if("pointermove"===t.type||"mousemove"===t.type){var r="undefined"!=typeof performance?performance.now():0;if(r-et<12)return;et=r}var n=Xe(t.clientX,t.clientY);if(n){var o=$!==e;if(!(!o&&Math.abs(n.x-t.clientX)<.5&&Math.abs(n.y-t.clientY)<.5)){var a,s,l,c,u=o?(a=n.x,s=n.y,l=null,(c=function(e){var t,r=i(e.children);try{for(r.s();!(t=r.n()).done;){var n=t.value,o=n.getBoundingClientRect();o.width&&o.height&&(a<o.left||a>o.right||s<o.top||s>o.bottom||(l=n,c(n)))}}catch(e){r.e(e)}finally{r.f()}})($),l):"function"==typeof document.elementFromPoint?document.elementFromPoint(n.x,n.y):null;if(u&&u!==t.target&&e.contains(u)){if(Ye&&Ze(u),"pointerdown"===t.type||"mousedown"===t.type||"click"===t.type){var d=u.closest&&u.closest("a, button, input, select, textarea, [tabindex]");d&&"function"==typeof d.focus&&d.focus({preventScroll:!0})}t.stopPropagation(),t.cancelable&&t.preventDefault(),u.dispatchEvent(function(e,t,r){var n=new("undefined"!=typeof PointerEvent&&e instanceof PointerEvent?PointerEvent:MouseEvent)(e.type,{bubbles:!0,cancelable:e.cancelable,composed:!0,view:e.view||("undefined"!=typeof window?window:null),detail:e.detail,clientX:t,clientY:r,screenX:e.screenX+(t-e.clientX),screenY:e.screenY+(r-e.clientY),ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey,button:e.button,buttons:e.buttons,relatedTarget:e.relatedTarget,pointerId:e.pointerId,pointerType:e.pointerType,isPrimary:e.isPrimary,pressure:e.pressure});return n[Je]=!0,n}(t,n.x,n.y))}}}}},rt=["pointerdown","pointerup","pointermove","click","dblclick","contextmenu","mousedown","mouseup"],nt=function(){Ye&&Ze(null)};if($e){var ot,it=i(rt);try{for(it.s();!(ot=it.n()).done;){var at=ot.value;e.addEventListener(at,tt,!0)}}catch(e){it.e(e)}finally{it.f()}e.addEventListener("pointerleave",nt,!0)}var st=!0,lt=function(){if(!_e){if(Pe(),st&&be){for(var e="undefined"!=typeof performance?performance.now():pe+16,t=Math.max(0,(e-pe)/1e3),r=0,n=he;r<n.length;r++){var o=n[r];ye(o,t)}De=!1,G.bindFramebuffer(G.FRAMEBUFFER,null),G.useProgram(ie),G.viewport(0,0,z.width,z.height),G.clearColor(0,0,0,0),G.clear(G.COLOR_BUFFER_BIT);var i={res:[z.width,z.height],mouse:[Me[0],Me[1]],time:e/1e3,t:le,drivers:[],dyn:[]};if(ze.length>0){Be+=(Le-Be)*(1-Math.exp(8*-t));for(var a={mouseX:Me[0],mouseY:Me[1],w:z.width,h:z.height,t:e/1e3,hover:Be,scroll:qe()},s=0,l=ze;s<l.length;s++){var c=l[s],u=c.fn(a);i.drivers.push({i:c.i,x:u.x,y:u.y,amt:u.amt})}}if(fe.length>0)for(var d={w:z.width,h:z.height,mouseX:Me[0],mouseY:Me[1],dt:t,t:e/1e3},f=0,p=fe;f<p.length;f++){var h=p[f];i.dyn.push({i:h.i,ups:h.def.tick(h.state,d)})}Ue=i,He(ae,i),pe=e,G.drawArrays(G.TRIANGLES,0,3)}Ne=requestAnimationFrame(lt)}},ct=null;"undefined"!=typeof IntersectionObserver&&(ct=new IntersectionObserver(function(e){var t=a(e,1)[0];st=t.isIntersecting})).observe(e);var ut=null,dt=0,ft=function(){if(!_e){var e=b();if(!(e.width<2||e.height<2)){var t=Math.round(e.width*_),r=Math.round(e.height*_);w.width=e.width,w.height=e.height,z.style.width=e.width+"px",z.style.height=e.height+"px";var n=z.width!==t||z.height!==r;n&&(z.width=t,z.height=r),"snapshot"===xe?Ce():n&&Ae()}}};"undefined"!=typeof ResizeObserver&&(ut=new ResizeObserver(function(){"live"!==xe&&(function(){if(!_e){var e=b();e.width<2||e.height<2||Math.round(e.width)===Math.round(w.width)&&Math.round(e.height)===Math.round(w.height)||(w.width=e.width,w.height=e.height,z.style.width=e.width+"px",z.style.height=e.height+"px")}}(),clearTimeout(dt),dt=setTimeout(ft,150))})).observe(e);var pt=0,ht=function(){clearTimeout(pt),pt=setTimeout(function(){if(!_e)if("snapshot"!==xe){var t=e.clientWidth||e.parentElement&&e.parentElement.clientWidth||w.width;z.style.width=t+"px",setTimeout(function(){if(!_e&&"live"===xe){var e=Math.max(2,Math.round($.getBoundingClientRect().height))||w.height;w.width=t,w.height=e,z.style.height=e+"px",z.width=Math.round(t*_),z.height=Math.round(e*_),Ae()}},50)}else ft()},150)};"undefined"!=typeof window&&window.addEventListener("resize",ht),"live"===xe?Ne=requestAnimationFrame(lt):(Ce().then(function(){Ne=requestAnimationFrame(lt)}),"undefined"!=typeof document&&document.fonts&&"object"===o(document.fonts.ready)&&Promise.resolve(document.fonts.ready).then(ft).catch(function(){}));var yt=function(t,r,n,o,i){"function"==typeof CustomEvent&&"undefined"!=typeof document&&document.dispatchEvent(new CustomEvent(W,{detail:{pipeline:mt,el:e,index:t,key:r,value:n,prev:o,how:i}}))},mt={canvas:z,nodes:t,get backend(){return xe},sourceAt:function(e,t,r){return Xe(e,t,r)},get progress(){return le},setProgress:function(e){var t=Math.min(1,Math.max(0,Number(e)||0));return t===le||(le=t,ce.length&&(G.useProgram(ie),ue(ae,de),Ge&&!Ge.broken&&(G.useProgram(Ge.prog),ue(Ge.U,de),G.useProgram(ie))),Pe()),le},setParam:function(e,r,n){var i=t[e];if(!i||_e)return!1;var a=i[r];if(i[r]=n,function(e,t,r,n){if(q.includes(t))return!0;var i=d[e];if(!i)return!0;if((i.structural||[]).includes(t))return!0;if((i.structuralOnToggle||[]).includes(t))return!r!=!n;if(i.uniforms)try{if(t in i.uniforms(Object.assign({op:e},function(e,t,r){return(t=function(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},t,r)),1))return!1}catch(e){}return!0}(i.op,r,n,a))return mt.rebuild(),yt(e,r,n,a,"rebuild"),"rebuild";var s=d[i.op];if(s&&s.uniforms){var l=s.uniforms(i,_);for(var c in G.useProgram(ie),l)se(ae("u".concat(e,"_").concat(c)),l[c][0],l[c][1]);if(Ge&&!Ge.broken){for(var u in G.useProgram(Ge.prog),l)se(Ge.U("u".concat(e,"_").concat(u)),l[u][0],l[u][1]);G.useProgram(ie)}}return yt(e,r,n,a,"uniform"),"uniform"},rebuild:function(){if(_e)return null;var t=e;return mt.destroy(),U(t,s)}};return F.add(mt),Object.assign(mt,{refresh:function(){return"live"===xe?Ae():Ce()},destroy:function(){F.delete(mt),_e=!0,cancelAnimationFrame(Ne),clearTimeout(dt),clearTimeout(pt),ct&&ct.disconnect(),ut&&ut.disconnect(),"undefined"!=typeof window&&window.removeEventListener("resize",ht),e.removeEventListener("mousemove",Ie),e.removeEventListener("touchmove",Ie);for(var t=0,r=rt;t<r.length;t++){var n=r[t];e.removeEventListener(n,tt,!0)}e.removeEventListener("pointerleave",nt,!0),Ze(null),e.removeEventListener("mouseenter",We),e.removeEventListener("mouseleave",Fe),z.removeEventListener("paint",Ae);for(var o=0,i=he;o<i.length;o++){var a=i[o];for(var s in a.cleanup(),a.progs)G.deleteProgram(a.progs[s].prog)}for(he.length=0,Ge&&!Ge.broken&&(G.deleteProgram(Ge.prog),G.deleteFramebuffer(Ge.fbo),G.deleteTexture(Ge.tex)),Ge=null,ge&&(G.deleteTexture(ge),ge=null),we&&(G.deleteTexture(we),we=null);$!==e&&$.firstChild;)e.appendChild($.firstChild);je(),e.style.visibility="",z.remove()}})}},5594:(e,t,r)=>{r.d(t,{A:()=>P,G:()=>j});var n=r(5379),o=r(8597),i={"t-vhs":{summary:"Tape-glitch morph: chroma splits and the image tears, strongest at the midpoint, gone at both ends.",nodes:[{op:"aberration",amount:[0,18,0]},{op:"flow",strength:[0,34,0],scale:60,speed:0,window:[.15,.95],ease:"in-out"}]},"t-dissolve":{summary:"Ordered-dither dissolve — the old state breaks into pixels before the new one resolves.",nodes:[{op:"dither",levels:[8,2,8],size:[1,7,1],amount:[0,1,0],ease:"in-out"}]},"t-split":{summary:"Per-side morph: the old state posterises to duotone while the new one resolves through a halftone screen.",nodes:[{op:"duotone",side:"old",amount:[0,1,1],dark:"#0B1B2B",light:"#1abc9c"},{op:"halftone",side:"new",size:[10,6,2],amount:[1,1,0],softness:.35,angle:15}]},"t-bloom":{summary:"A soft halftone bloom through the middle of the morph.",nodes:[{op:"halftone",size:[2,9,2],amount:[0,1,0],softness:.4,angle:15,window:[.1,.9]}]},"liquid-hero":{summary:"A ripple that trails the pointer, then relaxes back in ~1.5s.",live:"enhanced",nodes:[{op:"stir",by:"mouse",radius:.055,force:2.2,strength:16,curl:.8,resolution:256,decay:.988}]},linger:{summary:"The same current, held for four or five seconds. Only `decay` differs.",live:"enhanced",nodes:[{op:"stir",by:"mouse",radius:.055,force:2.2,strength:7,curl:.8,resolution:256,decay:.9985,dye:0,sheen:0}]},"flow-field":{summary:"A standing current across the whole element. No solver, runs anywhere.",nodes:[{op:"flow",strength:18,scale:120,speed:.25}]},"flow-pointer":{summary:"The same current, but only around the pointer.",nodes:[{op:"flow",by:"mouse",strength:26,scale:100,radius:320}]},"print-shop":{summary:"Offset-litho dot screen with white seams under the glyphs.",nodes:[{op:"halftone",size:6,angle:15},{op:"edges",color:"#FFFFFF"}]},newsprint:{summary:"One-bit ordered dither — ink on paper, no greys.",nodes:[{op:"dither",mono:!0,ink:"#0B1B2B"}]},crt:{summary:"Posterised to a few levels, with a lens-like colour split.",nodes:[{op:"dither",levels:3},{op:"aberration",amount:6}]},glass:{summary:"Refractive metaball lens over untouched content.",nodes:[{op:"blobs",refract:70,dispersion:1,frost:.25}]},"hex-lens":{summary:"Hex cells rise toward the pointer; flush and invisible at rest.",nodes:[{op:"hexalize",size:26,lift:.3,by:"hover",radius:220}]},ripple:{summary:"The coordinate space pushes away from the pointer.",nodes:[{op:"offset",by:"mouse",strength:22,radius:280}]},spotlight:{summary:"A duotone disc that travels with the pointer; the rest is untouched.",nodes:[{op:"mask",from:"radial",as:"spot",by:"mouse",radius:200},{op:"duotone",masked:"spot",colors:["#104B87","#E8FF00"]}]},turbulent:{summary:"Animated noise drives the displacement, so the warp breathes.",nodes:[{op:"noise",as:"turbulence",scale:3,speed:.4},{op:"offset",masked:"turbulence",by:"static",strength:30}]},echoes:{summary:"Changing content leaves a fading trail behind it.",live:"required",nodes:[{op:"echo",decay:.92,strength:.85}]},comet:{summary:"A long, tinted comet tail. Needs live capture — on snapshot you see nothing move.",live:"required",nodes:[{op:"echo",decay:.975,strength:.95,tint:"#7FD4FF",tintAmount:.65}]}};function a(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i[e];if(!n)throw new Error("[nodality] "+(0,o.au)(e,Object.keys(i),"raster preset"));return(t=n.nodes,JSON.parse(JSON.stringify(t))).map(function(e){return Object.assign(e,r)})}var s={linear:function(e){return e},in:function(e){return e*e*e},out:function(e){return 1-Math.pow(1-e,3)},"in-out":function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2}},l=function(){return"undefined"!=typeof performance?performance.now():Date.now()},c=function(){return"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"function"!=typeof e.setProgress){var r=0;e={setProgress:function(e){return r=Math.min(1,Math.max(0,Number(e)||0))},get progress(){return r}}}var n=null!=t.duration?t.duration:600,o=s[t.easing]||s["in-out"],i=!1!==t.respectReducedMotion,a=0,u=e.progress||0,d=u,f=0,p=0,h=!1,y=null,m=null,v=!1,b=function(){if(!v){var t=l()-f,r=p<=0?1:Math.min(1,t/p);if(e.setProgress(u+(d-u)*o(r)),r>=1)return function(){h=!1,a=0;var t=y;y=null,t&&t(e.progress)}();a=requestAnimationFrame(b)}},g={get value(){return e.progress},get running(){return h},set:function(t){return g.stop(),e.setProgress(t),e.progress},to:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(v)return Promise.resolve(e.progress);var o=Math.min(1,Math.max(0,Number(t)||0));if(i&&c())return g.set(o),Promise.resolve(o);if(y){var s=y;y=null,s(e.progress)}a&&cancelAnimationFrame(a),u=e.progress,d=o;var m=Math.abs(d-u);return m<1e-4?(e.setProgress(o),Promise.resolve(o)):(p=(null!=r.duration?r.duration:n)*m,f=l(),h=!0,a=requestAnimationFrame(b),new Promise(function(e){y=e}))},stop:function(){if(a&&cancelAnimationFrame(a),a=0,h=!1,y){var t=y;y=null,t(e.progress)}return e.progress},bindScroll:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"==typeof t?document.querySelector(t):t;if(!n)return g;g.unbindScroll(),g.stop();var o=null!=r.start?r.start:0,i=null!=r.end?r.end:1,a=function(){if(!v){var t=n.getBoundingClientRect(),r=window.innerHeight||1,a=(r-t.top)/(r+t.height||1),s=(Math.min(1,Math.max(0,a))-o)/(i-o||1);e.setProgress(Math.min(1,Math.max(0,s)))}};return m={node:n,update:a},window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a,{passive:!0}),a(),g},unbindScroll:function(){return m?(window.removeEventListener("scroll",m.update),window.removeEventListener("resize",m.update),m=null,g):g},drive:function(e){return g.set(e)},destroy:function(){v=!0,g.stop(),g.unbindScroll()}};return g}function d(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return f(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(f(t={},n,function(){return this}),t),p=c.prototype=s.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,f(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=c,f(p,"constructor",c),f(c,"constructor",l),l.displayName="GeneratorFunction",f(c,o,"GeneratorFunction"),f(p),f(p,o,"Generator"),f(p,n,function(){return this}),f(p,"toString",function(){return"[object Generator]"}),(d=function(){return{w:i,m:h}})()}function f(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f=function(e,t,r,n){if(t)o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r;else{var i=function(t,r){f(e,t,function(e){return this._invoke(t,r,e)})};i("next",0),i("throw",1),i("return",2)}},f(e,t,r,n)}function p(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=m(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function g(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function w(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){g(i,n,o,a,s,"next",e)}function s(e){g(i,n,o,a,s,"throw",e)}a(void 0)})}}var _=function(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y,w:n.width,h:n.height}};function x(e,t,r){return k.apply(this,arguments)}function k(){return k=w(d().m(function e(t,r,n){var o,i,a,s,l,c,u,f;return d().w(function(e){for(;;)switch(e.n){case 0:for((o=t.cloneNode(!0)).style.position="static",o.style.left=o.style.top="0",o.style.margin="0",o.style.visibility="visible",i=[t].concat(y(t.querySelectorAll("*"))),a=[o].concat(y(o.querySelectorAll("*"))),s=0;s<i.length;s++)l=getComputedStyle(i[s]),a[s].style.fontSize=l.fontSize,a[s].style.lineHeight=l.lineHeight,a[s].style.fontWeight=l.fontWeight,a[s].style.fontFamily=l.fontFamily,a[s].style.letterSpacing=l.letterSpacing,a[s].style.width=l.width,a[s].style.height=l.height,a[s].style.padding=l.padding,a[s].style.boxSizing="content-box";return c=Math.max(1,Math.min("undefined"!=typeof window&&window.devicePixelRatio||1,3)),u='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(r*c,'" ')+'height="'.concat(n*c,'" viewBox="0 0 ').concat(r," ").concat(n,'">')+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+(new XMLSerializer).serializeToString(o)+"</div></foreignObject></svg>",f=document.createElement("img"),e.n=1,new Promise(function(e,t){f.onload=e,f.onerror=t,f.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(u)});case 1:return e.a(2,f)}},e)})),k.apply(this,arguments)}var O=function(e){if(!e)return[];if(Array.isArray(e))return e;try{return a(e)||[]}catch(e){return[]}},S=function(e){return String(e||"").replace(/\s+/g," ").trim().toLowerCase()},E=function(e){return"string"==typeof e&&e.startsWith("#")?e.slice(1):e},j=function(e){return(Array.isArray(e.chain)&&e.chain.length?e.chain:[{from:e.from,to:e.to}]).map(function(t){var r=function(r,n){return void 0!==t[r]?t[r]:void 0!==e[r]?e[r]:n},n=t.to&&!Array.isArray(t.to)&&"object"===b(t.to)?t.to:null,o=n?y(new Set(Object.values(t.to))).map(E):(Array.isArray(t.to)?t.to:[t.to]).map(E),i=new Map;if(n)for(var a=0,s=Object.entries(t.to);a<s.length;a++){var l=h(s[a],2),c=l[0],u=l[1];i.set(S(c),E(u))}return{from:E(t.from),byLabel:n,toIds:o,labelToId:i,effect:r("effect"),duration:r("duration",900),back:!1!==r("back",!0),live:!0===r("live"),fade:r("fade","morph")}})};function P(e,t,r){if(!e||"undefined"==typeof document)return[];var o=(r||[]).filter(function(e){return e&&"morph"===e.op});if(!o.length)return[];var i=y(e.children),a=function(r){var n=E(r),o=document.getElementById(n);if(o&&e.contains(o))return o;var a=(t||[]).findIndex(function(e){return e&&E(e.id)===n});return a>=0?i[a]:null};return o.map(function(t){return function(e,t,r){var o=j(t),i=o[0],a=i&&i.from,s=null!=a?r(a):null,l=new Map;s&&l.set(a,s);var c,f=p(o);try{for(f.s();!(c=f.n()).done;){var m=c.value,v=r(m.from);v&&!l.has(m.from)&&l.set(m.from,v);var b,g=p(m.toIds);try{for(g.s();!(b=g.n()).done;){var k=b.value,E=r(k);E&&!l.has(k)&&l.set(k,E)}}catch(e){g.e(e)}finally{g.f()}}}catch(e){f.e(e)}finally{f.f()}if(!s||!i.toIds.some(function(e){return l.has(e)}))return console.warn("[nodality] morph: could not resolve",a,"->",i?i.toIds:[]),null;var P=function(e){return o.find(function(t){return t.from===e})||null},C=document.createElement("div");C.className="nod-morph",C.style.cssText="position:relative;",e.insertBefore(C,s);var T=document.createElement("div");T.className="nod-morph-host",T.style.cssText="position:absolute;inset:0;";var A=document.createElement("div");A.className="nod-morph-live",A.style.cssText="position:absolute;inset:0;",C.appendChild(T),C.appendChild(A),A.appendChild(s),s.style.position="absolute",s.style.left=s.style.top="0";var R,M=p(l);try{for(M.s();!(R=M.n()).done;){var D=h(R.value,2),I=D[0],L=D[1];I!==a&&L.remove()}}catch(e){M.e(e)}finally{M.f()}var B=a,W=[],F=function(){return l.get(B)||s},z=function(e){C.style.minHeight=Math.max(F().getBoundingClientRect().height,e||0)+24+"px"};z(0);var q=null,N=null,U=-1,H=null,G=null,K=null,X=!1,J=null,$=null,V=o.length>1,Y=function(){var e=w(d().m(function e(t,r,o){var i,a,s,l,c,f,p;return d().w(function(e){for(;;)switch(e.n){case 0:if(!(i=y(r.querySelectorAll("img"))).length){e.n=2;break}return e.n=1,Promise.all(i.map(function(e){return e.complete&&e.naturalWidth?null:"function"==typeof e.decode?e.decode().catch(function(){}):new Promise(function(t){e.addEventListener("load",t,{once:!0}),e.addEventListener("error",t,{once:!0})})}));case 1:return e.n=2,new Promise(function(e){return requestAnimationFrame(e)});case 2:return a=_(T,t),s=_(T,r),z(Math.max(a.y+a.h,s.y+s.h)),e.n=3,Promise.all([x(t,a.w,a.h),x(r,s.w,s.h)]);case 3:l=e.v,c=h(l,2),f=c[0],p=c[1],q=(0,n.sB)(T,O(o.effect),{transition:{oldImage:f,newImage:p,oldRect:a,oldTo:s,newRect:s,newFrom:a,standDownAtStart:!0,live:!0===o.live,fade:o.fade||"morph"}}),N&&N.destroy(),N=u(q,{duration:null!=o.duration?o.duration:900});case 4:return e.a(2)}},e)}));return function(t,r,n){return e.apply(this,arguments)}}(),Q=function(){var e=w(d().m(function e(t){var r,o,i,a,s,c,u,f,h,m;return d().w(function(e){for(;;)switch(e.n){case 0:if((r=P(B))&&r.toIds.includes(t)){e.n=1;break}return e.a(2);case 1:if(o=l.get(t)){e.n=2;break}return e.a(2);case 2:i=F(),U=r.toIds.indexOf(t),K=B,a=p((0,n.hE)());try{for(a.s();!(s=a.n()).done;)c=s.value,C.contains(c.canvas)&&c.destroy()}catch(e){a.e(e)}finally{a.f()}for(u=0,f=y(T.children);u<f.length;u++)(h=f[u])!==i&&h.remove();return T.appendChild(o),G=i,H=o,o.style.visibility="hidden",m=_(T,i),Object.assign(o.style,{position:"absolute",left:"0",top:Math.round(V?m.y:m.h+20)+"px"}),e.n=3,Y(i,o,r);case 3:if(N){e.n=4;break}return e.a(2);case 4:return J=K,$=t,N.set(0),le(t),r.back&&ae(o),e.n=5,N.to(1);case 5:1===e.v&&H===o&&ie(t,i,r);case 6:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),Z=!1,ee=0,te=function(){var e=w(d().m(function e(){var t,r,n;return d().w(function(e){for(;;)switch(e.n){case 0:if(W.length){e.n=1;break}return e.a(2);case 1:if(t=W[W.length-1],r=l.get(t)){e.n=2;break}return e.a(2);case 2:if(n=F(),!q||!N||J!==t||$!==B){e.n=4;break}return e.n=3,N.to(0);case 3:return 0===e.v&&oe(t),e.a(2);case 4:return e.n=5,ne(t,r,n);case 5:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),re=function(){var e=w(d().m(function e(){return d().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!Z){e.n=1;break}return ee++,e.a(2);case 1:return Z=!0,e.p=2,e.n=3,te();case 3:if(!(ee>0&&W.length)){e.n=5;break}return ee--,e.n=4,te();case 4:e.n=3;break;case 5:return e.p=5,Z=!1,ee=0,e.f(5);case 6:return e.a(2)}},e,null,[[2,,5,6]])}));return function(){return e.apply(this,arguments)}}(),ne=function(){var e=w(d().m(function e(t,r,o){var i,a,l,c,u;return d().w(function(e){for(;;)switch(e.n){case 0:return i=y((0,n.hE)()).filter(function(e){return C.contains(e.canvas)}),a=P(t)||{},r===s?(X=!0,A.style.display=""):r.parentNode!==T&&(r.style.visibility="hidden",T.appendChild(r),l=_(T,o),Object.assign(r.style,{position:"absolute",left:"0",top:Math.round(V?l.y:0)+"px"})),e.n=1,Y(r,o,a);case 1:c=p(i);try{for(c.s();!(u=c.n()).done;)u.value.destroy()}catch(e){c.e(e)}finally{c.f()}if(X=!1,N){e.n=2;break}return e.a(2);case 2:return J=t,$=B,G=r,H=o,N.set(1),e.n=3,N.to(0);case 3:0===e.v&&oe(t);case 4:return e.a(2)}},e)}));return function(t,r,n){return e.apply(this,arguments)}}(),oe=function(e){W[W.length-1]===e&&W.pop(),B=e;var t,r=p((0,n.hE)());try{for(r.s();!(t=r.n()).done;){var o=t.value;C.contains(o.canvas)&&o.destroy()}}catch(e){r.e(e)}finally{r.f()}q=null,N=null,J=null,$=null,K=W.length?W[W.length-1]:null,le(e)},ie=function(e,t,r){null!=K&&K!==e&&W.push(K),B=e,G=t&&t!==s?t:null,le(e),r&&r.back&&ae(l.get(e))},ae=function(e){if(e){var t=y(e.querySelectorAll("button")).find(function(e){return!e.dataset.nodMorphWired&&!e.dataset.nodMorphBack});t&&(t.dataset.nodMorphBack="1",t.addEventListener("click",function(){re()}))}},se=new Set,le=function(e){var t=P(e),r=l.get(e);if(t&&r){var n=function(e){var t=y(e.querySelectorAll("a"));if(t.length)return t;var r=y(e.querySelectorAll("button, [role=button]"));return r.length?r:[e]}(r),o=!!t.byLabel&&n.some(function(e){return t.labelToId.has(S(e.textContent))});n.forEach(function(e){return function(e,t,r,n){if(!e.dataset.nodMorphWired&&!e.dataset.nodMorphBack){var o=n?t.labelToId.get(S(e.textContent)):1===t.toIds.length?t.toIds[0]:t.byLabel?t.labelToId.get(S(e.textContent)):t.toIds[r.indexOf(e)];o&&l.has(o)&&(e.dataset.nodMorphWired="1",e.dataset.nodMorphTo=o,e.addEventListener("click",function(e){l.has(o)&&(e.preventDefault(),Q(o))}))}}(e,t,n,o)}),"undefined"==typeof MutationObserver||se.has(e)||(se.add(e),new MutationObserver(function(){return le(e)}).observe(r,{childList:!0,subtree:!0}))}};le(a);var ce=function(){if(C.isConnected){var e=q?q.progress:0,t=T.querySelector("canvas"),r=!!t&&"visible"===(t.style.visibility||"visible"),n=!q||!r,o=X||n&&e<=0&&(B===a||G===s)?"":"none";A.style.display!==o&&(A.style.display=o);var i=H||T.firstElementChild;if(i&&i.style){var l=q&&n&&e>=1?"":"hidden";i.style.visibility!==l&&(i.style.visibility=l)}if(G&&G!==s&&G.style){var c=n&&e<=0?"":"hidden";G.style.visibility!==c&&(G.style.visibility=c)}requestAnimationFrame(ce)}};return requestAnimationFrame(ce),{stage:C,from:s,get destinations(){return i.toIds.map(function(e){return l.get(e)||null})},get states(){return l},get current(){return B},get history(){return[].concat(W)},get progress(){return q?q.progress:0},get active(){return U},goTo:function(e){var t=P(B);return t?Q(t.toIds[e]):void 0},goToState:Q,back:function(){N&&N.to(0)},goBack:re,destroy:function(){N&&N.destroy();var e,t=p((0,n.hE)());try{for(t.s();!(e=t.n()).done;){var r=e.value;C.contains(r.canvas)&&r.destroy()}}catch(e){t.e(e)}finally{t.f()}C.remove()}}}(e,t,a)}).filter(Boolean)}},5613:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{Q:()=>a}),r(9873);var a=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=null,this.minLabel=null,this.maxLabel=null,this.currentLabel=null},(t=[{key:"padding",value:function(e){return this.el.style.padding=e,this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return["new Range().set(".concat(e,")")]}},{key:"set",value:function(e){var t,r,n=this;this.options=e;var o=document.createElement("input");if(o.setAttribute("id","slider"),o.setAttribute("type","range"),o.setAttribute("min",e.min),o.setAttribute("max",e.max),o.setAttribute("value",e.min),o.style.width=null!==(t=e.width)&&void 0!==t?t:"100%",!e.plain){var i,a;o.style.setProperty("-webkit-appearance","none"),o.style.appearance="none",o.style.height="9px",o.style.background=null!==(i=e.style.trackColor)&&void 0!==i?i:"orange",o.style.borderRadius="5px";var s="\n #slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n background: ".concat(null!==(a=e.style.thumbColor)&&void 0!==a?a:"4CAF50",";\n cursor: pointer;\n }\n "),l=document.createElement("style");l.appendChild(document.createTextNode(s)),document.head.appendChild(l)}var c=document.createElement("div");c.style.display="flex",c.style.flexDirection="column",c.style.alignItems="center",c.style.width="100%";var u=document.createElement("div");if(u.style.display="flex",u.style.justifyContent="space-between",u.style.width=null!==(r=e.width)&&void 0!==r?r:"100%",this.minLabel=document.createElement("span"),this.minLabel.textContent=e.min,this.maxLabel=document.createElement("span"),this.maxLabel.textContent=e.max,this.currentLabel=document.createElement("span"),this.currentLabel.textContent=o.value,e.font&&(this.currentLabel.style.fontFamily=e.font),e.font&&(this.minLabel.style.fontFamily=e.font),e.font&&(this.maxLabel.style.fontFamily=e.font),e.plain||(u.appendChild(this.minLabel),u.appendChild(this.currentLabel),u.appendChild(this.maxLabel)),o.addEventListener("input",function(){n.currentLabel.textContent=o.value}),window.matchMedia("(max-device-width: 415px)").matches)if(e.plain)o.style.width="80%";else{var d,f;o.style.height="20px",o.style.background=null!==(d=e.style.trackColor)&&void 0!==d?d:"1abc9C",o.style.borderRadius="10px",o.style.fontSize="3rem",o.style.width="80%";var p="\n #slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n background: ".concat(null!==(f=e.style.thumbColor)&&void 0!==f?f:"blue",";\n cursor: pointer;\n }\n "),h=document.createElement("style");h.appendChild(document.createTextNode(p)),document.head.appendChild(h)}return c.appendChild(u),c.appendChild(o),this.el=c,this}},{key:"value",value:function(){return this.el.querySelector("#slider").value}},{key:"render",value:function(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}])&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();"undefined"!=typeof window&&(window.Range=a)},5632:(e,t,r)=>{r.d(t,{j:()=>p});var n=r(9873),o=r(1382);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},u.apply(null,arguments)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=d(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],d(e).constructor):t.apply(e,r))}(this,t)).res=null,e.options={},e.code=[],e.elCSS=[],e.html=[],e.react=[],e.setup(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),r=t,n=[{key:"setup",value:function(){var e=document.createElement("div");return this.res=e,this.res.style.padding=0,this.res.style.margin=0,this.res.style.borderRadius="50%",this}},{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var e=Object.fromEntries(Object.entries(this.options||{}).filter(function(e){return null!=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2)[1]})),t=(0,o.sy)(e,4);return["new Circle().set(".concat(t,")")]}},{key:"setArea",value:function(e){return this.res.style.gridArea=e,this}},{key:"diameter",value:function(e){return this.res.style.width=this.res.style.height="number"==typeof e?e+"px":e,this.res.style.borderRadius="50%",this}},{key:"size",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this.res.style.width="number"==typeof e?e+"px":e,this.res.style.height="number"==typeof t?t+"px":t,this.res.style.borderRadius="50%",this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"border",value:function(e){return this.res.style.border="string"==typeof e?e:"".concat((null==e?void 0:e.width)||1,"px solid ").concat((null==e?void 0:e.color)||"black"),this}},{key:"radius",value:function(e){return this.res.style.borderRadius="number"==typeof e?e+"px":e,this}},{key:"set",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e,e.top&&(this.res.style.top=e.top),e.left&&(this.res.style.left=e.left),(e.top||e.left)&&(this.res.style.position="absolute"),e.diameter&&this.diameter(e.diameter),e.size&&this.size(e.size.w||e.size,e.size.h||e.size),e.width&&(this.res.style.width=e.width),e.height&&(this.res.style.height=e.height),e.radius&&this.radius(e.radius),e.id&&this.res.setAttribute("id",e.id),e.class&&this.res.setAttribute("class",e.class),e.zIndex&&(this.res.style.zIndex=e.zIndex),e.pad&&(this.res.style.padding=e.pad),e.mar&&(this.res.style.margin=e.mar),e.background&&(this.res.style.background=e.background),e.color&&this.color(e.color),e.border&&this.border(e.border),e.shadow&&(this.res.style.boxShadow=e.shadow),e.cursor&&(this.res.style.cursor=!0===e.cursor?"pointer":e.cursor);var r,n,o,i=[];if(e.stroke||e.gradient||e.backgroundOp||e.layout||e.marginOp||e.shadow||e.animation||e.filtera||e.transform){var a;e.gradient&&(this.globalGradient=e.gradient.op.gradient),"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)"),e.stroke&&(null===(r=t,n=this,a="function"==typeof(o=u(d(1&3?r.prototype:r),"setAny",n))?function(e){return o.apply(n,e)}:o)||void 0===a||a([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]));for(var s=[e.stroke,e.gradient,e.animation,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,e.transform].filter(function(e){return null!=e}),l=0;l<s.length;l++)i.push({range:s[l].range,log:s[l].op.name,target:s[l].target,op:s[l].op});var c=[];e.border&&c.push("border"),e.background&&c.push("background"),(e.mar||e.margin)&&c.push("margin"),e.animation&&c.push("animation"),this.chainReact(i,this.options.id,c)}return this}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"excludeFromCode",value:function(){return this.excludeFromCodeTrue=!0,this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"render",value:function(e){var t;return e&&(null===(t=document.querySelector(e))||void 0===t||t.appendChild(this.res)),this.res}}],n&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},5860:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},s.apply(null,arguments)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{M:()=>u});var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t)).code=[],e.setup(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,i=[{key:"toCode",value:function(){return this.code}},{key:"setup",value:function(){this.code.push("new FlexGrid()"),this.code.push(".setup()");var e=document.createElement("div");return e.style.display="flex",e.style.padding=0,e.style.margin=0,this.res=e,this}},{key:"getType",value:function(){return"FlexRowLayoutElement"}},{key:"set",value:function(e){e.id&&this.res.setAttribute("id",e.id),this.commonMethods(e),e.onTap&&this.onTap(e.onTap),this.code.push(".set({"),e.gap&&this.code.push("gap: ".concat(e.gap)),e.gap&&(this.res.style.gap=e.gap),e.flex&&(this.res.style.flex=e.flex),e.flex&&this.code.push("flex: ".concat(e.flex,",")),e.wrap&&(this.res.style.flexWrap="wrap"),e.wrap&&this.code.push("wrap: ".concat(e.wrap,",")),e.align&&(this.res.style.justifyContent=e.align),e.align&&this.code.push("align: ".concat(e.align,",")),e.colat&&this.toColumnAt(e.colat),e.colat&&this.code.push('\n colat: "'.concat(e.colat,'",')),this.code.push("}),");var t=e;return this.callReact(t),this}},{key:"callReact",value:function(e){this.options=e;var r,o,i,a=[],c=e.transform&&"object"===n(e.transform);if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||c){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(orange, green)")),e.stroke&&(r=t,o=this,"function"==typeof(i=s(l(1&3?r.prototype:r),"setAny",o))?function(e){return i.apply(o,e)}:i)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var u=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,c?e.transform:void 0];u=u.filter(function(e){return null!=e});for(var d=0;d<u.length;d++)a.push({range:u[d].range,log:u[d].op.name,target:u[d].target,op:u[d].op});var f=[];e.borderObj&&f.push("border"),e.background&&f.push("background"),e.mar&&f.push("margin"),e.animation&&f.push("animation"),e.span&&f.push("span"),this.chainReact(a,e.id,f)}}},{key:"toColumnAt",value:function(e){var t=this;if(!this.columnAlways){var r=function(){var r=window.matchMedia("(max-width: ".concat(e,")")),n=window.matchMedia("(max-device-width: 415px)");r.matches||n.matches?(t.res.style.flexDirection="column",t.res.style.alignItems="center"):t.res.style.flexDirection="row"};r(),window.addEventListener("resize",r)}}},{key:"flex",value:function(e){return this.arra=Array.from(e.replace(/\s/g,"")),this.areas=Array.from(Array(e.replace(/\s/g,"")).join("")),this.save='"'.concat(e,'"'),this}},{key:"items",value:function(e){this.items=e,this.code.push("\n .items([");for(var t=0;t<e.length;t++){var r=e[t];if(null!=r){var n=r.render();void 0!==r.toCode&&this.code.push(r.toCode().flatMap(function(e){return e})),this.res.appendChild(n)}}return this.code.push("\n ])"),this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"adjust",value:function(e){var t=this,r=function(){var r=window.matchMedia("(max-device-width: 415px)");if(window.innerWidth<e||r.matches)for(var n=0;n<t.res.children.length;n++)t.res.children[n].style.flex="",t.res.children[n].style.width="100%";else for(n=0;n<t.res.children.length;n++)t.res.children[n].style.flex="".concat(t.arra[n])};return r(),window.addEventListener("resize",r),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector("body").style.margin=0,document.querySelector("body").style.padding=0,document.querySelector(e).appendChild(this.res)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},6131:(e,t,r)=>{r.d(t,{E:()=>h});var n=r(9873),o=r(1382);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(e,t,r,n){var o=d(f(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof o?function(e){return o.apply(r,e)}:o}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},d.apply(null,arguments)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var h=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=f(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}(this,t)).text=e,n.res=null,n.setup(r),n.code=[],n.elCSS=[],n.html=[],n.react=[],n.code.push('new Text("'.concat(n.text,'")')),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,n=[{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var e=Object.fromEntries(Object.entries(this.options).filter(function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2);return t[0],null!==t[1]})),t=(0,o.sy)(e,4);return['new Text("'.concat(this.text,'").set(').concat(t,")")]}},{key:"toElCSS",value:function(){return this.elCSS=this.elCSS.map(function(e){return" "+e}),this.preffersId?this.elCSS.unshift(this.res.id+" { \n"):this.elCSS.unshift("."+this.class+" { \n"),this.elCSS.push(" } \n \n"),this.elCSS}},{key:"getType",value:function(){return"S1"===this.options.fluidc?"HTMLHeaderElement":"HTMLParagraphElement"}},{key:"stroke",value:function(){return this.res.style["-webkit-text-stroke"]="3px orange",this}},{key:"fill",value:function(){return this.res.style["-webkit-text-fill-color"]="transparent",this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"styled",value:function(e){return this.set(e),this}},{key:"removeQuotesFromFirstWord",value:function(e){return e.replace((0,o._H)(),"$1:")}},{key:"looksLikeMarkdown",value:function(e){return/(\*\*.*\*\*|\*.*\*|`[^`]+`|\[.*?\]\(.*?\)|^# )/m.test(e)}},{key:"parseMarkdown",value:function(e){var t=e;return(t=(t=(t=(t=(t=(t=(t=t.replace(/^### (.*$)/gim,"<h3>$1</h3>")).replace(/^## (.*$)/gim,"<h2>$1</h2>")).replace(/^# (.*$)/gim,"<h1>$1</h1>")).replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>")).replace(/\*(.*?)\*/g,"<em>$1</em>")).replace(/`([^`]+)`/g,"<code>$1</code>")).replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2">$1</a>')).replace(/\n/g,"<br>")}},{key:"set",value:function(e){return this.resCopy=this.res,this.options=e,u(t,"setPrevText",this,3)([this.text]),e.raster&&this.rasterize(e.raster),this.commonMethods(e),e.left&&(this.res.style.left=e.left),e.flex&&(this.res.style.display="flex"),(e.left||e.top)&&(this.res.style.position="absolute"),e.maxWidth&&(this.res.style.maxWidth=e.maxWidth),e.cursor&&(this.res.style.cursor="hand"),e.gpos&&this.gpos(e.gpos),e.vtn&&(this.res.style.viewTransitionName=e.vtn),e.index&&u(t,"setIndex",this,3)([e.index]),e.index&&(this.index=e.index),e.preffersId&&(this.preffersId=e.preffersId),u(t,"setPref",this,3)([e.preffersId]),e.removeDecoration&&(this.res.style.textDecoration="none"),e.block&&(this.res.style.display="block"),e.area&&this.setArea(e.area),e.icon&&this.addIcon(e.icon),e.color&&this.color(e.color),e.color&&this.elCSS.push("color: ".concat(e.color,"; \n")),e.class&&this.setClass(e.class),e.size&&this.fluidCopy(e.size),e.fluidc&&this.fluidCopy(e.fluidc),this.options.id&&this.res.setAttribute("id",this.options.id),u(t,"setID",this,3)([this.options.id]),e.initLetter&&this.initLetter(e.initLetter),e.onTap&&this.onTap(e.onTap),"S6"===e.fluidc?e.fluidc&&this.elCSS.push("font-size: calc(1.1rem + 2.075vw); \n"):e.fluidc&&this.elCSS.push("font-size: calc(1.625rem + 5.075vw); \n"),this.options.class&&this.res.setAttribute("class",this.options.class),u(t,"setClass",this,3)([this.options.class]),e.clampc&&this.clampCopy(e.clampc),e.absolute&&(this.res.style.position="absolute"),e.em&&this.em(e.em),e.fluid&&this.fluid(e.fluid),e.fluidc&&this.elCSS.push("font-family: ".concat(e.font,"; \n")),e.align&&(this.res.style.textAlign=e.align),e.breakWord&&(this.res.style.wordWrap="break-word"),e.center&&this.deprecatedOption("center on Text",'mar: "center"'),e.italic&&this.italic(),e.responsive&&this.responsive(),e.border&&(this.res.style.border="".concat(e.border)),e.onScroll&&this.onScroll(e.onScroll),e.keySet&&this.keySet(e.keySet),this.callReact(e),this}},{key:"callReact",value:function(e){var r=[],n=e.transform&&"object"===i(e.transform);if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||n){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&u(t,"setAny",this,3)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var o=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,n?e.transform:void 0];o=o.filter(function(e){return null!=e});for(var a=0;a<o.length;a++)r.push({range:o[a].range,log:o[a].op.name,target:o[a].target,op:o[a].op});var s=[];e.borderObj&&s.push("border"),e.background&&s.push("background"),e.mar&&s.push("margin"),e.animation&&s.push("animation"),e.span&&s.push("span"),this.chainReact(r,this.options.id,s)}}},{key:"excludeFromCode",value:function(){return this.excludeFromCodeTrue=!0,this}},{key:"addIcon",value:function(e){var t=document.createElement("img");return t.style.width="20px",t.style.marginLeft="10px",t.style.height="auto",t.setAttribute("src",e.url),this.res.appendChild(t),this}},{key:"between",value:function(e){return"S1"===e&&(this.res.style.fontSize="clamp(2rem, 8vw, 2.5rem)"),"S2"===e&&(this.res.style.fontSize="clamp(4rem, 8vw, 5rem)"),"S3"===e&&(this.res.style.fontSize="clamp(2rem, 5vw, 2.5rem)"),"S4"===e&&(this.res.style.fontSize="clamp(1.5rem, 2vw, 1.6rem)"),"S5"===e&&(this.res.style.fontSize="clamp(1.2rem, 2vw, 1.3rem)"),"S6"===e&&(this.res.style.fontSize="clamp(1rem, 2vw, 1.3rem)"),this}},{key:"stringGen",value:function(e){for(var t="",r=0;r<e;r++)t+="abcdefghijklmnopqrstuvwxyz".charAt(Math.floor(26*Math.random()));return t}},{key:"initLetter",value:function(e){var t=document.createElement("style");document.body.appendChild(t),Math.random();var r=this.stringGen(1e3);return this.res.setAttribute("id",r),document.styleSheets[0].insertRule("#".concat(r,"::first-letter { color: green; font-size: 3em; padding: 0.1em }"),0),this}},{key:"minusMargin",value:function(){return this.res.style.marginRight="-3.1em",this}},{key:"fluid",value:function(e){if("S1"===e){this.res=document.createElement("h1");var t=document.createTextNode(this.text);this.res.appendChild(t),this.res.style.fontSize="calc(1.625rem + 4.3vw)"}if("S2"===e){this.res=document.createElement("h2");var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.525rem + 3.525vw)"}if("S3"===e){this.res=document.createElement("h3");var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.375rem + 2.75vw)"}if("S4"===e){this.res=document.createElement("h4");var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.275rem + 1.975vw)"}return"S5"===e&&(this.res.style.fontSize="calc(1.1rem + 1.2vw)"),this}},{key:"getClampValue",value:function(e){return"S7"===e?"clamp(1.45rem, 2vw + 1.5rem, 1.69rem)":"S6"===e?"clamp(2.25rem, 2vw+1.5rem, 3.25rem)":"S5"===e?"clamp(2.75rem, 2vw + 1.5rem, 3.25rem)":"S4"===e?"clamp(3.5rem, 2vw + 1.5rem, 3.25rem)":"S3"===e?"clamp(4.25rem, 2vw + 1.5rem, 3.25rem)":"S2"===e?"clamp(5rem, 2vw + 1.5rem, 3.25rem)":"S1"===e?"clamp(6rem, 2vw + 1.5rem, 3.25rem)":void 0}},{key:"clampCopy",value:function(e){return this.res.style.fontSize=this.getClampValue(e),this}},{key:"large",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="7rem":e.res.style.fontSize="5rem"};return t(),window.addEventListener("resize",t),this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,this}},{key:"responsive",value:function(e){var t=this;this.set=!1,this.setB=!1;var r=function(){window.innerWidth<e.minw?(t.setB=!1,t.set||(t.res.style.color="#3498db",t.res.style.fontSize="".concat(e.baseVW/100*window.innerWidth,"px"),t.set=!0)):window.innerWidth>e.maxw?(t.set=!1,t.setB||(t.res.style.color="orange",t.res.style.fontSize="".concat(e.baseVW/100*e.maxw,"px"),t.setB=!0)):(t.set=!1,t.setB=!1,t.res.style.color="black",t.res.style.fontSize="".concat(e.baseVW,"vw"))};return r(),window.addEventListener("resize",r),this}},{key:"medium",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2.25rem":e.res.style.fontSize="1.5em"};return t(),window.addEventListener("resize",t),this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"small",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="1.5em":e.res.style.fontSize="1em"};return t(),window.addEventListener("resize",t),this}},{key:"sizes",value:function(e){var t=this;this.res.style.fontSize="".concat(e[0].size,"rem");var r=function(){for(var r=0;r<e.length;r++)e[r].width&&window.matchMedia("(min-width: ".concat(e[r].width,"px)")).matches&&(t.res.style.fontSize="".concat(e[r].size));window.matchMedia("(max-device-width: 415px)").matches&&(t.res.style.fontSize="".concat(e[e.length-1].mobile))};return r(),window.addEventListener("resize",r),this}},{key:"setup",value:function(e){var t;e?(t=document.createElement(e.type),void 0!==e.id&&null!==e.id&&t.setAttribute("id",e.id),"span"===e.type&&e.animation&&(t.style.position="relative",t.style.display="block")):t=document.createElement("p");var r=document.createTextNode(this.text);return t.appendChild(r),this.res=t,this.res.style.padding=0,this.res.style.margin=0,this}},{key:"hide",value:function(){return this.res.style.visibility="hidden",this}},{key:"font",value:function(e){return this.res.style.fontFamily=e,this}},{key:"em",value:function(e){return this.res.style.fontSize="".concat(e,"em"),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"align",value:function(e){return this.res.style.textAlign="".concat(e),this}},{key:"weight",value:function(e){return this.res.style.fontWeight=e,this}},{key:"bold",value:function(){return this.res.style.fontWeight="bold",this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"width",value:function(e,t){return this.res.style.width=e,t&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),this}},{key:"offset",value:function(e){return this.res.style.gridRow=2,this.res.style.gridColumn=2,this.res.style.marginLeft="-60px",this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"updating",value:function(e,t){var r=this.res,n=this.text;return Object.defineProperty(e,t,{set:function(e){var t=document.createTextNode(n.replace("$",e));r.replaceChild(t,r.childNodes[0])}}),this}},{key:"apply",value:function(e){var t=this,r=this.res.styles,n=function(){for(var n=0;n<e.length;n++){var o=e[n];o.min&&o.max?window.matchMedia("(min-width: ".concat(o.min,"px) and (max-width: ").concat(o.max,"px)")).matches?Object.assign(t.res.style,o.styles):Object.assign(t.res.style,r):window.matchMedia("(max-width: ".concat(o.max,"px)")).matches?Object.assign(t.res.style,o.styles):Object.assign(t.res.style,r)}};return n(),window.addEventListener("resize",n),this}},{key:"render",value:function(e){if(!e)return this.options&&!this.options.span&&(this.res.textContent=this.text),this.looksLikeMarkdown(this.text)&&(this.res.innerHTML=this.parseMarkdown(this.text)),this.res;this.options&&this.options.id&&this.res.setAttribute("id",this.options.id),this.options&&!this.options.span&&(this.res.textContent=this.text),this.looksLikeMarkdown(this.text)&&(this.res.innerHTML=this.parseMarkdown(this.text)),document.querySelector(e).appendChild(this.res)}}],n&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},6182:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(null,arguments)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}r.d(t,{X:()=>f});var f=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)).res=document.createElement("table"),e.res.style.borderCollapse="separate",e.res.style.borderSpacing="0",e.res.style.overflow="hidden",e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,i=[{key:"add",value:function(e){this.data=e,this.datas=e;var t=Object.keys(e[0]);return this.generateTable(this.res,e),this.generateTableHead(this.res,t),this}},{key:"style",value:function(e){return e.font&&(this.res.style.fontFamily=e.font),this}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"set",value:function(e){return e.cellPadding&&this.cellPadding(e.cellPadding),e.cellAlign&&this.cellAlign(e.cellAlign),e.style&&this.style(e.style),e.headStyle&&this.headStyle(e.headStyle),e.border&&this.border(e.border),e.center&&this.center(e.center),e.borderRadius&&this.borderRadius(e.borderRadius),e.gradient&&(this.res.style.background=e.gradient.op.gradient,this.res.style.backgroundClip="padding-box"),this.obj=e,this.options=e,this.callReact(e),this}},{key:"callReact",value:function(e){var r,n,o,i=[];if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||e.transform){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&(r=t,n=this,"function"==typeof(o=c(u(1&3?r.prototype:r),"setAny",n))?function(e){return o.apply(n,e)}:o)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var a=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,e.transform];a=a.filter(function(e){return null!=e});for(var s=0;s<a.length;s++)i.push({range:a[s].range,log:a[s].op.name,target:a[s].target,op:a[s].op});var l=[];e.borderObj&&l.push("border"),e.background&&l.push("background"),e.mar&&l.push("margin"),e.animation&&l.push("animation"),e.span&&l.push("span"),l.push("border"),this.chainReact(i,this.options.id,l)}}},{key:"toCode",value:function(){var e=JSON.stringify(this.data,null,2),t=JSON.stringify(this.obj,null,2);return e=e.replace(/"(\w+)"\s*:/g,"$1:"),t=t.replace(/"(\w+)"\s*:/g,"$1:"),["new Table()\n .add(".concat(e,")\n .set(").concat(t,")")]}},{key:"borderRadius",value:function(e){return this.res.style.borderRadius="".concat(4*e,"px"),this.res.style.overflow="hidden",this}},{key:"cellPadding",value:function(e){var t,r=o(this.res.rows);try{for(r.s();!(t=r.n()).done;){var n,i=o(t.value.cells);try{for(i.s();!(n=i.n()).done;)n.value.style.padding=e}catch(e){i.e(e)}finally{i.f()}}}catch(e){r.e(e)}finally{r.f()}return this}},{key:"cellAlign",value:function(e){var t,r=o(this.res.rows);try{for(r.s();!(t=r.n()).done;){var n,i=o(t.value.cells);try{for(i.s();!(n=i.n()).done;)n.value.style.textAlign=e}catch(e){i.e(e)}finally{i.f()}}}catch(e){r.e(e)}finally{r.f()}return this}},{key:"headStyle",value:function(e){var t=this.res.rows[0];return t&&(t.style.color=e.color,e.background&&(t.style.backgroundColor=e.background)),this}},{key:"border",value:function(e){var t;this.res.style.borderCollapse="separate",this.res.style.borderSpacing="0",this.res.style.border=e,this.res.style.borderRadius="12px";var r,n=o(this.res.rows);try{for(n.s();!(r=n.n()).done;){var i,a=o(r.value.cells);try{for(a.s();!(i=a.n()).done;)i.value.style.border="none"}catch(e){a.e(e)}finally{a.f()}}}catch(e){n.e(e)}finally{n.f()}for(var s=0;s<this.res.rows.length-1;s++){var l,c=o(this.res.rows[s].cells);try{for(c.s();!(l=c.n()).done;)l.value.style.borderBottom=e}catch(e){c.e(e)}finally{c.f()}}var u,d=(null===(t=this.res.rows[0])||void 0===t?void 0:t.cells.length)||0,f=o(this.res.rows);try{for(f.s();!(u=f.n()).done;)for(var p=u.value,h=0;h<d-1;h++)p.cells[h].style.borderRight=e}catch(e){f.e(e)}finally{f.f()}return this}},{key:"generateTableHead",value:function(e,t){var r,n=e.createTHead().insertRow(),i=o(t);try{for(i.s();!(r=i.n()).done;){var a=r.value,s=document.createElement("th");s.textContent=a,n.appendChild(s)}}catch(e){i.e(e)}finally{i.f()}}},{key:"generateTable",value:function(e,t){var r,n=o(t);try{for(n.s();!(r=n.n()).done;){var i=r.value,a=e.insertRow();for(var s in i)a.insertCell().textContent=i[s]}}catch(e){n.e(e)}finally{n.f()}}},{key:"render",value:function(e){var t=document.createElement("div");if(t.style.overflowX="auto",t.appendChild(this.res),!e)return t;document.querySelector(e).appendChild(t)}}],i&&a(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},6679:(e,t,r)=>{function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(o=function(){return!!e})()}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}r.d(t,{T:()=>l}),r(9873);var l=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.res=null,this.currentItem=""},t=[{key:"set",value:function(e){var t=this,r=e;this.options=e;var n=document.createElement("input");n.setAttribute("list","dlCities"),n.setAttribute("id","my");var o=e.data,i=0,a=o.length,s=document.createElement("datalist");for(s.id="dlCities",i=0;i<a;i+=1){var l=document.createElement("option");l.value=o[i],s.appendChild(l)}return n.appendChild(s),n.addEventListener("change",function(){var e=document.querySelector("#my").value;t.currentItem=e}),n.setAttribute("placeholder","Type value"),n.style.padding=".4rem .75rem",n.style.fontSize="1rem",this.res=n,this.responsive(),r.arrayPadding&&this.arrayPadding(r.arrayPadding.sides,r.arrayPadding.value),r.arrayMargin&&this.arrayMargin(r.arrayMargin.sides,r.arrayMargin.value),r.pad&&this.pad(r.pad),r.mar&&this.mar(r.mar),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return["new DataList().set(".concat(e,")")]}},{key:"getValue",value:function(){return this.res.value}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),e.includes("all")&&(this.res.style.padding=t),this}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),this}},{key:"margin",value:function(e){return this.res.style.margin=e,this}},{key:"responsive",value:function(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="100%"),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],t&&a(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),c=l;l=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,t,r){if(o())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var a=new(e.bind.apply(e,i));return r&&n(a,r.prototype),a}(c,t)},"undefined"!=typeof window&&(window.DataList=l)},7108:(e,t,r)=>{r.d(t,{N:()=>h});var n=r(9873),o=r(1382);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(e,t,r,n){var o=d(f(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof o?function(e){return o.apply(r,e)}:o}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},d.apply(null,arguments)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var h=function(e){function t(e,r,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,r){return t=f(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}(this,t)).link=r,o.text=e,o.code=[],o.css=[],o.elCSS=[],o.html=[],o.res=null,o.stopEM=n,o.setup(),o.inlineBlock(),o.res.addEventListener("click",function(e){var t=o.link||o.res.getAttribute("href");if(t){var r=new URL(t,window.location.href).href,n=/^https?:\/\//i.test(r),i=r.startsWith("#"),a=/^[a-zA-Z]+:/.test(r);n||i||r.endsWith(".html")||a||(e.preventDefault(),"navigation"in window?navigation.navigate(r):(history.pushState({},"",r),document.dispatchEvent(new PopStateEvent("popstate"))))}}),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,(n=[{key:"toElCSS",value:function(){return this.preffersId?this.elCSS.unshift(this.res.id+" { \n"):this.elCSS.unshift("."+this.class+" { \n"),this.elCSS.push(" } \n \n"),this.elCSS}},{key:"getType",value:function(){return"HTMLAnchorElement"}},{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var e=Object.fromEntries(Object.entries(this.options).filter(function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2);return t[0],null!==t[1]})),t=(0,o.sy)(e,4);return["new Link().set(".concat(t,")")]}},{key:"setup",value:function(){var e=document.createElement("a");e.setAttribute("href",this.link),e.style.textDecoration="none",e.style.color="black",e.style.fontFamily="Arial";var t=document.createTextNode(this.text);return e.appendChild(t),this.res=e,!1===this.stopEM&&this.em(1),this}},{key:"appendImageAsChild",value:function(e,t){var r=document.createElement("a");e.options.vtn&&(r.style.viewTransitionName=e.options.vtn),r.setAttribute("href",e.options.url);var n=document.createElement("img");return e.options&&(n.style.width=e.options.size,e.options.radius&&(n.style.borderRadius=e.options.radius),n.setAttribute("src",e.options.img),e.options.pad&&(this.res.style.padding=e.options.pad),r.appendChild(n)),this.res=r,t&&(this.res.style.marginLeft=t),this}},{key:"addIcon",value:function(e){var t=document.createElement("img");return t.style.width="20px",t.style.height="auto",t.style.marginLeft=e.padding?e.padding:"10px",t.setAttribute("src",e.url),this.res.appendChild(t),this}},{key:"removeQuotesFromFirstWord",value:function(e){if(e)return e.replace((0,o._H)(),"$1:")}},{key:"set",value:function(e){this.elCSS.push("text-decoration: none; \n"),this.options=e;var r="";e.onTap&&this.onTap(e.onTap),e.tags&&u(t,"setTags",this,3)([e.tags]),e.id&&this.res.setAttribute("id",e.id),e.id&&u(t,"setID",this,3)([e.id]),this.commonMethods(e),e.flex&&(this.res.style.display="flex"),e.fixMobileTap&&this.fixMobileTap(e.fixMobileTap);var n=this.removeQuotesFromFirstWord(JSON.stringify(e.pad));if(e.pad&&(r+="\n pad: ".concat(n,",")),e.preffersId&&(this.preffersId=e.preffersId),null!=e.preffersId&&(r+="\n preffersId: ".concat(e.preffersId,",")),e.class&&u(t,"setClass",this,3)([e.class]),e.class&&(r+='\n class: "'.concat(e.class,'",')),e.borderObj){this.res.style.border="".concat(e.borderObj.width," solid ").concat(e.borderObj.color),this.res.style.borderRadius="".concat(e.borderObj.radius);var o=this.removeQuotesFromFirstWord(JSON.stringify(e.borderObj));r+="\n borderObj: ".concat(o,",")}if(!1===this.options.preffersId?this.html.push('<a class="'.concat(e.class,'" href="#hello">').concat(e.text,"</a> \n \n")):e.id&&this.html.push('<a id="'.concat(e.id.substr(1),'" href="#hello">').concat(e.text,"</a> \n \n")),null!=e.blastData){var i=this.removeQuotesFromFirstWord(JSON.stringify(e.blastData));u(t,"setAny",this,3)([{globalBlast:"1px ".concat(e.blastData.color)}]),e.blastData&&(r+="\n blastData: ".concat(i,","))}e.nowrap&&(this.res.style.whiteSpace="nowrap"),e.font&&this.font(e.font),e.font&&(r+='\n font: "'.concat(e.font,'",')),e.font&&this.elCSS.push('font-family: "'.concat(e.font,'"; \n')),e.fluidc&&this.fluidCopy(e.fluidc),e.fluidc&&(r+='\n fluidc: "'.concat(e.fluidc,'",')),e.clampc&&this.clampCopy(e.clampc),this.options.id&&(r+='\n id: "'.concat(this.options.id,'",')),e.align&&this.leftAlign(e.align),e.align&&(r+='\n align: "'.concat(e.align,'",')),e.type&&(this.res.style.display="block"),e.color&&this.color(e.color),e.color&&(r+='\n color: "'.concat(e.color,'",')),e.color&&this.elCSS.push('color: "'.concat(e.color,'"; \n')),e.background&&this.background(e.background);var a=this.removeQuotesFromFirstWord(JSON.stringify(e.background));e.background&&(r+="\n background: ".concat(a,",")),e.hover&&this.hover(e.hover);var s=this.removeQuotesFromFirstWord(JSON.stringify(e.hover));if(e.hover&&(r+="\n hover: ".concat(s,",")),e.blast&&(this.blastData=e.blast),e.bold&&(r+="\n bold: ".concat(e.bold,",")),e.block&&this.toBlock(),e.block&&(r+="\n block: ".concat(e.block,",")),e.radius&&(r+='\n radius: "'.concat(e.radius,'",')),e.width&&(r+='\n width: "'.concat(e.width,'",')),e.maxWidth&&this.maxWidth(e.maxWidth),e.url&&this.res.setAttribute("href",e.url),r+='\n url: "'.concat(e.url,'",'),e.text&&(this.res.textContent=e.text),r+='\n text: "'.concat(e.text,'",'),e.data){e.data&&this.appendImageAsChild(e.data,"20px");var l=this.removeQuotesFromFirstWord(JSON.stringify(e.data));e.data&&(r+="\n data: ".concat(l))}if(e.icon){this.addIcon(e.icon);var c=this.removeQuotesFromFirstWord(JSON.stringify(e.icon));r+="\n icon: ".concat(c,",")}if(e.shadow){var d=e.shadow,f=this.removeQuotesFromFirstWord(JSON.stringify(d));r+="\n shadow: ".concat(f,",")}if(e.stroke){var p=this.removeQuotesFromFirstWord(JSON.stringify(e.stroke));e.stroke&&(r+="\n stroke: ".concat(p,","))}if(e.backgroundOp){var h=this.removeQuotesFromFirstWord(JSON.stringify(e.backgroundOp));r+="\n backgroundOp: ".concat(h,",")}if(e.marginOp){var y=this.removeQuotesFromFirstWord(JSON.stringify(e.marginOp));r+="\n marginOp: ".concat(y,",")}if(e.gradient){var m=this.removeQuotesFromFirstWord(JSON.stringify(e.gradient));r+="\n gradient: ".concat(m,",")}if(e.animation){var v=this.removeQuotesFromFirstWord(JSON.stringify(e.animation));r+="\n animation: ".concat(v,",")}if(e.transform){var b=this.removeQuotesFromFirstWord(JSON.stringify(e.transform));r+="\n transform: ".concat(b,",")}if(e.blast){var g=this.removeQuotesFromFirstWord(JSON.stringify(e.blast));r+="\n blast: ".concat(g,",")}var w="new Link().set({".concat(r,"}) \n");this.code.push(w),e.color&&this.color(e.color),e.rounded&&this.round(),e.new&&(this.res.setAttribute("target","_blank"),this.res.setAttribute("rel","noopener noreferrer")),e.transform&&this.reactOnTransform(e.transform);var _=[],x=[e.border,e.blast,e.gradient,e.animation,e.span,e.shadow,e.backgroundOp,e.animation,e.transform];if((x=x.filter(function(e){return null!=e})).length>0){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&u(t,"setAny",this,3)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]);for(var k=0;k<x.length;k++)_.push({range:x[k].range,log:x[k].op.name,target:x[k].target,op:x[k].op});var O=[];e.borderObj&&O.push("border"),e.background&&O.push("background"),e.mar&&O.push("margin"),e.animation&&O.push("animation"),this.chainReact(_,e.id,O,e.isNavA),this.res.style.zIndex=1}return this}},{key:"fixMobileTap",value:function(e){this.res.style.pointerEvents="auto",this.res.style.touchAction="manipulation",this.res.style.cursor="pointer",this.res.style.zIndex="1",this.res.style.position="relative"}},{key:"maxWidth",value:function(e){return this.res.style.maxWidth=e,this}},{key:"leftAlign",value:function(e){return this.res.style.textAlign=e,this}},{key:"getClampValue",value:function(e){return"S6"===e?"clamp(2.25rem, 2vw+1.5rem, 3.25rem)":"S5"===e?"clamp(2.75rem, 2vw + 1.5rem, 3.25rem)":"S4"===e?"clamp(3.5rem, 2vw + 1.5rem, 3.25rem)":"S3"===e?"clamp(4.25rem, 2vw + 1.5rem, 3.25rem)":"S2"===e?"clamp(5rem, 2vw + 1.5rem, 3.25rem)":"S1"===e?"clamp(6rem, 2vw + 1.5rem, 3.25rem)":void 0}},{key:"clampCopy",value:function(e){return this.res.style.fontSize=this.getClampValue(e),this}},{key:"fluidCopy",value:function(e){return"S1"===e&&(this.res.style.fontSize="calc(1.625rem + 5.075vw)"),"S2"===e&&(this.res.style.fontSize="calc(1.500rem + 4.3vw)"),"S3"===e&&(this.res.style.fontSize="calc(1.375rem + 3.525vw)"),"S4"===e&&(this.res.style.fontSize="calc(1.250rem + 2.75vw)"),"S5"===e&&(this.res.style.fontSize="calc(1.125rem + 1.975vw)"),"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"inlineBlock",value:function(){return this.res.style.display="inline-block",this}},{key:"toBlock",value:function(){return this.res.style.display="block",this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"newWindow",value:function(){return this.res.target="_new",this}},{key:"transition",value:function(e){return this.res.style.transition="".concat(e,"s ease-in-out"),this.res.style.transionProperty="background, color",this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"medium",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2rem":e.res.style.fontSize="1.5em"};return t(),window.addEventListener("resize",t),this}},{key:"opacity",value:function(e){return this.res.style.opacity=e,this}},{key:"em",value:function(e){var t=this,r=window.matchMedia("(max-device-width: 415px)"),n=function(){r.matches?t.res.style.fontSize="2em":t.res.style.fontSize="1em"};return n(),window.addEventListener("resize",n),this}},{key:"font",value:function(e){return this.res.style.fontFamily=e,this}},{key:"render",value:function(e){return e?(document.querySelector(e).appendChild(this.res),this):this.res}}])&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},7135:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{J:()=>a});var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setupa()},t=[{key:"seto",value:function(e){return this.e=e.a,e.speed&&(this.divisor=e.speed),e.height&&(this.setH=e.height),this}},{key:"setupa",value:function(){return this.parallaxIDs(["#rta"]),this.divisor(1),this}},{key:"add",value:function(e){return this.items=e,this.setup(),this}},{key:"parallaxIDs",value:function(e){return this.parallaxIDs=e,this}},{key:"divisor",value:function(e){return this.divisor=e,this}},{key:"setup",value:function(){var e,t=this;this.pts=0;var r=document.createElement("div");r.style.width="100%",r.style.height=null!==(e=this.setH)&&void 0!==e?e:"100%";var n=document.createElement("div");n.style.display="flex",n.style.width="100%";for(var o=0;o<this.items.length;o++){var i=this.items[o].render();n.appendChild(i)}r.appendChild(n);var a=window.localStorage.getItem("pts");null!==a&&(this.pts=a),r.addEventListener("wheel",function(e){e.deltaY<0?t.pts--:e.deltaY>0&&t.pts++,window.localStorage.setItem("pts",t.pts),e.preventDefault();for(var r=0;r<n.childNodes.length;r++){var o=n.childNodes[r];t.parallaxIDs.includes(o.id)&&(o.style.transform="translateX(".concat(t.pts/t.divisor,"%)"))}n.style.transform="translateX(".concat(t.pts/t.divisor,"%)"),window.localStorage.setItem("translation",t.pts/t.divisor)});var s=window.localStorage.getItem("translation");null!==s&&(n.style.transform="translateX(".concat(s,"%)")),this.div=r}},{key:"render",value:function(e){if(!e)return this.div;document.querySelector(e).appendChild(this.div)}}],t&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},7258:(e,t,r)=>{r.d(t,{b:()=>f});var n=r(9873),o=r(1382);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var f=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)).res=document.createElement("div"),e.res.style.display="grid",e.attributes={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,n=[{key:"set",value:function(e){return this.options=e,this.attributes=e,this.templateCols=e.templateCols,e.templateCols&&(this.res.style.gridTemplateColumns="repeat(".concat(e.templateCols.cols,", 1fr)"),this.res.style.gridTemplateRows="repeat(".concat(e.templateCols.cols,", 1fr)")),this.res.style.height=e.height?e.height:"600px",e.positions&&(this.storedPositions=e.positions),this}},{key:"generateGridPositions",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50,o=document.createElement("div");o.classList.add("container"),o.style.display="grid",o.style.gridTemplateColumns="repeat(".concat(n,", 1fr)"),o.style.gridTemplateRows="repeat(".concat(r,", 1fr)"),o.style.width="100%",o.style.height="100vh";var i=e.map(function(e,t){return{row:Math.floor(r/2)+t,col:Math.floor(n/2)+t}});return e.forEach(function(o,a){var s=i[a],l=s.row,c=s.col,u=function(t){var r=0,n=0;return e.forEach(function(e,o){var a=e.weight,s=e.direction,l=i[t],c=i[o],u=l.col-c.col,d=l.row-c.row,f=a*(1/(Math.sqrt(u*u+d*d)+1));switch(s){case"L":r-=f;break;case"R":r+=f;break;case"U":n-=f;break;case"B":n+=f}}),{forceX:r,forceY:n}}(a),d=u.forceX,f=u.forceY;c=Math.max(1,Math.min(n,c+Math.round(d))),l=Math.max(1,Math.min(r,l+Math.round(f)));var p=t.items.filter(function(e){return e.id===o.attract.slice(1)})[0].render();p.style.gridRowStart=l,p.style.gridColumnStart=c,p.style.display="flex",p.style.alignItems="center",p.style.justifyContent="center",p.style.fontWeight="bold",t.res.appendChild(p)}),this}},{key:"add",value:function(e){this.items=e;var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw i}}}}(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;this.res.appendChild(n.render())}}catch(e){r.e(e)}finally{r.f()}return this.storedPositions&&this.generateGridPositions(this.storedPositions),this}},{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var e=(0,o.sy)(this.options,4),t="";return t+=".add([\n",t+=this.items.map(function(e){return e.toCode().join("").trim()}).join(",\n"),t+="\n])",["new Free().set(".concat(e,")").concat(t)]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],n&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},7698:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{t:()=>c});var c=function(e){function t(){var e,r,o,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=this,o=t,o=s(o),e=function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(r,a()?Reflect.construct(o,i||[],s(r).constructor):o.apply(r,i)))._noTheme=!0,e.gridContainer=document.createElement("div"),e.gridContainer.classList.add("grid-container"),e.gridContainer.style.display="grid",e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,i=[{key:"set",value:function(e){return e.gap&&(this.gridContainer.style.gap=e.gap),e.height&&(this.gridContainer.style.height=e.height),e.width&&(this.gridContainer.style.width=e.width),this}},{key:"react",value:function(e){var t=this,r=function(){for(var r=0;r<e.length-1;r++){var n=parseInt(e[r].at),o=parseInt(e[r+1].at);if(window.innerWidth>n&&window.innerWidth<o){var i=e[r].template.map(function(e){return e.split("").join(" ")}).map(function(e){return'"'.concat(e,'"')}).join(" ");t.gridContainer.style.gridTemplateAreas=i}else if(window.innerWidth>o){var a=e[e.length-1].template.map(function(e){return e.split("").join(" ")}).map(function(e){return'"'.concat(e,'"')}).join(" ");t.gridContainer.style.gridTemplateAreas=a}}};return r(),window.addEventListener("resize",r),this}},{key:"add",value:function(e){for(var t=function(e){for(var t=[],r=0;r<e;r++){var n="",o=r;do{n=String.fromCharCode(65+o%26)+n,o=Math.floor(o/26)-1}while(o>=0);t.push(n)}return t}(e.length),r=0;r<e.length;r++){var n=e[r].render();n.style.gridArea=t[r].toLowerCase();var o=document.createElement("div");o.textContent=e[r].text,o.style.gridArea=t[r].toLowerCase(),this.gridContainer.appendChild(n)}return this}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.gridContainer),this.gridContainer}},{key:"toCode",value:function(){return"new Simple().set({}).react([])"}}],i&&o(r.prototype,i),c&&o(r,c),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,c}(r(9873).y)},7879:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}r.d(t,{f:()=>d});var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=c(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}(this,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,(i=[{key:"setup",value:function(e){return this.obj=e,this.setTags(this.obj.tags),this.animate=void 0===this.obj.animate||this.obj.animate,this.res=this.createSideNav(e),this.res.style.position="relative",this.res.style.zIndex=3,this.closed=!0,this}},{key:"toggleSideNav",value:function(e){var t=this;this.closed=!this.closed;var r=this.res.children[0];if(this.closed)if(r.style.overflowX="hidden",e.style.opacity=1,this.animate){this.ope=r.animate([{transform:"translateX(0)"},{transform:"translateX(100%)"}],{duration:300,fill:"forwards"}),this.ope.finished.then(function(){var e=new CustomEvent(t.obj.tags.close);window.dispatchEvent(e)});var n,i=-1,a=o(r.children);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(i+=1,this.masterEL[i]){var l,c=o(s.children);try{for(c.s();!(l=c.n()).done;){var u=l.value,d=this.masterEL[i].options.animation;d&&this.mappedIDS.includes(u.id)&&u.animate(d.op.keyframesClose,d.op.closeOptions)}}catch(e){c.e(e)}finally{c.f()}}}}catch(e){a.e(e)}finally{a.f()}}else r.style.display="none";else{r.style.overflowX="none";var f,p=-1,h=o(r.children);try{for(h.s();!(f=h.n()).done;){var y=f.value;p+=1;var m,v=o(y.children);try{for(v.s();!(m=v.n()).done;){var b=m.value;if(this.mappedIDS.includes(b.id)&&void 0!==this.masterEL[0]){var g=this.masterEL[p].options.animation;if(g){var w=g.op.openOptions;w.delay||(w.delay=1),w.duration||(w.duration=300),b.animate(g.op.keyframesOpen,w)}}}}catch(e){v.e(e)}finally{v.f()}}}catch(e){h.e(e)}finally{h.f()}e.style.opacity=0,this.animate?(r.style.display="flex",this.opeClose=r.animate([{transform:"translateX(100%)"},{transform:"translateX(0)"}],{duration:300,fill:"forwards"}),this.opeClose.finished.then(function(){var e=new CustomEvent(t.obj.tags.open);window.dispatchEvent(e)})):r.style.display="flex"}}},{key:"createToggleButton",value:function(e){var t=document.createElement("button");return t.innerText="☰",t.style.padding="10px 20px",t.style.backgroundColor="transparent",t.style.color=null!=e?e:"#3498db",t.style.border="none",t.style.borderRadius="5px",t.style.cursor="pointer",t.style.zIndex=1,t.style.fontSize="1.6rem",this.obj.fixed&&(t.style.position="fixed"),t}},{key:"createCloseButton",value:function(e){var t=document.createElement("button");return t.innerText="×",t.style.fontSize="1.6rem",t.style.padding="10px 20px",t.style.backgroundColor="transparent",t.style.color=null!=e?e:"black",t.style.border="none",t.style.borderRadius="5px",t.style.cursor="pointer",t.style.zIndex=1,t.style.alignSelf="flex-end",t}},{key:"createSideNav",value:function(e){var t=this,r=document.createElement("div");r.style.display="flex",r.style.justifyContent="flex-end";var n=document.createElement("div");n.style.display="none",n.style.background=this.obj.background||"#1abc9c",n.style.height="100%",window.matchMedia("(max-device-width: 415px)").matches?n.style.width="100%":n.style.width=this.obj.width||"400px",n.style.position="fixed",n.style.right=0,this.animate&&(n.style.transform="translateX(100%)"),n.style.flexDirection="column",n.style.justifyContent="flex-start";var o=this.createToggleButton(this.obj.hamColour.opened),i=this.createCloseButton(this.obj.hamColour.closed);return o.addEventListener("click",function(){return t.toggleSideNav(o)}),i.addEventListener("click",function(){return t.toggleSideNav(o)}),n.appendChild(i),r.appendChild(n),r.appendChild(o),r}},{key:"items",value:function(e){this.masterEL=e.items.filter(function(e){return void 0!==e.link});var t=e.items.filter(function(e){return void 0===e.items}).map(function(e){return e.id});if(this.mappedIDS=t,this.item=e,this.res.children[0].appendChild(e.render()),void 0!==this.masterEL[0]){var r=this.masterEL[0].options.animation;if(r){var n,i=o(this.res.children[0].children);try{for(i.s();!(n=i.n()).done;){var a,s=o(n.value.children);try{for(s.s();!(a=s.n()).done;){var l=a.value;this.mappedIDS.includes(l.id)&&(r.op.closeOptions.delay=0,l.animate(r.op.keyframesClose,r.op.closeOptions))}}catch(e){s.e(e)}finally{s.f()}}}catch(e){i.e(e)}finally{i.f()}}}return this}},{key:"toCode",value:function(){var e="new SideNav().setup(".concat(this.formatObj(this.obj),")");if(this.item){var t=this.item.toCode?this.item.toCode().join(""):this.formatObj(this.item);t=t.replace(/,\s*(\.set\(|\.add\()/g,"\n $1"),e+=".items(".concat(t,")")}return e}},{key:"formatObj",value:function(e){return JSON.stringify(e,null,2).replace(/"(\w+)"\s*:/g,"$1:")}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.res),this.res}}])&&a(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},7926:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{B:()=>c});var c=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t))._noTheme=!0,r.res=null,r.st=e,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,i=[{key:"setup",value:function(){var e=document.createElement("div");return e.style.display="grid",this.res=e,this.st&&this.sticky(),this}},{key:"set",value:function(e){return this.setup(),e.height&&(this.res.style.height=e.height),e.sticky&&this.sticky(),this}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"add",value:function(e){this.children=e;for(var t=0;t<e.length;t++){var r=e[t].render();r.style.gridColumn=1,r.style.gridRow=1,this.res.appendChild(r)}return this}},{key:"toCode",value:function(){var e="new Stack().set({})";if(this.children.length>0){var t=this.children.map(function(e){return e.toCode()}).join(",\n");e+=".add([\n \n ".concat(t," \n \n])")}return[e]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector("body").style.margin=0,document.querySelector("body").style.padding=0,document.querySelector(e).appendChild(this.res)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},8424:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{$:()=>c});var c=function(e){function t(e,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).text=e,o.res=null,o.val=r,o.setup(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"setup",value:function(e){return this}},{key:"set",value:function(e){this.options=e;var t=document.createElement("button");if(t.style.background="transparent",t.style.border="none",e.img)t.append(e.img.render());else if(e.svg)if("string"==typeof e.svg){var r=(new DOMParser).parseFromString(e.svg,"image/svg+xml").documentElement;t.appendChild(r)}else e.svg instanceof SVGElement&&t.appendChild(e.svg);else if(e.url&&!e.img){var n,o,i=document.createElement("img");i.setAttribute("src",e.url),i.style.width=(null===(n=e.frame)||void 0===n?void 0:n.width)||"50px",i.style.height=(null===(o=e.frame)||void 0===o?void 0:o.height)||"50px",t.appendChild(i)}else{var a=document.createTextNode(this.text.replace("$",this.val));t.appendChild(a)}return this.res=t,this.commonMethods(e),e&&"submit"===e.type&&t.setAttribute("type",e.type),this.border("none"),this.res.style.display="block",e.background&&this.background(e.background),e.padding&&(this.deprecatedOption("padding","pad"),this.pad([{a:e.padding}])),e.margin&&(this.deprecatedOption("margin","mar"),this.mar([{a:e.margin}])),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.centered&&(this.res.style.marginRight="auto",this.res.style.marginLeft="auto",this.res.style.backgroundColor="black"),e.border&&this.border(e.border),e.radius&&this.borderRadius(e.radius),e.class&&this.setClass(e.class),e.color&&this.color(e.color),e.auto&&this.auto(),e.weight&&(this.res.style.fontWeight=e.weight),e.fluidc&&this.fluidButtonCopy(e.fluidc),e.fluidc&&'\n fluidc: "'.concat(e.fluidc,'",'),e.onTap&&this.onTap(e.onTap),e.frame&&this.frame(e.frame),e.frame&&'\n frame: "'.concat(e.frame,'",'),e.keySet&&this.keySet(e.keySet),e.align&&(this.res.style.textAlign=e.align),e.weight&&(this.res.style.fontWeight=e.weight),e.bold&&(this.res.style.fontWeight="bold"),e.width&&(this.res.style.width=e.width),e.exact&&(this.res.style.fontSize=e.exact),this}},{key:"fluidButtonCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.250rem + 2.75vw)"}if("S5"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var a=document.createTextNode(this.text);this.res.appendChild(a),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"borderRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2.2rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"large",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="6rem":e.res.style.fontSize="3rem"};return t(),window.addEventListener("resize",t),this}},{key:"border",value:function(e,t){return"none"===e&&(this.res.style.border="none"),this.res.style.border="".concat(e," solid ").concat(t,"px"),this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,this}},{key:"updating",value:function(e,t){var r=this.res,n=this.text;return Object.defineProperty(e,t,{set:function(e){var t=document.createTextNode(n.replace("$",e));r.replaceChild(t,r.childNodes[0])}}),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,function(e,t){return"function"==typeof t?t.toString():t},4).replace(/"(\w+)":/g,"$1:").replace(/"(\(\)\s*=>\s*{[^}]*})"/g,"$1").replace(/\\n/g,"").replace(/\\"/g,'"');return['new Button("'.concat(this.text,'").set(').concat(e,")")]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},8597:(e,t,r)=>{function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"value",n=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,n=String(e);return t.filter(function(e){return function(e,t){if(e===t)return 0;for(var r=new Array(t.length+1),n=0;n<=t.length;n++)r[n]=n;for(var o=1;o<=e.length;o++){for(var i=[o],a=1;a<=t.length;a++){var s=e.charCodeAt(o-1)===t.charCodeAt(a-1)?0:1;i[a]=Math.min(r[a]+1,i[a-1]+1,r[a-1]+s)}r=i}return r[t.length]}(n,e)<=r})}(e,t),o="Unknown ".concat(r,' "').concat(e,'".');return n.length&&(o+=' Did you mean "'.concat(n[0],'"?')),t.length&&(o+=" Valid ".concat(r,"s: ").concat(t.join(", "),".")),o}r.d(t,{au:()=>n})},8807:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{c:()=>a});var a=function(){return e=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.obj=t||{},this.items=r||[]},(t=[{key:"render",value:function(){var e=document.createElement("div");e.style.display="flex",e.style.width="100%",e.style.justifyContent="space-around",e.setAttribute("id","innerItemsWrapper");var t=window.matchMedia("(max-device-width: 415px)"),r=window.matchMedia("(max-width: 600px)");(t.matches||r.matches)&&(e.style.marginTop="3rem");for(var n=0;n<this.items.length;n++){var o=this.items[n];e.appendChild(o.render())}var i=document.createElement("div");return i.style.width=this.obj.isSide?"333px":"100%",i.style.background=this.obj.background||"white",i.style.display="flex",i.style.justifyContent="center",i.style.alignItems="center",i.style.height="100%",i.setAttribute("id","outerItemsWrapper"),i.appendChild(e),this.obj.customStyle&&(e.style.width="auto",e.style.top="0rem",e.style.borderRadius="1rem",e.style.background=this.obj.background||"white",e.style.margin="1rem",e.style.position="absolute",e.style.opacity=.8),i}}])&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();"undefined"!=typeof window&&(window.CustomDivRenderer=a)},9110:(e,t,r)=>{r.d(t,{Ko:()=>z});var n=r(5594),o=["kind","formId"];function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(m(e)+" is not iterable")}function u(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return d(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var f=[][n]?t(t([][n]())):(d(t={},n,function(){return this}),t),p=c.prototype=s.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,d(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=c,d(p,"constructor",c),d(c,"constructor",l),l.displayName="GeneratorFunction",d(c,o,"GeneratorFunction"),d(p),d(p,o,"Generator"),d(p,n,function(){return this}),d(p,"toString",function(){return"[object Generator]"}),(u=function(){return{w:i,m:h}})()}function d(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}d=function(e,t,r,n){if(t)o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r;else{var i=function(t,r){d(e,t,function(e){return this._invoke(t,r,e)})};i("next",0),i("throw",1),i("return",2)}},d(e,t,r,n)}var f=u().m(w);function p(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=h(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function h(e,t){if(e){if("string"==typeof e)return y(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}var v=new Set(["input","labelInput","checkbox","radio","picker"]),b={text:{type:"string"},email:{type:"string",format:"email"},tel:{type:"string"},url:{type:"string",format:"uri"},number:{type:"number"},password:{type:"string"},date:{type:"string",format:"date"},time:{type:"string",format:"time"},search:{type:"string"}},g=function(e){return!!e&&"object"===m(e)};function w(e){var t,r,n,o,i;return u().w(function(a){for(;;)switch(a.p=a.n){case 0:if(g(e)){a.n=1;break}return a.a(2);case 1:return a.n=2,e;case 2:t=Array.isArray(e.children)?e.children:[],r=p(t),a.p=3,r.s();case 4:if((n=r.n()).done){a.n=6;break}return o=n.value,a.d(c(w(o)),5);case 5:a.n=4;break;case 6:a.n=8;break;case 7:a.p=7,i=a.v,r.e(i);case 8:return a.p=8,r.f(),a.f(8);case 9:return a.a(2)}},f,null,[[3,7,8,9]])}function _(e){var t,r="string"==typeof e.name?e.name:e.id;if("string"!=typeof r||!r)return null;if("checkbox"===e.type)t={type:"boolean"};else if("radio"===e.type||"picker"===e.type){var n=Array.isArray(e.items)?e.items.filter(function(e){return"string"==typeof e}):[];t=n.length?{type:"string",enum:n}:{type:"string"},"radio"===e.type&&!0===e.multiple&&(t={type:"array",items:t})}else t=s({},b[e.inputType]||b.text);var o=[e.label,e.placeholder,e.title].find(function(e){return"string"==typeof e&&e.trim()});return o&&(t.description=o.trim()),{key:r,schema:t,required:!0===e.required}}function x(e){return e.routes.map(function(e){var t=e.to.map(function(e){return e.label?"".concat(e.label," → ").concat(e.to):e.to}).join(", ");return"from ".concat(e.from,": ").concat(t)}).join("; ")}function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function O(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return S(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(S(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,S(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,S(d,"constructor",c),S(c,"constructor",l),l.displayName="GeneratorFunction",S(c,o,"GeneratorFunction"),S(d),S(d,o,"Generator"),S(d,n,function(){return this}),S(d,"toString",function(){return"[object Generator]"}),(O=function(){return{w:i,m:f}})()}function S(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}S=function(e,t,r,n){if(t)o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r;else{var i=function(t,r){S(e,t,function(e){return this._invoke(t,r,e)})};i("next",0),i("throw",1),i("return",2)}},S(e,t,r,n)}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach(function(t){P(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function P(e,t,r){return(t=function(e){var t=function(e){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||M(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function A(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){T(i,n,o,a,s,"next",e)}function s(e){T(i,n,o,a,s,"throw",e)}a(void 0)})}}function R(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=M(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function M(e,t){if(e){if("string"==typeof e)return D(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var I="2026-07-21",L="nodality-agent-manifest",B=function(e){var t=String(e);return"undefined"!=typeof CSS&&"function"==typeof CSS.escape?CSS.escape(t):t.replace(/([^a-zA-Z0-9_-])/g,"\\$1")};function W(e){if(!e)return{text:"",actions:[]};var t,r=function(e){var t=getComputedStyle(e);if("none"===t.display||"0"===t.opacity)return!1;var r=e.getBoundingClientRect();return r.width>0&&r.height>0},n=[],o=R(e.querySelectorAll("h1,h2,h3,h4,h5,h6,p,li"));try{for(o.s();!(t=o.n()).done;){var i=t.value;if(r(i)){var a=(i.textContent||"").replace(/\s+/g," ").trim();if(a){var s=i.tagName.toLowerCase();n.push(/^h[1-6]$/.test(s)?"".concat("#".repeat(+s[1])," ").concat(a):a)}}}}catch(e){o.e(e)}finally{o.f()}var l,c=[],u=R(e.querySelectorAll("a,button,[role=button]"));try{for(u.s();!(l=u.n()).done;){var d=l.value;if(r(d)){var f=(d.textContent||"").replace(/\s+/g," ").trim();f&&!c.includes(f)&&c.push(f)}}}catch(e){u.e(e)}finally{u.f()}return{text:n.join("\n"),actions:c}}var F=function(e,t,r){return{ok:!1,code:e,got:t,valid:r}};function z(e){var t=e.mount,r=e.elements,a=e.nodes,l=e.morphs,c=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).specDraft,a=void 0===r?null:r,l=(Array.isArray(t)?t:[]).find(function(e){return g(e)&&"agent-surface"===e.op});if(!l)return null;var c,u=function(e){var t,r=[],n=p(Array.isArray(e)?e:[]);try{for(n.s();!(t=n.n()).done;){var o,i=p(w(t.value));try{for(i.s();!(o=i.n()).done;){var a=o.value;r.push(a)}}catch(e){i.e(e)}finally{i.f()}}}catch(e){n.e(e)}finally{n.f()}return r}(e),d=new Map,f=p(u);try{for(f.s();!(c=f.n()).done;){var m=c.value;"string"==typeof m.id&&d.set(m.id,m)}}catch(e){f.e(e)}finally{f.f()}var b=new Set((Array.isArray(l.exclude)?l.exclude:[]).filter(function(e){return"string"==typeof e})),k="string"==typeof l.name&&l.name.trim()?l.name.trim().replace(/[^a-zA-Z0-9_-]/g,"_"):null,O=function(e){return k?"".concat(k,"_").concat(e):e},S=[],E=function(e,t){var r=(Array.isArray(e)?e:[]).filter(function(e){return g(e)&&"morph"===e.op});if(!r.length)return null;var o,a,s=[],l=p(r);try{for(l.s();!(o=l.n()).done;){var c,u=o.value,d=p((0,n.G)(u));try{for(d.s();!(c=d.n()).done;){var f=c.value;"string"==typeof f.from&&s.push(f)}}catch(e){d.e(e)}finally{d.f()}}}catch(e){l.e(e)}finally{l.f()}if(!s.length)return null;for(var m=s[0].from,v=function(e){return s.filter(function(t){return t.from===e})},b=new Set([m]),w=[m];w.length;){var _,x=p(v(w.shift()));try{for(x.s();!(_=x.n()).done;){var k,O=p(_.value.toIds);try{for(O.s();!(k=O.n()).done;){var S=k.value;"string"!=typeof S||b.has(S)||(b.add(S),w.push(S))}}catch(e){O.e(e)}finally{O.f()}}}catch(e){x.e(e)}finally{x.f()}}for(var E=[],j=0,P=s;j<P.length;j++){var C=P[j];if(b.has(C.from)&&!t.has(C.from)){var T=[];if(C.byLabel)for(var A=0,R=Object.entries(C.byLabel);A<R.length;A++){var M=i(R[A],2),D=M[0],I=M[1],L="string"==typeof I&&I.startsWith("#")?I.slice(1):I;t.has(L)||T.push({label:D,to:L})}else{var B,W=p(C.toIds);try{for(W.s();!(B=W.n()).done;){var F=B.value;t.has(F)||T.push({label:null,to:F})}}catch(e){W.e(e)}finally{W.f()}}T.length&&E.push({from:C.from,to:T,back:!0===C.back})}}for(var z=[],q=0,N=E;q<N.length;q++){var U,H=p(N[q].to);try{for(H.s();!(U=H.n()).done;){var G=U.value;z.includes(G.to)||z.push(G.to)}}catch(e){H.e(e)}finally{H.f()}}return{root:m,states:[m].concat((a=z.filter(function(e){return e!==m}),function(e){if(Array.isArray(e))return y(e)}(a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||h(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),destinations:z,routes:E,canGoBack:E.some(function(e){return e.back})}}(t,b);if(E){var j=E.destinations.filter(function(e){return!b.has(e)});j.length&&S.push({name:O("navigate"),kind:"navigate",description:"Move to another view of this page. These are in-page views reached by a transition, not separate URLs. Routes: "+x(E)+".",inputSchema:{type:"object",properties:{destination:{type:"string",enum:j,description:"The view to move to."}},required:["destination"]}}),E.canGoBack&&S.push({name:O("go_back"),kind:"back",description:"Return to the previous view, unwinding the path actually taken rather than following an edge.",inputSchema:{type:"object",properties:{}}})}var P,C=p((Array.isArray(l.forms)?l.forms:[]).filter(function(e){return"string"==typeof e}));try{for(C.s();!(P=C.n()).done;){var T=P.value,A=d.get(T);if(A&&"form"===A.type){var R,M={},D=[],I=p(w(A));try{for(I.s();!(R=I.n()).done;){var L=R.value;if(v.has(L.type)){var B=_(L);B&&!M[B.key]&&(M[B.key]=B.schema,B.required&&D.push(B.key))}}}catch(e){I.e(e)}finally{I.f()}Object.keys(M).length&&S.push({name:O("submit_".concat(T.replace(/[^a-zA-Z0-9_-]/g,"_"))),kind:"submit",formId:T,description:"string"==typeof A.title&&A.title.trim()?A.title.trim():'Fill and submit the "'.concat(T,'" form on this page.'),inputSchema:s({type:"object",properties:M},D.length?{required:D}:{})})}}}catch(e){C.e(e)}finally{C.f()}S.push({name:O("read_view"),kind:"read",description:"Read the content currently on screen as structured text: headings, body text and the labels of anything actionable.",inputSchema:{type:"object",properties:{}}});var W=s({spec:a,tools:S.map(function(e){return e.kind,e.formId,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,o)})},E?{views:{root:E.root,states:E.states.filter(function(e){return!b.has(e)}),routes:E.routes}}:{});return{tools:S,manifest:W}}(r,a,{specDraft:I});if(!c)return null;var u=c.tools,d=c.manifest,f=Array.isArray(l)?l.filter(Boolean):[],m=function(e){return f.find(function(t){return t.states&&t.states.has(e)})||null},b=function(){var e,r=R(f);try{for(r.s();!(e=r.n()).done;){var n=e.value,o=n.states&&null!=n.current?n.states.get(n.current):null;if(o)return o}}catch(e){r.e(e)}finally{r.f()}return t},k=function(e){var r=function(t){if(!t||"function"!=typeof t.querySelector)return null;if(t.id===e)return"FORM"===t.tagName?t:t.querySelector("form");var r=t.querySelector("#".concat(B(e)));return r?"FORM"===r.tagName?r:r.querySelector("form"):null},n=r(t);if(n)return n;var o,i=R(f);try{for(i.s();!(o=i.n()).done;){var a=o.value;if(a.states){var s,l=R(a.states.values());try{for(l.s();!(s=l.n()).done;){var c=r(s.value);if(c)return c}}catch(e){l.e(e)}finally{l.f()}}}}catch(e){i.e(e)}finally{i.f()}return null};if("undefined"!=typeof document){var S=document.getElementById(L);S&&S.remove();var E=document.createElement("script");E.type="application/json",E.id=L,E.textContent=JSON.stringify(d,null,2),(document.body||document.documentElement).appendChild(E)}var P,T=R(u);try{for(T.s();!(P=T.n()).done;){var M=P.value;if("submit"===M.kind&&t){var D=k(M.formId);D&&(D.setAttribute("toolname",M.name),D.setAttribute("tooldescription",M.description))}}}catch(e){T.e(e)}finally{T.f()}var z,q,N=Promise.resolve(),U=function(e){var t=N.then(e,e);return N=t.then(function(){},function(){}),t},H=function(){var e,t=R(f);try{for(t.s();!(e=t.n()).done;){var r=e.value;if(null!=r.current)return r.current}}catch(e){t.e(e)}finally{t.f()}return null},G={navigate:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).destination;return U(A(O().m(function r(){var n,o,i;return O().w(function(r){for(;;)switch(r.n){case 0:if(n=m(e)){r.n=1;break}return r.a(2,F("UNKNOWN_VIEW",e,f.flatMap(function(e){return C(e.states.keys())})));case 1:return o=n.current,r.n=2,n.goToState(e);case 2:if(n.current===e){r.n=3;break}return i=C(n.states.keys()),r.a(2,F("UNREACHABLE_FROM_HERE",e,i.filter(function(e){return e!==o})));case 3:return r.a(2,j({ok:!0,view:n.current},W(n.states.get(n.current)||t)))}},r)})))},back:function(){return U(A(O().m(function e(){var r;return O().w(function(e){for(;;)switch(e.n){case 0:if(r=f.find(function(e){return e.history&&e.history.length})){e.n=1;break}return e.a(2,F("NO_HISTORY",null,[]));case 1:return e.n=2,r.goBack();case 2:return e.a(2,j({ok:!0,view:r.current},W(r.states.get(r.current)||t)))}},e)})))},read:(q=A(O().m(function e(){return O().w(function(e){for(;;)if(0===e.n)return e.a(2,j({ok:!0,view:H()},W(b())))},e)})),function(){return q.apply(this,arguments)}),submit:(z=A(O().m(function e(){var t,r,n,o,i,a,s,l,c,u,d,f=arguments;return O().w(function(e){for(;;)switch(e.n){case 0:if(t=f.length>0&&void 0!==f[0]?f[0]:{},n=k((r=f.length>1?f[1]:void 0).formId)){e.n=1;break}return e.a(2,F("NO_FORM",r.formId,[]));case 1:if(o=r.inputSchema&&r.inputSchema.properties||{},i=r.inputSchema&&r.inputSchema.required||[],!(a=i.filter(function(e){return void 0===t[e]||""===t[e]||null===t[e]})).length){e.n=2;break}return e.a(2,F("MISSING_REQUIRED",a,Object.keys(o)));case 2:s=[],l=0,c=Object.keys(o);case 3:if(!(l<c.length)){e.n=7;break}if(u=c[l],void 0!==t[u]){e.n=4;break}return e.a(3,6);case 4:if(d=n.querySelector('[name="'.concat(u,'"], #').concat(CSS.escape(u)))){e.n=5;break}return e.a(3,6);case 5:"checkbox"===d.type?d.checked=!!t[u]:d.value=String(t[u]),d.dispatchEvent(new Event("input",{bubbles:!0})),d.dispatchEvent(new Event("change",{bubbles:!0})),s.push(u);case 6:l++,e.n=3;break;case 7:return"function"==typeof n.requestSubmit?n.requestSubmit():n.submit(),e.a(2,{ok:!0,submitted:r.formId,filled:s})}},e)})),function(){return z.apply(this,arguments)})},K="undefined"!=typeof document&&document.modelContext?document.modelContext:"undefined"!=typeof navigator&&navigator.modelContext?navigator.modelContext:null,X=!1;if(K&&"function"==typeof K.registerTool){var J,$=R(u);try{var V=function(){var e=J.value;try{K.registerTool({name:e.name,description:e.description,inputSchema:e.inputSchema,execute:function(t){return G[e.kind](t,e)}}),X=!0}catch(t){console.warn("[nodality] agent surface: tool rejected",e.name,t)}};for($.s();!(J=$.n()).done;)V()}catch(e){$.e(e)}finally{$.f()}}return{manifest:d,tools:u,registered:X,destroy:function(){if(K&&"function"==typeof K.unregisterTool){var e,t=R(u);try{for(t.s();!(e=t.n()).done;){var r=e.value;try{K.unregisterTool(r.name)}catch(e){}}}catch(e){t.e(e)}finally{t.f()}}if("undefined"!=typeof document){var n=document.getElementById(L);n&&n.remove()}}}}},9290:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{m:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).res=document.createElement("div"),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"items",value:function(e){for(var t=0;t<e.length;t++)this.res.appendChild(e[t].render());return this}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.res),this.res}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},9310:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},s.apply(null,arguments)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{Z:()=>u});var u=function(e){function t(e,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t)).text=e,o.url=r,o.setup(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,i=[{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"setup",value:function(){window.matchMedia("(max-device-width: 415px)");var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.backgroundColor="#fff",e.style.fontFamily="Arial",e.style.width="100%",e.style.overflow="hidden",this.res=e,this}},{key:"set",value:function(e){return this.obj=e,e.onTap&&this.onTap(e.onTap),e.background&&(this.res.style.background=e.background),e.border&&(this.res.style.border=e.border),e.radius&&(this.res.style.borderRadius=e.radius),e.width&&(this.res.style.width=e.width),this.options=e,this.callReact(e),this.commonMethods(e),this}},{key:"callReact",value:function(e){var r,n,o,i=[];if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||e.transform){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&(r=t,n=this,"function"==typeof(o=s(l(1&3?r.prototype:r),"setAny",n))?function(e){return o.apply(n,e)}:o)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var a=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,e.transform];a=a.filter(function(e){return null!=e});for(var c=0;c<a.length;c++)i.push({range:a[c].range,log:a[c].op.name,target:a[c].target,op:a[c].op});var u=[];e.borderObj&&u.push("border"),e.backgroundOp&&u.push("background"),e.mar&&u.push("margin"),e.animation&&u.push("animation"),e.span&&u.push("span"),u.push("border"),this.chainReact(i,this.options.id,u)}}},{key:"frame",value:function(e){return e.height&&(this.res.style.height=e.height),e.width&&(this.res.style.width=e.width),this}},{key:"items",value:function(e){for(var t=0;t<e.length;t++)this.res.appendChild(e[t].render());return this}},{key:"shadow",value:function(){return this.res.style.boxShadow="1px 1px 20px rgba(0, 0, 0, 0.60)",this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},9383:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function l(e,t,r,n){var o=c(u(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof o?function(e){return o.apply(r,e)}:o}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(null,arguments)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}r.d(t,{_:()=>f});var f=function(e){function t(e,r,o,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(a=function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)).url=e,a.res=null,a.code=[],a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,a=[{key:"setType",value:function(e){e.url;var t=e.type,r=e.mode;if(this.code=[],"exact"===t){var n='new Image("'.concat(this.url,'", "exact")');this.code.push(n)}else if("uncover"===t){var o='new Image("'.concat(this.url,'", "uncover")');this.code.push(o)}else this.code.push("new Image('".concat(this.url,"')"));return this.image(this.url,r,t),this}},{key:"hand",value:function(){return this.res.style.cursor="hand",this}},{key:"getType",value:function(){return"HTMLImageElement"}},{key:"toCode",value:function(){var e=this.options;this.res.style.border&&(e.border=this.res.style.border);var t=Object.fromEntries(Object.entries(e).filter(function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2);return t[0],null!==t[1]}));return["new Image().set(".concat(JSON.stringify(t,null,2).replace(/"(\w+)"\s*:/g,"$1:"),")")]}},{key:"formatObj",value:function(e){return JSON.stringify(e,null,2).replace(/"(\w+)"\s*:/g,"$1:")}},{key:"set",value:function(e){var r="";this.options=e;var n=e;n.onTap&&this.onTap(n.onTap);var o=e.isFull;if(o?this.image(e.url,"exact",o,"a"):this.setup(),e.url&&this.res.setAttribute("src",e.url),"IMG"===this.res.tagName&&(e.srcset&&this.res.setAttribute("srcset",e.srcset),e.sizes&&this.res.setAttribute("sizes",e.sizes),void 0!==e.alt&&this.res.setAttribute("alt",e.alt),e.loading&&this.res.setAttribute("loading",e.loading),e.decoding&&this.res.setAttribute("decoding",e.decoding),e.fetchPriority&&this.res.setAttribute("fetchpriority",e.fetchPriority)),e.id&&this.res.setAttribute("id",e.id),e.id&&(r+=' id: "'.concat(e.id,'", \n')),this.id=e.id,"exact"===o?'new Image("'.concat(this.url,'", "exact")'):"uncover"===o&&'new Image("'.concat(this.url,'", "uncover")'),this.commonMethods(n),e.vtn&&(this.res.style.viewTransitionName=e.vtn),this.vtn=e.vtn,e.minHeight&&(this.res.style.minHeight=e.minHeight),e.index&&l(t,"setIndex",this,3)([e.index]),e.index&&(this.index=e.index),e.index&&(r+='\n index: "'.concat(e.index,'",')),e.resprop&&this.resprop(e.resprop),e.centerSelf&&(this.res.style.marginRight="auto",this.res.style.marginLeft="auto"),e.fitContent&&(this.res.style.width="100%",this.res.style.height="100%",this.res.style.marginRight="auto",this.res.style.marginTop="auto",this.res.style.objectFit="cover"),e.objectFit&&(this.res.style.objectFit=e.objectFit),e.objectFit&&(r+='\n objectFit: "'.concat(e.objectFit,'",')),e.objectPosition&&(this.res.style.objectPosition=e.objectPosition),e.objectPosition&&(r+='\n objectPosition: "'.concat(e.objectPosition,'",')),e.as&&this.as(e.as),e.onScroll&&this.onScroll(e.onScroll),e.class&&this.res.setAttribute("class",e.class),e.gpos&&(this.gposObject=e.gpos),e.gpos&&(this.res.style.gridColumn=e.gpos.col,this.res.style.gridRow=e.gpos.row,r+="\n gpos: ".concat(this.removeQuotesFromFirstWord(JSON.stringify(e.gpos)),", ")),e.filtera){var i;i=Array.isArray(e.filtera)?n.filtera.filter(function(e){return"filter"===e.op.name})[0]:e.filtera;var a=this.removeQuotesFromFirstWord(JSON.stringify(i));r+="\n filtera: ".concat(a,", \n")}if(e.keySet&&this.keySet(e.keySet),e.stype&&this.setType(e.stype),e.isBackground&&(this.isBackground=e.isBackground),e.zIndex&&(r+='\n zIndex: "'.concat(e.zIndex,'", \n')),e.area&&this.setArea(e.area),e.area&&(r+='area: "'.concat(e.area,'", \n')),e.opacity&&(this.res.style.opacity=e.opacity),e.width&&(this.res.style.width=e.width),e.width&&(r+='width: "'.concat(e.width,'", ')),e.maxWidth&&(this.res.style.maxWidth=e.maxWidth),e.maxWidth&&(r+='maxWidth: "'.concat(e.maxWidth,'", ')),e.height&&(this.res.style.height=e.height),e.height&&(r+='height: "'.concat(e.height,'", ')),e.maxWidth&&this.maxWidth(e.maxWidth),e.maxWidth&&(r+='maxWidth: "'.concat(e.maxWidth,'", \n')),e.radius&&this.cornerRadius(e.radius),e.radius&&(r+='radius: "'.concat(e.radius,'", \n')),e.marginOp){var s=this.removeQuotesFromFirstWord(JSON.stringify(e.marginOp));r+="\n marginOp: ".concat(s,",")}if(e.clipPath&&this.clipPath(e.clipPath),e.clipPath&&(r+='clipPath: "'.concat(e.clipPath,'", \n')),n.stroke||n.gradient||n.span||n.backgroundOp||n.layout||n.marginOp||n.shadow||n.filtera||n.animation){n.gradient,n.gradient&&(this.globalGradient=n.gradient.op.gradient),n.stroke&&l(t,"setAny",this,3)([{globalBlast:"".concat(n.stroke.op.width," ").concat(n.stroke.op.color)}]);var c=[n.stroke,n.gradient,n.animation,n.span,n.backgroundOp,n.layout,n.marginOp,n.shadow,n.filtera,n.animation];c=c.filter(function(e){return null!=e});for(var u=[],d=0;d<c.length;d++)u.push({range:c[d].range,log:c[d].op.name,target:c[d].target,op:c[d].op});this.chainReact(u,this.options.id)}if(n.shadow){var f=n.shadow,p=this.removeQuotesFromFirstWord(JSON.stringify(f));r+="\n shadow: ".concat(p,",")}if(n.animation){var h=n.animation,y=this.removeQuotesFromFirstWord(JSON.stringify(h));r+="\n animation: ".concat(y,",")}var m="\n .set({".concat(r,"}) \n \n");return Object.keys(e).length>0?this.code.push(m):this.code.push(","),this}},{key:"setID",value:function(e){return null!=e&&this.res.setAttribute("id",e),this}},{key:"opacity",value:function(e){return this.res.style.opacity="".concat(e),this}},{key:"setGrid",value:function(){return this.res.style.gridRow="span 2",this.res.style.gridColumn="span 3",this}},{key:"transform",value:function(e){return this.res.style.transform=e,this}},{key:"offset",value:function(){return this.res.style.marginLeft="-60px",this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"border",value:function(e){return this.res.style.borderTopLeftRadius="16px",this.res.style.borderTopRightRadius="16px",this}},{key:"mobileWidth",value:function(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="120%"),this}},{key:"image",value:function(e,t,r,n,o){var i=window.matchMedia("(max-device-width: 415px)"),a=document.createElement("div");return a.style.viewTransitionName=n,a.style.width="100%",a.style.height=this.options.height?this.options.height:"400px",o&&(a.style.gridColumn=o.gridColumn,a.style.gridRow=o.gridRow),i.matches&&(a.style.height="500"),a.style.backgroundImage="url(".concat(e,")"),a.style.backgroundPosition="center center",a.style.backgroundRepeat="no-repeat",a.style.backgroundSize="cover","uncover"===r&&(a.style.backgroundSize="contain"),"contain"===t&&(a.style.backgroundSize="contain"),this.res=a,this}},{key:"setup",value:function(){var e=document.createElement("img");return e.style.width="100%",e.src=this.url,this.res=e,this}},{key:"float",value:function(e){return this.res.style.float="".concat(e),this}},{key:"grayscale",value:function(e){return this.res.style.filter="grayscale(".concat(e,"%)"),this}},{key:"flex",value:function(e){return this.res.style.flex=1,this}},{key:"height",value:function(e){return this.res.style.height=e,this.res.style.width="auto",this}},{key:"expand",value:function(e){var t=this,r=function(){var r,n;if(window.matchMedia("(min-width: ".concat(e.at,")")).matches){t.res.style.width="".concat(e.width);var o=window.innerWidth/2-(n=r=e.width,(r.includes("%")||r.includes("px"))&&(n=n.substr(0,2)),(r.includes("%")?Number(n/100*window.innerWidth):r.includes("px")?Number(n):void 0)/2);t.res.style.marginLeft="".concat(o,"px")}else t.res.style.width="100%",t.res.style.marginLeft="0px";window.matchMedia("(max-device-width: 415px)").matches&&(t.res.style.width="100%",t.res.style.marginLeft="0px")};return r(),window.addEventListener("resize",r),this}},{key:"width",value:function(e){return this.res.style.width=e,this.res.style.height="auto",this}},{key:"dimensions",value:function(e,t){return e&&t?(this.res.style.width=e,this.res.style.height=t):(this.res.style.width=e,this.res.style.height=e),this}},{key:"size",value:function(e,t){return this.deprecatedOption("size() on this component","dimensions(w, h)"),this.dimensions(e,t)}},{key:"frame",value:function(e){var t=e.width,r=e.height;return t&&r?(this.res.style.width=t,this.res.style.height=r):(this.res.style.width=t,this.res.style.height=t),this}},{key:"shadow",value:function(e){return"mild"===e.type?this.res.style.boxShadow="0px 3px 15px rgba(0,0,0,0.2)":this.res.style.boxShadow="".concat(e.x,"px ").concat(e.y,"px ").concat(e.radius,"px ").concat(e.color),this}},{key:"cornerRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"clipPath",value:function(e){this.res.style.clipPath='path("'.concat(e,'")');var t=document.createElementNS("http://www.w3.org/2000/svg","svg");return t.style.display="block",t.style.width="100%",t.style.height="100%",t.style.overflow="visible",this}},{key:"render",value:function(e){var t=this.res;if(!e)return t;document.querySelector(e).appendChild(t)}}],a&&i(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(r(9873).y)},9521:(e,t,r)=>{r.d(t,{m:()=>f});var n=r(9873),o=r(1382);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(null,arguments)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,n=[{key:"removeQuotesFromFirstWord",value:function(e){if(e)return e.replace((0,o._H)(),"$1:")}},{key:"toCode",value:function(){var e=this.items.map(function(e){return e.toCode()}).flatMap(function(e){return e}),t=(this.removeQuotesFromFirstWord(JSON.stringify(this.obj)),'\nbackground: "'.concat(this.obj.background,'",\nbrand: ').concat(this.obj.brand.toCode(),",\nmar: ").concat(JSON.stringify(this.obj.mar),",\npad: ").concat(JSON.stringify(this.obj.pad),",\nresmar: ").concat(JSON.stringify(this.obj.resmar),",\nrespad: ").concat(JSON.stringify(this.obj.respad),",\nradius: ").concat(JSON.stringify(this.obj.radius),",\n"));return"new MobileBar().set({".concat(t,"}).add([\n ").concat(e.join(","),"\n\n ])")}},{key:"set",value:function(e){var r,n,o;return this.obj=e,this.obj=e,this.makeNavbar(e),e.mar&&(r=t,n=this,"function"==typeof(o=c(u(1&3?r.prototype:r),"mar",n))?function(e){return o.apply(n,e)}:o)([e.mar]),e.maxHeight&&(this.res.style.maxHeight=e.maxHeight),e.radius&&(this.res.style.borderRadius=e.radius),e.hamburgerColour&&(this.hamburgerColour=e.hamburgerColour),this.setStyles(e),this}},{key:"makeNavbar",value:function(e){var t=this,r=e.brand;this.navbar=document.createElement("nav"),this.navbar.classList.add("mobile-navbar"),this.navbarHeader=document.createElement("div"),this.navbarHeader.classList.add("navbar-header"),this.brand=document.createElement("div"),this.brand.classList.add("navbar-brand"),e.brand&&"function"==typeof r.render&&(console.log("Appending brand:",r.render()),this.brand.appendChild(r.render())),this.toggleButton=document.createElement("button"),this.toggleButton.classList.add("navbar-toggle"),this.toggleButton.innerHTML="☰",this.navContent=document.createElement("div"),this.navContent.classList.add("navbar-content"),this.navbarHeader.appendChild(this.brand),this.navbarHeader.appendChild(this.toggleButton),this.navbar.appendChild(this.navbarHeader),this.navbar.appendChild(this.navContent),this.isMobileNavOpen=!1,this.toggleButton.addEventListener("click",function(){t.toggleMobileNav()}),this.res=this.navbar}},{key:"setStyles",value:function(e){var t,r;this.navbar.style.display="flex",this.navbar.style.flexDirection="column",this.navbar.style.padding="1rem",this.navbar.style.backgroundColor=null!==(t=e.background)&&void 0!==t?t:"orange",this.navbarHeader.style.display="flex",this.navbarHeader.style.alignItems="center",this.navbarHeader.style.justifyContent="space-between",this.navbarHeader.style.width="100%",this.brand.style.fontSize="1.5rem",this.toggleButton.style.background="none",this.toggleButton.style.border="none",this.toggleButton.style.color=null!==(r=this.hamburgerColour)&&void 0!==r?r:"#34495e",this.toggleButton.style.fontSize="1.5rem",this.toggleButton.style.cursor="pointer",this.navContent.style.display="none"}},{key:"add",value:function(e){this.items=e;for(var t=0;t<e.length;t++){var r=e[t];this.navContent.appendChild(r.render())}return this}},{key:"toggleMobileNav",value:function(){this.isMobileNavOpen=!this.isMobileNavOpen,this.navContent.style.display=this.isMobileNavOpen?"flex":"none",this.isMobileNavOpen?(this.navContent.style.flexDirection="column",this.navContent.style.gap="0.5rem",this.navContent.style.padding="1rem"):(this.navContent.style.flexDirection="",this.navContent.style.gap="",this.navContent.style.backgroundColor="",this.navContent.style.padding="")}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.navbar),this.navbar}}],n&&a(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},9668:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{l:()=>s}),r(9873);var s=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"POST";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.action=t,this.method=r,this.elements=[],this.formElement=document.createElement("form"),this.formElement.action=this.action,this.formElement.method=this.method},t=[{key:"add",value:function(e){var t=this;return this.elements=e,e.forEach(function(e){if(!e||"function"!=typeof e.render)throw new Error("Each element in the array must have a render method that returns an HTML DOM element.");t.formElement.appendChild(e.render())}),this}},{key:"toCode",value:function(){var e=this.elements.map(function(e){return e.toCode()}),t=Object.entries(this.obj).map(function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=t[0],n=t[1],i="string"==typeof n?'"'.concat(n,'"'):n;return"".concat(r,": ").concat(i)}).join(", ");return["new Form().set({".concat(t,"}).add([ \n ").concat(e.join(", \n"),"])")]}},{key:"set",value:function(e){return this.obj=e,e.action&&this.setAction(e.action),e.method&&this.setMethod(e.method),e.id&&(this.formElement.id=e.id),this}},{key:"setAction",value:function(e){this.action=e,this.formElement.action=this.action}},{key:"setMethod",value:function(e){this.method=e,this.formElement.method=this.method}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.formElement),this.formElement}}],t&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},9793:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{C:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t))._noTheme=!0,e.oldLength=0,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"observe",value:function(e){return this.initialState=e,this.Proxima(e)}},{key:"Proxima",value:function(e){var t=this;return new Proxy(e,{set:function(e,r,n){return e[r]=n,t.initialState&&t.initialState.data&&"function"==typeof t.initialState.data.push&&t.initialState.data.push(r),"length"!==r&&t.refreshUI("Added"),!0},has:function(e,r){return"length"!==r&&t.refreshUI("Deleted"),Reflect.has(e,r)}})}},{key:"refreshUI",value:function(e){var t=this.initialState;this.adjustState(t)}},{key:"loadState",value:function(e,t){return this.loadEl=t,this.initialState=e,this.observe(this.state.data)}},{key:"adjustState",value:function(e){document.querySelector(this.loadEl);var t=e[e.length-1],r=document.createElement("p"),n=document.createTextNode(t);r.appendChild(n),document.body.appendChild(r)}},{key:"mount",value:function(e){this.res=e,this.render(e).render(e)}},{key:"toCode",value:function(){return[""]}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},9800:(e,t,r)=>{r.d(t,{t:()=>y});var n=r(9873),o=r(1382);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},f.apply(null,arguments)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var y=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=p(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}(this,t)).res=null,e.options={},e.code=[],e.elCSS=[],e.html=[],e.react=[],e.setup(r),e.code.push("new Polygon(".concat(JSON.stringify(r),")")),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),r=t,n=[{key:"setup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.createElement("div");return e.id&&t.setAttribute("id",e.id),this.res=t,this.res.style.padding=0,this.res.style.margin=0,this.res.style.display=e.inline?"inline-block":"block",this}},{key:"toCode",value:function(){var e=this.options||{},t=(0,o.sy)(e,2);return"new Polygon().set(".concat(t,")")}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"set",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=s(s({},this.options),e),e.id&&(this.res.id=e.id),e.class&&(this.res.className=e.class),e.sides&&this.sides(e.sides),e.size&&this.size(e.size.width||e.size,e.size.height),e.color&&this.color(e.color),e.border&&this.border(e.border),e.margin&&this.mar([{a:e.margin}]),e.padding&&this.pad([{a:e.padding}]),e.background&&this.background(e.background),e.center&&this.center();var r=e;this.obj=e;var n,o,i,a=[];if(r.stroke||r.gradient||r.backgroundOp||r.layout||r.marginOp||r.shadow||r.animation||r.filtera||r.transform){var l;r.gradient&&(this.globalGradient=r.gradient.op.gradient),r.stroke&&(null===(n=t,o=this,l="function"==typeof(i=f(p(1&3?n.prototype:n),"setAny",o))?function(e){return i.apply(o,e)}:i)||void 0===l||l([{globalBlast:"".concat(r.stroke.op.width," ").concat(r.stroke.op.color)}]));for(var c=[r.stroke,r.gradient,r.animation,r.backgroundOp,r.layout,r.marginOp,r.shadow,r.animation,r.filtera,r.transform].filter(function(e){return null!=e}),u=0;u<c.length;u++)a.push({range:c[u].range,log:c[u].op.name,target:c[u].target,op:c[u].op});var d=[];r.border&&d.push("border"),r.background&&d.push("background"),(r.mar||r.margin)&&d.push("margin"),r.animation&&d.push("animation"),"radial"===r.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)"),this.chainReact(a,this.options.id,d)}return this}},{key:"size",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this.res.style.width="number"==typeof e?e+"px":e,this.res.style.height="number"==typeof t?t+"px":t,this}},{key:"sides",value:function(e){return e<3&&(e=3),this.res.style.clipPath=t.makePolygon(e),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"border",value:function(e){return this.res.style.border="string"==typeof e?e:"".concat((null==e?void 0:e.width)||"1px"," solid ").concat((null==e?void 0:e.color)||"black"),this}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"render",value:function(e){return"string"==typeof e?document.querySelector(e).appendChild(this.res):e instanceof HTMLElement&&e.appendChild(this.res),this}}],a=[{key:"makePolygon",value:function(e){for(var t=2*Math.PI/e,r=[],n=0;n<e;n++){var o=50+50*Math.cos(n*t-Math.PI/2),i=50+50*Math.sin(n*t-Math.PI/2);r.push("".concat(o,"% ").concat(i,"%"))}return"polygon(".concat(r.join(","),")")}}],n&&c(r.prototype,n),a&&c(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}(n.y)},9873:(e,t,r)=>{r.d(t,{y:()=>p});var n=r(5318),o=r(5379),i=r(1382);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=l(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function f(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}var p=function(){function e(){var t,r,o,i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,o=function(e){if(e.transform||e.op){var t=e.op;e.transform||(t=e.op),t.duration||(t.duration="3s-ease-in-out"),i.setDefault=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===e.length?t+" ":e};var r=function(){var r="",n="",o="",a="",s="",l="",c="",u="",d="";if(0!==t.values.length){t.values.forEach(function(e){e.startsWith("tx:")&&(r=e.replace("tx:","")),e.startsWith("ty:")&&(n=e.replace("ty:","")),e.startsWith("tz:")?o=e.replace("tz:",""):e.startsWith("scale(")?a=e:e.startsWith("skew(")?s=e:e.startsWith("rotate(")?l=function(e){var t=e.match(/rotate\(([^)]+)\)/);if(!t)return e;var r=t[1].split(",").map(function(e){return e.trim()});return 1===r.length?"rotate(".concat(r[0],")"):2===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],")"):3===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],") rotate(").concat(r[2],")"):e}(e):e.startsWith("perspective(")?c=e:e.startsWith("matrix(")?u=e:e.startsWith("opacity:")&&(d=e.replace("opacity:",""))}),r=i.setDefault(r),n=i.setDefault(n),o=i.setDefault(o);var f="";if("0px"!=n&&"0px"!=r&&"0px"!=o?f+="translate3d(".concat(r,", ").concat(n,", ").concat(o,")"):"0px"==n&&"0px"==r||(f+="translate(".concat(r,", ").concat(n,")")),a&&(f+=" ".concat(a)),l&&(f+=" ".concat(l)),s&&(f+=" ".concat(s)),c&&(f+=" ".concat(c)),u&&(f+=" ".concat(u)),f){if(e.op.duration){var p=e.op.duration.replace(/^(\d+)(s)-/,function(e,t,r){return t/2+r+" "}),h="transform ".concat(p,", opacity ").concat(p);i.res.style.transition=h}else i.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";e.op.static&&(i.res.style.transition=""),(i.blastTarget||i.res).style.transform=f,i.res.style.opacity=d}else console.warn("[nodality] transform produced no geometric value - check `values`")}};t.on?i.res.addEventListener(t.on,function(){t.delay?setTimeout(function(){r()},t.delay):r()}):i._on(window,"load",function(){t.delay?setTimeout(function(){r()},t.delay):r()});var n=function(){var e="";t.values.forEach(function(t){t.startsWith("tx:")?e+="translateX(0) ":t.startsWith("ty:")?e+="translateY(0) ":t.startsWith("tz:")?e+="translateZ(0) ":t.startsWith("scale(")?e+="scale(1) ":t.startsWith("skew(")?e+="skew(0, 0) ":t.startsWith("rotate(")?e+="rotate(0) ":t.startsWith("perspective(")?e+="perspective(0) ":t.startsWith("matrix(")&&(e+="matrix(1, 0, 0, 1, 0, 0) "),i.res.style.opacity="1"}),e&&(i.res.style.transform=e.trim())};if(t.on)i.res.addEventListener("mouseout",function(){t.keep||n()});else{var o=1e3*parseFloat(t.duration),a=t.closeAfter?t.closeAfter:0;setTimeout(function(){t.keep||n()},o/2+a)}t.hardCSS&&(i.res.style.transform=t.hardCSS)}else console.warn("[nodality] reactOnTransform: unrecognised transform descriptor - ignored")},(r=f(r="reactOnTransform"))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1},this.openedElements=new WeakMap,"undefined"!=typeof document&&(this._themeUnsub=n.S.subscribe(function(e){return i._applyTheme(e)}),Promise.resolve().then(function(){return i._applyTheme(n.S.mode)}))}return t=e,r=[{key:"rasterize",value:function(e){var t=this;if(e&&0!==e.length&&!this._rasterHandle&&!this._rasterCancelled&&"undefined"!=typeof document&&"undefined"!=typeof setTimeout){var r=0,n=function(){if(!t._rasterHandle&&!t._rasterCancelled){if(t.res&&t.res.isConnected){try{t._rasterHandle=(0,o.sB)(t.res,e)}catch(e){return void console.warn("[nodality] raster pipeline skipped:",e)}if(t._rasterHandle)return}++r<80&&(t._rasterTimer=setTimeout(n,50))}};this._rasterTimer=setTimeout(n,0),this._track(function(){return clearTimeout(t._rasterTimer)})}}},{key:"isHidden",value:function(e){e&&(this.res.style.display="none")}},{key:"theme",value:function(e){var t=this;return e&&"object"===u(e)?(this._themeMap=e,this._applyTheme(n.S.mode),this._themeUnsub||(this._themeUnsub=n.S.subscribe(function(e){return t._applyTheme(e)})),this):this}},{key:"_track",value:function(e){return"function"!=typeof e||(this._disposables||(this._disposables=[])).push(e),e}},{key:"_on",value:function(e,t,r,n){return e&&"function"==typeof e.addEventListener?(e.addEventListener(t,r,n),this._track(function(){return e.removeEventListener(t,r,n)}),r):r}},{key:"destroy",value:function(){if("function"==typeof this._themeUnsub&&(this._themeUnsub(),this._themeUnsub=null),this._rasterHandle&&"function"==typeof this._rasterHandle.destroy)try{this._rasterHandle.destroy()}catch(e){}if(this._rasterHandle=null,this._rasterCancelled=!0,this._disposables){var e,t=s(this._disposables);try{for(t.s();!(e=t.n()).done;){var r=e.value;try{r()}catch(e){}}}catch(e){t.e(e)}finally{t.f()}this._disposables.length=0}return this._responsiveTasks=null,this._responsiveHandler=null,this.res&&this.res.parentNode&&this.res.parentNode.removeChild(this.res),this}},{key:"_applyTheme",value:function(e){if(!this._noTheme&&this.res)if(this._themeMap){var t=this._themeMap[e];if(!t)return;for(var r in t)this.res.style[r]=t[r]}else{var o=n.S.defaults&&n.S.defaults[e];if(o)for(var i in this._themeOriginal||(this._themeOriginal={}),o)i in this._themeOriginal||(this._themeOriginal[i]=this.res.style[i]||""),this._themeOriginal[i]||(this.res.style[i]=o[i])}}},{key:"vars",value:function(e){if(!e||"object"!==u(e))return this;for(var t in e)this.res.style.setProperty(t,String(e[t]));return this}},{key:"keySet",value:function(e){if(this.temporaryVal=1,Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]&&null!=e[t].key&&(this.res.style[e[t].key]=e[t].value);return this}return this.res.style[e.key]=e.value,this}},{key:"commonMethods",value:function(e){var t={exact:"fontSize",cursor:"cursor",width:"width",maxWidth:"maxWidth",height:"height",maxHeight:"maxHeight",radius:"borderRadius",lineHeight:"lineHeight",background:"background",color:"color",font:"fontFamily",opacity:"opacity",gap:"gap",minHeight:"minHeight",position:"position",inset:"inset",top:"top",right:"right",bottom:"bottom",left:"left",zIndex:"zIndex",flex:"flex",flexShrink:"flexShrink",flexGrow:"flexGrow",flexBasis:"flexBasis",flexWrap:"flexWrap",alignSelf:"alignSelf",display:"display",gridTemplateColumns:"gridTemplateColumns",gridTemplateRows:"gridTemplateRows",rowGap:"rowGap",columnGap:"columnGap",cols:"gridTemplateColumns",rows:"gridTemplateRows",areas:"gridTemplateAreas",area:"gridArea",letterSpacing:"letterSpacing",textTransform:"textTransform",whiteSpace:"whiteSpace",overflowWrap:"overflowWrap",wordBreak:"wordBreak",wordWrap:"wordWrap",boxShadow:"boxShadow",backdropFilter:"backdropFilter",WebkitBackdropFilter:"WebkitBackdropFilter",overflow:"overflow",overflowX:"overflowX",overflowY:"overflowY",WebkitOverflowScrolling:"WebkitOverflowScrolling",WebkitTapHighlightColor:"WebkitTapHighlightColor",minWidth:"minWidth",boxSizing:"boxSizing",pointerEvents:"pointerEvents",userSelect:"userSelect",WebkitUserSelect:"WebkitUserSelect",textAlign:"textAlign",transition:"transition"};for(var r in t)null!=e[r]&&(this.res.style[t[r]]=e[r]);return"string"==typeof e.transform&&(this.res.style.transform=e.transform),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.respad&&this.respad(e.respad),e.borderObj&&e.borderObj.width&&this.borderObj(e.borderObj),e.resmar&&this.resmar(e.resmar),e.hover&&this.hover(e.hover),e.size&&this.fluidCopy(e.size),e.resprop&&this.resprop(e.resprop,e),e.vars&&this.vars(e.vars),e.keySet&&this.keySet(e.keySet),e.noTheme&&(this._noTheme=!0),e.theme&&this.theme(e.theme),e.hide&&this.isHidden(e.hide),e.raster&&this.rasterize(e.raster),e.center&&this.center(e.center,{display:e.disp||e.display,flexDirection:e.flexDir||e.flexDirection}),e.transform&&"object"===u(e.transform)&&this.reactOnTransform(e.transform),void 0!==e.opacity&&(this.res.style.opacity=e.opacity),e.bold?this.res.style.fontWeight="bold":null!=e.weight&&(this.res.style.fontWeight=e.weight),this}},{key:"hover",value:function(e){var t=this;if(e.border){var r=e.border.width;this.res.style.border=r?"".concat(r,"px solid transparent"):"1px solid transparent"}var n=this.options&&this.options.borderObj;return n&&(this.res.style.border="".concat(n.width,"px solid ").concat(n.color)),this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,this.prevBorder=this.res.style.border,this.prevBoxShadow=this.res.style.boxShadow,e.animation&&(this.res.style.transition="".concat(e.animation),this.res.style.transitionProperty="background-color, color, border, box-shadow, transform"),this.prevTransform=this.res.style.transform,this.res.onmouseout=function(){t.res.style.backgroundColor="".concat(t.prevColor),t.res.style.color="".concat(t.foreColor),t.res.style.border=t.prevBorder,null==e.scale&&null==e.transform||(t.res.style.transform=t.prevTransform||""),null!=e.boxShadow&&(t.res.style.boxShadow=t.prevBoxShadow||"")},this.res.onmouseover=function(){if(t.res.style.color=e.color,t.res.style.backgroundColor=e.background,e.border){var r,n=e.border.width,o=null!==(r=e.border.color)&&void 0!==r?r:"#2ECC71";t.res.style.border=n?"".concat(n,"px solid ").concat(o):"1px solid #2ECC71"}if(null!=e.scale||null!=e.transform){var i=t.prevTransform?"".concat(t.prevTransform," "):"",a=[];null!=e.transform&&a.push(e.transform),null!=e.scale&&a.push("scale(".concat(e.scale,")")),t.res.style.transform="".concat(i).concat(a.join(" "))}null!=e.boxShadow&&(t.res.style.boxShadow=e.boxShadow)},this}},{key:"onScroll",value:function(e){var t=this,r=function(e){if(null==e)return{num:0,unit:"px"};var t=String(e).match(/^(-?[\d.]+)(.*)$/);return t?{num:parseFloat(t[1]),unit:t[2]||"px"}:{num:0,unit:"px"}},n=function(e){var r=e&&null!=e.tx?e.tx:"0px",n=e&&null!=e.ty?e.ty:"0px";t.res.style.transform="translate3d(".concat(r,", ").concat(n,", 0)")};"opacity"===e.value?this.res.style.opacity=e.valMin:"scale"===e.value?this.res.style.transform="scale(".concat(e.valMin,")"):"trn"===e.value&&n(e.valMin);var o=function(){if("trn"!==e.value){var o=t.smartRange(window.scrollY,{min:e.from,max:e.to},{min:e.valMin,max:e.valMax});"opacity"===e.value?t.res.style.opacity=o:"scale"===e.value&&(t.res.style.transform="scale(".concat(o,")"))}else{for(var i={},a=["tx","ty"],s=0;s<a.length;s++){var l=a[s],c=e.valMin&&null!=e.valMin[l],u=e.valMax&&null!=e.valMax[l];if(c||u){var d=r(c?e.valMin[l]:u?e.valMax[l]:"0px"),f=r(u?e.valMax[l]:c?e.valMin[l]:"0px"),p=t.smartRange(window.scrollY,{min:e.from,max:e.to},{min:d.num,max:f.num});i[l]="".concat(p).concat(d.unit)}}n(i)}};this._on(window,"scroll",o),0===e.from&&o()}},{key:"setAny",value:function(e){this[Object.keys(e)[0]]=[Object.values(e)[0]]}},{key:"setID",value:function(e){this.id=e}},{key:"setPrevText",value:function(e){this.prevText=e}},{key:"_setupResponsiveManager",value:function(){var e=this;this._responsiveTasks=this._responsiveTasks||[];var t=function(){e._responsiveTasks.forEach(function(e){e()})};this._responsiveHandler||(this._responsiveHandler=t,this._on(window,"resize",t)),setTimeout(function(){t()},0)}},{key:"resprop",value:function(t,r){var n=this;this.options=r;var o={default:[0,1e5],xs:[0,575],sm:[576,767],md:[768,991],lg:[992,1199],xl:[1200,1399],xxl:[1400,1e5]},i=["resprop","breakpoint","value","values","range"],s={flexDir:"flexDirection",dir:"flexDirection",justify:"justifyContent",align:"alignItems",wrap:"flexWrap",bg:"background",radius:"borderRadius",z:"zIndex",exact:"fontSize"},l=function(e){var t=s[e]||e;return"undefined"==typeof console||"function"==typeof n[e]||t in n.res.style||console.warn('[nodality] resprop: "'.concat(e,'" is not a CSS property or component method — ignored.')+(s[e]?"":" Did you mean one of: ".concat(Object.keys(s).join(", "),"?"))),t};t.forEach(function(e){void 0!==o[e.breakpoint]?e.range=o[e.breakpoint]:Array.isArray(e.breakpoint)&&2===e.breakpoint.length?e.range=[parseInt(e.breakpoint[0],10),parseInt(e.breakpoint[1],10)]:e.range=[0,parseInt(e.breakpoint,10)]}),t.sort(function(e,t){return e.range[1]-t.range[1]});var c=t.find(function(e){return"default"===e.breakpoint});c||(c={breakpoint:"default",range:o.default},t.unshift(c));var u=new Set;t.forEach(function(e){Object.keys(e).forEach(function(e){i.includes(e)||"range"===e||u.add(e)})}),u.forEach(function(e){void 0===c[e]&&(c[e]=n.options[e]||"initial")}),this._responsiveTasks=this._responsiveTasks||[],this._responsiveTasks.push(function(){for(var r=e.viewportWidth(),o=c,s=0;s<t.length;s++){var d=t[s],f=a(d.range,2),p=f[0],h=f[1];if("default"!==d.breakpoint&&r>=p&&r<=h){o=d;break}}for(var y in u.forEach(function(e){if("keySet"===e){var t=c[e];t&&t.key&&(n.res.style[t.key]=t.value)}else n.res.style[l(e)]=c[e]}),o)if("exact"!==y){if(!i.includes(y)&&"range"!==y){var m=o[y];"keySet"===y&&m&&m.key?n.res.style[m.key]=m.value:"function"==typeof n[y]?n[y](m):n.res.style[l(y)]=m}}else n.res.style.fontSize=o[y]}),this._setupResponsiveManager()}},{key:"respad",value:function(t){var r=this,n={default:[0,1e5],xs:[0,575],sm:[576,767],md:[768,991],lg:[992,1199],xl:[1200,1399],xxl:[1400,1e5]};t.forEach(function(e){void 0!==n[e.breakpoint]?e.range=n[e.breakpoint]:Array.isArray(e.breakpoint)&&2===e.breakpoint.length?e.range=[parseInt(e.breakpoint[0],10),parseInt(e.breakpoint[1],10)]:e.range=[parseInt(e.breakpoint,10),1e5]}),t.sort(function(e,t){return e.range[0]-t.range[0]});var o=t.find(function(e){return"default"===e.breakpoint});o||(o={breakpoint:"default",range:n.default},t.unshift(o)),void 0===o.values&&(o.values=this.options&&this.options.pad||null),this._responsiveTasks=this._responsiveTasks||[],this._responsiveTasks.push(function(){for(var n=e.viewportWidth(),i=o,s=0;s<t.length;s++){var l=t[s],c=a(l.range,2),u=c[0],d=c[1];if("default"!==l.breakpoint&&n>=u&&n<=d){i=l;break}}var f=void 0!==i.values?i.values:o.values;null!=f&&r.pad(f)}),this._setupResponsiveManager()}},{key:"resmar",value:function(t){var r=this,n={default:[0,1e5],xs:[0,575],sm:[576,767],md:[768,991],lg:[992,1199],xl:[1200,1399],xxl:[1400,1e5]};t.forEach(function(e){void 0!==n[e.breakpoint]?e.range=n[e.breakpoint]:Array.isArray(e.breakpoint)&&2===e.breakpoint.length?e.range=[parseInt(e.breakpoint[0],10),parseInt(e.breakpoint[1],10)]:e.range=[parseInt(e.breakpoint,10),1e5]}),t.sort(function(e,t){return e.range[0]-t.range[0]});var o=t.find(function(e){return"default"===e.breakpoint});o||(o={breakpoint:"default",range:n.default},t.unshift(o)),void 0===o.values&&(o.values=this.options&&(this.options.mar||this.options.pad)||null),this._responsiveTasks=this._responsiveTasks||[],this._responsiveTasks.push(function(){for(var n=e.viewportWidth(),i=o,s=0;s<t.length;s++){var l=t[s],c=a(l.range,2),u=c[0],d=c[1];if("default"!==l.breakpoint&&n>=u&&n<=d){i=l;break}}var f=void 0!==i.values?i.values:o.values;null!=f&&r.mar(f)}),this._setupResponsiveManager()}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"setArea",value:function(e){return this.res.style.gridArea=e,this}},{key:"font",value:function(e){return this.res.style.fontFamily=e,this}},{key:"radius",value:function(e){return this.res.style.borderRadius="number"==typeof e?"".concat(e,"px"):e,this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"scale",value:function(e){var t=this;return this.res.style.width,this.res.style.transition="0.5s all",this.res.addEventListener("mouseover",function(){t.res.style.width,t.res.style.transform="scale(1.04)"}),this.res.addEventListener("mouseout",function(){t.res.style.width,t.res.style.transform="scale(1.0)"}),this}},{key:"round",value:function(e){return this.deprecatedOption("round()","radius()"),this.radius(e)}},{key:"toCSS",value:function(){return this.css}},{key:"toHTMLA",value:function(){return this.html}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"deprecatedOption",value:function(e,t){return console.error("nodality: `".concat(e,"` is deprecated — use `").concat(t,"` instead.")),this}},{key:"center",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.res.style,n=r.display||t.display||"",o=r.flexDirection||t.flexDirection||"",i=!0===e||"both"===e||"x"===e,a=!0===e||"both"===e||"y"===e;if(n.includes("grid"))return i&&(r.justifyItems="center",r.justifyContent="center"),a&&(r.alignItems="center",r.alignContent="center"),this;n.includes("flex")||(r.display="flex"),r.flexDirection||(r.flexDirection=o||"column");var s=(r.flexDirection||"column").startsWith("column");return(s?a:i)&&(r.justifyContent="center"),(s?i:a)&&(r.alignItems="center"),this}},{key:"isNumber",value:function(e){return"number"==typeof e&&!isNaN(e)}},{key:"pad",value:function(e){for(var t=0;t<e.length;t++)for(var r=Object.keys(e[t]),n=0;n<r.length;n++)for(var o=r[n],i=e[t][o],a=0;a<o.length;a++)switch(o[a]){case"a":this.res.style.padding=this.isNumber(i)?"".concat(i,"px"):i;break;case"t":this.res.style.paddingTop=this.isNumber(i)?"".concat(i,"px"):i;break;case"l":this.res.style.paddingLeft=this.isNumber(i)?"".concat(i,"px"):i;break;case"r":this.res.style.paddingRight=this.isNumber(i)?"".concat(i,"px"):i;break;case"b":this.res.style.paddingBottom=this.isNumber(i)?"".concat(i,"px"):i}return this}},{key:"as",value:function(e){return this.res.style.alignSelf=e,this}},{key:"mar",value:function(e){if("center"===e)return this.res.style.marginLeft="auto",this.res.style.marginRight="auto",this;for(var t=0;t<e.length;t++)for(var r=Object.keys(e[t]),n=0;n<r.length;n++){for(var o=r[n],i=e[t][o],a=0;a<o.length;a++)switch(o[a]){case"a":"auto"===i?(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"):this.res.style.margin=this.isNumber(i)?"".concat(i,"px"):i;break;case"t":this.res.style.marginTop=this.isNumber(i)?"".concat(i,"px"):i;break;case"l":this.res.style.marginLeft=this.isNumber(i)?"".concat(i,"px"):i;break;case"r":this.res.style.marginRight=this.isNumber(i)?"".concat(i,"px"):i;break;case"b":this.res.style.marginBottom=this.isNumber(i)?"".concat(i,"px"):i}"center"===o&&!0===i&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),"auto"===i&&(o.includes("l")||o.includes("r"))&&(o.includes("l")&&(this.res.style.marginLeft="auto"),o.includes("r")&&(this.res.style.marginRight="auto"))}return this}},{key:"smartRange",value:function(e,t,r){e<t.min&&(e=t.min),e>t.max&&(e=t.max);var n=(e-t.min)/(t.max-t.min);return t.min>t.max&&(n=(e-t.max)/(t.min-t.max)),r.min+(r.max-r.min)*n}},{key:"gpos",value:function(e){return this.res.style.gridColumn=e.col,this.res.style.gridRow=e.row,this}},{key:"fluidCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("h2"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("h3"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("h4"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.250rem + 2.75vw)"}if("S5"===e){this.prevStylex=this.res.style,this.res=document.createElement("h5"),this.res.style.cssText=this.prevStylex.cssText;var a=document.createTextNode(this.text);this.res.appendChild(a),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setIndex",value:function(e){this.index=e}},{key:"borderObj",value:function(e){var t,r=null!==(t=e.type)&&void 0!==t?t:"solid";return this.res.style.border="".concat(e.width," ").concat(r," ").concat(e.color),void 0!==e.radius&&(this.res.style.borderRadius=e.radius),this}},{key:"setPref",value:function(e){this.preffersId=e}},{key:"setClass",value:function(e){this.class=e}},{key:"setTags",value:function(e){this.openTag=e.open,this.closeTag=e.close}},{key:"chainReact",value:function(t,r,n){var o=this;this.ap=!1,this.cta=0,this.once=!1;var i,l=s(t);try{for(l.s();!(i=l.n()).done;){var c=i.value;c.range||(c.range=["0px","999999px"])}}catch(e){l.e(e)}finally{l.f()}t.sort(function(e,t){return parseInt(e.range[0])-parseInt(t.range[0])});var u=function(i){var l=e.viewportWidth(),c=[],u=[];o.resCopy=o.res,o.storedQueries=t.map(function(e){return e.target}).filter(function(e){return null!=e});var d,f=s(t);try{for(f.s();!(d=f.n()).done;){var p=d.value;o.counterIndex++;var h=a(p.range,2),y=h[0],m=h[1],v=parseInt(y),b=parseInt(m),g=!0;if(p.target){g=!1;for(var w=0;w<p.target.length;w++)p.target[w]===r&&(g=!0)}l>=v&&l<=b&&g&&(c.push(p.log),u.push(p),p.op&&p.op.margin&&(o.useMargin=p.op.margin))}}catch(e){f.e(e)}finally{f.f()}if(n&&!n.includes("background")&&(o.res.style.background="",o.res.style.backgroundColor=""),o.res.style.textShadow="",n&&!n.includes("border")&&(o.res.style.border=""),n&&!n.includes("margin")&&(o.res.style.margin=""),o.res.style["-webkit-text-fill-color"]="",o.res.style["-webkit-text-stroke-color"]="",o.res.style["-webkit-text-stroke-width"]="",o.res.style.filter="",o.options.background&&(o.res.style.background=o.options.background),c.includes("gradient"),(c.includes("gradient")||c.includes("shadow"))&&(o.res.style.position="relative"),c.includes("blast")){var _,x=u.filter(function(e){return"blast"===e.log})[0].op.color,k=null!==(_=u.filter(function(e){return"blast"===e.log})[0].op.width)&&void 0!==_?_:"1px";"FlexRowLayoutElement"===o.getType()||"LayoutWrapperElement"===o.getType()?(o.res.style.border="".concat("number"==typeof k?k+"px":k," solid orange"),o.res.style.display="inline-block","FlexRowLayoutElement"===o.getType()&&(o.res.style.display="flex"),o.res.style.boxSizing="border-box",o.res.style.transformOrigin="center",o.blastTarget=o.res):(o.text,o.res.style["-webkit-text-fill-color"]="transparent",o.res.style["-webkit-text-stroke-color"]=x,o.res.style["-webkit-text-stroke-width"]="".concat(k))}if(c.includes("filter")){var O=u.filter(function(e){return"filter"===e.log})[0].op.filter;o.res.style.filter=O}if(c.includes("background")&&(o.res.style.backgroundColor="green"),c.includes("gradient")&&("LayoutWrapperElement"!==o.getType()&&"FlexRowLayoutElement"!==o.getType()&&(o.res.style["-webkit-text-fill-color"]="transparent"),o.res.style.background=o.globalGradient,"LayoutWrapperElement"!==o.getType()&&"FlexRowLayoutElement"!==o.getType()&&(o.res.style["background-clip"]="text")),c.includes("shadow")){var S,E,j,P,C=o.options.shadow.op,T=null!==(S=C.steps)&&void 0!==S?S:1,A=null!==(E=C.colors)&&void 0!==E?E:["gray"],R=null!==(j=C.movements)&&void 0!==j?j:["3px","3px"],M=null!==(P=C.radius)&&void 0!==P?P:"3px";if(1===R.length&&(R=[R[0],R[0]]),"FlexRowLayoutElement"===o.getType()||"LayoutWrapperElement"===o.getType()){for(var D=[],I=0;I<T;I++){var L,B=null!==(L=A[I])&&void 0!==L?L:A[0],W=R[0],F=R[1];D.push("".concat(W," ").concat(F," ").concat(M," ").concat(B))}o.res.style.boxShadow=D.join(", ")}else{for(var z=[],q=0;q<T;q++){var N,U=null!==(N=A[q])&&void 0!==N?N:A[0],H=R[0],G=R[1];z.push("drop-shadow(".concat(H," ").concat(G," ").concat(M," ").concat(U,")"))}o.res.style.filter=z.join(" ")}}if(c.includes("margin"))for(w=0;w<t.length;w++)if(t[w].op){var K=t[w].op.offsets;K&&void 0!==o.index&&(o.res.style.margin=K[Number(o.index)]+"px")}if(c.includes("spana")||c.includes("span")){var X=document.createElement("div");if(X.setAttribute("id","oroa"),Object.assign(X.style,{position:"absolute",inset:"0",background:"linear-gradient(90deg, rgb(52,152,219), rgb(26,188,156))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",pointerEvents:"none"}),o.res&&o.res.querySelector("span"))return;o.res=o.resCopy,o.res.textContent="",o.options.span&&(Array.isArray(o.options.span)?o.options.span:[o.options.span]).forEach(function(e){if(e.op&&"span"===e.op.name&&Array.isArray(e.op.parts)){var t=0,r=o.prevText||"";if(e.op.parts.forEach(function(e){var n=e.text,i=e.style||{};if(t<r.length){var a=r.indexOf(n,t);if(a>t){var s=r.substring(t,a);o.res.appendChild(new o.constructor(s).setup({type:"span",id:i.id,animation:i.animation}).set({}).render())}t=a+n.length}var l=new o.constructor(n).setup({type:"span",id:i.id,animation:i.animation}).set(i).render();o.res.appendChild(l)}),t<r.length){var n=r.substring(t);o.res.appendChild(new o.constructor(n).setup({type:"span"}).set({}).render())}}})}else{var J=new o.constructor(o.prevText).set({}).render();o.prevText&&o.prevText.length>0&&i&&o.res.appendChild(J)}if(c.includes("animation")){if(o.options.animation&&!o.hasAnimated&&!o.options.animation.op.fireAt){o.hasAnimated=!0;var $=o.options.animation.op;o._on(window,"sidebar:open",function(){o.res.animate($.keyframesOpen,$.openOptions)}),o._on(window,"sidebar:closed",function(){o.res.animate($.keyframesClose,$.closeOptions)}),o.res.animate($.keyframesClose,{duration:0,fill:"forwards"}),o.openTag&&o.closeTag&&(o._on(window,o.openTag,function(){o.res.animate($.keyframesOpen,$.openOptions)}),o._on(window,o.closeTag,function(){o.res.animate($.keyframesClose,$.closeOptions)}))}if(o.options.animation&&o.options.animation.op.fireAt&&o.options.animation.op.fireAt.endsWith("px")){var V=o.options.animation.op;o.res.animate(V.keyframesClose,{duration:0,fill:"forwards"});var Y=function(){window.scrollY>parseFloat(V.fireAt)&&(o.res.animate(V.keyframesOpen,V.openOptions),window.removeEventListener("scroll",Y))};o._on(window,"scroll",Y)}if(o.options.animation&&"inview"===o.options.animation.op.fireAt){var Q=o.options.animation.op;o.res.animate(Q.keyframesClose,{duration:0,fill:"forwards"});var Z=!1,ee=new IntersectionObserver(function(e,t){e.forEach(function(e){e.isIntersecting&&!Z&&(Z=!0,o.res.animate(Q.keyframesOpen,Q.openOptions),t.disconnect())})});ee.observe(o.res),o._track(function(){return ee.disconnect()})}}};this.options.animation||this._on(window,"resize",function(){return u()}),u()}},{key:"maxWidth",value:function(e){return this.res.style.maxWidth=e,this}},{key:"removeQuotesFromFirstWord",value:function(e){return e.replace((0,i._H)(),"$1:")}}],l=[{key:"viewportWidth",value:function(){if("undefined"==typeof window)return 0;var e=window.visualViewport;return e&&"number"==typeof e.width?e.width:window.innerWidth}}],r&&d(t.prototype,r),l&&d(t,l),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,l}()},9932:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{I:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).el=null,e.file=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,i=[{key:"set",value:function(e){var t=this;this.options=e,this.okayColor=e.okayColor,window.matchMedia("(max-device-width: 415px)");var r=document.createElement("div");r.style.paddingBottom="1em",r.style.display="flex",document.createElement("div");var n=document.createElement("input");n.setAttribute("type","text"),n.style.display="none",n.style.margin="0.5em";var o=document.createElement("input");o.setAttribute("type","file"),o.setAttribute("name",e.name),e.accept&&(o.accept=e.accept),void 0!==e.id&&null!==e.id&&o.setAttribute("id",e.id),o.style.visibility="hidden",o.style.display="none",window.matchMedia("(max-device-width: 415px)").matches&&(o.style.fontSize="1rem");var i=document.createElement("label");return i.setAttribute("for",e.id),i.innerText=e.title,i.style.marginRight=12,i.style.padding="0.5em",e.color&&(i.style.color=e.color),e.background&&(i.style.background=e.background,i.style.padding="10"),o.addEventListener("change",function(){n.style.display="block",e.hideField&&(n.style.display="none"),i.innerText="Change",t.file=o.files[0],t.onLoad(t.file),u[e.index]=t.file,n.setAttribute("value",t.file.name),n.setAttribute("readonly","true"),t.getLoaded(),t.highlight()}),r.appendChild(o),r.appendChild(i),r.appendChild(n),this.el=r,e.font&&this.font(e.font),e.radius&&this.borderRadius(e.radius),this}},{key:"borderRadius",value:function(e){return this.el.style.borderRadius=e,this}},{key:"addClass",value:function(e){return this.el.setAttribute("class",e),this}},{key:"font",value:function(e){return this.el.style.fontFamily=e,this}},{key:"bold",value:function(){return this.el.style.fontWeight="bold",this}},{key:"rounded",value:function(){return this.el.children[1].style.borderRadius="8px",this}},{key:"highlight",value:function(){return null===this.file?(this.hasFile=!1,this.el.children[1].style.background="red"):(this.hasFile=!0,this.okayColor?this.el.children[1].style.background=this.okayColor:this.el.children[1].style.background="#1abc9c"),this}},{key:"auto",value:function(){var e=function(){window.matchMedia("(max-device-width: 415px)").matches};return e(),window.addEventListener("resize",e),this}},{key:"onLoad",value:function(e){return this.returnObject(this.file),this}},{key:"getLoaded",value:function(){return this.file}},{key:"returnObject",value:function(e){return e}},{key:"loadCall",value:function(e){return this.func=e,this.func(this.file),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new FilePickera().set(".concat(e,")")]}},{key:"render",value:function(e){return e?(document.querySelector(e).appendChild(this.el),this):this.el}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y),u=[]}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var __webpack_exports__={},element_mapper=__webpack_require__(849),animator=__webpack_require__(9873),base=__webpack_require__(9793),layout_text=__webpack_require__(6131),layout_image=__webpack_require__(9383),layout_link=__webpack_require__(7108),flex_row=__webpack_require__(3050),custom_div=__webpack_require__(8807),new_nav_bar=__webpack_require__(3440),side_bar=__webpack_require__(5367),side_nav_bar=__webpack_require__(7879),free=__webpack_require__(7258);function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}var NAudio=function(e){function t(e){var r;return _classCallCheck(this,t),(r=_callSuper(this,t)).url=e,r.res=null,r.setup(),r}return _inherits(t,e),_createClass(t,[{key:"setup",value:function(){this.res=document.createElement("audio"),this.res.setAttribute("src",this.url),this.res.setAttribute("controls","controls")}},{key:"set",value:function(e){return this.options=e,e.background&&this.background(e.background),this}},{key:"background",value:function(e){var t=document.createElement("style");return t.type="text/css",t.textContent="\n\taudio::-webkit-media-controls-panel {\n\t\tbackground-color: ".concat(e,";\n\t}\n"),document.head.appendChild(t),this}},{key:"toCode",value:function(){return JSON.stringify(this.options,null,4),['new NAudio("'.concat(this.url,'")')]}},{key:"size",value:function(e){return this.res.style.width=e,this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}(animator.y),progress=__webpack_require__(827),center=__webpack_require__(1873),code=__webpack_require__(2789),stack=__webpack_require__(7926),container=__webpack_require__(153),codegen=__webpack_require__(1382);function svg_typeof(e){return svg_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},svg_typeof(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function svg_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function svg_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,svg_toPropertyKey(n.key),n)}}function svg_createClass(e,t,r){return t&&svg_defineProperties(e.prototype,t),r&&svg_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function svg_toPropertyKey(e){var t=svg_toPrimitive(e,"string");return"symbol"==svg_typeof(t)?t:t+""}function svg_toPrimitive(e,t){if("object"!=svg_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=svg_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function svg_callSuper(e,t,r){return t=svg_getPrototypeOf(t),svg_possibleConstructorReturn(e,svg_isNativeReflectConstruct()?Reflect.construct(t,r||[],svg_getPrototypeOf(e).constructor):t.apply(e,r))}function svg_possibleConstructorReturn(e,t){if(t&&("object"==svg_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return svg_assertThisInitialized(e)}function svg_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function svg_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(svg_isNativeReflectConstruct=function(){return!!e})()}function svg_getPrototypeOf(e){return svg_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},svg_getPrototypeOf(e)}function svg_inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&svg_setPrototypeOf(e,t)}function svg_setPrototypeOf(e,t){return svg_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},svg_setPrototypeOf(e,t)}var Svg=function(e){function t(e){var r;return svg_classCallCheck(this,t),(r=svg_callSuper(this,t)).svgMarkup="string"==typeof e?e:"",r.res.style.display="inline-flex",r.res.style.alignItems="center",r.res.style.justifyContent="center",r.res.style.flexShrink="0",r.res.style.lineHeight="0",r.res.innerHTML=r.svgMarkup,r._sizeInner(),r.code=[],r.code.push("\n new Svg() \n"),r}return svg_inherits(t,e),svg_createClass(t,[{key:"_sizeInner",value:function(){var e=this.res.querySelector("svg");e&&(e.getAttribute("width")||e.setAttribute("width","100%"),e.getAttribute("height")||e.setAttribute("height","100%"),e.style.display="block")}},{key:"setSvg",value:function(e){return this.svgMarkup="string"==typeof e?e:"",this.res.innerHTML=this.svgMarkup,this._sizeInner(),this}},{key:"size",value:function(e){var t="number"==typeof e?"".concat(e,"px"):e;return this.res.style.width=t,this.res.style.height=t,this}},{key:"toCode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.excludeFromCodeTrue)return[""];var t=" ".repeat(e),r=(this.svgMarkup||"").replace(/`/g,"\\`").replace(/\$\{/g,"\\${"),n="".concat(t,"new Svg(`").concat(r,"`)");if(this.obj&&Object.keys(this.obj).length){var o=Object.fromEntries(Object.entries(this.obj).filter(function(e){var t=_slicedToArray(e,2);return t[0],null!==t[1]})),i=(0,codegen.sy)(o,2);n+="\n".concat(t," .set(").concat(i,")")}return[n+="\n".concat(t)]}}])}(container.m),meta_adder=__webpack_require__(1980),table=__webpack_require__(6182),dropdown_2025=__webpack_require__(3665),modal_2025=__webpack_require__(3243),text_field=__webpack_require__(3014),flex_card=__webpack_require__(9310),wrap=__webpack_require__(1632),flex_grid=__webpack_require__(5860),zoom_card=__webpack_require__(4550),simple_bar=__webpack_require__(9290),beta_desktop_bar=__webpack_require__(2387),beta_mobile_bar=__webpack_require__(9521),multiswitcher=__webpack_require__(1236),spacer=__webpack_require__(3180),horizontal_scroller=__webpack_require__(7135),layout_checkbox=__webpack_require__(1557),video=__webpack_require__(2689),ulist=__webpack_require__(4617),slider_2025=__webpack_require__(1353),floating_input=__webpack_require__(3257),range=__webpack_require__(5613),form_components_radio=__webpack_require__(1371),picker=__webpack_require__(2588),image_picker=__webpack_require__(9932),data_list=__webpack_require__(6679),form_components_form=__webpack_require__(9668),layout_button=__webpack_require__(8424),designer=__webpack_require__(2234),link_getter=__webpack_require__(2027),card_getter=__webpack_require__(4753);function keyframe_animation_typeof(e){return keyframe_animation_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},keyframe_animation_typeof(e)}function keyframe_animation_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function keyframe_animation_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,keyframe_animation_toPropertyKey(n.key),n)}}function keyframe_animation_createClass(e,t,r){return t&&keyframe_animation_defineProperties(e.prototype,t),r&&keyframe_animation_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,r){return(t=keyframe_animation_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function keyframe_animation_toPropertyKey(e){var t=keyframe_animation_toPrimitive(e,"string");return"symbol"==keyframe_animation_typeof(t)?t:t+""}function keyframe_animation_toPrimitive(e,t){if("object"!=keyframe_animation_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=keyframe_animation_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var KeyframeAnim=function(){return keyframe_animation_createClass(function e(t){var r=this;return keyframe_animation_classCallCheck(this,e),_defineProperty(this,"scrollFunction",function(){void 0===r.flagValue&&(r.flagValue=0);var e=(r.html.scrollTop-r.flagValue)/(r.html.scrollHeight-window.innerHeight)*16,t=Math.min(r.frameCount-1,Math.ceil(e*r.frameCount));isNaN(t)&&(t=1),t<0&&(t=0),r.data.limit?t<r.data.limit&&requestAnimationFrame(function(){return r.updateImage(t+1)}):requestAnimationFrame(function(){return r.updateImage(t+1)}),window.matchMedia("(max-device-width: 415px)")}),_defineProperty(this,"currentFrame",function(e){return"".concat(r.data.path).concat(e.toString().padStart(4,"0"),".").concat(r.data.extension)}),_defineProperty(this,"preloadImages",function(){for(var e=1;e<r.frameCount;e++)document.createElement("img"),r.img.src=r.currentFrame(e)}),_defineProperty(this,"updateImage",function(e){r.img.src=r.currentFrame(e)}),this.fromFirstImageFlag=!1,this.flag=0,this.flagValue=t.flagValue,this.data=t,this.mask=t.mask,this.maskData=t.maskData,this.id=t.id,this.halfHeight=t.halfHeight,void 0===this.data.type?this.type="default":this.type=this.data.type,this.stickData=t.stickData,this.targetHeight=this.data.targetHeight,this.html=document.body,this.res=document.createElement("div"),void 0!==this.data.id&&null!==this.data.id&&this.res.setAttribute("id",this.data.id),this.res.style.border="1px solid green",this.res.style.width="100%",this.res.style.display="grid",this.res.style.position="sticky",this.res.style.top=0,this.res.style.alignSelf="flex-start",this.res.style.justifyContent="center",this.res.style.alignItems="center",this.data.added||(this.res.style.marginTop=this.data.noAddedDistance),this.frameCount=100,this.lastScrollTop=window.scrollY,this.setupTopElement(),this.scrollFunction(),window.addEventListener("scroll",function(){r.scrollFunction()}),this.preloadImages(),this},[{key:"marginTop",value:function(e){return this.res.style.marginTop=e,this}},{key:"toCode",value:function(){return[""]}},{key:"drawImageProp",value:function(e,t,r,n,o,i,a,s){2===arguments.length&&(r=n=0,o=e.canvas.width,i=e.canvas.height),(a="number"==typeof a?a:.5)<0&&(a=0),(s="number"==typeof s?s:.5)<0&&(s=0),a>1&&(a=1),s>1&&(s=1);var l,c,u,d,f=t.width,p=t.height,h=Math.min(o/f,i/p),y=f*h,m=p*h,v=1;y<o&&(v=o/y),Math.abs(v-1)<1e-14&&m<i&&(v=i/m),(l=(f-(u=f/((y*=v)/o)))*a)<0&&(l=0),(c=(p-(d=p/((m*=v)/i)))*s)<0&&(c=0),u>f&&(u=f),d>p&&(d=p),e.drawImage(t,l,c,u,d,r,n,o,i)}},{key:"maska",value:function(e){var t=this;return window.addEventListener("scroll",function(){t.innerMask(e)}),this}},{key:"innerMask",value:function(e){if(e){var t=smartRange(window.scrollY,{min:e.start,max:e.end},{min:0,max:7}),r=smartRange(window.scrollY,{min:e.start,max:e.end},{min:37,max:37});this.res.style.clipPath="inset(".concat(t,"% ").concat(t,"% round 0 0 ").concat(r,"px ").concat(r,"px)")}}},{key:"setupTopElement",value:function(){var e=this,t=document.createElement("canvas");if(t.style.gridArea="1/1",t.zIndex=1,t.style.display="grid",t.style.gridTemplate="1fr/1fr",t.style.justifyContent="center",t.style.alignItems="center",t.style.marginLeft="auto",t.style.marginRight="auto",this.context=t.getContext("2d"),this.context.canvas.width=window.innerWidth,this.context.canvas.height=1.2*window.innerHeight,this.img=document.createElement("img"),this.img.onload=function(){e.data.halfHeight?e.drawImageProp(e.context,e.img,0,0,window.innerWidth,window.innerHeight/2):e.drawImageProp(e.context,e.img,0,0,window.innerWidth,1.2*window.innerHeight)},window.addEventListener("resize",function(){e.context.canvas.width=window.innerWidth,e.context.canvas.height=1.2*window.innerHeight,e.drawImageProp(e.context,e.img,0,0,window.innerWidth,1.2*window.innerHeight)}),this.res.appendChild(t),this.data.text){var r=document.createElement("div");r.style.gridArea="1/1";var n=this.data.text.render();if(this.h2a=n,r.appendChild(n),r.setAttribute("id","rem"),this.data.hasRect){var o=document.createElement("div");o.style.width="30px",o.style.height="30px",o.style.backgroundColor="orange"}else for(var i=0;i<this.res.children.length;i++)"rem"===this.res.children[i].id&&this.res.removeChild(this.res.children[i]);this.res.appendChild(r)}this.lastScrollTop=0,this.count=1,this.isUp=!1,this.done=!1,this.fireOnce=!0,this.dec=1,this.tdec=1,this.atdec=0,this.textOpacity=1,this.res.children[this.res.children.length-1].children[0].style.opacity=0,this.data.text&&window.addEventListener("scroll",function(){e.h2a.style.backgroundColor="rgba(0, 0, 0, 0.8)",e.h2a.style.opacity=1}),window.addEventListener("scroll",function(t){if(e.data.stickyData&&e.data.stickyData.top){var r=e.data.stickyData.top;e.data.uncomment&&(window.scrollY>r?(wrapDiv.style.background="pink",wrapDiv.style.position="relative",wrapDiv.style.top=r):(wrapDiv.style.background="orange",wrapDiv.style.top=0,wrapDiv.style.position="fixed"))}var n=window.scrollY||document.documentElement.scrollTop;if(n>e.lastScrollTop?e.isUp=!1:e.isUp=!0,e.lastScrollTop=n<=0?0:n,e.isUp&&e.textOpacity<.98&&(e.textOpacity+=.01),!1===e.isUp&&e.textOpacity>.02&&(e.textOpacity-=.01),e.data.mask){var o=e.res,i=smartRange(window.scrollY,{min:e.data.maskData.start,max:e.data.maskData.end},{min:0,max:7});if(o.style.clipPath="inset(".concat(i,"% ").concat(i,"% round 20px)"),!e.hasH2){var a=document.createElement("div");a.style.background="#ecf0f1",a.style.width="86%",a.style.marginLeft="7%",a.style.borderRadius="1rem",e.hasH2=!0,a.appendChild(e.data.newSection.render()),o.parentElement.appendChild(a)}}e.data.targetHeight})}},{key:"setLazyText",value:function(e){var t=this;return this.lazyText=e,window.addEventListener("scroll",function(){for(var e=smartRange(window.scrollY,{min:t.lazyText.start,max:t.lazyText.end},{min:0,max:200}),r=smartRange(window.scrollY,{min:t.lazyText.start,max:t.lazyText.end},{min:0,max:1}),n=0;n<t.h2a.children[0].children.length;n++)t.h2a.children[0].children[n].style.transform="matrix(1, 0, 0, 1, 0, -".concat(e,")"),t.h2a.children[0].children[n].style.opacity="".concat(r-.2*n)}),this}},{key:"setProps",value:function(e){return e.targetHeight&&(this.data.targetHeight=e.targetHeight),e.flagValue&&(this.flagValue=e.flagValue),this}},{key:"fixedToRelative",value:function(e){this.data.uncomment=e}},{key:"toSticky",value:function(){return this.res.style.position="sticky",this.res.style.top="0",this}},{key:"setOpacityRange",value:function(e){var t=this;return this.data.opacityRange=e.opacityRange,this.data.scaleRange=e.scaleRange,window.addEventListener("scroll",function(){var e=smartRange(window.scrollY,{min:t.data.opacityRange.start,max:t.data.opacityRange.end},{min:0,max:1});t.h2a.style.opacity=e;var r=smartRange(window.scrollY,{min:t.data.scaleRange.start,max:t.data.scaleRange.end},{min:3,max:1});window.matchMedia("(max-device-width: 415px)").matches||(t.h2a.children[0].style.transform="scale(".concat(r,")"))}),this}},{key:"stick",value:function(e){return e?(e.offset&&(null!=this.data.stickyData?this.data.stickyData.top=e.offset:this.data.stickyData={top:e.offset}),e.value?this.makeSticky():this.noSticky(),this):(this.makeSticky(),this)}},{key:"to100vh",value:function(){this.res.style.height="100vh"}},{key:"makeSticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"noSticky",value:function(){return this.res.style.position="",this}},{key:"toOpacity",value:function(e){this.res.style.opacity="".concat(e)}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();function transform_anim_typeof(e){return transform_anim_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},transform_anim_typeof(e)}function transform_anim_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function transform_anim_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,transform_anim_toPropertyKey(n.key),n)}}function transform_anim_createClass(e,t,r){return t&&transform_anim_defineProperties(e.prototype,t),r&&transform_anim_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function transform_anim_toPropertyKey(e){var t=transform_anim_toPrimitive(e,"string");return"symbol"==transform_anim_typeof(t)?t:t+""}function transform_anim_toPrimitive(e,t){if("object"!=transform_anim_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=transform_anim_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function convertRange(e,t,r){var n=(e-t.min)*(r.max-r.min)/(t.max-t.min)+r.min;return n>1&&(n=2-n),n}var TransformAnim=function(){return transform_anim_createClass(function e(t){transform_anim_classCallCheck(this,e),this.data=t,this.targetHeight=this.data.targetHeight,void 0===this.data.type?this.type="default":this.type=this.data.type,this.layout="flex",this.setup()},[{key:"toCode",value:function(){return[""]}},{key:"set",value:function(e){return e.arrayPadding&&(this.wrdiv.style.marginTop=e.arrayPadding.value),e.height&&(this.wrdiv.style.height=e.height),e.position&&(this.wrdiv.style.position=e.position),this}},{key:"setup",value:function(){var e=this,t=document.createElement("div");this.wrdiv=t,t.style.display="flex",t.style.flexDirection="column",this.data.overflow&&(t.style.overflow="hidden"),t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="center",t.style.height="900px",this.data.position?t.style.position=this.data.position:this.data.sticky||(t.style.position="fixed"),t.style.marginTop="0px";var r=document.createElement("img");r.style.gridArea="1/1",r.style.display="none",r.style.width="50%",r.setAttribute("class","m2"),t.appendChild(r),this.data.view&&(this.m2img=this.data.view.render(),t.appendChild(this.m2img)),this.data.paragraph&&(this.paragraph=this.data.paragraph.render(),t.appendChild(this.paragraph)),this.data.view&&(r.style.display="none");var n=document.createElement("h2");n.style.fontFamily="Arial",n.style.fontSize="2.4rem",n.style.background="linear-gradient(#3498db, #1abc9c)",n.style.webkitBackgroundClip="text",n.style.webkitTextFillColor="transparent";var o=document.createTextNode("Supercharged");n.appendChild(o),!0!==this.data.showTitle&&void 0!==this.data.showTitle||(this.data.content&&this.data.content.render?t.appendChild(this.data.content.render()):t.appendChild(n));var i=document.createElement("p");document.createTextNode("Hello"),t.appendChild(i),this.res=t,window.addEventListener("scroll",function(o){return e.resize(t,r,n)}),this.resize(t,r,n)}},{key:"setStickyData",value:function(e){return this.data.stickyData=e,this}},{key:"toAuto",value:function(){return this.res.style.height="auto",this}},{key:"stick",value:function(e){return e?(e.offset&&(null!=this.data.stickyData?this.data.stickyData.top=e.offset:(this.data.stickyData={top:e.offset},this.fixedToRelative(!0))),e.value?this.makeSticky():this.noSticky(),this):(this.makeSticky(),this)}},{key:"makeSticky",value:function(){return this.wrdiv.style.position="sticky",this.wrdiv.style.top=0,this}},{key:"setProps",value:function(e){return e.targetHeight&&(this.data.targetHeight=e.targetHeight),e.flagValue&&(this.data.flagValue=e.flagValue),this}},{key:"noSticky",value:function(){return this.wrdiv.style.position="",this}},{key:"toSticky",value:function(){return this.wrdiv.style.position="sticky",this.wrdiv.style.top="0",this}},{key:"toOpacity",value:function(e){this.res.style.opacity="".concat(e)}},{key:"setUncomment",value:function(e){this.data.uncomment=e}},{key:"fixedToRelative",value:function(e){return this.data.uncomment=e,this}},{key:"mask",value:function(e){var t=this;return window.addEventListener("scroll",function(){t.innerMask(e)}),this}},{key:"innerMask",value:function(e){return e&&(transform_anim_smartRange(window.scrollY,{min:e.start,max:e.end},{min:7,max:0}),transform_anim_smartRange(window.scrollY,{min:e.start,max:e.end},{min:37,max:37})),this}},{key:"setScale",value:function(e){var t=this;return this.data.range=e,this.m2img.style.transform="scale(".concat(this.data.range.scaleMax,")"),window.addEventListener("scroll",function(){var e=transform_anim_smartRange(window.scrollY,{min:t.data.range.min,max:t.data.range.max},{min:t.data.range.scaleMax,max:t.data.range.scaleMin});null!=t.m2img&&(t.m2img.style.transform="scale(".concat(e,")"))}),this}},{key:"resize",value:function(e,t,r){var n=window.scrollY||document.documentElement.scrollTop;if(n>this.lastScrollTop?this.isUp=!1:this.isUp=!0,this.data.sticky)e.style.background="#fafafa";else if(this.data.stickyData){var o=this.data.stickyData.top;this.data.uncomment&&(window.scrollY>o?(e.style.position="relative",e.style.top=o):(e.style.top=0,e.style.position="fixed"))}this.lastScrollTop=n<=0?0:n;var i=t;this.m2img=t,this.data.view&&(i=this.m2img);var a=transform_anim_smartRange(window.scrollY,{min:3150,max:3300},{min:0,max:100}),s=transform_anim_smartRange(window.scrollY,{min:3150,max:3300},{min:60,max:80}),l=transform_anim_smartRange(window.scrollY,{min:3150,max:3300},{min:0,max:40});this.data.operation&&"translate"===this.data.operation.type&&(i.style.transform="translate3d(".concat(a,"%, ").concat(a/2,"%, 0px) scale(").concat(s/100,") rotate(").concat(l,"deg)"))}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();function transform_anim_smartRange(e,t,r){e<t.min&&(e=t.min),e>t.max&&(e=t.max);var n=(e-t.min)/(t.max-t.min);t.min>t.max&&(n=(e-t.max)/(t.min-t.max));var o=(r.min-r.max)*n-r.min;if(o=Math.abs(o),r.min<r.max){var i=(r.max+Math.abs(r.min))*n;o=r.min+i}return o}function stacker_typeof(e){return stacker_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},stacker_typeof(e)}function stacker_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function stacker_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,stacker_toPropertyKey(n.key),n)}}function stacker_createClass(e,t,r){return t&&stacker_defineProperties(e.prototype,t),r&&stacker_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function stacker_toPropertyKey(e){var t=stacker_toPrimitive(e,"string");return"symbol"==stacker_typeof(t)?t:t+""}function stacker_toPrimitive(e,t){if("object"!=stacker_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=stacker_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Stacker=function(){return stacker_createClass(function e(){stacker_classCallCheck(this,e),this.res=document.createElement("div"),this.res.style.display="flex",this.res.style.flexDirection="column"},[{key:"add",value:function(e){for(var t=0;t<e.length;t++){var r=e[t].render();0===t&&(r.style.zIndex=1),this.res.appendChild(r)}return this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();function scroll_video_typeof(e){return scroll_video_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},scroll_video_typeof(e)}function scroll_video_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function scroll_video_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,scroll_video_toPropertyKey(n.key),n)}}function scroll_video_createClass(e,t,r){return t&&scroll_video_defineProperties(e.prototype,t),r&&scroll_video_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function scroll_video_toPropertyKey(e){var t=scroll_video_toPrimitive(e,"string");return"symbol"==scroll_video_typeof(t)?t:t+""}function scroll_video_toPrimitive(e,t){if("object"!=scroll_video_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=scroll_video_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ScrollVideo=function(){return scroll_video_createClass(function e(){scroll_video_classCallCheck(this,e),this.frameNumber=0,this.res=document.createElement("div"),this.vid=null,this.minScrollHeight=0,this.maxScrollHeight=1e3,this.videoUrl=""},[{key:"set",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.minScrollHeight,r=void 0===t?0:t,n=e.maxScrollHeight,o=void 0===n?1e3:n,i=e.videoUrl,a=void 0===i?"":i;return this.minScrollHeight=r,this.maxScrollHeight=o,this.videoUrl=a,this.createElements("V0"),this.vid=this.res.children[0],this.init(),this}},{key:"createElements",value:function(e){var t=document.createElement("video");t.id=e,t.setAttribute("tabindex","0"),t.setAttribute("autobuffer","autobuffer"),t.setAttribute("preload","preload"),t.style.position="sticky",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100vh",t.style.border="1px solid orange";var r=document.createElement("source");r.type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"',r.src=this.videoUrl,t.appendChild(r),this.res.appendChild(t);var n=document.createElement("p");n.id="time",n.style.fontFamily="Helvetica, Arial, sans-serif",n.style.fontSize="24px",this.res.appendChild(n);var o=document.createElement("div");o.id="set-height",o.style.display="block",this.setop=o,this.res.appendChild(o)}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"init",value:function(){var e=this;this.vid.addEventListener("loadedmetadata",function(){var t=e.setop;if(t){var r=e.maxScrollHeight-e.minScrollHeight;t.style.height="".concat(r,"px")}else console.error("Error: 'set-height' element not found.")}),this.scrollPlay()}},{key:"scrollPlay",value:function(){var e=this;if(this.vid&&!isNaN(this.vid.duration)){var t=Math.max(this.minScrollHeight,Math.min(window.pageYOffset,this.maxScrollHeight)),r=this.maxScrollHeight-this.minScrollHeight,n=(t-this.minScrollHeight)/r;this.vid.currentTime=n*this.vid.duration,window.requestAnimationFrame(function(){return e.scrollPlay()})}else window.requestAnimationFrame(function(){return e.scrollPlay()})}},{key:"toCode",value:function(){return[""]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}(),theme=__webpack_require__(5318),grid_switcher=__webpack_require__(7698),polygon=__webpack_require__(9800),circle=__webpack_require__(5632),_process$versions;function _regenerator(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return _regeneratorDefine2(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,_regeneratorDefine2(d,"constructor",c),_regeneratorDefine2(c,"constructor",l),l.displayName="GeneratorFunction",_regeneratorDefine2(c,o,"GeneratorFunction"),_regeneratorDefine2(d),_regeneratorDefine2(d,o,"Generator"),_regeneratorDefine2(d,n,function(){return this}),_regeneratorDefine2(d,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}function _regeneratorDefine2(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_regeneratorDefine2=function(e,t,r,n){if(t)o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r;else{var i=function(t,r){_regeneratorDefine2(e,t,function(e){return this._invoke(t,r,e)})};i("next",0),i("throw",1),i("return",2)}},_regeneratorDefine2(e,t,r,n)}function asyncGeneratorStep(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){asyncGeneratorStep(i,n,o,a,s,"next",e)}function s(e){asyncGeneratorStep(i,n,o,a,s,"throw",e)}a(void 0)})}}var IS_NODE="undefined"!=typeof process&&!(null===(_process$versions=process.versions)||void 0===_process$versions||!_process$versions.node),nodeImport="undefined"!=typeof Function?new Function("s","return import(s)"):null;function loadJson(e){return _loadJson.apply(this,arguments)}function _loadJson(){return _loadJson=_asyncToGenerator(_regenerator().m(function e(t){var r,n,o,i,a,s,l,c,u,d,f,p,h,y,m,v=arguments;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=(r=v.length>1&&void 0!==v[1]?v[1]:{}).fallback,o=void 0===n?void 0:n,i=r.quiet,a=void 0!==i&&i,e.p=1,!IS_NODE||!nodeImport){e.n=7;break}return e.n=2,nodeImport("node:fs");case 2:return s=e.v,e.n=3,nodeImport("node:path");case 3:l=e.v,c=process.cwd(),u=0,d=[l.join("upload",t),t];case 4:if(!(u<d.length)){e.n=6;break}if(f=d[u],p=l.resolve(c,f),!s.existsSync(p)){e.n=5;break}return e.a(2,JSON.parse(s.readFileSync(p,"utf8")));case 5:u++,e.n=4;break;case 6:throw new Error("loadJson: ".concat(t," not found (tried ./upload/").concat(t," and ./").concat(t,")"));case 7:return e.n=8,fetch("./".concat(t));case 8:if((h=e.v).ok){e.n=9;break}throw new Error("HTTP ".concat(h.status));case 9:return e.n=10,h.json();case 10:return e.a(2,e.v);case 11:if(e.p=11,m=e.v,void 0===o){e.n=12;break}return a||"undefined"==typeof console||console.warn("[loadJson] ".concat(t," failed (").concat(null!==(y=null==m?void 0:m.message)&&void 0!==y?y:m,") — using fallback")),e.a(2,o);case 12:throw m;case 13:return e.a(2)}},e,null,[[1,11]])})),_loadJson.apply(this,arguments)}return"undefined"!=typeof window&&(window.ElementMapper=element_mapper.I,window.Animator=animator.y,window.Text=layout_text.E,window.Image=layout_image._,window.Link=layout_link.N,window.FlexRow=flex_row.Y,window.UINavBar=new_nav_bar.X,window.Free=free.b,window.NAudio=NAudio,window.Progress=progress.k,window.Center=center.o,window.Code=code.C,window.Stack=stack.B,window.Wrapper=container.m,window.Svg=Svg,window.MetaAdder=meta_adder.W,window.Table=table.X,window.Dropdown=dropdown_2025.m,window.Modal=modal_2025.a,window.TextField=text_field.A,window.Card=flex_card.Z,window.Wrap=wrap.B,window.FlexGrid=flex_grid.M,window.ZoomCard=zoom_card.U,window.CustomDivRenderer=custom_div.c,window.SideBar=side_bar.z,window.SideNav=side_nav_bar.f,window.SimpleBar=simple_bar.m,window.DesktopBar=beta_desktop_bar.C,window.MobileBar=beta_mobile_bar.m,window.Switcher=multiswitcher.i,window.Spacer=spacer.h,window.HScroller=horizontal_scroller.J,window.Checkbox=layout_checkbox.S,window.Base=base.C,window.FilePickera=image_picker.I,window.Picker=picker.L,window.Range=range.Q,window.RadioGroup=form_components_radio.z,window.DataList=data_list.T,window.Button=layout_button.$,window.Des=designer.H,window.LinkStyler=link_getter.a,window.CardGen=card_getter.Z,window.KeyframeAnim=KeyframeAnim,window.TransformAnim=TransformAnim,window.Stacker=Stacker,window.ScrollVideo=ScrollVideo,window.Theme=theme.S,window.AreaSwitcher=grid_switcher.t,window.Video=video.C,window.UList=ulist.e,window.Slider=slider_2025.A,window.Polygon=polygon.t,window.Circle=circle.j,window.FloatingInput=floating_input.l,window.Form=form_components_form.l),void 0!==__webpack_require__.g&&(__webpack_require__.g.ElementMapper=element_mapper.I,__webpack_require__.g.Animator=animator.y,__webpack_require__.g.Text=layout_text.E,__webpack_require__.g.Image=layout_image._,__webpack_require__.g.Link=layout_link.N,__webpack_require__.g.FlexRow=flex_row.Y,__webpack_require__.g.UINavBar=new_nav_bar.X,__webpack_require__.g.Free=free.b,__webpack_require__.g.NAudio=NAudio,__webpack_require__.g.Progress=progress.k,__webpack_require__.g.Center=center.o,__webpack_require__.g.Code=code.C,__webpack_require__.g.Stack=stack.B,__webpack_require__.g.Wrapper=container.m,__webpack_require__.g.Svg=Svg,__webpack_require__.g.MetaAdder=meta_adder.W,__webpack_require__.g.Table=table.X,__webpack_require__.g.Dropdown=dropdown_2025.m,__webpack_require__.g.Modal=modal_2025.a,__webpack_require__.g.TextField=text_field.A,__webpack_require__.g.Card=flex_card.Z,__webpack_require__.g.Wrap=wrap.B,__webpack_require__.g.FlexGrid=flex_grid.M,__webpack_require__.g.ZoomCard=zoom_card.U,__webpack_require__.g.CustomDivRenderer=custom_div.c,__webpack_require__.g.SideBar=side_bar.z,__webpack_require__.g.SideNav=side_nav_bar.f,__webpack_require__.g.SimpleBar=simple_bar.m,__webpack_require__.g.DesktopBar=beta_desktop_bar.C,__webpack_require__.g.MobileBar=beta_mobile_bar.m,__webpack_require__.g.Switcher=multiswitcher.i,__webpack_require__.g.Spacer=spacer.h,__webpack_require__.g.HScroller=horizontal_scroller.J,__webpack_require__.g.Checkbox=layout_checkbox.S,__webpack_require__.g.Base=base.C,__webpack_require__.g.FilePickera=image_picker.I,__webpack_require__.g.Picker=picker.L,__webpack_require__.g.Range=range.Q,__webpack_require__.g.RadioGroup=form_components_radio.z,__webpack_require__.g.DataList=data_list.T,__webpack_require__.g.Button=layout_button.$,__webpack_require__.g.Des=designer.H,__webpack_require__.g.LinkStyler=link_getter.a,__webpack_require__.g.CardGen=card_getter.Z,__webpack_require__.g.KeyframeAnim=KeyframeAnim,__webpack_require__.g.TransformAnim=TransformAnim,__webpack_require__.g.Stacker=Stacker,__webpack_require__.g.ScrollVideo=ScrollVideo,__webpack_require__.g.Theme=theme.S,__webpack_require__.g.AreaSwitcher=grid_switcher.t,__webpack_require__.g.Video=video.C,__webpack_require__.g.UList=ulist.e,__webpack_require__.g.Slider=slider_2025.A,__webpack_require__.g.Polygon=polygon.t,__webpack_require__.g.Circle=circle.j,__webpack_require__.g.FloatingInput=floating_input.l,__webpack_require__.g.Form=form_components_form.l),__webpack_exports__=__webpack_exports__.Bundle,__webpack_exports__})());
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Bundle=t():e.Bundle=t()}(this,()=>(()=>{"use strict";var __webpack_modules__={153:(e,t,r)=>{r.d(t,{m:()=>y});var n=r(9873),o=r(1382);function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},f.apply(null,arguments)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var y=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=p(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}(this,t)).res=null,r.setup(e),r.code=[],r.isLast=!1,r.constrObj=e,r.code.push("\n new Wrapper() \n"),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),r=t,n=[{key:"toCode",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.code=[],this.excludeFromCodeTrue)return[""];var r=" ".repeat(t),n="".concat(r,'new Wrapper("').concat(this.constrObj,'")');if(this.constrObj||(n="".concat(r,"new Wrapper()")),Object.keys(this.obj).length){var i=Object.fromEntries(Object.entries(this.obj).filter(function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2);return t[0],null!==t[1]})),a=(0,o.sy)(i,2);n+="\n".concat(r," .set(").concat(a,")")}return null!==(e=this.items)&&void 0!==e&&e.length&&(n+="\n".concat(r," .add([\n")+this.items.map(function(e){return e.toCode(t+4)}).join(",\n")+"\n".concat(r," ])")),[n+="\n".concat(r)]}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"set",value:function(e){this.obj=e,this.commonMethods(e),e.onTap&&this.onTap(e.onTap);var r=".set({";e.isHidden&&this.isHidden(e.isHidden),e.scale&&(this.res.style.scale=e.scale),e.scale&&(r+="scale: ".concat(e.scale)),e.keySet&&this.keySet(e.keySet),e.resprop&&this.resprop(e.resprop),e.position&&(this.res.style.position=e.position),void 0!==e.top&&(this.res.style.top=e.top),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.gpos&&this.gpos(e.gpos);var n,o,s,l=[],c=e.transform&&"object"===a(e.transform);if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||c){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&(n=t,o=this,"function"==typeof(s=f(p(1&3?n.prototype:n),"setAny",o))?function(e){return s.apply(o,e)}:s)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var u=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,c?e.transform:void 0];u=u.filter(function(e){return null!=e});for(var d=0;d<u.length;d++)l.push({range:u[d].range,log:u[d].op.name,target:u[d].target,op:u[d].op});var h=[];e.borderObj&&h.push("border"),e.background&&h.push("background"),e.mar&&h.push("margin"),e.animation&&h.push("animation"),e.span&&h.push("span"),c&&h.push("transform"),e.gradient&&h.push("gradient"),e.blast,this.options=e,this.chainReact(l,this.options.id,h)}if(e.centerColumn&&this.deprecatedOption("centerColumn",'center: "x"'),e.mboth&&(this.deprecatedOption("mboth",'mar: "center"'),this.mar("center")),e.mar&&this.mar(e.mar),e.sticky&&this.sticky(),e.transition&&(this.res.style.transition=e.transition),e.class&&this.res.setAttribute("class",e.class),e.ga&&(this.res.style.gridArea=e.ga),e.opacity&&(0==e.opacity&&(this.res.style.opacity=0),e.opacity&&(this.res.style.opacity=e.opacity)),e.maxHeight&&(this.res.style.maxHeight=e.maxHeight),e.id&&this.res.setAttribute("id",e.id),e.simpleCenter&&this.deprecatedOption("simpleCenter","center: true"),e.filter&&(this.res.style.backdropFilter="blur(3px)"),e.radius&&this.corner(e.radius),e.radius&&(r+='\n radius: "'.concat(e.radius,'",')),e.border&&this.border(e.border),e.simpleBorder&&(this.res.style.border=e.simpleBorder),e.width&&this.width(e.width),e.width&&(r+='\n width: "'.concat(e.width,'",')),e.overflow&&(r+='\n overflow: "'.concat(e.overflow,'",')),e.height&&this.heightNoAuto(e.height),e.height&&(r+='\n height: "'.concat(e.height,'",')),e.align&&this.flexAlign(e.align),e.align&&(r+='\n align: "'.concat(e.align,'",')),e.borderObj&&(this.res.style.border="".concat(e.borderObj.width," solid ").concat(e.borderObj.color),void 0!==e.borderObj.radius&&(this.res.style.borderRadius=e.borderObj.radius)),e.borderObja&&(this.res.style.border="".concat(e.borderObja.width," solid ").concat(e.borderObja.color),void 0!==e.borderObja.radius&&(this.res.style.borderRadius=e.borderObja.radius)),e.font&&this.font(e.font),e.font&&(r+='font: "'.concat(e.font,'",')),e.maxWidth&&this.maxWidth(e.maxWidth),e.flexCenter&&this.deprecatedOption("flexCenter",'center: "y"'),e.color&&this.color(e.color),e.background&&this.background(e.background),e.background&&(r+='background: "'.concat(e.background,'",')),e.weight&&this.weight(e.weight),e.area&&this.setArea(e.area),e.area&&(r+='area: "'.concat(e.area,'"')),e.column&&this.makeCol(),e.column&&(r+='\n column: "'.concat(e.column,'",')),e.alignIts&&(this.res.style.background="gray"),e.alignIts&&(this.res.style.alignItems="flex-start"),e.alignIts&&(this.res.style.justifyItems="flex-start"),e.customAlign&&(this.res.style.alignItems=e.customAlign),e.customJustify&&(this.res.style.justifyItems=e.customJustify),e.disp&&(this.res.style.display=e.disp),e.flexDir&&(this.res.style.flexDirection=e.flexDir),e.flexDir&&(this.res.style.display="flex"),e.flexDir&&(r+='\n flexDir: "'.concat(e.flexDir,'",')),e.center&&(r+="center: ".concat(JSON.stringify(e.center),",")),e.zIndex&&(this.res.style.zIndex=e.zIndex),e.transform&&"object"===a(e.transform)&&this.reactOnTransform(e.transform),e.name&&(this.name=e.name),e.responsive&&this.rsp(e.responsive),e.stretch){e.stretch&&this.stretch(e.stretch);var y=this.removeQuotesFromFirstWord(JSON.stringify(e.stretch));r+="\n stretch: ".concat(y,",")}for(var m in e)if("margin"===m){var v=e[m];if(Array.isArray(v)&&v.length>0){var b,g=i(v);try{for(g.s();!(b=g.n()).done;){var w=b.value;w.hasOwnProperty("top")&&(this.res.style.marginTop=w.top),w.hasOwnProperty("right")&&(this.res.style.marginRight=w.right),w.hasOwnProperty("bottom")&&(this.res.style.marginBottom=w.bottom),w.hasOwnProperty("left")&&(this.res.style.marginLeft=w.left)}}catch(e){g.e(e)}finally{g.f()}}}return 8===(r+="})\n").length&&(r=""),this.code.push(r),this}},{key:"rsp",value:function(e){var t=this;this.res.style.display="flex";var r=e.sequence.split("-"),n=function(){var n=e.ranges;"0px"!==n[0]&&n.unshift("0px");for(var o=0;o<n.length-1;o++)(window.matchMedia("(min-width: ".concat(n[o],") and (max-width: ").concat(n[o+1],")")).matches||window.matchMedia("(min-width: ".concat(n[n.length-1],")")).matches)&&("row"===r[o]&&(t.res.style.flexDirection="row",t.res.style.border="3px solid green"),"col"===r[o]&&(t.res.style.flexDirection="column",t.res.style.border="3px solid purple"));return t};window.addEventListener("resize",n),n()}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"toSticky",value:function(){return this.res.style.position="sticky",this.res.style.top="0",this}},{key:"stretch",value:function(e){var t=this,r=function(){window.matchMedia("(max-width: ".concat(e.at,")")).matches?t.res.style.width="auto":window.matchMedia("(max-device-width: 415px)").matches?t.res.style.width="100%":t.res.style.width=e.backTo};r(),window.addEventListener("resize",r)}},{key:"makeCol",value:function(){return this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.alignItems="flex-start",this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"weight",value:function(e){return this.res.style.fontWeight=e,this}},{key:"flexAlign",value:function(e){return this.res.style.display="flex",this.res.style.justifyContent="flex-start",this.res.style.alignItems="flex-start","center"===e?(this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.alignItems="center",this):this}},{key:"heightNoAuto",value:function(e){return this.res.style.height=e,this}},{key:"border",value:function(e){return this.res.style.borderRadius="".concat(e.radius,"px"),this.res.style.border="".concat(e.width,"px solid ").concat(e.color),this}},{key:"add",value:function(e){this.items=e,this.code.push(".add([ \n");var t=e.map(function(t,r){return t.toCode().flatMap(function(e){return e}).join("")+(r<e.length-1?",":"")}).join("");this.code.push(t);for(var r=0;r<e.length;r++)if(void 0!==e[r]&&void 0!==e[r].toCode){var n=e[r].render();this.res.appendChild(n)}return this.code.push("])"),this}},{key:"setWidth",value:function(e){this.res.style.width="100vw"}},{key:"setHeight",value:function(e){return this.res.style.height="".concat(e),this}},{key:"setup",value:function(e){var t=null;return e?(e.isLink&&(t=document.createElement("a")),"aside"===e&&(t=document.createElement("aside")),"article"===e&&(t=document.createElement("article")),"main"===e&&(t=document.createElement("main")),"section"===e&&(t=document.createElement("section")),"header"===e&&(t=document.createElement("header")),"footer"===e&&(t=document.createElement("footer"))):t=document.createElement("div"),e&&e.isLink&&(t.style.textDecoration="none",t.setAttribute("href",e.child)),this.res=t,this.res.style.margin=0,this.res.style.padding=0,e&&!0===e.hideOverflow&&(this.res.style.overflow="hidden",this.res.style.overflowY="scroll"),e&&!0===e.center&&(this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.justifyContent="center",this.res.style.alignItems="center"),e&&"left"===e.align&&(this.res.style.alignItems="flex-start"),e&&"right"===e.align&&(this.res.style.alignItems="flex-end"),e&&e.height&&(this.res.style.height=e.height),e&&e.width&&(this.res.style.width=e.width,this.res.style.marginLeft="auto",this.res.style.marginRight="auto",window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="95%")),this}},{key:"height",value:function(e){return this.res.style.width="auto",this.res.style.height="".concat(e),this}},{key:"dimensions",value:function(e,t){return this.w=e,this.h=t,this.w?this.res.style.width=this.w:this.res.style.width=window.innerWidth,this.h?this.res.style.height=this.h:this.res.style.height=window.innerHeight,this}},{key:"size",value:function(e,t){return this.deprecatedOption("size() on this component","dimensions(w, h)"),this.dimensions(e,t)}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"corner",value:function(e){return this.res.style.borderRadius=e,this}},{key:"apply",value:function(e){var t=this,r=function(){for(var r=0;r<e.length;r++){var n=e[r],o=window.matchMedia("(max-width: ".concat(n.width,"px)"));n.device&&(o=window.matchMedia("(max-device-width: ".concat(n.width,"px)"))),o.matches&&Object.assign(t.res.style,n.styles)}},n=window.matchMedia("(max-width: ".concat(e[0].width,"px)"));return e[0].device&&(n=window.matchMedia("(max-device-width: ".concat(e[0].width,"px)"))),n.matches||Object.assign(this.res.style,e[0].styles),r(),window.addEventListener("resize",r),this}},{key:"mount",value:function(e){document.querySelector(e).appendChild(this.res)}},{key:"render",value:function(e){return e?(document.querySelector("#mount"),document.querySelector(e).appendChild(this.res),this):this.res}}],n&&c(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},827:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{k:()=>c});var c=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t))._noTheme=!0,r.res=null,r.value=e,r.setup(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,i=[{key:"setup",value:function(){var e=document.createElement("div"),t=document.createElement("div"),r=document.createElement("div");return t.style.position="absolute",r.style.position="relative",e.appendChild(t),e.appendChild(r),this.res=e,this}},{key:"padding",value:function(e,t,r,n){return(e||t||r||n)&&(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=n),t||r||n||(this.res.style.padding=e),this}},{key:"size",value:function(e){var t=this,r=e.width.split("%")[0],n=e.height;this.res.children[0].style.width=r/100*window.innerWidth,this.res.children[0].style.height=n,this.res.children[1].style.width=r/100*window.innerWidth*this.value,this.res.children[1].style.height=n;var o=function(){t.res.children[0].style.width=r/100*window.innerWidth,t.res.children[0].style.height=n,t.res.children[1].style.width=r/100*window.innerWidth*t.value,t.res.children[1].style.height=n};return window.addEventListener("resize",o),o(),this}},{key:"colors",value:function(e,t){return this.res.children[0].style.background=e,this.res.children[1].style.background=t,this}},{key:"round",value:function(e){return this.res.children[0].style.borderRadius="".concat(e,"px"),this.res.children[1].style.borderRadius="".concat(e,"px"),this}},{key:"render",value:function(e){if(Array.from(this.res.children).forEach(function(e){return e.style.padding=0}),Array.from(this.res.children).forEach(function(e){return e.style.margin=0}),!e)return this.res;document.querySelector(e).appendChild(this.res)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},849:(e,t,r)=>{r.d(t,{I:()=>N}),r(9873);var n=r(5379),o=r(8597),i=(r(9793),r(6131)),a=r(9383),s=r(7108),l=r(3050),c=(r(8807),r(3440),r(5367),r(7879)),u=r(7258),d=r(3420),f=(r(827),r(1873),r(2789)),p=r(7926),h=r(153),y=(r(1980),r(6182)),m=r(3665),v=(r(3243),r(3014)),b=(r(9310),r(1632),r(5860),r(4550),r(9290),r(2387)),g=r(9521),w=r(1236),_=r(3180),x=r(1557),k=r(2689),O=r(4617),S=(r(1353),r(3257)),E=(r(5613),r(1371)),j=r(2588),P=r(9932),C=(r(6679),r(9668)),T=r(8424),A=r(2027),R=(r(7698),r(9800)),M=r(5632);function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach(function(t){W(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function W(e,t,r){return(t=z(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,z(n.key),n)}}function z(e){var t=function(e){if("object"!=D(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==D(t)?t:t+""}var q=["h1","h2","h3","h4","h5","h6","p","img","a","cards","free","nav","sideNav","row","dropdown","radio","input","labelInput","filePicker","picker","video","audio","multiswitcher","button","form","checkbox","stack","simple","copy","wrap","circle","polygon","code","table","ulist"],N=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"mapType",value:function(e){if(["h1","h2","h3","h4","h5","h6","p"].includes(e.el.type))return this.mapText(e);if("img"===e.el.type)return this.mapImage(e);if("a"===e.el.type)return this.mapLink(e);if("cards"===e.el.type)return this.mapGrid(e);if("free"===e.el.type)return this.mapFree(e);if("nav"===e.el.type)return this.protoNav(e);if("sideNav"===e.el.type)return this.sideNav(e);if("row"===e.el.type)return this.mapRow(e);if("dropdown"===e.el.type)return this.dropdown(e);if("radio"===e.el.type)return this.radio(e);if("input"===e.el.type)return this.input(e);if("labelInput"===e.el.type)return this.floatInput(e);if("filePicker"===e.el.type)return this.filePicker(e);if("picker"===e.el.type)return this.picker(e);if("video"===e.el.type)return this.video(e);if("audio"===e.el.type)return this.audio(e);if("multiswitcher"===e.el.type)return this.multiswitcher(e);if("button"===e.el.type)return this.button(e);if("form"===e.el.type)return this.form(e);if("checkbox"===e.el.type)return this.checkbox(e);if("stack"===e.el.type)return this.stack(e);if("simple"===e.el.type)return this.simple(e);if("copy"===e.el.type)return this.mapCopy(e);if("wrap"===e.el.type)return this.mapWrap(e);if("circle"===e.el.type)return this.mapCircle(e);if("polygon"===e.el.type)return this.mapPolygon(e);if("code"===e.el.type)return this.mapCode(e);if("table"===e.el.type)return this.mapTable(e);if("ulist"===e.el.type)return this.mapUList(e);throw new Error("[nodality] "+(0,o.au)(e.el.type,q,"element type"))}},{key:"mapTable",value:function(e){var t=e.el;return(new y.X).add([{abbr:"AUIUI/AK9PT",name:"Pokročilé mobilní technologie",grade:"A",date:"09.01.2024"},{abbr:"AUIUI/AK9PT",name:"Pokročilé mobilní technologie",grade:"A",date:"09.01.2024"},{abbr:"AUIUI/AK9PT",name:"Pokročilé mobilní technologie",grade:"A",date:"09.01.2024"}]).set({cellPadding:"0.3em",cellAlign:"center",style:{font:"Arial"},headStyle:{color:"white",background:"#ff6d22"},border:"2px solid black",center:!0,borderRadius:2.2,stroke:this.filtero("blast",t.id,e.customOptions),gradient:this.filtero("gradient",t.id,e.customOptions),animation:this.filtero("animation",t.id,e.customOptions),shadow:this.filtero("shadow",t.id,e.customOptions),span:this.filtero("span",t.id,e.customOptions),backgroundOp:this.filtero("background",t.id,e.customOptions),marginOp:this.filtero("margin",t.id,e.customOptions),transform:this.filtero("transform",t.id,e.customOptions),filtera:this.filtero("filter",t.id,e.customOptions),raster:this.filteroRaster(t.id,e.customOptions)})}},{key:"mapRow",value:function(e){var t=e.el;return(new l.Y).set({stroke:this.filtero("blast",t.id,e.customOptions),gradient:this.filtero("gradient",t.id,e.customOptions),animation:this.filtero("animation",t.id,e.customOptions),shadow:this.filtero("shadow",t.id,e.customOptions),span:this.filtero("span",t.id,e.customOptions),backgroundOp:this.filtero("background",t.id,e.customOptions),marginOp:this.filtero("margin",t.id,e.customOptions),transform:this.filtero("transform",t.id,e.customOptions),filtera:this.filtero("filter",t.id,e.customOptions),raster:this.filteroRaster(t.id,e.customOptions)}).items([new i.E("This").set({size:"S3"}),new i.E("is").set({size:"S3",text:"Hello"}),new i.E("row.").set({size:"S3",text:"Hello"})])}},{key:"mapCode",value:function(e){var t=e.el;return(new f.C).set({stroke:this.filtero("blast",t.id,e.customOptions),gradient:this.filtero("gradient",t.id,e.customOptions),animation:this.filtero("animation",t.id,e.customOptions),shadow:this.filtero("shadow",t.id,e.customOptions),span:this.filtero("span",t.id,e.customOptions),backgroundOp:this.filtero("background",t.id,e.customOptions),marginOp:this.filtero("margin",t.id,e.customOptions),transform:this.filtero("transform",t.id,e.customOptions),filtera:this.filtero("filter",t.id,e.customOptions),raster:this.filteroRaster(t.id,e.customOptions),pad:[{l:30}],mar:[{a:30}],class:"language-js",code:'new Text("Modality").set({ font: "Arial" })'})}},{key:"mapCopy",value:function(e){var t,r=e.customOptions,n=r.filter(function(e){return"copy"===e.op})[0],o=null!==(t=null==n?void 0:n.count)&&void 0!==t?t:3,i=(this.filteroRaster(e.el.id,r)||[]).filter(function(e){return e!==n}),a=300;return'new Wrapper()\n.set({\n width: "'.concat(a,'px",\n height: "').concat(a,'px",\n display: "flex",\n justifyContent: "center",\n alignItems: "center",\n position: "absolute",\n id: "#first",\n scale: 0.3,\n ').concat(null!=n&&n.animation?'\nanimation: {\n op: {\n name: "animation",\n color: "green",\n width: "1px",\n fireAt: "inview",\n keyframesOpen: [\n {\n transform: "rotate(360deg)",\n opacity: 0\n },\n {\n transform: "rotate(0deg)",\n opacity: 1\n }\n ],\n keyframesClose: [\n {\n transform: "rotate(0deg)",\n opacity: 1\n },\n {\n transform: "rotate(0deg)",\n opacity: 0\n }\n ],\n openOptions: {\n duration: 300,\n fill: "forwards",\n delay: 1000\n },\n closeOptions: {\n duration: 1,\n fill: "forwards",\n delay: 1000\n }\n },\n target: [\n "#first"\n ]\n },\n ':"").concat(i.length?",\n raster: ".concat(JSON.stringify(i)):"","\n})\n.add(\n Array.from({ length: ").concat(o,' }).map((_, i) => {\n\n const bbox = {width: "').concat(a,'px", height: "').concat(a,'px"};\n\n const elHeight = bbox.height;\n\n const cx = ').concat(150,";\n const cy = ").concat(150,";\n\n const R = ").concat(150,";\n\n const n = ").concat(o,';\n\n // Evenly spaced angles, starting at top (-90°)\n const angle = (i / n) * Math.PI * 2 - Math.PI/2;\n const dist = R + parseFloat(elHeight)/2;\n\n const x = cx + dist * Math.cos(angle);\n const y = cy + dist * Math.sin(angle);\n\n let rot = angle * 180 / Math.PI + 90;\n rot = (rot % 360 + 360) % 360;\n rot = (rot % 360 + 360) % 360;\n\n return new Text("Hello").set({\n size: "S1",\n color: "green",\n font: "Arial",\n left: `${x}px`,\n top: `${y}px`,\n transform: {\n op: {\n name: "transform",\n transform: {\n static: true,\n keep: true,\n values: [\n "tx:-50%",\n "ty:-50%",\n `rotate(${rot}deg)`\n ]\n }\n }\n }\n })\n\n \n })\n)')}},{key:"button",value:function(e){var t,r=e.el;return new T.$(null!==(t=r.text)&&void 0!==t?t:"Button").set(B(B({fluidc:"S6"},this.elOpts(r)),{},{raster:this.filteroRaster(r.id,e.customOptions)}))}},{key:"multiswitcher",value:function(e){var t=this,r=Array.isArray(e.el.breakpoints)?e.el.breakpoints:null;if(!r||!r.length)throw new Error('[nodality] a "multiswitcher" element needs a non-empty `breakpoints` array of { at, view }.');return(new w.i).set({id:e.el.id,area:e.el.area,breakpoints:r.map(function(r){return{at:r.at,view:r.view&&"function"==typeof r.view.render?r.view:t.mapType(B(B({},e),{},{el:r.view}))}})})}},{key:"video",value:function(e){var t=e.el;if(!t.url)throw new Error('[nodality] a "video" element needs a `url`.');return this.attachRaster(new k.C(t.url).set(this.elOpts(t)),t,e.customOptions)}},{key:"audio",value:function(e){var t=e.el;if(!t.url)throw new Error('[nodality] an "audio" element needs a `url`.');return this.attachRaster(new d.f(t.url),t,e.customOptions)}},{key:"radio",value:function(e){var t,r=e.el;return(new E.z).set(B({items:Array.isArray(r.items)?r.items:[],multiple:null!==(t=r.multiple)&&void 0!==t&&t},this.elOpts(r)))}},{key:"input",value:function(e){var t,r=e.el;return(new v.A).set(B(B({type:null!==(t=r.inputType)&&void 0!==t?t:"text"},this.elOpts(r)),{},{raster:this.filteroRaster(r.id,e.customOptions)}))}},{key:"floatInput",value:function(e){var t,r=e.el;return this.attachRaster((new S.l).set(B({type:null!==(t=r.inputType)&&void 0!==t?t:"input"},this.elOpts(r))),r,e.customOptions)}},{key:"filePicker",value:function(e){var t,r=e.el;return this.attachRaster((new P.I).set(B({title:null!==(t=r.title)&&void 0!==t?t:"Choose a file"},this.elOpts(r))),r,e.customOptions)}},{key:"picker",value:function(e){var t=e.el;return(new j.L).set(B(B({items:Array.isArray(t.items)?t.items:[],arrayPadding:{sides:["all"],value:"0.5rem"},rounded:!0},this.elOpts(t)),{},{raster:this.filteroRaster(t.id,e.customOptions)}))}},{key:"dropdown",value:function(e){e.el.items||(e.el.items=["Flower","Car","Maseratti"]);var t=e.el.items.map(function(e){return(new s.N).set({pad:[{a:10}],font:"Arial",bold:!0,link:"https://www.apple.com",text:e,icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"},hover:{color:"wheat",animation:.3}})}),r=(new m.m).set({behaviour:"click",pad:[{a:"1rem"}],mar:[{a:"1rem"}],border:"1px solid black",width:"180px",radius:"1rem"}).add([new i.E(e.el.items[0]).set({font:"Arial",fluidc:"S6",weight:"bold",align:"center",cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},pad:[{l:10,r:10}]}),(new h.m).set({border:"1px solid green",background:"#1abc9c",radius:"0.7rem",socenter:!0}).add(t.slice(1))]),n=this.filteroRaster(e.el.id,e.customOptions);return n&&r.rasterize(n),r}},{key:"protoNav",value:function(e){var t=e.customOptions,r=[{title:"Fire",link:"@e"},{title:"and",link:"@e"},{title:"smoke",link:"@e"}],n=r.map(function(e,t){return new s.N('"'.concat(e.title,'"')).set({fluidc:"S6",text:e.title,link:e.link,font:"Arial",pad:[{a:40}],bold:!0,hover:{color:"wheat",animation:.3}})}),o=r.map(function(e,t){return new s.N('"'.concat(e.title,'"')).set({fluidc:"S6",text:e.title,link:e.link,font:"Arial",pad:[{a:40}],bold:!0,hover:{color:"wheat",animation:.3},animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px",keyframesOpen:[{transform:"translate(100%, ".concat(10*t,"%)"),opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, ".concat(10*t,"%)"),opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}})});if(e.el.dropdown){var a=(new m.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black"}).add([new i.E("First").set({cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},fluidc:"S6",pad:[{l:20,r:10}],font:"Arial",align:"center",weight:"bold"}),(new h.m).set({centerColumn:!0,radius:"0.7rem",background:"#1abc9c",makeResponsiveBehaviour:"undefined"}).add([(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Second",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}}),(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Third",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}})])]);o.push(a),n.push(a)}e.el.animation;var l=(new w.i).set({breakpoints:[{at:"0px",view:(new g.m).set({background:"#ecf0f1",mar:[{a:21}],brand:new i.E("Company").set({size:"S6",font:"Helvetica"}),hamburgerColour:"#3498db",radius:"1rem"}).add([(new s.N).set({text:"About",url:"#a"}),(new m.m).set({behaviour:"mouseover",pad:[{a:40}],mar:[{lr:"auto"}],breakpoint:"1200px",padding:"10px",border:"1px solid black",height:"auto"}).add([new i.E("More").set({cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new i.E("Our story").set({cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new i.E("Team").set({cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"})]),new s.N("B").set({text:"About",url:"#b"}),new s.N("C").set({text:"Contact",url:"https://www.abcnews.com"})])},{at:"1200px",view:(new b.C).set({background:"#ecf0f1",mar:[{a:21}],maxHeight:"100px",radius:"1rem"}).add([new i.E("Company").set({size:"S6",font:"Helvetica"}),new _.h(!0),(new m.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black",radius:"30px",width:"130px"}).add([new i.E("More").set({cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),(new h.m).set({flexDir:"column",mar:[{t:"10px"}],radius:".3rem"}).add([new s.N("").set({text:"Who we are",url:"jk",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new s.N("").set({text:"Info",url:"#u",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new s.N("").set({text:"About",url:"#u",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"})])]),(new s.N).set({text:"About",url:"#a"}),(new s.N).set({text:"Services",url:"#a"}),(new s.N).set({text:"Contact",url:"#a"})])}]});return this.attachRaster(l,e.el,t)}},{key:"sideNav",value:function(e){e.customOptions;var t=[{title:"Home",link:"@e"},{title:"Projects",link:"@e"},{title:"Services",link:"@e"}],r=t.map(function(e,t){return new s.N('"'.concat(e.title,'"')).set({fluidc:"S4",text:e.title,link:e.link,isNavA:!0,url:"#e",id:"#"+e.title.toLowerCase(),font:"Arial",pad:[{a:20}],bold:!0,tags:{open:"sidebar:open",close:"sidebar:closed"},align:"left",hover:{color:"wheat",animation:.3}})}),n=(new m.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px",keyframesOpen:[{transform:"translate(100%, ".concat(10,"%)"),opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, ".concat(10,"%)"),opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}}).add([new i.E("More").set({cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),(new h.m).set({centerColumn:!0,radius:"0.7rem",background:"#1abc9c",makeResponsiveBehaviour:"undefined"}).add([(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Second",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}}),(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Third",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}})])]),o=t.map(function(e,t){return new s.N('"'.concat(e.title,'"')).set({fluidc:"S4",text:e.title,link:e.link,isNavA:!0,url:"#myURL",id:"#"+e.title.toLowerCase(),font:"Arial",pad:[{a:20}],bold:!0,tags:{open:"sidebar:open",close:"sidebar:closed"},align:"left",hover:{color:"wheat",animation:.3},animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px",keyframesOpen:[{transform:"translate(100%, ".concat(10*t,"%)"),opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, ".concat(10*t,"%)"),opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}})});e.el.dropdown&&(o.push(n),r.push(n));var a=(new h.m).set({column:!0}).add([new i.E("Sidebar").set({size:"S6",font:"Arial",id:"#olod",italic:!0,animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}},pad:[{l:20},{t:20}]}),e.el.animation?o[0]:r[0],e.el.animation?o[1]:r[1],e.el.animation?o[2]:r[2],e.el.animation&&e.el.dropdown?o[3]:new i.E("").set({}).excludeFromCode(),new i.E("Company, 2025").set({pad:[{a:20}],animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}}})]),l=(new h.m).set({column:!0}).add([new i.E("Off canvas").set({fluidc:"S6",font:"Arial",id:"#olod",italic:!0,animation:e.el.animation?{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}}:null,pad:[{l:40},{t:20}]})]),u=(new c.f).setup({animate:!0,radius:"1rem",isSide:!0,background:"#ecf0f1",hamColour:{opened:"#1abc9c",closed:"#e67e22"},mobileSize:"1.2em",fixed:!0,tags:{open:"sidebar:open",close:"sidebar:closed"}}).items(e.el.offcanvas?l:a),d=this.filteroRaster(e.el.id,e.customOptions);return d&&u.rasterize(d),u}},{key:"mapFree",value:function(e){var t=e.customOptions.filter(function(e){return"slayout"===e.op.name||"layout"===e.op.name})[0],r=null,n={cols:6,rows:6};"text-above-image"!==t.op.value&&"image-above-text"!==t.op.value||(r=null,n=null),"img-overlay-text"===t.op.value&&(r={text:{row:"1 / span 2",col:"3 / span 2"},image:{row:"2 / span 3",col:"3 / 3"}}),"img-leftof-text"===t.op.value&&(r={text:{row:"1",col:"1 / 3"},image:{row:"1",col:"3 / 4"}});var o=(new u.b).set({id:"#3",templateCols:n,height:"600px"}).add([new i.E("I am free").set({border:"3px solid green",font:"Arial",size:"S1",color:"#1abc9c",gpos:null!=r?r.text:null,zIndex:1}),(new a._).set({url:"https://upload.wikimedia.org/wikipedia/commons/a/ac/MSC_World_Europa_-_Saint-Nazaire_-_June_2022.jpg",width:"400px",height:"auto",gpos:null!=r?r.image:null})]),s=this.filteroRaster(e.el.id,e.customOptions);return s&&o.rasterize(s),o}},{key:"mapCircle",value:function(e){var t=e.el;return(new M.j).set({diameter:108,background:"#1abc9c",stroke:this.filtero("blast",t.id,e.customOptions),gradient:this.filtero("gradient",t.id,e.customOptions),animation:this.filtero("animation",t.id,e.customOptions),shadow:this.filtero("shadow",t.id,e.customOptions),span:this.filtero("span",t.id,e.customOptions),backgroundOp:this.filtero("background",t.id,e.customOptions),marginOp:this.filtero("margin",t.id,e.customOptions),transform:this.filtero("transform",t.id,e.customOptions),filtera:this.filtero("filter",t.id,e.customOptions),raster:this.filteroRaster(t.id,e.customOptions)})}},{key:"mapPolygon",value:function(e){var t,r=e.el,n=null!==(t=e.el.sides)&&void 0!==t?t:7;return new R.t({id:"hex"}).set({sides:n,size:300,background:"#1abc9c",gradient:this.filtero("gradient",r.id,e.customOptions),animation:this.filtero("animation",r.id,e.customOptions),shadow:this.filtero("shadow",r.id,e.customOptions),span:this.filtero("span",r.id,e.customOptions),backgroundOp:this.filtero("background",r.id,e.customOptions),marginOp:this.filtero("margin",r.id,e.customOptions),transform:this.filtero("transform",r.id,e.customOptions),filtera:this.filtero("filter",r.id,e.customOptions),raster:this.filteroRaster(r.id,e.customOptions)})}},{key:"mapText",value:function(e){var t,r,n=e.el;return new i.E(n.text||n.value).set({id:n.id,class:n.class,color:n.color,size:this.getElType(n.type),font:null!==(t=n.font)&&void 0!==t?t:"Arial",stroke:this.filtero("blast",n.id,e.customOptions),gradient:this.filtero("gradient",n.id,e.customOptions),animation:this.filtero("animation",n.id,e.customOptions),shadow:this.filtero("shadow",n.id,e.customOptions),span:this.filtero("span",n.id,e.customOptions),backgroundOp:this.filtero("background",n.id,e.customOptions),marginOp:this.filtero("margin",n.id,e.customOptions),transform:this.filtero("transform",n.id,e.customOptions),filtera:this.filtero("filter",n.id,e.customOptions),raster:this.filteroRaster(n.id,e.customOptions),resprop:null!==(r=n.resprop)&&void 0!==r?r:null})}},{key:"mapImage",value:function(e){var t=e.el;return new a._(t.url).set(B(B({},t),{},{isFull:t.isFull,animation:this.filtero("animation",t.id,e.customOptions),shadow:this.filtero("shadow",t.id,e.customOptions),marginOp:this.filtero("margin",t.id,e.customOptions),filtera:this.filtero("filter",t.id,e.customOptions),raster:this.filteroRaster(t.id,e.customOptions)}))}},{key:"mapLink",value:function(e){var t=e.customOptions.filter(function(e){return"link-style"===e.op.name}),r=e.el;return e.el.id&&(r.id=e.el.id),e.el.link&&e.el.text&&(r.url=e.el.link,r.text=e.el.text),r.animation=this.filtero("animation",e.el.id,e.customOptions),r.class=e.el.class,r.width=e.el.width,r.font="Arial",r.fluidc=e.el.fluidc,r.transform=this.filtero("transform",e.el.id,e.customOptions),r.shadow=this.filtero("shadow",e.el.id,e.customOptions),r.gradient=this.filtero("gradient",e.el.id,e.customOptions),r.blast=this.filtero("blast",e.el.id,e.customOptions),r.backgroundOp=this.filtero("background",e.el.id,e.customOptions),r.raster=this.filteroRaster(e.el.id,e.customOptions),r.pad=[{a:10}],t.length>0?A.a.style({el:e.el,re:r,bst:t,options:e.customOptions})[t.length-1]:(new s.N).set(r)}},{key:"mapGrid",value:function(e){var t=e.el,r=(e.customOptions.find(function(e){return"card-style"===e.op.name}),this.filtero("gradient",t.id,e.customOptions)),n=this.filtero("animation",t.id,e.customOptions),o=this.filtero("shadow",t.id,e.customOptions),i=this.filtero("margin",t.id,e.customOptions),a=this.filtero("filter",t.id,e.customOptions),s=this.filteroRaster(t.id,e.customOptions),l=this.filtero("blast",t.id,e.customOptions),c='\n new Card()\n .set({\n width: "300px", \n height: "700px",\n radius: "0.7rem", \n mar: { sides: ["all"], value: "0.8rem" }\n '.concat(void 0!==r?",\n gradient: ".concat(JSON.stringify(r)):"").concat(void 0!==n?",\n animation: ".concat(JSON.stringify(n)):"").concat(void 0!==o?",\n shadow: ".concat(JSON.stringify(o)):"").concat(void 0!==i?",\n marginOp: ".concat(JSON.stringify(i)):"").concat(void 0!==a?",\n filtera: ".concat(JSON.stringify(a)):"").concat(void 0!==l?",\n blast: ".concat(JSON.stringify(l)):"",'\n })\n .items([\n new Image(item.img).set({isFull: true, url: item.img}),\n // #f97316 rather than the CSS keyword orange (rgb 255,165,0), a legacy\n // value that reads yellow beside modern palettes. No backticks here:\n // this block lives inside a template literal and is evaluated as\n // source, so module scope is not visible either.\n new Text(item.title).set({ size: "S5", color: "#f97316" }),\n new Link("Link").set({\n text: item.title, \n url: item.link, \n background: "#3498db", \n pad: [{ lr: "0.5rem", tb: "1rem" }], \n radius: "0.4rem", \n color: "white",\n mar: [{"a": 21}]\n })\n ])'),u=e.el.backgroundCard?'\n new ZoomCard()\n .set({\n url: item.img, \n font: "Arial", \n mar: { sides: ["all"], value: "0.8rem" }, \n inpad: "1rem", \n useBrightness: true\n })\n .items([\n new Text(item.title).set({ fluidc: "S6", color: "#f97316" }),\n new Link("Link").set({\n text: item.title, \n url: item.link, \n background: "#3498db", \n pad: [{ lr: "0.5rem", tb: "1rem" }], \n radius: "0.4rem", \n color: "white"\n })\n ])':c;return' new FlexGrid()\n .set({\n colat: "700px",\n wrap: true,\n align: "center",\n gap: "1rem"\n '.concat(void 0!==r?",\n gradient: ".concat(JSON.stringify(r)):"").concat(void 0!==n?",\n animation: ".concat(JSON.stringify(n)):"").concat(void 0!==o?",\n shadow: ".concat(JSON.stringify(o)):"").concat(void 0!==i?",\n marginOp: ".concat(JSON.stringify(i)):"").concat(void 0!==a?",\n filtera: ".concat(JSON.stringify(a)):"").concat(void 0!==l?",\n blast: ".concat(JSON.stringify(l)):"").concat(void 0!==s?",\n raster: ".concat(JSON.stringify(s)):"",'\n })\n .items(\n [\n { img: "https://upload.wikimedia.org/wikipedia/commons/3/3a/Starship_S20.jpg", title: "Starship", link: "#ship" },\n { img: "https://upload.wikimedia.org/wikipedia/commons/1/16/Apollo_11_Launch_-_GPN-2000-000630.jpg", title: "Saturn V", link: "#saturn" },\n { img: "https://upload.wikimedia.org/wikipedia/commons/d/d6/STS120LaunchHiRes-edit1.jpg", title: "Shuttle", link: "#shuttle" }\n ].map(item => \n ').concat(u,"\n )\n )\n ")}},{key:"checkbox",value:function(e){var t=e.el,r="string"==typeof t.label?new i.E(t.label).set({size:"S6"}):t.label;return this.attachRaster((new x.S).set(B(B({},this.elOpts(t,["label"])),void 0!==r?{label:r}:{})),t,e.customOptions)}},{key:"stack",value:function(e){var t=this,r=e.el,n=(new p.B).set(this.elOpts(r)),o=Array.isArray(r.children)?r.children:null;return o&&n.add(o.map(function(r){return t.mapType(B(B({},e),{},{el:r}))})),this.attachRaster(n,r,e.customOptions)}},{key:"form",value:function(e){var t,r=this,n=e.el,o=(new C.l).set(B(B({action:null!==(t=n.action)&&void 0!==t?t:""},void 0!==n.method?{method:n.method}:{}),void 0!==n.id?{id:n.id}:{})),i=Array.isArray(n.children)?n.children:null;return i&&o.add(i.map(function(t){return r.mapType(B(B({},e),{},{el:t}))})),o}},{key:"simple",value:function(e){var t,r,n=this,o=e.el,i=Array.isArray(o.react)?o.react:[];if(!i.length)throw new Error('[nodality] a "simple" element needs a non-empty `react` array of { at, template }.');var a=(Array.isArray(o.children)?o.children:[]).map(function(t){var r=n.mapType(B(B({},e),{},{el:t})).toCode();return Array.isArray(r)?r.join(""):String(r)}).join(",\n ");return"new AreaSwitcher()\n .set(".concat(JSON.stringify(B({gap:null!==(t=o.gap)&&void 0!==t?t:"10px",height:null!==(r=o.height)&&void 0!==r?r:"700px"},void 0!==o.id?{id:o.id}:{})),")\n .react(").concat(JSON.stringify(i,null,2),")\n .add([\n ").concat(a,"\n ])")}},{key:"mapWrap",value:function(e){var t,r,n=this,o=e.el,i=null!==(t=e.el.kind)&&void 0!==t?t:"",a=new h.m(i).set(B(B({},o),{},{font:null!==(r=o.font)&&void 0!==r?r:"Arial",stroke:this.filtero("blast",o.id,e.customOptions),gradient:this.filtero("gradient",o.id,e.customOptions),animation:this.filtero("animation",o.id,e.customOptions),shadow:this.filtero("shadow",o.id,e.customOptions),transform:this.filtero("transform",o.id,e.customOptions),filtera:this.filtero("filter",o.id,e.customOptions),raster:this.filteroRaster(o.id,e.customOptions)})),s=Array.isArray(o.children)?o.children:null;return s&&a.add(s.map(function(t){return n.mapType(B(B({},e),{},{el:t}))})),a}},{key:"mapUList",value:function(e){var t,r,n=this,o=e.el,a=null!==(t=e.el.kind)&&void 0!==t?t:"",s=new O.e(a).set(B(B({},o),{},{font:null!==(r=o.font)&&void 0!==r?r:"Arial",stroke:this.filtero("blast",o.id,e.customOptions),gradient:this.filtero("gradient",o.id,e.customOptions),animation:this.filtero("animation",o.id,e.customOptions),shadow:this.filtero("shadow",o.id,e.customOptions),transform:this.filtero("transform",o.id,e.customOptions),filtera:this.filtero("filter",o.id,e.customOptions),raster:this.filteroRaster(o.id,e.customOptions)})),l=Array.isArray(o.items)?o.items:null;return l&&s.setItems(l.map(function(t){return"string"==typeof t?new i.E(t).set({}):n.mapType(B(B({},e),{},{el:t}))})),s}},{key:"getElType",value:function(e){return"p"===e?"S6":"S".concat(e.substr(1))}},{key:"filtero",value:function(e,t,r){return r.filter(function(t){return t.op.name===e}).filter(function(e){return!e.target||e.target.includes(t)})[0]}},{key:"elOpts",value:function(e){for(var t=new Set(["type","children","items","breakpoints","inputType","text","url"].concat(function(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]))),r={},n=0,o=Object.keys(e);n<o.length;n++){var i=o[n];t.has(i)||(r[i]=e[i])}return r}},{key:"attachRaster",value:function(e,t,r){var n=this.filteroRaster(t.id,r);return n&&e&&"function"==typeof e.rasterize&&e.rasterize(n),e}},{key:"filteroRaster",value:function(e,t){var r=(t||[]).filter(function(t){return t&&"string"==typeof t.op&&n.ls.includes(t.op)&&(!t.target||e&&t.target.includes(e))});return r.length>0?r:void 0}}],null&&F(e.prototype,null),t&&F(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},1236:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}r.d(t,{i:()=>f});var f=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)).breakpoints=[],e.container=null,e.currentView=null,e.internalDiv=null,e.resizeListener=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,o=[{key:"set",value:function(e){var t=e.breakpoints,r=e.id,n=e.area;if(this.options={breakpoints:t},this._id=r,this._area=n,!Array.isArray(t))throw new Error("Breakpoints should be an array of objects with 'at' and 'view' properties.");return this.breakpoints=t.map(function(e){if("string"!=typeof e.at||!(e.view.render()instanceof HTMLElement))throw new Error("Each breakpoint must have 'at' as a string and 'view' as an HTMLElement.");return i(i({},e),{},{at:parseInt(e.at,10)})}),this.breakpoints.sort(function(e,t){return e.at-t.at}),this}},{key:"toCode",value:function(){JSON.stringify(this.options.breakpoints.map(function(e){return e.view.toCode()}).flat(),null,4),JSON.stringify(this.options.breakpoints.map(function(e){return e.at}),null,4),JSON.stringify(this.options.breakpoints,null,4);for(var e="",t=0;t<this.options.breakpoints.length;t++)e+='{ at: "'.concat(this.options.breakpoints[t].at,'", view: ').concat(this.options.breakpoints[t].view.toCode()," }, \n");return["new Switcher().set({\n breakpoints: [\n ".concat(e,"\n ]\n })")]}},{key:"render",value:function(e){return this.internalDiv=document.createElement("div"),this.res=this.internalDiv,this._id&&this.internalDiv.setAttribute("id",this._id),this._area&&(this.internalDiv.style.gridArea=this._area),this.applyView(),this.resizeListener=this.applyView.bind(this),window.addEventListener("resize",this.resizeListener),void 0!==e&&document.querySelector(e).appendChild(this.internalDiv),this.internalDiv}},{key:"createRanges",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:99999,r=[],n=0;n<e.length;n++)r.push({from:e[n],to:n<e.length-1?e[n+1]-1:t});return r}},{key:"addRanges",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:99999;return e.map(function(e,n){var o=t[n],a=n<t.length-1?t[n+1]-1:r;return i(i({},e),{},{range:{from:o,to:a}})})}},{key:"applyView",value:function(){var e=this,t=(window.innerWidth,this.breakpoints.map(function(e){return e.at})),r=this.breakpoints.map(function(e){return e.at});this.createRanges(r),this.addRanges(this.breakpoints,t).forEach(function(t){var r="(min-width: ".concat(t.range.from,"px) and (max-width: ").concat(t.range.to,"px)");window.matchMedia(r).matches&&e.currentView!==t.view.render()&&(e.internalDiv.innerHTML="",e.internalDiv.appendChild(t.view.render()),e.currentView=t.view.render())})}},{key:"destroy",value:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),this.internalDiv&&this.container&&this.container.removeChild(this.internalDiv),this.container=null,this.currentView=null,this.internalDiv=null}}],o&&s(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(9873).y)},1353:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(8424);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}var s=function(){return e=function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=document.createElement("div"),this.container.style.width="100%",this.container.style.margin="20px auto",this.container.style.textAlign="center",this.elements=t,this.currentSlideIndex=0,this.buttons=r,this.tintColor=o.tintColor||"green",this.inactiveColor=o.inactiveColor||"gray",this.options=o,!this.buttons){var i={leftButton:new n.$("L").set({frame:{width:50,height:50},svg:this.createArrowSVG("left",28,this.tintColor),color:this.tintColor,radius:"100%",mar:[{a:"1rem"}]}),rightButton:new n.$("R").set({frame:{width:50,height:50},svg:this.createArrowSVG("right",28,this.tintColor),color:this.tintColor,radius:"100%",mar:[{a:"1rem"}]})};this.buttons=i}this.createSlider(),this.init()},t=[{key:"createArrowSVG",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"left",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:28,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"currentColor",n="http://www.w3.org/2000/svg",o=document.createElementNS(n,"svg");o.setAttribute("viewBox","0 0 24 24"),o.setAttribute("width",String(t)),o.setAttribute("height",String(t)),o.setAttribute("aria-hidden","true"),o.style.display="block",o.style.pointerEvents="none";var i=document.createElementNS(n,"path");return i.setAttribute("fill",r),"left"===e?i.setAttribute("d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"):i.setAttribute("d","M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"),o.appendChild(i),o}},{key:"toCode",value:function(){var e="new Slider([".concat(this.elements.map(function(e){return e.toCode()}),"], null)");return[e=e.replace(/,\s*\./g,".")]}},{key:"createSlider",value:function(){var e,t=this;this.slider=document.createElement("div"),this.slider.style.width="100%",this.slider.style.height=null!==(e=this.options.height)&&void 0!==e?e:"400px",this.slider.style.borderRadius="20px",this.slider.style.overflow="hidden",this.slider.style.position="relative",this.slider.style.marginBottom="15px";var r=document.createElement("div");this.slidesWrapper=r,r.style.display="flex",r.style.overflowX="scroll",r.style.scrollBehavior="smooth",r.style.scrollSnapType="x mandatory",this.elements.forEach(function(e,n){var o=document.createElement("div");o.setAttribute("class","slide"),o.style.display="flex",o.style.justifyContent="center",o.style.alignItems="center",o.style.flexShrink="0",o.style.width="100%",o.style.height="400px",o.style.transformOrigin="center center",o.style.transform="scale(1)",o.style.scrollSnapAlign="center";var i=e.render();o.appendChild(i),i.style.cursor="pointer",i.addEventListener("click",function(){t.showLightbox(n)}),r.appendChild(o)}),this.arrowPrev=this.buttons.leftButton.render(),this.arrowPrev.style.position="absolute",this.arrowPrev.style.left="10px",this.arrowPrev.style.top="50%",this.arrowPrev.style.transform="translateY(-50%)",this.arrowPrev.style.zIndex="1",this.arrowPrev.style.display="flex",this.arrowPrev.style.alignItems="center",this.arrowPrev.style.justifyContent="center",this.arrowPrev.style.backgroundColor="white",this.arrowPrev.style.padding=".4rem",this.arrowNext=this.buttons.rightButton.render(),this.arrowNext.style.position="absolute",this.arrowNext.style.right="10px",this.arrowNext.style.top="50%",this.arrowNext.style.transform="translateY(-50%)",this.arrowNext.style.zIndex="1",this.arrowNext.style.display="flex",this.arrowNext.style.alignItems="center",this.arrowNext.style.justifyContent="center",this.arrowNext.style.backgroundColor="white",this.arrowNext.style.padding=".4rem";var n=document.createElement("div");n.style.position="absolute",n.style.bottom="10%",n.style.left="50%",n.style.transform="translateX(-50%)",n.style.textAlign="center",n.style.background="#ffffff",n.style.borderRadius="1rem",n.style.padding=".2rem",n.style.boxShadow="3px 3px 10px #000",this.options.hideSelector&&(n.style.display="none"),this.elements.forEach(function(e,r){var o=document.createElement("a");o.style.display="inline-block",o.style.height="15px",o.style.width="15px",o.style.borderRadius="50%",o.style.backgroundColor=t.inactiveColor,o.style.margin="0 10px",o.style.cursor="pointer",o.dataset.index=r,n.appendChild(o)});var o=document.createElement("div");o.style.display="flex",o.style.justifyContent="flex-start",o.style.margin="1rem",o.style.gap="10px",o.style.flexWrap="nowrap",o.style.overflowX="auto",this.options.hideThumbnails&&(o.style.display="none"),r.querySelectorAll(".slide").forEach(function(e,r){var n=document.createElement("div");n.className="slider-thumb",n.dataset.index=r.toString(),n.style.width="60px",n.style.height="40px",n.style.border="2px solid ".concat(t.inactiveColor),n.style.borderRadius="5px",n.style.overflow="hidden",n.style.cursor="pointer",n.style.flexShrink="0",n.style.position="relative";var i=(e.firstElementChild||e.cloneNode(!0)).cloneNode(!0);i.style.transform="scale(0.2)",i.style.transformOrigin="top left",i.style.width="300px",i.style.height="300px",i.style.backgroundSize="contain",i.style.pointerEvents="none",n.appendChild(i),o.appendChild(n)}),this.slider.appendChild(this.arrowPrev),this.slider.appendChild(this.arrowNext),this.slider.appendChild(r),this.slider.appendChild(n),this.container.appendChild(this.slider),this.container.appendChild(o),this.slidesWrapper=r,this.navLinks=Array.from(n.querySelectorAll("a")),this.thumbs=Array.from(o.querySelectorAll(".slider-thumb"))}},{key:"init",value:function(){this.updateActiveSlide(),this.attachEventListeners()}},{key:"attachEventListeners",value:function(){var e=this;this.arrowPrev.addEventListener("click",function(){e.moveToSlide(e.currentSlideIndex-1<0?e.elements.length-1:e.currentSlideIndex-1)}),this.arrowNext.addEventListener("click",function(){e.moveToSlide((e.currentSlideIndex+1)%e.elements.length)}),this.navLinks.forEach(function(t){t.addEventListener("click",function(r){r.preventDefault();var n=parseInt(t.dataset.index,10);e.moveToSlide(n)})}),this.thumbs.forEach(function(t){t.addEventListener("click",function(){var r=parseInt(t.dataset.index,10);e.moveToSlide(r)})}),document.addEventListener("keydown",function(t){"ArrowLeft"===t.key?e.moveToSlide(e.currentSlideIndex-1<0?e.elements.length-1:e.currentSlideIndex-1):"ArrowRight"===t.key&&e.moveToSlide((e.currentSlideIndex+1)%e.elements.length)})}},{key:"moveToSlide",value:function(e){this.currentSlideIndex=e,this.updateActiveSlide()}},{key:"updateActiveSlide",value:function(){var e=this;this.navLinks.forEach(function(t){var r=parseInt(t.dataset.index,10);t.style.backgroundColor=r===e.currentSlideIndex?e.tintColor:e.inactiveColor}),this.thumbs.forEach(function(t){var r=parseInt(t.dataset.index,10);t.style.borderColor=r===e.currentSlideIndex?e.tintColor:e.inactiveColor});var t=this.slidesWrapper.querySelector(".slide"),r=t?t.offsetWidth:this.slidesWrapper.clientWidth;this.slidesWrapper.scrollTo({left:this.currentSlideIndex*r,behavior:"smooth"})}},{key:"showLightbox",value:function(e){var t=this,r=e,n=document.createElement("div");n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.width="100vw",n.style.height="100vh",n.style.backgroundColor="rgba(0,0,0,0.9)",n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.zIndex="9999",n.style.cursor="default";var o=document.createElement("div");o.style.position="relative",o.style.display="flex",o.style.alignItems="center",o.style.justifyContent="center",o.style.maxWidth="90%",o.style.maxHeight="90%",n.appendChild(o);var i=function(e){o.innerHTML="";var r,n=t.elements[e].render();if(r="IMG"===n.tagName?n:n.querySelector("img")){var i=document.createElement("img");i.src=r.src,i.style.maxWidth="90vw",i.style.maxHeight="90vh",i.style.objectFit="contain",i.style.pointerEvents="none",i.style.display="block",o.appendChild(i)}else{var a=n.cloneNode(!0);a.style.width="90vw",a.style.height="90vh",a.style.maxWidth="90vw",a.style.maxHeight="90vh",a.style.pointerEvents="none",o.appendChild(a)}};i(r);var a=this.buttons.leftButton.render().cloneNode(!0),s=this.buttons.rightButton.render().cloneNode(!0),l={position:"absolute",top:"50%",transform:"translateY(-50%)",background:"white",border:"none",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",width:"50px",height:"50px",margin:"1rem",padding:"0",zIndex:"10000",cursor:"pointer",boxShadow:"0 2px 8px rgba(0,0,0,0.4)"};Object.assign(a.style,l,{left:"10px"}),Object.assign(s.style,l,{right:"10px"}),a.addEventListener("click",function(e){e.stopPropagation(),r=r-1<0?t.elements.length-1:r-1,i(r)}),s.addEventListener("click",function(e){e.stopPropagation(),r=(r+1)%t.elements.length,i(r)}),n.appendChild(a),n.appendChild(s);var c=document.createElement("div");c.innerHTML="✕",c.style.position="absolute",c.style.top="15px",c.style.right="20px",c.style.fontSize="2rem",c.style.color="white",c.style.cursor="pointer",c.style.zIndex="10000",c.style.userSelect="none",c.style.transition="transform 0.2s ease",c.addEventListener("mouseenter",function(){c.style.transform="scale(1.2)"}),c.addEventListener("mouseleave",function(){c.style.transform="scale(1)"}),c.addEventListener("click",function(e){e.stopPropagation(),document.body.removeChild(n),document.removeEventListener("keydown",u)}),n.appendChild(c),n.addEventListener("click",function(){document.body.removeChild(n),document.removeEventListener("keydown",u)});var u=function(e){"Escape"===e.key?(document.body.removeChild(n),document.removeEventListener("keydown",u)):"ArrowLeft"===e.key?(r=r-1<0?t.elements.length-1:r-1,i(r)):"ArrowRight"===e.key&&(r=(r+1)%t.elements.length,i(r))};document.addEventListener("keydown",u),document.body.appendChild(n)}},{key:"render",value:function(e){if(!e)return this.container;document.querySelector(e).appendChild(this.container)}}],t&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},1371:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{z:()=>a}),r(9873);var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=null,this.radioCount=0},t=[{key:"set",value:function(e){this.options=e,this.radioCount=e.items.length;for(var t=document.createElement("div"),r=e.items,n=0;n<r.length;n++){var o=document.createElement("label");r.font&&(o.style.font=r.font),r.color&&(o.style.color=r.color),r.exact&&(o.style.fontSize=r.exact);var i=document.createTextNode(r[n]);o.appendChild(i),o.setAttribute("for",r[n]);var a=document.createElement("input");a.setAttribute("type","radio"),a.setAttribute("id","S".concat(n)),a.setAttribute("value",r[n].split(" ").join("")),a.style.appearance="none",a.style.width="20px",a.style.height="20px",a.style.border=this.options.tint?"2px solid ".concat(this.options.tint):"2px solid #007BFF",a.style.borderRadius="50%",a.style.outline="none",a.style.cursor="pointer",a.style.transition="0.3s",this.options.font&&(o.style.fontFamily=this.options.font),e.multiple?a.setAttribute("name",r[n].split(" ").join("")):a.setAttribute("name",e.name),t.appendChild(a),t.appendChild(o),t.innerHTML+="</br>"}return this.el=t,this.responsive(),this}},{key:"padding",value:function(e){return this.el.style.padding=e,this}},{key:"getCheckedValues",value:function(){for(var e=[],t=0;t<this.radioCount;t++)if(document.querySelector("#S".concat(t)).checked){var r=document.querySelector("#S".concat(t));e.push(r.value)}return e}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new RadioGroup().set(".concat(e,")")]}},{key:"responsive",value:function(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.el.style.fontSize="1.7em"),this}},{key:"render",value:function(e){var t=this;if(!e){for(var r=function(){var e=t.el.children[n];"[object HTMLInputElement]"===e.toString()&&e.addEventListener("change",function(){if(e.checked){e.style.backgroundColor=t.options.tint?t.options.tint:"#007BFF",e.style.boxShadow=t.options.tint?"0 0 0 2px ".concat(t.options.tint," inset"):"0 0 0 2px #0056b3 inset";for(var r=0;r<t.el.children.length;r++){var n=t.el.children[r];"INPUT"===n.tagName&&"radio"===n.type&&!1===t.options.multiple&&n!==e&&(n.style.backgroundColor="transparent",n.style.boxShadow="none")}}else e.style.backgroundColor="transparent",e.style.boxShadow="none"})},n=0;n<this.el.children.length;n++)r();return this.el}document.querySelector(e).appendChild(this.el)}}],t&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();"undefined"!=typeof window&&(window.RadioGroup=a)},1382:(e,t,r)=>{r.d(t,{_H:()=>o,sy:()=>i});var n='"([A-Za-z_$][A-Za-z0-9_$]*)"\\s*:';function o(){return new RegExp(n,"g")}function i(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;return"string"!=typeof(t=JSON.stringify(e,null,r))?t:t.replace(o(),"$1:")}},1557:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{S:()=>u});var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t)).res=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,(a=[{key:"set",value:function(e){var t,r;this.options=e;var n=document.createElement("div");n.style.display="flex",n.style.alignItems="center";var o=document.createElement("input");o.type="checkbox",o.style.position="relative",o.style.marginRight="0.5rem";var i=e.size||"24px";o.style.width=i,o.style.height=i,e.customStyle&&(o.style.appearance="none"),o.style.border="2px solid #ccc",o.style.borderRadius="4px",o.style.backgroundColor=e.backgroundColor||"white",o.style.cursor="pointer",o.style.transition="background-color 0.2s ease, border-color 0.2s ease",o.style.display="inline-block",o.style.setProperty("--checked-bg-color",e.checkedBackgroundColor||"#4CAF50"),o.style.setProperty("--checkmark-color","white"),o.style.setProperty("--checkmark-clip-path",null!==(t=this.options.clipPath)&&void 0!==t?t:"polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%)");var a=document.createElement("style");a.textContent='\n input[type="checkbox"] {\n appearance: none;\n -webkit-appearance: none; /* For Safari */\n width: var(--size, 24px);\n height: var(--size, 24px);\n border: 2px solid #ccc;\n border-radius: 4px;\n background-color: white;\n position: relative;\n cursor: pointer;\n transition: background-color 0.2s ease, border-color 0.2s ease;\n }\n\n input[type="checkbox"]:checked {\n background-color: var(--checked-bg-color, #4CAF50);\n border-color: var(--checked-bg-color, #4CAF50);\n }\n\n input[type="checkbox"]::after {\n content: \'\';\n position: absolute;\n width: 50%;\n height: 50%;\n top: 25%;\n left: 25%;\n transform: scale(0);\n background-color: var(--checkmark-color, white);\n clip-path: var(--checkmark-clip-path);\n -webkit-clip-path: var(--checkmark-clip-path);\n transition: transform 0.2s ease;\n }\n\n input[type="checkbox"]:checked::after {\n transform: scale(1);\n }\n',e.customStyle&&document.head.appendChild(a),e.mar&&this.mar(e.mar),e.pad&&this.pad(e.pad),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),o.addEventListener("change",function(){o.checked?(o.style.backgroundColor=e.checkedBackgroundColor||"#4CAF50",o.style.borderColor=e.checkedBackgroundColor||"#4CAF50"):(o.style.backgroundColor=e.backgroundColor||"white",o.style.borderColor="#ccc")}),e.name&&o.setAttribute("name",e.name),n.appendChild(o);var s=document.createElement("div");if("function"==typeof(null===(r=e.label)||void 0===r?void 0:r.render))s.appendChild(e.label.render());else{var l=document.createTextNode(e.title||"Label");s.appendChild(l)}return s.style.opacity=.8,s.style.transition="opacity ease 0.2s, transform ease 0.2s",n.appendChild(s),this.res=n,this}},{key:"getValue",value:function(){return this.res.children[0].checked}},{key:"toCode",value:function(){var e=Object.entries(this.options).map(function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=t[0],i=t[1];return"string"==typeof i?"".concat(r,': "').concat(i,'"'):"object"===n(i)&&null!==i?"function"==typeof i.toCode?"".concat(r,": ").concat(i.toCode()[0]):"".concat(r,": ").concat(JSON.stringify(i,null,4)):"".concat(r,": ").concat(i)}).join(",\n ");return["new Checkbox().set({\n ".concat(e,"\n})")]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&i(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(r(9873).y);"undefined"!=typeof window&&(window.Checkbox=u)},1632:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{B:()=>c});var c=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t))._noTheme=!0,r.code=[],r.setup();for(var o=0;o<e.length;o++)r.res.appendChild(e[o].render().render());return r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"setup",value:function(){var e=document.createElement("div");e.style.padding=0,e.style.margin=0,this.res=e}},{key:"width",value:function(e,t){return this.res.style.width=e,t&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),this}},{key:"padding",value:function(e){return this.res.style.padding="".concat(e,"px"),this}},{key:"size",value:function(e,t){return this.w=e,this.h=t,this.w?this.res.style.width=this.w:this.res.style.width=window.innerWidth,this.h?this.res.style.height=this.h:this.res.style.height=window.innerHeight,this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},1873:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{o:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).setup(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"setup",value:function(){var e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.justifyContent="center",e.style.alignItems="center",e.style.width="100%",e.style.height="auto",e.style.margin=0,e.style.padding=0,this.res=e}},{key:"set",value:function(e){return void 0!==e.id&&null!==e.id&&this.res.setAttribute("id",e.id),this.commonMethods(e),this}},{key:"toCode",value:function(){return[""]}},{key:"items",value:function(e){for(var t=0;t<e.length;t++){var r=e[t].render();this.res.appendChild(r)}return this}},{key:"add",value:function(e){for(var t=0;t<e.length;t++){var r=e[t].render();this.res.appendChild(r)}return this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},1980:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{W:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t))._noTheme=!0,e.res=document.createElement("meta"),e.res.setAttribute("name","viewport"),e.res.setAttribute("content","width=device-width, initial-scale=1"),e.charset=document.createElement("meta"),e.charset.setAttribute("charset","UTF-8"),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"add",value:function(){document.head.appendChild(this.res),document.head.appendChild(this.charset)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},2027:(e,t,r)=>{r.d(t,{a:()=>s});var n=r(7108);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"style",value:function(e){for(var t=e.bst,r=e.el,o=e.re,i=(e.options,[]),a=0;a<t.length;a++)t[a].target&&(r.id,t[a].target[0]);for(a=0;a<t.length;a++){var s=!0;t[a].target&&(s=!1,r.id===t[a].target[0]&&(s=!0));var l=t[a].op.ops.split("-");s&&l.includes("air")&&(o.borderObj={color:"#1abc9c",radius:"0rem",width:"3px"},o.color="#1abc9c",o.background="transparent"),s&&l.includes("round")&&(l.includes("air")?o.borderObj={width:"4px",radius:"0.7rem",color:"#1abc9c"}:o.borderObj={width:"0px",radius:"0.7rem",color:"#1abc9c"}),s&&l.includes("full")&&(o.background="#3498db",o.borderObj&&o.borderObj.radius&&(o.borderObj.radius="0.3rem"),o.color="white"),s&&l.includes("pill")&&(o.background="#3498db",o.borderObj.radius="9999px",o.color="white"),s&&l.includes("hover")&&(o.hover={color:"#1abc9c",background:"orange"}),i.push((new n.N).set(o))}return i}}],null&&i(e.prototype,null),t&&i(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},2234:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{H:()=>Des});var _lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(849),_lib_morph_node_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5594),_lib_webmcp_adapter_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9110),_layout_animator_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(9873),_layout_base_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9793),_layout_text_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6131),_layout_image_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9383),_layout_link_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(7108),_layout_flex_row_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(3050),_layout_nav_factor_custom_div_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8807),_layout_new_nav_bar_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3440),_layout_side_bar_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5367),_layout_side_nav_bar_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(7879),_layout_free_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7258),_layout_audio_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3420),_layout_progress_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(827),_layout_center_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1873),_layout_code_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(2789),_layout_stack_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(7926),_layout_container_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(153),_layout_meta_adder_js__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(1980),_layout_table_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(6182),_layout_dropdown_2025_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(3665),_layout_modal_2025_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(3243),_layout_text_field_js__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(3014),_layout_flex_card_js__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(9310),_layout_wrap_js__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(1632),_layout_flex_grid_js__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__(5860),_layout_zoom_card_js__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__(4550),_layout_simple_bar_js__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__(9290),_layout_beta_desktop_bar_js__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__(2387),_layout_beta_mobile_bar_js__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__(9521),_layout_multiswitcher_js__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__(1236),_layout_spacer_js__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__(3180),_layout_horizontal_scroller_js__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__(7135),_layout_checkbox_js__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__(1557),_layout_video_js__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__(2689),_layout_ulist_js__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__(4617),_layout_slider_2025_js__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__(1353),_layout_form_components_floating_input_js__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__(3257),_layout_form_components_range_js__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__(5613),_layout_form_components_radio_js__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__(1371),_layout_form_components_picker_js__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__(2588),_layout_form_components_image_picker_js__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__(9932),_layout_form_components_data_list_js__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__(6679),_layout_form_components_form_js__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__(9668),_layout_button_js__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__(8424),_lib_link_getter_js__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__(2027),_lib_card_getter_js__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__(4753),_layout_grid_switcher_js__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__(7698),_layout_polygon_js__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__(9800),_layout_circle_js__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__(5632);function _construct(e,t,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&_setPrototypeOf(o,r.prototype),o}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Des=function(){function Des(){_classCallCheck(this,Des),this.items=[],this.options=[],this.code=[],this.ready2Render=[],this.stor={text:{miami:{code:'new Text("Hello").set({fluidc: "S3", color: "orange"})'},base:{code:'new Text("Hello").set({fluidc: "S3", color: "orange"})'},nepal:{code:'new Text("Hello").set({fluidc: "S3", color: "#2ECC71", font: "Helvetica Neue"})'},patagonia:{code:'new Text("Hello").set({fluidc: "S3", color: "#3498DB", font: "DIN Alternate"})'}},complexa:{code:"new Wrapper()\n .set({...}) // Rest of the code omitted for brevity"},complex:{code:'new Wrapper() \n\t.set({\n\t\t\n\t\tresponsive: {\n\t\t\tranges: ["700px", "1200px", "1400px"],\n\t\t\tsequence: "col-row-col"\n\t\t}\n\t})\n\t.add([\n\t\tnew Image("img/wix.jpeg").set({\n\t\t\twidth: "100%",\n\t\t\theight: "200px",\n objectFit: "cover"\n\t\t}),\n\n new Wrapper().set({\n responsive: {\n\t\t\tranges: ["700px", "1200px", "1400px"],\n\t\t\tsequence: "col-col-row"\n\t\t}\n }).add([\n new Text("Running in the desert").set({\n size: "S3",\n font: "Arial",\n color: "orange"\n }),\n\n new Text("This is example content").set({\n exact: "1rem",\n font: "Arial"\n }),\n\n\n new Image("img/wix.jpeg").set({\n width: "100%",\n height: "300px",\n objectFit: "cover"\n })\n ])\n\t])'},ops:{miami:{blast:{code:'stroke: {range:["0px","3000px"], op:{name:"blast",color:"orange",width:"3px"}}'},blastFun:function(e){return'stroke: {range:["0px","3000px"], op:{name:"blast",color:"orange",width:"'.concat(e,'px"}}')}},nepal:{blast:{code:'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#2ECC71",width:"3px"}}'},blastFun:function(e){return'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#2ECC71",width:"'.concat(e,'px"}}')}},patagonia:{blast:{code:'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#1abc9c",width:"3px"}}'},blastFun:function(e){return'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#1abc9c",width:"'.concat(e,'px"}}')}}},link:{miami:{code:'new Link("Link").set({text: "Hello", url: "#a", background: "", color: "orange", hover: {color: "white", background: "orange", animation: 0.6}, borderObj: {color: "orange", width: "3px", radius: "0.7rem"}, pad: { sides: ["all"], value: "0.6rem" }, mar: { "t": 0.8rem }, radius: "0.4rem"})'},base:{code:'new Link("Link").set({text: "Hello", url: "#ai", background: "#3498db", pad: [{lr: "0.5rem", tb: "1rem"}], radius: "0.4rem", color: "white"})'},nepal:{code:'new Link("Link").set({text: "Hello", url: "#a", background: "#2ECC71", pad: { sides: ["all"], value: "0.6rem" }, mar: { sides: ["top", "bottom"], value: "0.8rem" }, hover: {color: "#2ECC71", background: "white", border: true, animation: 0.3}, color: "white"})'},patagonia:{code:'new Link("Link", "#a").set({text: "Hello", url: "#a", background: "#1ABC9C", pad: { sides: ["all"], value: "0.6rem" }, mar: { sides: ["top", "bottom"], value: "0.8rem" }, hover: {color: "#2ECC71", background: "white", border: true, animation: 0.3}, color: "white"})'}},grid:{code:' new AreaSwitcher()\n .set({\n gap: "1rem"\n })\n .react([{\n at: "0px",\n template: [\n "eeeeee",\n "eeeeee",\n "abbbbb",\n "abbbbb",\n "abbbbb",\n "cccccc",\n "cccccc",\n "dddddd"\n ]\n },\n\n {\n at: "900px",\n color: "orange",\n template: [\n "aaaccc",\n "aaaccc",\n "bbbbbb",\n "dddddd",\n "eeeeee"\n ]\n },\n\n {\n at: "1200px",\n color: "purple",\n template: [\n "cccaaa",\n "cccaaa",\n "bbbbbb",\n "dddddd",\n "eeeeee"\n ]\n },\n ])\n .add([\n new Wrapper().set({\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem"\n }).add([\n new Text("NEW PRODUCT").set({\n exact: "1rem",\n font: "Oswald",\n width: "100%"\n }),\n new Text("Feel").set({\n fluidc: "S2",\n font: "Oswald",\n width: "100%",\n color: "black"\n }),\n new Text("Speed").set({\n exact: "7rem",\n font: "Oswald",\n width: "100%",\n color: "#3498db"\n }),\n ]),\n\n new Wrapper().set({\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem"\n }).add([\n new Text("TOP QUALITY").set({\n exact: "1rem",\n font: "Oswald",\n width: "100%"\n }),\n new Text("Amazing animals").set({\n fluidc: "S2",\n font: "Oswald",\n width: "100%",\n color: "black"\n }),\n\n new Text("Seals are intelligent, agile marine mammals found in oceans around the world, known for their streamlined bodies, flippers, and ability to thrive both in water and on land. Belonging to the pinniped family, they are divided into true seals, which lack external ears, and eared seals like sea lions, which are more mobile on land. Seals feed primarily on fish and squid, using their sensitive whiskers to detect prey underwater, and can dive to great depths while holding their breath for extended periods. Adapted to cold environments with thick blubber for insulation, seals play a crucial role in marine ecosystems but face threats from climate change, pollution, and human activity, making conservation efforts increasingly important.")\n .set({\n font: "Arial",\n exact: "1.3rem"\n })\n\n ]),\n\n new Wrapper().set({\n radius: "1.7rem",\n overflow: "hidden"\n\n }).add([\n\n new Image("https://cdn.pixabay.com/photo/2017/02/09/18/40/seal-2053165_640.jpg", "exact").set({\n width: "100%",\n height: "420px",\n minHeight: "100px",\n objectFit: "cover"\n\n })\n ]),\n\n new Wrapper().set({\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem",\n }).add([\n new Text("Welcome seals").set({\n fluidc: "S3",\n font: "Oswald",\n color: "black"\n }),\n \n ]),\n new Wrapper().set({\n mc: true,\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem",\n\n }).add([new Text("Top line").set({\n font: "Arial",\n exact: "1.3rem"\n }), ]),\n ])'},flexRow:function(e){return{image:{code:'new FlexRow().set({border: ["all", "3px"], colat: "600px"}).items([new Image(...), new Image(...), new Image(...)])'},text:{code:'new FlexRow().set({}).items([\n\nnew Text("This").set({\n size: "S3"\n}), \n\nnew Text("is").set({\n size: "S3",\n text: "Hello"\n}), \n\nnew Text("row.").set({\n size: "S3",\n text: "Hello"\n})\n \n])'}}},tabSpace:function(e){return" ".repeat(e)}}}return _createClass(Des,[{key:"at",value:function(e){Array.isArray(this.options)||(this.options=[]),Array.isArray(this.protoOptions)||(this.protoOptions=[]);var t=Des.cloneNodes([e])[0];return this.options.push(t),this.protoOptions.push(t),this}},{key:"nodes",value:function(e){return this.options=Des.cloneNodes(e),this.protoOptions=Des.cloneNodes(e),this}},{key:"getElType",value:function(e){return"p"===e?"S6":"S".concat(e.substr(1))}},{key:"filtero",value:function(e,t,r){return r.filter(function(t){return t.op.name===e}).filter(function(e){return!e.target||e.target.includes(t)})[0]}},{key:"add",value:function add(arr){var _this=this;this._elements=Array.isArray(arr)?arr:[],this.css=[],this.elCSS=[],this.elHTML=[];var customOptions=this.options;customOptions.forEach(function(e){"radial"===e.direction&&(e.gradient="radial-gradient(orange, green)")}),arr=[].concat(_toConsumableArray(arr.filter(function(e){return e&&("nav"===e.type||"sideNav"===e.type)})),_toConsumableArray(arr.filter(function(e){return!e||"nav"!==e.type&&"sideNav"!==e.type})));for(var _loop=function _loop(){var el=arr[i],ela=null,ops=["blast","gradient","shadow","filter","animation","transform","span"],replacementObjects=[{op:{name:"blast",color:"green",width:"1px"}},{op:{name:"gradient",gradient:"linear-gradient(orange, green)"}},{op:{name:"shadow",color:"#1abc9c",steps:3,colors:["orange","green","yellow"]}},{op:{name:"filter",filter:"grayscale(0.7)"}},{op:{name:"animation",color:"green",width:"1px",fireAt:"inview",keyframesOpen:[{transform:"translate(100%, 0%)",opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, 0%)",opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}},{op:{name:"transform",values:["ty:-20px","scale(3)","rotate(3deg)","skew(3deg, 0deg)","perspective(100px)","matrix(1, 0, 0, 1, 50, 50)"]}},{op:{name:"span",parts:[{text:"The first time",style:{italic:!0,arrpad:{sides:["left"],value:"3rem"},stroke:{range:["950px","1000px"],op:{name:"blast",background:["header","button"],color:"yellow",width:"1px"}}}},{text:"We went to the Moon",style:{}}]}}];for(q=0;q<ops.length;q++){var blastIDs=customOptions.map(function(e){return e.op}).map(function(e,t){return e===ops[q]?t:""}).filter(String);if(blastIDs.length>0)for(d=0;d<blastIDs.length;d++){var index=blastIDs[d],target=customOptions[index].target,range=customOptions[index].range,filter=customOptions[index].filter,gradient=customOptions[index].gradient,color=customOptions[index].color,width=customOptions[index].width,as=Des.cloneNodes([replacementObjects[q]])[0];as.target=target,null!=range&&(as.range=range),null!=filter&&(as.op.filter=filter),null!=gradient&&(as.op.gradient=gradient),"blast"===ops[q]&&(null!=color&&(as.op.color=color),null!=width&&(as.op.width=width)),customOptions[index]=as}}for(q=0;q<customOptions.length;q++){var option=customOptions[q].op.name,cool=_this.protoOptions[q].style||"default",duration=_this.protoOptions[q].duration||"default";if("transform"===option){var opts=[],_customOptions$q,_customOptions$q2,_customOptions$q3;opts="SOLARIUM"===cool?["scale(3)"]:"WAVE"===cool?["skew(15deg, 0deg)","tx:50px","rotate(10deg)","scale(1.1)"]:"CUBE-SPIN"===cool?["perspective(700px)","scale(0.9)"]:"TORNADO-SWITCH"===cool?["rotate(720deg)","scale(0.8)","tx:30px","ty:-50px","tz:-80px"]:"LASER-SWEEP"===cool?["tx:100px","opacity:0.2","scale(1.2, 1.0)"]:"TORNADO-TWIST"===cool?["rotate(720deg)","scale(0.8)","tx:30px","ty:-50px","skew(10deg, 0deg)"]:"JELLY-WOBBLE"===cool?["scale(1.2, 0.8)","rotate(5deg)","ty:-10px","skew(5deg, 0deg)"]:"DRUNKEN-SWAY"===cool?["rotate(15deg)","tx:20px","ty:-10px","skew(10deg, 5deg)"]:"FLAME-FLICKER"===cool?["scale(1.1, 0.9)","rotate(-5deg)","ty:5px","opacity:0.7"]:"PHANTOM-SHIFT"===cool?["tx:15px","ty:-5px","opacity:0.5","skew(5deg, 5deg)"]:"RUBBER-BOUNCE"===cool?["scale(1.3, 0.8)","skew(10deg, 0deg)","ty:-20px"]:"ASTEROID-CRASH"===cool?["tx:-80px","ty:100px","rotate(45deg)","scale(0.7)","opacity:0.5"]:"CYBER-GLITCH"===cool?["tx:5px","ty:-5px","rotate(3deg)","opacity:0.6","scale(1.05)"]:"BUBBLE-POP"===cool?["scale(1.5)","opacity:0.3","ty:-20px"]:"SUPERNOVA-BURST"===cool?["scale(2)","opacity:0","tx:50px","ty:-50px"]:"GRAVITY-DROP"===cool?["ty:100px","scale(0.8)","rotate(10deg)","skew(0deg, 10deg)"]:"LASER-SWEEP"===cool?["tx:100px","opacity:0.2","scale(1.2, 1.0)"]:"VORTEX-SINK"===cool?["rotate(-360deg)","scale(0.5)","ty:50px"]:"SHOCKWAVE"===cool?["scale(1.7)","opacity:0.4","skew(5deg, 5deg)"]:["ty:20px","tx:30px","rotate(3deg)","skew(40deg, 0deg)"],customOptions[q].op={name:"transform",values:opts,duration};var key="style",dur="duration";if(null!==(_customOptions$q=customOptions[q])&&void 0!==_customOptions$q&&_customOptions$q.op&&key in customOptions[q].op&&delete customOptions[q].op[key],null!==(_customOptions$q2=customOptions[q])&&void 0!==_customOptions$q2&&_customOptions$q2.op&&dur in customOptions[q].op&&delete customOptions[q].op[dur],null!==(_customOptions$q3=customOptions[q])&&void 0!==_customOptions$q3&&_customOptions$q3.op.values){var _customOptions$q4,values="values";null!==(_customOptions$q4=customOptions[q])&&void 0!==_customOptions$q4&&_customOptions$q4.op.values}}}function replaceMedium(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];if("object"===_typeof(e[n])&&null!==e[n])replaceMedium(e[n]);else if("string"==typeof e[n])switch(e[n].toLowerCase()){case"medium":e[n]="6s-ease-in-out";break;case"fast":e[n]="3s-ease-in-out";break;case"slow":e[n]="9s-ease-in-out";break;case"default":delete e[n]}}}replaceMedium(customOptions);var matchEls=["h1","h2","h3","h4","h5","h6","p"].includes(el.type)||"img"===el.type||"a"===el.type;matchEls?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i}),ela.toCode?_this.code.push(ela.toCode().join("")):_this.code.push(ela),_this.ready2Render.push(ela),ela=ela.render()):"table"===el.type?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela.toCode())):"slider"===el.type?_this.code.push(' \nlet texts = [\n\nnew Text("One").set({size: "S1", color: "#1abc9c", font: "Arial"}),\n /*new Image().set({\n url: "https://image.datart.cz/foto/500/7/0/8/product_7766807.jpg",\n width: "400px",\n height: "auto"\n }),*/\n\n new Text("Two").set({size: "S1", color: "#1abc9c", font: "Arial"}),\n \n new Text("Three").set({size: "S1", color: "#1abc9c", font: "Arial"}),\n\n new Text("Four").set({size: "S1", color: "#1abc9c", font: "Arial"}),\n];\n\nnew Slider(texts, null, { tintColor: "#e74c3c", inactiveColor: "#ccc" })\n \n'):"hslider"===el.type?_this.code.push('\n new HScroller()\n .seto({\n height: "300px",\n speed: 1.0 // the bigger the slower\n })\n .add([\n new Text("First").set({size: "S1", pad: [{"a": 40}] }),\n new Text("Second").set({size: "S1", pad: [{"a": 40}] }),\n new Text("Third").set({size: "S1", pad: [{"a": 40}] })\n ])\n '):"grid"===el.type?_this.code.push(_this.stor.grid.code):"modal"===el.type?_this.code.push('new Code()\n .set({\n pad: [\n { l: 30 },\n ], \n mar: [\n { a: 30 },\n ], \n class: "language-js",\n code: `\n // You need to copy and paste this example\n\n\n import {Animator} from "../layout/animator.js";\n import {Text} from "../layout/text.js";\n import {Modal} from "../layout/modal-2025.js";\n import {Stack} from "../layout/stack.js";\n import {Image} from "../layout/image.js";\n import {FlexRow} from "../layout/flex-row.js";\n import {Button} from "../layout/button.js";\n import {Spacer} from "../layout/spacer.js";\n import {Wrapper} from "../layout/container.js";\n \n \n let firstLong = "Apple today announced that the company has surpassed a 60 percent reduction in its global greenhouse gas emissions compared to 2015 levels, as part of its Apple 2030 goal to become carbon neutral across its entire footprint in the next five years. The company achieved several other major environmental milestones, including the use of 99 percent recycled rare earth elements in all magnets and 99 percent recycled cobalt in all Apple-designed batteries.1 Apple shared this and other progress in its annual Environmental Progress Report, published today.\n “We’re incredibly proud of the progress we’re making toward Apple 2030, which touches every part of our business,” said Lisa Jackson, Apple’s vice president of Environment, Policy, and Social Initiatives. “Today, we’re using more clean energy and recycled materials to make our products than ever before, we’re preserving water and preventing waste around the world, and we’re investing big in nature. As we get closer to 2030, the work gets even harder — and we’re meeting the challenge with innovation, collaboration, and urgency.\n Apple’s 2030 strategy prioritizes cutting greenhouse gas emissions by 75 percent compared with its 2015 baseline year, before applying high-quality carbon credits to balance the remaining emissions. Last year, Apple’s comprehensive efforts to reduce its carbon footprint — including the continued transition of its supply chain to renewable electricity and designing products with more recycled materials — avoided an estimated 41 million metric tons of greenhouse gas emissions.";\n \n let elements = [\n new Stack()\n .setup({})\n .add([\n new Image("https://pbs.twimg.com/media/DwYvbCBVAAEKY_R.jpg").set({}),\n \n new FlexRow().set({aligns: "start"}).items([\n \n new Button("×")\n \n .set({\n fluidc: "S3",\n onTap: () => modal.close(),\n frame: { width: 80, height: 80 },\n color: "white",\n background: "none"\n }),\n \n new Spacer(true),\n ])\n ]),\n \n \n new Text("Samuel Suresh")\n .set({\n color: "#00ae56",\n font: "SF Pro Display",\n fluidc: "S2",\n pad: [{"tl": 20}]\n }),\n \n \n new Text("Studying Science and Business, Western Sydney University, class of 2022")\n .set({\n font: "Arial",\n fluidc: "S6",\n pad: [{"l": 20}]\n }),\n \n \n new Text(firstLong)\n .set({\n font: "Arial",\n fluidc: "S6",\n pad: [{"l": 20}]\n }), \n ];\n \n \n let wrapper = new Wrapper()\n .set({})\n .add(elements);\n \n \n let modal = new Modal();\n modal\n .set({\n width: "600px", \n background: "#469d73cc",\n close: true\n })\n .add([wrapper])\n .render("#res"); \n \n \n new Button("Wow")\n .set({\n fluidc: "S3",\n onTap: () => modal.show()\n })\n .render("#res");\n \n `\n })'):"row"===el.type?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela.toCode())):"cards"===el.type?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela)):"wrap"===el.type?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela.toCode()),_this.ready2Render.push(ela)):"responsive"===el.type?_this.code.push(_this.stor.complex.code):"free"===el.type||"nav"===el.type||"sideNav"===el.type||"dropdown"===el.type?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela.toCode()),_this.ready2Render.push(ela),ela=ela.render()):(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),ela.toCode?_this.code.push(ela.toCode()):_this.code.push(ela),_this.ready2Render.push(ela),ela=eval(ela).render())},q,d,q,i=0;i<arr.length;i++)_loop();return this}},{key:"toTextArea",value:function(e){var t=e||"#mount",r=document.createElement("textarea");r.style.width=300,r.style.height=300,r.setAttribute("id","elements"),r.value=this.code.join(""),this.target="#elements";var n=document.createElement("pre"),o=document.createElement("code"),i=this.code.map(function(e){return"".concat(e,'.render("').concat(t,'"); \n \n')});return this.code=i,o.textContent=this.code,n.appendChild(o),n.setAttribute("class","nonLayout"),document.body.appendChild(n),document.body.appendChild(r),this._codeEl=r,this._preEl=n,this}},{key:"set",value:function(e){if("undefined"!=typeof globalThis&&!0===globalThis.NODALITY_EMIT){var t=this.code.map(function(t){return"".concat(t,'.render("').concat(e&&e.mount||"#mount",'")')});return globalThis.__NODALITY_EMITTED__=t,this}this.toTextArea(e&&e.mount),this._codeEl.style.display="none",this._preEl.style.display="block",!1===e.elements&&(this._preEl.style.display="none"),!1===e.layout&&null!=document.querySelector("#layoutPre")&&(document.querySelector("#layoutPre").style.display="none"),!1===e.code&&(this._preEl.style.display="none");for(var r={Text:_layout_text_js__WEBPACK_IMPORTED_MODULE_5__.E,Image:_layout_image_js__WEBPACK_IMPORTED_MODULE_6__._,Link:_layout_link_js__WEBPACK_IMPORTED_MODULE_7__.N,FlexRow:_layout_flex_row_js__WEBPACK_IMPORTED_MODULE_8__.Y,UINavBar:_layout_new_nav_bar_js__WEBPACK_IMPORTED_MODULE_10__.X,Free:_layout_free_js__WEBPACK_IMPORTED_MODULE_13__.b,Audio:_layout_audio_js__WEBPACK_IMPORTED_MODULE_14__.f,Progress:_layout_progress_js__WEBPACK_IMPORTED_MODULE_15__.k,Center:_layout_center_js__WEBPACK_IMPORTED_MODULE_16__.o,Code:_layout_code_js__WEBPACK_IMPORTED_MODULE_17__.C,Stack:_layout_stack_js__WEBPACK_IMPORTED_MODULE_18__.B,Wrapper:_layout_container_js__WEBPACK_IMPORTED_MODULE_19__.m,MetaAdder:_layout_meta_adder_js__WEBPACK_IMPORTED_MODULE_20__.W,Table:_layout_table_js__WEBPACK_IMPORTED_MODULE_21__.X,Dropdown:_layout_dropdown_2025_js__WEBPACK_IMPORTED_MODULE_22__.m,Modal:_layout_modal_2025_js__WEBPACK_IMPORTED_MODULE_23__.a,TextField:_layout_text_field_js__WEBPACK_IMPORTED_MODULE_24__.A,Card:_layout_flex_card_js__WEBPACK_IMPORTED_MODULE_25__.Z,Wrap:_layout_wrap_js__WEBPACK_IMPORTED_MODULE_26__.B,FlexGrid:_layout_flex_grid_js__WEBPACK_IMPORTED_MODULE_27__.M,ZoomCard:_layout_zoom_card_js__WEBPACK_IMPORTED_MODULE_28__.U,Switcher:_layout_multiswitcher_js__WEBPACK_IMPORTED_MODULE_32__.i,MobileBar:_layout_beta_mobile_bar_js__WEBPACK_IMPORTED_MODULE_31__.m,DesktopBar:_layout_beta_desktop_bar_js__WEBPACK_IMPORTED_MODULE_30__.C,SideNav:_layout_side_nav_bar_js__WEBPACK_IMPORTED_MODULE_12__.f,Spacer:_layout_spacer_js__WEBPACK_IMPORTED_MODULE_33__.h,HScroller:_layout_horizontal_scroller_js__WEBPACK_IMPORTED_MODULE_34__.J,Polygon:_layout_polygon_js__WEBPACK_IMPORTED_MODULE_50__.t,Circle:_layout_circle_js__WEBPACK_IMPORTED_MODULE_51__.j,UList:_layout_ulist_js__WEBPACK_IMPORTED_MODULE_37__.e},n={FloatingInput:_layout_form_components_floating_input_js__WEBPACK_IMPORTED_MODULE_39__.l,Range:_layout_form_components_range_js__WEBPACK_IMPORTED_MODULE_40__.Q,RadioGroup:_layout_form_components_radio_js__WEBPACK_IMPORTED_MODULE_41__.z,Picker:_layout_form_components_picker_js__WEBPACK_IMPORTED_MODULE_42__.L,FilePickera:_layout_form_components_image_picker_js__WEBPACK_IMPORTED_MODULE_43__.I,DataList:_layout_form_components_data_list_js__WEBPACK_IMPORTED_MODULE_44__.T,Base:_layout_base_js__WEBPACK_IMPORTED_MODULE_4__.C,Form:_layout_form_components_form_js__WEBPACK_IMPORTED_MODULE_45__.l,Button:_layout_button_js__WEBPACK_IMPORTED_MODULE_46__.$,Slider:_layout_slider_2025_js__WEBPACK_IMPORTED_MODULE_38__.A,Video:_layout_video_js__WEBPACK_IMPORTED_MODULE_36__.C,Checkbox:_layout_checkbox_js__WEBPACK_IMPORTED_MODULE_35__.S},o={ElementMapper:_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I,Animator:_layout_animator_js__WEBPACK_IMPORTED_MODULE_3__.y,LinkStyler:_lib_link_getter_js__WEBPACK_IMPORTED_MODULE_47__.a,CardGen:_lib_card_getter_js__WEBPACK_IMPORTED_MODULE_48__.Z,AreaSwitcher:_layout_grid_switcher_js__WEBPACK_IMPORTED_MODULE_49__.t},i=_objectSpread(_objectSpread(_objectSpread({},r),n),o),a=0;a<this.code.length;a++){var s=this.code[a];_construct(Function,_toConsumableArray(Object.keys(i)).concat([s])).apply(void 0,_toConsumableArray(Object.values(i)))}try{var l=document.querySelector(e&&e.mount||"#mount");this._morphs=(0,_lib_morph_node_js__WEBPACK_IMPORTED_MODULE_1__.A)(l,this._elements,this.protoOptions)}catch(e){console.warn("[nodality] morph node skipped:",e)}try{this._agentSurface=(0,_lib_webmcp_adapter_js__WEBPACK_IMPORTED_MODULE_2__.Ko)({mount:document.querySelector(e&&e.mount||"#mount"),elements:this._elements,nodes:this.protoOptions,morphs:this._morphs})}catch(e){console.warn("[nodality] agent surface skipped:",e)}}}],[{key:"cloneNodes",value:function(e){if(!Array.isArray(e))return[];try{if("function"==typeof structuredClone)return structuredClone(e)}catch(e){}var t=function(e){if(Array.isArray(e))return e.map(t);if(e&&"object"===_typeof(e)){var r={};for(var n in e)r[n]=t(e[n]);return r}return e};return e.map(t)}}])}()},2387:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{C:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).navbar=document.createElement("nav"),e.navbar.classList.add("desktop-navbar"),e.navbarHeader=document.createElement("div"),e.navbarHeader.classList.add("navbar-header"),e.brand=document.createElement("div"),e.brand.classList.add("navbar-brand"),e.navContent=document.createElement("div"),e.navContent.classList.add("navbar-content"),e.navContent.style.width="100%",e.navContent.style.alignItems="center",e.navbarHeader.appendChild(e.brand),e.navbarHeader.appendChild(e.navContent),e.navbar.appendChild(e.navbarHeader),e.res=e.navbar,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,i=[{key:"set",value:function(e){return this.obj=e,this.setStyles(e),e.background&&(this.res.style.backgroundColor=e.background),e.brand&&this.setBrand(e.brand),e.radius&&(this.res.style.borderRadius=e.radius),e.pad&&this.pad(e.pad),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.mar&&this.mar(e.mar),e.maxHeight&&(this.res.style.maxHeight=e.maxHeight),e.hamburgerColour&&(this.hamburgerColour=e.hamburgerColour),this}},{key:"setStyles",value:function(){var e;this.navbar.style.display="flex",this.navbar.style.flexDirection="column",this.navbar.style.padding="1rem",this.navbar.style.backgroundColor=null!==(e=this.obj.background)&&void 0!==e?e:"#333",this.navbarHeader.style.display="flex",this.navbarHeader.style.alignItems="center",this.navbarHeader.style.justifyContent="space-between",this.navbarHeader.style.width="100%",this.brand.style.fontSize="1.5rem",this.navContent.style.display="flex",this.navContent.style.gap="1rem"}},{key:"setBrand",value:function(e){return this.brand.innerHTML="",this.brand.appendChild(e),this}},{key:"add",value:function(e){this.items=e;for(var t=0;t<e.length;t++)e[t],this.navContent.appendChild(e[t].render());return this}},{key:"toCode",value:function(){var e=this.items.map(function(e){return e.toCode()}).flatMap(function(e){return e});return"new DesktopBar().set(".concat(this.removeQuotesFromFirstWord(JSON.stringify(this.obj)),").add([\n ").concat(e.join(","),"\n\n \n \n\n ])")}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.navbar),this.navbar}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},2588:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{L:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).el=null,e.file=null,e.selected="",e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,i=[{key:"setup",value:function(e,t){document.createElement("div");var r=document.createElement("select");r.setAttribute("type","file"),r.setAttribute("name",t),r.addEventListener("change",function(){r.options[r.selectedIndex].value});for(var n=0;n<e.length;n++)r.appendChild(this.addNode(e[n][0],e[n][1]));return this.el=r,this.res=r,this}},{key:"set",value:function(e){return this.options=e,e.items&&this.setup(e.items,e.name),e.arrayPadding&&this.arrayPadding(e.arrayPadding.sides,e.arrayPadding.value),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.radius&&(this.el.style.borderRadius=e.radius),e.background&&(this.el.style.background=e.background),this.commonMethods(e),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.el.style.paddingLeft=t),e.includes("right")&&(this.el.style.paddingRight=t),e.includes("top")&&(this.el.style.paddingTop=t),e.includes("bottom")&&(this.el.style.paddingBottom=t),e.includes("all")&&(this.el.style.padding=t),this}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.el.style.marginLeft=t),e.includes("right")&&(this.el.style.marginRight=t),e.includes("top")&&(this.el.style.marginTop=t),e.includes("bottom")&&(this.el.style.marginBottom=t),e.includes("all")&&(this.el.style.margin=t),this}},{key:"addNode",value:function(e,t){var r=document.createElement("option");r.setAttribute("value",e);var n=document.createTextNode(t);return r.appendChild(n),r}},{key:"padding",value:function(e){return this.el.style.padding=e,this}},{key:"font",value:function(e){return this.el.style.fontFamily=e,this}},{key:"margin",value:function(e){return this.el.style.margin=e,this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new Picker().set(".concat(e,")")]}},{key:"rounded",value:function(e){return this.el.style.borderRadius="4px",this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.el.style.fontSize="3rem":e.el.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"render",value:function(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y);"undefined"!=typeof window&&(window.Picker=c)},2689:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{C:()=>c});var c=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).url=e,r.res=null,r.setup(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"setup",value:function(){this.res=document.createElement("video"),this.res.setAttribute("src",this.url),this.res.setAttribute("controls","controls")}},{key:"set",value:function(e){return this.options=e,e.radius&&(this.res.style.borderRadius=e.radius),e.width&&(this.res.style.width="".concat(e.width)),e.opacity&&(this.res.style.opacity=e.opacity),this}},{key:"size",value:function(e){return this.res.style.width=e,this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return['new Video("'.concat(this.url,'").set(').concat(e,")")]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},2789:(e,t,r)=>{r.d(t,{C:()=>f});var n=r(9873),o=r(1382);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(null,arguments)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var f=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)).res=document.createElement("code"),e.pre=document.createElement("pre"),e.res.style.background="#18232e",e.res.style.display="block",e.res.style.width="auto",e.res.style.height="auto",e.res.style.borderRadius="1rem",e.pre.appendChild(e.res),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,n=[{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"toCode",value:function(){var e=this.options;Object.keys(e).forEach(function(t){return void 0===e[t]&&delete e[t]});var t=JSON.stringify(e,null,2).replace((0,o._H)(),"$1:").replace(/"([^"]+)"/g,function(e,t){return t.includes("\n")||t.includes("'")||t.includes('"')?"`"+t.replace(/`/g,"\\`")+"`":'"'.concat(t,'"')});return"new Code().set(".concat(t,")")}},{key:"callReact",value:function(e){this.options=e;var r,n,o,a=[],s=e.transform&&"object"===i(e.transform);if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||s){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&(r=t,n=this,"function"==typeof(o=c(u(1&3?r.prototype:r),"setAny",n))?function(e){return o.apply(n,e)}:o)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var l=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,s?e.transform:void 0];l=l.filter(function(e){return null!=e});for(var d=0;d<l.length;d++)a.push({range:l[d].range,log:l[d].op.name,target:l[d].target,op:l[d].op});var f=[];e.borderObj&&f.push("border"),e.background&&f.push("background"),e.mar&&f.push("margin"),e.animation&&f.push("animation"),e.span&&f.push("span"),this.chainReact(a,e.id,f)}}},{key:"set",value:function(e){return e.code&&(this.pre.children[0].innerHTML=e.code),e.class&&this.pre.children[0].setAttribute("class","".concat(e.class)),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.resprop&&this.resprop(e.resprop),e.width&&(this.res.style.width=e.width),e.background&&(this.res.style.background=e.background),e.color&&(this.res.style.color=e.color),e.borderRadius&&(this.res.style.background=e.borderRadius),e.borderObj&&(this.res.style.border="".concat(e.borderObj.width," solid ").concat(e.borderObj.color),this.res.style.borderRadius="".concat(e.borderObj.radius)),this.callReact(e),this}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.pre),this.res}}],n&&a(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},3014:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{A:()=>c});var c=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).text=e,r.res=null,r.valid=!1,r.setup(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,i=[{key:"setup",value:function(){var e=document.createElement("input");return this.res=e,this.res.style.padding=0,this.res.style.margin=0,this.res.style.padding=".4rem .75rem",this.res.style.fontSize="1rem",window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="100%"),this}},{key:"set",value:function(e){var t;return this.options=e,this.res.setAttribute("type",null!==(t=e.type)&&void 0!==t?t:"text"),e.placeholder&&(this.res.placeholder=e.placeholder),e.name&&this.res.setAttribute("name",e.name),e.id&&this.res.setAttribute("id",e.id),e.required&&this.res.setAttribute("required",""),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.maxWidth&&(this.res.style.maxWidth=e.maxWidth),e.exact&&(this.res.style.fontSize=e.exact),e.radius&&this.round(e.radius),e.color&&(this.res.style.color=e.color),e.background&&(this.res.style.background=e.background),e.font&&(this.res.style.fontFamily=e.font),e.weight&&(this.res.style.fontWeight=e.weight),e.bold&&(this.res.style.fontWeight="bold"),e.theme&&this.theme(e.theme),this.commonMethods(e),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return["new TextField().set(".concat(e,")")]}},{key:"setValid",value:function(e,t){return this.res.style.border=e?"6px solid green":"6px solid red",0===t.length&&(this.res.style.border="none"),this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="3rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"value",value:function(e){return this.res.setAttribute("value",e),this}},{key:"password",value:function(){return this.res.setAttribute("type","password"),this}},{key:"number",value:function(){return this.res.setAttribute("type","number"),this}},{key:"process",value:function(e){return this.res.value}},{key:"size",value:function(e){return this.res.style.fontSize=e,this}},{key:"em",value:function(e){return this.res.style.fontSize="".concat(e,"em"),this}},{key:"weight",value:function(e){return this.res.style.fontWeight=e,this}},{key:"bold",value:function(){return this.res.style.fontWeight="bold",this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"placeholder",value:function(e){return this.res.setAttribute("placeholder",e),this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"onChange",value:function(e){var t=this;return this.res.value,this.res.addEventListener("input",function(r){e(t.res.value)}),this}},{key:"render",value:function(e){return e?(document.querySelector(e).appendChild(this.res),this.res):this.res}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},3050:(e,t,r)=>{r.d(t,{Y:()=>h});var n=r(9873),o=r(1382);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},d.apply(null,arguments)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var h=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=f(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}(this,t)).code=[],n.saveEl=r,n.frs=e,n.res=null,n.setup(),n.responsive(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,n=[{key:"getType",value:function(){return"FlexRowLayoutElement"}},{key:"set",value:function(e){this.options=e;var t=e;return t.onTap&&this.onTap(t.onTap),t.id&&this.res.setAttribute("id",t.id),t.position&&(this.res.style.position=t.position),void 0!==t.top&&(this.res.style.top=t.top),e.id&&this.res.setAttribute("id",e.id),this.commonMethods(t),e.padding&&this.pad([{a:e.padding}]),e.background&&(this.res.style.backgroundColor="#ecf0f1",this.res.style.cornerRadius="#3rem"),e.alignTo&&(this.res.style.justifyContent=e.alignTo),e.background&&(this.res.style.backgroundColor=e.background),e.justify&&(this.res.style.justifyContent=e.justify),e.border&&("top"===e.border[0]&&(this.res.style.borderTop="".concat(e.border[1]," solid white")),"all"===e.border[0]&&(this.res.style.border="".concat(e.border[1]," solid orange"))),e.borderObj&&(this.borderObj(e.borderObj),JSON.stringify(e.borderObj)),e.width&&(this.res.style.width=e.width),e.height&&(this.res.style.height=e.height),e.gap&&(this.res.style.gap=e.gap),e.align&&(JSON.stringify(e.align),this.res.style.alignItems="flex-start",this.res.style.alignItems="flex-start"),e.wrap&&this.wrap(),e.alignIts&&(JSON.stringify(e.alignIts),this.res.style.alignItems="flex-start"),e.owrap&&this.onlyWrap(),null!=e.owrap&&!1===e.owrap&&(this.res.style.flexWrap="nowrap",this.res.style.background="yellow"),e.toColumn&&this.deprecatedOption("toColumn","colat"),e.column&&this.makeCol(),e.colat&&e.colat&&this.toColumnAt(e.colat),e.align&&this.makeJustify(e.justify),e.justify&&this.makeAlign(e.justify),"flex-start"===e.justifo&&(this.res.style.justifyContent="flex-start"),e.radius&&(this.res.style.borderRadius=e.radius),e.aligns&&this.aligns(e.aligns),this.callReact(t),!0===e.center&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),this}},{key:"callReact",value:function(e){this.options=e;var r,n,o,i=[],a=e.transform&&"object"===s(e.transform);if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||a){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&(r=t,n=this,"function"==typeof(o=d(f(1&3?r.prototype:r),"setAny",n))?function(e){return o.apply(n,e)}:o)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var l=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,a?e.transform:void 0];l=l.filter(function(e){return null!=e});for(var c=0;c<l.length;c++)i.push({range:l[c].range,log:l[c].op.name,target:l[c].target,op:l[c].op});var u=[];e.borderObj&&u.push("border"),e.background&&u.push("background"),e.mar&&u.push("margin"),e.animation&&u.push("animation"),e.span&&u.push("span"),this.chainReact(i,e.id,u)}}},{key:"toColumnAt",value:function(e){var t=this;if(!this.columnAlways){var r=function(){var r=window.matchMedia("(max-width: ".concat(e,")")),n=window.matchMedia("(max-device-width: 415px)");r.matches||n.matches?t.res.style.flexDirection="column":t.res.style.flexDirection="row"};r(),window.addEventListener("resize",r)}return this}},{key:"onlyWrap",value:function(){return this.res.style.flexWrap="wrap",this}},{key:"wrap",value:function(){return this.res.style.flexWrap="wrap",this.res.style.justifyContent="space-between",this}},{key:"aligns",value:function(e){return"start"===e&&(this.res.style.alignItems="flex-start"),"end"===e&&(this.res.style.alignItems="flex-end"),"center"===e&&(this.res.style.alignItems="center"),this}},{key:"toCode",value:function(){for(var e={},t=0,r=Object.entries(this.options||{});t<r.length;t++){var n=i(r[t],2),a=n[0],s=n[1];null!=s&&""!==s&&(e[a]=s)}var l=JSON.stringify(e,null,4).replace((0,o._H)(),"$1:").replace(/"([^"]*)"/g,function(e,t){return t.includes("\n")?"`"+t.replace(/`/g,"\\`")+"`":'"'.concat(t,'"')}),c=(this.items||[]).map(function(e){return null!=e&&e.toCode?e.toCode():"/* element */"}).join(",\n ");return[["new FlexRow().set(".concat(l,")"),c?".items([\n ".concat(c,"\n])"):""].join("")]}},{key:"cornerRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"makeJustify",value:function(e){return"start"===e&&(this.res.style.justifyContent="flex-start"),this}},{key:"makeAlign",value:function(e){return"center"===e?this.res.style.alignItems="center":this.res.style.justifyContent=e,this}},{key:"makeCol",value:function(){return this.res.style.flexDirection="column",this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"setup",value:function(){var e=document.createElement("div");return e.style.display="flex",e.style.justifyContent="space-around",e.style.alignItems="center",this.res=e,this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,window.matchMedia("(max-device-width: 415px)").matches&&e.mobile&&(this.res.style.width=e.mobile),this}},{key:"radius",value:function(e){return this.res.style.borderRadius="".concat(e,"px"),this}},{key:"shadow",value:function(e,t,r){return this.res.style.boxShadow="0px 1px 10px 0px rgb(145 145 145)",this}},{key:"items",value:function(e){this.els=e,this.items=e;for(var t=0;t<e.length;t++){if(null!=e[t])if(e[t].render instanceof Function){var r=e[t].render();this.res.appendChild(r)}else this.res.appendChild(e[t]);if(null!=e[t]&&e[t].render instanceof Function){var n=e[t].render();this.res.appendChild(n),void 0!==e[t].toCode&&this.code.push(e[t].toCode().flatMap(function(e){return e}))}}return this}},{key:"responsive",value:function(e){var t=this,r=window.matchMedia("(max-device-width: 415px)");return window.innerWidth<e||r.matches?this.res.style.gridTemplateColumns="1fr":this.res.style.gridTemplateColumns="1fr 1fr",window.addEventListener("resize",function(){window.innerWidth<e||r.matches?t.res.style.gridTemplateColumns="1fr":t.res.style.gridTemplateColumns="1fr 1fr"}),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],n&&l(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},3180:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{h:()=>u});var u=function(e){function t(e){var r,n,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=l(o=t),(r=a(n,s()?Reflect.construct(o,[],l(n).constructor):o.apply(n,i)))._noTheme=!0;var c=document.createElement("div");return c.style.flex="1",r.res=c,r.res.setAttribute("class","innerHider"),a(r,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,(n=[{key:"toCode",value:function(){return["new Spacer(".concat(this.hide,")")]}},{key:"render",value:function(){return this.res}}])&&o(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(r(9873).y)},3243:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{a:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t))._noTheme=!0,e.el=null,e.obj=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"set",value:function(e){var t=document.createElement("div");return t.style.width="100vw",t.style.height="100vh",t.style.backgroundColor=e.background,t.style.zIndex="1",t.style.position="absolute",t.style.overflowY="scroll",this.obj=e,this.res=t,e.close&&this.close(),this}},{key:"close",value:function(){return this.res.style.display="none",this}},{key:"show",value:function(){return this.res.style.display="block",this}},{key:"add",value:function(e){var t=document.createElement("div");t.style.width=this.obj.width,t.style.height="auto",t.style.marginLeft="auto",t.style.marginRight="auto",t.style.backgroundColor="white",window.matchMedia("(max-device-width: 415px)").matches&&(t.style.marginTop="200px",t.style.width="100%");for(var r=0;r<e.length;r++)t.appendChild(e[r].render());return this.res.appendChild(t),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector("body").style.margin=0,document.querySelector("body").style.padding=0,document.querySelector(e).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},3257:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{l:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).el=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"set",value:function(e){this.options=e;var t=document.createElement("div"),r=document.createElement("label");r.style.position="relative",r.style.display="block";var n=document.createTextNode(e.title);r.appendChild(n),r.style.opacity=0;var o=document.createElement("input");return"textarea"===e.type&&(o=document.createElement("textarea")),o.style.position="relative",o.placeholder=e.title,o.style.fontSize="1rem",o.style.padding=".4rem .75rem",t.appendChild(r),t.appendChild(o),this.res=t,e.mar&&this.mar(e.mar),e.pad&&this.pad(e.pad),o.addEventListener("focus",function(){r.style.transition="transform ease 0.2s",r.style.transform="scale(0.80)",r.style.textTransform="uppercase",r.style.transformOrigin="left top",r.style.fontWeight="bold",o.placeholder="",r.style.opacity="1.0",e.font&&(r.style.fontFamily=e.font),e.color&&(r.style.color=e.color),e.exact&&(r.style.fontSize=e.exact)}),o.addEventListener("focusout",function(){r.style.transform="scale(1.0)",o.placeholder=e.title,r.style.opacity="0.0"}),e.name&&o.setAttribute("name",e.name),window.matchMedia("(max-device-width: 415px)").matches&&(o.style.width="100%",t.style.width="100%"),o.style.fontSize="1rem",this.el=t,this}},{key:"getValue",value:function(){return this.el.children[1].value}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new FloatingInput().set(".concat(e,")")]}},{key:"margin",value:function(e){return this.el.style.margin=e,this}},{key:"render",value:function(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y);"undefined"!=typeof window&&(window.FloatingInput=c)},3420:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{f:()=>c});var c=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).url=e,r.res=null,r.setup(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"setup",value:function(){this.res=document.createElement("audio"),this.res.setAttribute("src",this.url),this.res.setAttribute("controls","controls")}},{key:"size",value:function(e){return this.res.style.width=e,this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},3440:(e,t,r)=>{r.d(t,{X:()=>h});var n=r(9873),o=r(1382);function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function d(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}var p=function(){return d(function e(t,r){c(this,e),this.obj=t||{},this.items=r||[]},[{key:"render",value:function(){var e=document.createElement("div");e.style.display="flex",e.style.width="100%",e.style.justifyContent="space-around",e.setAttribute("id","innerItemsWrapper");var t=window.matchMedia("(max-device-width: 415px)"),r=window.matchMedia("(max-width: 600px)");(t.matches||r.matches)&&(e.style.marginTop="3rem");for(var n=0;n<this.items.length;n++){var o=this.items[n];e.appendChild(o.render())}var i=document.createElement("div");return i.style.width=this.obj.isSide?"333px":"100%",i.style.background=this.obj.background||"white",i.style.display="flex",i.style.justifyContent="center",i.style.alignItems="center",i.style.height="100%",i.setAttribute("id","outerItemsWrapper"),i.appendChild(e),this.obj.customStyle&&(e.style.width="auto",e.style.top="0rem",e.style.borderRadius="1rem",e.style.background=this.obj.background||"white",e.style.margin="1rem",e.style.position="absolute",e.style.opacity=.8),i}}])}(),h=function(e){function t(e){var r,n,o,s;return c(this,t),r=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,i()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t),n=r,s=function(){var e,t=window.matchMedia("(max-device-width: 415px)"),n=document.createElement("button");if(n.setAttribute("id","hamburger"),n.setAttribute("type","button"),n.setAttribute("aria-label","Menu"),n.setAttribute("aria-expanded","false"),n.setAttribute("aria-controls","innerItemsWrapper"),n.style.border="none",n.style.fontWeight="bold",n.style.position="absolute",n.style.color=null!==(e=r.hamburgerColour)&&void 0!==e?e:"orange",n.style.backgroundColor="transparent",n.style.fontSize=t.matches?"2.1em":"2em",r.hamburgerInset){var o=String(r.hamburgerInset).trim().split(/\s+/);n.style.padding=o.length>1?"".concat(o[0]," ").concat(o[1]):"".concat(o[0]," ").concat(o[0])}var i=document.createTextNode(r.symbol?r.symbol:"☰");return n.appendChild(i),n.style.marginLeft="auto",r.isShown=!1,n.addEventListener("click",function(){r.isShown=!r.isShown,n.setAttribute("aria-expanded",String(r.isShown)),r.hasAnimatedToWide=!1;var e=r.items[0].options;if(e&&e.animation){var t=e.animation.op,o=r.res.children[0].children[1].children[0];if(t){if(r.isShown)for(var i=0;i<o.children.length;i++)o.children[i].animate(t.keyframesClose,{duration:1,fill:"forwards",delay:0}).onfinish=function(){o.parentElement.style.display="block"};else o.parentElement.style.display="none";for(i=0;i<o.children.length;i++){var a=o.children[i];a.animate(t.keyframesClose,{duration:1,fill:"forwards",delay:0}),r.isShown?a.animate(t.keyframesOpen,t.openOptions):a.animate(t.keyframesClose,t.closeOptions)}}}else r.isShown?innerItemsWrapper.parentElement.style.display="block":innerItemsWrapper.parentElement.style.display="none"}),n},(o=f(o="addHamburger"))in n?Object.defineProperty(n,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[o]=s,r.titleText="",r.hasHamburger=!1,r.code=[],r.attributes={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),d(t,[{key:"toCode",value:function(){var e="new UINavBar()";return Object.keys(this.attributes).length>0?e+=".setup(".concat((0,o.sy)(this.attributes,2),")"):e+=".setup({})",e+=".items([\n",e+=this.items.map(function(e){return e.toCode().join("").trim()}).join(",\n"),[e+="\n])"]}},{key:"styled",value:function(e){return this.setup(e),this.styles=e,this}},{key:"setup",value:function(e){this.obj=e,this.obj.isSide||(this.obj.animate=!1),this.attributes=e;var t=document.createElement("div");t.setAttribute("id","sars"),t.style.padding=0,t.style.margin=0;var r=document.createElement("div");return r.setAttribute("id","covid"),r.style.position="absolute",r.style.width="100%",r.style.zIndex=1,r.style.alignItems="flex-start",document.createElement("div").style.position="absolute",r.style.margin="20px",r.style.display="flex",r.style.alignItems="flex-end",r.style.margin=0,r.style.padding=0,r.style.margin=0,t.appendChild(r),this.addCloseButton=!1,this.res=t,e.background&&this.background({color:e.background}),e.openColor&&(this.openColor=e.openColor),e.sticky&&this.sticky(),e.pad&&this.pad(e.pad),e.hamburgerColour&&(this.hamburgerColour=e.hamburgerColour),e.hamburgerInset&&(this.hamburgerInset=e.hamburgerInset),e.mobileSize&&(this.mobileSize=e.mobileSize),e.desktopSize&&(this.desktopSize=e.desktopSize),e.height&&(this.res.children[0].style.height=e.height),this._ui={gap:e.gap,justify:e.justify,alignItems:e.alignItems,barPad:e.barPad,maxWidth:e.maxWidth,borderBottom:e.borderBottom},this.res.setAttribute("role","navigation"),this.res.setAttribute("aria-label",e.ariaLabel||"Primary"),this}},{key:"items",value:function(e){this.items=e;var t=["Link","Image","Spacer","Dropdown"].some(function(t){return e[0].__proto__.constructor.toString().startsWith("class ".concat(t))});this.itemCount=e.length;var r=new p(this.obj,this.items).render();this.res.children[0].appendChild(r);var n=this.res.children[0].children[0].children[0],o=this.items[0].options;if(o&&o.animation){var i=o.animation.op;if(i){var a=window.matchMedia("(max-device-width: 415px)"),s=window.matchMedia("(max-width: 600px)");if(a.matches||s.matches){var l={duration:1,fill:"forwards",delay:1};for(c=0;c<n.children.length;c++)n.children[c].animate(i.keyframesClose,l)}else for(var c=0;c<n.children.length;c++)n.children[c].animate(i.keyframesClose,{duration:1,fill:"forwards",delay:1}),n.children[c].animate(i.keyframesOpen,i.openOptions)}}if(this.adjust(),!t){this.itemCount=e.length;var u=document.createElement("div");for(u.style.backgroundColor="orange",c=0;c<e.length;c++){var d=e[c];if(d.logo){var f=new Image(d.logo).width("100px"),h=document.createElement("div");h.style.flex="1",h.style.height=23;var y=document.createElement("div");y.setAttribute("id","WR"),y.style.display="flex",y.style.flexDirection="row",y.appendChild(f.render()),this.res.children[0].appendChild(f.render()),this.obj.spacing&&this.res.children[0].appendChild(h)}if(d.logo&&(this.allowPad=!0),d.logo&&this.obj.spacing&&(this.res.children[0].children[0].style.marginLeft=this.obj.spacing.sides,this.res.children[0].children[0].style.marginRight=this.obj.spacing.sides),d.title){var m=void 0;m=this.allowPad?d.type?new Dropdown(d.items,d.title):new Link(d.title,d.url).pad([{lr:"1em"}]):d.type?new Link("DRPA",d.url):new Link(d.title,d.url),u.appendChild(m.render())}}this.res.children[0].appendChild(u),this.adjust()}var v=this.addHamburger();this.itemCount,this.obj.spacing,v.style.zIndex=1;var b=this.res.children[0];return b&&!b.querySelector("#hamburger")&&b.insertBefore(v,b.firstChild),this}},{key:"instance",value:function(){return this.res.children[0]}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=this.res.style.top||"0px",this.res.style.zIndex=this.res.style.zIndex||50,this._sticky=!0,this}},{key:"font",value:function(e){for(var t=0;t<this.res.children[0].children;t++)this.res.children[0].children[t].style.fontFamily=e;return this}},{key:"background",value:function(e){return e.background?(this.res.children[0].style.backgroundColor=e.color,this.res.children[0].style.opacity=e.opacity,this):(this.res.children[0].style.backgroundColor="transparent",this)}},{key:"adjust",value:function(e){var t=this,r=window.matchMedia("(max-width: 600px)"),n=window.matchMedia("(max-device-width: 415px)"),o=function(){t.isShown=!1,t.res.children[0],function(){for(var e=0;e<t.res.children[0].children.length;e++){var r=t.res.children[0].children[e];r.style.fontSize=n.matches?t.mobileSize?t.mobileSize:"1.2em":t.desktopSize?t.desktopSize:"1em","☰"===r.textContent&&(r.style.fontSize="2em")}}(),t.res.children[0].style.flexDirection="column";for(var e=0;e<t.res.children[0].children.length;e++)"☰"==t.res.children[0].children[e].textContent||t.res.children[0].children[e].textContent==t.keepItem?(t.res.children[0].children[e].id,t.res.children[0].children[e].style.display="flex"):t.res.children[0].children[e].style.display="none"};if(this.obj.isSide)o();else{var i=this.res.children[1];null!=i&&(i.style.background="yellow"),r.matches||n.matches?o():function(){t.res.children[0];for(var e=0;e<t.res.children[0].children.length;e++){var r=t.res.children[0].children[e];r.style.marginTop="0em",r.id,r.style.display="flex",r.textContent===t.titleText&&t.titleText.length>0&&(r.style.fontSize="2em")}var n=t.items[0].options;if(n&&n.animation){var o=n.animation.op,i=t.res.children[0].children[1].children[0];if(i.style.marginTop="0",o&&!t.hasAnimatedToWide)for(t.hasAnimatedToWide=!0,e=0;e<i.children.length;e++)i.children[e].animate(o.keyframesOpen,o.openOptions)}}()}return this}},{key:"render",value:function(e){var t=this,r=function(){var e=window.matchMedia("(max-width: 600px)"),r=window.matchMedia("(max-device-width: 415px)"),n=t.res.querySelector("#outerItemsWrapper")||t.res.children[0].children[1],o=n&&(n.querySelector("#innerItemsWrapper")||n.children[0]),i=t._ui||{};if(o&&(i.gap&&(o.style.gap=i.gap),i.justify&&(o.style.justifyContent=i.justify),i.alignItems&&(o.style.alignItems=i.alignItems),i.barPad&&(o.style.padding=i.barPad),i.maxWidth&&(o.style.maxWidth=i.maxWidth,o.style.marginLeft="auto",o.style.marginRight="auto")),n&&i.borderBottom&&(n.style.borderBottom=i.borderBottom),r.matches&&(o.style.position="relative"),(e.matches||r.matches)&&null!=o?o.style.flexDirection="column":null==o||t.obj.isSide||(o.style.flexDirection="row"),!t.obj.isSide&&!e.matches&&!r.matches){var a=t.res.querySelector("#hamburger");a&&(a.style.display="none")}t.obj.isSide&&(o.style.flexDirection="column"),t.obj.isSide||e.matches||(t.res.children[0].style.position="relative",n.style.transform="translateY(0px)"),!t.obj.isSide&&e.matches,t.obj.customStyle&&(t.res.children[0].style.marginTop="1rem",t.res.children[0].style.position="absolute",t.res.children[0].style.borderRadius="1rem",n.style.borderRadius="1rem"),t.obj.radius&&(t.res.children[0].style.borderRadius="1rem",n.style.borderRadius="1rem")};return window.addEventListener("resize",function(){return r()}),r(),e?(document.querySelector(e).style.padding=0,document.querySelector(e).style.margin=0,document.querySelector(e).appendChild(this.res),this.res):this.res}}])}(n.y)},3665:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}r.d(t,{m:()=>d});var d=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=c(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}(this,t)).res=document.createElement("div"),e.res.style.position="relative",e.toggleWrap=document.createElement("div"),e.toggleWrap.style.zIndex=9999,e.toggleWrap.style.borderRadius="0.3rem",e.toggleWrap.style.cursor="pointer",e.toggleWrap.style.display="flex",e.toggleWrap.style.alignItems="center",e.toggleWrap.style.justifyContent="center",e.res.appendChild(e.toggleWrap),e.contentWrap=document.createElement("div"),e.contentWrap.style.position="fixed",e.contentWrap.style.background="#ecf0f1",e.contentWrap.style.borderRadius="0.3rem",e.contentWrap.style.boxShadow="0 2px 5px rgba(0, 0, 0, 0.15)",e.contentWrap.style.width="250px",e.contentWrap.style.display="none",e.contentWrap.style.zIndex=99999,document.addEventListener("DOMContentLoaded",function(){document.body.appendChild(e.contentWrap)}),document.body&&document.body.appendChild(e.contentWrap),e.styles={},e.children=[],e.isExpanded=!1,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,s=[{key:"set",value:function(e){var t=this;this.options=e,e.title&&(this.toggleWrap.textContent=e.title),e.width&&(this.toggleWrap.style.width=e.width),e.contentWidth&&(this.contentWrap.style.width=e.contentWidth),e.background&&(this.contentWrap.style.backgroundColor=e.background),e.radius&&(this.contentWrap.style.borderRadius=e.radius);var r=function(){var e=t.toggleWrap.getBoundingClientRect(),r=t.contentWrap.style.display,n=t.contentWrap.style.visibility;"none"===r&&(t.contentWrap.style.visibility="hidden",t.contentWrap.style.display="block");var o=t.contentWrap.getBoundingClientRect();"none"===r&&(t.contentWrap.style.display=r,t.contentWrap.style.visibility=n||"");var i=window.innerWidth,a=e.left+e.width/2-o.width/2;a<8&&(a=8),a+o.width>i-8&&(a=i-8-o.width),a<8&&(a=8),t.contentWrap.style.top=e.bottom+4+"px",t.contentWrap.style.left=a+"px"};this._positionContent=r;var n=function(){"none"!==t.contentWrap.style.display&&r()};if(window.addEventListener("resize",n),window.addEventListener("scroll",n,!0),e.behaviour){var o=e.behaviour;if("mouseover"===o||"mouseenter"===o){var i,a=function(){clearTimeout(i),t.contentWrap.style.display="block",r()},s=function(){i=setTimeout(function(){t.contentWrap.style.display="none"},200)};this.toggleWrap.addEventListener("mouseenter",a),this.toggleWrap.addEventListener("mouseleave",s),this.contentWrap.addEventListener("mouseenter",a),this.contentWrap.addEventListener("mouseleave",s),this.toggleWrap.addEventListener("click",function(e){e.stopPropagation(),"block"===t.contentWrap.style.display?t.contentWrap.style.display="none":(t.contentWrap.style.display="block",r())}),document.addEventListener("click",function(e){"block"!==t.contentWrap.style.display||t.contentWrap.contains(e.target)||t.toggleWrap.contains(e.target)||(t.contentWrap.style.display="none")})}else"click"===o?this.res.addEventListener("click",function(){t.toggle(),"block"===t.contentWrap.style.display&&r()}):this.res.addEventListener(o,function(){t.contentWrap.style.display="block",r()})}else this.res.addEventListener("click",function(){t.toggle(),"block"===t.contentWrap.style.display&&r()});return e.mar&&this.mar(e.mar),e.pad&&this.pad(e.pad),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),this}},{key:"add",value:function(e){var t,r=this;if(!Array.isArray(e))throw new Error("The 'add' method expects an array of children.");if(e.forEach(function(e,t){if(0!==t){if(!(e.res instanceof HTMLElement))throw new Error("Each child must have a valid 'element' property that is an HTMLElement.");r.contentWrap.appendChild(e.res)}}),!this.options||!this.options.title){var n=e[0];n&&n.res&&this.toggleWrap.appendChild(n.res)}return(t=this.children).push.apply(t,function(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e)),this}},{key:"toggle",value:function(){this.isExpanded=!this.isExpanded,this.contentWrap.style.display=this.isExpanded?"block":"none"}},{key:"toCode",value:function(){var e=this,t=this.options?Object.entries(this.options).map(function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=t[0],i=t[1];return"string"==typeof i?"".concat(r,': "').concat(i,'"'):"object"===n(i)?"".concat(r,": ").concat(JSON.stringify(i)):"".concat(r,": ").concat(i)}).join(",\n "):"",r=this.children.map(function(t,r){return t.toCode().flatMap(function(e){return e}).join("")+(r<e.children.length-1?",":"")}).join("");return["new Dropdown().set({\n ".concat(t,"\n}).add([\n ").concat(r,"\n])")]}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.res),this.res}}],s&&a(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(r(9873).y)},4550:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{U:()=>c});var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,i=[{key:"set",value:function(e){return this.imageUrl=e.url,this.createCard(),e.useBrightness&&(this.useBrightness=!0),e.useBrightness&&"\n useBrightness: ".concat(this.useBrightness),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.inpad&&this.inpad(e.inpad),e.inpad&&"\n inpad: {".concat(e.inpad,"}"),e.font&&(this.res.style.fontFamily=e.font),e.inpad&&"\n font: ".concat(e.font),this.addListeners(),this}},{key:"inpad",value:function(e){return this.res.children[1].style.boxSizing="border-box",this.res.children[1].style.padding=e,this}},{key:"items",value:function(e){for(var t=0;t<e.length;t++)this.res.children[1].appendChild(e[t].render());return this}},{key:"createCard",value:function(){var e=document.createElement("div");e.style.display="grid",e.style.width="300px",e.style.height="400px",e.setAttribute("id","AAA");var t=document.createElement("div");t.style.gridArea="1/1",t.style.height="400px",t.style.borderRadius="15px",t.style.boxShadow="0 4px 8px 0 rgba(0,0,0,0.2)",t.style.overflow="hidden";var r=document.createElement("div");r.style.width="100%",r.style.height="100%",r.style.transition="0.9s",r.style.backgroundImage="url(".concat(this.imageUrl,")"),r.style.backgroundSize="cover",r.style.backgroundPostion="cover",r.style.backgroundRepeat="no-repeat",t.appendChild(r);var n=document.createElement("div");return n.style.gridArea="1/1",n.style.zIndex="1",e.appendChild(t),e.appendChild(n),this.res=e,this}},{key:"addListeners",value:function(){var e=this,t=this.res.children[0].children[0];return this.res.onmouseover=function(){t.style.transform="scale(1.3)",e.useBrightness&&(t.style.filter="brightness(31%)")},this.res.onmouseout=function(){t.style.transform="scale(1.0)",e.useBrightness&&(t.style.filter="brightness(100%)")},this}},{key:"render",value:function(e){if(!e)return this.res;this.options.id&&this.res.setAttribute("id",this.options.id),document.querySelector(e).appendChild(this.res)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},4617:(e,t,r)=>{function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},l.apply(null,arguments)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}r.d(t,{e:()=>d});var d=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=c(t),function(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}(this,t)).res=null,e.items=[],e.setup(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,a=[{key:"set",value:function(e){return this.options=e,e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),this.commonMethods(e),this.callReact(e),this}},{key:"callReact",value:function(e){var r,n,i,a=[],s=e.transform&&"object"===o(e.transform);if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||s){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&(r=t,n=this,"function"==typeof(i=l(c(1&3?r.prototype:r),"setAny",n))?function(e){return i.apply(n,e)}:i)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var u=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,s?e.transform:void 0];u=u.filter(function(e){return null!=e});for(var d=0;d<u.length;d++)a.push({range:u[d].range,log:u[d].op.name,target:u[d].target,op:u[d].op});var f=[];e.borderObj&&f.push("border"),e.background&&f.push("background"),e.mar&&f.push("margin"),e.animation&&f.push("animation"),e.span&&f.push("span"),this.chainReact(a,this.options.id,f)}}},{key:"setup",value:function(){var e=document.createElement("ul");return this.res=e,this.res.style.padding=0,this.res.style.margin=0,this}},{key:"setItems",value:function(e){this.items=e;var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if("string"==typeof o){var i=document.createElement("li");i.textContent=o,this.res.appendChild(i)}else{var a=o.render();this.res.appendChild(a)}}}catch(e){r.e(e)}finally{r.f()}return this}},{key:"font",value:function(e){return this.res.style.fontFamily=e,this}},{key:"size",value:function(e){return this.res.style.fontSize=e,this}},{key:"em",value:function(e){return this.res.style.fontSize="".concat(e,"em"),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"align",value:function(e){return this.res.style.textAlign="".concat(e),this}},{key:"weight",value:function(e){return this.res.style.fontWeight=e,this}},{key:"bold",value:function(){return this.res.style.fontWeight="bold",this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(e,"px solid ").concat(t),this}},{key:"toCode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.code=[],this.excludeFromCodeTrue)return[""];var t=" ".repeat(e),r="".concat(t,"new UList()");return this.items&&this.items.length&&(r+="\n".concat(t," .setItems([\n")+this.items.map(function(t){return"string"==typeof t?"".concat(" ".repeat(e+4),'"').concat(t,'"'):t.toCode(e+4)}).join(",\n")+"\n".concat(t," ])")),[r+="\n".concat(t)]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],a&&i(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(r(9873).y)},4753:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{Z:()=>a});var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"cards",value:function(e,t,r){for(var n=[],o=0;o<e.children.length;o++){var i=e.children[o];"text"===i&&this.insertTextToCard(n,t,e,r),"image"!==i||e.backgroundCard||n.push('\n new Image("https://upload.wikimedia.org/wikipedia/commons/3/3a/Starship_S20.jpg").set({})'),"link"===i&&(t.op?n.push("\n ".concat(r.tabSpace(6)," ").concat(r.link[t.op.theme.toLowerCase()].code)):n.push("\n ".concat(r.tabSpace(6)," ").concat(r.link.base.code)))}return n}},{key:"insertTextToCard",value:function(e,t,r,n){if(t.op)if(t.op.ops&&t.op.ops.includes("text-blast")){var o="\n ".concat(n.tabSpace(6)," ").concat(n.text[t.op.theme.toLowerCase()].code),i=n.ops[t.op.theme.toLowerCase()].blast.code;r.backgroundCard||(i=n.ops[t.op.theme.toLowerCase()].blastFun(1));var a=this.insertTextBetween(o,i);e.push(a)}else e.push("\n ".concat(n.tabSpace(6)," ").concat(n.text[t.op.theme.toLowerCase()].code));else e.push("\n ".concat(n.tabSpace(6)," ").concat(n.text.base.code))}},{key:"insertTextBetween",value:function(e,t){var r=e.match(/(color: ".+?",)(.+?)(id: ".+?")/);if(r){var n=r.index+r[0].length;return e.slice(0,n)+", "+t+", "+e.slice(n)}return e}}],null&&o(e.prototype,null),t&&o(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},5318:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{S:()=>a});var o="nodality.theme.mode",i="nodality:theme",a={mode:function(){try{var e=localStorage.getItem(o);if("light"===e||"dark"===e)return e}catch(e){}return"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}(),tokens:{light:{},dark:{}},defaults:{light:{color:"#111"},dark:{}},setDefaults:function(e){return e&&"object"===n(e)&&(e.light&&(this.defaults.light=Object.assign({},this.defaults.light,e.light)),e.dark&&(this.defaults.dark=Object.assign({},this.defaults.dark,e.dark)),this._broadcast()),this},setTokens:function(e){return e&&"object"===n(e)&&(e.light&&Object.assign(this.tokens.light,e.light),e.dark&&Object.assign(this.tokens.dark,e.dark)),this},get current(){return this.tokens[this.mode]||{}},set:function(e){if("light"!==e&&"dark"!==e)return this;if(e===this.mode)return this;this.mode=e;try{localStorage.setItem(o,e)}catch(e){}return this._broadcast(),this},toggle:function(){return this.set("dark"===this.mode?"light":"dark")},subscribe:function(e){if("undefined"==typeof document)return function(){};var t=function(t){return e(t.detail.mode,t.detail.tokens)};document.addEventListener(i,t);try{e(this.mode,this.current)}catch(e){}return function(){return document.removeEventListener(i,t)}},_broadcast:function(){"undefined"!=typeof document&&document.dispatchEvent(new CustomEvent(i,{detail:{mode:this.mode,tokens:this.current}}))}}},5367:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},s.apply(null,arguments)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{z:()=>u});var u=function(e){function t(e,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t))._noTheme=!0,o.res=null,o.width="16em",o.height="100vh",o.els=e,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,i=[{key:"setup",value:function(e){var r,n,o,i=this;e.tags&&(r=t,n=this,"function"==typeof(o=s(l(1&3?r.prototype:r),"setTags",n))?function(e){return o.apply(n,e)}:o)([e.tags]),e.width&&(this.width=e.width),e.height&&(this.height=e.height);var a=document.createElement("div");a.style.position="absolute";var c=document.createElement("button");c.style.position="absolute",c.style.background="white",c.style.opacity=.8,c.style.border="none",c.width="1.5em",c.height="1.5em",c.style.borderRadius="50%",c.style.zIndex=2;var u=document.createTextNode("☰");c.appendChild(u),c.style.fontSize="2em",window.matchMedia("(max-device-width: 400px)").matches&&(c.style.fontSize="6em"),window.matchMedia("(max-device-width: 400px)").matches&&e.fullMobile&&(this.width="100vw"),a.appendChild(c);var d=document.createElement("div");return d.style.position="absolute",d.style.backgroundColor="#fff",d.style.flexDirection="column",d.style.display="flex",d.style.alignItems="center",d.style.margin=0,d.style.padding=0,d.style.width=this.width,d.style.margin=0,d.style.marginTop="-10px",d.style.paddingTop="1em",d.style.paddingBottom="1em",d.style.height="".concat(this.height),d.style.transform="translateX(-".concat(this.width,")"),d.style.transition="all 0.80s",a.appendChild(d),this.hidden=!1,c.addEventListener("click",function(){i.hidden=!i.hidden;for(var e=0;e<d.children.length;e++)"☰"!==d.textContent&&(i.hidden?d.style.transform="translateX(0em)":d.style.transform="translateX(-".concat(i.width,")"))}),this.res=a,this.els&&this.items(this.els),this}},{key:"background",value:function(e){return this.res.children[1].style.backgroundColor=e.color,this.res.children[1].style.opacity=e.opacity,this}},{key:"items",value:function(e){this.itemCount=e.length;for(var t=0;t<e.length;t++)this.res.children[1].appendChild(e[t].render());return this}},{key:"render",value:function(e){return e?(document.querySelector(e).style.padding=0,document.querySelector(e).style.margin=0,document.querySelector(e).appendChild(this.res),this.res):this.res}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},5379:(e,t,r)=>{function n(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{hE:()=>z,ls:()=>p,sB:()=>U});var c={static:function(e){return{x:.5*e.w,y:.5*e.h,amt:1}},mouse:function(e){return{x:e.mouseX,y:e.mouseY,amt:1}},hover:function(e){return{x:e.mouseX,y:e.mouseY,amt:e.hover}},scroll:function(e){return{x:.5*e.w,y:e.h*e.scroll,amt:1}},time:function(e){return{x:e.w*(.5+.34*Math.cos(.6*e.t)),y:e.h*(.5+.34*Math.sin(.8*e.t)),amt:1}}},u=Object.keys(c),d={hexalize:{doc:{summary:"Hexagonal cell grid. Snaps sampling to a hex lattice and draws cell borders; with `lift`, cells near the driver swell toward the viewer and their content magnifies to match.",params:{size:{default:24,unit:"px",summary:"lattice pitch — the width of one cell"},lift:{default:0,unit:"ratio",structural:!0,summary:"how much bigger a cell gets at the focus: 0.3 renders the nearest hexagons at 1.3x. 0 compiles the cheap path entirely away, so crossing zero rebuilds."},radius:{default:200,unit:"px",summary:"falloff distance around the driver focus"}}},structuralOnToggle:["lift"],stage:"cell",decl:function(e){return"\n uniform float ".concat(e,"size;\n uniform float ").concat(e,"lift;\n uniform float ").concat(e,"radius;\n uniform vec2 ").concat(e,"dpos;\n uniform float ").concat(e,"damt;")},code:function(e,t){return t.lift?"\n {\n vec2 hp = warped / ".concat(e,"size;\n vec2 hr = vec2(1.0, 1.7320508), hh = hr * 0.5;\n vec2 ha = mod(hp, hr) - hh, hb = mod(hp - hh, hr) - hh;\n vec2 gv = dot(ha, ha) < dot(hb, hb) ? ha : hb;\n vec2 ").concat(e,"AX = normalize(vec2(1.0, 1.7320508));\n vec2 ").concat(e,"c0 = hp - gv;\n // Seed with the owning cell. Its own hexagon always covers the\n // fragment at any scale >= 1, so there is always a winner.\n vec2 ").concat(e,"bestC = ").concat(e,"c0;\n float ").concat(e,"bestF = (1.0 - smoothstep(0.0, ").concat(e,"radius,\n length(").concat(e,"c0 * ").concat(e,"size - ").concat(e,"dpos))) * ").concat(e,"damt;\n float ").concat(e,"bestS = 1.0 + ").concat(e,"lift * ").concat(e,"bestF;\n").concat([[1,0],[-1,0],[.5,.8660254],[-.5,.8660254],[.5,-.8660254],[-.5,-.8660254]].map(function(t){var r,n,o=a(t,2);return r=o[0],n=o[1],"\n {\n vec2 c = ".concat(e,"c0 + vec2(").concat(r.toFixed(7),", ").concat(n.toFixed(7),");\n float f = 1.0 - smoothstep(0.0, ").concat(e,"radius,\n length(c * ").concat(e,"size - ").concat(e,"dpos));\n f *= ").concat(e,"damt;\n float s = 1.0 + ").concat(e,"lift * f;\n vec2 q = hp - c;\n float hd = max(dot(abs(q), ").concat(e,"AX), abs(q).x);\n // Covered by this cell's grown hexagon, and nearer than\n // whatever we have so far.\n if (hd <= 0.5 * s && s > ").concat(e,"bestS) {\n ").concat(e,"bestS = s; ").concat(e,"bestC = c; ").concat(e,"bestF = f;\n }\n }")}).join(""),"\n center = ").concat(e,"bestC * ").concat(e,"size;\n // Divide by the winner's scale: the border test then reaches\n // 0.5 further out (a bigger hexagon) and the sample moves in\n // toward the centre (its content magnified to match), both by\n // the same factor, so proportions are preserved exactly.\n gv = (hp - ").concat(e,"bestC) / max(").concat(e,"bestS, 1e-3);\n warped = center + gv * ").concat(e,'size;\n gv = abs(gv);\n // Border strength follows the SAME falloff as the scale, so a\n // cell that has not been raised draws no border at all. Away\n // from the pointer bestF is 0, which means scale 1, sampling\n // untouched and edge 0 — bit-identical to the source image, so\n // nothing reveals that an effect is attached until the pointer\n // arrives. Pair with by:"hover" for a fully flush resting\n // state; by:"mouse" holds amt at 1 and so keeps a permanent\n // hotspot wherever the pointer last was.\n edge = max(edge, smoothstep(0.44, 0.5,\n max(dot(gv, ').concat(e,"AX), gv.x)) * ").concat(e,"bestF);\n }"):"\n {\n vec2 hp = warped / ".concat(e,"size;\n vec2 hr = vec2(1.0, 1.7320508), hh = hr * 0.5;\n vec2 ha = mod(hp, hr) - hh, hb = mod(hp - hh, hr) - hh;\n vec2 gv = dot(ha, ha) < dot(hb, hb) ? ha : hb;\n center = (hp - gv) * ").concat(e,"size;\n gv = abs(gv);\n edge = max(edge, smoothstep(0.44, 0.5,\n max(dot(gv, normalize(vec2(1.0, 1.7320508))), gv.x)));\n }")},uniforms:function(e,t){return{size:["1f",(e.size||24)*t],lift:["1f",null!=e.lift?e.lift:0],radius:["1f",(e.radius||200)*t]}},map:function(e,t){return t.lift?null:e}},offset:{doc:{summary:"Pushes the coordinate space away from the driver focus. Warp stage, so cell grids and borders move WITH the content instead of staying a fixed screen-space lattice.",params:{strength:{default:20,unit:"px",summary:"how far the space is pushed at full amount"},radius:{default:260,unit:"px",summary:"falloff distance around the focus"}}},stage:"warp",defaultDriver:"mouse",decl:function(e){return"uniform float ".concat(e,"strength; uniform float ").concat(e,"radius;\n uniform vec2 ").concat(e,"dpos; uniform float ").concat(e,"damt;")},code:function(e){return"\n {\n float d = length(warped - ".concat(e,"dpos);\n float fall = 1.0 - smoothstep(0.0, ").concat(e,"radius, d);\n vec2 dir = d > 0.5 ? (warped - ").concat(e,"dpos) / d : vec2(0.0);\n warped -= dir * ").concat(e,"strength * fall * ").concat(e,"damt;\n }")},uniforms:function(e,t){return{strength:["1f",(e.strength||20)*t],radius:["1f",(e.radius||260)*t]}},map:function(e,t,r){var n,o,i,a=(t.strength||20)*r.dpr,s=(t.radius||260)*r.dpr,l=e[0]-r.dpos[0],c=e[1]-r.dpos[1],u=Math.hypot(l,c),d=1-(n=s,o=u,(i=Math.min(1,Math.max(0,(o-0)/(n-0||1e-6))))*i*(3-2*i));if(!(u>.5))return e;var f=a*d*r.damt/u;return[e[0]-l*f,e[1]-c*f]}},flow:{doc:{summary:"Curl-noise current. The coordinate space drifts along a divergence-free field, so content slides as if carried by water. Divergence-free means the flow never piles up or tears.",params:{strength:{default:18,unit:"px",summary:"how far the current carries the space"},scale:{default:120,unit:"px",summary:"size of one eddy — small is turbulent, large is a slow drift"},speed:{default:.25,unit:"seconds",summary:"how fast the field evolves; 0 freezes it"},seed:{default:0,unit:"count",summary:"picks a different field of the same character"},radius:{default:320,unit:"px",summary:"falloff around the focus. Only used when `by` names a driver; without one the current covers the whole element."}}},structural:["by"],stage:"warp",decl:function(e){return"\n uniform float ".concat(e,"scale;\n uniform float ").concat(e,"strength;\n uniform float ").concat(e,"speed;\n uniform float ").concat(e,"seed;\n uniform float ").concat(e,"radius;\n uniform vec2 ").concat(e,"dpos;\n uniform float ").concat(e,"damt;\n // Polynomial bit-mixing hash, deliberately NOT the usual\n // fract(sin(dot(...))). Trig-based hashes disagree across GPU\n // vendors — sin's precision at large arguments is not\n // specified — so the same seed would render a different field\n // on different hardware. This one is multiply/fract only, so\n // the field is at least stable per-device. (Determinism rule,\n // MORPH-IMPL-SPEC §2.9.5a.)\n float ").concat(e,"h(vec2 v) {\n vec3 q = fract(vec3(v.xyx) * 0.1031 + ").concat(e,"seed);\n q += dot(q, q.yzx + 33.33);\n return fract((q.x + q.y) * q.z);\n }\n float ").concat(e,"n(vec2 v) {\n vec2 i = floor(v), f = v - i;\n f = f * f * (3.0 - 2.0 * f);\n return mix(mix(").concat(e,"h(i), ").concat(e,"h(i + vec2(1.0, 0.0)), f.x),\n mix(").concat(e,"h(i + vec2(0.0, 1.0)), ").concat(e,"h(i + vec2(1.0, 1.0)), f.x), f.y);\n }\n // The potential. Two octaves: enough structure to read as a\n // current without the cost of a full fBm.\n float ").concat(e,"psi(vec2 v) {\n return ").concat(e,"n(v) * 0.65 + ").concat(e,"n(v * 2.3 + 11.0) * 0.35;\n }")},code:function(e,t){return"\n {\n float sc = max(".concat(e,"scale, 1.0);\n vec2 drift = vec2(0.0, u_time * ").concat(e,"speed);").concat(t.by?"\n float fall = 1.0 - smoothstep(0.0, ".concat(e,"radius, length(warped - ").concat(e,"dpos));\n float amt = ").concat(e,"strength * fall * ").concat(e,"damt;"):"\n float amt = ".concat(e,"strength;"),"\n // Three fixed Euler steps along curl(psi). Fixed count, not\n // adaptive: the step budget is a compile-time property so the\n // shader cost cannot vary with the content.\n for (int i = 0; i < 3; i++) {\n vec2 q = warped / sc + drift;\n float e = 0.35;\n float dy = ").concat(e,"psi(q + vec2(0.0, e)) - ").concat(e,"psi(q - vec2(0.0, e));\n float dx = ").concat(e,"psi(q + vec2(e, 0.0)) - ").concat(e,"psi(q - vec2(e, 0.0));\n // curl of a 2D scalar potential = (dpsi/dy, -dpsi/dx)\n warped += vec2(dy, -dx) / (2.0 * e) * amt * 0.3333;\n }\n }")},uniforms:function(e,t){return{scale:["1f",(null!=e.scale?e.scale:120)*t],strength:["1f",(null!=e.strength?e.strength:18)*t],speed:["1f",null!=e.speed?e.speed:.25],seed:["1f",null!=e.seed?e.seed:0],radius:["1f",(null!=e.radius?e.radius:320)*t]}}},duotone:{doc:{summary:"Maps luminance onto a two-colour ramp. With `by`, the mapping is confined to a spot around the driver focus and the rest of the element keeps its own colour.",params:{colors:{default:["#104B87","#E8FF00"],unit:"color",summary:"[shadow, highlight] — the two ends of the ramp"},radius:{default:220,unit:"px",summary:"spot size when `by` names a driver"}}},structural:["by"],stage:"color",decl:function(e){return"uniform vec3 ".concat(e,"a; uniform vec3 ").concat(e,"b; uniform float ").concat(e,"radius;\n uniform vec2 ").concat(e,"dpos; uniform float ").concat(e,"damt;")},code:function(e,t){return"\n {\n float lum = dot(col, vec3(0.299, 0.587, 0.114));\n vec3 duo = mix(".concat(e,"a, ").concat(e,"b, lum);\n ").concat(t.by?"float mask = (1.0 - smoothstep(".concat(e,"radius * 0.35, ").concat(e,"radius,\n length(center - ").concat(e,"dpos))) * ").concat(e,"damt;"):"float mask = 1.0;","\n col = mix(col, duo, mask);\n }")},uniforms:function(e,t){var r=e.colors||["#104B87","#E8FF00"];return{a:["3fv",f(r[0])],b:["3fv",f(r[1])],radius:["1f",(e.radius||220)*t]}}},edges:{doc:{summary:"Draws the cell borders a cell-stage op produced. On its own it shows nothing — it colours `edge`, which only hexalize (or another cell op) writes.",params:{color:{default:"#FFFFFF",unit:"color",summary:"border colour"},strength:{default:1,unit:"ratio",summary:"border opacity"}}},stage:"color",decl:function(e){return"uniform vec3 ".concat(e,"color; uniform float ").concat(e,"strength;")},code:function(e){return"\n {\n edgeCol = ".concat(e,"color;\n edgeCov = max(edgeCov, edge * ").concat(e,"strength);\n }")},uniforms:function(e){return{color:["3fv",f(e.color||"#FFFFFF")],strength:["1f",null!=e.strength?e.strength:1]}}},halftone:{doc:{summary:"Print halftone: the image is redrawn as a grid of ink dots on paper, dot size following local luminance.",params:{size:{default:6,unit:"px",summary:"dot pitch"},angle:{default:15,unit:"deg",summary:"screen angle of the dot grid"},ink:{default:"#0B1B2B",unit:"color",summary:"dot colour"},paper:{default:"#FFFFFF",unit:"color",summary:"background colour"},softness:{default:.08,unit:"ratio",summary:"dot edge softness — 0 is a hard stencil"},amount:{default:1,unit:"ratio",summary:"blend back toward the un-screened image; 0 is identity. Keyframe it to 0 at both ends of a transition so the shader hands over to the real element without a pop."},radius:{default:220,unit:"px",summary:"spot size when `by` names a driver"}}},structural:["by"],stage:"color",decl:function(e){return"\n uniform float ".concat(e,"size;\n uniform float ").concat(e,"amount;\n uniform float ").concat(e,"angle;\n uniform vec3 ").concat(e,"ink;\n uniform vec3 ").concat(e,"paper;\n uniform float ").concat(e,"soft;\n uniform float ").concat(e,"radius;\n uniform vec2 ").concat(e,"dpos;\n uniform float ").concat(e,"damt;")},code:function(e,t){return"\n {\n float lum = dot(col, vec3(0.299, 0.587, 0.114));\n float sz = ".concat(e,"size;").concat(t.by?"\n float fd = 1.0 - smoothstep(0.0, ".concat(e,"radius, length(frag - ").concat(e,"dpos));\n sz *= 1.0 + fd * ").concat(e,"damt * 1.8;"):"","\n // Screen angle: rotating the grid is what stops the dots\n // reading as a horizontal/vertical texture.\n float ca = cos(").concat(e,"angle), sa = sin(").concat(e,"angle);\n vec2 rp = vec2(ca * frag.x - sa * frag.y,\n sa * frag.x + ca * frag.y) / max(sz, 1.0);\n vec2 cell = fract(rp) - 0.5;\n // Dot radius from tone: darker tone prints a bigger dot.\n // sqrt because ink coverage goes as area, not radius.\n float rr = sqrt(clamp(1.0 - lum, 0.0, 1.0)) * 0.55;\n float dm = smoothstep(rr, rr - ").concat(e,"soft, length(cell));\n col = mix(col, mix(").concat(e,"paper, ").concat(e,"ink, dm), clamp(").concat(e,"amount, 0.0, 1.0));\n }")},uniforms:function(e,t){return{size:["1f",(e.size||6)*t],amount:["1f",null!=e.amount?e.amount:1],angle:["1f",(null!=e.angle?e.angle:15)*Math.PI/180],ink:["3fv",f(e.ink||"#0B1B2B")],paper:["3fv",f(e.paper||"#FFFFFF")],soft:["1f",null!=e.softness?e.softness:.08],radius:["1f",(e.radius||220)*t]}}},dither:{doc:{summary:"Ordered (Bayer) dithering to a small palette — the look of an 8-bit display, and the one op that gets sharper as the element gets smaller.",params:{size:{default:1,unit:"px",summary:"size of one dither cell; 1 is per-pixel"},levels:{default:6,unit:"count",summary:"quantisation steps per channel"},amount:{default:1,unit:"ratio",summary:"blend back toward the undithered image"},mono:{default:!1,unit:"bool",structural:!0,summary:"quantise luminance to ink/paper instead of per-channel colour. A different shader, so toggling rebuilds."},ink:{default:"#0B1B2B",unit:"color",summary:"dark end, mono only"},paper:{default:"#FFFFFF",unit:"color",summary:"light end, mono only"},radius:{default:220,unit:"px",summary:"spot size when `by` names a driver"}}},structural:["by","mono"],stage:"color",decl:function(e){return"\n uniform float ".concat(e,"levels;\n uniform float ").concat(e,"size;\n uniform float ").concat(e,"amount;\n uniform vec3 ").concat(e,"ink;\n uniform vec3 ").concat(e,"paper;\n uniform vec2 ").concat(e,"dpos;\n uniform float ").concat(e,"damt;\n uniform float ").concat(e,"radius;\n // Bayer matrices by recursive bit-interleave rather than a\n // 64-entry table: WebGL1 has no constant array indexing, and\n // the nesting is exactly the recursive definition of the\n // ordered-dither matrix.\n float ").concat(e,"b2(vec2 a) {\n a = floor(a);\n return fract(a.x * 0.5 + a.y * a.y * 0.75);\n }\n float ").concat(e,"b4(vec2 a) { return ").concat(e,"b2(0.5 * a) * 0.25 + ").concat(e,"b2(a); }\n float ").concat(e,"b8(vec2 a) { return ").concat(e,"b4(0.5 * a) * 0.25 + ").concat(e,"b2(a); }")},code:function(e,t){return"\n {\n float sz = max(".concat(e,"size, 1e-3);").concat(t.by?"\n float fd = 1.0 - smoothstep(0.0, ".concat(e,"radius, length(frag - ").concat(e,"dpos));\n sz *= 1.0 + fd * ").concat(e,"damt * 1.8;"):"","\n // Centre the threshold on zero so dithering does not lift or\n // crush the overall exposure, only redistributes it.\n float t = ").concat(e,"b8(frag / sz) - 0.5;\n float lv = max(").concat(e,"levels, 1.0);\n ").concat(t.mono?"\n float lum = dot(col, vec3(0.299, 0.587, 0.114));\n float q = step(0.5, lum + t);\n vec3 dq = mix(".concat(e,"ink, ").concat(e,"paper, q);"):"\n // Per channel: scale to level index, offset by the threshold,\n // round, scale back. The +t before rounding is what turns a\n // hard band edge into an interleaved pattern of the two\n // neighbouring levels.\n vec3 dq = floor(col * lv + 0.5 + t) / lv;","\n col = mix(col, clamp(dq, 0.0, 1.0), clamp(").concat(e,"amount, 0.0, 1.0));\n }")},uniforms:function(e,t){return{levels:["1f",null!=e.levels?e.levels:6],size:["1f",(null!=e.size?e.size:1)*t],amount:["1f",null!=e.amount?e.amount:1],ink:["3fv",f(e.ink||"#0B1B2B")],paper:["3fv",f(e.paper||"#FFFFFF")],radius:["1f",(e.radius||220)*t]}}},aberration:{movesCoords:!1,doc:{summary:"Chromatic aberration: the three colour channels are sampled at slightly different offsets, like a cheap lens.",params:{amount:{default:6,unit:"px",summary:"channel separation"},radius:{default:240,unit:"px",summary:"falloff around the focus when `by` names a driver"}}},structural:["by"],stage:"displace",chroma:!0,decl:function(e){return"\n uniform float ".concat(e,"amount;\n uniform float ").concat(e,"radius;\n uniform vec2 ").concat(e,"dpos;\n uniform float ").concat(e,"damt;")},code:function(e,t){return"\n {\n vec2 ctr = ".concat(t.by?"".concat(e,"dpos"):"u_res * 0.5",";\n vec2 dv = sampleP - ctr;\n float dl = length(dv);\n vec2 dir = dl > 0.5 ? dv / dl : vec2(0.0);\n ").concat(t.by?"float amt = ".concat(e,"amount * ").concat(e,"damt *\n (1.0 - smoothstep(0.0, ").concat(e,"radius, dl));"):"float amt = ".concat(e,"amount * (dl / max(length(u_res) * 0.5, 1.0));"),"\n chroma += dir * amt;\n }")},uniforms:function(e,t){return{amount:["1f",(null!=e.amount?e.amount:6)*t],radius:["1f",(e.radius||240)*t]}}},mask:{doc:{summary:'Writes a scalar FIELD for later ops to read — draws nothing itself. Give a downstream op `masked: "name"` and it applies only where this field is high. This is how any op becomes local without knowing anything about masking.',params:{as:{default:"mask",unit:"name",structural:!0,summary:"name of the field written. Consumers name it in `masked:`."},from:{default:"radial",unit:"name",structural:!0,summary:"field shape — compiled in, so changing it rebuilds"},at:{default:[.5,.5],unit:"point",structural:!0,summary:"centre as a fraction of the element box; survives resizes"},radius:{default:260,unit:"px",summary:"field radius"},invert:{default:!1,unit:"bool",summary:"swap inside and outside"},remap:{default:[0,1],unit:"range",summary:"rescale the field's output range"}}},structural:["as","from","at"],stage:"field",producesField:!0,defaultDriver:"static",decl:function(e){return"\n uniform vec2 ".concat(e,"dpos;\n uniform float ").concat(e,"damt;\n uniform float ").concat(e,"radius;\n uniform vec2 ").concat(e,"at;\n uniform vec2 ").concat(e,"remap;\n uniform float ").concat(e,"invert;")},code:function(e,t){var r=t.from||"radial",n=t.at?"(".concat(e,"at * u_res)"):"".concat(e,"dpos"),o="vertical"===r?"frag.y / max(u_res.y, 1.0)":"horizontal"===r?"frag.x / max(u_res.x, 1.0)":"1.0 - smoothstep(0.0, ".concat(e,"radius, length(frag - ").concat(n,"))");return"\n {\n float m = ".concat(o,";\n m = clamp((m - ").concat(e,"remap.x) / max(").concat(e,"remap.y - ").concat(e,"remap.x, 1e-4), 0.0, 1.0);\n m = mix(m, 1.0 - m, ").concat(e,"invert);\n ").concat(_(t.as||"mask")," *= m * ").concat(e,"damt;\n }")},uniforms:function(e,t){return{radius:["1f",(null!=e.radius?e.radius:260)*t],at:["2fv",e.at||[.5,.5]],remap:["2fv",e.remap||[0,1]],invert:["1f",e.invert?1:0]}}},noise:{doc:{summary:"Writes an animated noise FIELD. Same contract as `mask` — it draws nothing; downstream ops read it via `masked:`. Use it to make any other op flicker, breathe or crawl.",params:{as:{default:"mask",unit:"name",structural:!0,summary:"name of the field written"},scale:{default:3,unit:"ratio",summary:"noise frequency across the element"},speed:{default:.3,unit:"seconds",summary:"how fast it evolves; 0 freezes it"},amount:{default:1,unit:"ratio",summary:"blend between flat 1.0 and full noise"},remap:{default:[0,1],unit:"range",summary:"rescale the field's output range"}}},structural:["as"],stage:"field",producesField:!0,decl:function(e){return"\n uniform float ".concat(e,"scale;\n uniform float ").concat(e,"speed;\n uniform vec2 ").concat(e,"remap;\n uniform float ").concat(e,"amp;\n float ").concat(e,"h(vec2 v) {\n return fract(sin(dot(v, vec2(41.113, 289.717))) * 43758.545);\n }\n float ").concat(e,"n(vec2 v) {\n vec2 i = floor(v), f = v - i;\n f = f * f * (3.0 - 2.0 * f);\n return mix(mix(").concat(e,"h(i), ").concat(e,"h(i + vec2(1.0, 0.0)), f.x),\n mix(").concat(e,"h(i + vec2(0.0, 1.0)), ").concat(e,"h(i + vec2(1.0, 1.0)), f.x), f.y);\n }")},code:function(e,t){return"\n {\n vec2 np = frag / max(u_res.y, 1.0) * ".concat(e,"scale;\n // Two octaves: enough structure to read as turbulence\n // without the cost of a full fBm.\n float n = ").concat(e,"n(np + u_time * ").concat(e,"speed) * 0.65 +\n ").concat(e,"n(np * 2.7 - u_time * ").concat(e,"speed * 0.6) * 0.35;\n n = clamp((n - ").concat(e,"remap.x) / max(").concat(e,"remap.y - ").concat(e,"remap.x, 1e-4), 0.0, 1.0);\n ").concat(_(t.as||"mask")," *= mix(1.0, n, ").concat(e,"amp);\n }")},uniforms:function(e){return{scale:["1f",null!=e.scale?e.scale:3],speed:["1f",null!=e.speed?e.speed:.3],remap:["2fv",e.remap||[0,1]],amp:["1f",null!=e.amount?e.amount:1]}}},copy:{multiSample:!0,doc:{summary:"Stamps extra copies of the element over itself. Copies sample the ORIGINAL texture, not the result of earlier colour ops, so a copy of a halftoned element is a copy of the unhalftoned source.",params:{count:{default:5,unit:"count",structural:!0,summary:"stamps arranged in a ring around the focus. The loop is unrolled at compile time, so this rebuilds — not something to animate."},points:{default:null,unit:"point",structural:!0,summary:"explicit [[x,y], ...] in fractions of the element box, instead of a ring. Survives resizes. Overrides `count`."},radius:{default:110,unit:"px",summary:"ring radius when using `count`"},scale:{default:.5,unit:"ratio",summary:"size of each copy"},rotate:{default:0,unit:"deg",summary:"rotation applied per copy"},fade:{default:1,unit:"ratio",summary:"opacity falloff across the set"},amount:{default:1,unit:"ratio",summary:"overall blend of the copies over the original"}}},structural:["count","points"],stage:"color",defaultDriver:"static",decl:function(e){return"\n uniform vec2 ".concat(e,"dpos;\n uniform float ").concat(e,"damt;\n uniform float ").concat(e,"radius;\n uniform float ").concat(e,"scale;\n uniform float ").concat(e,"rotate;\n uniform float ").concat(e,"fade;\n uniform float ").concat(e,"amount;")},code:function(e,t){for(var r=Array.isArray(t.points)&&t.points.length>0,n=r?t.points.length:Math.max(1,Math.min(24,Math.round(t.count||5))),o="",i=function(i){var a,s=r?"vec2(".concat((+t.points[i][0]).toFixed(5),", ").concat((+t.points[i][1]).toFixed(5),") * u_res"):(a=i/n*Math.PI*2,"".concat(e,"dpos + vec2(").concat(Math.cos(a).toFixed(5),", ")+"".concat(Math.sin(a).toFixed(5),") * ").concat(e,"radius"));o+="\n {\n float ang = ".concat(e,"rotate * ").concat((i+1).toFixed(1),";\n float cs = cos(ang), sn = sin(ang);\n // Inverse transform: to draw a stamp scaled by s about a\n // centre c, fetch from the source at (frag - c) / s.\n vec2 d = mat2(cs, -sn, sn, cs) * (frag - (").concat(s,"));\n vec2 q = d / max(").concat(e,"scale, 1e-3) + u_res * 0.5;\n vec2 quv = vec2(q.x / u_res.x, 1.0 - q.y / u_res.y);\n vec2 inside = step(vec2(0.0), quv) * step(quv, vec2(1.0));\n vec4 s = texture2D(u_tex, clamp(quv, 0.0, 1.0));\n float w = s.a * inside.x * inside.y * ").concat(e,"amount * ").concat(e,"damt\n * pow(").concat(e,"fade, ").concat(i.toFixed(1),");\n // Straight-alpha OVER, newest stamp on top.\n float na = w + ovA * (1.0 - w);\n ovCol = (s.rgb * w + ovCol * ovA * (1.0 - w)) / max(na, 1e-4);\n ovA = na;\n }")},a=0;a<n;a++)i(a);return o},uniforms:function(e,t){return{radius:["1f",(null!=e.radius?e.radius:110)*t],scale:["1f",null!=e.scale?e.scale:.5],rotate:["1f",null!=e.rotate?e.rotate:0],fade:["1f",null!=e.fade?e.fade:1],amount:["1f",null!=e.amount?e.amount:1]}}},merge:{doc:{summary:"Runs two sub-chains over the same source and blends the results. The only op that takes other ops as arguments — everything else composes by sequence, this composes in parallel.",params:{a:{default:null,summary:"first branch: an array of nodes",structural:!0},b:{default:null,summary:"second branch: an array of nodes",structural:!0},mode:{default:"over",unit:"name",structural:!0,summary:"how the branches combine: over, add, screen, multiply, difference, lighten. Compiled in, so it rebuilds."},mix:{default:1,unit:"ratio",summary:"how far to blend b into a"}}},structural:["mode","a","b"],stage:"color",decl:function(e){return"uniform float ".concat(e,"mix;")},code:function(){return""},uniforms:function(e){return{mix:["1f",null!=e.mix?e.mix:1]}}},echo:{doc:{summary:"Temporal accumulation — a fading trail of what CHANGED. Typing smears, a ticking counter leaves a comet. The one op that does nothing on the snapshot backend, because a frozen image has no motion to record.",params:{strength:{default:.85,unit:"ratio",summary:"opacity of the trail"},decay:{default:.92,unit:"ratio",summary:"per-second persistence — higher is a longer tail"},tint:{default:"#7FD4FF",unit:"color",summary:"colour pushed into the trail"},tintAmount:{default:.5,unit:"ratio",summary:"how far the trail is tinted"}}},stage:"color",decl:function(e){return"\n uniform sampler2D ".concat(e,"hist;\n uniform float ").concat(e,"strength;\n uniform vec3 ").concat(e,"tint;\n uniform float ").concat(e,"tintAmt;")},code:function(e){return"\n {\n // Sampled in screen space: the trail records where things\n // WERE, which is not where a warp op would fetch them from.\n vec2 huv = vec2(frag.x / u_res.x, 1.0 - frag.y / u_res.y);\n vec4 h = texture2D(".concat(e,"hist, clamp(huv, 0.001, 0.999));\n float ha = clamp(h.a * ").concat(e,"strength, 0.0, 1.0);\n vec3 hc = mix(h.rgb, ").concat(e,"tint, ").concat(e,"tintAmt);\n // Straight-alpha OVER into the border layer so an edges op\n // in the same chain still composites correctly.\n float na = ha + edgeCov * (1.0 - ha);\n edgeCol = (hc * ha + edgeCol * edgeCov * (1.0 - ha)) / max(na, 1e-4);\n edgeCov = na;\n }")},uniforms:function(e){return{strength:["1f",null!=e.strength?e.strength:.85],tint:["3fv",f(e.tint||"#7FD4FF")],tintAmt:["1f",e.tint?null!=e.tintAmount?e.tintAmount:.5:0]}},solver:{resolutions:function(e,t,r){return{frame:[t,r]}},targets:{history:{double:!0,res:"frame",fmt:"rgba",smooth:!0}},samplers:{hist:"history"},programs:{accumulate:"\nprecision highp float;\nuniform sampler2D u_content;\nuniform sampler2D u_hist;\nuniform vec2 u_texel;\nuniform float u_decay;\nvoid main() {\n vec2 uv = gl_FragCoord.xy * u_texel;\n vec4 c = texture2D(u_content, uv);\n vec4 h = texture2D(u_hist, uv) * u_decay;\n gl_FragColor = max(c, h);\n}"},splatColor:function(){return[0,0,0]},step:function(e,t,r){var n=Math.min(r.dt,1/30),o=Math.pow(null!=t.decay?t.decay:.92,60*n);e.use("accumulate"),e.f2("u_texel",1/e.canvasW,1/e.canvasH),e.f1("u_decay",o),e.smp("u_content",e.content,0),e.smp("u_hist",e.read("history"),1),e.blit(e.write("history")),e.swap("history")}}},stir:{doc:{summary:"Stirred liquid: a real fluid simulation the content is dragged through. STATEFUL — it owns a ping-pong pair of render targets that evolve frame to frame, so it is the most expensive op here.",params:{strength:{default:26,unit:"px",summary:"how far the fluid carries the content"},force:{default:1,unit:"ratio",summary:"how hard the pointer pushes the fluid"},radius:{default:.1,unit:"ratio",summary:"splat size, as a fraction of the sim grid"},curl:{default:2.2,unit:"ratio",summary:"vorticity — how much the fluid curls into eddies"},decay:{default:.985,unit:"ratio",summary:"per-second velocity persistence"},pressure:{default:.8,unit:"ratio",summary:"pressure retained between frames"},pressureIterations:{default:6,unit:"count",summary:"solver iterations; higher is stiffer and slower"},intensity:{default:1.6,unit:"ratio",summary:"brightness of the dye layer"},sheen:{default:.15,unit:"ratio",summary:"specular highlight on the surface"},tint:{default:"#7FD4FF",unit:"color",summary:"dye colour, unless `rainbow`"},rainbow:{default:!1,unit:"bool",summary:"cycle dye hue instead of using `tint`"},dye:{default:.85,unit:"ratio",summary:"how much dye colour reaches the final image"},dyeAmount:{default:.6,unit:"ratio",summary:"how much dye each splat injects"},dyeFade:{default:.97,unit:"ratio",summary:"per-second dye persistence"},resolution:{default:128,unit:"count",summary:"velocity grid size, clamped 32..512"},dyeResolution:{default:512,unit:"count",summary:"dye grid size, clamped 64..1024"}}},stage:["warp","color"],decl:function(e){return"\n uniform sampler2D ".concat(e,"vel;\n uniform sampler2D ").concat(e,"dye;\n uniform float ").concat(e,"strength;\n uniform float ").concat(e,"dyemix;\n uniform float ").concat(e,"intensity;\n uniform float ").concat(e,"sheen;\n uniform vec3 ").concat(e,"tint;")},code:function(e,t,r){return"warp"===r?"\n {\n // frag/warped are top-down pixels, the field is bottom-up\n // [0,1]: flip y going in, and flip the y of the vector coming\n // out so the content drags WITH the pointer.\n vec2 fuv = vec2(warped.x / u_res.x, 1.0 - warped.y / u_res.y);\n vec2 v = texture2D(".concat(e,"vel, clamp(fuv, 0.001, 0.999)).xy;\n warped += vec2(v.x, -v.y) * ").concat(e,"strength;\n }"):"\n {\n // Sampled at the CONTINUOUS warped position, never at the\n // cell centre: a cell op upstream (hexalize) snaps the cell\n // centre to one point per tile, which would quantise the\n // liquid into flat per-hex patches instead of smooth swirls.\n vec2 suv = vec2(warped.x / u_res.x, 1.0 - warped.y / u_res.y);\n vec3 dc = texture2D(".concat(e,"dye, clamp(suv, 0.001, 0.999)).rgb;\n float mag = length(dc);\n // Colour is carried IN the dye field and advected with it, so\n // a ribbon keeps its hue while the flow folds it. Deriving\n // colour from the local flow direction instead would make\n // neighbouring pixels jump hue and read as confetti.\n vec3 liquid = mag > 1e-4 ? clamp(dc / mag * 1.25, 0.0, 1.0) : ").concat(e,"tint;\n float amt = clamp((1.0 - exp(-mag * ").concat(e,"intensity)) * ").concat(e,"dyemix, 0.0, 1.0);\n // Straight-alpha OVER so a later overlay op (blobs) still\n // composites correctly on top of the liquid.\n float na = amt + ovA * (1.0 - amt);\n ovCol = (liquid * amt + ovCol * ovA * (1.0 - amt)) / max(na, 1e-4);\n ovA = na;\n\n // Faint sheen on the content itself where the flow is fast.\n float sp = length(texture2D(").concat(e,"vel, clamp(suv, 0.001, 0.999)).xy);\n col = mix(col, ").concat(e,"tint, (1.0 - exp(-sp * 0.7)) * ").concat(e,"sheen);\n }")},uniforms:function(e,t){return{strength:["1f",(null!=e.strength?e.strength:26)*t],sheen:["1f",null!=e.sheen?e.sheen:.15],tint:["3fv",f(e.tint||"#7FD4FF")],dyemix:["1f",null!=e.dye?e.dye:.85],intensity:["1f",null!=e.intensity?e.intensity:1.6]}},solver:{resolutions:function(e){return{sim:Math.max(32,Math.min(e.resolution||128,512)),dye:Math.max(64,Math.min(e.dyeResolution||512,1024))}},targets:{velocity:{double:!0,res:"sim",fmt:"rg",smooth:!0},dye:{double:!0,res:"dye",fmt:"rgba",smooth:!0},pressure:{double:!0,res:"sim",fmt:"r",smooth:!1},divergence:{double:!1,res:"sim",fmt:"r",smooth:!1},vorticity:{double:!1,res:"sim",fmt:"r",smooth:!1}},samplers:{vel:"velocity",dye:"dye"},programs:{splat:"\nprecision highp float;\nuniform sampler2D u_src;\nuniform vec2 u_texel;\nuniform vec2 u_point;\nuniform vec3 u_amount;\nuniform float u_radius;\nuniform float u_aspect;\nvoid main() {\n vec2 uv = gl_FragCoord.xy * u_texel;\n vec2 d = uv - u_point;\n if (u_aspect >= 1.0) d.y /= u_aspect; else d.x *= u_aspect;\n float g = exp(-dot(d, d) / max(u_radius * u_radius, 1e-6));\n gl_FragColor = vec4(texture2D(u_src, uv).xyz + u_amount * g, 1.0);\n}",advect:"\nprecision highp float;\nuniform sampler2D u_vel;\nuniform sampler2D u_src;\nuniform vec2 u_texel;\nuniform float u_dt;\nuniform float u_diss;\nvoid main() {\n vec2 uv = gl_FragCoord.xy * u_texel;\n vec2 back = uv - texture2D(u_vel, uv).xy * u_dt;\n gl_FragColor = vec4(texture2D(u_src, clamp(back, 0.0, 1.0)).xyz * u_diss, 1.0);\n}",curl:"\nprecision highp float;\nuniform sampler2D u_vel;\nuniform vec2 u_texel;\nvoid main() {\n vec2 uv = gl_FragCoord.xy * u_texel;\n float r = texture2D(u_vel, uv + vec2(u_texel.x, 0.0)).y;\n float l = texture2D(u_vel, uv - vec2(u_texel.x, 0.0)).y;\n float t = texture2D(u_vel, uv + vec2(0.0, u_texel.y)).x;\n float b = texture2D(u_vel, uv - vec2(0.0, u_texel.y)).x;\n gl_FragColor = vec4(0.5 * ((r - l) - (t - b)), 0.0, 0.0, 1.0);\n}",confine:"\nprecision highp float;\nuniform sampler2D u_vel;\nuniform sampler2D u_curl;\nuniform vec2 u_texel;\nuniform float u_eps;\nuniform float u_dt;\nvoid main() {\n vec2 uv = gl_FragCoord.xy * u_texel;\n float r = texture2D(u_curl, uv + vec2(u_texel.x, 0.0)).x;\n float l = texture2D(u_curl, uv - vec2(u_texel.x, 0.0)).x;\n float t = texture2D(u_curl, uv + vec2(0.0, u_texel.y)).x;\n float b = texture2D(u_curl, uv - vec2(0.0, u_texel.y)).x;\n float c = texture2D(u_curl, uv).x;\n vec2 grad = 0.5 * vec2(abs(r) - abs(l), abs(t) - abs(b));\n vec2 n = grad / (length(grad) + 1e-5);\n vec2 force = u_eps * c * vec2(n.y, -n.x);\n vec2 v = texture2D(u_vel, uv).xy + force * u_dt;\n gl_FragColor = vec4(clamp(v, -64.0, 64.0), 0.0, 1.0);\n}",divergence:"\nprecision highp float;\nuniform sampler2D u_vel;\nuniform vec2 u_texel;\nvoid main() {\n vec2 uv = gl_FragCoord.xy * u_texel;\n float r = texture2D(u_vel, uv + vec2(u_texel.x, 0.0)).x;\n float l = texture2D(u_vel, uv - vec2(u_texel.x, 0.0)).x;\n float t = texture2D(u_vel, uv + vec2(0.0, u_texel.y)).y;\n float b = texture2D(u_vel, uv - vec2(0.0, u_texel.y)).y;\n vec2 c = texture2D(u_vel, uv).xy;\n if (uv.x - u_texel.x < 0.0) l = -c.x;\n if (uv.x + u_texel.x > 1.0) r = -c.x;\n if (uv.y - u_texel.y < 0.0) b = -c.y;\n if (uv.y + u_texel.y > 1.0) t = -c.y;\n gl_FragColor = vec4(0.5 * ((r - l) + (t - b)), 0.0, 0.0, 1.0);\n}",jacobi:"\nprecision highp float;\nuniform sampler2D u_p;\nuniform sampler2D u_div;\nuniform vec2 u_texel;\nvoid main() {\n vec2 uv = gl_FragCoord.xy * u_texel;\n float r = texture2D(u_p, uv + vec2(u_texel.x, 0.0)).x;\n float l = texture2D(u_p, uv - vec2(u_texel.x, 0.0)).x;\n float t = texture2D(u_p, uv + vec2(0.0, u_texel.y)).x;\n float b = texture2D(u_p, uv - vec2(0.0, u_texel.y)).x;\n float d = texture2D(u_div, uv).x;\n gl_FragColor = vec4((r + l + t + b - d) * 0.25, 0.0, 0.0, 1.0);\n}",subtract:"\nprecision highp float;\nuniform sampler2D u_p;\nuniform sampler2D u_vel;\nuniform vec2 u_texel;\nvoid main() {\n vec2 uv = gl_FragCoord.xy * u_texel;\n float r = texture2D(u_p, uv + vec2(u_texel.x, 0.0)).x;\n float l = texture2D(u_p, uv - vec2(u_texel.x, 0.0)).x;\n float t = texture2D(u_p, uv + vec2(0.0, u_texel.y)).x;\n float b = texture2D(u_p, uv - vec2(0.0, u_texel.y)).x;\n vec2 v = texture2D(u_vel, uv).xy - 0.5 * vec2(r - l, t - b);\n gl_FragColor = vec4(v, 0.0, 1.0);\n}",decay:"\nprecision highp float;\nuniform sampler2D u_tex;\nuniform vec2 u_texel;\nuniform float u_value;\nvoid main() {\n gl_FragColor = texture2D(u_tex, gl_FragCoord.xy * u_texel) * u_value;\n}"},splatColor:function(e,t,r){var n=null!=e.dyeAmount?e.dyeAmount:.6;if(!e.rainbow){var o=f(e.tint||"#7FD4FF");return[o[0]*n,o[1]*n,o[2]*n]}var i=Math.atan2(r,t);return[(.5+.5*Math.cos(i))*n,(.5+.5*Math.cos(i+2.0944))*n,(.5+.5*Math.cos(i+4.1888))*n]},step:function(e,t,r){var n=Math.min(r.dt,1/30),o=1/e.res.sim,i=1/e.res.dye,a=function(e,t){return Math.pow(e,60*t)};if(r.moving){var s=null!=t.force?t.force:1;e.use("splat"),e.f1("u_radius",null!=t.radius?t.radius:.1),e.f1("u_aspect",r.aspect),e.f2("u_point",r.px,r.py),e.f2("u_texel",o,o),e.smp("u_src",e.read("velocity"),0),e.f3("u_amount",r.dx*s,r.dy*s,0),e.blit(e.write("velocity")),e.swap("velocity"),e.f2("u_texel",i,i),e.smp("u_src",e.read("dye"),0),e.f3("u_amount",r.col[0],r.col[1],r.col[2]),e.blit(e.write("dye")),e.swap("dye")}e.use("curl"),e.f2("u_texel",o,o),e.smp("u_vel",e.read("velocity"),0),e.blit(e.single("vorticity")),e.use("confine"),e.f2("u_texel",o,o),e.f1("u_eps",null!=t.curl?t.curl:2.2),e.f1("u_dt",n),e.smp("u_vel",e.read("velocity"),0),e.smp("u_curl",e.single("vorticity"),1),e.blit(e.write("velocity")),e.swap("velocity"),e.use("divergence"),e.f2("u_texel",o,o),e.smp("u_vel",e.read("velocity"),0),e.blit(e.single("divergence")),e.use("decay"),e.f2("u_texel",o,o),e.f1("u_value",a(null!=t.pressure?t.pressure:.8,n)),e.smp("u_tex",e.read("pressure"),0),e.blit(e.write("pressure")),e.swap("pressure"),e.use("jacobi"),e.f2("u_texel",o,o),e.smp("u_div",e.single("divergence"),1);for(var l=Math.max(1,Math.min(t.pressureIterations||6,40)),c=0;c<l;c++)e.smp("u_p",e.read("pressure"),0),e.blit(e.write("pressure")),e.swap("pressure");e.use("subtract"),e.f2("u_texel",o,o),e.smp("u_p",e.read("pressure"),0),e.smp("u_vel",e.read("velocity"),1),e.blit(e.write("velocity")),e.swap("velocity"),e.use("advect"),e.f1("u_dt",n),e.f2("u_texel",o,o),e.smp("u_vel",e.read("velocity"),0),e.smp("u_src",e.read("velocity"),0),e.f1("u_diss",a(null!=t.decay?t.decay:.985,n)),e.blit(e.write("velocity")),e.swap("velocity"),e.f2("u_texel",i,i),e.smp("u_vel",e.read("velocity"),0),e.smp("u_src",e.read("dye"),1),e.f1("u_diss",a(null!=t.dyeFade?t.dyeFade:.97,n)),e.blit(e.write("dye")),e.swap("dye")}}},blobs:{doc:{summary:"Liquid-glass blobs that follow the pointer: a chain of metaballs refracting the content behind them, stretching apart on a fast flick and relaxing back to a single circle at rest.",params:{count:{default:1,unit:"count",structural:!0,summary:"independent drifting blobs, on top of the trail chain"},trail:{default:7,unit:"count",structural:!0,summary:"blobs in the follow-the-leader chain. Unrolled at compile time, so it rebuilds."},radius:{default:46,unit:"px",summary:"blob radius at rest"},color:{default:"#EAF4EE",unit:"color",summary:"glass tint"},refract:{default:70,unit:"px",summary:"how far the glass bends what is behind it"},rim:{default:.6,unit:"ratio",summary:"brightness of the rim light"},alpha:{default:1,unit:"ratio",summary:"overall opacity"},iridescence:{default:.8,unit:"ratio",summary:"colour shift across the rim"},dispersion:{default:1,unit:"ratio",summary:"per-channel refraction spread"},frost:{default:.25,unit:"ratio",summary:"blur of what shows through"}}},structural:["count","trail"],stage:"color",overlay:!0,mips:!0,decl:function(e){return"\n uniform vec3 ".concat(e,"blobs[").concat(12,"];\n uniform int ").concat(e,"count;\n uniform vec3 ").concat(e,"tint;\n uniform float ").concat(e,"refract;\n uniform float ").concat(e,"rim;\n uniform float ").concat(e,"alpha;\n uniform float ").concat(e,"irid;\n uniform float ").concat(e,"disp;\n uniform float ").concat(e,"frost;\n float ").concat(e,"hash(vec3 v) {\n return fract(sin(dot(v, vec3(21.9898, 63.233, 41.719))) * 41739.317);\n }\n float ").concat(e,"noise(vec3 v) {\n vec3 f = floor(v);\n vec3 r = v - f;\n r = r * r * (3.0 - 2.0 * r);\n float c000 = ").concat(e,"hash(f);\n float c100 = ").concat(e,"hash(f + vec3(1.0, 0.0, 0.0));\n float c010 = ").concat(e,"hash(f + vec3(0.0, 1.0, 0.0));\n float c110 = ").concat(e,"hash(f + vec3(1.0, 1.0, 0.0));\n float c001 = ").concat(e,"hash(f + vec3(0.0, 0.0, 1.0));\n float c101 = ").concat(e,"hash(f + vec3(1.0, 0.0, 1.0));\n float c011 = ").concat(e,"hash(f + vec3(0.0, 1.0, 1.0));\n float c111 = ").concat(e,"hash(f + vec3(1.0, 1.0, 1.0));\n return mix(\n mix(mix(c000, c100, r.x), mix(c010, c110, r.x), r.y),\n mix(mix(c001, c101, r.x), mix(c011, c111, r.x), r.y), r.z);\n }")},code:function(e){return"\n {\n float field = 0.0;\n vec2 grad = vec2(0.0);\n for (int bi = 0; bi < ".concat(12,"; bi++) {\n if (bi >= ").concat(e,"count) break;\n vec2 bd = frag - ").concat(e,"blobs[bi].xy;\n float br = ").concat(e,"blobs[bi].z;\n float dd = max(dot(bd, bd), 1.0);\n field += (br * br) / dd;\n grad += (-2.0 * (br * br) / (dd * dd)) * bd;\n }\n float bmask = smoothstep(0.6, 1.0, field);\n if (bmask > 0.003) {\n float gmag = length(grad);\n vec2 g2 = gmag > 1e-6 ? -grad / gmag : vec2(0.0);\n // Pseudo-3D surface normal from the 2D field. For a\n // metaball field (sum of r^2/d^2), 1/sqrt(field) IS the\n // normalized radial position: 0 at the centre, 1 at the\n // surface. That yields a true hemisphere profile — the\n // curvature (and therefore refraction) varies smoothly\n // across the WHOLE disc, not just an edge annulus.\n float s = clamp(inversesqrt(max(field, 1e-4)), 0.0, 1.0);\n vec3 n = normalize(vec3(g2 * s, sqrt(max(1.0 - s * s, 0.004))));\n vec3 rd = vec3(0.0, 0.0, -1.0);\n\n // Dispersion: refract each channel with a slightly\n // different index (water-glass ~1.33). Near the rim the\n // exit direction flattens (|z| -> 0), so the sampling\n // offsets stretch — producing the smooth concentric\n // colour-fringed bands of a thick lens.\n float ca = 0.03 * ").concat(e,"disp;\n vec3 tR = refract(rd, n, 1.0 / (1.33 - ca));\n vec3 tG = refract(rd, n, 1.0 / 1.33);\n vec3 tB = refract(rd, n, 1.0 / (1.33 + ca));\n vec2 oR = tR.xy * (").concat(e,"refract / max(abs(tR.z), 0.3));\n vec2 oG = tG.xy * (").concat(e,"refract / max(abs(tG.z), 0.3));\n vec2 oB = tB.xy * (").concat(e,"refract / max(abs(tB.z), 0.3));\n\n // Blur grows with how far the ray was bent (mip bias), so\n // strongly-refracted regions smear smoothly instead of\n // showing sharp displaced copies. frost adds a base blur.\n float lod = ").concat(e,"frost * 5.0 + log2(1.0 + length(oG) * 0.035);\n vec2 px = 1.0 / u_res;\n vec4 sG = texture2D(u_tex, clamp(uv + oG * px, 0.002, 0.998), lod);\n vec3 refr;\n refr.r = texture2D(u_tex, clamp(uv + oR * px, 0.002, 0.998), lod).r;\n refr.g = sG.g;\n refr.b = texture2D(u_tex, clamp(uv + oB * px, 0.002, 0.998), lod).b;\n // Blend in (approximately) linear light for clean fringes.\n refr = pow(max(refr, 0.0), vec3(2.2));\n\n vec3 tintLin = pow(").concat(e,"tint, vec3(2.2));\n vec3 bodyLin = mix(tintLin * 0.35, refr, sG.a);\n\n // Glass darkens toward the silhouette (absorption), the\n // opposite of an additive glow ring.\n float edge = pow(1.0 - clamp(n.z, 0.0, 1.0), 1.5);\n bodyLin *= 1.0 - 0.35 * ").concat(e,"rim * edge;\n vec3 body = pow(max(bodyLin, 0.0), vec3(1.0 / 2.2));\n\n // Sparse iridescent glints: two drifting value-noise\n // fields sampled on the reflection direction, one warm\n // one cool, sharpened hard so only sparkles survive.\n vec3 rf = reflect(rd, n);\n float nA = ").concat(e,"noise(rf * 2.3 + u_time * 0.5);\n float nB = ").concat(e,"noise(rf * 2.3 - u_time * 0.5);\n vec3 glint = pow(max(vec3(0.30, 0.52, 0.86) * nA +\n vec3(0.80, 0.56, 0.34) * nB, 0.0), vec3(6.0));\n body += glint * ").concat(e,"irid;\n\n // Small hard specular from a fixed key light.\n vec3 L = normalize(vec3(-0.5, 0.7, 0.6));\n float spec = pow(max(dot(reflect(-L, n), vec3(0.0, 0.0, 1.0)), 0.0), 60.0);\n body += spec * 0.35;\n\n ovCol = body;\n ovA = max(ovA, bmask * ").concat(e,"alpha);\n }\n }")},uniforms:function(e,t){return{tint:["3fv",f(e.color||"#EAF4EE")],refract:["1f",(null!=e.refract?e.refract:70)*t],rim:["1f",null!=e.rim?e.rim:.6],alpha:["1f",null!=e.alpha?e.alpha:1],irid:["1f",null!=e.iridescence?e.iridescence:.8],disp:["1f",null!=e.dispersion?e.dispersion:1],frost:["1f",null!=e.frost?e.frost:.25]}},init:function(e,t,r,n){for(var o=(e.radius||46)*t,i=Math.max(1,Math.min(null!=e.trail?e.trail:7,12)),a=[],s=0,l=0;l<i;l++){var c=Math.pow(.86,l);a.push(c),s+=c*c}for(var u=Math.sqrt(s),d=a.map(function(e){return o*e/u}),f=a.map(function(e,t){return.85*o*Math.pow(.955,t)}),p=function(e,t){return e+Math.random()*(t-e)},h=Math.max(0,Math.min((e.count||1)-1,12-i)),y=[],m=0;m<h;m++){var v=p(0,2*Math.PI),b=p(30,80)*t;y.push({x:p(o,r-o),y:p(o,n-o),r:o*p(.45,.8),vx:Math.cos(v)*b,vy:Math.sin(v)*b,phase:p(0,2*Math.PI)})}for(var g={x:.5*r,y:.55*n},w=[],_=0;_<i;_++)w.push({x:g.x,y:g.y});return{head:g,chain:w,nTrail:i,drifters:y,trailIdleR:d,trailMoveR:f,stretch:0,seg:.9*o}},tick:function(e,t){var r=Math.min(t.dt,.05),n=t.w,o=t.h,a=1-Math.exp(9*-r);e.head.x+=(t.mouseX-e.head.x)*a,e.head.y+=(t.mouseY-e.head.y)*a;var s=e.chain;s[0].x=e.head.x,s[0].y=e.head.y;for(var l=1-Math.exp(16*-r),c=1;c<s.length;c++){var u=s[c-1],d=s[c],f=u.x-d.x,p=u.y-d.y,h=Math.hypot(f,p)||1e-4,y=e.seg;h>y&&(d.x+=f*(1-y/h),d.y+=p*(1-y/h)),d.x+=(u.x-d.x)*l,d.y+=(u.y-d.y)*l}var m=s[s.length-1],v=Math.hypot(m.x-e.head.x,m.y-e.head.y),b=Math.max(1,e.seg*(e.nTrail-1)),g=Math.min(1,v/b);e.stretch+=(g-e.stretch)*(1-Math.exp(8*-r));var w,_=i(e.drifters);try{for(_.s();!(w=_.n()).done;){var x=w.value;x.x+=x.vx*r,x.y+=x.vy*r,x.x<x.r?(x.x=x.r,x.vx=Math.abs(x.vx)):x.x>n-x.r&&(x.x=n-x.r,x.vx=-Math.abs(x.vx)),x.y<x.r?(x.y=x.r,x.vy=Math.abs(x.vy)):x.y>o-x.r&&(x.y=o-x.r,x.vy=-Math.abs(x.vy)),x.phase+=1.6*r}}catch(e){_.e(e)}finally{_.f()}for(var k=new Float32Array(36),O=e.stretch,S=0;S<e.nTrail;S++){var E=s[S];k[3*S]=E.x,k[3*S+1]=E.y,k[3*S+2]=e.trailIdleR[S]+(e.trailMoveR[S]-e.trailIdleR[S])*O}return e.drifters.forEach(function(t,r){var n=e.nTrail+r;k[3*n]=t.x,k[3*n+1]=t.y,k[3*n+2]=t.r*(1+.12*Math.sin(t.phase))}),[{name:"blobs",kind:"3fv",value:k},{name:"count",kind:"1i",value:e.nTrail+e.drifters.length}]}}};function f(e){return[1,3,5].map(function(t){return parseInt(e.slice(t,t+2),16)/255})}var p=Object.keys(d).concat("switch"),h=["px","ratio","deg","count","seconds"];function y(e,t,r){if(!Array.isArray(r)||r.length<2)return!1;var n,o=i(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("number"!=typeof a||!Number.isFinite(a))return!1}}catch(e){o.e(e)}finally{o.f()}var s=d[e],l=s&&s.doc&&s.doc.params&&s.doc.params[t];return!!l&&h.includes(l.unit)}function m(e,t){var r=e.length-1,n=Math.min(1,Math.max(0,t))*r,o=Math.min(r-1,Math.floor(n));return e[o]+(e[o+1]-e[o])*(n-o)}var v={linear:function(e){return e},in:function(e){return e*e*e},out:function(e){return 1-Math.pow(1-e,3)},"in-out":function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},back:function(e){return 1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2)}},b=Object.keys(v);var g="attribute vec2 a; void main(){ gl_Position = vec4(a, 0.0, 1.0); }",w={warp:["warped"],cell:["center","edge"],displace:["sampleP","chroma"],color:["col","edgeCol","edgeCov","ovCol","ovA"]},_=(["field"].concat(n(Object.keys(w))),"what steers the effect: ".concat(u.join(", "),". "),"easing for this node's local progress: ".concat(b.join(", ")),function(e){return"fld_".concat(String(e).replace(/[^A-Za-z0-9_]/g,""))}),x=function(e){return!0===e.masked?"mask":"string"==typeof e.masked?e.masked:null},k=function(e){return"edge"===e||"edgeCov"===e||"ovA"===e?"float":"col"===e||"edgeCol"===e||"ovCol"===e?"vec3":"vec2"},O={over:function(e,t){return t},add:function(e,t){return"min(".concat(e," + ").concat(t,", vec3(1.0))")},screen:function(e,t){return"1.0 - (1.0 - ".concat(e,") * (1.0 - ").concat(t,")")},multiply:function(e,t){return"".concat(e," * ").concat(t)},difference:function(e,t){return"abs(".concat(e," - ").concat(t,")")},lighten:function(e,t){return"max(".concat(e,", ").concat(t,")")},darken:function(e,t){return"min(".concat(e,", ").concat(t,")")}},S=function(){return{field:"",warp:"",cell:"",displace:"",color:""}};function E(e,t){var r,n=[],o=i(e||[]);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a&&a.op){var s={node:a,i:t.length};t.push(a),"merge"===a.op&&(s.a=E(a.a,t),s.b=E(a.b,t)),n.push(s)}}}catch(e){o.e(e)}finally{o.f()}return n}function j(e,t){var r,n=i(e);try{var o=function(){var e=r.value,n=e.node;if("merge"===n.op)return function(e,t){var r="u".concat(e.i,"_"),n=O[e.node.mode]||O.over,o=S(),i=S();j(e.a||[],o),j(e.b||[],i),t.field+=o.field+i.field;for(var a=function(){var e=l[s];if(!o[e]&&!i[e])return 1;var a=w[e],c=" {\n";a.forEach(function(e,t){c+=" ".concat(k(e)," pre").concat(t," = ").concat(e,";\n")}),c+=o[e],a.forEach(function(e,t){c+=" ".concat(k(e)," bra").concat(t," = ").concat(e,";\n")}),a.forEach(function(e,t){c+=" ".concat(e," = pre").concat(t,";\n")}),c+=i[e],a.forEach(function(e,t){var o="vec3"===k(e)?n("bra".concat(t),e):e;c+=" ".concat(e," = mix(bra").concat(t,", ").concat(o,", ").concat(r,"mix);\n")}),c+=" }\n",t[e]+=c},s=0,l=["warp","cell","displace","color"];s<l.length;s++)a()}(e,t),0;var o=d[n.op];if(!o)return 0;var i="u".concat(e.i,"_"),a=Array.isArray(o.stage)?o.stage:[o.stage],s=x(n);a.forEach(function(e){var r=o.code(i,n,e)+"\n";if(s&&w[e]){var a=w[e],l=a.map(function(e,t){return" ".concat(k(e)," msv").concat(t," = ").concat(e,";")}).join("\n"),c=a.map(function(e,t){return" ".concat(e," = mix(msv").concat(t,", ").concat(e,", ").concat(_(s),");")}).join("\n");r=" {\n".concat(l,"\n").concat(r,"\n").concat(c,"\n }\n")}t["field"===e||"warp"===e||"cell"===e||"displace"===e?e:"color"]+=r})};for(n.s();!(r=n.n()).done;)o()}catch(e){n.e(e)}finally{n.f()}}function P(e,t,r,o){var i=o&&o.fade||"opaque",a="",s=new Set;t.forEach(function(e){var t=d[e.op];t&&t.producesField&&s.add(e.as||"mask");var r=x(e);r&&s.add(r)});var l=n(s).map(function(e){return" float ".concat(_(e)," = 1.0;")}).join("\n");t.forEach(function(e,t){var r=d[e.op];r&&(a+=r.decl("u".concat(t,"_"),e)+"\n")});var c=function(e){var t=e&&e.node&&e.node.side;if("old"!==t&&"new"!==t)return null;var r=d[e.node.op],n=r?Array.isArray(r.stage)?r.stage:[r.stage]:[];return n.every(function(e){return"color"===e})?o?t:(console.warn('[nodality] side:"'.concat(t,'" has no meaning without a ')+"transition — there is only one image. Ignoring it."),null):(console.warn('[nodality] "'.concat(e.node.op,'" is a ').concat(n.join("+")," op, ")+'so side:"'.concat(t,'" cannot apply to it — a sided op must be colour-only, ')+"because both sides share one sampling coordinate. Running it on the blended result instead."),null)},u=e.filter(function(e){return!c(e)}),f=e.filter(function(e){return"old"===c(e)}),p=e.filter(function(e){return"new"===c(e)}),h=S();j(u,h);var y=function(e,t){if(!e.length)return"";var r=S();if(j(e,r),!r.color)return"";var n=w.color.filter(function(e){return"col"!==e}).map(function(e){return" ".concat(k(e)," ").concat(e," = ").concat("vec3"===k(e)?"vec3(0.0)":"0.0",";")}).join("\n");return" {\n vec2 frag = p;\n vec3 col = ".concat(t,".rgb;\n").concat(n,"\n").concat(r.color,"\n ").concat(t,".rgb = col;\n }\n")},m=y(f,"o"),v=y(p,"n"),b=h.field,g=h.warp,O=h.cell,E=h.displace,P=h.color,C=t,T=C.some(function(e){return"edges"===e.op})?"":" col *= 1.0 - edge * 0.55;",A=C.some(function(e){return(d[e.op]||{}).chroma})?o?"\n vec2 cdev = vec2(chroma.x, chroma.y);\n col.r = nodSampleAt(sampleP + cdev).r;\n col.b = nodSampleAt(sampleP - cdev).b;":"\n vec2 cpx = vec2(chroma.x, -chroma.y) / u_res;\n col.r = texture2D(u_tex, clamp(uv + cpx, 0.001, 0.999)).r;\n col.b = texture2D(u_tex, clamp(uv - cpx, 0.001, 0.999)).b;":"",R=r?"u_probe + vec2(0.5)":"gl_FragCoord.xy";return"\nprecision highp float;\nuniform sampler2D u_tex;\nuniform vec2 u_res;\nuniform vec2 u_mouse;\nuniform float u_time;\nuniform float u_t; // phase T1: transition progress, 0..1\n\n// Op uniforms are declared HERE, above the transition helpers, because a\n// per-side op's code is emitted inside nodSampleAt. GLSL requires\n// declaration before use, and with the declarations further down every\n// sided op failed to compile with \"'u0_amount' : undeclared identifier\".\n".concat(r?"uniform vec2 u_probe;\n":"").concat(a,"\n").concat(o?"\n// ── phase T2: transition mode ──────────────────────────────────────\n// Two captures instead of one. u_tex is the NEW element, u_old the\n// frozen OLD one, and u_box is the content box they are both drawn\n// into — lerped from the old rect to the new rect by u_t. So geometry\n// (the box) and pixels (the effect chain) stay separate problems, which\n// is the split View Transitions also makes and the one that keeps this\n// maintainable.\nuniform sampler2D u_old;\n".concat(o&&o.newImage?"uniform sampler2D u_newimg;":"",'\n// Phase T2, gap 2. TWO boxes, not one. With a single shared box the\n// only expressible motion is "both sides march together", so the classic\n// "old slides out while new slides in" was impossible. Each capture now\n// interpolates in its own rect, which keeps per-side motion in the\n// GEOMETRY tier (P-3) instead of needing per-side op scoping.\nuniform vec4 u_boxOld; // x, y, w, h — device px, top-down\nuniform vec4 u_boxNew;\n\n// sRGB <-> linear. A naive crossfade in gamma space dips visibly in\n// brightness at mid-fade on photographic content; this is the classic\n// artifact and it is why the mix below is not just mix().\nvec3 nodToLinear(vec3 c) { return pow(c, vec3(2.2)); }\nvec3 nodToSRGB(vec3 c) { return pow(c, vec3(1.0 / 2.2)); }\n\n// Premultiplied, so anti-aliased edges over transparency do not pick up\n// a dark halo as the two sides cross.\nvec4 nodBlend(vec4 a, vec4 b, float t, float d) {\n vec3 pa = nodToLinear(a.rgb) * a.a;\n vec3 pb = nodToLinear(b.rgb) * b.a;\n').concat("morph"===i?"\n // MORPH — a per-pixel CHOICE, not a mix. d is a stable hash of the\n // output pixel, so each pixel flips from old to new at its own point\n // in t. At any instant almost every pixel is showing exactly ONE\n // side, and the two contents are never both legible at once.\n //\n // A uniform crossfade cannot do this: at t=0.5 it is by definition\n // 50% of each, which reads as a double exposure the moment the two\n // states differ much — a wide nav bar and a small card, say.\n float k = smoothstep(d - 0.12, d + 0.12, t);\n vec3 pm = pa * (1.0 - k) + pb * k;\n float al = a.a * (1.0 - k) + b.a * k;":"dissolve"===i?'\n // DISSOLVE — a true cross-dissolve: alpha lerps between the two.\n // Correct, and the right choice when one side really should fade to\n // nothing. Wrong for a shape morph, because any region covered by\n // only ONE side is translucent for the whole transition and the\n // morph reads as "everything is disappearing".\n vec3 pm = mix(pa, pb, t);\n float al = mix(a.a, b.a, t);':"\n // OPAQUE (default) — the colour crosses over without the shape\n // thinning out. The coverage-weighted lerp already gives that for\n // free, and it is worth seeing why:\n //\n // both sides cover a.a = b.a = 1 -> w = 1 at every t. Solid\n // throughout. No mid-fade.\n // only the old b.a = 0 -> w = 1-t. Releases.\n // only the new a.a = 0 -> w = t. Arrives.\n //\n // So one expression covers the union case AND each side's release,\n // linearly, with no curve to pop against.\n vec3 pm = pa * (1.0 - t) + pb * t;\n float al = a.a * (1.0 - t) + b.a * t;","\n return vec4(nodToSRGB(pm / max(al, 1e-4)), al);\n}\n\n// EVERY fetch in transition mode goes through here. A displace-stage op\n// that sampled u_tex directly — aberration does exactly that for its\n// per-channel taps — would show fringes from the new capture only, with\n// the old one silently absent from those channels.\n// Takes a position in DEVICE PX (sampleP space), not uv, because the two\n// captures no longer share a uv. Each is mapped through its own box and\n// masked to it, then blended.\nvec2 nodBoxUV(vec4 box, vec2 p) {\n return vec2((p.x - box.x) / max(box.z, 1.0),\n 1.0 - (p.y - box.y) / max(box.w, 1.0));\n}\nfloat nodInBox(vec2 uv) {\n return step(0.0, uv.x) * step(uv.x, 1.0) * step(0.0, uv.y) * step(uv.y, 1.0);\n}\nvec4 nodSampleAt(vec2 p) {\n vec2 uo = nodBoxUV(u_boxOld, p);\n vec2 un = nodBoxUV(u_boxNew, p);\n vec4 o = texture2D(u_old, clamp(uo, 0.001, 0.999));\n // With newImage the new side is a capture of the ELEMENT, so both\n // sides can travel between their own rects and converge into one\n // shape. Without it the new side is the HOST capture, which can only\n // be mapped 1:1 — the destination then sits at its final place from\n // t=0 while the old shrinks toward it, and the result reads as two\n // things on screen at once rather than one thing morphing.\n vec4 n = texture2D(").concat(o&&o.newImage?"u_newimg":"u_tex",",\n clamp(un, 0.001, 0.999));\n o.a *= nodInBox(uo);\n n.a *= nodInBox(un);\n").concat(m).concat(v,"\n // The threshold each pixel flips at. Mostly a COHERENT ramp down the\n // box with a little grain on top — pure white noise chooses correctly\n // (never two legible images at once) but reads as television static\n // rather than as one thing becoming another. The ramp makes it a\n // wipe; the grain keeps the edge from looking like a ruler.\n float grain = fract(sin(dot(floor(p / 3.0), vec2(12.9898, 78.233))) * 43758.5453);\n float ramp = clamp(un.y, 0.0, 1.0);\n float d = ramp * 0.82 + grain * 0.18;\n return nodBlend(o, n, u_t, d);\n}"):"","\nvoid main() {\n vec2 fc = ").concat(R,";\n vec2 frag = vec2(fc.x, u_res.y - fc.y);\n").concat(l,"\n").concat(b,"\n vec2 warped = frag;\n").concat(g,"\n vec2 center = warped;\n float edge = 0.0;\n").concat(O,"\n vec2 sampleP = warped;\n vec2 chroma = vec2(0.0);\n").concat(E).concat(r?"\n vec2 q = clamp(sampleP / u_res, 0.0, 1.0) * 255.0;\n vec2 hi = floor(q);\n vec2 lo = floor(fract(q) * 255.0);\n gl_FragColor = vec4(hi.x, lo.x, hi.y, lo.y) / 255.0;\n}":"\n".concat(o?"\n // uv stays defined, as the NEW box's, for ops that reference it.\n vec2 uv = nodBoxUV(u_boxNew, sampleP);\n vec4 tex = nodSampleAt(sampleP);":"\n vec2 uv = vec2(sampleP.x / u_res.x, 1.0 - sampleP.y / u_res.y);\n vec4 tex = texture2D(u_tex, clamp(uv, 0.001, 0.999));","\n vec3 col = tex.rgb;").concat(A,"\n vec3 edgeCol = vec3(1.0);\n float edgeCov = 0.0;\n vec3 ovCol = vec3(0.0);\n float ovA = 0.0;\n").concat(P,"\n").concat(T,"\n // content OVER border\n float baseA = tex.a + edgeCov * (1.0 - tex.a);\n vec3 baseRGB = (col * tex.a + edgeCol * edgeCov * (1.0 - tex.a)) / max(baseA, 1e-4);\n // overlay OVER (content+border)\n float outA = ovA + baseA * (1.0 - ovA);\n vec3 outRGB = (ovCol * ovA + baseRGB * baseA * (1.0 - ovA)) / max(outA, 1e-4);\n gl_FragColor = vec4(outRGB, outA);\n}"))}var C=/\d(?:vw|vh|vmin|vmax|dvw|dvh|svw|svh|lvw|lvh)\b/i,T=["color","font-family","font-size","font-weight","font-style","line-height","letter-spacing","text-align","text-transform","text-decoration-color","white-space","word-break"],A=["background-color","background-image","background-size","background-position","background-repeat","background-clip","border-radius","box-shadow","opacity","outline-color"],R=new Set(["none","rgba(0, 0, 0, 0)","transparent","0px","auto","1","repeat","0% 0%","border-box","0% 0% / auto repeat scroll padding-box border-box"]);var M={coarse:"(pointer: coarse)",fine:"(pointer: fine)",hover:"(hover: hover)","no-hover":"(hover: none)","reduced-motion":"(prefers-reduced-motion: reduce)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"};function D(e){if("function"==typeof e)try{return!!e()}catch(e){return!1}if("boolean"==typeof e)return e;if("string"!=typeof e||""===e)return!1;var t=M[e]||e;if("undefined"==typeof window||"function"!=typeof window.matchMedia)return!1;try{return window.matchMedia(t).matches}catch(e){return!1}}function I(e,t){if(!Array.isArray(e))return[];if((t||0)>8)return[];var r,n=[],o=i(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a&&"switch"===a.op){var s,l=i(I((D(a.when)?a.use:a.else)||[],(t||0)+1));try{for(l.s();!(s=l.n()).done;){var c=s.value;n.push(c)}}catch(e){l.e(e)}finally{l.f()}}else n.push(a)}}catch(e){o.e(e)}finally{o.f()}return n}var L=new Set(["IMG","VIDEO","CANVAS","IFRAME","INPUT","EMBED","OBJECT","TEXTAREA","SELECT","BR","HR","AREA","SOURCE","TRACK","WBR"]),B=["objectFit","objectPosition","borderRadius","imageRendering","filter"],W="nodality:raster-param",F=new Set;function z(){return n(F)}var q=["op","masked","live"],N=!1;function U(e,t,r){var s=t,l=r&&r.transition||null;if(!e||"undefined"==typeof document||"undefined"==typeof window)return null;if(!(t&&0!==t.length||l))return null;if(t||(t=[]),t.some(function(e){return e&&"switch"===e.op})&&0===(t=I(t,0)).length&&!l)return null;var f=[],p=E(t,f);if(t=f,"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)return null;if(L.has(e.tagName)){var h=e.parentElement&&e.parentElement.hasAttribute&&e.parentElement.hasAttribute("data-nodality-raster-host")?e.parentElement:null;if(e=h||function(e){if(!e.parentNode)return null;var t,r={},n=i(B);try{for(n.s();!(t=n.n()).done;){var o=t.value;e.style[o]&&(r[o]=e.style[o])}}catch(e){n.e(e)}finally{n.f()}var a=document.createElement("div");return a.setAttribute("data-nodality-raster-host",e.tagName.toLowerCase()),a.style.cssText=e.style.cssText,e.parentNode.insertBefore(a,e),a.appendChild(e),e.removeAttribute("style"),Object.assign(e.style,r),e.style.display="block",e.style.width="100%",e.style.height="100%","static"===("function"==typeof getComputedStyle?getComputedStyle(a).position:"static")&&(a.style.position="relative"),a.style.width||(a.style.width="100%"),a.style.height||(a.style.height="100%"),a}(e),!e)return null}if(e.querySelector&&e.querySelector(":scope > canvas[data-nodality-raster]"))return null;var b=function(){var t=e.getBoundingClientRect();return{width:t.width>=2?t.width:e.scrollWidth||0,height:t.height>=2?t.height:e.scrollHeight||0}},w=b();if(w.width<2||w.height<2)return null;var _=Math.max(1,Math.min(r&&r.resolution?r.resolution:window.devicePixelRatio||1,3)),k=t.some(function(e){return(d[e.op]||{}).overlay}),O=t.length>0&&!l&&t.every(function(e){return(d[e.op]||{}).overlay}),S=!(!l||!0!==l.live),j=!O&&(!l||S)&&!t.some(function(e){return!1===e.live}),M="undefined"!=typeof WebGL2RenderingContext&&"texElementImage2D"in WebGL2RenderingContext.prototype||"undefined"!=typeof WebGLRenderingContext&&"texElementImage2D"in WebGLRenderingContext.prototype,D=j&&M;j&&!D&&console.info("[nodality] HTML-in-Canvas API not available - raster ops fall back to snapshot capture.");var z=document.createElement("canvas");D&&z.setAttribute("layoutsubtree","");var H={alpha:!0,premultipliedAlpha:!1},G=z.getContext("webgl2",H)||z.getContext("webgl",H);if(!G)return null;var K="undefined"!=typeof WebGL2RenderingContext&&G instanceof WebGL2RenderingContext,X=K&&t.some(function(e){return(d[e.op]||{}).mips});D&&!("texElementImage2D"in G)&&(console.info("[nodality] texElementImage2D missing on the created context - snapshot fallback."),z.removeAttribute("layoutsubtree"),D=!1),"static"===window.getComputedStyle(e).position&&(e.style.position="relative"),z.width=Math.round(w.width*_),z.height=Math.round(w.height*_),z.setAttribute("data-nodality-raster",D?"live":"snapshot"),console.info("[nodality] raster backend:",D?"html-in-canvas (live)":"snapshot");var J={width:w.width,height:w.height},$=e;if(D){var V=document.createElement("div"),Y=getComputedStyle(e),Q="flex"===Y.display||"inline-flex"===Y.display,Z="grid"===Y.display||"inline-grid"===Y.display,ee=function(e){return parseFloat(e)||0},te=ee(Y.paddingLeft)+ee(Y.paddingRight),re=ee(Y.paddingTop)+ee(Y.paddingBottom);for(J.width=Math.max(2,w.width-te),J.height=Math.max(2,w.height-re),V.style.cssText="display:".concat(Q||Z?Y.display:"block",";")+"width:".concat(J.width,"px;height:").concat(J.height,"px;"),Z&&(V.style.gridTemplateColumns=Y.gridTemplateColumns,V.style.gridTemplateRows=Y.gridTemplateRows,V.style.gridTemplateAreas=Y.gridTemplateAreas,V.style.gap=Y.gap,V.style.alignItems=Y.alignItems,V.style.justifyItems=Y.justifyItems),Q&&(V.style.flexDirection=Y.flexDirection,V.style.alignItems=Y.alignItems,V.style.justifyContent=Y.justifyContent,V.style.gap=Y.gap);e.firstChild;)V.appendChild(e.firstChild);z.appendChild(V),$=V,z.style.cssText="display:block;width:".concat(J.width,"px;height:").concat(J.height,"px;")}else if(z.style.cssText="position:absolute;top:0;left:0;"+"width:".concat(w.width,"px;height:").concat(w.height,"px;")+"pointer-events:none;z-index:2147483000;",O)z.setAttribute("aria-hidden","true");else{z.setAttribute("role","img");var ne=(e.textContent||"").replace(/\s+/g," ").trim();ne&&z.setAttribute("aria-label",ne.slice(0,300))}e.appendChild(z);var oe=function(e,t){var r=G.createShader(e);if(G.shaderSource(r,t),G.compileShader(r),!G.getShaderParameter(r,G.COMPILE_STATUS))throw new Error("[nodality] raster shader: "+G.getShaderInfoLog(r));return r},ie=G.createProgram();G.attachShader(ie,oe(G.VERTEX_SHADER,g)),G.attachShader(ie,oe(G.FRAGMENT_SHADER,P(p,t,!1,l))),G.bindAttribLocation(ie,0,"a"),G.linkProgram(ie),G.useProgram(ie),G.bindBuffer(G.ARRAY_BUFFER,G.createBuffer()),G.bufferData(G.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),G.STATIC_DRAW),G.enableVertexAttribArray(0),G.vertexAttribPointer(0,2,G.FLOAT,!1,0,0);var ae=function(e){return G.getUniformLocation(ie,e)},se=function(e,t,r){"1f"===t?G.uniform1f(e,r):"1i"===t?G.uniform1i(e,r):"2fv"===t?G.uniform2fv(e,r):"3fv"===t&&G.uniform3fv(e,r)},le=0,ce=t.map(function(e,t){return{node:e,i:t}}).filter(function(e){return function(e){for(var t in e)if(y(e.op,t,e[t]))return!0;return!1}(e.node)}),ue=function(e,r){t.forEach(function(t,n){if(!r||r.has(n)){var o=d[t.op];if(o&&o.uniforms){var i=o.uniforms(function(e,t){var r=null,n=e.window||e.ease?function(e,t){var r=Math.min(1,Math.max(0,t)),n=e.window;Array.isArray(n)&&2===n.length&&n[1]!==n[0]&&(r=Math.min(1,Math.max(0,(r-n[0])/(n[1]-n[0]))));var o=e.ease&&v[e.ease];return o?o(r):r}(e,t):t;for(var o in e)y(e.op,o,e[o])&&((r=r||Object.assign({},e))[o]=m(e[o],n));return r||e}(t,le),_);for(var a in i)se(e("u".concat(n,"_").concat(a)),i[a][0],i[a][1])}}})};ue(ae);var de=new Set(ce.map(function(e){return e.i})),fe=[];t.forEach(function(e,t){var r=d[e.op];r&&"function"==typeof r.init&&fe.push({i:t,def:r,state:r.init(e,_,z.width,z.height)})});var pe="undefined"!=typeof performance?performance.now():0,he=[];t.forEach(function(e,t){var r=d[e.op];if(r&&r.solver){var n=function(e,t){var r=d[e.op];if(!K||!G.getExtension("EXT_color_buffer_float"))return console.info("[nodality] '"+e.op+"' needs WebGL2 float render targets - op skipped."),null;G.getExtension("OES_texture_float_linear");var n=r.solver.resolutions(e,z.width,z.height),o={r:[G.R16F,G.RED],rg:[G.RG16F,G.RG],rgba:[G.RGBA16F,G.RGBA]},i=[],s=function(e,t,r,n){var s=a(o[r],2),l=s[0],c=s[1],u=G.createTexture();G.bindTexture(G.TEXTURE_2D,u);var d=n?G.LINEAR:G.NEAREST;G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MIN_FILTER,d),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MAG_FILTER,d),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_S,G.CLAMP_TO_EDGE),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_T,G.CLAMP_TO_EDGE),G.texImage2D(G.TEXTURE_2D,0,l,e,t,0,c,G.HALF_FLOAT,null);var f=G.createFramebuffer();G.bindFramebuffer(G.FRAMEBUFFER,f),G.framebufferTexture2D(G.FRAMEBUFFER,G.COLOR_ATTACHMENT0,G.TEXTURE_2D,u,0);var p=G.checkFramebufferStatus(G.FRAMEBUFFER)===G.FRAMEBUFFER_COMPLETE;G.viewport(0,0,e,t),G.clearColor(0,0,0,1),G.clear(G.COLOR_BUFFER_BIT);var h={tex:u,fbo:f,w:e,h:t,ok:p};return i.push(h),h},l={},c=!0;for(var u in r.solver.targets){var f=r.solver.targets[u],p=n[f.res],h=a(Array.isArray(p)?p:[p,p],2),y=h[0],m=h[1];f.double?(l[u]={a:s(y,m,f.fmt,f.smooth),b:s(y,m,f.fmt,f.smooth)},c=c&&l[u].a.ok&&l[u].b.ok):(l[u]={a:s(y,m,f.fmt,f.smooth)},c=c&&l[u].a.ok)}G.bindFramebuffer(G.FRAMEBUFFER,null);var v=function(){return i.forEach(function(e){G.deleteFramebuffer(e.fbo),G.deleteTexture(e.tex)})};if(!c)return console.info("[nodality] '"+e.op+"' float targets incomplete - op skipped."),v(),null;var b={};try{for(var w in r.solver.programs){var _=G.createProgram();if(G.attachShader(_,oe(G.VERTEX_SHADER,g)),G.attachShader(_,oe(G.FRAGMENT_SHADER,r.solver.programs[w])),G.bindAttribLocation(_,0,"a"),G.linkProgram(_),!G.getProgramParameter(_,G.LINK_STATUS))throw new Error(w+": "+G.getProgramInfoLog(_));b[w]={prog:_,loc:{}}}}catch(t){for(var x in console.warn("[nodality] '"+e.op+"' solver programs failed:",t),v(),b)G.deleteProgram(b[x].prog);return null}return G.useProgram(ie),{i:t,node:e,def:r,res:n,targets:l,progs:b,cleanup:v,prevX:.5,prevY:.5,primed:!1}}(e,t);n&&he.push(n)}});var ye=function(e,t){var r=null,n={res:e.res,use:function(t){r=e.progs[t],G.useProgram(r.prog)},u:function(e){return e in r.loc||(r.loc[e]=G.getUniformLocation(r.prog,e)),r.loc[e]},f1:function(e,t){G.uniform1f(n.u(e),t)},f2:function(e,t,r){G.uniform2f(n.u(e),t,r)},f3:function(e,t,r,o){G.uniform3f(n.u(e),t,r,o)},smp:function(e,t,r){G.activeTexture(G.TEXTURE0+r),G.bindTexture(G.TEXTURE_2D,t.tex),G.uniform1i(n.u(e),r)},read:function(t){return e.targets[t].a},write:function(t){return e.targets[t].b},single:function(t){return e.targets[t].a},content:{tex:me},canvasW:z.width,canvasH:z.height,swap:function(t){var r=e.targets[t],n=r.a;r.a=r.b,r.b=n},blit:function(e){G.bindFramebuffer(G.FRAMEBUFFER,e.fbo),G.viewport(0,0,e.w,e.h),G.drawArrays(G.TRIANGLES,0,3)}},o=Me[0]/z.width,i=1-Me[1]/z.height,a=0,s=0;e.primed&&De&&(a=(o-e.prevX)/Math.max(t,.001),s=(i-e.prevY)/Math.max(t,.001)),e.prevX=o,e.prevY=i,e.primed=!0;var l=De&&Math.abs(a)+Math.abs(s)>.001;e.def.solver.step(n,e.node,{dt:t,px:o,py:i,dx:a,dy:s,moving:l,aspect:z.width/Math.max(z.height,1),col:e.def.solver.splatColor(e.node,a,s)})},me=G.createTexture();G.bindTexture(G.TEXTURE_2D,me),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MIN_FILTER,X?G.LINEAR_MIPMAP_LINEAR:G.LINEAR),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_S,G.CLAMP_TO_EDGE),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_T,G.CLAMP_TO_EDGE),G.pixelStorei(G.UNPACK_FLIP_Y_WEBGL,!0);var ve=function(){X&&G.generateMipmap(G.TEXTURE_2D)},be=!1,ge=null,we=null;if(l&&l.oldImage){ge=G.createTexture(),G.bindTexture(G.TEXTURE_2D,ge),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MIN_FILTER,G.LINEAR),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MAG_FILTER,G.LINEAR),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_S,G.CLAMP_TO_EDGE),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_T,G.CLAMP_TO_EDGE);try{G.texImage2D(G.TEXTURE_2D,0,G.RGBA,G.RGBA,G.UNSIGNED_BYTE,l.oldImage)}catch(e){console.warn("[nodality] transition: old capture upload failed:",e),G.deleteTexture(ge),ge=null}}if(l&&l.newImage){we=G.createTexture(),G.bindTexture(G.TEXTURE_2D,we),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MIN_FILTER,G.LINEAR),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MAG_FILTER,G.LINEAR),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_S,G.CLAMP_TO_EDGE),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_T,G.CLAMP_TO_EDGE);try{G.texImage2D(G.TEXTURE_2D,0,G.RGBA,G.RGBA,G.UNSIGNED_BYTE,l.newImage)}catch(e){console.warn("[nodality] transition: new capture upload failed:",e),G.deleteTexture(we),we=null}}var _e=!1,xe=D?"live":"snapshot",ke=!1,Oe={color:"transparent","-webkit-text-fill-color":"transparent","-webkit-text-stroke-color":"transparent","background-color":"transparent","background-image":"none","border-color":"transparent","box-shadow":"none","text-shadow":"none"},Se=null,Ee=function(){if(!Se){!function(){if(!N&&"undefined"!=typeof document){N=!0;var e=document.createElement("style");e.setAttribute("data-nodality","selection"),e.textContent="[data-nodality-ink]::selection,[data-nodality-ink] *::selection{color:var(--nod-ink);-webkit-text-fill-color:var(--nod-ink)}[data-nodality-ink]::-moz-selection,[data-nodality-ink] *::-moz-selection{color:var(--nod-ink);-webkit-text-fill-color:var(--nod-ink)}",(document.head||document.documentElement).appendChild(e)}}(),Se=[],e.setAttribute("data-nodality-ink","");for(var t=[e].concat(n(e.querySelectorAll("*"))).filter(function(e){return e!==z&&"CANVAS"!==e.tagName}),r=t.map(function(e){return getComputedStyle(e).color}),o=0;o<t.length;o++){var i=t[o],a={op:i.style.getPropertyValue("opacity"),ink:i.style.getPropertyValue("--nod-ink")};for(var s in Oe)a[s]=i.style.getPropertyValue(s);for(var l in Se.push([i,a]),i.style.setProperty("--nod-ink",r[o]),Oe)i.style.setProperty(l,Oe[l],"important");i!==e&&i.matches&&i.matches("img,svg,video,picture,iframe")&&i.style.setProperty("opacity","0","important")}e.style.isolation="isolate",z.style.zIndex="-1"}},je=function(){if(e.style.visibility="",e.removeAttribute("data-nodality-ink"),Se){var t,r=i(Se);try{for(r.s();!(t=r.n()).done;){var n=a(t.value,2),o=n[0],s=n[1];for(var l in Oe)s[l]?o.style.setProperty(l,s[l]):o.style.removeProperty(l);s.op?o.style.setProperty("opacity",s.op):o.style.removeProperty("opacity"),s.ink?o.style.setProperty("--nod-ink",s.ink):o.style.removeProperty("--nod-ink")}}catch(e){r.e(e)}finally{r.f()}Se=null,e.style.isolation="",z.style.zIndex=""}},Pe=function(){if(!l)return!1;var t=le>=1,r=$!==e,n=l.standDownAtStart&&le<=0,o=t&&!r||n?"hidden":"visible";return z.style.visibility!==o&&(z.style.visibility=o),t||n?Se&&je():Se||Ee(),!0},Ce=function(){if(k){var t=function(){var t="IMG"===e.tagName?e:e.querySelector?e.querySelector("img"):null;return t&&t.complete&&t.naturalWidth>0?t:null}();if(t)try{return G.bindTexture(G.TEXTURE_2D,me),G.texImage2D(G.TEXTURE_2D,0,G.RGBA,G.RGBA,G.UNSIGNED_BYTE,t),ve(),be=!0,Promise.resolve()}catch(e){}else if(!ke){var r="IMG"===e.tagName?e:e.querySelector&&e.querySelector("img");r&&(ke=!0,r.addEventListener("load",function(){_e||Ce()},{once:!0}))}}z.style.display="none",je();var o=function(e,t,r,o){var a=function(e){if(!e)return null;var t=null;if("IMG"===e.tagName)t=e;else if(e.children){var r=Array.prototype.filter.call(e.children,function(e){return!e.hasAttribute||!e.hasAttribute("data-nodality-raster")});1===r.length&&"IMG"===r[0].tagName&&(t=r[0])}if(!t||!t.complete||!t.naturalWidth)return null;try{if(new URL(t.currentSrc||t.src,location.href).origin!==location.origin)return null}catch(e){return null}return t}(e);return a?Promise.resolve(function(e,t,r,n){var o=Math.max(1,Math.round(t*n)),i=Math.max(1,Math.round(r*n)),a=e.naturalWidth,s=e.naturalHeight;if(!a||!s)return e;var l="fill",c="50% 50%";if("function"==typeof getComputedStyle){var u=getComputedStyle(e);l=u.objectFit||"fill",c=u.objectPosition||"50% 50%"}if("fill"===l)return e;var d=o/a,f=i/s,p="cover"===l?Math.max(d,f):"contain"===l?Math.min(d,f):"none"===l?1:"scale-down"===l?Math.min(1,Math.min(d,f)):Math.max(d,f),h=a*p,y=s*p,m=String(c).trim().split(/\s+/),v=function(e,t){if(null==e)return.5;if(e.endsWith("%"))return parseFloat(e)/100;if("left"===e||"top"===e)return 0;if("right"===e||"bottom"===e)return 1;if("center"===e)return.5;var r=parseFloat(e);return isNaN(r)?.5:r/(0===t?Math.max(o-h,1):Math.max(i-y,1))},b=v(m[0],0),g=v(m.length>1?m[1]:m[0],1),w=document.createElement("canvas");w.width=o,w.height=i;var _=w.getContext("2d");return _?(_.drawImage(e,(o-h)*b,(i-y)*g,h,y),w):e}(a,t,r,o)):new Promise(function(a,s){var l=(new XMLSerializer).serializeToString(function(e,t){for(var r=[e].concat(n(e.querySelectorAll("*"))),o=[t].concat(n(t.querySelectorAll("*"))),a=0;a<r.length&&a<o.length;a++){var s=o[a].style;if(s){if(s.length>0)for(var l=null,c=0,u=Array.from(s);c<u.length;c++){var d=u[c];if(C.test(s.getPropertyValue(d))){var f=(l=l||window.getComputedStyle(r[a])).getPropertyValue(d);f&&s.setProperty(d,f,s.getPropertyPriority(d))}}var p,h=window.getComputedStyle(r[a]),y=r[a].parentElement,m=0!==a&&y?window.getComputedStyle(y):null,v=i(T);try{for(v.s();!(p=v.n()).done;){var b=p.value,g=h.getPropertyValue(b);g&&(m&&m.getPropertyValue(b)===g||s.getPropertyValue(b)||s.setProperty(b,g))}}catch(e){v.e(e)}finally{v.f()}var w,_=i(A);try{for(_.s();!(w=_.n()).done;){var x=w.value;if(!s.getPropertyValue(x)){var k=h.getPropertyValue(x);k&&!R.has(k)&&s.setProperty(x,k)}}}catch(e){_.e(e)}finally{_.f()}}}return t}(e,e.cloneNode(!0))),c='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(t*o,'" height="').concat(r*o,'" viewBox="0 0 ').concat(t," ").concat(r,'">')+'<foreignObject width="100%" height="100%">'+'<div xmlns="http://www.w3.org/1999/xhtml">'.concat(l,"</div>")+"</foreignObject></svg>",u=document.createElement("img");u.onload=function(){return a(u)},u.onerror=s,u.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(c)})}(e,w.width,w.height,_).then(function(e){_e||(G.bindTexture(G.TEXTURE_2D,me),G.texImage2D(G.TEXTURE_2D,0,G.RGBA,G.RGBA,G.UNSIGNED_BYTE,e),ve(),be=!0,Pe()||(O||Ee(),z.style.visibility="visible"))}).catch(function(e){je(),console.warn("[nodality] raster snapshot failed:",e)});return z.style.display="",o},Te=-1,Ae=function(){if(!_e&&"live"===xe){G.bindTexture(G.TEXTURE_2D,me);var e,t=G.RGBA8||32856,r=[[G.TEXTURE_2D,t,$],[G.TEXTURE_2D,0,G.RGBA,G.RGBA,G.UNSIGNED_BYTE,$],[G.TEXTURE_2D,0,t,$],[G.TEXTURE_2D,0,$]];if(Te>=0)e=[Te];else{e=[0,1,2,3];var n={3:0,6:1,4:2}[G.texElementImage2D.length];null!=n&&(e.splice(e.indexOf(n),1),e.unshift(n))}var o,a=[],s=i(e);try{for(s.s();!(o=s.n()).done;){var l=o.value;try{return G.texElementImage2D.apply(G,r[l]),ve(),Te<0&&(Te=l,console.info("[nodality] texElementImage2D signature discovered: form",l,"(declared arity "+G.texElementImage2D.length+")")),void(be=!0)}catch(e){a.push("form"+l+" -> "+(e&&e.name?e.name:"?")+": "+(e&&e.message?e.message:e))}}}catch(e){s.e(e)}finally{s.f()}Re("texElementImage2D rejected all known signatures (arity "+G.texElementImage2D.length+"): "+a.join(" | "))}},Re=function(t){if(!_e&&"live"===xe){for(xe="snapshot",console.warn("[nodality] live raster backend failed ("+t+") - falling back to snapshot."),z.removeEventListener("paint",Ae);$.firstChild;)e.appendChild($.firstChild);$.parentNode===z&&z.removeChild($),z.removeAttribute("layoutsubtree"),z.style.cssText="position:absolute;top:0;left:0;"+"width:".concat(w.width,"px;height:").concat(w.height,"px;")+"pointer-events:none;z-index:2147483000;",z.setAttribute("aria-hidden","true"),z.setAttribute("data-nodality-raster","snapshot-fallback"),Ce()}};D&&(z.addEventListener("paint",Ae),setTimeout(function(){_e||"live"!==xe||be||Re("no paint event within 1500ms")},1500));var Me=[.5*z.width,.5*z.height],De=!1,Ie=function(e){var t=z.getBoundingClientRect(),r=e.touches?e.touches[0]:e,n=[(r.clientX-t.left)*_,(r.clientY-t.top)*_];n[0]===Me[0]&&n[1]===Me[1]||(De=!0),Me=n};e.addEventListener("mousemove",Ie,{passive:!0}),e.addEventListener("touchmove",Ie,{passive:!0});var Le=0,Be=0,We=function(){Le=1},Fe=function(){Le=0};e.addEventListener("mouseenter",We,{passive:!0}),e.addEventListener("mouseleave",Fe,{passive:!0});var ze=[];t.forEach(function(e,t){var r=d[e.op]||{},n=e.by||r.defaultDriver;n&&c[n]?ze.push({i:t,fn:c[n]}):e.by&&console.warn("[nodality] unknown driver '"+e.by+"' on op '"+e.op+"' - known drivers: "+u.join(", "))});var qe=function(){if("undefined"==typeof window)return.5;var t=e.getBoundingClientRect(),r=window.innerHeight||1;return Math.max(0,Math.min(1,(r-t.top)/(r+t.height)))},Ne=0,Ue=null,He=function(e,t){G.uniform2f(e("u_res"),t.res[0],t.res[1]),G.uniform2f(e("u_mouse"),t.mouse[0],t.mouse[1]),G.uniform1f(e("u_time"),t.time),G.uniform1f(e("u_t"),t.t);var r,n=i(t.drivers);try{for(n.s();!(r=n.n()).done;){var o=r.value;G.uniform2f(e("u".concat(o.i,"_dpos")),o.x,o.y),G.uniform1f(e("u".concat(o.i,"_damt")),o.amt)}}catch(e){n.e(e)}finally{n.f()}var a,s=i(t.dyn);try{for(s.s();!(a=s.n()).done;){var c,u=a.value,d=i(u.ups);try{for(d.s();!(c=d.n()).done;){var f=c.value;se(e("u".concat(u.i,"_").concat(f.name)),f.kind,f.value)}}catch(e){d.e(e)}finally{d.f()}}}catch(e){s.e(e)}finally{s.f()}G.activeTexture(G.TEXTURE0),G.bindTexture(G.TEXTURE_2D,me),G.uniform1i(e("u_tex"),0);var p=1;if(l&&ge){G.activeTexture(G.TEXTURE0+p),G.bindTexture(G.TEXTURE_2D,ge),G.uniform1i(e("u_old"),p),p++;var h=t.t,y=function(e,t){return[(e.x+(t.x-e.x)*h)*_,(e.y+(t.y-e.y)*h)*_,(e.w+(t.w-e.w)*h)*_,(e.h+(t.h-e.h)*h)*_]},m=y(l.oldRect,l.oldTo||l.newRect),v=y(l.newFrom||l.oldRect,l.newRect);G.uniform4f(e("u_boxOld"),m[0],m[1],m[2],m[3]),G.uniform4f(e("u_boxNew"),v[0],v[1],v[2],v[3]),we&&(G.activeTexture(G.TEXTURE0+p),G.bindTexture(G.TEXTURE_2D,we),G.uniform1i(e("u_newimg"),p),p++)}for(var b=0,g=he;b<g.length;b++){var w=g[b],x=w.def.solver.samplers;for(var k in x)G.activeTexture(G.TEXTURE0+p),G.bindTexture(G.TEXTURE_2D,w.targets[x[k]].a.tex),G.uniform1i(e("u".concat(w.i,"_").concat(k)),p),p++}G.activeTexture(G.TEXTURE0)},Ge=null,Ke=["warp","cell","displace"],Xe=function(e,r,n){if(_e||!Ue||!be)return null;var o=z.getBoundingClientRect();if(o.width&&o.height&&(!n||!n.gpu)){var a=z.width/o.width,s=z.height/o.height,c=(e-o.left)*a,u=(r-o.top)*s;if(c>=0&&u>=0&&c<z.width&&u<z.height){var f=Math.floor(c),h=Math.floor(z.height-u),y=function(e,r){if(!Ue)return null;var n,o={},a=i(Ue.drivers);try{for(a.s();!(n=a.n()).done;){var s=n.value;o[s.i]=s}}catch(e){a.e(e)}finally{a.f()}for(var l=[e,r],c=0,u=Ke;c<u.length;c++)for(var f=u[c],p=0;p<t.length;p++){var h=t[p],y=d[h.op];if(y&&(Array.isArray(y.stage)?y.stage:[y.stage]).includes(f)){if(x(h))return null;if("function"!=typeof y.map){if(!1===y.movesCoords)continue;return null}var m=o[p],v=y.map(l,h,{res:Ue.res,dpr:_,dpos:m?[m.x,m.y]:[Ue.res[0]/2,Ue.res[1]/2],damt:m?m.amt:1,time:Ue.time,mouse:Ue.mouse});if(!v)return null;l=v}}return l}(f+.5,z.height-h-.5);if(y)return{x:o.left+Math.min(Math.max(y[0],0),z.width)/a,y:o.top+Math.min(Math.max(y[1],0),z.height)/s}}}var m=function(){if(Ge)return Ge;var e=G.createProgram();if(G.attachShader(e,oe(G.VERTEX_SHADER,g)),G.attachShader(e,oe(G.FRAGMENT_SHADER,P(p,t,!0,l))),G.bindAttribLocation(e,0,"a"),G.linkProgram(e),!G.getProgramParameter(e,G.LINK_STATUS))return console.warn("[nodality] probe program failed:",G.getProgramInfoLog(e)),G.deleteProgram(e),Ge={broken:!0};var r=G.createTexture();G.bindTexture(G.TEXTURE_2D,r),G.texImage2D(G.TEXTURE_2D,0,G.RGBA,1,1,0,G.RGBA,G.UNSIGNED_BYTE,null),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MIN_FILTER,G.NEAREST),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_MAG_FILTER,G.NEAREST),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_S,G.CLAMP_TO_EDGE),G.texParameteri(G.TEXTURE_2D,G.TEXTURE_WRAP_T,G.CLAMP_TO_EDGE);var n=G.createFramebuffer();G.bindFramebuffer(G.FRAMEBUFFER,n),G.framebufferTexture2D(G.FRAMEBUFFER,G.COLOR_ATTACHMENT0,G.TEXTURE_2D,r,0);var o=G.checkFramebufferStatus(G.FRAMEBUFFER);if(G.bindFramebuffer(G.FRAMEBUFFER,null),o!==G.FRAMEBUFFER_COMPLETE)return console.warn("[nodality] probe framebuffer incomplete:",o),G.deleteProgram(e),G.deleteFramebuffer(n),G.deleteTexture(r),Ge={broken:!0};var i={},a=function(t){return t in i?i[t]:i[t]=G.getUniformLocation(e,t)};return G.useProgram(e),ue(a),G.useProgram(ie),Ge={prog:e,fbo:n,tex:r,px:new Uint8Array(4),U:a}}();if(m.broken)return null;var v=z.getBoundingClientRect();if(!v.width||!v.height)return null;var b=z.width/v.width,w=z.height/v.height,k=(e-v.left)*b,O=(r-v.top)*w;if(k<0||O<0||k>=z.width||O>=z.height)return null;var S=Math.floor(k),E=Math.floor(z.height-O);G.bindFramebuffer(G.FRAMEBUFFER,m.fbo),G.useProgram(m.prog),G.viewport(0,0,1,1),G.uniform2f(m.U("u_probe"),S,E),He(m.U,Ue),G.drawArrays(G.TRIANGLES,0,3),G.readPixels(0,0,1,1,G.RGBA,G.UNSIGNED_BYTE,m.px),G.bindFramebuffer(G.FRAMEBUFFER,null),G.useProgram(ie),G.viewport(0,0,z.width,z.height);var j=m.px,C=(j[0]+j[1]/255)/255,T=(j[2]+j[3]/255)/255;return{x:v.left+C*z.width/b,y:v.top+T*z.height/w}},Je="__nodalityRetargeted",$e=!t.some(function(e){return!1===e.interactive}),Ve="data-nodality-hover",Ye=t.some(function(e){return!0===e.hoverAttr}),Qe=[],Ze=function(t){for(var r=[],n=t;n&&n!==e.parentNode;n=n.parentElement)r.push(n);for(var o=new Set(r),i=0,a=Qe;i<a.length;i++){var s=a[i];o.has(s)||s.removeAttribute(Ve)}for(var l=0,c=r;l<c.length;l++){var u=c[l];u.hasAttribute(Ve)||u.setAttribute(Ve,"")}Qe=r},et=0,tt=function(t){if($e&&!_e&&!t[Je]){if("pointermove"===t.type||"mousemove"===t.type){var r="undefined"!=typeof performance?performance.now():0;if(r-et<12)return;et=r}var n=Xe(t.clientX,t.clientY);if(n){var o=$!==e;if(!(!o&&Math.abs(n.x-t.clientX)<.5&&Math.abs(n.y-t.clientY)<.5)){var a,s,l,c,u=o?(a=n.x,s=n.y,l=null,(c=function(e){var t,r=i(e.children);try{for(r.s();!(t=r.n()).done;){var n=t.value,o=n.getBoundingClientRect();o.width&&o.height&&(a<o.left||a>o.right||s<o.top||s>o.bottom||(l=n,c(n)))}}catch(e){r.e(e)}finally{r.f()}})($),l):"function"==typeof document.elementFromPoint?document.elementFromPoint(n.x,n.y):null;if(u&&u!==t.target&&e.contains(u)){if(Ye&&Ze(u),"pointerdown"===t.type||"mousedown"===t.type||"click"===t.type){var d=u.closest&&u.closest("a, button, input, select, textarea, [tabindex]");d&&"function"==typeof d.focus&&d.focus({preventScroll:!0})}t.stopPropagation(),t.cancelable&&t.preventDefault(),u.dispatchEvent(function(e,t,r){var n=new("undefined"!=typeof PointerEvent&&e instanceof PointerEvent?PointerEvent:MouseEvent)(e.type,{bubbles:!0,cancelable:e.cancelable,composed:!0,view:e.view||("undefined"!=typeof window?window:null),detail:e.detail,clientX:t,clientY:r,screenX:e.screenX+(t-e.clientX),screenY:e.screenY+(r-e.clientY),ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey,button:e.button,buttons:e.buttons,relatedTarget:e.relatedTarget,pointerId:e.pointerId,pointerType:e.pointerType,isPrimary:e.isPrimary,pressure:e.pressure});return n[Je]=!0,n}(t,n.x,n.y))}}}}},rt=["pointerdown","pointerup","pointermove","click","dblclick","contextmenu","mousedown","mouseup"],nt=function(){Ye&&Ze(null)};if($e){var ot,it=i(rt);try{for(it.s();!(ot=it.n()).done;){var at=ot.value;e.addEventListener(at,tt,!0)}}catch(e){it.e(e)}finally{it.f()}e.addEventListener("pointerleave",nt,!0)}var st=!0,lt=function(){if(!_e){if(Pe(),st&&be){for(var e="undefined"!=typeof performance?performance.now():pe+16,t=Math.max(0,(e-pe)/1e3),r=0,n=he;r<n.length;r++){var o=n[r];ye(o,t)}De=!1,G.bindFramebuffer(G.FRAMEBUFFER,null),G.useProgram(ie),G.viewport(0,0,z.width,z.height),G.clearColor(0,0,0,0),G.clear(G.COLOR_BUFFER_BIT);var i={res:[z.width,z.height],mouse:[Me[0],Me[1]],time:e/1e3,t:le,drivers:[],dyn:[]};if(ze.length>0){Be+=(Le-Be)*(1-Math.exp(8*-t));for(var a={mouseX:Me[0],mouseY:Me[1],w:z.width,h:z.height,t:e/1e3,hover:Be,scroll:qe()},s=0,l=ze;s<l.length;s++){var c=l[s],u=c.fn(a);i.drivers.push({i:c.i,x:u.x,y:u.y,amt:u.amt})}}if(fe.length>0)for(var d={w:z.width,h:z.height,mouseX:Me[0],mouseY:Me[1],dt:t,t:e/1e3},f=0,p=fe;f<p.length;f++){var h=p[f];i.dyn.push({i:h.i,ups:h.def.tick(h.state,d)})}Ue=i,He(ae,i),pe=e,G.drawArrays(G.TRIANGLES,0,3)}Ne=requestAnimationFrame(lt)}},ct=null;"undefined"!=typeof IntersectionObserver&&(ct=new IntersectionObserver(function(e){var t=a(e,1)[0];st=t.isIntersecting})).observe(e);var ut=null,dt=0,ft=function(){if(!_e){var e=b();if(!(e.width<2||e.height<2)){var t=Math.round(e.width*_),r=Math.round(e.height*_);w.width=e.width,w.height=e.height,z.style.width=e.width+"px",z.style.height=e.height+"px";var n=z.width!==t||z.height!==r;n&&(z.width=t,z.height=r),"snapshot"===xe?Ce():n&&Ae()}}};"undefined"!=typeof ResizeObserver&&(ut=new ResizeObserver(function(){"live"!==xe&&(function(){if(!_e){var e=b();e.width<2||e.height<2||Math.round(e.width)===Math.round(w.width)&&Math.round(e.height)===Math.round(w.height)||(w.width=e.width,w.height=e.height,z.style.width=e.width+"px",z.style.height=e.height+"px")}}(),clearTimeout(dt),dt=setTimeout(ft,150))})).observe(e);var pt=0,ht=function(){clearTimeout(pt),pt=setTimeout(function(){if(!_e)if("snapshot"!==xe){var t=e.clientWidth||e.parentElement&&e.parentElement.clientWidth||w.width;z.style.width=t+"px",setTimeout(function(){if(!_e&&"live"===xe){var e=Math.max(2,Math.round($.getBoundingClientRect().height))||w.height;w.width=t,w.height=e,z.style.height=e+"px",z.width=Math.round(t*_),z.height=Math.round(e*_),Ae()}},50)}else ft()},150)};"undefined"!=typeof window&&window.addEventListener("resize",ht),"live"===xe?Ne=requestAnimationFrame(lt):(Ce().then(function(){Ne=requestAnimationFrame(lt)}),"undefined"!=typeof document&&document.fonts&&"object"===o(document.fonts.ready)&&Promise.resolve(document.fonts.ready).then(ft).catch(function(){}));var yt=function(t,r,n,o,i){"function"==typeof CustomEvent&&"undefined"!=typeof document&&document.dispatchEvent(new CustomEvent(W,{detail:{pipeline:mt,el:e,index:t,key:r,value:n,prev:o,how:i}}))},mt={canvas:z,nodes:t,get backend(){return xe},sourceAt:function(e,t,r){return Xe(e,t,r)},get progress(){return le},setProgress:function(e){var t=Math.min(1,Math.max(0,Number(e)||0));return t===le||(le=t,ce.length&&(G.useProgram(ie),ue(ae,de),Ge&&!Ge.broken&&(G.useProgram(Ge.prog),ue(Ge.U,de),G.useProgram(ie))),Pe()),le},setParam:function(e,r,n){var i=t[e];if(!i||_e)return!1;var a=i[r];if(i[r]=n,function(e,t,r,n){if(q.includes(t))return!0;var i=d[e];if(!i)return!0;if((i.structural||[]).includes(t))return!0;if((i.structuralOnToggle||[]).includes(t))return!r!=!n;if(i.uniforms)try{if(t in i.uniforms(Object.assign({op:e},function(e,t,r){return(t=function(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},t,r)),1))return!1}catch(e){}return!0}(i.op,r,n,a))return mt.rebuild(),yt(e,r,n,a,"rebuild"),"rebuild";var s=d[i.op];if(s&&s.uniforms){var l=s.uniforms(i,_);for(var c in G.useProgram(ie),l)se(ae("u".concat(e,"_").concat(c)),l[c][0],l[c][1]);if(Ge&&!Ge.broken){for(var u in G.useProgram(Ge.prog),l)se(Ge.U("u".concat(e,"_").concat(u)),l[u][0],l[u][1]);G.useProgram(ie)}}return yt(e,r,n,a,"uniform"),"uniform"},rebuild:function(){if(_e)return null;var t=e;return mt.destroy(),U(t,s)}};return F.add(mt),Object.assign(mt,{refresh:function(){return"live"===xe?Ae():Ce()},destroy:function(){F.delete(mt),_e=!0,cancelAnimationFrame(Ne),clearTimeout(dt),clearTimeout(pt),ct&&ct.disconnect(),ut&&ut.disconnect(),"undefined"!=typeof window&&window.removeEventListener("resize",ht),e.removeEventListener("mousemove",Ie),e.removeEventListener("touchmove",Ie);for(var t=0,r=rt;t<r.length;t++){var n=r[t];e.removeEventListener(n,tt,!0)}e.removeEventListener("pointerleave",nt,!0),Ze(null),e.removeEventListener("mouseenter",We),e.removeEventListener("mouseleave",Fe),z.removeEventListener("paint",Ae);for(var o=0,i=he;o<i.length;o++){var a=i[o];for(var s in a.cleanup(),a.progs)G.deleteProgram(a.progs[s].prog)}for(he.length=0,Ge&&!Ge.broken&&(G.deleteProgram(Ge.prog),G.deleteFramebuffer(Ge.fbo),G.deleteTexture(Ge.tex)),Ge=null,ge&&(G.deleteTexture(ge),ge=null),we&&(G.deleteTexture(we),we=null);$!==e&&$.firstChild;)e.appendChild($.firstChild);je(),e.style.visibility="",z.remove()}})}},5594:(e,t,r)=>{r.d(t,{A:()=>P,G:()=>j});var n=r(5379),o=r(8597),i={"t-vhs":{summary:"Tape-glitch morph: chroma splits and the image tears, strongest at the midpoint, gone at both ends.",nodes:[{op:"aberration",amount:[0,18,0]},{op:"flow",strength:[0,34,0],scale:60,speed:0,window:[.15,.95],ease:"in-out"}]},"t-dissolve":{summary:"Ordered-dither dissolve — the old state breaks into pixels before the new one resolves.",nodes:[{op:"dither",levels:[8,2,8],size:[1,7,1],amount:[0,1,0],ease:"in-out"}]},"t-split":{summary:"Per-side morph: the old state posterises to duotone while the new one resolves through a halftone screen.",nodes:[{op:"duotone",side:"old",amount:[0,1,1],dark:"#0B1B2B",light:"#1abc9c"},{op:"halftone",side:"new",size:[10,6,2],amount:[1,1,0],softness:.35,angle:15}]},"t-bloom":{summary:"A soft halftone bloom through the middle of the morph.",nodes:[{op:"halftone",size:[2,9,2],amount:[0,1,0],softness:.4,angle:15,window:[.1,.9]}]},"liquid-hero":{summary:"A ripple that trails the pointer, then relaxes back in ~1.5s.",live:"enhanced",nodes:[{op:"stir",by:"mouse",radius:.055,force:2.2,strength:16,curl:.8,resolution:256,decay:.988}]},linger:{summary:"The same current, held for four or five seconds. Only `decay` differs.",live:"enhanced",nodes:[{op:"stir",by:"mouse",radius:.055,force:2.2,strength:7,curl:.8,resolution:256,decay:.9985,dye:0,sheen:0}]},"flow-field":{summary:"A standing current across the whole element. No solver, runs anywhere.",nodes:[{op:"flow",strength:18,scale:120,speed:.25}]},"flow-pointer":{summary:"The same current, but only around the pointer.",nodes:[{op:"flow",by:"mouse",strength:26,scale:100,radius:320}]},"print-shop":{summary:"Offset-litho dot screen with white seams under the glyphs.",nodes:[{op:"halftone",size:6,angle:15},{op:"edges",color:"#FFFFFF"}]},newsprint:{summary:"One-bit ordered dither — ink on paper, no greys.",nodes:[{op:"dither",mono:!0,ink:"#0B1B2B"}]},crt:{summary:"Posterised to a few levels, with a lens-like colour split.",nodes:[{op:"dither",levels:3},{op:"aberration",amount:6}]},glass:{summary:"Refractive metaball lens over untouched content.",nodes:[{op:"blobs",refract:70,dispersion:1,frost:.25}]},"hex-lens":{summary:"Hex cells rise toward the pointer; flush and invisible at rest.",nodes:[{op:"hexalize",size:26,lift:.3,by:"hover",radius:220}]},ripple:{summary:"The coordinate space pushes away from the pointer.",nodes:[{op:"offset",by:"mouse",strength:22,radius:280}]},spotlight:{summary:"A duotone disc that travels with the pointer; the rest is untouched.",nodes:[{op:"mask",from:"radial",as:"spot",by:"mouse",radius:200},{op:"duotone",masked:"spot",colors:["#104B87","#E8FF00"]}]},turbulent:{summary:"Animated noise drives the displacement, so the warp breathes.",nodes:[{op:"noise",as:"turbulence",scale:3,speed:.4},{op:"offset",masked:"turbulence",by:"static",strength:30}]},echoes:{summary:"Changing content leaves a fading trail behind it.",live:"required",nodes:[{op:"echo",decay:.92,strength:.85}]},comet:{summary:"A long, tinted comet tail. Needs live capture — on snapshot you see nothing move.",live:"required",nodes:[{op:"echo",decay:.975,strength:.95,tint:"#7FD4FF",tintAmount:.65}]}};function a(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i[e];if(!n)throw new Error("[nodality] "+(0,o.au)(e,Object.keys(i),"raster preset"));return(t=n.nodes,JSON.parse(JSON.stringify(t))).map(function(e){return Object.assign(e,r)})}var s={linear:function(e){return e},in:function(e){return e*e*e},out:function(e){return 1-Math.pow(1-e,3)},"in-out":function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2}},l=function(){return"undefined"!=typeof performance?performance.now():Date.now()},c=function(){return"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"function"!=typeof e.setProgress){var r=0;e={setProgress:function(e){return r=Math.min(1,Math.max(0,Number(e)||0))},get progress(){return r}}}var n=null!=t.duration?t.duration:600,o=s[t.easing]||s["in-out"],i=!1!==t.respectReducedMotion,a=0,u=e.progress||0,d=u,f=0,p=0,h=!1,y=null,m=null,v=!1,b=function(){if(!v){var t=l()-f,r=p<=0?1:Math.min(1,t/p);if(e.setProgress(u+(d-u)*o(r)),r>=1)return function(){h=!1,a=0;var t=y;y=null,t&&t(e.progress)}();a=requestAnimationFrame(b)}},g={get value(){return e.progress},get running(){return h},set:function(t){return g.stop(),e.setProgress(t),e.progress},to:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(v)return Promise.resolve(e.progress);var o=Math.min(1,Math.max(0,Number(t)||0));if(i&&c())return g.set(o),Promise.resolve(o);if(y){var s=y;y=null,s(e.progress)}a&&cancelAnimationFrame(a),u=e.progress,d=o;var m=Math.abs(d-u);return m<1e-4?(e.setProgress(o),Promise.resolve(o)):(p=(null!=r.duration?r.duration:n)*m,f=l(),h=!0,a=requestAnimationFrame(b),new Promise(function(e){y=e}))},stop:function(){if(a&&cancelAnimationFrame(a),a=0,h=!1,y){var t=y;y=null,t(e.progress)}return e.progress},bindScroll:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"==typeof t?document.querySelector(t):t;if(!n)return g;g.unbindScroll(),g.stop();var o=null!=r.start?r.start:0,i=null!=r.end?r.end:1,a=function(){if(!v){var t=n.getBoundingClientRect(),r=window.innerHeight||1,a=(r-t.top)/(r+t.height||1),s=(Math.min(1,Math.max(0,a))-o)/(i-o||1);e.setProgress(Math.min(1,Math.max(0,s)))}};return m={node:n,update:a},window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a,{passive:!0}),a(),g},unbindScroll:function(){return m?(window.removeEventListener("scroll",m.update),window.removeEventListener("resize",m.update),m=null,g):g},drive:function(e){return g.set(e)},destroy:function(){v=!0,g.stop(),g.unbindScroll()}};return g}function d(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return f(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(f(t={},n,function(){return this}),t),p=c.prototype=s.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,f(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=c,f(p,"constructor",c),f(c,"constructor",l),l.displayName="GeneratorFunction",f(c,o,"GeneratorFunction"),f(p),f(p,o,"Generator"),f(p,n,function(){return this}),f(p,"toString",function(){return"[object Generator]"}),(d=function(){return{w:i,m:h}})()}function f(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f=function(e,t,r,n){if(t)o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r;else{var i=function(t,r){f(e,t,function(e){return this._invoke(t,r,e)})};i("next",0),i("throw",1),i("return",2)}},f(e,t,r,n)}function p(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=m(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function g(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function w(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){g(i,n,o,a,s,"next",e)}function s(e){g(i,n,o,a,s,"throw",e)}a(void 0)})}}var _=function(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y,w:n.width,h:n.height}};function x(e,t,r){return k.apply(this,arguments)}function k(){return k=w(d().m(function e(t,r,n){var o,i,a,s,l,c,u,f;return d().w(function(e){for(;;)switch(e.n){case 0:for((o=t.cloneNode(!0)).style.position="static",o.style.left=o.style.top="0",o.style.margin="0",o.style.visibility="visible",i=[t].concat(y(t.querySelectorAll("*"))),a=[o].concat(y(o.querySelectorAll("*"))),s=0;s<i.length;s++)l=getComputedStyle(i[s]),a[s].style.fontSize=l.fontSize,a[s].style.lineHeight=l.lineHeight,a[s].style.fontWeight=l.fontWeight,a[s].style.fontFamily=l.fontFamily,a[s].style.letterSpacing=l.letterSpacing,a[s].style.width=l.width,a[s].style.height=l.height,a[s].style.padding=l.padding,a[s].style.boxSizing="content-box";return c=Math.max(1,Math.min("undefined"!=typeof window&&window.devicePixelRatio||1,3)),u='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(r*c,'" ')+'height="'.concat(n*c,'" viewBox="0 0 ').concat(r," ").concat(n,'">')+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+(new XMLSerializer).serializeToString(o)+"</div></foreignObject></svg>",f=document.createElement("img"),e.n=1,new Promise(function(e,t){f.onload=e,f.onerror=t,f.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(u)});case 1:return e.a(2,f)}},e)})),k.apply(this,arguments)}var O=function(e){if(!e)return[];if(Array.isArray(e))return e;try{return a(e)||[]}catch(e){return[]}},S=function(e){return String(e||"").replace(/\s+/g," ").trim().toLowerCase()},E=function(e){return"string"==typeof e&&e.startsWith("#")?e.slice(1):e},j=function(e){return(Array.isArray(e.chain)&&e.chain.length?e.chain:[{from:e.from,to:e.to}]).map(function(t){var r=function(r,n){return void 0!==t[r]?t[r]:void 0!==e[r]?e[r]:n},n=t.to&&!Array.isArray(t.to)&&"object"===b(t.to)?t.to:null,o=n?y(new Set(Object.values(t.to))).map(E):(Array.isArray(t.to)?t.to:[t.to]).map(E),i=new Map;if(n)for(var a=0,s=Object.entries(t.to);a<s.length;a++){var l=h(s[a],2),c=l[0],u=l[1];i.set(S(c),E(u))}return{from:E(t.from),byLabel:n,toIds:o,labelToId:i,effect:r("effect"),duration:r("duration",900),back:!1!==r("back",!0),live:!0===r("live"),fade:r("fade","morph")}})};function P(e,t,r){if(!e||"undefined"==typeof document)return[];var o=(r||[]).filter(function(e){return e&&"morph"===e.op});if(!o.length)return[];var i=y(e.children),a=function(r){var n=E(r),o=document.getElementById(n);if(o&&e.contains(o))return o;var a=(t||[]).findIndex(function(e){return e&&E(e.id)===n});return a>=0?i[a]:null};return o.map(function(t){return function(e,t,r){var o=j(t),i=o[0],a=i&&i.from,s=null!=a?r(a):null,l=new Map;s&&l.set(a,s);var c,f=p(o);try{for(f.s();!(c=f.n()).done;){var m=c.value,v=r(m.from);v&&!l.has(m.from)&&l.set(m.from,v);var b,g=p(m.toIds);try{for(g.s();!(b=g.n()).done;){var k=b.value,E=r(k);E&&!l.has(k)&&l.set(k,E)}}catch(e){g.e(e)}finally{g.f()}}}catch(e){f.e(e)}finally{f.f()}if(!s||!i.toIds.some(function(e){return l.has(e)}))return console.warn("[nodality] morph: could not resolve",a,"->",i?i.toIds:[]),null;var P=function(e){return o.find(function(t){return t.from===e})||null},C=document.createElement("div");C.className="nod-morph",C.style.cssText="position:relative;",e.insertBefore(C,s);var T=document.createElement("div");T.className="nod-morph-host",T.style.cssText="position:absolute;inset:0;";var A=document.createElement("div");A.className="nod-morph-live",A.style.cssText="position:absolute;inset:0;",C.appendChild(T),C.appendChild(A),A.appendChild(s),s.style.position="absolute",s.style.left=s.style.top="0";var R,M=p(l);try{for(M.s();!(R=M.n()).done;){var D=h(R.value,2),I=D[0],L=D[1];I!==a&&L.remove()}}catch(e){M.e(e)}finally{M.f()}var B=a,W=[],F=function(){return l.get(B)||s},z=function(e){C.style.minHeight=Math.max(F().getBoundingClientRect().height,e||0)+24+"px"};z(0);var q=null,N=null,U=-1,H=null,G=null,K=null,X=!1,J=null,$=null,V=o.length>1,Y=function(){var e=w(d().m(function e(t,r,o){var i,a,s,l,c,f,p;return d().w(function(e){for(;;)switch(e.n){case 0:if(!(i=y(r.querySelectorAll("img"))).length){e.n=2;break}return e.n=1,Promise.all(i.map(function(e){return e.complete&&e.naturalWidth?null:"function"==typeof e.decode?e.decode().catch(function(){}):new Promise(function(t){e.addEventListener("load",t,{once:!0}),e.addEventListener("error",t,{once:!0})})}));case 1:return e.n=2,new Promise(function(e){return requestAnimationFrame(e)});case 2:return a=_(T,t),s=_(T,r),z(Math.max(a.y+a.h,s.y+s.h)),e.n=3,Promise.all([x(t,a.w,a.h),x(r,s.w,s.h)]);case 3:l=e.v,c=h(l,2),f=c[0],p=c[1],q=(0,n.sB)(T,O(o.effect),{transition:{oldImage:f,newImage:p,oldRect:a,oldTo:s,newRect:s,newFrom:a,standDownAtStart:!0,live:!0===o.live,fade:o.fade||"morph"}}),N&&N.destroy(),N=u(q,{duration:null!=o.duration?o.duration:900});case 4:return e.a(2)}},e)}));return function(t,r,n){return e.apply(this,arguments)}}(),Q=function(){var e=w(d().m(function e(t){var r,o,i,a,s,c,u,f,h,m;return d().w(function(e){for(;;)switch(e.n){case 0:if((r=P(B))&&r.toIds.includes(t)){e.n=1;break}return e.a(2);case 1:if(o=l.get(t)){e.n=2;break}return e.a(2);case 2:i=F(),U=r.toIds.indexOf(t),K=B,a=p((0,n.hE)());try{for(a.s();!(s=a.n()).done;)c=s.value,C.contains(c.canvas)&&c.destroy()}catch(e){a.e(e)}finally{a.f()}for(u=0,f=y(T.children);u<f.length;u++)(h=f[u])!==i&&h.remove();return T.appendChild(o),G=i,H=o,o.style.visibility="hidden",m=_(T,i),Object.assign(o.style,{position:"absolute",left:"0",top:Math.round(V?m.y:m.h+20)+"px"}),e.n=3,Y(i,o,r);case 3:if(N){e.n=4;break}return e.a(2);case 4:return J=K,$=t,N.set(0),le(t),r.back&&ae(o),e.n=5,N.to(1);case 5:1===e.v&&H===o&&ie(t,i,r);case 6:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),Z=!1,ee=0,te=function(){var e=w(d().m(function e(){var t,r,n;return d().w(function(e){for(;;)switch(e.n){case 0:if(W.length){e.n=1;break}return e.a(2);case 1:if(t=W[W.length-1],r=l.get(t)){e.n=2;break}return e.a(2);case 2:if(n=F(),!q||!N||J!==t||$!==B){e.n=4;break}return e.n=3,N.to(0);case 3:return 0===e.v&&oe(t),e.a(2);case 4:return e.n=5,ne(t,r,n);case 5:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),re=function(){var e=w(d().m(function e(){return d().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!Z){e.n=1;break}return ee++,e.a(2);case 1:return Z=!0,e.p=2,e.n=3,te();case 3:if(!(ee>0&&W.length)){e.n=5;break}return ee--,e.n=4,te();case 4:e.n=3;break;case 5:return e.p=5,Z=!1,ee=0,e.f(5);case 6:return e.a(2)}},e,null,[[2,,5,6]])}));return function(){return e.apply(this,arguments)}}(),ne=function(){var e=w(d().m(function e(t,r,o){var i,a,l,c,u;return d().w(function(e){for(;;)switch(e.n){case 0:return i=y((0,n.hE)()).filter(function(e){return C.contains(e.canvas)}),a=P(t)||{},r===s?(X=!0,A.style.display=""):r.parentNode!==T&&(r.style.visibility="hidden",T.appendChild(r),l=_(T,o),Object.assign(r.style,{position:"absolute",left:"0",top:Math.round(V?l.y:0)+"px"})),e.n=1,Y(r,o,a);case 1:c=p(i);try{for(c.s();!(u=c.n()).done;)u.value.destroy()}catch(e){c.e(e)}finally{c.f()}if(X=!1,N){e.n=2;break}return e.a(2);case 2:return J=t,$=B,G=r,H=o,N.set(1),e.n=3,N.to(0);case 3:0===e.v&&oe(t);case 4:return e.a(2)}},e)}));return function(t,r,n){return e.apply(this,arguments)}}(),oe=function(e){W[W.length-1]===e&&W.pop(),B=e;var t,r=p((0,n.hE)());try{for(r.s();!(t=r.n()).done;){var o=t.value;C.contains(o.canvas)&&o.destroy()}}catch(e){r.e(e)}finally{r.f()}q=null,N=null,J=null,$=null,K=W.length?W[W.length-1]:null,le(e)},ie=function(e,t,r){null!=K&&K!==e&&W.push(K),B=e,G=t&&t!==s?t:null,le(e),r&&r.back&&ae(l.get(e))},ae=function(e){if(e){var t=y(e.querySelectorAll("button")).find(function(e){return!e.dataset.nodMorphWired&&!e.dataset.nodMorphBack});t&&(t.dataset.nodMorphBack="1",t.addEventListener("click",function(){re()}))}},se=new Set,le=function(e){var t=P(e),r=l.get(e);if(t&&r){var n=function(e){var t=y(e.querySelectorAll("a"));if(t.length)return t;var r=y(e.querySelectorAll("button, [role=button]"));return r.length?r:[e]}(r),o=!!t.byLabel&&n.some(function(e){return t.labelToId.has(S(e.textContent))});n.forEach(function(e){return function(e,t,r,n){if(!e.dataset.nodMorphWired&&!e.dataset.nodMorphBack){var o=n?t.labelToId.get(S(e.textContent)):1===t.toIds.length?t.toIds[0]:t.byLabel?t.labelToId.get(S(e.textContent)):t.toIds[r.indexOf(e)];o&&l.has(o)&&(e.dataset.nodMorphWired="1",e.dataset.nodMorphTo=o,e.addEventListener("click",function(e){l.has(o)&&(e.preventDefault(),Q(o))}))}}(e,t,n,o)}),"undefined"==typeof MutationObserver||se.has(e)||(se.add(e),new MutationObserver(function(){return le(e)}).observe(r,{childList:!0,subtree:!0}))}};le(a);var ce=function(){if(C.isConnected){var e=q?q.progress:0,t=T.querySelector("canvas"),r=!!t&&"visible"===(t.style.visibility||"visible"),n=!q||!r,o=X||n&&e<=0&&(B===a||G===s)?"":"none";A.style.display!==o&&(A.style.display=o);var i=H||T.firstElementChild;if(i&&i.style){var l=q&&n&&e>=1?"":"hidden";i.style.visibility!==l&&(i.style.visibility=l)}if(G&&G!==s&&G.style){var c=n&&e<=0?"":"hidden";G.style.visibility!==c&&(G.style.visibility=c)}requestAnimationFrame(ce)}};return requestAnimationFrame(ce),{stage:C,from:s,get destinations(){return i.toIds.map(function(e){return l.get(e)||null})},get states(){return l},get current(){return B},get history(){return[].concat(W)},get progress(){return q?q.progress:0},get active(){return U},goTo:function(e){var t=P(B);return t?Q(t.toIds[e]):void 0},goToState:Q,back:function(){N&&N.to(0)},goBack:re,destroy:function(){N&&N.destroy();var e,t=p((0,n.hE)());try{for(t.s();!(e=t.n()).done;){var r=e.value;C.contains(r.canvas)&&r.destroy()}}catch(e){t.e(e)}finally{t.f()}C.remove()}}}(e,t,a)}).filter(Boolean)}},5613:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{Q:()=>a}),r(9873);var a=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=null,this.minLabel=null,this.maxLabel=null,this.currentLabel=null},(t=[{key:"padding",value:function(e){return this.el.style.padding=e,this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return["new Range().set(".concat(e,")")]}},{key:"set",value:function(e){var t,r,n=this;this.options=e;var o=document.createElement("input");if(o.setAttribute("id","slider"),o.setAttribute("type","range"),o.setAttribute("min",e.min),o.setAttribute("max",e.max),o.setAttribute("value",e.min),o.style.width=null!==(t=e.width)&&void 0!==t?t:"100%",!e.plain){var i,a;o.style.setProperty("-webkit-appearance","none"),o.style.appearance="none",o.style.height="9px",o.style.background=null!==(i=e.style.trackColor)&&void 0!==i?i:"orange",o.style.borderRadius="5px";var s="\n #slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n background: ".concat(null!==(a=e.style.thumbColor)&&void 0!==a?a:"4CAF50",";\n cursor: pointer;\n }\n "),l=document.createElement("style");l.appendChild(document.createTextNode(s)),document.head.appendChild(l)}var c=document.createElement("div");c.style.display="flex",c.style.flexDirection="column",c.style.alignItems="center",c.style.width="100%";var u=document.createElement("div");if(u.style.display="flex",u.style.justifyContent="space-between",u.style.width=null!==(r=e.width)&&void 0!==r?r:"100%",this.minLabel=document.createElement("span"),this.minLabel.textContent=e.min,this.maxLabel=document.createElement("span"),this.maxLabel.textContent=e.max,this.currentLabel=document.createElement("span"),this.currentLabel.textContent=o.value,e.font&&(this.currentLabel.style.fontFamily=e.font),e.font&&(this.minLabel.style.fontFamily=e.font),e.font&&(this.maxLabel.style.fontFamily=e.font),e.plain||(u.appendChild(this.minLabel),u.appendChild(this.currentLabel),u.appendChild(this.maxLabel)),o.addEventListener("input",function(){n.currentLabel.textContent=o.value}),window.matchMedia("(max-device-width: 415px)").matches)if(e.plain)o.style.width="80%";else{var d,f;o.style.height="20px",o.style.background=null!==(d=e.style.trackColor)&&void 0!==d?d:"1abc9C",o.style.borderRadius="10px",o.style.fontSize="3rem",o.style.width="80%";var p="\n #slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n background: ".concat(null!==(f=e.style.thumbColor)&&void 0!==f?f:"blue",";\n cursor: pointer;\n }\n "),h=document.createElement("style");h.appendChild(document.createTextNode(p)),document.head.appendChild(h)}return c.appendChild(u),c.appendChild(o),this.el=c,this}},{key:"value",value:function(){return this.el.querySelector("#slider").value}},{key:"render",value:function(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}])&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();"undefined"!=typeof window&&(window.Range=a)},5632:(e,t,r)=>{r.d(t,{j:()=>p});var n=r(9873),o=r(1382);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},u.apply(null,arguments)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=d(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],d(e).constructor):t.apply(e,r))}(this,t)).res=null,e.options={},e.code=[],e.elCSS=[],e.html=[],e.react=[],e.setup(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),r=t,n=[{key:"setup",value:function(){var e=document.createElement("div");return this.res=e,this.res.style.padding=0,this.res.style.margin=0,this.res.style.borderRadius="50%",this}},{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var e=Object.fromEntries(Object.entries(this.options||{}).filter(function(e){return null!=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2)[1]})),t=(0,o.sy)(e,4);return["new Circle().set(".concat(t,")")]}},{key:"setArea",value:function(e){return this.res.style.gridArea=e,this}},{key:"diameter",value:function(e){return this.res.style.width=this.res.style.height="number"==typeof e?e+"px":e,this.res.style.borderRadius="50%",this}},{key:"size",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this.res.style.width="number"==typeof e?e+"px":e,this.res.style.height="number"==typeof t?t+"px":t,this.res.style.borderRadius="50%",this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"border",value:function(e){return this.res.style.border="string"==typeof e?e:"".concat((null==e?void 0:e.width)||1,"px solid ").concat((null==e?void 0:e.color)||"black"),this}},{key:"radius",value:function(e){return this.res.style.borderRadius="number"==typeof e?e+"px":e,this}},{key:"set",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e,e.top&&(this.res.style.top=e.top),e.left&&(this.res.style.left=e.left),(e.top||e.left)&&(this.res.style.position="absolute"),e.diameter&&this.diameter(e.diameter),e.size&&this.size(e.size.w||e.size,e.size.h||e.size),e.width&&(this.res.style.width=e.width),e.height&&(this.res.style.height=e.height),e.radius&&this.radius(e.radius),e.id&&this.res.setAttribute("id",e.id),e.class&&this.res.setAttribute("class",e.class),e.zIndex&&(this.res.style.zIndex=e.zIndex),e.pad&&(this.res.style.padding=e.pad),e.mar&&(this.res.style.margin=e.mar),e.background&&(this.res.style.background=e.background),e.color&&this.color(e.color),e.border&&this.border(e.border),e.shadow&&(this.res.style.boxShadow=e.shadow),e.cursor&&(this.res.style.cursor=!0===e.cursor?"pointer":e.cursor);var r,n,o,i=[];if(e.stroke||e.gradient||e.backgroundOp||e.layout||e.marginOp||e.shadow||e.animation||e.filtera||e.transform){var a;e.gradient&&(this.globalGradient=e.gradient.op.gradient),"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)"),e.stroke&&(null===(r=t,n=this,a="function"==typeof(o=u(d(1&3?r.prototype:r),"setAny",n))?function(e){return o.apply(n,e)}:o)||void 0===a||a([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]));for(var s=[e.stroke,e.gradient,e.animation,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,e.transform].filter(function(e){return null!=e}),l=0;l<s.length;l++)i.push({range:s[l].range,log:s[l].op.name,target:s[l].target,op:s[l].op});var c=[];e.border&&c.push("border"),e.background&&c.push("background"),(e.mar||e.margin)&&c.push("margin"),e.animation&&c.push("animation"),this.chainReact(i,this.options.id,c)}return this}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"excludeFromCode",value:function(){return this.excludeFromCodeTrue=!0,this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"render",value:function(e){var t;return e&&(null===(t=document.querySelector(e))||void 0===t||t.appendChild(this.res)),this.res}}],n&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},5860:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},s.apply(null,arguments)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{M:()=>u});var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t)).code=[],e.setup(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,i=[{key:"toCode",value:function(){return this.code}},{key:"setup",value:function(){this.code.push("new FlexGrid()"),this.code.push(".setup()");var e=document.createElement("div");return e.style.display="flex",e.style.padding=0,e.style.margin=0,this.res=e,this}},{key:"getType",value:function(){return"FlexRowLayoutElement"}},{key:"set",value:function(e){e.id&&this.res.setAttribute("id",e.id),this.commonMethods(e),e.onTap&&this.onTap(e.onTap),this.code.push(".set({"),e.gap&&this.code.push("gap: ".concat(e.gap)),e.gap&&(this.res.style.gap=e.gap),e.flex&&(this.res.style.flex=e.flex),e.flex&&this.code.push("flex: ".concat(e.flex,",")),e.wrap&&(this.res.style.flexWrap="wrap"),e.wrap&&this.code.push("wrap: ".concat(e.wrap,",")),e.align&&(this.res.style.justifyContent=e.align),e.align&&this.code.push("align: ".concat(e.align,",")),e.colat&&this.toColumnAt(e.colat),e.colat&&this.code.push('\n colat: "'.concat(e.colat,'",')),this.code.push("}),");var t=e;return this.callReact(t),this}},{key:"callReact",value:function(e){this.options=e;var r,o,i,a=[],c=e.transform&&"object"===n(e.transform);if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||c){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(orange, green)")),e.stroke&&(r=t,o=this,"function"==typeof(i=s(l(1&3?r.prototype:r),"setAny",o))?function(e){return i.apply(o,e)}:i)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var u=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,c?e.transform:void 0];u=u.filter(function(e){return null!=e});for(var d=0;d<u.length;d++)a.push({range:u[d].range,log:u[d].op.name,target:u[d].target,op:u[d].op});var f=[];e.borderObj&&f.push("border"),e.background&&f.push("background"),e.mar&&f.push("margin"),e.animation&&f.push("animation"),e.span&&f.push("span"),this.chainReact(a,e.id,f)}}},{key:"toColumnAt",value:function(e){var t=this;if(!this.columnAlways){var r=function(){var r=window.matchMedia("(max-width: ".concat(e,")")),n=window.matchMedia("(max-device-width: 415px)");r.matches||n.matches?(t.res.style.flexDirection="column",t.res.style.alignItems="center"):t.res.style.flexDirection="row"};r(),window.addEventListener("resize",r)}}},{key:"flex",value:function(e){return this.arra=Array.from(e.replace(/\s/g,"")),this.areas=Array.from(Array(e.replace(/\s/g,"")).join("")),this.save='"'.concat(e,'"'),this}},{key:"items",value:function(e){this.items=e,this.code.push("\n .items([");for(var t=0;t<e.length;t++){var r=e[t];if(null!=r){var n=r.render();void 0!==r.toCode&&this.code.push(r.toCode().flatMap(function(e){return e})),this.res.appendChild(n)}}return this.code.push("\n ])"),this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"adjust",value:function(e){var t=this,r=function(){var r=window.matchMedia("(max-device-width: 415px)");if(window.innerWidth<e||r.matches)for(var n=0;n<t.res.children.length;n++)t.res.children[n].style.flex="",t.res.children[n].style.width="100%";else for(n=0;n<t.res.children.length;n++)t.res.children[n].style.flex="".concat(t.arra[n])};return r(),window.addEventListener("resize",r),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector("body").style.margin=0,document.querySelector("body").style.padding=0,document.querySelector(e).appendChild(this.res)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},6131:(e,t,r)=>{r.d(t,{E:()=>h});var n=r(9873),o=r(1382);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(e,t,r,n){var o=d(f(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof o?function(e){return o.apply(r,e)}:o}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},d.apply(null,arguments)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var h=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=f(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}(this,t)).text=e,n.res=null,n.setup(r),n.code=[],n.elCSS=[],n.html=[],n.react=[],n.code.push('new Text("'.concat(n.text,'")')),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,n=[{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var e=Object.fromEntries(Object.entries(this.options).filter(function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2);return t[0],null!==t[1]})),t=(0,o.sy)(e,4);return['new Text("'.concat(this.text,'").set(').concat(t,")")]}},{key:"toElCSS",value:function(){return this.elCSS=this.elCSS.map(function(e){return" "+e}),this.preffersId?this.elCSS.unshift(this.res.id+" { \n"):this.elCSS.unshift("."+this.class+" { \n"),this.elCSS.push(" } \n \n"),this.elCSS}},{key:"getType",value:function(){return"S1"===this.options.fluidc?"HTMLHeaderElement":"HTMLParagraphElement"}},{key:"stroke",value:function(){return this.res.style["-webkit-text-stroke"]="3px orange",this}},{key:"fill",value:function(){return this.res.style["-webkit-text-fill-color"]="transparent",this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"styled",value:function(e){return this.set(e),this}},{key:"removeQuotesFromFirstWord",value:function(e){return e.replace((0,o._H)(),"$1:")}},{key:"looksLikeMarkdown",value:function(e){return/(\*\*.*\*\*|\*.*\*|`[^`]+`|\[.*?\]\(.*?\)|^# )/m.test(e)}},{key:"parseMarkdown",value:function(e){var t=e;return(t=(t=(t=(t=(t=(t=(t=t.replace(/^### (.*$)/gim,"<h3>$1</h3>")).replace(/^## (.*$)/gim,"<h2>$1</h2>")).replace(/^# (.*$)/gim,"<h1>$1</h1>")).replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>")).replace(/\*(.*?)\*/g,"<em>$1</em>")).replace(/`([^`]+)`/g,"<code>$1</code>")).replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2">$1</a>')).replace(/\n/g,"<br>")}},{key:"set",value:function(e){return this.resCopy=this.res,this.options=e,u(t,"setPrevText",this,3)([this.text]),e.raster&&this.rasterize(e.raster),this.commonMethods(e),e.left&&(this.res.style.left=e.left),e.flex&&(this.res.style.display="flex"),(e.left||e.top)&&(this.res.style.position="absolute"),e.maxWidth&&(this.res.style.maxWidth=e.maxWidth),e.cursor&&(this.res.style.cursor="hand"),e.gpos&&this.gpos(e.gpos),e.vtn&&(this.res.style.viewTransitionName=e.vtn),e.index&&u(t,"setIndex",this,3)([e.index]),e.index&&(this.index=e.index),e.preffersId&&(this.preffersId=e.preffersId),u(t,"setPref",this,3)([e.preffersId]),e.removeDecoration&&(this.res.style.textDecoration="none"),e.block&&(this.res.style.display="block"),e.area&&this.setArea(e.area),e.icon&&this.addIcon(e.icon),e.color&&this.color(e.color),e.color&&this.elCSS.push("color: ".concat(e.color,"; \n")),e.class&&this.setClass(e.class),e.size&&this.fluidCopy(e.size),e.fluidc&&this.fluidCopy(e.fluidc),this.options.id&&this.res.setAttribute("id",this.options.id),u(t,"setID",this,3)([this.options.id]),e.initLetter&&this.initLetter(e.initLetter),e.onTap&&this.onTap(e.onTap),"S6"===e.fluidc?e.fluidc&&this.elCSS.push("font-size: calc(1.1rem + 2.075vw); \n"):e.fluidc&&this.elCSS.push("font-size: calc(1.625rem + 5.075vw); \n"),this.options.class&&this.res.setAttribute("class",this.options.class),u(t,"setClass",this,3)([this.options.class]),e.clampc&&this.clampCopy(e.clampc),e.absolute&&(this.res.style.position="absolute"),e.em&&this.em(e.em),e.fluid&&this.fluid(e.fluid),e.fluidc&&this.elCSS.push("font-family: ".concat(e.font,"; \n")),e.align&&(this.res.style.textAlign=e.align),e.breakWord&&(this.res.style.wordWrap="break-word"),e.center&&this.deprecatedOption("center on Text",'mar: "center"'),e.italic&&this.italic(),e.responsive&&this.responsive(),e.border&&(this.res.style.border="".concat(e.border)),e.onScroll&&this.onScroll(e.onScroll),e.keySet&&this.keySet(e.keySet),this.callReact(e),this}},{key:"callReact",value:function(e){var r=[],n=e.transform&&"object"===i(e.transform);if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||n){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&u(t,"setAny",this,3)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var o=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,n?e.transform:void 0];o=o.filter(function(e){return null!=e});for(var a=0;a<o.length;a++)r.push({range:o[a].range,log:o[a].op.name,target:o[a].target,op:o[a].op});var s=[];e.borderObj&&s.push("border"),e.background&&s.push("background"),e.mar&&s.push("margin"),e.animation&&s.push("animation"),e.span&&s.push("span"),this.chainReact(r,this.options.id,s)}}},{key:"excludeFromCode",value:function(){return this.excludeFromCodeTrue=!0,this}},{key:"addIcon",value:function(e){var t=document.createElement("img");return t.style.width="20px",t.style.marginLeft="10px",t.style.height="auto",t.setAttribute("src",e.url),this.res.appendChild(t),this}},{key:"between",value:function(e){return"S1"===e&&(this.res.style.fontSize="clamp(2rem, 8vw, 2.5rem)"),"S2"===e&&(this.res.style.fontSize="clamp(4rem, 8vw, 5rem)"),"S3"===e&&(this.res.style.fontSize="clamp(2rem, 5vw, 2.5rem)"),"S4"===e&&(this.res.style.fontSize="clamp(1.5rem, 2vw, 1.6rem)"),"S5"===e&&(this.res.style.fontSize="clamp(1.2rem, 2vw, 1.3rem)"),"S6"===e&&(this.res.style.fontSize="clamp(1rem, 2vw, 1.3rem)"),this}},{key:"stringGen",value:function(e){for(var t="",r=0;r<e;r++)t+="abcdefghijklmnopqrstuvwxyz".charAt(Math.floor(26*Math.random()));return t}},{key:"initLetter",value:function(e){var t=document.createElement("style");document.body.appendChild(t),Math.random();var r=this.stringGen(1e3);return this.res.setAttribute("id",r),document.styleSheets[0].insertRule("#".concat(r,"::first-letter { color: green; font-size: 3em; padding: 0.1em }"),0),this}},{key:"minusMargin",value:function(){return this.res.style.marginRight="-3.1em",this}},{key:"fluid",value:function(e){if("S1"===e){this.res=document.createElement("h1");var t=document.createTextNode(this.text);this.res.appendChild(t),this.res.style.fontSize="calc(1.625rem + 4.3vw)"}if("S2"===e){this.res=document.createElement("h2");var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.525rem + 3.525vw)"}if("S3"===e){this.res=document.createElement("h3");var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.375rem + 2.75vw)"}if("S4"===e){this.res=document.createElement("h4");var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.275rem + 1.975vw)"}return"S5"===e&&(this.res.style.fontSize="calc(1.1rem + 1.2vw)"),this}},{key:"getClampValue",value:function(e){return"S7"===e?"clamp(1.45rem, 2vw + 1.5rem, 1.69rem)":"S6"===e?"clamp(2.25rem, 2vw+1.5rem, 3.25rem)":"S5"===e?"clamp(2.75rem, 2vw + 1.5rem, 3.25rem)":"S4"===e?"clamp(3.5rem, 2vw + 1.5rem, 3.25rem)":"S3"===e?"clamp(4.25rem, 2vw + 1.5rem, 3.25rem)":"S2"===e?"clamp(5rem, 2vw + 1.5rem, 3.25rem)":"S1"===e?"clamp(6rem, 2vw + 1.5rem, 3.25rem)":void 0}},{key:"clampCopy",value:function(e){return this.res.style.fontSize=this.getClampValue(e),this}},{key:"large",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="7rem":e.res.style.fontSize="5rem"};return t(),window.addEventListener("resize",t),this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,this}},{key:"responsive",value:function(e){var t=this;this.set=!1,this.setB=!1;var r=function(){window.innerWidth<e.minw?(t.setB=!1,t.set||(t.res.style.color="#3498db",t.res.style.fontSize="".concat(e.baseVW/100*window.innerWidth,"px"),t.set=!0)):window.innerWidth>e.maxw?(t.set=!1,t.setB||(t.res.style.color="orange",t.res.style.fontSize="".concat(e.baseVW/100*e.maxw,"px"),t.setB=!0)):(t.set=!1,t.setB=!1,t.res.style.color="black",t.res.style.fontSize="".concat(e.baseVW,"vw"))};return r(),window.addEventListener("resize",r),this}},{key:"medium",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2.25rem":e.res.style.fontSize="1.5em"};return t(),window.addEventListener("resize",t),this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"small",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="1.5em":e.res.style.fontSize="1em"};return t(),window.addEventListener("resize",t),this}},{key:"sizes",value:function(e){var t=this;this.res.style.fontSize="".concat(e[0].size,"rem");var r=function(){for(var r=0;r<e.length;r++)e[r].width&&window.matchMedia("(min-width: ".concat(e[r].width,"px)")).matches&&(t.res.style.fontSize="".concat(e[r].size));window.matchMedia("(max-device-width: 415px)").matches&&(t.res.style.fontSize="".concat(e[e.length-1].mobile))};return r(),window.addEventListener("resize",r),this}},{key:"setup",value:function(e){var t;e?(t=document.createElement(e.type),void 0!==e.id&&null!==e.id&&t.setAttribute("id",e.id),"span"===e.type&&e.animation&&(t.style.position="relative",t.style.display="block")):t=document.createElement("p");var r=document.createTextNode(this.text);return t.appendChild(r),this.res=t,this.res.style.padding=0,this.res.style.margin=0,this}},{key:"hide",value:function(){return this.res.style.visibility="hidden",this}},{key:"font",value:function(e){return this.res.style.fontFamily=e,this}},{key:"em",value:function(e){return this.res.style.fontSize="".concat(e,"em"),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"align",value:function(e){return this.res.style.textAlign="".concat(e),this}},{key:"weight",value:function(e){return this.res.style.fontWeight=e,this}},{key:"bold",value:function(){return this.res.style.fontWeight="bold",this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"width",value:function(e,t){return this.res.style.width=e,t&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),this}},{key:"offset",value:function(e){return this.res.style.gridRow=2,this.res.style.gridColumn=2,this.res.style.marginLeft="-60px",this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"updating",value:function(e,t){var r=this.res,n=this.text;return Object.defineProperty(e,t,{set:function(e){var t=document.createTextNode(n.replace("$",e));r.replaceChild(t,r.childNodes[0])}}),this}},{key:"apply",value:function(e){var t=this,r=this.res.styles,n=function(){for(var n=0;n<e.length;n++){var o=e[n];o.min&&o.max?window.matchMedia("(min-width: ".concat(o.min,"px) and (max-width: ").concat(o.max,"px)")).matches?Object.assign(t.res.style,o.styles):Object.assign(t.res.style,r):window.matchMedia("(max-width: ".concat(o.max,"px)")).matches?Object.assign(t.res.style,o.styles):Object.assign(t.res.style,r)}};return n(),window.addEventListener("resize",n),this}},{key:"render",value:function(e){if(!e)return this.options&&!this.options.span&&(this.res.textContent=this.text),this.looksLikeMarkdown(this.text)&&(this.res.innerHTML=this.parseMarkdown(this.text)),this.res;this.options&&this.options.id&&this.res.setAttribute("id",this.options.id),this.options&&!this.options.span&&(this.res.textContent=this.text),this.looksLikeMarkdown(this.text)&&(this.res.innerHTML=this.parseMarkdown(this.text)),document.querySelector(e).appendChild(this.res)}}],n&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},6182:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(null,arguments)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}r.d(t,{X:()=>f});var f=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)).res=document.createElement("table"),e.res.style.borderCollapse="separate",e.res.style.borderSpacing="0",e.res.style.overflow="hidden",e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,i=[{key:"add",value:function(e){this.data=e,this.datas=e;var t=Object.keys(e[0]);return this.generateTable(this.res,e),this.generateTableHead(this.res,t),this}},{key:"style",value:function(e){return e.font&&(this.res.style.fontFamily=e.font),this}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"set",value:function(e){return e.cellPadding&&this.cellPadding(e.cellPadding),e.cellAlign&&this.cellAlign(e.cellAlign),e.style&&this.style(e.style),e.headStyle&&this.headStyle(e.headStyle),e.border&&this.border(e.border),e.center&&this.center(e.center),e.borderRadius&&this.borderRadius(e.borderRadius),e.gradient&&(this.res.style.background=e.gradient.op.gradient,this.res.style.backgroundClip="padding-box"),this.obj=e,this.options=e,this.callReact(e),this}},{key:"callReact",value:function(e){var r,n,o,i=[];if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||e.transform){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&(r=t,n=this,"function"==typeof(o=c(u(1&3?r.prototype:r),"setAny",n))?function(e){return o.apply(n,e)}:o)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var a=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,e.transform];a=a.filter(function(e){return null!=e});for(var s=0;s<a.length;s++)i.push({range:a[s].range,log:a[s].op.name,target:a[s].target,op:a[s].op});var l=[];e.borderObj&&l.push("border"),e.background&&l.push("background"),e.mar&&l.push("margin"),e.animation&&l.push("animation"),e.span&&l.push("span"),l.push("border"),this.chainReact(i,this.options.id,l)}}},{key:"toCode",value:function(){var e=JSON.stringify(this.data,null,2),t=JSON.stringify(this.obj,null,2);return e=e.replace(/"(\w+)"\s*:/g,"$1:"),t=t.replace(/"(\w+)"\s*:/g,"$1:"),["new Table()\n .add(".concat(e,")\n .set(").concat(t,")")]}},{key:"borderRadius",value:function(e){return this.res.style.borderRadius="".concat(4*e,"px"),this.res.style.overflow="hidden",this}},{key:"cellPadding",value:function(e){var t,r=o(this.res.rows);try{for(r.s();!(t=r.n()).done;){var n,i=o(t.value.cells);try{for(i.s();!(n=i.n()).done;)n.value.style.padding=e}catch(e){i.e(e)}finally{i.f()}}}catch(e){r.e(e)}finally{r.f()}return this}},{key:"cellAlign",value:function(e){var t,r=o(this.res.rows);try{for(r.s();!(t=r.n()).done;){var n,i=o(t.value.cells);try{for(i.s();!(n=i.n()).done;)n.value.style.textAlign=e}catch(e){i.e(e)}finally{i.f()}}}catch(e){r.e(e)}finally{r.f()}return this}},{key:"headStyle",value:function(e){var t=this.res.rows[0];return t&&(t.style.color=e.color,e.background&&(t.style.backgroundColor=e.background)),this}},{key:"border",value:function(e){var t;this.res.style.borderCollapse="separate",this.res.style.borderSpacing="0",this.res.style.border=e,this.res.style.borderRadius="12px";var r,n=o(this.res.rows);try{for(n.s();!(r=n.n()).done;){var i,a=o(r.value.cells);try{for(a.s();!(i=a.n()).done;)i.value.style.border="none"}catch(e){a.e(e)}finally{a.f()}}}catch(e){n.e(e)}finally{n.f()}for(var s=0;s<this.res.rows.length-1;s++){var l,c=o(this.res.rows[s].cells);try{for(c.s();!(l=c.n()).done;)l.value.style.borderBottom=e}catch(e){c.e(e)}finally{c.f()}}var u,d=(null===(t=this.res.rows[0])||void 0===t?void 0:t.cells.length)||0,f=o(this.res.rows);try{for(f.s();!(u=f.n()).done;)for(var p=u.value,h=0;h<d-1;h++)p.cells[h].style.borderRight=e}catch(e){f.e(e)}finally{f.f()}return this}},{key:"generateTableHead",value:function(e,t){var r,n=e.createTHead().insertRow(),i=o(t);try{for(i.s();!(r=i.n()).done;){var a=r.value,s=document.createElement("th");s.textContent=a,n.appendChild(s)}}catch(e){i.e(e)}finally{i.f()}}},{key:"generateTable",value:function(e,t){var r,n=o(t);try{for(n.s();!(r=n.n()).done;){var i=r.value,a=e.insertRow();for(var s in i)a.insertCell().textContent=i[s]}}catch(e){n.e(e)}finally{n.f()}}},{key:"render",value:function(e){var t=document.createElement("div");if(t.style.overflowX="auto",t.appendChild(this.res),!e)return t;document.querySelector(e).appendChild(t)}}],i&&a(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},6679:(e,t,r)=>{function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(o=function(){return!!e})()}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}r.d(t,{T:()=>l}),r(9873);var l=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.res=null,this.currentItem=""},t=[{key:"set",value:function(e){var t=this,r=e;this.options=e;var n=document.createElement("input");n.setAttribute("list","dlCities"),n.setAttribute("id","my");var o=e.data,i=0,a=o.length,s=document.createElement("datalist");for(s.id="dlCities",i=0;i<a;i+=1){var l=document.createElement("option");l.value=o[i],s.appendChild(l)}return n.appendChild(s),n.addEventListener("change",function(){var e=document.querySelector("#my").value;t.currentItem=e}),n.setAttribute("placeholder","Type value"),n.style.padding=".4rem .75rem",n.style.fontSize="1rem",this.res=n,this.responsive(),r.arrayPadding&&this.arrayPadding(r.arrayPadding.sides,r.arrayPadding.value),r.arrayMargin&&this.arrayMargin(r.arrayMargin.sides,r.arrayMargin.value),r.pad&&this.pad(r.pad),r.mar&&this.mar(r.mar),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return["new DataList().set(".concat(e,")")]}},{key:"getValue",value:function(){return this.res.value}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),e.includes("all")&&(this.res.style.padding=t),this}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),this}},{key:"margin",value:function(e){return this.res.style.margin=e,this}},{key:"responsive",value:function(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="100%"),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],t&&a(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),c=l;l=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,t,r){if(o())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var a=new(e.bind.apply(e,i));return r&&n(a,r.prototype),a}(c,t)},"undefined"!=typeof window&&(window.DataList=l)},7108:(e,t,r)=>{r.d(t,{N:()=>h});var n=r(9873),o=r(1382);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(e,t,r,n){var o=d(f(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof o?function(e){return o.apply(r,e)}:o}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},d.apply(null,arguments)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var h=function(e){function t(e,r,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,r){return t=f(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}(this,t)).link=r,o.text=e,o.code=[],o.css=[],o.elCSS=[],o.html=[],o.res=null,o.stopEM=n,o.setup(),o.inlineBlock(),o.res.addEventListener("click",function(e){var t=o.link||o.res.getAttribute("href");if(t){var r=new URL(t,window.location.href).href,n=/^https?:\/\//i.test(r),i=r.startsWith("#"),a=/^[a-zA-Z]+:/.test(r);n||i||r.endsWith(".html")||a||(e.preventDefault(),"navigation"in window?navigation.navigate(r):(history.pushState({},"",r),document.dispatchEvent(new PopStateEvent("popstate"))))}}),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,(n=[{key:"toElCSS",value:function(){return this.preffersId?this.elCSS.unshift(this.res.id+" { \n"):this.elCSS.unshift("."+this.class+" { \n"),this.elCSS.push(" } \n \n"),this.elCSS}},{key:"getType",value:function(){return"HTMLAnchorElement"}},{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var e=Object.fromEntries(Object.entries(this.options).filter(function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2);return t[0],null!==t[1]})),t=(0,o.sy)(e,4);return["new Link().set(".concat(t,")")]}},{key:"setup",value:function(){var e=document.createElement("a");e.setAttribute("href",this.link),e.style.textDecoration="none",e.style.color="black",e.style.fontFamily="Arial";var t=document.createTextNode(this.text);return e.appendChild(t),this.res=e,!1===this.stopEM&&this.em(1),this}},{key:"appendImageAsChild",value:function(e,t){var r=document.createElement("a");e.options.vtn&&(r.style.viewTransitionName=e.options.vtn),r.setAttribute("href",e.options.url);var n=document.createElement("img");return e.options&&(n.style.width=e.options.size,e.options.radius&&(n.style.borderRadius=e.options.radius),n.setAttribute("src",e.options.img),e.options.pad&&(this.res.style.padding=e.options.pad),r.appendChild(n)),this.res=r,t&&(this.res.style.marginLeft=t),this}},{key:"addIcon",value:function(e){var t=document.createElement("img");return t.style.width="20px",t.style.height="auto",t.style.marginLeft=e.padding?e.padding:"10px",t.setAttribute("src",e.url),this.res.appendChild(t),this}},{key:"removeQuotesFromFirstWord",value:function(e){if(e)return e.replace((0,o._H)(),"$1:")}},{key:"set",value:function(e){this.elCSS.push("text-decoration: none; \n"),this.options=e;var r="";e.onTap&&this.onTap(e.onTap),e.tags&&u(t,"setTags",this,3)([e.tags]),e.id&&this.res.setAttribute("id",e.id),e.id&&u(t,"setID",this,3)([e.id]),this.commonMethods(e),e.flex&&(this.res.style.display="flex"),e.fixMobileTap&&this.fixMobileTap(e.fixMobileTap);var n=this.removeQuotesFromFirstWord(JSON.stringify(e.pad));if(e.pad&&(r+="\n pad: ".concat(n,",")),e.preffersId&&(this.preffersId=e.preffersId),null!=e.preffersId&&(r+="\n preffersId: ".concat(e.preffersId,",")),e.class&&u(t,"setClass",this,3)([e.class]),e.class&&(r+='\n class: "'.concat(e.class,'",')),e.borderObj){this.res.style.border="".concat(e.borderObj.width," solid ").concat(e.borderObj.color),this.res.style.borderRadius="".concat(e.borderObj.radius);var o=this.removeQuotesFromFirstWord(JSON.stringify(e.borderObj));r+="\n borderObj: ".concat(o,",")}if(!1===this.options.preffersId?this.html.push('<a class="'.concat(e.class,'" href="#hello">').concat(e.text,"</a> \n \n")):e.id&&this.html.push('<a id="'.concat(e.id.substr(1),'" href="#hello">').concat(e.text,"</a> \n \n")),null!=e.blastData){var i=this.removeQuotesFromFirstWord(JSON.stringify(e.blastData));u(t,"setAny",this,3)([{globalBlast:"1px ".concat(e.blastData.color)}]),e.blastData&&(r+="\n blastData: ".concat(i,","))}e.nowrap&&(this.res.style.whiteSpace="nowrap"),e.font&&this.font(e.font),e.font&&(r+='\n font: "'.concat(e.font,'",')),e.font&&this.elCSS.push('font-family: "'.concat(e.font,'"; \n')),e.fluidc&&this.fluidCopy(e.fluidc),e.fluidc&&(r+='\n fluidc: "'.concat(e.fluidc,'",')),e.clampc&&this.clampCopy(e.clampc),this.options.id&&(r+='\n id: "'.concat(this.options.id,'",')),e.align&&this.leftAlign(e.align),e.align&&(r+='\n align: "'.concat(e.align,'",')),e.type&&(this.res.style.display="block"),e.color&&this.color(e.color),e.color&&(r+='\n color: "'.concat(e.color,'",')),e.color&&this.elCSS.push('color: "'.concat(e.color,'"; \n')),e.background&&this.background(e.background);var a=this.removeQuotesFromFirstWord(JSON.stringify(e.background));e.background&&(r+="\n background: ".concat(a,",")),e.hover&&this.hover(e.hover);var s=this.removeQuotesFromFirstWord(JSON.stringify(e.hover));if(e.hover&&(r+="\n hover: ".concat(s,",")),e.blast&&(this.blastData=e.blast),e.bold&&(r+="\n bold: ".concat(e.bold,",")),e.block&&this.toBlock(),e.block&&(r+="\n block: ".concat(e.block,",")),e.radius&&(r+='\n radius: "'.concat(e.radius,'",')),e.width&&(r+='\n width: "'.concat(e.width,'",')),e.maxWidth&&this.maxWidth(e.maxWidth),e.url&&this.res.setAttribute("href",e.url),r+='\n url: "'.concat(e.url,'",'),e.text&&(this.res.textContent=e.text),r+='\n text: "'.concat(e.text,'",'),e.data){e.data&&this.appendImageAsChild(e.data,"20px");var l=this.removeQuotesFromFirstWord(JSON.stringify(e.data));e.data&&(r+="\n data: ".concat(l))}if(e.icon){this.addIcon(e.icon);var c=this.removeQuotesFromFirstWord(JSON.stringify(e.icon));r+="\n icon: ".concat(c,",")}if(e.shadow){var d=e.shadow,f=this.removeQuotesFromFirstWord(JSON.stringify(d));r+="\n shadow: ".concat(f,",")}if(e.stroke){var p=this.removeQuotesFromFirstWord(JSON.stringify(e.stroke));e.stroke&&(r+="\n stroke: ".concat(p,","))}if(e.backgroundOp){var h=this.removeQuotesFromFirstWord(JSON.stringify(e.backgroundOp));r+="\n backgroundOp: ".concat(h,",")}if(e.marginOp){var y=this.removeQuotesFromFirstWord(JSON.stringify(e.marginOp));r+="\n marginOp: ".concat(y,",")}if(e.gradient){var m=this.removeQuotesFromFirstWord(JSON.stringify(e.gradient));r+="\n gradient: ".concat(m,",")}if(e.animation){var v=this.removeQuotesFromFirstWord(JSON.stringify(e.animation));r+="\n animation: ".concat(v,",")}if(e.transform){var b=this.removeQuotesFromFirstWord(JSON.stringify(e.transform));r+="\n transform: ".concat(b,",")}if(e.blast){var g=this.removeQuotesFromFirstWord(JSON.stringify(e.blast));r+="\n blast: ".concat(g,",")}var w="new Link().set({".concat(r,"}) \n");this.code.push(w),e.color&&this.color(e.color),e.rounded&&this.round(),e.new&&(this.res.setAttribute("target","_blank"),this.res.setAttribute("rel","noopener noreferrer")),e.transform&&this.reactOnTransform(e.transform);var _=[],x=[e.border,e.blast,e.gradient,e.animation,e.span,e.shadow,e.backgroundOp,e.animation,e.transform];if((x=x.filter(function(e){return null!=e})).length>0){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&u(t,"setAny",this,3)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]);for(var k=0;k<x.length;k++)_.push({range:x[k].range,log:x[k].op.name,target:x[k].target,op:x[k].op});var O=[];e.borderObj&&O.push("border"),e.background&&O.push("background"),e.mar&&O.push("margin"),e.animation&&O.push("animation"),this.chainReact(_,e.id,O,e.isNavA),this.res.style.zIndex=1}return this}},{key:"fixMobileTap",value:function(e){this.res.style.pointerEvents="auto",this.res.style.touchAction="manipulation",this.res.style.cursor="pointer",this.res.style.zIndex="1",this.res.style.position="relative"}},{key:"maxWidth",value:function(e){return this.res.style.maxWidth=e,this}},{key:"leftAlign",value:function(e){return this.res.style.textAlign=e,this}},{key:"getClampValue",value:function(e){return"S6"===e?"clamp(2.25rem, 2vw+1.5rem, 3.25rem)":"S5"===e?"clamp(2.75rem, 2vw + 1.5rem, 3.25rem)":"S4"===e?"clamp(3.5rem, 2vw + 1.5rem, 3.25rem)":"S3"===e?"clamp(4.25rem, 2vw + 1.5rem, 3.25rem)":"S2"===e?"clamp(5rem, 2vw + 1.5rem, 3.25rem)":"S1"===e?"clamp(6rem, 2vw + 1.5rem, 3.25rem)":void 0}},{key:"clampCopy",value:function(e){return this.res.style.fontSize=this.getClampValue(e),this}},{key:"fluidCopy",value:function(e){return"S1"===e&&(this.res.style.fontSize="calc(1.625rem + 5.075vw)"),"S2"===e&&(this.res.style.fontSize="calc(1.500rem + 4.3vw)"),"S3"===e&&(this.res.style.fontSize="calc(1.375rem + 3.525vw)"),"S4"===e&&(this.res.style.fontSize="calc(1.250rem + 2.75vw)"),"S5"===e&&(this.res.style.fontSize="calc(1.125rem + 1.975vw)"),"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"inlineBlock",value:function(){return this.res.style.display="inline-block",this}},{key:"toBlock",value:function(){return this.res.style.display="block",this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"newWindow",value:function(){return this.res.target="_new",this}},{key:"transition",value:function(e){return this.res.style.transition="".concat(e,"s ease-in-out"),this.res.style.transionProperty="background, color",this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"medium",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2rem":e.res.style.fontSize="1.5em"};return t(),window.addEventListener("resize",t),this}},{key:"opacity",value:function(e){return this.res.style.opacity=e,this}},{key:"em",value:function(e){var t=this,r=window.matchMedia("(max-device-width: 415px)"),n=function(){r.matches?t.res.style.fontSize="2em":t.res.style.fontSize="1em"};return n(),window.addEventListener("resize",n),this}},{key:"font",value:function(e){return this.res.style.fontFamily=e,this}},{key:"render",value:function(e){return e?(document.querySelector(e).appendChild(this.res),this):this.res}}])&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},7135:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{J:()=>a});var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setupa()},t=[{key:"seto",value:function(e){return this.e=e.a,e.speed&&(this.divisor=e.speed),e.height&&(this.setH=e.height),this}},{key:"setupa",value:function(){return this.parallaxIDs(["#rta"]),this.divisor(1),this}},{key:"add",value:function(e){return this.items=e,this.setup(),this}},{key:"parallaxIDs",value:function(e){return this.parallaxIDs=e,this}},{key:"divisor",value:function(e){return this.divisor=e,this}},{key:"setup",value:function(){var e,t=this;this.pts=0;var r=document.createElement("div");r.style.width="100%",r.style.height=null!==(e=this.setH)&&void 0!==e?e:"100%";var n=document.createElement("div");n.style.display="flex",n.style.width="100%";for(var o=0;o<this.items.length;o++){var i=this.items[o].render();n.appendChild(i)}r.appendChild(n);var a=window.localStorage.getItem("pts");null!==a&&(this.pts=a),r.addEventListener("wheel",function(e){e.deltaY<0?t.pts--:e.deltaY>0&&t.pts++,window.localStorage.setItem("pts",t.pts),e.preventDefault();for(var r=0;r<n.childNodes.length;r++){var o=n.childNodes[r];t.parallaxIDs.includes(o.id)&&(o.style.transform="translateX(".concat(t.pts/t.divisor,"%)"))}n.style.transform="translateX(".concat(t.pts/t.divisor,"%)"),window.localStorage.setItem("translation",t.pts/t.divisor)});var s=window.localStorage.getItem("translation");null!==s&&(n.style.transform="translateX(".concat(s,"%)")),this.div=r}},{key:"render",value:function(e){if(!e)return this.div;document.querySelector(e).appendChild(this.div)}}],t&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},7258:(e,t,r)=>{r.d(t,{b:()=>f});var n=r(9873),o=r(1382);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var f=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)).res=document.createElement("div"),e.res.style.display="grid",e.attributes={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,n=[{key:"set",value:function(e){return this.options=e,this.attributes=e,this.templateCols=e.templateCols,e.templateCols&&(this.res.style.gridTemplateColumns="repeat(".concat(e.templateCols.cols,", 1fr)"),this.res.style.gridTemplateRows="repeat(".concat(e.templateCols.cols,", 1fr)")),this.res.style.height=e.height?e.height:"600px",e.positions&&(this.storedPositions=e.positions),this}},{key:"generateGridPositions",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50,o=document.createElement("div");o.classList.add("container"),o.style.display="grid",o.style.gridTemplateColumns="repeat(".concat(n,", 1fr)"),o.style.gridTemplateRows="repeat(".concat(r,", 1fr)"),o.style.width="100%",o.style.height="100vh";var i=e.map(function(e,t){return{row:Math.floor(r/2)+t,col:Math.floor(n/2)+t}});return e.forEach(function(o,a){var s=i[a],l=s.row,c=s.col,u=function(t){var r=0,n=0;return e.forEach(function(e,o){var a=e.weight,s=e.direction,l=i[t],c=i[o],u=l.col-c.col,d=l.row-c.row,f=a*(1/(Math.sqrt(u*u+d*d)+1));switch(s){case"L":r-=f;break;case"R":r+=f;break;case"U":n-=f;break;case"B":n+=f}}),{forceX:r,forceY:n}}(a),d=u.forceX,f=u.forceY;c=Math.max(1,Math.min(n,c+Math.round(d))),l=Math.max(1,Math.min(r,l+Math.round(f)));var p=t.items.filter(function(e){return e.id===o.attract.slice(1)})[0].render();p.style.gridRowStart=l,p.style.gridColumnStart=c,p.style.display="flex",p.style.alignItems="center",p.style.justifyContent="center",p.style.fontWeight="bold",t.res.appendChild(p)}),this}},{key:"add",value:function(e){this.items=e;var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw i}}}}(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;this.res.appendChild(n.render())}}catch(e){r.e(e)}finally{r.f()}return this.storedPositions&&this.generateGridPositions(this.storedPositions),this}},{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var e=(0,o.sy)(this.options,4),t="";return t+=".add([\n",t+=this.items.map(function(e){return e.toCode().join("").trim()}).join(",\n"),t+="\n])",["new Free().set(".concat(e,")").concat(t)]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],n&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},7698:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{t:()=>c});var c=function(e){function t(){var e,r,o,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=this,o=t,o=s(o),e=function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(r,a()?Reflect.construct(o,i||[],s(r).constructor):o.apply(r,i)))._noTheme=!0,e.gridContainer=document.createElement("div"),e.gridContainer.classList.add("grid-container"),e.gridContainer.style.display="grid",e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,i=[{key:"set",value:function(e){return e.gap&&(this.gridContainer.style.gap=e.gap),e.height&&(this.gridContainer.style.height=e.height),e.width&&(this.gridContainer.style.width=e.width),this}},{key:"react",value:function(e){var t=this,r=function(){for(var r=0;r<e.length-1;r++){var n=parseInt(e[r].at),o=parseInt(e[r+1].at);if(window.innerWidth>n&&window.innerWidth<o){var i=e[r].template.map(function(e){return e.split("").join(" ")}).map(function(e){return'"'.concat(e,'"')}).join(" ");t.gridContainer.style.gridTemplateAreas=i}else if(window.innerWidth>o){var a=e[e.length-1].template.map(function(e){return e.split("").join(" ")}).map(function(e){return'"'.concat(e,'"')}).join(" ");t.gridContainer.style.gridTemplateAreas=a}}};return r(),window.addEventListener("resize",r),this}},{key:"add",value:function(e){for(var t=function(e){for(var t=[],r=0;r<e;r++){var n="",o=r;do{n=String.fromCharCode(65+o%26)+n,o=Math.floor(o/26)-1}while(o>=0);t.push(n)}return t}(e.length),r=0;r<e.length;r++){var n=e[r].render();n.style.gridArea=t[r].toLowerCase();var o=document.createElement("div");o.textContent=e[r].text,o.style.gridArea=t[r].toLowerCase(),this.gridContainer.appendChild(n)}return this}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.gridContainer),this.gridContainer}},{key:"toCode",value:function(){return"new Simple().set({}).react([])"}}],i&&o(r.prototype,i),c&&o(r,c),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,c}(r(9873).y)},7879:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}r.d(t,{f:()=>d});var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=c(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}(this,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,(i=[{key:"setup",value:function(e){return this.obj=e,this.setTags(this.obj.tags),this.animate=void 0===this.obj.animate||this.obj.animate,this.res=this.createSideNav(e),this.res.style.position="relative",this.res.style.zIndex=3,this.closed=!0,this}},{key:"toggleSideNav",value:function(e){var t=this;this.closed=!this.closed;var r=this.res.children[0];if(this.closed)if(r.style.overflowX="hidden",e.style.opacity=1,this.animate){this.ope=r.animate([{transform:"translateX(0)"},{transform:"translateX(100%)"}],{duration:300,fill:"forwards"}),this.ope.finished.then(function(){var e=new CustomEvent(t.obj.tags.close);window.dispatchEvent(e)});var n,i=-1,a=o(r.children);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(i+=1,this.masterEL[i]){var l,c=o(s.children);try{for(c.s();!(l=c.n()).done;){var u=l.value,d=this.masterEL[i].options.animation;d&&this.mappedIDS.includes(u.id)&&u.animate(d.op.keyframesClose,d.op.closeOptions)}}catch(e){c.e(e)}finally{c.f()}}}}catch(e){a.e(e)}finally{a.f()}}else r.style.display="none";else{r.style.overflowX="none";var f,p=-1,h=o(r.children);try{for(h.s();!(f=h.n()).done;){var y=f.value;p+=1;var m,v=o(y.children);try{for(v.s();!(m=v.n()).done;){var b=m.value;if(this.mappedIDS.includes(b.id)&&void 0!==this.masterEL[0]){var g=this.masterEL[p].options.animation;if(g){var w=g.op.openOptions;w.delay||(w.delay=1),w.duration||(w.duration=300),b.animate(g.op.keyframesOpen,w)}}}}catch(e){v.e(e)}finally{v.f()}}}catch(e){h.e(e)}finally{h.f()}e.style.opacity=0,this.animate?(r.style.display="flex",this.opeClose=r.animate([{transform:"translateX(100%)"},{transform:"translateX(0)"}],{duration:300,fill:"forwards"}),this.opeClose.finished.then(function(){var e=new CustomEvent(t.obj.tags.open);window.dispatchEvent(e)})):r.style.display="flex"}}},{key:"createToggleButton",value:function(e){var t=document.createElement("button");return t.innerText="☰",t.style.padding="10px 20px",t.style.backgroundColor="transparent",t.style.color=null!=e?e:"#3498db",t.style.border="none",t.style.borderRadius="5px",t.style.cursor="pointer",t.style.zIndex=1,t.style.fontSize="1.6rem",this.obj.fixed&&(t.style.position="fixed"),t}},{key:"createCloseButton",value:function(e){var t=document.createElement("button");return t.innerText="×",t.style.fontSize="1.6rem",t.style.padding="10px 20px",t.style.backgroundColor="transparent",t.style.color=null!=e?e:"black",t.style.border="none",t.style.borderRadius="5px",t.style.cursor="pointer",t.style.zIndex=1,t.style.alignSelf="flex-end",t}},{key:"createSideNav",value:function(e){var t=this,r=document.createElement("div");r.style.display="flex",r.style.justifyContent="flex-end";var n=document.createElement("div");n.style.display="none",n.style.background=this.obj.background||"#1abc9c",n.style.height="100%",window.matchMedia("(max-device-width: 415px)").matches?n.style.width="100%":n.style.width=this.obj.width||"400px",n.style.position="fixed",n.style.right=0,this.animate&&(n.style.transform="translateX(100%)"),n.style.flexDirection="column",n.style.justifyContent="flex-start";var o=this.createToggleButton(this.obj.hamColour.opened),i=this.createCloseButton(this.obj.hamColour.closed);return o.addEventListener("click",function(){return t.toggleSideNav(o)}),i.addEventListener("click",function(){return t.toggleSideNav(o)}),n.appendChild(i),r.appendChild(n),r.appendChild(o),r}},{key:"items",value:function(e){this.masterEL=e.items.filter(function(e){return void 0!==e.link});var t=e.items.filter(function(e){return void 0===e.items}).map(function(e){return e.id});if(this.mappedIDS=t,this.item=e,this.res.children[0].appendChild(e.render()),void 0!==this.masterEL[0]){var r=this.masterEL[0].options.animation;if(r){var n,i=o(this.res.children[0].children);try{for(i.s();!(n=i.n()).done;){var a,s=o(n.value.children);try{for(s.s();!(a=s.n()).done;){var l=a.value;this.mappedIDS.includes(l.id)&&(r.op.closeOptions.delay=0,l.animate(r.op.keyframesClose,r.op.closeOptions))}}catch(e){s.e(e)}finally{s.f()}}}catch(e){i.e(e)}finally{i.f()}}}return this}},{key:"toCode",value:function(){var e="new SideNav().setup(".concat(this.formatObj(this.obj),")");if(this.item){var t=this.item.toCode?this.item.toCode().join(""):this.formatObj(this.item);t=t.replace(/,\s*(\.set\(|\.add\()/g,"\n $1"),e+=".items(".concat(t,")")}return e}},{key:"formatObj",value:function(e){return JSON.stringify(e,null,2).replace(/"(\w+)"\s*:/g,"$1:")}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.res),this.res}}])&&a(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},7926:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{B:()=>c});var c=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t))._noTheme=!0,r.res=null,r.st=e,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,i=[{key:"setup",value:function(){var e=document.createElement("div");return e.style.display="grid",this.res=e,this.st&&this.sticky(),this}},{key:"set",value:function(e){return this.setup(),e.height&&(this.res.style.height=e.height),e.sticky&&this.sticky(),this}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"add",value:function(e){this.children=e;for(var t=0;t<e.length;t++){var r=e[t].render();r.style.gridColumn=1,r.style.gridRow=1,this.res.appendChild(r)}return this}},{key:"toCode",value:function(){var e="new Stack().set({})";if(this.children.length>0){var t=this.children.map(function(e){return e.toCode()}).join(",\n");e+=".add([\n \n ".concat(t," \n \n])")}return[e]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector("body").style.margin=0,document.querySelector("body").style.padding=0,document.querySelector(e).appendChild(this.res)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},8424:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{$:()=>c});var c=function(e){function t(e,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).text=e,o.res=null,o.val=r,o.setup(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"setup",value:function(e){return this}},{key:"set",value:function(e){this.options=e;var t=document.createElement("button");if(t.style.background="transparent",t.style.border="none",e.img)t.append(e.img.render());else if(e.svg)if("string"==typeof e.svg){var r=(new DOMParser).parseFromString(e.svg,"image/svg+xml").documentElement;t.appendChild(r)}else e.svg instanceof SVGElement&&t.appendChild(e.svg);else if(e.url&&!e.img){var n,o,i=document.createElement("img");i.setAttribute("src",e.url),i.style.width=(null===(n=e.frame)||void 0===n?void 0:n.width)||"50px",i.style.height=(null===(o=e.frame)||void 0===o?void 0:o.height)||"50px",t.appendChild(i)}else{var a=document.createTextNode(this.text.replace("$",this.val));t.appendChild(a)}return this.res=t,this.commonMethods(e),e&&"submit"===e.type&&t.setAttribute("type",e.type),this.border("none"),this.res.style.display="block",e.background&&this.background(e.background),e.padding&&(this.deprecatedOption("padding","pad"),this.pad([{a:e.padding}])),e.margin&&(this.deprecatedOption("margin","mar"),this.mar([{a:e.margin}])),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.centered&&(this.res.style.marginRight="auto",this.res.style.marginLeft="auto",this.res.style.backgroundColor="black"),e.border&&this.border(e.border),e.radius&&this.borderRadius(e.radius),e.class&&this.setClass(e.class),e.color&&this.color(e.color),e.auto&&this.auto(),e.weight&&(this.res.style.fontWeight=e.weight),e.fluidc&&this.fluidButtonCopy(e.fluidc),e.fluidc&&'\n fluidc: "'.concat(e.fluidc,'",'),e.onTap&&this.onTap(e.onTap),e.frame&&this.frame(e.frame),e.frame&&'\n frame: "'.concat(e.frame,'",'),e.keySet&&this.keySet(e.keySet),e.align&&(this.res.style.textAlign=e.align),e.weight&&(this.res.style.fontWeight=e.weight),e.bold&&(this.res.style.fontWeight="bold"),e.width&&(this.res.style.width=e.width),e.exact&&(this.res.style.fontSize=e.exact),this}},{key:"fluidButtonCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.250rem + 2.75vw)"}if("S5"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var a=document.createTextNode(this.text);this.res.appendChild(a),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"borderRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2.2rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"large",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="6rem":e.res.style.fontSize="3rem"};return t(),window.addEventListener("resize",t),this}},{key:"border",value:function(e,t){return"none"===e&&(this.res.style.border="none"),this.res.style.border="".concat(e," solid ").concat(t,"px"),this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,this}},{key:"updating",value:function(e,t){var r=this.res,n=this.text;return Object.defineProperty(e,t,{set:function(e){var t=document.createTextNode(n.replace("$",e));r.replaceChild(t,r.childNodes[0])}}),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,function(e,t){return"function"==typeof t?t.toString():t},4).replace(/"(\w+)":/g,"$1:").replace(/"(\(\)\s*=>\s*{[^}]*})"/g,"$1").replace(/\\n/g,"").replace(/\\"/g,'"');return['new Button("'.concat(this.text,'").set(').concat(e,")")]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},8597:(e,t,r)=>{function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"value",n=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,n=String(e);return t.filter(function(e){return function(e,t){if(e===t)return 0;for(var r=new Array(t.length+1),n=0;n<=t.length;n++)r[n]=n;for(var o=1;o<=e.length;o++){for(var i=[o],a=1;a<=t.length;a++){var s=e.charCodeAt(o-1)===t.charCodeAt(a-1)?0:1;i[a]=Math.min(r[a]+1,i[a-1]+1,r[a-1]+s)}r=i}return r[t.length]}(n,e)<=r})}(e,t),o="Unknown ".concat(r,' "').concat(e,'".');return n.length&&(o+=' Did you mean "'.concat(n[0],'"?')),t.length&&(o+=" Valid ".concat(r,"s: ").concat(t.join(", "),".")),o}r.d(t,{au:()=>n})},8807:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{c:()=>a});var a=function(){return e=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.obj=t||{},this.items=r||[]},(t=[{key:"render",value:function(){var e=document.createElement("div");e.style.display="flex",e.style.width="100%",e.style.justifyContent="space-around",e.setAttribute("id","innerItemsWrapper");var t=window.matchMedia("(max-device-width: 415px)"),r=window.matchMedia("(max-width: 600px)");(t.matches||r.matches)&&(e.style.marginTop="3rem");for(var n=0;n<this.items.length;n++){var o=this.items[n];e.appendChild(o.render())}var i=document.createElement("div");return i.style.width=this.obj.isSide?"333px":"100%",i.style.background=this.obj.background||"white",i.style.display="flex",i.style.justifyContent="center",i.style.alignItems="center",i.style.height="100%",i.setAttribute("id","outerItemsWrapper"),i.appendChild(e),this.obj.customStyle&&(e.style.width="auto",e.style.top="0rem",e.style.borderRadius="1rem",e.style.background=this.obj.background||"white",e.style.margin="1rem",e.style.position="absolute",e.style.opacity=.8),i}}])&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();"undefined"!=typeof window&&(window.CustomDivRenderer=a)},9110:(e,t,r)=>{r.d(t,{Ko:()=>z});var n=r(5594),o=["kind","formId"];function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(m(e)+" is not iterable")}function u(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return d(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var f=[][n]?t(t([][n]())):(d(t={},n,function(){return this}),t),p=c.prototype=s.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,d(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=c,d(p,"constructor",c),d(c,"constructor",l),l.displayName="GeneratorFunction",d(c,o,"GeneratorFunction"),d(p),d(p,o,"Generator"),d(p,n,function(){return this}),d(p,"toString",function(){return"[object Generator]"}),(u=function(){return{w:i,m:h}})()}function d(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}d=function(e,t,r,n){if(t)o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r;else{var i=function(t,r){d(e,t,function(e){return this._invoke(t,r,e)})};i("next",0),i("throw",1),i("return",2)}},d(e,t,r,n)}var f=u().m(w);function p(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=h(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function h(e,t){if(e){if("string"==typeof e)return y(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}var v=new Set(["input","labelInput","checkbox","radio","picker"]),b={text:{type:"string"},email:{type:"string",format:"email"},tel:{type:"string"},url:{type:"string",format:"uri"},number:{type:"number"},password:{type:"string"},date:{type:"string",format:"date"},time:{type:"string",format:"time"},search:{type:"string"}},g=function(e){return!!e&&"object"===m(e)};function w(e){var t,r,n,o,i;return u().w(function(a){for(;;)switch(a.p=a.n){case 0:if(g(e)){a.n=1;break}return a.a(2);case 1:return a.n=2,e;case 2:t=Array.isArray(e.children)?e.children:[],r=p(t),a.p=3,r.s();case 4:if((n=r.n()).done){a.n=6;break}return o=n.value,a.d(c(w(o)),5);case 5:a.n=4;break;case 6:a.n=8;break;case 7:a.p=7,i=a.v,r.e(i);case 8:return a.p=8,r.f(),a.f(8);case 9:return a.a(2)}},f,null,[[3,7,8,9]])}function _(e){var t,r="string"==typeof e.name?e.name:e.id;if("string"!=typeof r||!r)return null;if("checkbox"===e.type)t={type:"boolean"};else if("radio"===e.type||"picker"===e.type){var n=Array.isArray(e.items)?e.items.filter(function(e){return"string"==typeof e}):[];t=n.length?{type:"string",enum:n}:{type:"string"},"radio"===e.type&&!0===e.multiple&&(t={type:"array",items:t})}else t=s({},b[e.inputType]||b.text);var o=[e.label,e.placeholder,e.title].find(function(e){return"string"==typeof e&&e.trim()});return o&&(t.description=o.trim()),{key:r,schema:t,required:!0===e.required}}function x(e){return e.routes.map(function(e){var t=e.to.map(function(e){return e.label?"".concat(e.label," → ").concat(e.to):e.to}).join(", ");return"from ".concat(e.from,": ").concat(t)}).join("; ")}function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function O(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return S(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(S(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,S(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,S(d,"constructor",c),S(c,"constructor",l),l.displayName="GeneratorFunction",S(c,o,"GeneratorFunction"),S(d),S(d,o,"Generator"),S(d,n,function(){return this}),S(d,"toString",function(){return"[object Generator]"}),(O=function(){return{w:i,m:f}})()}function S(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}S=function(e,t,r,n){if(t)o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r;else{var i=function(t,r){S(e,t,function(e){return this._invoke(t,r,e)})};i("next",0),i("throw",1),i("return",2)}},S(e,t,r,n)}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach(function(t){P(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function P(e,t,r){return(t=function(e){var t=function(e){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||M(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function A(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){T(i,n,o,a,s,"next",e)}function s(e){T(i,n,o,a,s,"throw",e)}a(void 0)})}}function R(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=M(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function M(e,t){if(e){if("string"==typeof e)return D(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var I="2026-07-21",L="nodality-agent-manifest",B=function(e){var t=String(e);return"undefined"!=typeof CSS&&"function"==typeof CSS.escape?CSS.escape(t):t.replace(/([^a-zA-Z0-9_-])/g,"\\$1")};function W(e){if(!e)return{text:"",actions:[]};var t,r=function(e){var t=getComputedStyle(e);if("none"===t.display||"0"===t.opacity)return!1;var r=e.getBoundingClientRect();return r.width>0&&r.height>0},n=[],o=R(e.querySelectorAll("h1,h2,h3,h4,h5,h6,p,li"));try{for(o.s();!(t=o.n()).done;){var i=t.value;if(r(i)){var a=(i.textContent||"").replace(/\s+/g," ").trim();if(a){var s=i.tagName.toLowerCase();n.push(/^h[1-6]$/.test(s)?"".concat("#".repeat(+s[1])," ").concat(a):a)}}}}catch(e){o.e(e)}finally{o.f()}var l,c=[],u=R(e.querySelectorAll("a,button,[role=button]"));try{for(u.s();!(l=u.n()).done;){var d=l.value;if(r(d)){var f=(d.textContent||"").replace(/\s+/g," ").trim();f&&!c.includes(f)&&c.push(f)}}}catch(e){u.e(e)}finally{u.f()}return{text:n.join("\n"),actions:c}}var F=function(e,t,r){return{ok:!1,code:e,got:t,valid:r}};function z(e){var t=e.mount,r=e.elements,a=e.nodes,l=e.morphs,c=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).specDraft,a=void 0===r?null:r,l=(Array.isArray(t)?t:[]).find(function(e){return g(e)&&"agent-surface"===e.op});if(!l)return null;var c,u=function(e){var t,r=[],n=p(Array.isArray(e)?e:[]);try{for(n.s();!(t=n.n()).done;){var o,i=p(w(t.value));try{for(i.s();!(o=i.n()).done;){var a=o.value;r.push(a)}}catch(e){i.e(e)}finally{i.f()}}}catch(e){n.e(e)}finally{n.f()}return r}(e),d=new Map,f=p(u);try{for(f.s();!(c=f.n()).done;){var m=c.value;"string"==typeof m.id&&d.set(m.id,m)}}catch(e){f.e(e)}finally{f.f()}var b=new Set((Array.isArray(l.exclude)?l.exclude:[]).filter(function(e){return"string"==typeof e})),k="string"==typeof l.name&&l.name.trim()?l.name.trim().replace(/[^a-zA-Z0-9_-]/g,"_"):null,O=function(e){return k?"".concat(k,"_").concat(e):e},S=[],E=function(e,t){var r=(Array.isArray(e)?e:[]).filter(function(e){return g(e)&&"morph"===e.op});if(!r.length)return null;var o,a,s=[],l=p(r);try{for(l.s();!(o=l.n()).done;){var c,u=o.value,d=p((0,n.G)(u));try{for(d.s();!(c=d.n()).done;){var f=c.value;"string"==typeof f.from&&s.push(f)}}catch(e){d.e(e)}finally{d.f()}}}catch(e){l.e(e)}finally{l.f()}if(!s.length)return null;for(var m=s[0].from,v=function(e){return s.filter(function(t){return t.from===e})},b=new Set([m]),w=[m];w.length;){var _,x=p(v(w.shift()));try{for(x.s();!(_=x.n()).done;){var k,O=p(_.value.toIds);try{for(O.s();!(k=O.n()).done;){var S=k.value;"string"!=typeof S||b.has(S)||(b.add(S),w.push(S))}}catch(e){O.e(e)}finally{O.f()}}}catch(e){x.e(e)}finally{x.f()}}for(var E=[],j=0,P=s;j<P.length;j++){var C=P[j];if(b.has(C.from)&&!t.has(C.from)){var T=[];if(C.byLabel)for(var A=0,R=Object.entries(C.byLabel);A<R.length;A++){var M=i(R[A],2),D=M[0],I=M[1],L="string"==typeof I&&I.startsWith("#")?I.slice(1):I;t.has(L)||T.push({label:D,to:L})}else{var B,W=p(C.toIds);try{for(W.s();!(B=W.n()).done;){var F=B.value;t.has(F)||T.push({label:null,to:F})}}catch(e){W.e(e)}finally{W.f()}}T.length&&E.push({from:C.from,to:T,back:!0===C.back})}}for(var z=[],q=0,N=E;q<N.length;q++){var U,H=p(N[q].to);try{for(H.s();!(U=H.n()).done;){var G=U.value;z.includes(G.to)||z.push(G.to)}}catch(e){H.e(e)}finally{H.f()}}return{root:m,states:[m].concat((a=z.filter(function(e){return e!==m}),function(e){if(Array.isArray(e))return y(e)}(a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||h(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),destinations:z,routes:E,canGoBack:E.some(function(e){return e.back})}}(t,b);if(E){var j=E.destinations.filter(function(e){return!b.has(e)});j.length&&S.push({name:O("navigate"),kind:"navigate",description:"Move to another view of this page. These are in-page views reached by a transition, not separate URLs. Routes: "+x(E)+".",inputSchema:{type:"object",properties:{destination:{type:"string",enum:j,description:"The view to move to."}},required:["destination"]}}),E.canGoBack&&S.push({name:O("go_back"),kind:"back",description:"Return to the previous view, unwinding the path actually taken rather than following an edge.",inputSchema:{type:"object",properties:{}}})}var P,C=p((Array.isArray(l.forms)?l.forms:[]).filter(function(e){return"string"==typeof e}));try{for(C.s();!(P=C.n()).done;){var T=P.value,A=d.get(T);if(A&&"form"===A.type){var R,M={},D=[],I=p(w(A));try{for(I.s();!(R=I.n()).done;){var L=R.value;if(v.has(L.type)){var B=_(L);B&&!M[B.key]&&(M[B.key]=B.schema,B.required&&D.push(B.key))}}}catch(e){I.e(e)}finally{I.f()}Object.keys(M).length&&S.push({name:O("submit_".concat(T.replace(/[^a-zA-Z0-9_-]/g,"_"))),kind:"submit",formId:T,description:"string"==typeof A.title&&A.title.trim()?A.title.trim():'Fill and submit the "'.concat(T,'" form on this page.'),inputSchema:s({type:"object",properties:M},D.length?{required:D}:{})})}}}catch(e){C.e(e)}finally{C.f()}S.push({name:O("read_view"),kind:"read",description:"Read the content currently on screen as structured text: headings, body text and the labels of anything actionable.",inputSchema:{type:"object",properties:{}}});var W=s({spec:a,tools:S.map(function(e){return e.kind,e.formId,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,o)})},E?{views:{root:E.root,states:E.states.filter(function(e){return!b.has(e)}),routes:E.routes}}:{});return{tools:S,manifest:W}}(r,a,{specDraft:I});if(!c)return null;var u=c.tools,d=c.manifest,f=Array.isArray(l)?l.filter(Boolean):[],m=function(e){return f.find(function(t){return t.states&&t.states.has(e)})||null},b=function(){var e,r=R(f);try{for(r.s();!(e=r.n()).done;){var n=e.value,o=n.states&&null!=n.current?n.states.get(n.current):null;if(o)return o}}catch(e){r.e(e)}finally{r.f()}return t},k=function(e){var r=function(t){if(!t||"function"!=typeof t.querySelector)return null;if(t.id===e)return"FORM"===t.tagName?t:t.querySelector("form");var r=t.querySelector("#".concat(B(e)));return r?"FORM"===r.tagName?r:r.querySelector("form"):null},n=r(t);if(n)return n;var o,i=R(f);try{for(i.s();!(o=i.n()).done;){var a=o.value;if(a.states){var s,l=R(a.states.values());try{for(l.s();!(s=l.n()).done;){var c=r(s.value);if(c)return c}}catch(e){l.e(e)}finally{l.f()}}}}catch(e){i.e(e)}finally{i.f()}return null};if("undefined"!=typeof document){var S=document.getElementById(L);S&&S.remove();var E=document.createElement("script");E.type="application/json",E.id=L,E.textContent=JSON.stringify(d,null,2),(document.body||document.documentElement).appendChild(E)}var P,T=R(u);try{for(T.s();!(P=T.n()).done;){var M=P.value;if("submit"===M.kind&&t){var D=k(M.formId);D&&(D.setAttribute("toolname",M.name),D.setAttribute("tooldescription",M.description))}}}catch(e){T.e(e)}finally{T.f()}var z,q,N=Promise.resolve(),U=function(e){var t=N.then(e,e);return N=t.then(function(){},function(){}),t},H=function(){var e,t=R(f);try{for(t.s();!(e=t.n()).done;){var r=e.value;if(null!=r.current)return r.current}}catch(e){t.e(e)}finally{t.f()}return null},G={navigate:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).destination;return U(A(O().m(function r(){var n,o,i;return O().w(function(r){for(;;)switch(r.n){case 0:if(n=m(e)){r.n=1;break}return r.a(2,F("UNKNOWN_VIEW",e,f.flatMap(function(e){return C(e.states.keys())})));case 1:return o=n.current,r.n=2,n.goToState(e);case 2:if(n.current===e){r.n=3;break}return i=C(n.states.keys()),r.a(2,F("UNREACHABLE_FROM_HERE",e,i.filter(function(e){return e!==o})));case 3:return r.a(2,j({ok:!0,view:n.current},W(n.states.get(n.current)||t)))}},r)})))},back:function(){return U(A(O().m(function e(){var r;return O().w(function(e){for(;;)switch(e.n){case 0:if(r=f.find(function(e){return e.history&&e.history.length})){e.n=1;break}return e.a(2,F("NO_HISTORY",null,[]));case 1:return e.n=2,r.goBack();case 2:return e.a(2,j({ok:!0,view:r.current},W(r.states.get(r.current)||t)))}},e)})))},read:(q=A(O().m(function e(){return O().w(function(e){for(;;)if(0===e.n)return e.a(2,j({ok:!0,view:H()},W(b())))},e)})),function(){return q.apply(this,arguments)}),submit:(z=A(O().m(function e(){var t,r,n,o,i,a,s,l,c,u,d,f=arguments;return O().w(function(e){for(;;)switch(e.n){case 0:if(t=f.length>0&&void 0!==f[0]?f[0]:{},n=k((r=f.length>1?f[1]:void 0).formId)){e.n=1;break}return e.a(2,F("NO_FORM",r.formId,[]));case 1:if(o=r.inputSchema&&r.inputSchema.properties||{},i=r.inputSchema&&r.inputSchema.required||[],!(a=i.filter(function(e){return void 0===t[e]||""===t[e]||null===t[e]})).length){e.n=2;break}return e.a(2,F("MISSING_REQUIRED",a,Object.keys(o)));case 2:s=[],l=0,c=Object.keys(o);case 3:if(!(l<c.length)){e.n=7;break}if(u=c[l],void 0!==t[u]){e.n=4;break}return e.a(3,6);case 4:if(d=n.querySelector('[name="'.concat(u,'"], #').concat(CSS.escape(u)))){e.n=5;break}return e.a(3,6);case 5:"checkbox"===d.type?d.checked=!!t[u]:d.value=String(t[u]),d.dispatchEvent(new Event("input",{bubbles:!0})),d.dispatchEvent(new Event("change",{bubbles:!0})),s.push(u);case 6:l++,e.n=3;break;case 7:return"function"==typeof n.requestSubmit?n.requestSubmit():n.submit(),e.a(2,{ok:!0,submitted:r.formId,filled:s})}},e)})),function(){return z.apply(this,arguments)})},K="undefined"!=typeof document&&document.modelContext?document.modelContext:"undefined"!=typeof navigator&&navigator.modelContext?navigator.modelContext:null,X=!1;if(K&&"function"==typeof K.registerTool){var J,$=R(u);try{var V=function(){var e=J.value;try{K.registerTool({name:e.name,description:e.description,inputSchema:e.inputSchema,execute:function(t){return G[e.kind](t,e)}}),X=!0}catch(t){console.warn("[nodality] agent surface: tool rejected",e.name,t)}};for($.s();!(J=$.n()).done;)V()}catch(e){$.e(e)}finally{$.f()}}return{manifest:d,tools:u,registered:X,destroy:function(){if(K&&"function"==typeof K.unregisterTool){var e,t=R(u);try{for(t.s();!(e=t.n()).done;){var r=e.value;try{K.unregisterTool(r.name)}catch(e){}}}catch(e){t.e(e)}finally{t.f()}}if("undefined"!=typeof document){var n=document.getElementById(L);n&&n.remove()}}}}},9290:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{m:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).res=document.createElement("div"),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"items",value:function(e){for(var t=0;t<e.length;t++)this.res.appendChild(e[t].render());return this}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.res),this.res}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},9310:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},s.apply(null,arguments)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{Z:()=>u});var u=function(e){function t(e,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t)).text=e,o.url=r,o.setup(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,i=[{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"setup",value:function(){window.matchMedia("(max-device-width: 415px)");var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.backgroundColor="#fff",e.style.fontFamily="Arial",e.style.width="100%",e.style.overflow="hidden",this.res=e,this}},{key:"set",value:function(e){return this.obj=e,e.onTap&&this.onTap(e.onTap),e.background&&(this.res.style.background=e.background),e.border&&(this.res.style.border=e.border),e.radius&&(this.res.style.borderRadius=e.radius),e.width&&(this.res.style.width=e.width),this.options=e,this.callReact(e),this.commonMethods(e),this}},{key:"callReact",value:function(e){var r,n,o,i=[];if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||e.transform){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&(r=t,n=this,"function"==typeof(o=s(l(1&3?r.prototype:r),"setAny",n))?function(e){return o.apply(n,e)}:o)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var a=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,e.transform];a=a.filter(function(e){return null!=e});for(var c=0;c<a.length;c++)i.push({range:a[c].range,log:a[c].op.name,target:a[c].target,op:a[c].op});var u=[];e.borderObj&&u.push("border"),e.backgroundOp&&u.push("background"),e.mar&&u.push("margin"),e.animation&&u.push("animation"),e.span&&u.push("span"),u.push("border"),this.chainReact(i,this.options.id,u)}}},{key:"frame",value:function(e){return e.height&&(this.res.style.height=e.height),e.width&&(this.res.style.width=e.width),this}},{key:"items",value:function(e){for(var t=0;t<e.length;t++)this.res.appendChild(e[t].render());return this}},{key:"shadow",value:function(){return this.res.style.boxShadow="1px 1px 20px rgba(0, 0, 0, 0.60)",this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},9383:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function l(e,t,r,n){var o=c(u(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof o?function(e){return o.apply(r,e)}:o}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(null,arguments)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}r.d(t,{_:()=>f});var f=function(e){function t(e,r,o,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(a=function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)).url=e,a.res=null,a.code=[],a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,a=[{key:"setType",value:function(e){e.url;var t=e.type,r=e.mode;if(this.code=[],"exact"===t){var n='new Image("'.concat(this.url,'", "exact")');this.code.push(n)}else if("uncover"===t){var o='new Image("'.concat(this.url,'", "uncover")');this.code.push(o)}else this.code.push("new Image('".concat(this.url,"')"));return this.image(this.url,r,t),this}},{key:"hand",value:function(){return this.res.style.cursor="hand",this}},{key:"getType",value:function(){return"HTMLImageElement"}},{key:"toCode",value:function(){var e=this.options;this.res.style.border&&(e.border=this.res.style.border);var t=Object.fromEntries(Object.entries(e).filter(function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2);return t[0],null!==t[1]}));return["new Image().set(".concat(JSON.stringify(t,null,2).replace(/"(\w+)"\s*:/g,"$1:"),")")]}},{key:"formatObj",value:function(e){return JSON.stringify(e,null,2).replace(/"(\w+)"\s*:/g,"$1:")}},{key:"set",value:function(e){var r="";this.options=e;var n=e;n.onTap&&this.onTap(n.onTap);var o=e.isFull;if(o?this.image(e.url,"exact",o,"a"):this.setup(),e.url&&this.res.setAttribute("src",e.url),"IMG"===this.res.tagName&&(e.srcset&&this.res.setAttribute("srcset",e.srcset),e.sizes&&this.res.setAttribute("sizes",e.sizes),void 0!==e.alt&&this.res.setAttribute("alt",e.alt),e.loading&&this.res.setAttribute("loading",e.loading),e.decoding&&this.res.setAttribute("decoding",e.decoding),e.fetchPriority&&this.res.setAttribute("fetchpriority",e.fetchPriority)),e.id&&this.res.setAttribute("id",e.id),e.id&&(r+=' id: "'.concat(e.id,'", \n')),this.id=e.id,"exact"===o?'new Image("'.concat(this.url,'", "exact")'):"uncover"===o&&'new Image("'.concat(this.url,'", "uncover")'),this.commonMethods(n),e.vtn&&(this.res.style.viewTransitionName=e.vtn),this.vtn=e.vtn,e.minHeight&&(this.res.style.minHeight=e.minHeight),e.index&&l(t,"setIndex",this,3)([e.index]),e.index&&(this.index=e.index),e.index&&(r+='\n index: "'.concat(e.index,'",')),e.resprop&&this.resprop(e.resprop),e.centerSelf&&(this.res.style.marginRight="auto",this.res.style.marginLeft="auto"),e.fitContent&&(this.res.style.width="100%",this.res.style.height="100%",this.res.style.marginRight="auto",this.res.style.marginTop="auto",this.res.style.objectFit="cover"),e.objectFit&&(this.res.style.objectFit=e.objectFit),e.objectFit&&(r+='\n objectFit: "'.concat(e.objectFit,'",')),e.objectPosition&&(this.res.style.objectPosition=e.objectPosition),e.objectPosition&&(r+='\n objectPosition: "'.concat(e.objectPosition,'",')),e.as&&this.as(e.as),e.onScroll&&this.onScroll(e.onScroll),e.class&&this.res.setAttribute("class",e.class),e.gpos&&(this.gposObject=e.gpos),e.gpos&&(this.res.style.gridColumn=e.gpos.col,this.res.style.gridRow=e.gpos.row,r+="\n gpos: ".concat(this.removeQuotesFromFirstWord(JSON.stringify(e.gpos)),", ")),e.filtera){var i;i=Array.isArray(e.filtera)?n.filtera.filter(function(e){return"filter"===e.op.name})[0]:e.filtera;var a=this.removeQuotesFromFirstWord(JSON.stringify(i));r+="\n filtera: ".concat(a,", \n")}if(e.keySet&&this.keySet(e.keySet),e.stype&&this.setType(e.stype),e.isBackground&&(this.isBackground=e.isBackground),e.zIndex&&(r+='\n zIndex: "'.concat(e.zIndex,'", \n')),e.area&&this.setArea(e.area),e.area&&(r+='area: "'.concat(e.area,'", \n')),e.opacity&&(this.res.style.opacity=e.opacity),e.width&&(this.res.style.width=e.width),e.width&&(r+='width: "'.concat(e.width,'", ')),e.maxWidth&&(this.res.style.maxWidth=e.maxWidth),e.maxWidth&&(r+='maxWidth: "'.concat(e.maxWidth,'", ')),e.height&&(this.res.style.height=e.height),e.height&&(r+='height: "'.concat(e.height,'", ')),e.maxWidth&&this.maxWidth(e.maxWidth),e.maxWidth&&(r+='maxWidth: "'.concat(e.maxWidth,'", \n')),e.radius&&this.cornerRadius(e.radius),e.radius&&(r+='radius: "'.concat(e.radius,'", \n')),e.marginOp){var s=this.removeQuotesFromFirstWord(JSON.stringify(e.marginOp));r+="\n marginOp: ".concat(s,",")}if(e.clipPath&&this.clipPath(e.clipPath),e.clipPath&&(r+='clipPath: "'.concat(e.clipPath,'", \n')),n.stroke||n.gradient||n.span||n.backgroundOp||n.layout||n.marginOp||n.shadow||n.filtera||n.animation){n.gradient,n.gradient&&(this.globalGradient=n.gradient.op.gradient),n.stroke&&l(t,"setAny",this,3)([{globalBlast:"".concat(n.stroke.op.width," ").concat(n.stroke.op.color)}]);var c=[n.stroke,n.gradient,n.animation,n.span,n.backgroundOp,n.layout,n.marginOp,n.shadow,n.filtera,n.animation];c=c.filter(function(e){return null!=e});for(var u=[],d=0;d<c.length;d++)u.push({range:c[d].range,log:c[d].op.name,target:c[d].target,op:c[d].op});this.chainReact(u,this.options.id)}if(n.shadow){var f=n.shadow,p=this.removeQuotesFromFirstWord(JSON.stringify(f));r+="\n shadow: ".concat(p,",")}if(n.animation){var h=n.animation,y=this.removeQuotesFromFirstWord(JSON.stringify(h));r+="\n animation: ".concat(y,",")}var m="\n .set({".concat(r,"}) \n \n");return Object.keys(e).length>0?this.code.push(m):this.code.push(","),this}},{key:"setID",value:function(e){return null!=e&&this.res.setAttribute("id",e),this}},{key:"opacity",value:function(e){return this.res.style.opacity="".concat(e),this}},{key:"setGrid",value:function(){return this.res.style.gridRow="span 2",this.res.style.gridColumn="span 3",this}},{key:"transform",value:function(e){return this.res.style.transform=e,this}},{key:"offset",value:function(){return this.res.style.marginLeft="-60px",this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"border",value:function(e){return this.res.style.borderTopLeftRadius="16px",this.res.style.borderTopRightRadius="16px",this}},{key:"mobileWidth",value:function(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="120%"),this}},{key:"image",value:function(e,t,r,n,o){var i=window.matchMedia("(max-device-width: 415px)"),a=document.createElement("div");return a.style.viewTransitionName=n,a.style.width="100%",a.style.height=this.options.height?this.options.height:"400px",o&&(a.style.gridColumn=o.gridColumn,a.style.gridRow=o.gridRow),i.matches&&(a.style.height="500"),a.style.backgroundImage="url(".concat(e,")"),a.style.backgroundPosition="center center",a.style.backgroundRepeat="no-repeat",a.style.backgroundSize="cover","uncover"===r&&(a.style.backgroundSize="contain"),"contain"===t&&(a.style.backgroundSize="contain"),this.res=a,this}},{key:"setup",value:function(){var e=document.createElement("img");return e.style.width="100%",e.src=this.url,this.res=e,this}},{key:"float",value:function(e){return this.res.style.float="".concat(e),this}},{key:"grayscale",value:function(e){return this.res.style.filter="grayscale(".concat(e,"%)"),this}},{key:"flex",value:function(e){return this.res.style.flex=1,this}},{key:"height",value:function(e){return this.res.style.height=e,this.res.style.width="auto",this}},{key:"expand",value:function(e){var t=this,r=function(){var r,n;if(window.matchMedia("(min-width: ".concat(e.at,")")).matches){t.res.style.width="".concat(e.width);var o=window.innerWidth/2-(n=r=e.width,(r.includes("%")||r.includes("px"))&&(n=n.substr(0,2)),(r.includes("%")?Number(n/100*window.innerWidth):r.includes("px")?Number(n):void 0)/2);t.res.style.marginLeft="".concat(o,"px")}else t.res.style.width="100%",t.res.style.marginLeft="0px";window.matchMedia("(max-device-width: 415px)").matches&&(t.res.style.width="100%",t.res.style.marginLeft="0px")};return r(),window.addEventListener("resize",r),this}},{key:"width",value:function(e){return this.res.style.width=e,this.res.style.height="auto",this}},{key:"dimensions",value:function(e,t){return e&&t?(this.res.style.width=e,this.res.style.height=t):(this.res.style.width=e,this.res.style.height=e),this}},{key:"size",value:function(e,t){return this.deprecatedOption("size() on this component","dimensions(w, h)"),this.dimensions(e,t)}},{key:"frame",value:function(e){var t=e.width,r=e.height;return t&&r?(this.res.style.width=t,this.res.style.height=r):(this.res.style.width=t,this.res.style.height=t),this}},{key:"shadow",value:function(e){return"mild"===e.type?this.res.style.boxShadow="0px 3px 15px rgba(0,0,0,0.2)":this.res.style.boxShadow="".concat(e.x,"px ").concat(e.y,"px ").concat(e.radius,"px ").concat(e.color),this}},{key:"cornerRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"clipPath",value:function(e){this.res.style.clipPath='path("'.concat(e,'")');var t=document.createElementNS("http://www.w3.org/2000/svg","svg");return t.style.display="block",t.style.width="100%",t.style.height="100%",t.style.overflow="visible",this}},{key:"render",value:function(e){var t=this.res;if(!e)return t;document.querySelector(e).appendChild(t)}}],a&&i(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(r(9873).y)},9521:(e,t,r)=>{r.d(t,{m:()=>f});var n=r(9873),o=r(1382);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(null,arguments)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,n=[{key:"removeQuotesFromFirstWord",value:function(e){if(e)return e.replace((0,o._H)(),"$1:")}},{key:"toCode",value:function(){var e=this.items.map(function(e){return e.toCode()}).flatMap(function(e){return e}),t=(this.removeQuotesFromFirstWord(JSON.stringify(this.obj)),'\nbackground: "'.concat(this.obj.background,'",\nbrand: ').concat(this.obj.brand.toCode(),",\nmar: ").concat(JSON.stringify(this.obj.mar),",\npad: ").concat(JSON.stringify(this.obj.pad),",\nresmar: ").concat(JSON.stringify(this.obj.resmar),",\nrespad: ").concat(JSON.stringify(this.obj.respad),",\nradius: ").concat(JSON.stringify(this.obj.radius),",\n"));return"new MobileBar().set({".concat(t,"}).add([\n ").concat(e.join(","),"\n\n ])")}},{key:"set",value:function(e){var r,n,o;return this.obj=e,this.obj=e,this.makeNavbar(e),e.mar&&(r=t,n=this,"function"==typeof(o=c(u(1&3?r.prototype:r),"mar",n))?function(e){return o.apply(n,e)}:o)([e.mar]),e.maxHeight&&(this.res.style.maxHeight=e.maxHeight),e.radius&&(this.res.style.borderRadius=e.radius),e.hamburgerColour&&(this.hamburgerColour=e.hamburgerColour),this.setStyles(e),this}},{key:"makeNavbar",value:function(e){var t=this,r=e.brand;this.navbar=document.createElement("nav"),this.navbar.classList.add("mobile-navbar"),this.navbarHeader=document.createElement("div"),this.navbarHeader.classList.add("navbar-header"),this.brand=document.createElement("div"),this.brand.classList.add("navbar-brand"),e.brand&&"function"==typeof r.render&&(console.log("Appending brand:",r.render()),this.brand.appendChild(r.render())),this.toggleButton=document.createElement("button"),this.toggleButton.classList.add("navbar-toggle"),this.toggleButton.innerHTML="☰",this.navContent=document.createElement("div"),this.navContent.classList.add("navbar-content"),this.navbarHeader.appendChild(this.brand),this.navbarHeader.appendChild(this.toggleButton),this.navbar.appendChild(this.navbarHeader),this.navbar.appendChild(this.navContent),this.isMobileNavOpen=!1,this.toggleButton.addEventListener("click",function(){t.toggleMobileNav()}),this.res=this.navbar}},{key:"setStyles",value:function(e){var t,r;this.navbar.style.display="flex",this.navbar.style.flexDirection="column",this.navbar.style.padding="1rem",this.navbar.style.backgroundColor=null!==(t=e.background)&&void 0!==t?t:"orange",this.navbarHeader.style.display="flex",this.navbarHeader.style.alignItems="center",this.navbarHeader.style.justifyContent="space-between",this.navbarHeader.style.width="100%",this.brand.style.fontSize="1.5rem",this.toggleButton.style.background="none",this.toggleButton.style.border="none",this.toggleButton.style.color=null!==(r=this.hamburgerColour)&&void 0!==r?r:"#34495e",this.toggleButton.style.fontSize="1.5rem",this.toggleButton.style.cursor="pointer",this.navContent.style.display="none"}},{key:"add",value:function(e){this.items=e;for(var t=0;t<e.length;t++){var r=e[t];this.navContent.appendChild(r.render())}return this}},{key:"toggleMobileNav",value:function(){this.isMobileNavOpen=!this.isMobileNavOpen,this.navContent.style.display=this.isMobileNavOpen?"flex":"none",this.isMobileNavOpen?(this.navContent.style.flexDirection="column",this.navContent.style.gap="0.5rem",this.navContent.style.padding="1rem"):(this.navContent.style.flexDirection="",this.navContent.style.gap="",this.navContent.style.backgroundColor="",this.navContent.style.padding="")}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.navbar),this.navbar}}],n&&a(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},9668:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{l:()=>s}),r(9873);var s=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"POST";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.action=t,this.method=r,this.elements=[],this.formElement=document.createElement("form"),this.formElement.action=this.action,this.formElement.method=this.method},t=[{key:"add",value:function(e){var t=this;return this.elements=e,e.forEach(function(e){if(!e||"function"!=typeof e.render)throw new Error("Each element in the array must have a render method that returns an HTML DOM element.");t.formElement.appendChild(e.render())}),this}},{key:"toCode",value:function(){var e=this.elements.map(function(e){return e.toCode()}),t=Object.entries(this.obj).map(function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=t[0],n=t[1],i="string"==typeof n?'"'.concat(n,'"'):n;return"".concat(r,": ").concat(i)}).join(", ");return["new Form().set({".concat(t,"}).add([ \n ").concat(e.join(", \n"),"])")]}},{key:"set",value:function(e){return this.obj=e,e.action&&this.setAction(e.action),e.method&&this.setMethod(e.method),e.id&&(this.formElement.id=e.id),this}},{key:"setAction",value:function(e){this.action=e,this.formElement.action=this.action}},{key:"setMethod",value:function(e){this.method=e,this.formElement.method=this.method}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.formElement),this.formElement}}],t&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},9793:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{C:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t))._noTheme=!0,e.oldLength=0,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(i=[{key:"observe",value:function(e){return this.initialState=e,this.Proxima(e)}},{key:"Proxima",value:function(e){var t=this;return new Proxy(e,{set:function(e,r,n){return e[r]=n,t.initialState&&t.initialState.data&&"function"==typeof t.initialState.data.push&&t.initialState.data.push(r),"length"!==r&&t.refreshUI("Added"),!0},has:function(e,r){return"length"!==r&&t.refreshUI("Deleted"),Reflect.has(e,r)}})}},{key:"refreshUI",value:function(e){var t=this.initialState;this.adjustState(t)}},{key:"loadState",value:function(e,t){return this.loadEl=t,this.initialState=e,this.observe(this.state.data)}},{key:"adjustState",value:function(e){document.querySelector(this.loadEl);var t=e[e.length-1],r=document.createElement("p"),n=document.createTextNode(t);r.appendChild(n),document.body.appendChild(r)}},{key:"mount",value:function(e){this.res=e,this.render(e).render(e)}},{key:"toCode",value:function(){return[""]}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y)},9800:(e,t,r)=>{r.d(t,{t:()=>y});var n=r(9873),o=r(1382);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},f.apply(null,arguments)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var y=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=p(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}(this,t)).res=null,e.options={},e.code=[],e.elCSS=[],e.html=[],e.react=[],e.setup(r),e.code.push("new Polygon(".concat(JSON.stringify(r),")")),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),r=t,n=[{key:"setup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.createElement("div");return e.id&&t.setAttribute("id",e.id),this.res=t,this.res.style.padding=0,this.res.style.margin=0,this.res.style.display=e.inline?"inline-block":"block",this}},{key:"toCode",value:function(){var e=this.options||{},t=(0,o.sy)(e,2);return"new Polygon().set(".concat(t,")")}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"set",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=s(s({},this.options),e),e.id&&(this.res.id=e.id),e.class&&(this.res.className=e.class),e.sides&&this.sides(e.sides),e.size&&this.size(e.size.width||e.size,e.size.height),e.color&&this.color(e.color),e.border&&this.border(e.border),e.margin&&this.mar([{a:e.margin}]),e.padding&&this.pad([{a:e.padding}]),e.background&&this.background(e.background),e.center&&this.center();var r=e;this.obj=e;var n,o,i,a=[];if(r.stroke||r.gradient||r.backgroundOp||r.layout||r.marginOp||r.shadow||r.animation||r.filtera||r.transform){var l;r.gradient&&(this.globalGradient=r.gradient.op.gradient),r.stroke&&(null===(n=t,o=this,l="function"==typeof(i=f(p(1&3?n.prototype:n),"setAny",o))?function(e){return i.apply(o,e)}:i)||void 0===l||l([{globalBlast:"".concat(r.stroke.op.width," ").concat(r.stroke.op.color)}]));for(var c=[r.stroke,r.gradient,r.animation,r.backgroundOp,r.layout,r.marginOp,r.shadow,r.animation,r.filtera,r.transform].filter(function(e){return null!=e}),u=0;u<c.length;u++)a.push({range:c[u].range,log:c[u].op.name,target:c[u].target,op:c[u].op});var d=[];r.border&&d.push("border"),r.background&&d.push("background"),(r.mar||r.margin)&&d.push("margin"),r.animation&&d.push("animation"),"radial"===r.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)"),this.chainReact(a,this.options.id,d)}return this}},{key:"size",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this.res.style.width="number"==typeof e?e+"px":e,this.res.style.height="number"==typeof t?t+"px":t,this}},{key:"sides",value:function(e){return e<3&&(e=3),this.res.style.clipPath=t.makePolygon(e),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"border",value:function(e){return this.res.style.border="string"==typeof e?e:"".concat((null==e?void 0:e.width)||"1px"," solid ").concat((null==e?void 0:e.color)||"black"),this}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"render",value:function(e){return"string"==typeof e?document.querySelector(e).appendChild(this.res):e instanceof HTMLElement&&e.appendChild(this.res),this}}],a=[{key:"makePolygon",value:function(e){for(var t=2*Math.PI/e,r=[],n=0;n<e;n++){var o=50+50*Math.cos(n*t-Math.PI/2),i=50+50*Math.sin(n*t-Math.PI/2);r.push("".concat(o,"% ").concat(i,"%"))}return"polygon(".concat(r.join(","),")")}}],n&&c(r.prototype,n),a&&c(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}(n.y)},9873:(e,t,r)=>{r.d(t,{y:()=>p});var n=r(5318),o=r(5379),i=r(1382);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=l(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function f(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}var p=function(){function e(){var t,r,o,i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,o=function(e){if(e.transform||e.op){var t=e.op;e.transform||(t=e.op),t.duration||(t.duration="3s-ease-in-out"),i.setDefault=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===e.length?t+" ":e};var r=function(){var r="",n="",o="",a="",s="",l="",c="",u="",d="";if(0!==t.values.length){t.values.forEach(function(e){e.startsWith("tx:")&&(r=e.replace("tx:","")),e.startsWith("ty:")&&(n=e.replace("ty:","")),e.startsWith("tz:")?o=e.replace("tz:",""):e.startsWith("scale(")?a=e:e.startsWith("skew(")?s=e:e.startsWith("rotate(")?l=function(e){var t=e.match(/rotate\(([^)]+)\)/);if(!t)return e;var r=t[1].split(",").map(function(e){return e.trim()});return 1===r.length?"rotate(".concat(r[0],")"):2===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],")"):3===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],") rotate(").concat(r[2],")"):e}(e):e.startsWith("perspective(")?c=e:e.startsWith("matrix(")?u=e:e.startsWith("opacity:")&&(d=e.replace("opacity:",""))}),r=i.setDefault(r),n=i.setDefault(n),o=i.setDefault(o);var f="";if("0px"!=n&&"0px"!=r&&"0px"!=o?f+="translate3d(".concat(r,", ").concat(n,", ").concat(o,")"):"0px"==n&&"0px"==r||(f+="translate(".concat(r,", ").concat(n,")")),a&&(f+=" ".concat(a)),l&&(f+=" ".concat(l)),s&&(f+=" ".concat(s)),c&&(f+=" ".concat(c)),u&&(f+=" ".concat(u)),f){if(e.op.duration){var p=e.op.duration.replace(/^(\d+)(s)-/,function(e,t,r){return t/2+r+" "}),h="transform ".concat(p,", opacity ").concat(p);i.res.style.transition=h}else i.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";e.op.static&&(i.res.style.transition=""),(i.blastTarget||i.res).style.transform=f,i.res.style.opacity=d}else console.warn("[nodality] transform produced no geometric value - check `values`")}};t.on?i.res.addEventListener(t.on,function(){t.delay?setTimeout(function(){r()},t.delay):r()}):i._on(window,"load",function(){t.delay?setTimeout(function(){r()},t.delay):r()});var n=function(){var e="";t.values.forEach(function(t){t.startsWith("tx:")?e+="translateX(0) ":t.startsWith("ty:")?e+="translateY(0) ":t.startsWith("tz:")?e+="translateZ(0) ":t.startsWith("scale(")?e+="scale(1) ":t.startsWith("skew(")?e+="skew(0, 0) ":t.startsWith("rotate(")?e+="rotate(0) ":t.startsWith("perspective(")?e+="perspective(0) ":t.startsWith("matrix(")&&(e+="matrix(1, 0, 0, 1, 0, 0) "),i.res.style.opacity="1"}),e&&(i.res.style.transform=e.trim())};if(t.on)i.res.addEventListener("mouseout",function(){t.keep||n()});else{var o=1e3*parseFloat(t.duration),a=t.closeAfter?t.closeAfter:0;setTimeout(function(){t.keep||n()},o/2+a)}t.hardCSS&&(i.res.style.transform=t.hardCSS)}else console.warn("[nodality] reactOnTransform: unrecognised transform descriptor - ignored")},(r=f(r="reactOnTransform"))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1},this.openedElements=new WeakMap,"undefined"!=typeof document&&(this._themeUnsub=n.S.subscribe(function(e){return i._applyTheme(e)}),Promise.resolve().then(function(){return i._applyTheme(n.S.mode)}))}return t=e,r=[{key:"rasterize",value:function(e){var t=this;if(e&&0!==e.length&&!this._rasterHandle&&!this._rasterCancelled&&"undefined"!=typeof document&&"undefined"!=typeof setTimeout){var r=0,n=function(){if(!t._rasterHandle&&!t._rasterCancelled){if(t.res&&t.res.isConnected){try{t._rasterHandle=(0,o.sB)(t.res,e)}catch(e){return void console.warn("[nodality] raster pipeline skipped:",e)}if(t._rasterHandle)return}++r<80&&(t._rasterTimer=setTimeout(n,50))}};this._rasterTimer=setTimeout(n,0),this._track(function(){return clearTimeout(t._rasterTimer)})}}},{key:"isHidden",value:function(e){e&&(this.res.style.display="none")}},{key:"theme",value:function(e){var t=this;return e&&"object"===u(e)?(this._themeMap=e,this._applyTheme(n.S.mode),this._themeUnsub||(this._themeUnsub=n.S.subscribe(function(e){return t._applyTheme(e)})),this):this}},{key:"_track",value:function(e){return"function"!=typeof e||(this._disposables||(this._disposables=[])).push(e),e}},{key:"_on",value:function(e,t,r,n){return e&&"function"==typeof e.addEventListener?(e.addEventListener(t,r,n),this._track(function(){return e.removeEventListener(t,r,n)}),r):r}},{key:"destroy",value:function(){if("function"==typeof this._themeUnsub&&(this._themeUnsub(),this._themeUnsub=null),this._rasterHandle&&"function"==typeof this._rasterHandle.destroy)try{this._rasterHandle.destroy()}catch(e){}if(this._rasterHandle=null,this._rasterCancelled=!0,this._disposables){var e,t=s(this._disposables);try{for(t.s();!(e=t.n()).done;){var r=e.value;try{r()}catch(e){}}}catch(e){t.e(e)}finally{t.f()}this._disposables.length=0}return this._responsiveTasks=null,this._responsiveHandler=null,this.res&&this.res.parentNode&&this.res.parentNode.removeChild(this.res),this}},{key:"_applyTheme",value:function(e){if(!this._noTheme&&this.res)if(this._themeMap){var t=this._themeMap[e];if(!t)return;for(var r in t)this.res.style[r]=t[r]}else{var o=n.S.defaults&&n.S.defaults[e];if(o)for(var i in this._themeOriginal||(this._themeOriginal={}),o)i in this._themeOriginal||(this._themeOriginal[i]=this.res.style[i]||""),this._themeOriginal[i]||(this.res.style[i]=o[i])}}},{key:"vars",value:function(e){if(!e||"object"!==u(e))return this;for(var t in e)this.res.style.setProperty(t,String(e[t]));return this}},{key:"keySet",value:function(e){if(this.temporaryVal=1,Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]&&null!=e[t].key&&(this.res.style[e[t].key]=e[t].value);return this}return this.res.style[e.key]=e.value,this}},{key:"commonMethods",value:function(e){var t={exact:"fontSize",cursor:"cursor",width:"width",maxWidth:"maxWidth",height:"height",maxHeight:"maxHeight",radius:"borderRadius",lineHeight:"lineHeight",background:"background",color:"color",font:"fontFamily",opacity:"opacity",gap:"gap",minHeight:"minHeight",position:"position",inset:"inset",top:"top",right:"right",bottom:"bottom",left:"left",zIndex:"zIndex",flex:"flex",flexShrink:"flexShrink",flexGrow:"flexGrow",flexBasis:"flexBasis",flexWrap:"flexWrap",alignSelf:"alignSelf",display:"display",gridTemplateColumns:"gridTemplateColumns",gridTemplateRows:"gridTemplateRows",rowGap:"rowGap",columnGap:"columnGap",cols:"gridTemplateColumns",rows:"gridTemplateRows",areas:"gridTemplateAreas",area:"gridArea",letterSpacing:"letterSpacing",textTransform:"textTransform",whiteSpace:"whiteSpace",overflowWrap:"overflowWrap",wordBreak:"wordBreak",wordWrap:"wordWrap",boxShadow:"boxShadow",backdropFilter:"backdropFilter",WebkitBackdropFilter:"WebkitBackdropFilter",overflow:"overflow",overflowX:"overflowX",overflowY:"overflowY",WebkitOverflowScrolling:"WebkitOverflowScrolling",WebkitTapHighlightColor:"WebkitTapHighlightColor",minWidth:"minWidth",boxSizing:"boxSizing",pointerEvents:"pointerEvents",userSelect:"userSelect",WebkitUserSelect:"WebkitUserSelect",textAlign:"textAlign",transition:"transition"};for(var r in t)null!=e[r]&&(this.res.style[t[r]]=e[r]);return"string"==typeof e.transform&&(this.res.style.transform=e.transform),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.respad&&this.respad(e.respad),e.borderObj&&e.borderObj.width&&this.borderObj(e.borderObj),e.resmar&&this.resmar(e.resmar),e.hover&&this.hover(e.hover),e.size&&this.fluidCopy(e.size),e.resprop&&this.resprop(e.resprop,e),e.vars&&this.vars(e.vars),e.keySet&&this.keySet(e.keySet),e.noTheme&&(this._noTheme=!0),e.theme&&this.theme(e.theme),e.hide&&this.isHidden(e.hide),e.raster&&this.rasterize(e.raster),e.center&&this.center(e.center,{display:e.disp||e.display,flexDirection:e.flexDir||e.flexDirection}),e.transform&&"object"===u(e.transform)&&this.reactOnTransform(e.transform),void 0!==e.opacity&&(this.res.style.opacity=e.opacity),e.bold?this.res.style.fontWeight="bold":null!=e.weight&&(this.res.style.fontWeight=e.weight),this}},{key:"hover",value:function(e){var t=this;if(e.border){var r=e.border.width;this.res.style.border=r?"".concat(r,"px solid transparent"):"1px solid transparent"}var n=this.options&&this.options.borderObj;return n&&(this.res.style.border="".concat(n.width,"px solid ").concat(n.color)),this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,this.prevBorder=this.res.style.border,this.prevBoxShadow=this.res.style.boxShadow,e.animation&&(this.res.style.transition="".concat(e.animation),this.res.style.transitionProperty="background-color, color, border, box-shadow, transform"),this.prevTransform=this.res.style.transform,this.res.onmouseout=function(){t.res.style.backgroundColor="".concat(t.prevColor),t.res.style.color="".concat(t.foreColor),t.res.style.border=t.prevBorder,null==e.scale&&null==e.transform||(t.res.style.transform=t.prevTransform||""),null!=e.boxShadow&&(t.res.style.boxShadow=t.prevBoxShadow||"")},this.res.onmouseover=function(){if(t.res.style.color=e.color,t.res.style.backgroundColor=e.background,e.border){var r,n=e.border.width,o=null!==(r=e.border.color)&&void 0!==r?r:"#2ECC71";t.res.style.border=n?"".concat(n,"px solid ").concat(o):"1px solid #2ECC71"}if(null!=e.scale||null!=e.transform){var i=t.prevTransform?"".concat(t.prevTransform," "):"",a=[];null!=e.transform&&a.push(e.transform),null!=e.scale&&a.push("scale(".concat(e.scale,")")),t.res.style.transform="".concat(i).concat(a.join(" "))}null!=e.boxShadow&&(t.res.style.boxShadow=e.boxShadow)},this}},{key:"onScroll",value:function(e){var t=this,r=function(e){if(null==e)return{num:0,unit:"px"};var t=String(e).match(/^(-?[\d.]+)(.*)$/);return t?{num:parseFloat(t[1]),unit:t[2]||"px"}:{num:0,unit:"px"}},n=function(e){var r=e&&null!=e.tx?e.tx:"0px",n=e&&null!=e.ty?e.ty:"0px";t.res.style.transform="translate3d(".concat(r,", ").concat(n,", 0)")};"opacity"===e.value?this.res.style.opacity=e.valMin:"scale"===e.value?this.res.style.transform="scale(".concat(e.valMin,")"):"trn"===e.value&&n(e.valMin);var o=function(){if("trn"!==e.value){var o=t.smartRange(window.scrollY,{min:e.from,max:e.to},{min:e.valMin,max:e.valMax});"opacity"===e.value?t.res.style.opacity=o:"scale"===e.value&&(t.res.style.transform="scale(".concat(o,")"))}else{for(var i={},a=["tx","ty"],s=0;s<a.length;s++){var l=a[s],c=e.valMin&&null!=e.valMin[l],u=e.valMax&&null!=e.valMax[l];if(c||u){var d=r(c?e.valMin[l]:u?e.valMax[l]:"0px"),f=r(u?e.valMax[l]:c?e.valMin[l]:"0px"),p=t.smartRange(window.scrollY,{min:e.from,max:e.to},{min:d.num,max:f.num});i[l]="".concat(p).concat(d.unit)}}n(i)}};this._on(window,"scroll",o),0===e.from&&o()}},{key:"setAny",value:function(e){this[Object.keys(e)[0]]=[Object.values(e)[0]]}},{key:"setID",value:function(e){this.id=e}},{key:"setPrevText",value:function(e){this.prevText=e}},{key:"_setupResponsiveManager",value:function(){var e=this;this._responsiveTasks=this._responsiveTasks||[];var t=function(){e._responsiveTasks.forEach(function(e){e()})};this._responsiveHandler||(this._responsiveHandler=t,this._on(window,"resize",t)),setTimeout(function(){t()},0)}},{key:"resprop",value:function(t,r){var n=this;this.options=r;var o={default:[0,1e5],xs:[0,575],sm:[576,767],md:[768,991],lg:[992,1199],xl:[1200,1399],xxl:[1400,1e5]},i=["resprop","breakpoint","value","values","range"],s={flexDir:"flexDirection",dir:"flexDirection",justify:"justifyContent",align:"alignItems",wrap:"flexWrap",bg:"background",radius:"borderRadius",z:"zIndex",exact:"fontSize"},l=function(e){var t=s[e]||e;return"undefined"==typeof console||"function"==typeof n[e]||t in n.res.style||console.warn('[nodality] resprop: "'.concat(e,'" is not a CSS property or component method — ignored.')+(s[e]?"":" Did you mean one of: ".concat(Object.keys(s).join(", "),"?"))),t};t.forEach(function(e){void 0!==o[e.breakpoint]?e.range=o[e.breakpoint]:Array.isArray(e.breakpoint)&&2===e.breakpoint.length?e.range=[parseInt(e.breakpoint[0],10),parseInt(e.breakpoint[1],10)]:e.range=[0,parseInt(e.breakpoint,10)]}),t.sort(function(e,t){return e.range[1]-t.range[1]});var c=t.find(function(e){return"default"===e.breakpoint});c||(c={breakpoint:"default",range:o.default},t.unshift(c));var u=new Set;t.forEach(function(e){Object.keys(e).forEach(function(e){i.includes(e)||"range"===e||u.add(e)})}),u.forEach(function(e){void 0===c[e]&&(c[e]=n.options[e]||"initial")}),this._responsiveTasks=this._responsiveTasks||[],this._responsiveTasks.push(function(){for(var r=e.viewportWidth(),o=c,s=0;s<t.length;s++){var d=t[s],f=a(d.range,2),p=f[0],h=f[1];if("default"!==d.breakpoint&&r>=p&&r<=h){o=d;break}}for(var y in u.forEach(function(e){if("keySet"===e){var t=c[e];t&&t.key&&(n.res.style[t.key]=t.value)}else n.res.style[l(e)]=c[e]}),o)if("exact"!==y){if(!i.includes(y)&&"range"!==y){var m=o[y];"keySet"===y&&m&&m.key?n.res.style[m.key]=m.value:"function"==typeof n[y]?n[y](m):n.res.style[l(y)]=m}}else n.res.style.fontSize=o[y]}),this._setupResponsiveManager()}},{key:"respad",value:function(t){var r=this,n={default:[0,1e5],xs:[0,575],sm:[576,767],md:[768,991],lg:[992,1199],xl:[1200,1399],xxl:[1400,1e5]};t.forEach(function(e){void 0!==n[e.breakpoint]?e.range=n[e.breakpoint]:Array.isArray(e.breakpoint)&&2===e.breakpoint.length?e.range=[parseInt(e.breakpoint[0],10),parseInt(e.breakpoint[1],10)]:e.range=[parseInt(e.breakpoint,10),1e5]}),t.sort(function(e,t){return e.range[0]-t.range[0]});var o=t.find(function(e){return"default"===e.breakpoint});o||(o={breakpoint:"default",range:n.default},t.unshift(o)),void 0===o.values&&(o.values=this.options&&this.options.pad||null),this._responsiveTasks=this._responsiveTasks||[],this._responsiveTasks.push(function(){for(var n=e.viewportWidth(),i=o,s=0;s<t.length;s++){var l=t[s],c=a(l.range,2),u=c[0],d=c[1];if("default"!==l.breakpoint&&n>=u&&n<=d){i=l;break}}var f=void 0!==i.values?i.values:o.values;null!=f&&r.pad(f)}),this._setupResponsiveManager()}},{key:"resmar",value:function(t){var r=this,n={default:[0,1e5],xs:[0,575],sm:[576,767],md:[768,991],lg:[992,1199],xl:[1200,1399],xxl:[1400,1e5]};t.forEach(function(e){void 0!==n[e.breakpoint]?e.range=n[e.breakpoint]:Array.isArray(e.breakpoint)&&2===e.breakpoint.length?e.range=[parseInt(e.breakpoint[0],10),parseInt(e.breakpoint[1],10)]:e.range=[parseInt(e.breakpoint,10),1e5]}),t.sort(function(e,t){return e.range[0]-t.range[0]});var o=t.find(function(e){return"default"===e.breakpoint});o||(o={breakpoint:"default",range:n.default},t.unshift(o)),void 0===o.values&&(o.values=this.options&&(this.options.mar||this.options.pad)||null),this._responsiveTasks=this._responsiveTasks||[],this._responsiveTasks.push(function(){for(var n=e.viewportWidth(),i=o,s=0;s<t.length;s++){var l=t[s],c=a(l.range,2),u=c[0],d=c[1];if("default"!==l.breakpoint&&n>=u&&n<=d){i=l;break}}var f=void 0!==i.values?i.values:o.values;null!=f&&r.mar(f)}),this._setupResponsiveManager()}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"setArea",value:function(e){return this.res.style.gridArea=e,this}},{key:"font",value:function(e){return this.res.style.fontFamily=e,this}},{key:"radius",value:function(e){return this.res.style.borderRadius="number"==typeof e?"".concat(e,"px"):e,this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"scale",value:function(e){var t=this;return this.res.style.width,this.res.style.transition="0.5s all",this.res.addEventListener("mouseover",function(){t.res.style.width,t.res.style.transform="scale(1.04)"}),this.res.addEventListener("mouseout",function(){t.res.style.width,t.res.style.transform="scale(1.0)"}),this}},{key:"round",value:function(e){return this.deprecatedOption("round()","radius()"),this.radius(e)}},{key:"toCSS",value:function(){return this.css}},{key:"toHTMLA",value:function(){return this.html}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"deprecatedOption",value:function(e,t){return console.error("nodality: `".concat(e,"` is deprecated — use `").concat(t,"` instead.")),this}},{key:"center",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.res.style,n=r.display||t.display||"",o=r.flexDirection||t.flexDirection||"",i=!0===e||"both"===e||"x"===e,a=!0===e||"both"===e||"y"===e;if(n.includes("grid"))return i&&(r.justifyItems="center",r.justifyContent="center"),a&&(r.alignItems="center",r.alignContent="center"),this;n.includes("flex")||(r.display="flex"),r.flexDirection||(r.flexDirection=o||"column");var s=(r.flexDirection||"column").startsWith("column");return(s?a:i)&&(r.justifyContent="center"),(s?i:a)&&(r.alignItems="center"),this}},{key:"isNumber",value:function(e){return"number"==typeof e&&!isNaN(e)}},{key:"pad",value:function(e){for(var t=0;t<e.length;t++)for(var r=Object.keys(e[t]),n=0;n<r.length;n++)for(var o=r[n],i=e[t][o],a=0;a<o.length;a++)switch(o[a]){case"a":this.res.style.padding=this.isNumber(i)?"".concat(i,"px"):i;break;case"t":this.res.style.paddingTop=this.isNumber(i)?"".concat(i,"px"):i;break;case"l":this.res.style.paddingLeft=this.isNumber(i)?"".concat(i,"px"):i;break;case"r":this.res.style.paddingRight=this.isNumber(i)?"".concat(i,"px"):i;break;case"b":this.res.style.paddingBottom=this.isNumber(i)?"".concat(i,"px"):i}return this}},{key:"as",value:function(e){return this.res.style.alignSelf=e,this}},{key:"mar",value:function(e){if("center"===e)return this.res.style.marginLeft="auto",this.res.style.marginRight="auto",this;for(var t=0;t<e.length;t++)for(var r=Object.keys(e[t]),n=0;n<r.length;n++){for(var o=r[n],i=e[t][o],a=0;a<o.length;a++)switch(o[a]){case"a":"auto"===i?(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"):this.res.style.margin=this.isNumber(i)?"".concat(i,"px"):i;break;case"t":this.res.style.marginTop=this.isNumber(i)?"".concat(i,"px"):i;break;case"l":this.res.style.marginLeft=this.isNumber(i)?"".concat(i,"px"):i;break;case"r":this.res.style.marginRight=this.isNumber(i)?"".concat(i,"px"):i;break;case"b":this.res.style.marginBottom=this.isNumber(i)?"".concat(i,"px"):i}"center"===o&&!0===i&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),"auto"===i&&(o.includes("l")||o.includes("r"))&&(o.includes("l")&&(this.res.style.marginLeft="auto"),o.includes("r")&&(this.res.style.marginRight="auto"))}return this}},{key:"smartRange",value:function(e,t,r){e<t.min&&(e=t.min),e>t.max&&(e=t.max);var n=(e-t.min)/(t.max-t.min);return t.min>t.max&&(n=(e-t.max)/(t.min-t.max)),r.min+(r.max-r.min)*n}},{key:"gpos",value:function(e){return this.res.style.gridColumn=e.col,this.res.style.gridRow=e.row,this}},{key:"fluidCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("h2"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("h3"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("h4"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.250rem + 2.75vw)"}if("S5"===e){this.prevStylex=this.res.style,this.res=document.createElement("h5"),this.res.style.cssText=this.prevStylex.cssText;var a=document.createTextNode(this.text);this.res.appendChild(a),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setIndex",value:function(e){this.index=e}},{key:"borderObj",value:function(e){var t,r=null!==(t=e.type)&&void 0!==t?t:"solid";return this.res.style.border="".concat(e.width," ").concat(r," ").concat(e.color),void 0!==e.radius&&(this.res.style.borderRadius=e.radius),this}},{key:"setPref",value:function(e){this.preffersId=e}},{key:"setClass",value:function(e){this.class=e}},{key:"setTags",value:function(e){this.openTag=e.open,this.closeTag=e.close}},{key:"chainReact",value:function(t,r,n){var o=this;this.ap=!1,this.cta=0,this.once=!1;var i,l=s(t);try{for(l.s();!(i=l.n()).done;){var c=i.value;c.range||(c.range=["0px","999999px"])}}catch(e){l.e(e)}finally{l.f()}t.sort(function(e,t){return parseInt(e.range[0])-parseInt(t.range[0])});var u=function(i){var l=e.viewportWidth(),c=[],u=[];o.resCopy=o.res,o.storedQueries=t.map(function(e){return e.target}).filter(function(e){return null!=e});var d,f=s(t);try{for(f.s();!(d=f.n()).done;){var p=d.value;o.counterIndex++;var h=a(p.range,2),y=h[0],m=h[1],v=parseInt(y),b=parseInt(m),g=!0;if(p.target){g=!1;for(var w=0;w<p.target.length;w++)p.target[w]===r&&(g=!0)}l>=v&&l<=b&&g&&(c.push(p.log),u.push(p),p.op&&p.op.margin&&(o.useMargin=p.op.margin))}}catch(e){f.e(e)}finally{f.f()}if(n&&!n.includes("background")&&(o.res.style.background="",o.res.style.backgroundColor=""),o.res.style.textShadow="",n&&!n.includes("border")&&(o.res.style.border=""),n&&!n.includes("margin")&&(o.res.style.margin=""),o.res.style["-webkit-text-fill-color"]="",o.res.style["-webkit-text-stroke-color"]="",o.res.style["-webkit-text-stroke-width"]="",o.res.style.filter="",o.options.background&&(o.res.style.background=o.options.background),c.includes("gradient"),(c.includes("gradient")||c.includes("shadow"))&&(o.res.style.position="relative"),c.includes("blast")){var _,x=u.filter(function(e){return"blast"===e.log})[0].op.color,k=null!==(_=u.filter(function(e){return"blast"===e.log})[0].op.width)&&void 0!==_?_:"1px";"FlexRowLayoutElement"===o.getType()||"LayoutWrapperElement"===o.getType()?(o.res.style.border="".concat("number"==typeof k?k+"px":k," solid orange"),o.res.style.display="inline-block","FlexRowLayoutElement"===o.getType()&&(o.res.style.display="flex"),o.res.style.boxSizing="border-box",o.res.style.transformOrigin="center",o.blastTarget=o.res):(o.text,o.res.style["-webkit-text-fill-color"]="transparent",o.res.style["-webkit-text-stroke-color"]=x,o.res.style["-webkit-text-stroke-width"]="".concat(k))}if(c.includes("filter")){var O=u.filter(function(e){return"filter"===e.log})[0].op.filter;o.res.style.filter=O}if(c.includes("background")&&(o.res.style.backgroundColor="green"),c.includes("gradient")&&("LayoutWrapperElement"!==o.getType()&&"FlexRowLayoutElement"!==o.getType()&&(o.res.style["-webkit-text-fill-color"]="transparent"),o.res.style.background=o.globalGradient,"LayoutWrapperElement"!==o.getType()&&"FlexRowLayoutElement"!==o.getType()&&(o.res.style["background-clip"]="text")),c.includes("shadow")){var S,E,j,P,C=o.options.shadow.op,T=null!==(S=C.steps)&&void 0!==S?S:1,A=null!==(E=C.colors)&&void 0!==E?E:["gray"],R=null!==(j=C.movements)&&void 0!==j?j:["3px","3px"],M=null!==(P=C.radius)&&void 0!==P?P:"3px";if(1===R.length&&(R=[R[0],R[0]]),"FlexRowLayoutElement"===o.getType()||"LayoutWrapperElement"===o.getType()){for(var D=[],I=0;I<T;I++){var L,B=null!==(L=A[I])&&void 0!==L?L:A[0],W=R[0],F=R[1];D.push("".concat(W," ").concat(F," ").concat(M," ").concat(B))}o.res.style.boxShadow=D.join(", ")}else{for(var z=[],q=0;q<T;q++){var N,U=null!==(N=A[q])&&void 0!==N?N:A[0],H=R[0],G=R[1];z.push("drop-shadow(".concat(H," ").concat(G," ").concat(M," ").concat(U,")"))}o.res.style.filter=z.join(" ")}}if(c.includes("margin"))for(w=0;w<t.length;w++)if(t[w].op){var K=t[w].op.offsets;K&&void 0!==o.index&&(o.res.style.margin=K[Number(o.index)]+"px")}if(c.includes("spana")||c.includes("span")){var X=document.createElement("div");if(X.setAttribute("id","oroa"),Object.assign(X.style,{position:"absolute",inset:"0",background:"linear-gradient(90deg, rgb(52,152,219), rgb(26,188,156))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",pointerEvents:"none"}),o.res&&o.res.querySelector("span"))return;o.res=o.resCopy,o.res.textContent="",o.options.span&&(Array.isArray(o.options.span)?o.options.span:[o.options.span]).forEach(function(e){if(e.op&&"span"===e.op.name&&Array.isArray(e.op.parts)){var t=0,r=o.prevText||"";if(e.op.parts.forEach(function(e){var n=e.text,i=e.style||{};if(t<r.length){var a=r.indexOf(n,t);if(a>t){var s=r.substring(t,a);o.res.appendChild(new o.constructor(s).setup({type:"span",id:i.id,animation:i.animation}).set({}).render())}t=a+n.length}var l=new o.constructor(n).setup({type:"span",id:i.id,animation:i.animation}).set(i).render();o.res.appendChild(l)}),t<r.length){var n=r.substring(t);o.res.appendChild(new o.constructor(n).setup({type:"span"}).set({}).render())}}})}else{var J=new o.constructor(o.prevText).set({}).render();o.prevText&&o.prevText.length>0&&i&&o.res.appendChild(J)}if(c.includes("animation")){if(o.options.animation&&!o.hasAnimated&&!o.options.animation.op.fireAt){o.hasAnimated=!0;var $=o.options.animation.op;o._on(window,"sidebar:open",function(){o.res.animate($.keyframesOpen,$.openOptions)}),o._on(window,"sidebar:closed",function(){o.res.animate($.keyframesClose,$.closeOptions)}),o.res.animate($.keyframesClose,{duration:0,fill:"forwards"}),o.openTag&&o.closeTag&&(o._on(window,o.openTag,function(){o.res.animate($.keyframesOpen,$.openOptions)}),o._on(window,o.closeTag,function(){o.res.animate($.keyframesClose,$.closeOptions)}))}if(o.options.animation&&o.options.animation.op.fireAt&&o.options.animation.op.fireAt.endsWith("px")){var V=o.options.animation.op;o.res.animate(V.keyframesClose,{duration:0,fill:"forwards"});var Y=function(){window.scrollY>parseFloat(V.fireAt)&&(o.res.animate(V.keyframesOpen,V.openOptions),window.removeEventListener("scroll",Y))};o._on(window,"scroll",Y)}if(o.options.animation&&"inview"===o.options.animation.op.fireAt){var Q=o.options.animation.op;o.res.animate(Q.keyframesClose,{duration:0,fill:"forwards"});var Z=!1,ee=new IntersectionObserver(function(e,t){e.forEach(function(e){e.isIntersecting&&!Z&&(Z=!0,o.res.animate(Q.keyframesOpen,Q.openOptions),t.disconnect())})});ee.observe(o.res),o._track(function(){return ee.disconnect()})}}};this.options.animation||this._on(window,"resize",function(){return u()}),u()}},{key:"maxWidth",value:function(e){return this.res.style.maxWidth=e,this}},{key:"removeQuotesFromFirstWord",value:function(e){return e.replace((0,i._H)(),"$1:")}}],l=[{key:"viewportWidth",value:function(){if("undefined"==typeof window)return 0;var e=window.visualViewport;return e&&"number"==typeof e.width?e.width:window.innerWidth}}],r&&d(t.prototype,r),l&&d(t,l),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,l}()},9932:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{I:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t)).el=null,e.file=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,i=[{key:"set",value:function(e){var t=this;this.options=e,this.okayColor=e.okayColor,window.matchMedia("(max-device-width: 415px)");var r=document.createElement("div");r.style.paddingBottom="1em",r.style.display="flex",document.createElement("div");var n=document.createElement("input");n.setAttribute("type","text"),n.style.display="none",n.style.margin="0.5em";var o=document.createElement("input");o.setAttribute("type","file"),o.setAttribute("name",e.name),e.accept&&(o.accept=e.accept),void 0!==e.id&&null!==e.id&&o.setAttribute("id",e.id),o.style.visibility="hidden",o.style.display="none",window.matchMedia("(max-device-width: 415px)").matches&&(o.style.fontSize="1rem");var i=document.createElement("label");return i.setAttribute("for",e.id),i.innerText=e.title,i.style.marginRight=12,i.style.padding="0.5em",e.color&&(i.style.color=e.color),e.background&&(i.style.background=e.background,i.style.padding="10"),o.addEventListener("change",function(){n.style.display="block",e.hideField&&(n.style.display="none"),i.innerText="Change",t.file=o.files[0],t.onLoad(t.file),u[e.index]=t.file,n.setAttribute("value",t.file.name),n.setAttribute("readonly","true"),t.getLoaded(),t.highlight()}),r.appendChild(o),r.appendChild(i),r.appendChild(n),this.el=r,e.font&&this.font(e.font),e.radius&&this.borderRadius(e.radius),this}},{key:"borderRadius",value:function(e){return this.el.style.borderRadius=e,this}},{key:"addClass",value:function(e){return this.el.setAttribute("class",e),this}},{key:"font",value:function(e){return this.el.style.fontFamily=e,this}},{key:"bold",value:function(){return this.el.style.fontWeight="bold",this}},{key:"rounded",value:function(){return this.el.children[1].style.borderRadius="8px",this}},{key:"highlight",value:function(){return null===this.file?(this.hasFile=!1,this.el.children[1].style.background="red"):(this.hasFile=!0,this.okayColor?this.el.children[1].style.background=this.okayColor:this.el.children[1].style.background="#1abc9c"),this}},{key:"auto",value:function(){var e=function(){window.matchMedia("(max-device-width: 415px)").matches};return e(),window.addEventListener("resize",e),this}},{key:"onLoad",value:function(e){return this.returnObject(this.file),this}},{key:"getLoaded",value:function(){return this.file}},{key:"returnObject",value:function(e){return e}},{key:"loadCall",value:function(e){return this.func=e,this.func(this.file),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new FilePickera().set(".concat(e,")")]}},{key:"render",value:function(e){return e?(document.querySelector(e).appendChild(this.el),this):this.el}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(9873).y),u=[]}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var __webpack_exports__={},element_mapper=__webpack_require__(849),animator=__webpack_require__(9873),base=__webpack_require__(9793),layout_text=__webpack_require__(6131),layout_image=__webpack_require__(9383),layout_link=__webpack_require__(7108),flex_row=__webpack_require__(3050),custom_div=__webpack_require__(8807),new_nav_bar=__webpack_require__(3440),side_bar=__webpack_require__(5367),side_nav_bar=__webpack_require__(7879),free=__webpack_require__(7258);function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}var NAudio=function(e){function t(e){var r;return _classCallCheck(this,t),(r=_callSuper(this,t)).url=e,r.res=null,r.setup(),r}return _inherits(t,e),_createClass(t,[{key:"setup",value:function(){this.res=document.createElement("audio"),this.res.setAttribute("src",this.url),this.res.setAttribute("controls","controls")}},{key:"set",value:function(e){return this.options=e,e.background&&this.background(e.background),this}},{key:"background",value:function(e){var t=document.createElement("style");return t.type="text/css",t.textContent="\n\taudio::-webkit-media-controls-panel {\n\t\tbackground-color: ".concat(e,";\n\t}\n"),document.head.appendChild(t),this}},{key:"toCode",value:function(){return JSON.stringify(this.options,null,4),['new NAudio("'.concat(this.url,'")')]}},{key:"size",value:function(e){return this.res.style.width=e,this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}(animator.y),progress=__webpack_require__(827),center=__webpack_require__(1873),code=__webpack_require__(2789),stack=__webpack_require__(7926),container=__webpack_require__(153),codegen=__webpack_require__(1382);function svg_typeof(e){return svg_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},svg_typeof(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function svg_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function svg_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,svg_toPropertyKey(n.key),n)}}function svg_createClass(e,t,r){return t&&svg_defineProperties(e.prototype,t),r&&svg_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function svg_toPropertyKey(e){var t=svg_toPrimitive(e,"string");return"symbol"==svg_typeof(t)?t:t+""}function svg_toPrimitive(e,t){if("object"!=svg_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=svg_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function svg_callSuper(e,t,r){return t=svg_getPrototypeOf(t),svg_possibleConstructorReturn(e,svg_isNativeReflectConstruct()?Reflect.construct(t,r||[],svg_getPrototypeOf(e).constructor):t.apply(e,r))}function svg_possibleConstructorReturn(e,t){if(t&&("object"==svg_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return svg_assertThisInitialized(e)}function svg_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function svg_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(svg_isNativeReflectConstruct=function(){return!!e})()}function svg_getPrototypeOf(e){return svg_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},svg_getPrototypeOf(e)}function svg_inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&svg_setPrototypeOf(e,t)}function svg_setPrototypeOf(e,t){return svg_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},svg_setPrototypeOf(e,t)}var Svg=function(e){function t(e){var r;return svg_classCallCheck(this,t),(r=svg_callSuper(this,t)).svgMarkup="string"==typeof e?e:"",r.res.style.display="inline-flex",r.res.style.alignItems="center",r.res.style.justifyContent="center",r.res.style.flexShrink="0",r.res.style.lineHeight="0",r.res.innerHTML=r.svgMarkup,r._sizeInner(),r.code=[],r.code.push("\n new Svg() \n"),r}return svg_inherits(t,e),svg_createClass(t,[{key:"_sizeInner",value:function(){var e=this.res.querySelector("svg");e&&(e.getAttribute("width")||e.setAttribute("width","100%"),e.getAttribute("height")||e.setAttribute("height","100%"),e.style.display="block")}},{key:"setSvg",value:function(e){return this.svgMarkup="string"==typeof e?e:"",this.res.innerHTML=this.svgMarkup,this._sizeInner(),this}},{key:"size",value:function(e){var t="number"==typeof e?"".concat(e,"px"):e;return this.res.style.width=t,this.res.style.height=t,this}},{key:"toCode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.excludeFromCodeTrue)return[""];var t=" ".repeat(e),r=(this.svgMarkup||"").replace(/`/g,"\\`").replace(/\$\{/g,"\\${"),n="".concat(t,"new Svg(`").concat(r,"`)");if(this.obj&&Object.keys(this.obj).length){var o=Object.fromEntries(Object.entries(this.obj).filter(function(e){var t=_slicedToArray(e,2);return t[0],null!==t[1]})),i=(0,codegen.sy)(o,2);n+="\n".concat(t," .set(").concat(i,")")}return[n+="\n".concat(t)]}}])}(container.m),meta_adder=__webpack_require__(1980),table=__webpack_require__(6182),dropdown_2025=__webpack_require__(3665),modal_2025=__webpack_require__(3243),text_field=__webpack_require__(3014),flex_card=__webpack_require__(9310),wrap=__webpack_require__(1632),flex_grid=__webpack_require__(5860),zoom_card=__webpack_require__(4550),simple_bar=__webpack_require__(9290),beta_desktop_bar=__webpack_require__(2387),beta_mobile_bar=__webpack_require__(9521),multiswitcher=__webpack_require__(1236),spacer=__webpack_require__(3180),horizontal_scroller=__webpack_require__(7135),layout_checkbox=__webpack_require__(1557),video=__webpack_require__(2689),ulist=__webpack_require__(4617),slider_2025=__webpack_require__(1353),floating_input=__webpack_require__(3257),range=__webpack_require__(5613),form_components_radio=__webpack_require__(1371),picker=__webpack_require__(2588),image_picker=__webpack_require__(9932),data_list=__webpack_require__(6679),form_components_form=__webpack_require__(9668),layout_button=__webpack_require__(8424),designer=__webpack_require__(2234),link_getter=__webpack_require__(2027),card_getter=__webpack_require__(4753);function keyframe_animation_typeof(e){return keyframe_animation_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},keyframe_animation_typeof(e)}function keyframe_animation_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function keyframe_animation_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,keyframe_animation_toPropertyKey(n.key),n)}}function keyframe_animation_createClass(e,t,r){return t&&keyframe_animation_defineProperties(e.prototype,t),r&&keyframe_animation_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,r){return(t=keyframe_animation_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function keyframe_animation_toPropertyKey(e){var t=keyframe_animation_toPrimitive(e,"string");return"symbol"==keyframe_animation_typeof(t)?t:t+""}function keyframe_animation_toPrimitive(e,t){if("object"!=keyframe_animation_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=keyframe_animation_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var KeyframeAnim=function(){return keyframe_animation_createClass(function e(t){var r=this;return keyframe_animation_classCallCheck(this,e),_defineProperty(this,"scrollFunction",function(){void 0===r.flagValue&&(r.flagValue=0);var e=(r.html.scrollTop-r.flagValue)/(r.html.scrollHeight-window.innerHeight)*16,t=Math.min(r.frameCount-1,Math.ceil(e*r.frameCount));isNaN(t)&&(t=1),t<0&&(t=0),r.data.limit?t<r.data.limit&&requestAnimationFrame(function(){return r.updateImage(t+1)}):requestAnimationFrame(function(){return r.updateImage(t+1)}),window.matchMedia("(max-device-width: 415px)")}),_defineProperty(this,"currentFrame",function(e){return"".concat(r.data.path).concat(e.toString().padStart(4,"0"),".").concat(r.data.extension)}),_defineProperty(this,"preloadImages",function(){for(var e=1;e<r.frameCount;e++)document.createElement("img"),r.img.src=r.currentFrame(e)}),_defineProperty(this,"updateImage",function(e){r.img.src=r.currentFrame(e)}),this.fromFirstImageFlag=!1,this.flag=0,this.flagValue=t.flagValue,this.data=t,this.mask=t.mask,this.maskData=t.maskData,this.id=t.id,this.halfHeight=t.halfHeight,void 0===this.data.type?this.type="default":this.type=this.data.type,this.stickData=t.stickData,this.targetHeight=this.data.targetHeight,this.html=document.body,this.res=document.createElement("div"),void 0!==this.data.id&&null!==this.data.id&&this.res.setAttribute("id",this.data.id),this.res.style.border="1px solid green",this.res.style.width="100%",this.res.style.display="grid",this.res.style.position="sticky",this.res.style.top=0,this.res.style.alignSelf="flex-start",this.res.style.justifyContent="center",this.res.style.alignItems="center",this.data.added||(this.res.style.marginTop=this.data.noAddedDistance),this.frameCount=100,this.lastScrollTop=window.scrollY,this.setupTopElement(),this.scrollFunction(),window.addEventListener("scroll",function(){r.scrollFunction()}),this.preloadImages(),this},[{key:"marginTop",value:function(e){return this.res.style.marginTop=e,this}},{key:"toCode",value:function(){return[""]}},{key:"drawImageProp",value:function(e,t,r,n,o,i,a,s){2===arguments.length&&(r=n=0,o=e.canvas.width,i=e.canvas.height),(a="number"==typeof a?a:.5)<0&&(a=0),(s="number"==typeof s?s:.5)<0&&(s=0),a>1&&(a=1),s>1&&(s=1);var l,c,u,d,f=t.width,p=t.height,h=Math.min(o/f,i/p),y=f*h,m=p*h,v=1;y<o&&(v=o/y),Math.abs(v-1)<1e-14&&m<i&&(v=i/m),(l=(f-(u=f/((y*=v)/o)))*a)<0&&(l=0),(c=(p-(d=p/((m*=v)/i)))*s)<0&&(c=0),u>f&&(u=f),d>p&&(d=p),e.drawImage(t,l,c,u,d,r,n,o,i)}},{key:"maska",value:function(e){var t=this;return window.addEventListener("scroll",function(){t.innerMask(e)}),this}},{key:"innerMask",value:function(e){if(e){var t=smartRange(window.scrollY,{min:e.start,max:e.end},{min:0,max:7}),r=smartRange(window.scrollY,{min:e.start,max:e.end},{min:37,max:37});this.res.style.clipPath="inset(".concat(t,"% ").concat(t,"% round 0 0 ").concat(r,"px ").concat(r,"px)")}}},{key:"setupTopElement",value:function(){var e=this,t=document.createElement("canvas");if(t.style.gridArea="1/1",t.zIndex=1,t.style.display="grid",t.style.gridTemplate="1fr/1fr",t.style.justifyContent="center",t.style.alignItems="center",t.style.marginLeft="auto",t.style.marginRight="auto",this.context=t.getContext("2d"),this.context.canvas.width=window.innerWidth,this.context.canvas.height=1.2*window.innerHeight,this.img=document.createElement("img"),this.img.onload=function(){e.data.halfHeight?e.drawImageProp(e.context,e.img,0,0,window.innerWidth,window.innerHeight/2):e.drawImageProp(e.context,e.img,0,0,window.innerWidth,1.2*window.innerHeight)},window.addEventListener("resize",function(){e.context.canvas.width=window.innerWidth,e.context.canvas.height=1.2*window.innerHeight,e.drawImageProp(e.context,e.img,0,0,window.innerWidth,1.2*window.innerHeight)}),this.res.appendChild(t),this.data.text){var r=document.createElement("div");r.style.gridArea="1/1";var n=this.data.text.render();if(this.h2a=n,r.appendChild(n),r.setAttribute("id","rem"),this.data.hasRect){var o=document.createElement("div");o.style.width="30px",o.style.height="30px",o.style.backgroundColor="orange"}else for(var i=0;i<this.res.children.length;i++)"rem"===this.res.children[i].id&&this.res.removeChild(this.res.children[i]);this.res.appendChild(r)}this.lastScrollTop=0,this.count=1,this.isUp=!1,this.done=!1,this.fireOnce=!0,this.dec=1,this.tdec=1,this.atdec=0,this.textOpacity=1,this.res.children[this.res.children.length-1].children[0].style.opacity=0,this.data.text&&window.addEventListener("scroll",function(){e.h2a.style.backgroundColor="rgba(0, 0, 0, 0.8)",e.h2a.style.opacity=1}),window.addEventListener("scroll",function(t){if(e.data.stickyData&&e.data.stickyData.top){var r=e.data.stickyData.top;e.data.uncomment&&(window.scrollY>r?(wrapDiv.style.background="pink",wrapDiv.style.position="relative",wrapDiv.style.top=r):(wrapDiv.style.background="orange",wrapDiv.style.top=0,wrapDiv.style.position="fixed"))}var n=window.scrollY||document.documentElement.scrollTop;if(n>e.lastScrollTop?e.isUp=!1:e.isUp=!0,e.lastScrollTop=n<=0?0:n,e.isUp&&e.textOpacity<.98&&(e.textOpacity+=.01),!1===e.isUp&&e.textOpacity>.02&&(e.textOpacity-=.01),e.data.mask){var o=e.res,i=smartRange(window.scrollY,{min:e.data.maskData.start,max:e.data.maskData.end},{min:0,max:7});if(o.style.clipPath="inset(".concat(i,"% ").concat(i,"% round 20px)"),!e.hasH2){var a=document.createElement("div");a.style.background="#ecf0f1",a.style.width="86%",a.style.marginLeft="7%",a.style.borderRadius="1rem",e.hasH2=!0,a.appendChild(e.data.newSection.render()),o.parentElement.appendChild(a)}}e.data.targetHeight})}},{key:"setLazyText",value:function(e){var t=this;return this.lazyText=e,window.addEventListener("scroll",function(){for(var e=smartRange(window.scrollY,{min:t.lazyText.start,max:t.lazyText.end},{min:0,max:200}),r=smartRange(window.scrollY,{min:t.lazyText.start,max:t.lazyText.end},{min:0,max:1}),n=0;n<t.h2a.children[0].children.length;n++)t.h2a.children[0].children[n].style.transform="matrix(1, 0, 0, 1, 0, -".concat(e,")"),t.h2a.children[0].children[n].style.opacity="".concat(r-.2*n)}),this}},{key:"setProps",value:function(e){return e.targetHeight&&(this.data.targetHeight=e.targetHeight),e.flagValue&&(this.flagValue=e.flagValue),this}},{key:"fixedToRelative",value:function(e){this.data.uncomment=e}},{key:"toSticky",value:function(){return this.res.style.position="sticky",this.res.style.top="0",this}},{key:"setOpacityRange",value:function(e){var t=this;return this.data.opacityRange=e.opacityRange,this.data.scaleRange=e.scaleRange,window.addEventListener("scroll",function(){var e=smartRange(window.scrollY,{min:t.data.opacityRange.start,max:t.data.opacityRange.end},{min:0,max:1});t.h2a.style.opacity=e;var r=smartRange(window.scrollY,{min:t.data.scaleRange.start,max:t.data.scaleRange.end},{min:3,max:1});window.matchMedia("(max-device-width: 415px)").matches||(t.h2a.children[0].style.transform="scale(".concat(r,")"))}),this}},{key:"stick",value:function(e){return e?(e.offset&&(null!=this.data.stickyData?this.data.stickyData.top=e.offset:this.data.stickyData={top:e.offset}),e.value?this.makeSticky():this.noSticky(),this):(this.makeSticky(),this)}},{key:"to100vh",value:function(){this.res.style.height="100vh"}},{key:"makeSticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"noSticky",value:function(){return this.res.style.position="",this}},{key:"toOpacity",value:function(e){this.res.style.opacity="".concat(e)}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();function transform_anim_typeof(e){return transform_anim_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},transform_anim_typeof(e)}function transform_anim_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function transform_anim_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,transform_anim_toPropertyKey(n.key),n)}}function transform_anim_createClass(e,t,r){return t&&transform_anim_defineProperties(e.prototype,t),r&&transform_anim_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function transform_anim_toPropertyKey(e){var t=transform_anim_toPrimitive(e,"string");return"symbol"==transform_anim_typeof(t)?t:t+""}function transform_anim_toPrimitive(e,t){if("object"!=transform_anim_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=transform_anim_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function convertRange(e,t,r){var n=(e-t.min)*(r.max-r.min)/(t.max-t.min)+r.min;return n>1&&(n=2-n),n}var TransformAnim=function(){return transform_anim_createClass(function e(t){transform_anim_classCallCheck(this,e),this.data=t,this.targetHeight=this.data.targetHeight,void 0===this.data.type?this.type="default":this.type=this.data.type,this.layout="flex",this.setup()},[{key:"toCode",value:function(){return[""]}},{key:"set",value:function(e){return e.arrayPadding&&(this.wrdiv.style.marginTop=e.arrayPadding.value),e.height&&(this.wrdiv.style.height=e.height),e.position&&(this.wrdiv.style.position=e.position),this}},{key:"setup",value:function(){var e=this,t=document.createElement("div");this.wrdiv=t,t.style.display="flex",t.style.flexDirection="column",this.data.overflow&&(t.style.overflow="hidden"),t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="center",t.style.height="900px",this.data.position?t.style.position=this.data.position:this.data.sticky||(t.style.position="fixed"),t.style.marginTop="0px";var r=document.createElement("img");r.style.gridArea="1/1",r.style.display="none",r.style.width="50%",r.setAttribute("class","m2"),t.appendChild(r),this.data.view&&(this.m2img=this.data.view.render(),t.appendChild(this.m2img)),this.data.paragraph&&(this.paragraph=this.data.paragraph.render(),t.appendChild(this.paragraph)),this.data.view&&(r.style.display="none");var n=document.createElement("h2");n.style.fontFamily="Arial",n.style.fontSize="2.4rem",n.style.background="linear-gradient(#3498db, #1abc9c)",n.style.webkitBackgroundClip="text",n.style.webkitTextFillColor="transparent";var o=document.createTextNode("Supercharged");n.appendChild(o),!0!==this.data.showTitle&&void 0!==this.data.showTitle||(this.data.content&&this.data.content.render?t.appendChild(this.data.content.render()):t.appendChild(n));var i=document.createElement("p");document.createTextNode("Hello"),t.appendChild(i),this.res=t,window.addEventListener("scroll",function(o){return e.resize(t,r,n)}),this.resize(t,r,n)}},{key:"setStickyData",value:function(e){return this.data.stickyData=e,this}},{key:"toAuto",value:function(){return this.res.style.height="auto",this}},{key:"stick",value:function(e){return e?(e.offset&&(null!=this.data.stickyData?this.data.stickyData.top=e.offset:(this.data.stickyData={top:e.offset},this.fixedToRelative(!0))),e.value?this.makeSticky():this.noSticky(),this):(this.makeSticky(),this)}},{key:"makeSticky",value:function(){return this.wrdiv.style.position="sticky",this.wrdiv.style.top=0,this}},{key:"setProps",value:function(e){return e.targetHeight&&(this.data.targetHeight=e.targetHeight),e.flagValue&&(this.data.flagValue=e.flagValue),this}},{key:"noSticky",value:function(){return this.wrdiv.style.position="",this}},{key:"toSticky",value:function(){return this.wrdiv.style.position="sticky",this.wrdiv.style.top="0",this}},{key:"toOpacity",value:function(e){this.res.style.opacity="".concat(e)}},{key:"setUncomment",value:function(e){this.data.uncomment=e}},{key:"fixedToRelative",value:function(e){return this.data.uncomment=e,this}},{key:"mask",value:function(e){var t=this;return window.addEventListener("scroll",function(){t.innerMask(e)}),this}},{key:"innerMask",value:function(e){return e&&(transform_anim_smartRange(window.scrollY,{min:e.start,max:e.end},{min:7,max:0}),transform_anim_smartRange(window.scrollY,{min:e.start,max:e.end},{min:37,max:37})),this}},{key:"setScale",value:function(e){var t=this;return this.data.range=e,this.m2img.style.transform="scale(".concat(this.data.range.scaleMax,")"),window.addEventListener("scroll",function(){var e=transform_anim_smartRange(window.scrollY,{min:t.data.range.min,max:t.data.range.max},{min:t.data.range.scaleMax,max:t.data.range.scaleMin});null!=t.m2img&&(t.m2img.style.transform="scale(".concat(e,")"))}),this}},{key:"resize",value:function(e,t,r){var n=window.scrollY||document.documentElement.scrollTop;if(n>this.lastScrollTop?this.isUp=!1:this.isUp=!0,this.data.sticky)e.style.background="#fafafa";else if(this.data.stickyData){var o=this.data.stickyData.top;this.data.uncomment&&(window.scrollY>o?(e.style.position="relative",e.style.top=o):(e.style.top=0,e.style.position="fixed"))}this.lastScrollTop=n<=0?0:n;var i=t;this.m2img=t,this.data.view&&(i=this.m2img);var a=transform_anim_smartRange(window.scrollY,{min:3150,max:3300},{min:0,max:100}),s=transform_anim_smartRange(window.scrollY,{min:3150,max:3300},{min:60,max:80}),l=transform_anim_smartRange(window.scrollY,{min:3150,max:3300},{min:0,max:40});this.data.operation&&"translate"===this.data.operation.type&&(i.style.transform="translate3d(".concat(a,"%, ").concat(a/2,"%, 0px) scale(").concat(s/100,") rotate(").concat(l,"deg)"))}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();function transform_anim_smartRange(e,t,r){e<t.min&&(e=t.min),e>t.max&&(e=t.max);var n=(e-t.min)/(t.max-t.min);t.min>t.max&&(n=(e-t.max)/(t.min-t.max));var o=(r.min-r.max)*n-r.min;if(o=Math.abs(o),r.min<r.max){var i=(r.max+Math.abs(r.min))*n;o=r.min+i}return o}function stacker_typeof(e){return stacker_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},stacker_typeof(e)}function stacker_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function stacker_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,stacker_toPropertyKey(n.key),n)}}function stacker_createClass(e,t,r){return t&&stacker_defineProperties(e.prototype,t),r&&stacker_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function stacker_toPropertyKey(e){var t=stacker_toPrimitive(e,"string");return"symbol"==stacker_typeof(t)?t:t+""}function stacker_toPrimitive(e,t){if("object"!=stacker_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=stacker_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Stacker=function(){return stacker_createClass(function e(){stacker_classCallCheck(this,e),this.res=document.createElement("div"),this.res.style.display="flex",this.res.style.flexDirection="column"},[{key:"add",value:function(e){for(var t=0;t<e.length;t++){var r=e[t].render();0===t&&(r.style.zIndex=1),this.res.appendChild(r)}return this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();function scroll_video_typeof(e){return scroll_video_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},scroll_video_typeof(e)}function scroll_video_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function scroll_video_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,scroll_video_toPropertyKey(n.key),n)}}function scroll_video_createClass(e,t,r){return t&&scroll_video_defineProperties(e.prototype,t),r&&scroll_video_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function scroll_video_toPropertyKey(e){var t=scroll_video_toPrimitive(e,"string");return"symbol"==scroll_video_typeof(t)?t:t+""}function scroll_video_toPrimitive(e,t){if("object"!=scroll_video_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=scroll_video_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ScrollVideo=function(){return scroll_video_createClass(function e(){scroll_video_classCallCheck(this,e),this.frameNumber=0,this.res=document.createElement("div"),this.vid=null,this.minScrollHeight=0,this.maxScrollHeight=1e3,this.videoUrl=""},[{key:"set",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.minScrollHeight,r=void 0===t?0:t,n=e.maxScrollHeight,o=void 0===n?1e3:n,i=e.videoUrl,a=void 0===i?"":i;return this.minScrollHeight=r,this.maxScrollHeight=o,this.videoUrl=a,this.createElements("V0"),this.vid=this.res.children[0],this.init(),this}},{key:"createElements",value:function(e){var t=document.createElement("video");t.id=e,t.setAttribute("tabindex","0"),t.setAttribute("autobuffer","autobuffer"),t.setAttribute("preload","preload"),t.style.position="sticky",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100vh",t.style.border="1px solid orange";var r=document.createElement("source");r.type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"',r.src=this.videoUrl,t.appendChild(r),this.res.appendChild(t);var n=document.createElement("p");n.id="time",n.style.fontFamily="Helvetica, Arial, sans-serif",n.style.fontSize="24px",this.res.appendChild(n);var o=document.createElement("div");o.id="set-height",o.style.display="block",this.setop=o,this.res.appendChild(o)}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"init",value:function(){var e=this;this.vid.addEventListener("loadedmetadata",function(){var t=e.setop;if(t){var r=e.maxScrollHeight-e.minScrollHeight;t.style.height="".concat(r,"px")}else console.error("Error: 'set-height' element not found.")}),this.scrollPlay()}},{key:"scrollPlay",value:function(){var e=this;if(this.vid&&!isNaN(this.vid.duration)){var t=Math.max(this.minScrollHeight,Math.min(window.pageYOffset,this.maxScrollHeight)),r=this.maxScrollHeight-this.minScrollHeight,n=(t-this.minScrollHeight)/r;this.vid.currentTime=n*this.vid.duration,window.requestAnimationFrame(function(){return e.scrollPlay()})}else window.requestAnimationFrame(function(){return e.scrollPlay()})}},{key:"toCode",value:function(){return[""]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}(),theme=__webpack_require__(5318),grid_switcher=__webpack_require__(7698),polygon=__webpack_require__(9800),circle=__webpack_require__(5632),_process$versions;function _regenerator(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return _regeneratorDefine2(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,_regeneratorDefine2(d,"constructor",c),_regeneratorDefine2(c,"constructor",l),l.displayName="GeneratorFunction",_regeneratorDefine2(c,o,"GeneratorFunction"),_regeneratorDefine2(d),_regeneratorDefine2(d,o,"Generator"),_regeneratorDefine2(d,n,function(){return this}),_regeneratorDefine2(d,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}function _regeneratorDefine2(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_regeneratorDefine2=function(e,t,r,n){if(t)o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r;else{var i=function(t,r){_regeneratorDefine2(e,t,function(e){return this._invoke(t,r,e)})};i("next",0),i("throw",1),i("return",2)}},_regeneratorDefine2(e,t,r,n)}function asyncGeneratorStep(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){asyncGeneratorStep(i,n,o,a,s,"next",e)}function s(e){asyncGeneratorStep(i,n,o,a,s,"throw",e)}a(void 0)})}}var IS_NODE="undefined"!=typeof process&&!(null===(_process$versions=process.versions)||void 0===_process$versions||!_process$versions.node),nodeImport="undefined"!=typeof Function?new Function("s","return import(s)"):null;function loadJson(e){return _loadJson.apply(this,arguments)}function _loadJson(){return _loadJson=_asyncToGenerator(_regenerator().m(function e(t){var r,n,o,i,a,s,l,c,u,d,f,p,h,y,m,v=arguments;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=(r=v.length>1&&void 0!==v[1]?v[1]:{}).fallback,o=void 0===n?void 0:n,i=r.quiet,a=void 0!==i&&i,e.p=1,!IS_NODE||!nodeImport){e.n=7;break}return e.n=2,nodeImport("node:fs");case 2:return s=e.v,e.n=3,nodeImport("node:path");case 3:l=e.v,c=process.cwd(),u=0,d=[l.join("upload",t),t];case 4:if(!(u<d.length)){e.n=6;break}if(f=d[u],p=l.resolve(c,f),!s.existsSync(p)){e.n=5;break}return e.a(2,JSON.parse(s.readFileSync(p,"utf8")));case 5:u++,e.n=4;break;case 6:throw new Error("loadJson: ".concat(t," not found (tried ./upload/").concat(t," and ./").concat(t,")"));case 7:return e.n=8,fetch("./".concat(t));case 8:if((h=e.v).ok){e.n=9;break}throw new Error("HTTP ".concat(h.status));case 9:return e.n=10,h.json();case 10:return e.a(2,e.v);case 11:if(e.p=11,m=e.v,void 0===o){e.n=12;break}return a||"undefined"==typeof console||console.warn("[loadJson] ".concat(t," failed (").concat(null!==(y=null==m?void 0:m.message)&&void 0!==y?y:m,") — using fallback")),e.a(2,o);case 12:throw m;case 13:return e.a(2)}},e,null,[[1,11]])})),_loadJson.apply(this,arguments)}return"undefined"!=typeof window&&(window.ElementMapper=element_mapper.I,window.Animator=animator.y,window.Text=layout_text.E,window.Image=layout_image._,window.Link=layout_link.N,window.FlexRow=flex_row.Y,window.UINavBar=new_nav_bar.X,window.Free=free.b,window.NAudio=NAudio,window.Progress=progress.k,window.Center=center.o,window.Code=code.C,window.Stack=stack.B,window.Wrapper=container.m,window.Svg=Svg,window.MetaAdder=meta_adder.W,window.Table=table.X,window.Dropdown=dropdown_2025.m,window.Modal=modal_2025.a,window.TextField=text_field.A,window.Card=flex_card.Z,window.Wrap=wrap.B,window.FlexGrid=flex_grid.M,window.ZoomCard=zoom_card.U,window.CustomDivRenderer=custom_div.c,window.SideBar=side_bar.z,window.SideNav=side_nav_bar.f,window.SimpleBar=simple_bar.m,window.DesktopBar=beta_desktop_bar.C,window.MobileBar=beta_mobile_bar.m,window.Switcher=multiswitcher.i,window.Spacer=spacer.h,window.HScroller=horizontal_scroller.J,window.Checkbox=layout_checkbox.S,window.Base=base.C,window.FilePickera=image_picker.I,window.Picker=picker.L,window.Range=range.Q,window.RadioGroup=form_components_radio.z,window.DataList=data_list.T,window.Button=layout_button.$,window.Des=designer.H,window.LinkStyler=link_getter.a,window.CardGen=card_getter.Z,window.KeyframeAnim=KeyframeAnim,window.TransformAnim=TransformAnim,window.Stacker=Stacker,window.ScrollVideo=ScrollVideo,window.Theme=theme.S,window.AreaSwitcher=grid_switcher.t,window.Video=video.C,window.UList=ulist.e,window.Slider=slider_2025.A,window.Polygon=polygon.t,window.Circle=circle.j,window.FloatingInput=floating_input.l,window.Form=form_components_form.l),void 0!==__webpack_require__.g&&(__webpack_require__.g.ElementMapper=element_mapper.I,__webpack_require__.g.Animator=animator.y,__webpack_require__.g.Text=layout_text.E,__webpack_require__.g.Image=layout_image._,__webpack_require__.g.Link=layout_link.N,__webpack_require__.g.FlexRow=flex_row.Y,__webpack_require__.g.UINavBar=new_nav_bar.X,__webpack_require__.g.Free=free.b,__webpack_require__.g.NAudio=NAudio,__webpack_require__.g.Progress=progress.k,__webpack_require__.g.Center=center.o,__webpack_require__.g.Code=code.C,__webpack_require__.g.Stack=stack.B,__webpack_require__.g.Wrapper=container.m,__webpack_require__.g.Svg=Svg,__webpack_require__.g.MetaAdder=meta_adder.W,__webpack_require__.g.Table=table.X,__webpack_require__.g.Dropdown=dropdown_2025.m,__webpack_require__.g.Modal=modal_2025.a,__webpack_require__.g.TextField=text_field.A,__webpack_require__.g.Card=flex_card.Z,__webpack_require__.g.Wrap=wrap.B,__webpack_require__.g.FlexGrid=flex_grid.M,__webpack_require__.g.ZoomCard=zoom_card.U,__webpack_require__.g.CustomDivRenderer=custom_div.c,__webpack_require__.g.SideBar=side_bar.z,__webpack_require__.g.SideNav=side_nav_bar.f,__webpack_require__.g.SimpleBar=simple_bar.m,__webpack_require__.g.DesktopBar=beta_desktop_bar.C,__webpack_require__.g.MobileBar=beta_mobile_bar.m,__webpack_require__.g.Switcher=multiswitcher.i,__webpack_require__.g.Spacer=spacer.h,__webpack_require__.g.HScroller=horizontal_scroller.J,__webpack_require__.g.Checkbox=layout_checkbox.S,__webpack_require__.g.Base=base.C,__webpack_require__.g.FilePickera=image_picker.I,__webpack_require__.g.Picker=picker.L,__webpack_require__.g.Range=range.Q,__webpack_require__.g.RadioGroup=form_components_radio.z,__webpack_require__.g.DataList=data_list.T,__webpack_require__.g.Button=layout_button.$,__webpack_require__.g.Des=designer.H,__webpack_require__.g.LinkStyler=link_getter.a,__webpack_require__.g.CardGen=card_getter.Z,__webpack_require__.g.KeyframeAnim=KeyframeAnim,__webpack_require__.g.TransformAnim=TransformAnim,__webpack_require__.g.Stacker=Stacker,__webpack_require__.g.ScrollVideo=ScrollVideo,__webpack_require__.g.Theme=theme.S,__webpack_require__.g.AreaSwitcher=grid_switcher.t,__webpack_require__.g.Video=video.C,__webpack_require__.g.UList=ulist.e,__webpack_require__.g.Slider=slider_2025.A,__webpack_require__.g.Polygon=polygon.t,__webpack_require__.g.Circle=circle.j,__webpack_require__.g.FloatingInput=floating_input.l,__webpack_require__.g.Form=form_components_form.l),__webpack_exports__=__webpack_exports__.Bundle,__webpack_exports__})());
|