formeo 3.0.4 → 3.0.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.
@@ -1,11 +1,11 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 3.0.3
4
+ Version: 3.0.4
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7
 
8
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).formeo={})}(this,(function(t){"use strict";var e=Object.defineProperty,n=(t,n,o)=>((t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o)(t,"symbol"!=typeof n?n+"":n,o);const o={extension:".lang",location:"assets/lang/",langs:["en-US"],locale:"en-US",override:{}};class i{constructor(t=o){this.langs=Object.create(null),this.loaded=[],this.processConfig(t)}processConfig(t){const{location:e,...n}={...o,...t},i=e.replace(/\/?$/,"/");this.config={location:i,...n};const{override:r,preloaded:s={}}=this.config,a=Object.entries(this.langs).concat(Object.entries(r||s));this.langs=a.reduce(((t,[e,n])=>(t[e]=this.applyLanguage(e,n),t)),{}),this.locale=this.config.locale||this.config.langs[0]}init(t){return this.processConfig({...this.config,...t}),this.setCurrent(this.locale)}addLanguage(t,e={}){e="string"==typeof e?i.processFile(e):e,this.applyLanguage(t,e),this.config.langs.push("locale")}getValue(t,e=this.locale){var n;return(null==(n=this.langs[e])?void 0:n[t])||this.getFallbackValue(t)}getFallbackValue(t){const e=Object.values(this.langs).find((e=>e[t]));return null==e?void 0:e[t]}makeSafe(t){const e={"{":"\\{","}":"\\}","|":"\\|"};return t=t.replace(/[{}|]/g,(t=>e[t])),new RegExp(t,"g")}put(t,e){return this.current[t]=e,e}get(t,e){const n=this;let o=this.getValue(t);if(!o)return;const i=o.match(/\{[^}]+?\}/g);if(e&&i)if("object"==typeof e)for(const r of i){const t=r.substring(1,r.length-1);o=o.replace(n.makeSafe(r),e[t]||"")}else o=o.replace(/\{[^}]+?\}/g,e);return o}static processFile(t){return i.fromFile(t.replace(/\n\n/g,"\n"))}static fromFile(t){const e=t.split("\n"),n={};for(let o,i=0;i<e.length;i++){o=/^(.+?) *?= *?([^\n]+)/.exec(e[i]),o&&(n[o[1]]=o[2].replace(/(^\s+|\s+$)/g,""))}return n}loadLang(t,e=!0){const n=this;return new Promise((function(o,r){if(-1!==n.loaded.indexOf(t)&&e)return n.applyLanguage(n.langs[t]),o(n.langs[t]);return async function(t){try{const e=await fetch(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const n=t.endsWith(".lang")?"text":"json";return await e[n]()}catch(e){throw e}}([n.config.location,t,n.config.extension].join("")).then((e=>{const r=i.processFile(e);return n.applyLanguage(t,r),n.loaded.push(t),o(n.langs[t])})).catch((e=>{const i=n.applyLanguage(t);o(i)}))}))}applyLanguage(t,e={}){const n=this.config.override[t]||{},o=this.langs[t]||{};return this.langs[t]={...o,...e,...n},this.langs[t]}get getLangs(){return this.config.langs}async setCurrent(t="en-US"){return await this.loadLang(t),this.locale=t,this.current=this.langs[t],this.current}}const r=new i;!function(){try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('._3x4ZIcu-{position:absolute;background:#1f2937;color:#fff;padding:.75rem;border-radius:.375rem;max-width:200px;z-index:50;visibility:hidden;opacity:0;transition:opacity .2s;pointer-events:none;left:0;top:0}._3x4ZIcu-.JIt36hCJ{visibility:visible;opacity:1;pointer-events:all}._3x4ZIcu-:before{content:"";position:absolute;width:0;height:0;border:6px solid transparent}._3x4ZIcu-[data-position=top]:before{border-top-color:#1f2937;bottom:-12px;left:50%;transform:translate(-50%)}._3x4ZIcu-[data-position=bottom]:before{border-bottom-color:#1f2937;top:-12px;left:50%;transform:translate(-50%)}._3x4ZIcu-[data-position=left]:before{border-left-color:#1f2937;right:-12px;top:50%;transform:translateY(-50%)}._3x4ZIcu-[data-position=right]:before{border-right-color:#1f2937;left:-12px;top:50%;transform:translateY(-50%)}._3x4ZIcu-[data-position=top-left]:before{border-top-color:#1f2937;bottom:-12px;left:12px;transform:none}._3x4ZIcu-[data-position=top-right]:before{border-top-color:#1f2937;bottom:-12px;right:12px;left:auto;transform:none}._3x4ZIcu-[data-position=bottom-left]:before{border-bottom-color:#1f2937;top:-12px;left:12px;transform:none}._3x4ZIcu-[data-position=bottom-right]:before{border-bottom-color:#1f2937;top:-12px;right:12px;left:auto;transform:none}')),document.head.appendChild(t)}}catch(e){}}();var s=Object.defineProperty,a=(t,e,n)=>((t,e,n)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);const l="_3x4ZIcu-",c="JIt36hCJ",d={triggerName:"tooltip"};class h{constructor(t=d){a(this,"triggerName"),a(this,"tooltip"),a(this,"activeTriggerType",null),a(this,"spacing",12),a(this,"handleClick",(t=>{const e=this.triggerName,n=t.target.closest(`[${e}][${e}-type="click"]`);if(n)if(this.isVisible())this.hide();else{const t=n.getAttribute(`${e}`);this.show(n,t),this.activeTriggerType="click"}else this.hide()})),a(this,"handleMouseOver",(t=>{const e=this.triggerName,n=t.target.closest(`[${e}]`);if("click"!==this.activeTriggerType&&"click"!==(null==n?void 0:n.getAttribute(`${e}-type`))){const t=null==n?void 0:n.getAttribute(`${e}`);t&&(this.show(n,t),this.activeTriggerType="hover")}})),a(this,"handleMouseOut",(t=>{const e=this.triggerName,n=t.target.closest(`[${e}]`);"click"!==this.activeTriggerType&&"click"!==(null==n?void 0:n.getAttribute(`${e}-type`))&&this.hide()})),a(this,"handleResize",(()=>{this.isVisible()&&this.hide()})),a(this,"handleScroll",(()=>{this.isVisible()&&this.hide()})),this.triggerName=`data-${t.triggerName}`,this.tooltip=document.createElement("div"),this.tooltip.className=`d-tooltip ${l}`,document.body.appendChild(this.tooltip),this.setupEventListeners()}setupEventListeners(){document.addEventListener("mouseover",this.handleMouseOver),document.addEventListener("mouseout",this.handleMouseOut),document.addEventListener("touchstart",this.handleMouseOver),document.addEventListener("touchend",this.handleMouseOut),document.addEventListener("click",this.handleClick),window.addEventListener("resize",this.handleResize),window.addEventListener("scroll",this.handleScroll,!0)}isVisible(){return this.tooltip.classList.contains(c)}calculatePosition(t){const e=t.getBoundingClientRect(),n=this.tooltip.getBoundingClientRect(),o=[{name:"top",x:e.left+(e.width-n.width)/2,y:e.top-n.height-this.spacing},{name:"bottom",x:e.left+(e.width-n.width)/2,y:e.bottom+this.spacing},{name:"left",x:e.left-n.width-this.spacing,y:e.top+(e.height-n.height)/2},{name:"right",x:e.right+this.spacing,y:e.top+(e.height-n.height)/2},{name:"top-left",x:e.left,y:e.top-n.height-this.spacing},{name:"top-right",x:e.right-n.width,y:e.top-n.height-this.spacing},{name:"bottom-left",x:e.left,y:e.bottom+this.spacing},{name:"bottom-right",x:e.right-n.width,y:e.bottom+this.spacing}];return o.find((t=>this.fitsInViewport(t,n)))||o[0]}fitsInViewport(t,e){if(!(t.x>=0&&t.y>=0&&t.x+e.width<=window.innerWidth&&t.y+e.height<=window.innerHeight))return!1;return 0===[[t.x,t.y],[t.x+e.width,t.y],[t.x,t.y+e.height],[t.x+e.width,t.y+e.height],[t.x+e.width/2,t.y+e.height/2]].flatMap((([t,e])=>Array.from(document.elementsFromPoint(t,e)))).filter((t=>{if(this.tooltip.contains(t)||t===this.tooltip||t.classList.contains(l)||"none"===getComputedStyle(t).pointerEvents)return!1})).length}show(t,e){this.tooltip.innerHTML=e??"",this.tooltip.classList.add(c);const n=this.calculatePosition(t);this.tooltip.style.left=`${n.x}px`,this.tooltip.style.top=`${n.y}px`,this.tooltip.dataset.position=n.name}hide(){this.tooltip.classList.remove(c),this.activeTriggerType=null}destroy(){document.removeEventListener("mouseover",this.handleMouseOver),document.removeEventListener("mouseout",this.handleMouseOut),document.removeEventListener("touchstart",this.handleMouseOver),document.removeEventListener("touchend",this.handleMouseOut),document.removeEventListener("click",this.handleClick),window.removeEventListener("resize",this.handleResize),window.removeEventListener("scroll",this.handleScroll,!0),this.tooltip.remove()}}void 0!==window&&(window.SmartTooltip=h);const u="formeo",p="3.0.3",f="formeo-sprite",m=[{name:"cssPreload",src:"//cdnjs.cloudflare.com/ajax/libs/loadCSS/2.0.1/cssrelpreload.min.js"},{name:"mutationObserver",src:"//cdn.jsdelivr.net/npm/mutationobserver-shim/dist/mutationobserver.min.js"},{name:"fetch",src:"https://unpkg.com/unfetch/polyfill"}],g=`https://cdn.jsdelivr.net/npm/formeo@${p}/dist/${f}.svg`,v=`https://draggable.github.io/formeo/assets/img/${f}.svg`,b=`https://cdn.jsdelivr.net/npm/formeo@${p}/dist/formeo.min.css`,y="control-group",w=`${u}-stage`,C=`${u}-row`,E=`${u}-column`,x=`${u}-field`,S="custom-column-widths",O="column-preset",_="resizing-columns",N=new Map([[w,C],[C,E],[E,x]]),A=["external","stages","rows","columns","fields"],j=["stage","row","column","field"].reduce(((t,e)=>({...t,[e]:e})),{}),T=[{name:"controls",className:y},{name:"stage",className:w},{name:"row",className:C},{name:"column",className:E},{name:"field",className:x}],P={controls:y,stage:w,row:C,column:E,field:x},L=Object.entries(P).reduce(((t,[e,n])=>({...t,[n]:e})),{}),D=Object.values(P),k=new RegExp(`${D.join("|")}`,"g"),$=T.map((({name:t},e,n)=>{const{name:o}=n[e+1]||{};return o&&[t,o]})).filter(Boolean),I=$.slice().map((t=>t.slice().reverse())).reverse(),M=new Map($),R=new Map(I.slice()),F=new Map([[{value:"100.0",label:"100%"}],[{value:"50.0,50.0",label:"50 | 50"},{value:"33.3,66.6",label:"33 | 66"},{value:"66.6,33.3",label:"66 | 33"}],[{value:"33.3,33.3,33.3",label:"33 | 33 | 33"},{value:"25.0,25.0,50.0",label:"25 | 25 | 50"},{value:"50.0,25.0,25.0",label:"50 | 25 | 25"},{value:"25.0,50.0,25.0",label:"25 | 50 | 25"}],[{value:"25.0,25.0,25.0,25.0",label:"25 | 25 | 25 | 25"}],[{value:"20.0,20.0,20.0,20.0,20.0",label:"20 | 20 | 20 | 20 | 20"}],[{value:"16.66,16.66,16.66,16.66,16.66,16.66",label:"16.66 | 16.66 | 16.66 | 16.66 | 16.66 | 16.66"}]].reduce(((t,e,n)=>(t.push([n,e]),t)),[])),W=[{type:"added",condition:(t,e)=>Boolean(void 0===t&&e)}],B=`${u}-formData`,z=`${u}-locale`,q=333,U=Math.round(166.5),H=Math.round(666),X="formeoSaved",V="formeoUpdated",Y="formeoOnRender",G=["label","logical","source","thenTarget","sourceProperty","comparison","target","targetProperty","assignment","value"],Z={value:"attrs.value",checked:"attrs.checked",isVisible:"config.isVisible",isNotVisible:"config.isNotVisible"},J={comparison:{equals:"==",notEquals:"!=",contains:"⊃",notContains:"!⊃"},assignment:{equals:"="},logical:{and:"&&",or:"||"},property:Z},K=/(\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b)/gi,Q=/\bcol-\w+-\d+/g,tt="f-i-";var et="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function nt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ot=function(){this.__data__=[],this.size=0};var it=function(t,e){return t===e||t!=t&&e!=e},rt=it;var st=function(t,e){for(var n=t.length;n--;)if(rt(t[n][0],e))return n;return-1},at=st,lt=Array.prototype.splice;var ct=st;var dt=st;var ht=st;var ut=ot,pt=function(t){var e=this.__data__,n=at(e,t);return!(n<0)&&(n==e.length-1?e.pop():lt.call(e,n,1),--this.size,!0)},ft=function(t){var e=this.__data__,n=ct(e,t);return n<0?void 0:e[n][1]},mt=function(t){return dt(this.__data__,t)>-1},gt=function(t,e){var n=this.__data__,o=ht(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function vt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}vt.prototype.clear=ut,vt.prototype.delete=pt,vt.prototype.get=ft,vt.prototype.has=mt,vt.prototype.set=gt;var bt=vt,yt=bt;var wt=function(){this.__data__=new yt,this.size=0};var Ct=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var Et=function(t){return this.__data__.get(t)};var xt=function(t){return this.__data__.has(t)},St="object"==typeof et&&et&&et.Object===Object&&et,Ot=St,_t="object"==typeof self&&self&&self.Object===Object&&self,Nt=Ot||_t||Function("return this")(),At=Nt.Symbol,jt=At,Tt=Object.prototype,Pt=Tt.hasOwnProperty,Lt=Tt.toString,Dt=jt?jt.toStringTag:void 0;var kt=function(t){var e=Pt.call(t,Dt),n=t[Dt];try{t[Dt]=void 0;var o=!0}catch(r){}var i=Lt.call(t);return o&&(e?t[Dt]=n:delete t[Dt]),i},$t=Object.prototype.toString;var It=kt,Mt=function(t){return $t.call(t)},Rt=At?At.toStringTag:void 0;var Ft=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Rt&&Rt in Object(t)?It(t):Mt(t)};var Wt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Bt=Ft,zt=Wt;var qt,Ut=function(t){if(!zt(t))return!1;var e=Bt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Ht=Nt["__core-js_shared__"],Xt=(qt=/[^.]+$/.exec(Ht&&Ht.keys&&Ht.keys.IE_PROTO||""))?"Symbol(src)_1."+qt:"";var Vt=function(t){return!!Xt&&Xt in t},Yt=Function.prototype.toString;var Gt=function(t){if(null!=t){try{return Yt.call(t)}catch(e){}try{return t+""}catch(e){}}return""},Zt=Ut,Jt=Vt,Kt=Wt,Qt=Gt,te=/^\[object .+?Constructor\]$/,ee=Function.prototype,ne=Object.prototype,oe=ee.toString,ie=ne.hasOwnProperty,re=RegExp("^"+oe.call(ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var se=function(t){return!(!Kt(t)||Jt(t))&&(Zt(t)?re:te).test(Qt(t))},ae=function(t,e){return null==t?void 0:t[e]};var le=function(t,e){var n=ae(t,e);return se(n)?n:void 0},ce=le(Nt,"Map"),de=le(Object,"create"),he=de;var ue=function(){this.__data__=he?he(null):{},this.size=0};var pe=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},fe=de,me=Object.prototype.hasOwnProperty;var ge=function(t){var e=this.__data__;if(fe){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return me.call(e,t)?e[t]:void 0},ve=de,be=Object.prototype.hasOwnProperty;var ye=de;var we=ue,Ce=pe,Ee=ge,xe=function(t){var e=this.__data__;return ve?void 0!==e[t]:be.call(e,t)},Se=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ye&&void 0===e?"__lodash_hash_undefined__":e,this};function Oe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Oe.prototype.clear=we,Oe.prototype.delete=Ce,Oe.prototype.get=Ee,Oe.prototype.has=xe,Oe.prototype.set=Se;var _e=Oe,Ne=bt,Ae=ce;var je=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Te=function(t,e){var n=t.__data__;return je(e)?n["string"==typeof e?"string":"hash"]:n.map},Pe=Te;var Le=Te;var De=Te;var ke=Te;var $e=function(){this.size=0,this.__data__={hash:new _e,map:new(Ae||Ne),string:new _e}},Ie=function(t){var e=Pe(this,t).delete(t);return this.size-=e?1:0,e},Me=function(t){return Le(this,t).get(t)},Re=function(t){return De(this,t).has(t)},Fe=function(t,e){var n=ke(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function We(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}We.prototype.clear=$e,We.prototype.delete=Ie,We.prototype.get=Me,We.prototype.has=Re,We.prototype.set=Fe;var Be=We,ze=bt,qe=ce,Ue=Be;var He=bt,Xe=wt,Ve=Ct,Ye=Et,Ge=xt,Ze=function(t,e){var n=this.__data__;if(n instanceof ze){var o=n.__data__;if(!qe||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ue(o)}return n.set(t,e),this.size=n.size,this};function Je(t){var e=this.__data__=new He(t);this.size=e.size}Je.prototype.clear=Xe,Je.prototype.delete=Ve,Je.prototype.get=Ye,Je.prototype.has=Ge,Je.prototype.set=Ze;var Ke=Je,Qe=le,tn=function(){try{var t=Qe(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),en=tn;var nn=function(t,e,n){"__proto__"==e&&en?en(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},on=nn,rn=it;var sn=function(t,e,n){(void 0!==n&&!rn(t[e],n)||void 0===n&&!(e in t))&&on(t,e,n)};var an,ln,cn,dn,hn,un,pn,fn=function(t){return function(e,n,o){for(var i=-1,r=Object(e),s=o(e),a=s.length;a--;){var l=s[t?a:++i];if(!1===n(r[l],l,r))break}return e}}(),mn={exports:{}};an=mn,cn=Nt,dn=(ln=mn.exports)&&!ln.nodeType&&ln,hn=dn&&an&&!an.nodeType&&an,un=hn&&hn.exports===dn?cn.Buffer:void 0,pn=un?un.allocUnsafe:void 0,an.exports=function(t,e){if(e)return t.slice();var n=t.length,o=pn?pn(n):new t.constructor(n);return t.copy(o),o};var gn=mn.exports,vn=Nt.Uint8Array,bn=vn;var yn=function(t){var e=new t.constructor(t.byteLength);return new bn(e).set(new bn(t)),e};var wn=function(t,e){var n=e?yn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var Cn=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e},En=Wt,xn=Object.create,Sn=function(){function t(){}return function(e){if(!En(e))return{};if(xn)return xn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var On=function(t,e){return function(n){return t(e(n))}},_n=On(Object.getPrototypeOf,Object),Nn=Object.prototype;var An=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Nn)},jn=Sn,Tn=_n,Pn=An;var Ln=function(t){return"function"!=typeof t.constructor||Pn(t)?{}:jn(Tn(t))};var Dn=function(t){return null!=t&&"object"==typeof t},kn=Ft,$n=Dn;var In=function(t){return $n(t)&&"[object Arguments]"==kn(t)},Mn=Dn,Rn=Object.prototype,Fn=Rn.hasOwnProperty,Wn=Rn.propertyIsEnumerable,Bn=In(function(){return arguments}())?In:function(t){return Mn(t)&&Fn.call(t,"callee")&&!Wn.call(t,"callee")},zn=Bn,qn=Array.isArray;var Un=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Hn=Ut,Xn=Un;var Vn=function(t){return null!=t&&Xn(t.length)&&!Hn(t)},Yn=Vn,Gn=Dn;var Zn=function(t){return Gn(t)&&Yn(t)},Jn={exports:{}};var Kn=function(){return!1};!function(t,e){var n=Nt,o=Kn,i=e&&!e.nodeType&&e,r=i&&t&&!t.nodeType&&t,s=r&&r.exports===i?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||o;t.exports=a}(Jn,Jn.exports);var Qn=Jn.exports,to=Ft,eo=_n,no=Dn,oo=Function.prototype,io=Object.prototype,ro=oo.toString,so=io.hasOwnProperty,ao=ro.call(Object);var lo=function(t){if(!no(t)||"[object Object]"!=to(t))return!1;var e=eo(t);if(null===e)return!0;var n=so.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ro.call(n)==ao},co=Ft,ho=Un,uo=Dn,po={};po["[object Float32Array]"]=po["[object Float64Array]"]=po["[object Int8Array]"]=po["[object Int16Array]"]=po["[object Int32Array]"]=po["[object Uint8Array]"]=po["[object Uint8ClampedArray]"]=po["[object Uint16Array]"]=po["[object Uint32Array]"]=!0,po["[object Arguments]"]=po["[object Array]"]=po["[object ArrayBuffer]"]=po["[object Boolean]"]=po["[object DataView]"]=po["[object Date]"]=po["[object Error]"]=po["[object Function]"]=po["[object Map]"]=po["[object Number]"]=po["[object Object]"]=po["[object RegExp]"]=po["[object Set]"]=po["[object String]"]=po["[object WeakMap]"]=!1;var fo=function(t){return uo(t)&&ho(t.length)&&!!po[co(t)]};var mo=function(t){return function(e){return t(e)}},go={exports:{}};!function(t,e){var n=St,o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,r=i&&i.exports===o&&n.process,s=function(){try{var t=i&&i.require&&i.require("util").types;return t||r&&r.binding&&r.binding("util")}catch(e){}}();t.exports=s}(go,go.exports);var vo=go.exports,bo=fo,yo=mo,wo=vo&&vo.isTypedArray,Co=wo?yo(wo):bo;var Eo=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},xo=nn,So=it,Oo=Object.prototype.hasOwnProperty;var _o=function(t,e,n){var o=t[e];Oo.call(t,e)&&So(o,n)&&(void 0!==n||e in t)||xo(t,e,n)},No=_o,Ao=nn;var jo=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var a=e[r],l=o?o(n[a],t[a],a,n,t):void 0;void 0===l&&(l=t[a]),i?Ao(n,a,l):No(n,a,l)}return n};var To=/^(?:0|[1-9]\d*)$/;var Po=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&To.test(t))&&t>-1&&t%1==0&&t<e},Lo=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o},Do=zn,ko=qn,$o=Qn,Io=Po,Mo=Co,Ro=Object.prototype.hasOwnProperty;var Fo=function(t,e){var n=ko(t),o=!n&&Do(t),i=!n&&!o&&$o(t),r=!n&&!o&&!i&&Mo(t),s=n||o||i||r,a=s?Lo(t.length,String):[],l=a.length;for(var c in t)!e&&!Ro.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Io(c,l))||a.push(c);return a};var Wo=Wt,Bo=An,zo=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},qo=Object.prototype.hasOwnProperty;var Uo=Fo,Ho=function(t){if(!Wo(t))return zo(t);var e=Bo(t),n=[];for(var o in t)("constructor"!=o||!e&&qo.call(t,o))&&n.push(o);return n},Xo=Vn;var Vo=function(t){return Xo(t)?Uo(t,!0):Ho(t)},Yo=jo,Go=Vo;var Zo=sn,Jo=gn,Ko=wn,Qo=Cn,ti=Ln,ei=zn,ni=qn,oi=Zn,ii=Qn,ri=Ut,si=Wt,ai=lo,li=Co,ci=Eo,di=function(t){return Yo(t,Go(t))};var hi=Ke,ui=sn,pi=fn,fi=function(t,e,n,o,i,r,s){var a=ci(t,n),l=ci(e,n),c=s.get(l);if(c)Zo(t,n,c);else{var d=r?r(a,l,n+"",t,e,s):void 0,h=void 0===d;if(h){var u=ni(l),p=!u&&ii(l),f=!u&&!p&&li(l);d=l,u||p||f?ni(a)?d=a:oi(a)?d=Qo(a):p?(h=!1,d=Jo(l,!0)):f?(h=!1,d=Ko(l,!0)):d=[]:ai(l)||ei(l)?(d=a,ei(a)?d=di(a):si(a)&&!ri(a)||(d=ti(l))):h=!1}h&&(s.set(l,d),i(d,l,o,r,s),s.delete(l)),Zo(t,n,d)}},mi=Wt,gi=Vo,vi=Eo;var bi=function t(e,n,o,i,r){e!==n&&pi(n,(function(s,a){if(r||(r=new hi),mi(s))fi(e,n,a,o,t,i,r);else{var l=i?i(vi(e,a),s,a+"",e,n,r):void 0;void 0===l&&(l=s),ui(e,a,l)}}),gi)};var yi=function(t){return t};var wi=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},Ci=Math.max;var Ei=function(t,e,n){return e=Ci(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=Ci(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=o[i];return a[e]=n(s),wi(t,this,a)}};var xi=function(t){return function(){return t}},Si=tn,Oi=Si?function(t,e){return Si(t,"toString",{configurable:!0,enumerable:!1,value:xi(e),writable:!0})}:yi,_i=Date.now;var Ni=function(t){var e=0,n=0;return function(){var o=_i(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},Ai=Ni(Oi),ji=yi,Ti=Ei,Pi=Ai;var Li=it,Di=Vn,ki=Po,$i=Wt;var Ii=function(t,e){return Pi(Ti(t,e,ji),t+"")},Mi=function(t,e,n){if(!$i(n))return!1;var o=typeof e;return!!("number"==o?Di(n)&&ki(e,n.length):"string"==o&&e in n)&&Li(n[e],t)};var Ri=bi;const Fi=nt(function(t){return Ii((function(e,n){var o=-1,i=n.length,r=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(r=t.length>3&&"function"==typeof r?(i--,r):void 0,s&&Mi(n[0],n[1],s)&&(r=i<3?void 0:r,i=1),e=Object(e);++o<i;){var a=n[o];a&&t(e,a,o,r)}return e}))}((function(t,e,n,o){Ri(t,e,n,o)}))),Wi=()=>crypto.randomUUID(),Bi=(t="",e)=>{if(!e)return!1;const n=/[|\\{}()[\]^*$+?.]/g;let o="string"==typeof e?[e]:e;o=o.map((t=>"*"===t?"":t.replace(n,"\\$&")));let i=!0;return o.length&&(i=!new RegExp(o.join("|"),"i").exec(t)),i},zi=t=>{var e;const n=null==(e=t.className)?void 0:e.match(k);return n&&L[n[0]]},qi=t=>Array.from(new Set(t)),Ui=t=>{let e;if(t){const{attrs:n={}}=t;e=n.id||t.id||Wi(),t.id=e}else e=Wi();return e},Hi=(t,e)=>Fi({},t,e,((t,e)=>Array.isArray(t)?null!=e?qi(t.concat(e)):e:Array.isArray(e)?null!=t?qi(e.concat(t)):e:void 0)),Xi=t=>{let e;if(null===t||!("object"==typeof t)||t instanceof Promise)return t;if(t instanceof Date)return e=new Date,e.setTime(t.getTime()),e;if(Array.isArray(t)){e=[];for(let n=0,o=t.length;n<o;n++)e[n]=Xi(t[n]);return e}if(t instanceof Object){e={};for(const n in t)Object.hasOwn(t,n)&&(e[n]=Xi(t[n]));return e}throw new Error("Unable to copy Object, type not supported.")},Vi=(t,e)=>t/e*100,Yi=t=>`${t.toString()}%`,Gi=Object.create(null,{get:{value:t=>{var e;const n=null==(e=window.sessionStorage)?void 0:e.getItem(t);try{return JSON.parse(n)}catch(o){return n}}},set:{value:(t,e)=>{var n;try{return null==(n=window.sessionStorage)?void 0:n.setItem(t,JSON.stringify(e))}catch(o){}}}}),Zi=t=>A.some((e=>new RegExp(`^${e}.`).test(t))),Ji=t=>t.startsWith("external");function Ki(t,e=H){let n=0;return function(...o){const i=Date.now();i-n>=e&&(n=i,t.apply(this,o))}}function Qi(t){return t}function tr(){}function er(t=Object.create(null)){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return Object.create(null)}return t}var nr=Ft,or=Dn;var ir=function(t){return"symbol"==typeof t||or(t)&&"[object Symbol]"==nr(t)},rr=qn,sr=ir,ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lr=/^\w*$/;var cr=function(t,e){if(rr(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!sr(t))||(lr.test(t)||!ar.test(t)||null!=e&&t in Object(e))},dr=Be;function hr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(hr.Cache||dr),n}hr.Cache=dr;var ur=hr;var pr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fr=/\\(\\)?/g,mr=function(t){var e=ur(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(pr,(function(t,n,o,i){e.push(o?i.replace(fr,"$1"):n||t)})),e}));var gr=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i},vr=qn,br=ir,yr=At?At.prototype:void 0,wr=yr?yr.toString:void 0;var Cr=function t(e){if("string"==typeof e)return e;if(vr(e))return gr(e,t)+"";if(br(e))return wr?wr.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},Er=Cr;var xr=qn,Sr=cr,Or=mr,_r=function(t){return null==t?"":Er(t)};var Nr=function(t,e){return xr(t)?t:Sr(t,e)?[t]:Or(_r(t))},Ar=ir;var jr=function(t){if("string"==typeof t||Ar(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},Tr=_o,Pr=Nr,Lr=Po,Dr=Wt,kr=jr;var $r=function(t,e,n,o){if(!Dr(t))return t;for(var i=-1,r=(e=Pr(e,t)).length,s=r-1,a=t;null!=a&&++i<r;){var l=kr(e[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(i!=s){var d=a[l];void 0===(c=o?o(d,l,a):void 0)&&(c=Dr(d)?d:Lr(e[i+1])?[]:{})}Tr(a,l,c),a=a[l]}return t};const Ir=nt((function(t,e,n){return null==t?t:$r(t,e,n)}));var Mr=Nr,Rr=jr;var Fr=function(t,e){for(var n=0,o=(e=Mr(e,t)).length;null!=t&&n<o;)t=t[Rr(e[n++])];return n&&n==o?t:void 0};const Wr=nt((function(t,e,n){var o=null==t?void 0:Fr(t,e);return void 0===o?n:o})),Br=Ir,zr=t=>Number.isInteger(Number(t)),qr=(t,e)=>{const n=e||t.parentElement;return Array.prototype.slice.call(n.childNodes).indexOf(t)},Ur=(t,e,n)=>{const o=n.split("||"),i=qi(e).map((e=>t.find((t=>{const n=o.find((e=>!!Wr(t,e)));return n&&Wr(t,n)===e})))).filter(Boolean).concat(t);return qi(i)},Hr=(t,e,n)=>{for(let o=0;o<t.length;o++)e.call(n,t[o],o)},Xr=(t,e)=>{const n=[];return Hr(t,((t,o)=>n.push(e(t,o)))),n},Vr={},Yr=t=>t.replace(/\b\w/g,(t=>t.toUpperCase())),Gr=()=>-1!==window.navigator.userAgent.indexOf("MSIE "),Zr={capitalize:Yr,safeAttrName:t=>{if(Vr[t])return Vr[t];const e=({className:"class"}[t]||t).replace(/^\d+/,"").replace(/[^a-zA-Z0-9-:]/g,"");return Vr[t]=e,e},forEach:Hr,copyObj:t=>window.JSON.parse(window.JSON.stringify(t)),map:Xr,subtract:(t,e)=>e.filter((e=>!~t.indexOf(e))),indexOfNode:qr,isInt:zr,get:Wr,orderObjectsBy:Ur,isIE:Gr},Jr={getStyle:(t,e=!1)=>{let n;return window.getComputedStyle?n=window.getComputedStyle(t,null):t.currentStyle&&(n=t.currentStyle),e?n[e]:n},fadeOut:(t,e=250)=>{const n=1/(e/60);t.style.opacity=1,function e(){const o=Number(t.style.opacity)-n;o>0?(t.style.opacity=o,window.requestAnimationFrame(e)):t.remove()}()},slideDown:(t,e=250,n=!1)=>{t.style.display="block";const o=Jr.getStyle(t),i=parseInt(o.height,10),r=i/(e/60);t.style.height="0px",function e(){const o=parseFloat(t.style.height),s=o+r;o<i?(t.style.height=s+"px",window.requestAnimationFrame(e)):(t.style.height="auto",n&&n(t))}()},slideUp:(t,e=250,n=!1)=>{const o=Jr.getStyle(t),i=parseInt(o.height),r=o.overflow;t.style.overflow="hidden",t.style.height=i+"px";const s=o.minHeight;t.style.minHeight="auto";const a=parseFloat(i/(e/60)).toFixed(2);!function e(){const o=parseInt(t.style.height,10)-a;o>0?(t.style.height=o+"px",window.requestAnimationFrame(e)):(t.style.overflow=r,t.style.display="none",t.style.minHeight=s,delete t.style.height,n&&n(t))}()},slideToggle:(t,e=250,n="none"===Jr.getStyle(t,"display"))=>{n?Jr.slideDown(t,e):Jr.slideUp(t,e)}},Kr="no-transition",Qr={debug:!1,bubbles:!0,formeoLoaded:t=>{},onAdd:()=>{},onUpdate:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onUpdateStage:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onUpdateRow:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onUpdateColumn:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onUpdateField:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onRender:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onSave:t=>{},confirmClearAll:t=>{window.confirm(t.confirmationMessage)&&t.clearAllAction(t)}},ts=({src:t,...e},n=V)=>{var o,i;const r=new window.CustomEvent(n,{detail:e,bubbles:(null==(o=es.opts)?void 0:o.debug)||(null==(i=es.opts)?void 0:i.bubbles)});return r.data=(t||document).dispatchEvent(r),r},es={init:function(t){return this.opts={...Qr,...t},this},formeoSaved:t=>ts(t,X),formeoUpdated:t=>ts(t,V),formeoCleared:t=>ts(t,"formeoCleared"),formeoOnRender:t=>ts(t,Y),formeoConditionUpdated:t=>ts(t,"formeoConditionUpdated")},ns=Ki((()=>{es.opts.onUpdate({timeStamp:window.performance.now(),type:V,detail:Fd.formData})}),U);let os;document.addEventListener(V,ns),document.addEventListener("formeoUpdatedStage",(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener("formeoUpdatedRow",(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener("formeoUpdatedColumn",(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener("formeoUpdatedField",(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener(Y,(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onRender({timeStamp:e,type:n,detail:o})})),document.addEventListener("confirmClearAll",(t=>{t={timeStamp:t.timeStamp,type:t.type,confirmationMessage:t.detail.confirmationMessage,clearAllAction:t.detail.clearAllAction,btnCoords:t.detail.btnCoords},es.opts.confirmClearAll(t)})),document.addEventListener(X,(({timeStamp:t,type:e,detail:{formData:n}})=>{const o={timeStamp:t,type:e,formData:n};es.opts.onSave(o)})),document.addEventListener("formeoLoaded",(t=>{es.opts.formeoLoaded(t.detail.formeo)})),window.addEventListener("resize",(function(){os=os||window.requestAnimationFrame((()=>{os=!1;for(const t of Object.values(kd.data))t.dom.classList.add(Kr),Id.dom.classList.add(Kr),Id.panels.nav.refresh(),t.refreshFieldPanels()}))}));var is=Be,rs=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ss=function(t){return this.__data__.has(t)};function as(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new is;++e<n;)this.add(t[e])}as.prototype.add=as.prototype.push=rs,as.prototype.has=ss;var ls=as,cs=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1},ds=function(t,e){return t.has(e)};var hs=function(t,e,n,o,i,r){var s=1&n,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=r.get(t),d=r.get(e);if(c&&d)return c==e&&d==t;var h=-1,u=!0,p=2&n?new ls:void 0;for(r.set(t,e),r.set(e,t);++h<a;){var f=t[h],m=e[h];if(o)var g=s?o(m,f,h,e,t,r):o(f,m,h,t,e,r);if(void 0!==g){if(g)continue;u=!1;break}if(p){if(!cs(e,(function(t,e){if(!ds(p,e)&&(f===t||i(f,t,n,o,r)))return p.push(e)}))){u=!1;break}}else if(f!==m&&!i(f,m,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};var us=vn,ps=it,fs=hs,ms=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n},gs=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},vs=At?At.prototype:void 0,bs=vs?vs.valueOf:void 0;var ys=function(t,e,n,o,i,r,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new us(t),new us(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ps(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=ms;case"[object Set]":var l=1&o;if(a||(a=gs),t.size!=e.size&&!l)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var d=fs(a(t),a(e),o,i,r,s);return s.delete(t),d;case"[object Symbol]":if(bs)return bs.call(t)==bs.call(e)}return!1};var ws=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t},Cs=qn;var Es=function(t,e,n){var o=e(t);return Cs(t)?o:ws(o,n(t))};var xs=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}return r},Ss=function(){return[]},Os=Object.prototype.propertyIsEnumerable,_s=Object.getOwnPropertySymbols,Ns=_s?function(t){return null==t?[]:(t=Object(t),xs(_s(t),(function(e){return Os.call(t,e)})))}:Ss,As=On(Object.keys,Object),js=An,Ts=As,Ps=Object.prototype.hasOwnProperty;var Ls=Fo,Ds=function(t){if(!js(t))return Ts(t);var e=[];for(var n in Object(t))Ps.call(t,n)&&"constructor"!=n&&e.push(n);return e},ks=Vn;var $s=Es,Is=Ns,Ms=function(t){return ks(t)?Ls(t):Ds(t)};var Rs=function(t){return $s(t,Ms,Is)},Fs=Object.prototype.hasOwnProperty;var Ws=function(t,e,n,o,i,r){var s=1&n,a=Rs(t),l=a.length;if(l!=Rs(e).length&&!s)return!1;for(var c=l;c--;){var d=a[c];if(!(s?d in e:Fs.call(e,d)))return!1}var h=r.get(t),u=r.get(e);if(h&&u)return h==e&&u==t;var p=!0;r.set(t,e),r.set(e,t);for(var f=s;++c<l;){var m=t[d=a[c]],g=e[d];if(o)var v=s?o(g,m,d,e,t,r):o(m,g,d,t,e,r);if(!(void 0===v?m===g||i(m,g,n,o,r):v)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var b=t.constructor,y=e.constructor;b==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(p=!1)}return r.delete(t),r.delete(e),p},Bs=le(Nt,"DataView"),zs=ce,qs=le(Nt,"Promise"),Us=le(Nt,"Set"),Hs=le(Nt,"WeakMap"),Xs=Ft,Vs=Gt,Ys="[object Map]",Gs="[object Promise]",Zs="[object Set]",Js="[object WeakMap]",Ks="[object DataView]",Qs=Vs(Bs),ta=Vs(zs),ea=Vs(qs),na=Vs(Us),oa=Vs(Hs),ia=Xs;(Bs&&ia(new Bs(new ArrayBuffer(1)))!=Ks||zs&&ia(new zs)!=Ys||qs&&ia(qs.resolve())!=Gs||Us&&ia(new Us)!=Zs||Hs&&ia(new Hs)!=Js)&&(ia=function(t){var e=Xs(t),n="[object Object]"==e?t.constructor:void 0,o=n?Vs(n):"";if(o)switch(o){case Qs:return Ks;case ta:return Ys;case ea:return Gs;case na:return Zs;case oa:return Js}return e});var ra=Ke,sa=hs,aa=ys,la=Ws,ca=ia,da=qn,ha=Qn,ua=Co,pa="[object Arguments]",fa="[object Array]",ma="[object Object]",ga=Object.prototype.hasOwnProperty;var va=function(t,e,n,o,i,r){var s=da(t),a=da(e),l=s?fa:ca(t),c=a?fa:ca(e),d=(l=l==pa?ma:l)==ma,h=(c=c==pa?ma:c)==ma,u=l==c;if(u&&ha(t)){if(!ha(e))return!1;s=!0,d=!1}if(u&&!d)return r||(r=new ra),s||ua(t)?sa(t,e,n,o,i,r):aa(t,e,l,n,o,i,r);if(!(1&n)){var p=d&&ga.call(t,"__wrapped__"),f=h&&ga.call(e,"__wrapped__");if(p||f){var m=p?t.value():t,g=f?e.value():e;return r||(r=new ra),i(m,g,n,o,r)}}return!!u&&(r||(r=new ra),la(t,e,n,o,i,r))},ba=Dn;var ya=function t(e,n,o,i,r){return e===n||(null==e||null==n||!ba(e)&&!ba(n)?e!=e&&n!=n:va(e,n,o,i,t,r))},wa=ya;const Ca=nt((function(t,e){return wa(t,e)}));class Ea{constructor(t,e=Object.create(null)){n(this,"toJSON",((t,e)=>JSON.stringify(t,null,e))),n(this,"get",(t=>Wr(this.data,t))),n(this,"getChangeType",((t,e)=>{const n=W.find((({condition:n})=>n(t,e)))||{type:"unknown"};return n.desc="added"===n.type?`${t} to ${e}`:e,n})),n(this,"add",((t,e=Object.create(null))=>{const{id:n}=e,o=t||n||Ui();return this.set(o,e)})),n(this,"remove",(t=>{const e=t.split("."),n=e.pop(),o=this.get(e);return Array.isArray(o)?o.splice(Number(n),1):delete o[n],o})),n(this,"getData",(()=>Object.entries(this.data).reduce(((t,[e,n])=>(t[e]=(null==n?void 0:n.data)?n.getData():n,t)),{}))),n(this,"setCallbacks",{}),n(this,"configVal",Object.create(null)),this.name=t,this.data=e,this.dataPath=""}get size(){return Object.keys(this.data).length}get js(){return this.data}get json(){return this.data}set(t,e){const n=Wr(this.data,t);if(Ca(n,e))return this.data;const o=Br(this.data,t,e),i=Array.isArray(t)?t.join("."):t,r=Object.keys(this.setCallbacks).filter((t=>new RegExp(t).test(i))),s={newVal:e,oldVal:n,path:t};for(const a of r)for(const t of this.setCallbacks[a])t(s);if(!this.disableEvents){const i=this.getChangeType(n,e),r={entity:this,dataPath:this.dataPath.replace(/\.+$/,""),changePath:this.dataPath+t,value:e,data:o,change:`${i.type}: ${i.desc}`,src:this.dom};n&&(r.previousValue=n),es.formeoUpdated(r)}return o}addSetCallback(t,e){this.setCallbacks[t]?this.setCallbacks[t].push(e):this.setCallbacks[t]=[e]}removeSetCallback(t,e){this.setCallbacks[t]=this.setCallbacks[t].filter((t=>t!==e))}empty(){this.data=Object.create(null)}}
8
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).formeo={})}(this,(function(t){"use strict";var e=Object.defineProperty,n=(t,n,o)=>((t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o)(t,"symbol"!=typeof n?n+"":n,o);const o={extension:".lang",location:"assets/lang/",langs:["en-US"],locale:"en-US",override:{}};class i{constructor(t=o){this.langs=Object.create(null),this.loaded=[],this.processConfig(t)}processConfig(t){const{location:e,...n}={...o,...t},i=e.replace(/\/?$/,"/");this.config={location:i,...n};const{override:r,preloaded:s={}}=this.config,a=Object.entries(this.langs).concat(Object.entries(r||s));this.langs=a.reduce(((t,[e,n])=>(t[e]=this.applyLanguage(e,n),t)),{}),this.locale=this.config.locale||this.config.langs[0]}init(t){return this.processConfig({...this.config,...t}),this.setCurrent(this.locale)}addLanguage(t,e={}){e="string"==typeof e?i.processFile(e):e,this.applyLanguage(t,e),this.config.langs.push("locale")}getValue(t,e=this.locale){var n;return(null==(n=this.langs[e])?void 0:n[t])||this.getFallbackValue(t)}getFallbackValue(t){const e=Object.values(this.langs).find((e=>e[t]));return null==e?void 0:e[t]}makeSafe(t){const e={"{":"\\{","}":"\\}","|":"\\|"};return t=t.replace(/[{}|]/g,(t=>e[t])),new RegExp(t,"g")}put(t,e){return this.current[t]=e,e}get(t,e){const n=this;let o=this.getValue(t);if(!o)return;const i=o.match(/\{[^}]+?\}/g);if(e&&i)if("object"==typeof e)for(const r of i){const t=r.substring(1,r.length-1);o=o.replace(n.makeSafe(r),e[t]||"")}else o=o.replace(/\{[^}]+?\}/g,e);return o}static processFile(t){return i.fromFile(t.replace(/\n\n/g,"\n"))}static fromFile(t){const e=t.split("\n"),n={};for(let o,i=0;i<e.length;i++){o=/^(.+?) *?= *?([^\n]+)/.exec(e[i]),o&&(n[o[1]]=o[2].replace(/(^\s+|\s+$)/g,""))}return n}loadLang(t,e=!0){const n=this;return new Promise((function(o,r){if(-1!==n.loaded.indexOf(t)&&e)return n.applyLanguage(n.langs[t]),o(n.langs[t]);return async function(t){try{const e=await fetch(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const n=t.endsWith(".lang")?"text":"json";return await e[n]()}catch(e){throw e}}([n.config.location,t,n.config.extension].join("")).then((e=>{const r=i.processFile(e);return n.applyLanguage(t,r),n.loaded.push(t),o(n.langs[t])})).catch((e=>{const i=n.applyLanguage(t);o(i)}))}))}applyLanguage(t,e={}){const n=this.config.override[t]||{},o=this.langs[t]||{};return this.langs[t]={...o,...e,...n},this.langs[t]}get getLangs(){return this.config.langs}async setCurrent(t="en-US"){return await this.loadLang(t),this.locale=t,this.current=this.langs[t],this.current}}const r=new i;!function(){try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('._3x4ZIcu-{position:absolute;background:#1f2937;color:#fff;padding:.75rem;border-radius:.375rem;max-width:200px;z-index:50;visibility:hidden;opacity:0;transition:opacity .2s;pointer-events:none;left:0;top:0}._3x4ZIcu-.JIt36hCJ{visibility:visible;opacity:1;pointer-events:all}._3x4ZIcu-:before{content:"";position:absolute;width:0;height:0;border:6px solid transparent}._3x4ZIcu-[data-position=top]:before{border-top-color:#1f2937;bottom:-12px;left:50%;transform:translate(-50%)}._3x4ZIcu-[data-position=bottom]:before{border-bottom-color:#1f2937;top:-12px;left:50%;transform:translate(-50%)}._3x4ZIcu-[data-position=left]:before{border-left-color:#1f2937;right:-12px;top:50%;transform:translateY(-50%)}._3x4ZIcu-[data-position=right]:before{border-right-color:#1f2937;left:-12px;top:50%;transform:translateY(-50%)}._3x4ZIcu-[data-position=top-left]:before{border-top-color:#1f2937;bottom:-12px;left:12px;transform:none}._3x4ZIcu-[data-position=top-right]:before{border-top-color:#1f2937;bottom:-12px;right:12px;left:auto;transform:none}._3x4ZIcu-[data-position=bottom-left]:before{border-bottom-color:#1f2937;top:-12px;left:12px;transform:none}._3x4ZIcu-[data-position=bottom-right]:before{border-bottom-color:#1f2937;top:-12px;right:12px;left:auto;transform:none}')),document.head.appendChild(t)}}catch(e){}}();var s=Object.defineProperty,a=(t,e,n)=>((t,e,n)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);const l="_3x4ZIcu-",c="JIt36hCJ",d={triggerName:"tooltip"};class h{constructor(t=d){a(this,"triggerName"),a(this,"tooltip"),a(this,"activeTriggerType",null),a(this,"spacing",12),a(this,"handleClick",(t=>{const e=this.triggerName,n=t.target.closest(`[${e}][${e}-type="click"]`);if(n)if(this.isVisible())this.hide();else{const t=n.getAttribute(`${e}`);this.show(n,t),this.activeTriggerType="click"}else this.hide()})),a(this,"handleMouseOver",(t=>{const e=this.triggerName,n=t.target.closest(`[${e}]`);if("click"!==this.activeTriggerType&&"click"!==(null==n?void 0:n.getAttribute(`${e}-type`))){const t=null==n?void 0:n.getAttribute(`${e}`);t&&(this.show(n,t),this.activeTriggerType="hover")}})),a(this,"handleMouseOut",(t=>{const e=this.triggerName,n=t.target.closest(`[${e}]`);"click"!==this.activeTriggerType&&"click"!==(null==n?void 0:n.getAttribute(`${e}-type`))&&this.hide()})),a(this,"handleResize",(()=>{this.isVisible()&&this.hide()})),a(this,"handleScroll",(()=>{this.isVisible()&&this.hide()})),this.triggerName=`data-${t.triggerName}`,this.tooltip=document.createElement("div"),this.tooltip.className=`d-tooltip ${l}`,document.body.appendChild(this.tooltip),this.setupEventListeners()}setupEventListeners(){document.addEventListener("mouseover",this.handleMouseOver),document.addEventListener("mouseout",this.handleMouseOut),document.addEventListener("touchstart",this.handleMouseOver),document.addEventListener("touchend",this.handleMouseOut),document.addEventListener("click",this.handleClick),window.addEventListener("resize",this.handleResize),window.addEventListener("scroll",this.handleScroll,!0)}isVisible(){return this.tooltip.classList.contains(c)}calculatePosition(t){const e=t.getBoundingClientRect(),n=this.tooltip.getBoundingClientRect(),o=[{name:"top",x:e.left+(e.width-n.width)/2,y:e.top-n.height-this.spacing},{name:"bottom",x:e.left+(e.width-n.width)/2,y:e.bottom+this.spacing},{name:"left",x:e.left-n.width-this.spacing,y:e.top+(e.height-n.height)/2},{name:"right",x:e.right+this.spacing,y:e.top+(e.height-n.height)/2},{name:"top-left",x:e.left,y:e.top-n.height-this.spacing},{name:"top-right",x:e.right-n.width,y:e.top-n.height-this.spacing},{name:"bottom-left",x:e.left,y:e.bottom+this.spacing},{name:"bottom-right",x:e.right-n.width,y:e.bottom+this.spacing}];return o.find((t=>this.fitsInViewport(t,n)))||o[0]}fitsInViewport(t,e){if(!(t.x>=0&&t.y>=0&&t.x+e.width<=window.innerWidth&&t.y+e.height<=window.innerHeight))return!1;return 0===[[t.x,t.y],[t.x+e.width,t.y],[t.x,t.y+e.height],[t.x+e.width,t.y+e.height],[t.x+e.width/2,t.y+e.height/2]].flatMap((([t,e])=>Array.from(document.elementsFromPoint(t,e)))).filter((t=>{if(this.tooltip.contains(t)||t===this.tooltip||t.classList.contains(l)||"none"===getComputedStyle(t).pointerEvents)return!1})).length}show(t,e){this.tooltip.innerHTML=e??"",this.tooltip.classList.add(c);const n=this.calculatePosition(t);this.tooltip.style.left=`${n.x}px`,this.tooltip.style.top=`${n.y}px`,this.tooltip.dataset.position=n.name}hide(){this.tooltip.classList.remove(c),this.activeTriggerType=null}destroy(){document.removeEventListener("mouseover",this.handleMouseOver),document.removeEventListener("mouseout",this.handleMouseOut),document.removeEventListener("touchstart",this.handleMouseOver),document.removeEventListener("touchend",this.handleMouseOut),document.removeEventListener("click",this.handleClick),window.removeEventListener("resize",this.handleResize),window.removeEventListener("scroll",this.handleScroll,!0),this.tooltip.remove()}}void 0!==window&&(window.SmartTooltip=h);const u="formeo",p="3.0.4",f="formeo-sprite",m=[{name:"cssPreload",src:"//cdnjs.cloudflare.com/ajax/libs/loadCSS/2.0.1/cssrelpreload.min.js"},{name:"mutationObserver",src:"//cdn.jsdelivr.net/npm/mutationobserver-shim/dist/mutationobserver.min.js"},{name:"fetch",src:"https://unpkg.com/unfetch/polyfill"}],g=`https://cdn.jsdelivr.net/npm/formeo@${p}/dist/${f}.svg`,v=`https://draggable.github.io/formeo/assets/img/${f}.svg`,b=`https://cdn.jsdelivr.net/npm/formeo@${p}/dist/formeo.min.css`,y="control-group",w=`${u}-stage`,C=`${u}-row`,E=`${u}-column`,x=`${u}-field`,S="custom-column-widths",O="column-preset",_="resizing-columns",N=new Map([[w,C],[C,E],[E,x]]),A=["external","stages","rows","columns","fields"],j=["stage","row","column","field"].reduce(((t,e)=>({...t,[e]:e})),{}),T=[{name:"controls",className:y},{name:"stage",className:w},{name:"row",className:C},{name:"column",className:E},{name:"field",className:x}],P={controls:y,stage:w,row:C,column:E,field:x},L=Object.entries(P).reduce(((t,[e,n])=>({...t,[n]:e})),{}),D=Object.values(P),k=new RegExp(`${D.join("|")}`,"g"),$=T.map((({name:t},e,n)=>{const{name:o}=n[e+1]||{};return o&&[t,o]})).filter(Boolean),I=$.slice().map((t=>t.slice().reverse())).reverse(),M=new Map($),R=new Map(I.slice()),F=new Map([[{value:"100.0",label:"100%"}],[{value:"50.0,50.0",label:"50 | 50"},{value:"33.3,66.6",label:"33 | 66"},{value:"66.6,33.3",label:"66 | 33"}],[{value:"33.3,33.3,33.3",label:"33 | 33 | 33"},{value:"25.0,25.0,50.0",label:"25 | 25 | 50"},{value:"50.0,25.0,25.0",label:"50 | 25 | 25"},{value:"25.0,50.0,25.0",label:"25 | 50 | 25"}],[{value:"25.0,25.0,25.0,25.0",label:"25 | 25 | 25 | 25"}],[{value:"20.0,20.0,20.0,20.0,20.0",label:"20 | 20 | 20 | 20 | 20"}],[{value:"16.66,16.66,16.66,16.66,16.66,16.66",label:"16.66 | 16.66 | 16.66 | 16.66 | 16.66 | 16.66"}]].reduce(((t,e,n)=>(t.push([n,e]),t)),[])),W=[{type:"added",condition:(t,e)=>Boolean(void 0===t&&e)}],B=`${u}-formData`,z=`${u}-locale`,q=333,U=Math.round(166.5),H=Math.round(666),X="formeoSaved",V="formeoUpdated",Y="formeoOnRender",G=["label","logical","source","thenTarget","sourceProperty","comparison","target","targetProperty","assignment","value"],Z={value:"attrs.value",checked:"attrs.checked",isVisible:"config.isVisible",isNotVisible:"config.isNotVisible"},J={comparison:{equals:"==",notEquals:"!=",contains:"⊃",notContains:"!⊃"},assignment:{equals:"="},logical:{and:"&&",or:"||"},property:Z},K=/(\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b)/gi,Q=/\bcol-\w+-\d+/g,tt="f-i-";var et="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function nt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ot=function(){this.__data__=[],this.size=0};var it=function(t,e){return t===e||t!=t&&e!=e},rt=it;var st=function(t,e){for(var n=t.length;n--;)if(rt(t[n][0],e))return n;return-1},at=st,lt=Array.prototype.splice;var ct=st;var dt=st;var ht=st;var ut=ot,pt=function(t){var e=this.__data__,n=at(e,t);return!(n<0)&&(n==e.length-1?e.pop():lt.call(e,n,1),--this.size,!0)},ft=function(t){var e=this.__data__,n=ct(e,t);return n<0?void 0:e[n][1]},mt=function(t){return dt(this.__data__,t)>-1},gt=function(t,e){var n=this.__data__,o=ht(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function vt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}vt.prototype.clear=ut,vt.prototype.delete=pt,vt.prototype.get=ft,vt.prototype.has=mt,vt.prototype.set=gt;var bt=vt,yt=bt;var wt=function(){this.__data__=new yt,this.size=0};var Ct=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var Et=function(t){return this.__data__.get(t)};var xt=function(t){return this.__data__.has(t)},St="object"==typeof et&&et&&et.Object===Object&&et,Ot=St,_t="object"==typeof self&&self&&self.Object===Object&&self,Nt=Ot||_t||Function("return this")(),At=Nt.Symbol,jt=At,Tt=Object.prototype,Pt=Tt.hasOwnProperty,Lt=Tt.toString,Dt=jt?jt.toStringTag:void 0;var kt=function(t){var e=Pt.call(t,Dt),n=t[Dt];try{t[Dt]=void 0;var o=!0}catch(r){}var i=Lt.call(t);return o&&(e?t[Dt]=n:delete t[Dt]),i},$t=Object.prototype.toString;var It=kt,Mt=function(t){return $t.call(t)},Rt=At?At.toStringTag:void 0;var Ft=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Rt&&Rt in Object(t)?It(t):Mt(t)};var Wt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Bt=Ft,zt=Wt;var qt,Ut=function(t){if(!zt(t))return!1;var e=Bt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Ht=Nt["__core-js_shared__"],Xt=(qt=/[^.]+$/.exec(Ht&&Ht.keys&&Ht.keys.IE_PROTO||""))?"Symbol(src)_1."+qt:"";var Vt=function(t){return!!Xt&&Xt in t},Yt=Function.prototype.toString;var Gt=function(t){if(null!=t){try{return Yt.call(t)}catch(e){}try{return t+""}catch(e){}}return""},Zt=Ut,Jt=Vt,Kt=Wt,Qt=Gt,te=/^\[object .+?Constructor\]$/,ee=Function.prototype,ne=Object.prototype,oe=ee.toString,ie=ne.hasOwnProperty,re=RegExp("^"+oe.call(ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var se=function(t){return!(!Kt(t)||Jt(t))&&(Zt(t)?re:te).test(Qt(t))},ae=function(t,e){return null==t?void 0:t[e]};var le=function(t,e){var n=ae(t,e);return se(n)?n:void 0},ce=le(Nt,"Map"),de=le(Object,"create"),he=de;var ue=function(){this.__data__=he?he(null):{},this.size=0};var pe=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},fe=de,me=Object.prototype.hasOwnProperty;var ge=function(t){var e=this.__data__;if(fe){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return me.call(e,t)?e[t]:void 0},ve=de,be=Object.prototype.hasOwnProperty;var ye=de;var we=ue,Ce=pe,Ee=ge,xe=function(t){var e=this.__data__;return ve?void 0!==e[t]:be.call(e,t)},Se=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ye&&void 0===e?"__lodash_hash_undefined__":e,this};function Oe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Oe.prototype.clear=we,Oe.prototype.delete=Ce,Oe.prototype.get=Ee,Oe.prototype.has=xe,Oe.prototype.set=Se;var _e=Oe,Ne=bt,Ae=ce;var je=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Te=function(t,e){var n=t.__data__;return je(e)?n["string"==typeof e?"string":"hash"]:n.map},Pe=Te;var Le=Te;var De=Te;var ke=Te;var $e=function(){this.size=0,this.__data__={hash:new _e,map:new(Ae||Ne),string:new _e}},Ie=function(t){var e=Pe(this,t).delete(t);return this.size-=e?1:0,e},Me=function(t){return Le(this,t).get(t)},Re=function(t){return De(this,t).has(t)},Fe=function(t,e){var n=ke(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function We(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}We.prototype.clear=$e,We.prototype.delete=Ie,We.prototype.get=Me,We.prototype.has=Re,We.prototype.set=Fe;var Be=We,ze=bt,qe=ce,Ue=Be;var He=bt,Xe=wt,Ve=Ct,Ye=Et,Ge=xt,Ze=function(t,e){var n=this.__data__;if(n instanceof ze){var o=n.__data__;if(!qe||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ue(o)}return n.set(t,e),this.size=n.size,this};function Je(t){var e=this.__data__=new He(t);this.size=e.size}Je.prototype.clear=Xe,Je.prototype.delete=Ve,Je.prototype.get=Ye,Je.prototype.has=Ge,Je.prototype.set=Ze;var Ke=Je,Qe=le,tn=function(){try{var t=Qe(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),en=tn;var nn=function(t,e,n){"__proto__"==e&&en?en(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},on=nn,rn=it;var sn=function(t,e,n){(void 0!==n&&!rn(t[e],n)||void 0===n&&!(e in t))&&on(t,e,n)};var an,ln,cn,dn,hn,un,pn,fn=function(t){return function(e,n,o){for(var i=-1,r=Object(e),s=o(e),a=s.length;a--;){var l=s[t?a:++i];if(!1===n(r[l],l,r))break}return e}}(),mn={exports:{}};an=mn,cn=Nt,dn=(ln=mn.exports)&&!ln.nodeType&&ln,hn=dn&&an&&!an.nodeType&&an,un=hn&&hn.exports===dn?cn.Buffer:void 0,pn=un?un.allocUnsafe:void 0,an.exports=function(t,e){if(e)return t.slice();var n=t.length,o=pn?pn(n):new t.constructor(n);return t.copy(o),o};var gn=mn.exports,vn=Nt.Uint8Array,bn=vn;var yn=function(t){var e=new t.constructor(t.byteLength);return new bn(e).set(new bn(t)),e};var wn=function(t,e){var n=e?yn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var Cn=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e},En=Wt,xn=Object.create,Sn=function(){function t(){}return function(e){if(!En(e))return{};if(xn)return xn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var On=function(t,e){return function(n){return t(e(n))}},_n=On(Object.getPrototypeOf,Object),Nn=Object.prototype;var An=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Nn)},jn=Sn,Tn=_n,Pn=An;var Ln=function(t){return"function"!=typeof t.constructor||Pn(t)?{}:jn(Tn(t))};var Dn=function(t){return null!=t&&"object"==typeof t},kn=Ft,$n=Dn;var In=function(t){return $n(t)&&"[object Arguments]"==kn(t)},Mn=Dn,Rn=Object.prototype,Fn=Rn.hasOwnProperty,Wn=Rn.propertyIsEnumerable,Bn=In(function(){return arguments}())?In:function(t){return Mn(t)&&Fn.call(t,"callee")&&!Wn.call(t,"callee")},zn=Bn,qn=Array.isArray;var Un=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Hn=Ut,Xn=Un;var Vn=function(t){return null!=t&&Xn(t.length)&&!Hn(t)},Yn=Vn,Gn=Dn;var Zn=function(t){return Gn(t)&&Yn(t)},Jn={exports:{}};var Kn=function(){return!1};!function(t,e){var n=Nt,o=Kn,i=e&&!e.nodeType&&e,r=i&&t&&!t.nodeType&&t,s=r&&r.exports===i?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||o;t.exports=a}(Jn,Jn.exports);var Qn=Jn.exports,to=Ft,eo=_n,no=Dn,oo=Function.prototype,io=Object.prototype,ro=oo.toString,so=io.hasOwnProperty,ao=ro.call(Object);var lo=function(t){if(!no(t)||"[object Object]"!=to(t))return!1;var e=eo(t);if(null===e)return!0;var n=so.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ro.call(n)==ao},co=Ft,ho=Un,uo=Dn,po={};po["[object Float32Array]"]=po["[object Float64Array]"]=po["[object Int8Array]"]=po["[object Int16Array]"]=po["[object Int32Array]"]=po["[object Uint8Array]"]=po["[object Uint8ClampedArray]"]=po["[object Uint16Array]"]=po["[object Uint32Array]"]=!0,po["[object Arguments]"]=po["[object Array]"]=po["[object ArrayBuffer]"]=po["[object Boolean]"]=po["[object DataView]"]=po["[object Date]"]=po["[object Error]"]=po["[object Function]"]=po["[object Map]"]=po["[object Number]"]=po["[object Object]"]=po["[object RegExp]"]=po["[object Set]"]=po["[object String]"]=po["[object WeakMap]"]=!1;var fo=function(t){return uo(t)&&ho(t.length)&&!!po[co(t)]};var mo=function(t){return function(e){return t(e)}},go={exports:{}};!function(t,e){var n=St,o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,r=i&&i.exports===o&&n.process,s=function(){try{var t=i&&i.require&&i.require("util").types;return t||r&&r.binding&&r.binding("util")}catch(e){}}();t.exports=s}(go,go.exports);var vo=go.exports,bo=fo,yo=mo,wo=vo&&vo.isTypedArray,Co=wo?yo(wo):bo;var Eo=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},xo=nn,So=it,Oo=Object.prototype.hasOwnProperty;var _o=function(t,e,n){var o=t[e];Oo.call(t,e)&&So(o,n)&&(void 0!==n||e in t)||xo(t,e,n)},No=_o,Ao=nn;var jo=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var a=e[r],l=o?o(n[a],t[a],a,n,t):void 0;void 0===l&&(l=t[a]),i?Ao(n,a,l):No(n,a,l)}return n};var To=/^(?:0|[1-9]\d*)$/;var Po=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&To.test(t))&&t>-1&&t%1==0&&t<e},Lo=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o},Do=zn,ko=qn,$o=Qn,Io=Po,Mo=Co,Ro=Object.prototype.hasOwnProperty;var Fo=function(t,e){var n=ko(t),o=!n&&Do(t),i=!n&&!o&&$o(t),r=!n&&!o&&!i&&Mo(t),s=n||o||i||r,a=s?Lo(t.length,String):[],l=a.length;for(var c in t)!e&&!Ro.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Io(c,l))||a.push(c);return a};var Wo=Wt,Bo=An,zo=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},qo=Object.prototype.hasOwnProperty;var Uo=Fo,Ho=function(t){if(!Wo(t))return zo(t);var e=Bo(t),n=[];for(var o in t)("constructor"!=o||!e&&qo.call(t,o))&&n.push(o);return n},Xo=Vn;var Vo=function(t){return Xo(t)?Uo(t,!0):Ho(t)},Yo=jo,Go=Vo;var Zo=sn,Jo=gn,Ko=wn,Qo=Cn,ti=Ln,ei=zn,ni=qn,oi=Zn,ii=Qn,ri=Ut,si=Wt,ai=lo,li=Co,ci=Eo,di=function(t){return Yo(t,Go(t))};var hi=Ke,ui=sn,pi=fn,fi=function(t,e,n,o,i,r,s){var a=ci(t,n),l=ci(e,n),c=s.get(l);if(c)Zo(t,n,c);else{var d=r?r(a,l,n+"",t,e,s):void 0,h=void 0===d;if(h){var u=ni(l),p=!u&&ii(l),f=!u&&!p&&li(l);d=l,u||p||f?ni(a)?d=a:oi(a)?d=Qo(a):p?(h=!1,d=Jo(l,!0)):f?(h=!1,d=Ko(l,!0)):d=[]:ai(l)||ei(l)?(d=a,ei(a)?d=di(a):si(a)&&!ri(a)||(d=ti(l))):h=!1}h&&(s.set(l,d),i(d,l,o,r,s),s.delete(l)),Zo(t,n,d)}},mi=Wt,gi=Vo,vi=Eo;var bi=function t(e,n,o,i,r){e!==n&&pi(n,(function(s,a){if(r||(r=new hi),mi(s))fi(e,n,a,o,t,i,r);else{var l=i?i(vi(e,a),s,a+"",e,n,r):void 0;void 0===l&&(l=s),ui(e,a,l)}}),gi)};var yi=function(t){return t};var wi=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},Ci=Math.max;var Ei=function(t,e,n){return e=Ci(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=Ci(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=o[i];return a[e]=n(s),wi(t,this,a)}};var xi=function(t){return function(){return t}},Si=tn,Oi=Si?function(t,e){return Si(t,"toString",{configurable:!0,enumerable:!1,value:xi(e),writable:!0})}:yi,_i=Date.now;var Ni=function(t){var e=0,n=0;return function(){var o=_i(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},Ai=Ni(Oi),ji=yi,Ti=Ei,Pi=Ai;var Li=it,Di=Vn,ki=Po,$i=Wt;var Ii=function(t,e){return Pi(Ti(t,e,ji),t+"")},Mi=function(t,e,n){if(!$i(n))return!1;var o=typeof e;return!!("number"==o?Di(n)&&ki(e,n.length):"string"==o&&e in n)&&Li(n[e],t)};var Ri=bi;const Fi=nt(function(t){return Ii((function(e,n){var o=-1,i=n.length,r=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(r=t.length>3&&"function"==typeof r?(i--,r):void 0,s&&Mi(n[0],n[1],s)&&(r=i<3?void 0:r,i=1),e=Object(e);++o<i;){var a=n[o];a&&t(e,a,o,r)}return e}))}((function(t,e,n,o){Ri(t,e,n,o)}))),Wi=()=>crypto.randomUUID(),Bi=(t="",e)=>{if(!e)return!1;const n=/[|\\{}()[\]^*$+?.]/g;let o="string"==typeof e?[e]:e;o=o.map((t=>"*"===t?"":t.replace(n,"\\$&")));let i=!0;return o.length&&(i=!new RegExp(o.join("|"),"i").exec(t)),i},zi=t=>{var e;const n=null==(e=t.className)?void 0:e.match(k);return n&&L[n[0]]},qi=t=>Array.from(new Set(t)),Ui=t=>{let e;if(t){const{attrs:n={}}=t;e=n.id||t.id||Wi(),t.id=e}else e=Wi();return e},Hi=(t,e)=>Fi({},t,e,((t,e)=>Array.isArray(t)?null!=e?qi(t.concat(e)):e:Array.isArray(e)?null!=t?qi(e.concat(t)):e:void 0)),Xi=t=>{let e;if(null===t||!("object"==typeof t)||t instanceof Promise)return t;if(t instanceof Date)return e=new Date,e.setTime(t.getTime()),e;if(Array.isArray(t)){e=[];for(let n=0,o=t.length;n<o;n++)e[n]=Xi(t[n]);return e}if(t instanceof Object){e={};for(const n in t)Object.hasOwn(t,n)&&(e[n]=Xi(t[n]));return e}throw new Error("Unable to copy Object, type not supported.")},Vi=(t,e)=>t/e*100,Yi=t=>`${t.toString()}%`,Gi=Object.create(null,{get:{value:t=>{var e;const n=null==(e=window.sessionStorage)?void 0:e.getItem(t);try{return JSON.parse(n)}catch(o){return n}}},set:{value:(t,e)=>{var n;try{return null==(n=window.sessionStorage)?void 0:n.setItem(t,JSON.stringify(e))}catch(o){}}}}),Zi=t=>A.some((e=>new RegExp(`^${e}.`).test(t))),Ji=t=>t.startsWith("external");function Ki(t,e=H){let n=0;return function(...o){const i=Date.now();i-n>=e&&(n=i,t.apply(this,o))}}function Qi(t){return t}function tr(){}function er(t=Object.create(null)){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return Object.create(null)}return t}var nr=Ft,or=Dn;var ir=function(t){return"symbol"==typeof t||or(t)&&"[object Symbol]"==nr(t)},rr=qn,sr=ir,ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lr=/^\w*$/;var cr=function(t,e){if(rr(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!sr(t))||(lr.test(t)||!ar.test(t)||null!=e&&t in Object(e))},dr=Be;function hr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(hr.Cache||dr),n}hr.Cache=dr;var ur=hr;var pr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fr=/\\(\\)?/g,mr=function(t){var e=ur(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(pr,(function(t,n,o,i){e.push(o?i.replace(fr,"$1"):n||t)})),e}));var gr=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i},vr=qn,br=ir,yr=At?At.prototype:void 0,wr=yr?yr.toString:void 0;var Cr=function t(e){if("string"==typeof e)return e;if(vr(e))return gr(e,t)+"";if(br(e))return wr?wr.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},Er=Cr;var xr=qn,Sr=cr,Or=mr,_r=function(t){return null==t?"":Er(t)};var Nr=function(t,e){return xr(t)?t:Sr(t,e)?[t]:Or(_r(t))},Ar=ir;var jr=function(t){if("string"==typeof t||Ar(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},Tr=_o,Pr=Nr,Lr=Po,Dr=Wt,kr=jr;var $r=function(t,e,n,o){if(!Dr(t))return t;for(var i=-1,r=(e=Pr(e,t)).length,s=r-1,a=t;null!=a&&++i<r;){var l=kr(e[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(i!=s){var d=a[l];void 0===(c=o?o(d,l,a):void 0)&&(c=Dr(d)?d:Lr(e[i+1])?[]:{})}Tr(a,l,c),a=a[l]}return t};const Ir=nt((function(t,e,n){return null==t?t:$r(t,e,n)}));var Mr=Nr,Rr=jr;var Fr=function(t,e){for(var n=0,o=(e=Mr(e,t)).length;null!=t&&n<o;)t=t[Rr(e[n++])];return n&&n==o?t:void 0};const Wr=nt((function(t,e,n){var o=null==t?void 0:Fr(t,e);return void 0===o?n:o})),Br=Ir,zr=t=>Number.isInteger(Number(t)),qr=(t,e)=>{const n=e||t.parentElement;return Array.prototype.slice.call(n.childNodes).indexOf(t)},Ur=(t,e,n)=>{const o=n.split("||"),i=qi(e).map((e=>t.find((t=>{const n=o.find((e=>!!Wr(t,e)));return n&&Wr(t,n)===e})))).filter(Boolean).concat(t);return qi(i)},Hr=(t,e,n)=>{for(let o=0;o<t.length;o++)e.call(n,t[o],o)},Xr=(t,e)=>{const n=[];return Hr(t,((t,o)=>n.push(e(t,o)))),n},Vr={},Yr=t=>t.replace(/\b\w/g,(t=>t.toUpperCase())),Gr=()=>-1!==window.navigator.userAgent.indexOf("MSIE "),Zr={capitalize:Yr,safeAttrName:t=>{if(Vr[t])return Vr[t];const e=({className:"class"}[t]||t).replace(/^\d+/,"").replace(/[^a-zA-Z0-9-:]/g,"");return Vr[t]=e,e},forEach:Hr,copyObj:t=>window.JSON.parse(window.JSON.stringify(t)),map:Xr,subtract:(t,e)=>e.filter((e=>!~t.indexOf(e))),indexOfNode:qr,isInt:zr,get:Wr,orderObjectsBy:Ur,isIE:Gr},Jr={getStyle:(t,e=!1)=>{let n;return window.getComputedStyle?n=window.getComputedStyle(t,null):t.currentStyle&&(n=t.currentStyle),e?n[e]:n},fadeOut:(t,e=250)=>{const n=1/(e/60);t.style.opacity=1,function e(){const o=Number(t.style.opacity)-n;o>0?(t.style.opacity=o,window.requestAnimationFrame(e)):t.remove()}()},slideDown:(t,e=250,n=!1)=>{t.style.display="block";const o=Jr.getStyle(t),i=parseInt(o.height,10),r=i/(e/60);t.style.height="0px",function e(){const o=parseFloat(t.style.height),s=o+r;o<i?(t.style.height=s+"px",window.requestAnimationFrame(e)):(t.style.height="auto",n&&n(t))}()},slideUp:(t,e=250,n=!1)=>{const o=Jr.getStyle(t),i=parseInt(o.height),r=o.overflow;t.style.overflow="hidden",t.style.height=i+"px";const s=o.minHeight;t.style.minHeight="auto";const a=parseFloat(i/(e/60)).toFixed(2);!function e(){const o=parseInt(t.style.height,10)-a;o>0?(t.style.height=o+"px",window.requestAnimationFrame(e)):(t.style.overflow=r,t.style.display="none",t.style.minHeight=s,delete t.style.height,n&&n(t))}()},slideToggle:(t,e=250,n="none"===Jr.getStyle(t,"display"))=>{n?Jr.slideDown(t,e):Jr.slideUp(t,e)}},Kr="no-transition",Qr={debug:!1,bubbles:!0,formeoLoaded:t=>{},onAdd:()=>{},onUpdate:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onUpdateStage:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onUpdateRow:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onUpdateColumn:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onUpdateField:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onRender:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onSave:t=>{},confirmClearAll:t=>{window.confirm(t.confirmationMessage)&&t.clearAllAction(t)}},ts=({src:t,...e},n=V)=>{var o,i;const r=new window.CustomEvent(n,{detail:e,bubbles:(null==(o=es.opts)?void 0:o.debug)||(null==(i=es.opts)?void 0:i.bubbles)});return r.data=(t||document).dispatchEvent(r),r},es={init:function(t){return this.opts={...Qr,...t},this},formeoSaved:t=>ts(t,X),formeoUpdated:t=>ts(t,V),formeoCleared:t=>ts(t,"formeoCleared"),formeoOnRender:t=>ts(t,Y),formeoConditionUpdated:t=>ts(t,"formeoConditionUpdated")},ns=Ki((()=>{es.opts.onUpdate({timeStamp:window.performance.now(),type:V,detail:Fd.formData})}),U);let os;document.addEventListener(V,ns),document.addEventListener("formeoUpdatedStage",(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener("formeoUpdatedRow",(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener("formeoUpdatedColumn",(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener("formeoUpdatedField",(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener(Y,(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onRender({timeStamp:e,type:n,detail:o})})),document.addEventListener("confirmClearAll",(t=>{t={timeStamp:t.timeStamp,type:t.type,confirmationMessage:t.detail.confirmationMessage,clearAllAction:t.detail.clearAllAction,btnCoords:t.detail.btnCoords},es.opts.confirmClearAll(t)})),document.addEventListener(X,(({timeStamp:t,type:e,detail:{formData:n}})=>{const o={timeStamp:t,type:e,formData:n};es.opts.onSave(o)})),document.addEventListener("formeoLoaded",(t=>{es.opts.formeoLoaded(t.detail.formeo)})),window.addEventListener("resize",(function(){os=os||window.requestAnimationFrame((()=>{os=!1;for(const t of Object.values(kd.data))t.dom.classList.add(Kr),Id.dom.classList.add(Kr),Id.panels.nav.refresh(),t.refreshFieldPanels()}))}));var is=Be,rs=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ss=function(t){return this.__data__.has(t)};function as(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new is;++e<n;)this.add(t[e])}as.prototype.add=as.prototype.push=rs,as.prototype.has=ss;var ls=as,cs=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1},ds=function(t,e){return t.has(e)};var hs=function(t,e,n,o,i,r){var s=1&n,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=r.get(t),d=r.get(e);if(c&&d)return c==e&&d==t;var h=-1,u=!0,p=2&n?new ls:void 0;for(r.set(t,e),r.set(e,t);++h<a;){var f=t[h],m=e[h];if(o)var g=s?o(m,f,h,e,t,r):o(f,m,h,t,e,r);if(void 0!==g){if(g)continue;u=!1;break}if(p){if(!cs(e,(function(t,e){if(!ds(p,e)&&(f===t||i(f,t,n,o,r)))return p.push(e)}))){u=!1;break}}else if(f!==m&&!i(f,m,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};var us=vn,ps=it,fs=hs,ms=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n},gs=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},vs=At?At.prototype:void 0,bs=vs?vs.valueOf:void 0;var ys=function(t,e,n,o,i,r,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new us(t),new us(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ps(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=ms;case"[object Set]":var l=1&o;if(a||(a=gs),t.size!=e.size&&!l)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var d=fs(a(t),a(e),o,i,r,s);return s.delete(t),d;case"[object Symbol]":if(bs)return bs.call(t)==bs.call(e)}return!1};var ws=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t},Cs=qn;var Es=function(t,e,n){var o=e(t);return Cs(t)?o:ws(o,n(t))};var xs=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}return r},Ss=function(){return[]},Os=Object.prototype.propertyIsEnumerable,_s=Object.getOwnPropertySymbols,Ns=_s?function(t){return null==t?[]:(t=Object(t),xs(_s(t),(function(e){return Os.call(t,e)})))}:Ss,As=On(Object.keys,Object),js=An,Ts=As,Ps=Object.prototype.hasOwnProperty;var Ls=Fo,Ds=function(t){if(!js(t))return Ts(t);var e=[];for(var n in Object(t))Ps.call(t,n)&&"constructor"!=n&&e.push(n);return e},ks=Vn;var $s=Es,Is=Ns,Ms=function(t){return ks(t)?Ls(t):Ds(t)};var Rs=function(t){return $s(t,Ms,Is)},Fs=Object.prototype.hasOwnProperty;var Ws=function(t,e,n,o,i,r){var s=1&n,a=Rs(t),l=a.length;if(l!=Rs(e).length&&!s)return!1;for(var c=l;c--;){var d=a[c];if(!(s?d in e:Fs.call(e,d)))return!1}var h=r.get(t),u=r.get(e);if(h&&u)return h==e&&u==t;var p=!0;r.set(t,e),r.set(e,t);for(var f=s;++c<l;){var m=t[d=a[c]],g=e[d];if(o)var v=s?o(g,m,d,e,t,r):o(m,g,d,t,e,r);if(!(void 0===v?m===g||i(m,g,n,o,r):v)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var b=t.constructor,y=e.constructor;b==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(p=!1)}return r.delete(t),r.delete(e),p},Bs=le(Nt,"DataView"),zs=ce,qs=le(Nt,"Promise"),Us=le(Nt,"Set"),Hs=le(Nt,"WeakMap"),Xs=Ft,Vs=Gt,Ys="[object Map]",Gs="[object Promise]",Zs="[object Set]",Js="[object WeakMap]",Ks="[object DataView]",Qs=Vs(Bs),ta=Vs(zs),ea=Vs(qs),na=Vs(Us),oa=Vs(Hs),ia=Xs;(Bs&&ia(new Bs(new ArrayBuffer(1)))!=Ks||zs&&ia(new zs)!=Ys||qs&&ia(qs.resolve())!=Gs||Us&&ia(new Us)!=Zs||Hs&&ia(new Hs)!=Js)&&(ia=function(t){var e=Xs(t),n="[object Object]"==e?t.constructor:void 0,o=n?Vs(n):"";if(o)switch(o){case Qs:return Ks;case ta:return Ys;case ea:return Gs;case na:return Zs;case oa:return Js}return e});var ra=Ke,sa=hs,aa=ys,la=Ws,ca=ia,da=qn,ha=Qn,ua=Co,pa="[object Arguments]",fa="[object Array]",ma="[object Object]",ga=Object.prototype.hasOwnProperty;var va=function(t,e,n,o,i,r){var s=da(t),a=da(e),l=s?fa:ca(t),c=a?fa:ca(e),d=(l=l==pa?ma:l)==ma,h=(c=c==pa?ma:c)==ma,u=l==c;if(u&&ha(t)){if(!ha(e))return!1;s=!0,d=!1}if(u&&!d)return r||(r=new ra),s||ua(t)?sa(t,e,n,o,i,r):aa(t,e,l,n,o,i,r);if(!(1&n)){var p=d&&ga.call(t,"__wrapped__"),f=h&&ga.call(e,"__wrapped__");if(p||f){var m=p?t.value():t,g=f?e.value():e;return r||(r=new ra),i(m,g,n,o,r)}}return!!u&&(r||(r=new ra),la(t,e,n,o,i,r))},ba=Dn;var ya=function t(e,n,o,i,r){return e===n||(null==e||null==n||!ba(e)&&!ba(n)?e!=e&&n!=n:va(e,n,o,i,t,r))},wa=ya;const Ca=nt((function(t,e){return wa(t,e)}));class Ea{constructor(t,e=Object.create(null)){n(this,"toJSON",((t,e)=>JSON.stringify(t,null,e))),n(this,"get",(t=>Wr(this.data,t))),n(this,"getChangeType",((t,e)=>{const n=W.find((({condition:n})=>n(t,e)))||{type:"unknown"};return n.desc="added"===n.type?`${t} to ${e}`:e,n})),n(this,"add",((t,e=Object.create(null))=>{const{id:n}=e,o=t||n||Ui();return this.set(o,e)})),n(this,"remove",(t=>{const e=t.split("."),n=e.pop(),o=this.get(e);return Array.isArray(o)?o.splice(Number(n),1):delete o[n],o})),n(this,"getData",(()=>Object.entries(this.data).reduce(((t,[e,n])=>(t[e]=(null==n?void 0:n.data)?n.getData():n,t)),{}))),n(this,"setCallbacks",{}),n(this,"configVal",Object.create(null)),this.name=t,this.data=e,this.dataPath=""}get size(){return Object.keys(this.data).length}get js(){return this.data}get json(){return this.data}set(t,e){const n=Wr(this.data,t);if(Ca(n,e))return this.data;const o=Br(this.data,t,e),i=Array.isArray(t)?t.join("."):t,r=Object.keys(this.setCallbacks).filter((t=>new RegExp(t).test(i))),s={newVal:e,oldVal:n,path:t};for(const a of r)for(const t of this.setCallbacks[a])t(s);if(!this.disableEvents){const i=this.getChangeType(n,e),r={entity:this,dataPath:this.dataPath.replace(/\.+$/,""),changePath:this.dataPath+t,value:e,data:o,change:`${i.type}: ${i.desc}`,src:this.dom};n&&(r.previousValue=n),es.formeoUpdated(r)}return o}addSetCallback(t,e){this.setCallbacks[t]?this.setCallbacks[t].push(e):this.setCallbacks[t]=[e]}removeSetCallback(t,e){this.setCallbacks[t]=this.setCallbacks[t].filter((t=>t!==e))}empty(){this.data=Object.create(null)}}
9
9
  /**!
10
10
  * Sortable 1.15.3
11
11
  * @author RubaXa <trash@rubaxa.org>
@@ -1,11 +1,11 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 3.0.3
4
+ Version: 3.0.4
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7
 
8
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).formeo={})}(this,(function(t){"use strict";var e=Object.defineProperty,n=(t,n,o)=>((t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o)(t,"symbol"!=typeof n?n+"":n,o);const o={extension:".lang",location:"assets/lang/",langs:["en-US"],locale:"en-US",override:{}};class i{constructor(t=o){this.langs=Object.create(null),this.loaded=[],this.processConfig(t)}processConfig(t){const{location:e,...n}={...o,...t},i=e.replace(/\/?$/,"/");this.config={location:i,...n};const{override:r,preloaded:s={}}=this.config,a=Object.entries(this.langs).concat(Object.entries(r||s));this.langs=a.reduce(((t,[e,n])=>(t[e]=this.applyLanguage(e,n),t)),{}),this.locale=this.config.locale||this.config.langs[0]}init(t){return this.processConfig({...this.config,...t}),this.setCurrent(this.locale)}addLanguage(t,e={}){e="string"==typeof e?i.processFile(e):e,this.applyLanguage(t,e),this.config.langs.push("locale")}getValue(t,e=this.locale){var n;return(null==(n=this.langs[e])?void 0:n[t])||this.getFallbackValue(t)}getFallbackValue(t){const e=Object.values(this.langs).find((e=>e[t]));return null==e?void 0:e[t]}makeSafe(t){const e={"{":"\\{","}":"\\}","|":"\\|"};return t=t.replace(/[{}|]/g,(t=>e[t])),new RegExp(t,"g")}put(t,e){return this.current[t]=e,e}get(t,e){const n=this;let o=this.getValue(t);if(!o)return;const i=o.match(/\{[^}]+?\}/g);if(e&&i)if("object"==typeof e)for(const r of i){const t=r.substring(1,r.length-1);o=o.replace(n.makeSafe(r),e[t]||"")}else o=o.replace(/\{[^}]+?\}/g,e);return o}static processFile(t){return i.fromFile(t.replace(/\n\n/g,"\n"))}static fromFile(t){const e=t.split("\n"),n={};for(let o,i=0;i<e.length;i++){o=/^(.+?) *?= *?([^\n]+)/.exec(e[i]),o&&(n[o[1]]=o[2].replace(/(^\s+|\s+$)/g,""))}return n}loadLang(t,e=!0){const n=this;return new Promise((function(o,r){if(-1!==n.loaded.indexOf(t)&&e)return n.applyLanguage(n.langs[t]),o(n.langs[t]);return async function(t){try{const e=await fetch(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const n=t.endsWith(".lang")?"text":"json";return await e[n]()}catch(e){throw e}}([n.config.location,t,n.config.extension].join("")).then((e=>{const r=i.processFile(e);return n.applyLanguage(t,r),n.loaded.push(t),o(n.langs[t])})).catch((e=>{const i=n.applyLanguage(t);o(i)}))}))}applyLanguage(t,e={}){const n=this.config.override[t]||{},o=this.langs[t]||{};return this.langs[t]={...o,...e,...n},this.langs[t]}get getLangs(){return this.config.langs}async setCurrent(t="en-US"){return await this.loadLang(t),this.locale=t,this.current=this.langs[t],this.current}}const r=new i;!function(){try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('._3x4ZIcu-{position:absolute;background:#1f2937;color:#fff;padding:.75rem;border-radius:.375rem;max-width:200px;z-index:50;visibility:hidden;opacity:0;transition:opacity .2s;pointer-events:none;left:0;top:0}._3x4ZIcu-.JIt36hCJ{visibility:visible;opacity:1;pointer-events:all}._3x4ZIcu-:before{content:"";position:absolute;width:0;height:0;border:6px solid transparent}._3x4ZIcu-[data-position=top]:before{border-top-color:#1f2937;bottom:-12px;left:50%;transform:translate(-50%)}._3x4ZIcu-[data-position=bottom]:before{border-bottom-color:#1f2937;top:-12px;left:50%;transform:translate(-50%)}._3x4ZIcu-[data-position=left]:before{border-left-color:#1f2937;right:-12px;top:50%;transform:translateY(-50%)}._3x4ZIcu-[data-position=right]:before{border-right-color:#1f2937;left:-12px;top:50%;transform:translateY(-50%)}._3x4ZIcu-[data-position=top-left]:before{border-top-color:#1f2937;bottom:-12px;left:12px;transform:none}._3x4ZIcu-[data-position=top-right]:before{border-top-color:#1f2937;bottom:-12px;right:12px;left:auto;transform:none}._3x4ZIcu-[data-position=bottom-left]:before{border-bottom-color:#1f2937;top:-12px;left:12px;transform:none}._3x4ZIcu-[data-position=bottom-right]:before{border-bottom-color:#1f2937;top:-12px;right:12px;left:auto;transform:none}')),document.head.appendChild(t)}}catch(e){}}();var s=Object.defineProperty,a=(t,e,n)=>((t,e,n)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);const l="_3x4ZIcu-",c="JIt36hCJ",d={triggerName:"tooltip"};class h{constructor(t=d){a(this,"triggerName"),a(this,"tooltip"),a(this,"activeTriggerType",null),a(this,"spacing",12),a(this,"handleClick",(t=>{const e=this.triggerName,n=t.target.closest(`[${e}][${e}-type="click"]`);if(n)if(this.isVisible())this.hide();else{const t=n.getAttribute(`${e}`);this.show(n,t),this.activeTriggerType="click"}else this.hide()})),a(this,"handleMouseOver",(t=>{const e=this.triggerName,n=t.target.closest(`[${e}]`);if("click"!==this.activeTriggerType&&"click"!==(null==n?void 0:n.getAttribute(`${e}-type`))){const t=null==n?void 0:n.getAttribute(`${e}`);t&&(this.show(n,t),this.activeTriggerType="hover")}})),a(this,"handleMouseOut",(t=>{const e=this.triggerName,n=t.target.closest(`[${e}]`);"click"!==this.activeTriggerType&&"click"!==(null==n?void 0:n.getAttribute(`${e}-type`))&&this.hide()})),a(this,"handleResize",(()=>{this.isVisible()&&this.hide()})),a(this,"handleScroll",(()=>{this.isVisible()&&this.hide()})),this.triggerName=`data-${t.triggerName}`,this.tooltip=document.createElement("div"),this.tooltip.className=`d-tooltip ${l}`,document.body.appendChild(this.tooltip),this.setupEventListeners()}setupEventListeners(){document.addEventListener("mouseover",this.handleMouseOver),document.addEventListener("mouseout",this.handleMouseOut),document.addEventListener("touchstart",this.handleMouseOver),document.addEventListener("touchend",this.handleMouseOut),document.addEventListener("click",this.handleClick),window.addEventListener("resize",this.handleResize),window.addEventListener("scroll",this.handleScroll,!0)}isVisible(){return this.tooltip.classList.contains(c)}calculatePosition(t){const e=t.getBoundingClientRect(),n=this.tooltip.getBoundingClientRect(),o=[{name:"top",x:e.left+(e.width-n.width)/2,y:e.top-n.height-this.spacing},{name:"bottom",x:e.left+(e.width-n.width)/2,y:e.bottom+this.spacing},{name:"left",x:e.left-n.width-this.spacing,y:e.top+(e.height-n.height)/2},{name:"right",x:e.right+this.spacing,y:e.top+(e.height-n.height)/2},{name:"top-left",x:e.left,y:e.top-n.height-this.spacing},{name:"top-right",x:e.right-n.width,y:e.top-n.height-this.spacing},{name:"bottom-left",x:e.left,y:e.bottom+this.spacing},{name:"bottom-right",x:e.right-n.width,y:e.bottom+this.spacing}];return o.find((t=>this.fitsInViewport(t,n)))||o[0]}fitsInViewport(t,e){if(!(t.x>=0&&t.y>=0&&t.x+e.width<=window.innerWidth&&t.y+e.height<=window.innerHeight))return!1;return 0===[[t.x,t.y],[t.x+e.width,t.y],[t.x,t.y+e.height],[t.x+e.width,t.y+e.height],[t.x+e.width/2,t.y+e.height/2]].flatMap((([t,e])=>Array.from(document.elementsFromPoint(t,e)))).filter((t=>{if(this.tooltip.contains(t)||t===this.tooltip||t.classList.contains(l)||"none"===getComputedStyle(t).pointerEvents)return!1})).length}show(t,e){this.tooltip.innerHTML=e??"",this.tooltip.classList.add(c);const n=this.calculatePosition(t);this.tooltip.style.left=`${n.x}px`,this.tooltip.style.top=`${n.y}px`,this.tooltip.dataset.position=n.name}hide(){this.tooltip.classList.remove(c),this.activeTriggerType=null}destroy(){document.removeEventListener("mouseover",this.handleMouseOver),document.removeEventListener("mouseout",this.handleMouseOut),document.removeEventListener("touchstart",this.handleMouseOver),document.removeEventListener("touchend",this.handleMouseOut),document.removeEventListener("click",this.handleClick),window.removeEventListener("resize",this.handleResize),window.removeEventListener("scroll",this.handleScroll,!0),this.tooltip.remove()}}void 0!==window&&(window.SmartTooltip=h);const u="formeo",p="3.0.3",f="formeo-sprite",m=[{name:"cssPreload",src:"//cdnjs.cloudflare.com/ajax/libs/loadCSS/2.0.1/cssrelpreload.min.js"},{name:"mutationObserver",src:"//cdn.jsdelivr.net/npm/mutationobserver-shim/dist/mutationobserver.min.js"},{name:"fetch",src:"https://unpkg.com/unfetch/polyfill"}],g=`https://cdn.jsdelivr.net/npm/formeo@${p}/dist/${f}.svg`,v=`https://draggable.github.io/formeo/assets/img/${f}.svg`,b=`https://cdn.jsdelivr.net/npm/formeo@${p}/dist/formeo.min.css`,y="control-group",w=`${u}-stage`,C=`${u}-row`,E=`${u}-column`,x=`${u}-field`,S="custom-column-widths",O="column-preset",_="resizing-columns",N=new Map([[w,C],[C,E],[E,x]]),A=["external","stages","rows","columns","fields"],j=["stage","row","column","field"].reduce(((t,e)=>({...t,[e]:e})),{}),T=[{name:"controls",className:y},{name:"stage",className:w},{name:"row",className:C},{name:"column",className:E},{name:"field",className:x}],P={controls:y,stage:w,row:C,column:E,field:x},L=Object.entries(P).reduce(((t,[e,n])=>({...t,[n]:e})),{}),D=Object.values(P),k=new RegExp(`${D.join("|")}`,"g"),$=T.map((({name:t},e,n)=>{const{name:o}=n[e+1]||{};return o&&[t,o]})).filter(Boolean),I=$.slice().map((t=>t.slice().reverse())).reverse(),M=new Map($),R=new Map(I.slice()),F=new Map([[{value:"100.0",label:"100%"}],[{value:"50.0,50.0",label:"50 | 50"},{value:"33.3,66.6",label:"33 | 66"},{value:"66.6,33.3",label:"66 | 33"}],[{value:"33.3,33.3,33.3",label:"33 | 33 | 33"},{value:"25.0,25.0,50.0",label:"25 | 25 | 50"},{value:"50.0,25.0,25.0",label:"50 | 25 | 25"},{value:"25.0,50.0,25.0",label:"25 | 50 | 25"}],[{value:"25.0,25.0,25.0,25.0",label:"25 | 25 | 25 | 25"}],[{value:"20.0,20.0,20.0,20.0,20.0",label:"20 | 20 | 20 | 20 | 20"}],[{value:"16.66,16.66,16.66,16.66,16.66,16.66",label:"16.66 | 16.66 | 16.66 | 16.66 | 16.66 | 16.66"}]].reduce(((t,e,n)=>(t.push([n,e]),t)),[])),W=[{type:"added",condition:(t,e)=>Boolean(void 0===t&&e)}],B=`${u}-formData`,z=`${u}-locale`,q=333,U=Math.round(166.5),H=Math.round(666),X="formeoSaved",V="formeoUpdated",Y="formeoOnRender",G=["label","logical","source","thenTarget","sourceProperty","comparison","target","targetProperty","assignment","value"],Z={value:"attrs.value",checked:"attrs.checked",isVisible:"config.isVisible",isNotVisible:"config.isNotVisible"},J={comparison:{equals:"==",notEquals:"!=",contains:"⊃",notContains:"!⊃"},assignment:{equals:"="},logical:{and:"&&",or:"||"},property:Z},K=/(\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b)/gi,Q=/\bcol-\w+-\d+/g,tt="f-i-";var et="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function nt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ot=function(){this.__data__=[],this.size=0};var it=function(t,e){return t===e||t!=t&&e!=e},rt=it;var st=function(t,e){for(var n=t.length;n--;)if(rt(t[n][0],e))return n;return-1},at=st,lt=Array.prototype.splice;var ct=st;var dt=st;var ht=st;var ut=ot,pt=function(t){var e=this.__data__,n=at(e,t);return!(n<0)&&(n==e.length-1?e.pop():lt.call(e,n,1),--this.size,!0)},ft=function(t){var e=this.__data__,n=ct(e,t);return n<0?void 0:e[n][1]},mt=function(t){return dt(this.__data__,t)>-1},gt=function(t,e){var n=this.__data__,o=ht(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function vt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}vt.prototype.clear=ut,vt.prototype.delete=pt,vt.prototype.get=ft,vt.prototype.has=mt,vt.prototype.set=gt;var bt=vt,yt=bt;var wt=function(){this.__data__=new yt,this.size=0};var Ct=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var Et=function(t){return this.__data__.get(t)};var xt=function(t){return this.__data__.has(t)},St="object"==typeof et&&et&&et.Object===Object&&et,Ot=St,_t="object"==typeof self&&self&&self.Object===Object&&self,Nt=Ot||_t||Function("return this")(),At=Nt.Symbol,jt=At,Tt=Object.prototype,Pt=Tt.hasOwnProperty,Lt=Tt.toString,Dt=jt?jt.toStringTag:void 0;var kt=function(t){var e=Pt.call(t,Dt),n=t[Dt];try{t[Dt]=void 0;var o=!0}catch(r){}var i=Lt.call(t);return o&&(e?t[Dt]=n:delete t[Dt]),i},$t=Object.prototype.toString;var It=kt,Mt=function(t){return $t.call(t)},Rt=At?At.toStringTag:void 0;var Ft=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Rt&&Rt in Object(t)?It(t):Mt(t)};var Wt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Bt=Ft,zt=Wt;var qt,Ut=function(t){if(!zt(t))return!1;var e=Bt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Ht=Nt["__core-js_shared__"],Xt=(qt=/[^.]+$/.exec(Ht&&Ht.keys&&Ht.keys.IE_PROTO||""))?"Symbol(src)_1."+qt:"";var Vt=function(t){return!!Xt&&Xt in t},Yt=Function.prototype.toString;var Gt=function(t){if(null!=t){try{return Yt.call(t)}catch(e){}try{return t+""}catch(e){}}return""},Zt=Ut,Jt=Vt,Kt=Wt,Qt=Gt,te=/^\[object .+?Constructor\]$/,ee=Function.prototype,ne=Object.prototype,oe=ee.toString,ie=ne.hasOwnProperty,re=RegExp("^"+oe.call(ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var se=function(t){return!(!Kt(t)||Jt(t))&&(Zt(t)?re:te).test(Qt(t))},ae=function(t,e){return null==t?void 0:t[e]};var le=function(t,e){var n=ae(t,e);return se(n)?n:void 0},ce=le(Nt,"Map"),de=le(Object,"create"),he=de;var ue=function(){this.__data__=he?he(null):{},this.size=0};var pe=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},fe=de,me=Object.prototype.hasOwnProperty;var ge=function(t){var e=this.__data__;if(fe){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return me.call(e,t)?e[t]:void 0},ve=de,be=Object.prototype.hasOwnProperty;var ye=de;var we=ue,Ce=pe,Ee=ge,xe=function(t){var e=this.__data__;return ve?void 0!==e[t]:be.call(e,t)},Se=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ye&&void 0===e?"__lodash_hash_undefined__":e,this};function Oe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Oe.prototype.clear=we,Oe.prototype.delete=Ce,Oe.prototype.get=Ee,Oe.prototype.has=xe,Oe.prototype.set=Se;var _e=Oe,Ne=bt,Ae=ce;var je=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Te=function(t,e){var n=t.__data__;return je(e)?n["string"==typeof e?"string":"hash"]:n.map},Pe=Te;var Le=Te;var De=Te;var ke=Te;var $e=function(){this.size=0,this.__data__={hash:new _e,map:new(Ae||Ne),string:new _e}},Ie=function(t){var e=Pe(this,t).delete(t);return this.size-=e?1:0,e},Me=function(t){return Le(this,t).get(t)},Re=function(t){return De(this,t).has(t)},Fe=function(t,e){var n=ke(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function We(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}We.prototype.clear=$e,We.prototype.delete=Ie,We.prototype.get=Me,We.prototype.has=Re,We.prototype.set=Fe;var Be=We,ze=bt,qe=ce,Ue=Be;var He=bt,Xe=wt,Ve=Ct,Ye=Et,Ge=xt,Ze=function(t,e){var n=this.__data__;if(n instanceof ze){var o=n.__data__;if(!qe||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ue(o)}return n.set(t,e),this.size=n.size,this};function Je(t){var e=this.__data__=new He(t);this.size=e.size}Je.prototype.clear=Xe,Je.prototype.delete=Ve,Je.prototype.get=Ye,Je.prototype.has=Ge,Je.prototype.set=Ze;var Ke=Je,Qe=le,tn=function(){try{var t=Qe(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),en=tn;var nn=function(t,e,n){"__proto__"==e&&en?en(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},on=nn,rn=it;var sn=function(t,e,n){(void 0!==n&&!rn(t[e],n)||void 0===n&&!(e in t))&&on(t,e,n)};var an,ln,cn,dn,hn,un,pn,fn=function(t){return function(e,n,o){for(var i=-1,r=Object(e),s=o(e),a=s.length;a--;){var l=s[t?a:++i];if(!1===n(r[l],l,r))break}return e}}(),mn={exports:{}};an=mn,cn=Nt,dn=(ln=mn.exports)&&!ln.nodeType&&ln,hn=dn&&an&&!an.nodeType&&an,un=hn&&hn.exports===dn?cn.Buffer:void 0,pn=un?un.allocUnsafe:void 0,an.exports=function(t,e){if(e)return t.slice();var n=t.length,o=pn?pn(n):new t.constructor(n);return t.copy(o),o};var gn=mn.exports,vn=Nt.Uint8Array,bn=vn;var yn=function(t){var e=new t.constructor(t.byteLength);return new bn(e).set(new bn(t)),e};var wn=function(t,e){var n=e?yn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var Cn=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e},En=Wt,xn=Object.create,Sn=function(){function t(){}return function(e){if(!En(e))return{};if(xn)return xn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var On=function(t,e){return function(n){return t(e(n))}},_n=On(Object.getPrototypeOf,Object),Nn=Object.prototype;var An=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Nn)},jn=Sn,Tn=_n,Pn=An;var Ln=function(t){return"function"!=typeof t.constructor||Pn(t)?{}:jn(Tn(t))};var Dn=function(t){return null!=t&&"object"==typeof t},kn=Ft,$n=Dn;var In=function(t){return $n(t)&&"[object Arguments]"==kn(t)},Mn=Dn,Rn=Object.prototype,Fn=Rn.hasOwnProperty,Wn=Rn.propertyIsEnumerable,Bn=In(function(){return arguments}())?In:function(t){return Mn(t)&&Fn.call(t,"callee")&&!Wn.call(t,"callee")},zn=Bn,qn=Array.isArray;var Un=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Hn=Ut,Xn=Un;var Vn=function(t){return null!=t&&Xn(t.length)&&!Hn(t)},Yn=Vn,Gn=Dn;var Zn=function(t){return Gn(t)&&Yn(t)},Jn={exports:{}};var Kn=function(){return!1};!function(t,e){var n=Nt,o=Kn,i=e&&!e.nodeType&&e,r=i&&t&&!t.nodeType&&t,s=r&&r.exports===i?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||o;t.exports=a}(Jn,Jn.exports);var Qn=Jn.exports,to=Ft,eo=_n,no=Dn,oo=Function.prototype,io=Object.prototype,ro=oo.toString,so=io.hasOwnProperty,ao=ro.call(Object);var lo=function(t){if(!no(t)||"[object Object]"!=to(t))return!1;var e=eo(t);if(null===e)return!0;var n=so.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ro.call(n)==ao},co=Ft,ho=Un,uo=Dn,po={};po["[object Float32Array]"]=po["[object Float64Array]"]=po["[object Int8Array]"]=po["[object Int16Array]"]=po["[object Int32Array]"]=po["[object Uint8Array]"]=po["[object Uint8ClampedArray]"]=po["[object Uint16Array]"]=po["[object Uint32Array]"]=!0,po["[object Arguments]"]=po["[object Array]"]=po["[object ArrayBuffer]"]=po["[object Boolean]"]=po["[object DataView]"]=po["[object Date]"]=po["[object Error]"]=po["[object Function]"]=po["[object Map]"]=po["[object Number]"]=po["[object Object]"]=po["[object RegExp]"]=po["[object Set]"]=po["[object String]"]=po["[object WeakMap]"]=!1;var fo=function(t){return uo(t)&&ho(t.length)&&!!po[co(t)]};var mo=function(t){return function(e){return t(e)}},go={exports:{}};!function(t,e){var n=St,o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,r=i&&i.exports===o&&n.process,s=function(){try{var t=i&&i.require&&i.require("util").types;return t||r&&r.binding&&r.binding("util")}catch(e){}}();t.exports=s}(go,go.exports);var vo=go.exports,bo=fo,yo=mo,wo=vo&&vo.isTypedArray,Co=wo?yo(wo):bo;var Eo=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},xo=nn,So=it,Oo=Object.prototype.hasOwnProperty;var _o=function(t,e,n){var o=t[e];Oo.call(t,e)&&So(o,n)&&(void 0!==n||e in t)||xo(t,e,n)},No=_o,Ao=nn;var jo=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var a=e[r],l=o?o(n[a],t[a],a,n,t):void 0;void 0===l&&(l=t[a]),i?Ao(n,a,l):No(n,a,l)}return n};var To=/^(?:0|[1-9]\d*)$/;var Po=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&To.test(t))&&t>-1&&t%1==0&&t<e},Lo=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o},Do=zn,ko=qn,$o=Qn,Io=Po,Mo=Co,Ro=Object.prototype.hasOwnProperty;var Fo=function(t,e){var n=ko(t),o=!n&&Do(t),i=!n&&!o&&$o(t),r=!n&&!o&&!i&&Mo(t),s=n||o||i||r,a=s?Lo(t.length,String):[],l=a.length;for(var c in t)!e&&!Ro.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Io(c,l))||a.push(c);return a};var Wo=Wt,Bo=An,zo=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},qo=Object.prototype.hasOwnProperty;var Uo=Fo,Ho=function(t){if(!Wo(t))return zo(t);var e=Bo(t),n=[];for(var o in t)("constructor"!=o||!e&&qo.call(t,o))&&n.push(o);return n},Xo=Vn;var Vo=function(t){return Xo(t)?Uo(t,!0):Ho(t)},Yo=jo,Go=Vo;var Zo=sn,Jo=gn,Ko=wn,Qo=Cn,ti=Ln,ei=zn,ni=qn,oi=Zn,ii=Qn,ri=Ut,si=Wt,ai=lo,li=Co,ci=Eo,di=function(t){return Yo(t,Go(t))};var hi=Ke,ui=sn,pi=fn,fi=function(t,e,n,o,i,r,s){var a=ci(t,n),l=ci(e,n),c=s.get(l);if(c)Zo(t,n,c);else{var d=r?r(a,l,n+"",t,e,s):void 0,h=void 0===d;if(h){var u=ni(l),p=!u&&ii(l),f=!u&&!p&&li(l);d=l,u||p||f?ni(a)?d=a:oi(a)?d=Qo(a):p?(h=!1,d=Jo(l,!0)):f?(h=!1,d=Ko(l,!0)):d=[]:ai(l)||ei(l)?(d=a,ei(a)?d=di(a):si(a)&&!ri(a)||(d=ti(l))):h=!1}h&&(s.set(l,d),i(d,l,o,r,s),s.delete(l)),Zo(t,n,d)}},mi=Wt,gi=Vo,vi=Eo;var bi=function t(e,n,o,i,r){e!==n&&pi(n,(function(s,a){if(r||(r=new hi),mi(s))fi(e,n,a,o,t,i,r);else{var l=i?i(vi(e,a),s,a+"",e,n,r):void 0;void 0===l&&(l=s),ui(e,a,l)}}),gi)};var yi=function(t){return t};var wi=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},Ci=Math.max;var Ei=function(t,e,n){return e=Ci(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=Ci(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=o[i];return a[e]=n(s),wi(t,this,a)}};var xi=function(t){return function(){return t}},Si=tn,Oi=Si?function(t,e){return Si(t,"toString",{configurable:!0,enumerable:!1,value:xi(e),writable:!0})}:yi,_i=Date.now;var Ni=function(t){var e=0,n=0;return function(){var o=_i(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},Ai=Ni(Oi),ji=yi,Ti=Ei,Pi=Ai;var Li=it,Di=Vn,ki=Po,$i=Wt;var Ii=function(t,e){return Pi(Ti(t,e,ji),t+"")},Mi=function(t,e,n){if(!$i(n))return!1;var o=typeof e;return!!("number"==o?Di(n)&&ki(e,n.length):"string"==o&&e in n)&&Li(n[e],t)};var Ri=bi;const Fi=nt(function(t){return Ii((function(e,n){var o=-1,i=n.length,r=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(r=t.length>3&&"function"==typeof r?(i--,r):void 0,s&&Mi(n[0],n[1],s)&&(r=i<3?void 0:r,i=1),e=Object(e);++o<i;){var a=n[o];a&&t(e,a,o,r)}return e}))}((function(t,e,n,o){Ri(t,e,n,o)}))),Wi=()=>crypto.randomUUID(),Bi=(t="",e)=>{if(!e)return!1;const n=/[|\\{}()[\]^*$+?.]/g;let o="string"==typeof e?[e]:e;o=o.map((t=>"*"===t?"":t.replace(n,"\\$&")));let i=!0;return o.length&&(i=!new RegExp(o.join("|"),"i").exec(t)),i},zi=t=>{var e;const n=null==(e=t.className)?void 0:e.match(k);return n&&L[n[0]]},qi=t=>Array.from(new Set(t)),Ui=t=>{let e;if(t){const{attrs:n={}}=t;e=n.id||t.id||Wi(),t.id=e}else e=Wi();return e},Hi=(t,e)=>Fi({},t,e,((t,e)=>Array.isArray(t)?null!=e?qi(t.concat(e)):e:Array.isArray(e)?null!=t?qi(e.concat(t)):e:void 0)),Xi=t=>{let e;if(null===t||!("object"==typeof t)||t instanceof Promise)return t;if(t instanceof Date)return e=new Date,e.setTime(t.getTime()),e;if(Array.isArray(t)){e=[];for(let n=0,o=t.length;n<o;n++)e[n]=Xi(t[n]);return e}if(t instanceof Object){e={};for(const n in t)Object.hasOwn(t,n)&&(e[n]=Xi(t[n]));return e}throw new Error("Unable to copy Object, type not supported.")},Vi=(t,e)=>t/e*100,Yi=t=>`${t.toString()}%`,Gi=Object.create(null,{get:{value:t=>{var e;const n=null==(e=window.sessionStorage)?void 0:e.getItem(t);try{return JSON.parse(n)}catch(o){return n}}},set:{value:(t,e)=>{var n;try{return null==(n=window.sessionStorage)?void 0:n.setItem(t,JSON.stringify(e))}catch(o){}}}}),Zi=t=>A.some((e=>new RegExp(`^${e}.`).test(t))),Ji=t=>t.startsWith("external");function Ki(t,e=H){let n=0;return function(...o){const i=Date.now();i-n>=e&&(n=i,t.apply(this,o))}}function Qi(t){return t}function tr(){}function er(t=Object.create(null)){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return Object.create(null)}return t}var nr=Ft,or=Dn;var ir=function(t){return"symbol"==typeof t||or(t)&&"[object Symbol]"==nr(t)},rr=qn,sr=ir,ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lr=/^\w*$/;var cr=function(t,e){if(rr(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!sr(t))||(lr.test(t)||!ar.test(t)||null!=e&&t in Object(e))},dr=Be;function hr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(hr.Cache||dr),n}hr.Cache=dr;var ur=hr;var pr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fr=/\\(\\)?/g,mr=function(t){var e=ur(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(pr,(function(t,n,o,i){e.push(o?i.replace(fr,"$1"):n||t)})),e}));var gr=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i},vr=qn,br=ir,yr=At?At.prototype:void 0,wr=yr?yr.toString:void 0;var Cr=function t(e){if("string"==typeof e)return e;if(vr(e))return gr(e,t)+"";if(br(e))return wr?wr.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},Er=Cr;var xr=qn,Sr=cr,Or=mr,_r=function(t){return null==t?"":Er(t)};var Nr=function(t,e){return xr(t)?t:Sr(t,e)?[t]:Or(_r(t))},Ar=ir;var jr=function(t){if("string"==typeof t||Ar(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},Tr=_o,Pr=Nr,Lr=Po,Dr=Wt,kr=jr;var $r=function(t,e,n,o){if(!Dr(t))return t;for(var i=-1,r=(e=Pr(e,t)).length,s=r-1,a=t;null!=a&&++i<r;){var l=kr(e[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(i!=s){var d=a[l];void 0===(c=o?o(d,l,a):void 0)&&(c=Dr(d)?d:Lr(e[i+1])?[]:{})}Tr(a,l,c),a=a[l]}return t};const Ir=nt((function(t,e,n){return null==t?t:$r(t,e,n)}));var Mr=Nr,Rr=jr;var Fr=function(t,e){for(var n=0,o=(e=Mr(e,t)).length;null!=t&&n<o;)t=t[Rr(e[n++])];return n&&n==o?t:void 0};const Wr=nt((function(t,e,n){var o=null==t?void 0:Fr(t,e);return void 0===o?n:o})),Br=Ir,zr=t=>Number.isInteger(Number(t)),qr=(t,e)=>{const n=e||t.parentElement;return Array.prototype.slice.call(n.childNodes).indexOf(t)},Ur=(t,e,n)=>{const o=n.split("||"),i=qi(e).map((e=>t.find((t=>{const n=o.find((e=>!!Wr(t,e)));return n&&Wr(t,n)===e})))).filter(Boolean).concat(t);return qi(i)},Hr=(t,e,n)=>{for(let o=0;o<t.length;o++)e.call(n,t[o],o)},Xr=(t,e)=>{const n=[];return Hr(t,((t,o)=>n.push(e(t,o)))),n},Vr={},Yr=t=>t.replace(/\b\w/g,(t=>t.toUpperCase())),Gr=()=>-1!==window.navigator.userAgent.indexOf("MSIE "),Zr={capitalize:Yr,safeAttrName:t=>{if(Vr[t])return Vr[t];const e=({className:"class"}[t]||t).replace(/^\d+/,"").replace(/[^a-zA-Z0-9-:]/g,"");return Vr[t]=e,e},forEach:Hr,copyObj:t=>window.JSON.parse(window.JSON.stringify(t)),map:Xr,subtract:(t,e)=>e.filter((e=>!~t.indexOf(e))),indexOfNode:qr,isInt:zr,get:Wr,orderObjectsBy:Ur,isIE:Gr},Jr={getStyle:(t,e=!1)=>{let n;return window.getComputedStyle?n=window.getComputedStyle(t,null):t.currentStyle&&(n=t.currentStyle),e?n[e]:n},fadeOut:(t,e=250)=>{const n=1/(e/60);t.style.opacity=1,function e(){const o=Number(t.style.opacity)-n;o>0?(t.style.opacity=o,window.requestAnimationFrame(e)):t.remove()}()},slideDown:(t,e=250,n=!1)=>{t.style.display="block";const o=Jr.getStyle(t),i=parseInt(o.height,10),r=i/(e/60);t.style.height="0px",function e(){const o=parseFloat(t.style.height),s=o+r;o<i?(t.style.height=s+"px",window.requestAnimationFrame(e)):(t.style.height="auto",n&&n(t))}()},slideUp:(t,e=250,n=!1)=>{const o=Jr.getStyle(t),i=parseInt(o.height),r=o.overflow;t.style.overflow="hidden",t.style.height=i+"px";const s=o.minHeight;t.style.minHeight="auto";const a=parseFloat(i/(e/60)).toFixed(2);!function e(){const o=parseInt(t.style.height,10)-a;o>0?(t.style.height=o+"px",window.requestAnimationFrame(e)):(t.style.overflow=r,t.style.display="none",t.style.minHeight=s,delete t.style.height,n&&n(t))}()},slideToggle:(t,e=250,n="none"===Jr.getStyle(t,"display"))=>{n?Jr.slideDown(t,e):Jr.slideUp(t,e)}},Kr="no-transition",Qr={debug:!1,bubbles:!0,formeoLoaded:t=>{},onAdd:()=>{},onUpdate:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onUpdateStage:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onUpdateRow:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onUpdateColumn:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onUpdateField:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onRender:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onSave:t=>{},confirmClearAll:t=>{window.confirm(t.confirmationMessage)&&t.clearAllAction(t)}},ts=({src:t,...e},n=V)=>{var o,i;const r=new window.CustomEvent(n,{detail:e,bubbles:(null==(o=es.opts)?void 0:o.debug)||(null==(i=es.opts)?void 0:i.bubbles)});return r.data=(t||document).dispatchEvent(r),r},es={init:function(t){return this.opts={...Qr,...t},this},formeoSaved:t=>ts(t,X),formeoUpdated:t=>ts(t,V),formeoCleared:t=>ts(t,"formeoCleared"),formeoOnRender:t=>ts(t,Y),formeoConditionUpdated:t=>ts(t,"formeoConditionUpdated")},ns=Ki((()=>{es.opts.onUpdate({timeStamp:window.performance.now(),type:V,detail:Fd.formData})}),U);let os;document.addEventListener(V,ns),document.addEventListener("formeoUpdatedStage",(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener("formeoUpdatedRow",(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener("formeoUpdatedColumn",(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener("formeoUpdatedField",(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener(Y,(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onRender({timeStamp:e,type:n,detail:o})})),document.addEventListener("confirmClearAll",(t=>{t={timeStamp:t.timeStamp,type:t.type,confirmationMessage:t.detail.confirmationMessage,clearAllAction:t.detail.clearAllAction,btnCoords:t.detail.btnCoords},es.opts.confirmClearAll(t)})),document.addEventListener(X,(({timeStamp:t,type:e,detail:{formData:n}})=>{const o={timeStamp:t,type:e,formData:n};es.opts.onSave(o)})),document.addEventListener("formeoLoaded",(t=>{es.opts.formeoLoaded(t.detail.formeo)})),window.addEventListener("resize",(function(){os=os||window.requestAnimationFrame((()=>{os=!1;for(const t of Object.values(kd.data))t.dom.classList.add(Kr),Id.dom.classList.add(Kr),Id.panels.nav.refresh(),t.refreshFieldPanels()}))}));var is=Be,rs=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ss=function(t){return this.__data__.has(t)};function as(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new is;++e<n;)this.add(t[e])}as.prototype.add=as.prototype.push=rs,as.prototype.has=ss;var ls=as,cs=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1},ds=function(t,e){return t.has(e)};var hs=function(t,e,n,o,i,r){var s=1&n,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=r.get(t),d=r.get(e);if(c&&d)return c==e&&d==t;var h=-1,u=!0,p=2&n?new ls:void 0;for(r.set(t,e),r.set(e,t);++h<a;){var f=t[h],m=e[h];if(o)var g=s?o(m,f,h,e,t,r):o(f,m,h,t,e,r);if(void 0!==g){if(g)continue;u=!1;break}if(p){if(!cs(e,(function(t,e){if(!ds(p,e)&&(f===t||i(f,t,n,o,r)))return p.push(e)}))){u=!1;break}}else if(f!==m&&!i(f,m,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};var us=vn,ps=it,fs=hs,ms=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n},gs=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},vs=At?At.prototype:void 0,bs=vs?vs.valueOf:void 0;var ys=function(t,e,n,o,i,r,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new us(t),new us(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ps(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=ms;case"[object Set]":var l=1&o;if(a||(a=gs),t.size!=e.size&&!l)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var d=fs(a(t),a(e),o,i,r,s);return s.delete(t),d;case"[object Symbol]":if(bs)return bs.call(t)==bs.call(e)}return!1};var ws=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t},Cs=qn;var Es=function(t,e,n){var o=e(t);return Cs(t)?o:ws(o,n(t))};var xs=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}return r},Ss=function(){return[]},Os=Object.prototype.propertyIsEnumerable,_s=Object.getOwnPropertySymbols,Ns=_s?function(t){return null==t?[]:(t=Object(t),xs(_s(t),(function(e){return Os.call(t,e)})))}:Ss,As=On(Object.keys,Object),js=An,Ts=As,Ps=Object.prototype.hasOwnProperty;var Ls=Fo,Ds=function(t){if(!js(t))return Ts(t);var e=[];for(var n in Object(t))Ps.call(t,n)&&"constructor"!=n&&e.push(n);return e},ks=Vn;var $s=Es,Is=Ns,Ms=function(t){return ks(t)?Ls(t):Ds(t)};var Rs=function(t){return $s(t,Ms,Is)},Fs=Object.prototype.hasOwnProperty;var Ws=function(t,e,n,o,i,r){var s=1&n,a=Rs(t),l=a.length;if(l!=Rs(e).length&&!s)return!1;for(var c=l;c--;){var d=a[c];if(!(s?d in e:Fs.call(e,d)))return!1}var h=r.get(t),u=r.get(e);if(h&&u)return h==e&&u==t;var p=!0;r.set(t,e),r.set(e,t);for(var f=s;++c<l;){var m=t[d=a[c]],g=e[d];if(o)var v=s?o(g,m,d,e,t,r):o(m,g,d,t,e,r);if(!(void 0===v?m===g||i(m,g,n,o,r):v)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var b=t.constructor,y=e.constructor;b==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(p=!1)}return r.delete(t),r.delete(e),p},Bs=le(Nt,"DataView"),zs=ce,qs=le(Nt,"Promise"),Us=le(Nt,"Set"),Hs=le(Nt,"WeakMap"),Xs=Ft,Vs=Gt,Ys="[object Map]",Gs="[object Promise]",Zs="[object Set]",Js="[object WeakMap]",Ks="[object DataView]",Qs=Vs(Bs),ta=Vs(zs),ea=Vs(qs),na=Vs(Us),oa=Vs(Hs),ia=Xs;(Bs&&ia(new Bs(new ArrayBuffer(1)))!=Ks||zs&&ia(new zs)!=Ys||qs&&ia(qs.resolve())!=Gs||Us&&ia(new Us)!=Zs||Hs&&ia(new Hs)!=Js)&&(ia=function(t){var e=Xs(t),n="[object Object]"==e?t.constructor:void 0,o=n?Vs(n):"";if(o)switch(o){case Qs:return Ks;case ta:return Ys;case ea:return Gs;case na:return Zs;case oa:return Js}return e});var ra=Ke,sa=hs,aa=ys,la=Ws,ca=ia,da=qn,ha=Qn,ua=Co,pa="[object Arguments]",fa="[object Array]",ma="[object Object]",ga=Object.prototype.hasOwnProperty;var va=function(t,e,n,o,i,r){var s=da(t),a=da(e),l=s?fa:ca(t),c=a?fa:ca(e),d=(l=l==pa?ma:l)==ma,h=(c=c==pa?ma:c)==ma,u=l==c;if(u&&ha(t)){if(!ha(e))return!1;s=!0,d=!1}if(u&&!d)return r||(r=new ra),s||ua(t)?sa(t,e,n,o,i,r):aa(t,e,l,n,o,i,r);if(!(1&n)){var p=d&&ga.call(t,"__wrapped__"),f=h&&ga.call(e,"__wrapped__");if(p||f){var m=p?t.value():t,g=f?e.value():e;return r||(r=new ra),i(m,g,n,o,r)}}return!!u&&(r||(r=new ra),la(t,e,n,o,i,r))},ba=Dn;var ya=function t(e,n,o,i,r){return e===n||(null==e||null==n||!ba(e)&&!ba(n)?e!=e&&n!=n:va(e,n,o,i,t,r))},wa=ya;const Ca=nt((function(t,e){return wa(t,e)}));class Ea{constructor(t,e=Object.create(null)){n(this,"toJSON",((t,e)=>JSON.stringify(t,null,e))),n(this,"get",(t=>Wr(this.data,t))),n(this,"getChangeType",((t,e)=>{const n=W.find((({condition:n})=>n(t,e)))||{type:"unknown"};return n.desc="added"===n.type?`${t} to ${e}`:e,n})),n(this,"add",((t,e=Object.create(null))=>{const{id:n}=e,o=t||n||Ui();return this.set(o,e)})),n(this,"remove",(t=>{const e=t.split("."),n=e.pop(),o=this.get(e);return Array.isArray(o)?o.splice(Number(n),1):delete o[n],o})),n(this,"getData",(()=>Object.entries(this.data).reduce(((t,[e,n])=>(t[e]=(null==n?void 0:n.data)?n.getData():n,t)),{}))),n(this,"setCallbacks",{}),n(this,"configVal",Object.create(null)),this.name=t,this.data=e,this.dataPath=""}get size(){return Object.keys(this.data).length}get js(){return this.data}get json(){return this.data}set(t,e){const n=Wr(this.data,t);if(Ca(n,e))return this.data;const o=Br(this.data,t,e),i=Array.isArray(t)?t.join("."):t,r=Object.keys(this.setCallbacks).filter((t=>new RegExp(t).test(i))),s={newVal:e,oldVal:n,path:t};for(const a of r)for(const t of this.setCallbacks[a])t(s);if(!this.disableEvents){const i=this.getChangeType(n,e),r={entity:this,dataPath:this.dataPath.replace(/\.+$/,""),changePath:this.dataPath+t,value:e,data:o,change:`${i.type}: ${i.desc}`,src:this.dom};n&&(r.previousValue=n),es.formeoUpdated(r)}return o}addSetCallback(t,e){this.setCallbacks[t]?this.setCallbacks[t].push(e):this.setCallbacks[t]=[e]}removeSetCallback(t,e){this.setCallbacks[t]=this.setCallbacks[t].filter((t=>t!==e))}empty(){this.data=Object.create(null)}}
8
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).formeo={})}(this,(function(t){"use strict";var e=Object.defineProperty,n=(t,n,o)=>((t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o)(t,"symbol"!=typeof n?n+"":n,o);const o={extension:".lang",location:"assets/lang/",langs:["en-US"],locale:"en-US",override:{}};class i{constructor(t=o){this.langs=Object.create(null),this.loaded=[],this.processConfig(t)}processConfig(t){const{location:e,...n}={...o,...t},i=e.replace(/\/?$/,"/");this.config={location:i,...n};const{override:r,preloaded:s={}}=this.config,a=Object.entries(this.langs).concat(Object.entries(r||s));this.langs=a.reduce(((t,[e,n])=>(t[e]=this.applyLanguage(e,n),t)),{}),this.locale=this.config.locale||this.config.langs[0]}init(t){return this.processConfig({...this.config,...t}),this.setCurrent(this.locale)}addLanguage(t,e={}){e="string"==typeof e?i.processFile(e):e,this.applyLanguage(t,e),this.config.langs.push("locale")}getValue(t,e=this.locale){var n;return(null==(n=this.langs[e])?void 0:n[t])||this.getFallbackValue(t)}getFallbackValue(t){const e=Object.values(this.langs).find((e=>e[t]));return null==e?void 0:e[t]}makeSafe(t){const e={"{":"\\{","}":"\\}","|":"\\|"};return t=t.replace(/[{}|]/g,(t=>e[t])),new RegExp(t,"g")}put(t,e){return this.current[t]=e,e}get(t,e){const n=this;let o=this.getValue(t);if(!o)return;const i=o.match(/\{[^}]+?\}/g);if(e&&i)if("object"==typeof e)for(const r of i){const t=r.substring(1,r.length-1);o=o.replace(n.makeSafe(r),e[t]||"")}else o=o.replace(/\{[^}]+?\}/g,e);return o}static processFile(t){return i.fromFile(t.replace(/\n\n/g,"\n"))}static fromFile(t){const e=t.split("\n"),n={};for(let o,i=0;i<e.length;i++){o=/^(.+?) *?= *?([^\n]+)/.exec(e[i]),o&&(n[o[1]]=o[2].replace(/(^\s+|\s+$)/g,""))}return n}loadLang(t,e=!0){const n=this;return new Promise((function(o,r){if(-1!==n.loaded.indexOf(t)&&e)return n.applyLanguage(n.langs[t]),o(n.langs[t]);return async function(t){try{const e=await fetch(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const n=t.endsWith(".lang")?"text":"json";return await e[n]()}catch(e){throw e}}([n.config.location,t,n.config.extension].join("")).then((e=>{const r=i.processFile(e);return n.applyLanguage(t,r),n.loaded.push(t),o(n.langs[t])})).catch((e=>{const i=n.applyLanguage(t);o(i)}))}))}applyLanguage(t,e={}){const n=this.config.override[t]||{},o=this.langs[t]||{};return this.langs[t]={...o,...e,...n},this.langs[t]}get getLangs(){return this.config.langs}async setCurrent(t="en-US"){return await this.loadLang(t),this.locale=t,this.current=this.langs[t],this.current}}const r=new i;!function(){try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('._3x4ZIcu-{position:absolute;background:#1f2937;color:#fff;padding:.75rem;border-radius:.375rem;max-width:200px;z-index:50;visibility:hidden;opacity:0;transition:opacity .2s;pointer-events:none;left:0;top:0}._3x4ZIcu-.JIt36hCJ{visibility:visible;opacity:1;pointer-events:all}._3x4ZIcu-:before{content:"";position:absolute;width:0;height:0;border:6px solid transparent}._3x4ZIcu-[data-position=top]:before{border-top-color:#1f2937;bottom:-12px;left:50%;transform:translate(-50%)}._3x4ZIcu-[data-position=bottom]:before{border-bottom-color:#1f2937;top:-12px;left:50%;transform:translate(-50%)}._3x4ZIcu-[data-position=left]:before{border-left-color:#1f2937;right:-12px;top:50%;transform:translateY(-50%)}._3x4ZIcu-[data-position=right]:before{border-right-color:#1f2937;left:-12px;top:50%;transform:translateY(-50%)}._3x4ZIcu-[data-position=top-left]:before{border-top-color:#1f2937;bottom:-12px;left:12px;transform:none}._3x4ZIcu-[data-position=top-right]:before{border-top-color:#1f2937;bottom:-12px;right:12px;left:auto;transform:none}._3x4ZIcu-[data-position=bottom-left]:before{border-bottom-color:#1f2937;top:-12px;left:12px;transform:none}._3x4ZIcu-[data-position=bottom-right]:before{border-bottom-color:#1f2937;top:-12px;right:12px;left:auto;transform:none}')),document.head.appendChild(t)}}catch(e){}}();var s=Object.defineProperty,a=(t,e,n)=>((t,e,n)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);const l="_3x4ZIcu-",c="JIt36hCJ",d={triggerName:"tooltip"};class h{constructor(t=d){a(this,"triggerName"),a(this,"tooltip"),a(this,"activeTriggerType",null),a(this,"spacing",12),a(this,"handleClick",(t=>{const e=this.triggerName,n=t.target.closest(`[${e}][${e}-type="click"]`);if(n)if(this.isVisible())this.hide();else{const t=n.getAttribute(`${e}`);this.show(n,t),this.activeTriggerType="click"}else this.hide()})),a(this,"handleMouseOver",(t=>{const e=this.triggerName,n=t.target.closest(`[${e}]`);if("click"!==this.activeTriggerType&&"click"!==(null==n?void 0:n.getAttribute(`${e}-type`))){const t=null==n?void 0:n.getAttribute(`${e}`);t&&(this.show(n,t),this.activeTriggerType="hover")}})),a(this,"handleMouseOut",(t=>{const e=this.triggerName,n=t.target.closest(`[${e}]`);"click"!==this.activeTriggerType&&"click"!==(null==n?void 0:n.getAttribute(`${e}-type`))&&this.hide()})),a(this,"handleResize",(()=>{this.isVisible()&&this.hide()})),a(this,"handleScroll",(()=>{this.isVisible()&&this.hide()})),this.triggerName=`data-${t.triggerName}`,this.tooltip=document.createElement("div"),this.tooltip.className=`d-tooltip ${l}`,document.body.appendChild(this.tooltip),this.setupEventListeners()}setupEventListeners(){document.addEventListener("mouseover",this.handleMouseOver),document.addEventListener("mouseout",this.handleMouseOut),document.addEventListener("touchstart",this.handleMouseOver),document.addEventListener("touchend",this.handleMouseOut),document.addEventListener("click",this.handleClick),window.addEventListener("resize",this.handleResize),window.addEventListener("scroll",this.handleScroll,!0)}isVisible(){return this.tooltip.classList.contains(c)}calculatePosition(t){const e=t.getBoundingClientRect(),n=this.tooltip.getBoundingClientRect(),o=[{name:"top",x:e.left+(e.width-n.width)/2,y:e.top-n.height-this.spacing},{name:"bottom",x:e.left+(e.width-n.width)/2,y:e.bottom+this.spacing},{name:"left",x:e.left-n.width-this.spacing,y:e.top+(e.height-n.height)/2},{name:"right",x:e.right+this.spacing,y:e.top+(e.height-n.height)/2},{name:"top-left",x:e.left,y:e.top-n.height-this.spacing},{name:"top-right",x:e.right-n.width,y:e.top-n.height-this.spacing},{name:"bottom-left",x:e.left,y:e.bottom+this.spacing},{name:"bottom-right",x:e.right-n.width,y:e.bottom+this.spacing}];return o.find((t=>this.fitsInViewport(t,n)))||o[0]}fitsInViewport(t,e){if(!(t.x>=0&&t.y>=0&&t.x+e.width<=window.innerWidth&&t.y+e.height<=window.innerHeight))return!1;return 0===[[t.x,t.y],[t.x+e.width,t.y],[t.x,t.y+e.height],[t.x+e.width,t.y+e.height],[t.x+e.width/2,t.y+e.height/2]].flatMap((([t,e])=>Array.from(document.elementsFromPoint(t,e)))).filter((t=>{if(this.tooltip.contains(t)||t===this.tooltip||t.classList.contains(l)||"none"===getComputedStyle(t).pointerEvents)return!1})).length}show(t,e){this.tooltip.innerHTML=e??"",this.tooltip.classList.add(c);const n=this.calculatePosition(t);this.tooltip.style.left=`${n.x}px`,this.tooltip.style.top=`${n.y}px`,this.tooltip.dataset.position=n.name}hide(){this.tooltip.classList.remove(c),this.activeTriggerType=null}destroy(){document.removeEventListener("mouseover",this.handleMouseOver),document.removeEventListener("mouseout",this.handleMouseOut),document.removeEventListener("touchstart",this.handleMouseOver),document.removeEventListener("touchend",this.handleMouseOut),document.removeEventListener("click",this.handleClick),window.removeEventListener("resize",this.handleResize),window.removeEventListener("scroll",this.handleScroll,!0),this.tooltip.remove()}}void 0!==window&&(window.SmartTooltip=h);const u="formeo",p="3.0.4",f="formeo-sprite",m=[{name:"cssPreload",src:"//cdnjs.cloudflare.com/ajax/libs/loadCSS/2.0.1/cssrelpreload.min.js"},{name:"mutationObserver",src:"//cdn.jsdelivr.net/npm/mutationobserver-shim/dist/mutationobserver.min.js"},{name:"fetch",src:"https://unpkg.com/unfetch/polyfill"}],g=`https://cdn.jsdelivr.net/npm/formeo@${p}/dist/${f}.svg`,v=`https://draggable.github.io/formeo/assets/img/${f}.svg`,b=`https://cdn.jsdelivr.net/npm/formeo@${p}/dist/formeo.min.css`,y="control-group",w=`${u}-stage`,C=`${u}-row`,E=`${u}-column`,x=`${u}-field`,S="custom-column-widths",O="column-preset",_="resizing-columns",N=new Map([[w,C],[C,E],[E,x]]),A=["external","stages","rows","columns","fields"],j=["stage","row","column","field"].reduce(((t,e)=>({...t,[e]:e})),{}),T=[{name:"controls",className:y},{name:"stage",className:w},{name:"row",className:C},{name:"column",className:E},{name:"field",className:x}],P={controls:y,stage:w,row:C,column:E,field:x},L=Object.entries(P).reduce(((t,[e,n])=>({...t,[n]:e})),{}),D=Object.values(P),k=new RegExp(`${D.join("|")}`,"g"),$=T.map((({name:t},e,n)=>{const{name:o}=n[e+1]||{};return o&&[t,o]})).filter(Boolean),I=$.slice().map((t=>t.slice().reverse())).reverse(),M=new Map($),R=new Map(I.slice()),F=new Map([[{value:"100.0",label:"100%"}],[{value:"50.0,50.0",label:"50 | 50"},{value:"33.3,66.6",label:"33 | 66"},{value:"66.6,33.3",label:"66 | 33"}],[{value:"33.3,33.3,33.3",label:"33 | 33 | 33"},{value:"25.0,25.0,50.0",label:"25 | 25 | 50"},{value:"50.0,25.0,25.0",label:"50 | 25 | 25"},{value:"25.0,50.0,25.0",label:"25 | 50 | 25"}],[{value:"25.0,25.0,25.0,25.0",label:"25 | 25 | 25 | 25"}],[{value:"20.0,20.0,20.0,20.0,20.0",label:"20 | 20 | 20 | 20 | 20"}],[{value:"16.66,16.66,16.66,16.66,16.66,16.66",label:"16.66 | 16.66 | 16.66 | 16.66 | 16.66 | 16.66"}]].reduce(((t,e,n)=>(t.push([n,e]),t)),[])),W=[{type:"added",condition:(t,e)=>Boolean(void 0===t&&e)}],B=`${u}-formData`,z=`${u}-locale`,q=333,U=Math.round(166.5),H=Math.round(666),X="formeoSaved",V="formeoUpdated",Y="formeoOnRender",G=["label","logical","source","thenTarget","sourceProperty","comparison","target","targetProperty","assignment","value"],Z={value:"attrs.value",checked:"attrs.checked",isVisible:"config.isVisible",isNotVisible:"config.isNotVisible"},J={comparison:{equals:"==",notEquals:"!=",contains:"⊃",notContains:"!⊃"},assignment:{equals:"="},logical:{and:"&&",or:"||"},property:Z},K=/(\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b)/gi,Q=/\bcol-\w+-\d+/g,tt="f-i-";var et="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function nt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ot=function(){this.__data__=[],this.size=0};var it=function(t,e){return t===e||t!=t&&e!=e},rt=it;var st=function(t,e){for(var n=t.length;n--;)if(rt(t[n][0],e))return n;return-1},at=st,lt=Array.prototype.splice;var ct=st;var dt=st;var ht=st;var ut=ot,pt=function(t){var e=this.__data__,n=at(e,t);return!(n<0)&&(n==e.length-1?e.pop():lt.call(e,n,1),--this.size,!0)},ft=function(t){var e=this.__data__,n=ct(e,t);return n<0?void 0:e[n][1]},mt=function(t){return dt(this.__data__,t)>-1},gt=function(t,e){var n=this.__data__,o=ht(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function vt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}vt.prototype.clear=ut,vt.prototype.delete=pt,vt.prototype.get=ft,vt.prototype.has=mt,vt.prototype.set=gt;var bt=vt,yt=bt;var wt=function(){this.__data__=new yt,this.size=0};var Ct=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var Et=function(t){return this.__data__.get(t)};var xt=function(t){return this.__data__.has(t)},St="object"==typeof et&&et&&et.Object===Object&&et,Ot=St,_t="object"==typeof self&&self&&self.Object===Object&&self,Nt=Ot||_t||Function("return this")(),At=Nt.Symbol,jt=At,Tt=Object.prototype,Pt=Tt.hasOwnProperty,Lt=Tt.toString,Dt=jt?jt.toStringTag:void 0;var kt=function(t){var e=Pt.call(t,Dt),n=t[Dt];try{t[Dt]=void 0;var o=!0}catch(r){}var i=Lt.call(t);return o&&(e?t[Dt]=n:delete t[Dt]),i},$t=Object.prototype.toString;var It=kt,Mt=function(t){return $t.call(t)},Rt=At?At.toStringTag:void 0;var Ft=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Rt&&Rt in Object(t)?It(t):Mt(t)};var Wt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Bt=Ft,zt=Wt;var qt,Ut=function(t){if(!zt(t))return!1;var e=Bt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Ht=Nt["__core-js_shared__"],Xt=(qt=/[^.]+$/.exec(Ht&&Ht.keys&&Ht.keys.IE_PROTO||""))?"Symbol(src)_1."+qt:"";var Vt=function(t){return!!Xt&&Xt in t},Yt=Function.prototype.toString;var Gt=function(t){if(null!=t){try{return Yt.call(t)}catch(e){}try{return t+""}catch(e){}}return""},Zt=Ut,Jt=Vt,Kt=Wt,Qt=Gt,te=/^\[object .+?Constructor\]$/,ee=Function.prototype,ne=Object.prototype,oe=ee.toString,ie=ne.hasOwnProperty,re=RegExp("^"+oe.call(ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var se=function(t){return!(!Kt(t)||Jt(t))&&(Zt(t)?re:te).test(Qt(t))},ae=function(t,e){return null==t?void 0:t[e]};var le=function(t,e){var n=ae(t,e);return se(n)?n:void 0},ce=le(Nt,"Map"),de=le(Object,"create"),he=de;var ue=function(){this.__data__=he?he(null):{},this.size=0};var pe=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},fe=de,me=Object.prototype.hasOwnProperty;var ge=function(t){var e=this.__data__;if(fe){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return me.call(e,t)?e[t]:void 0},ve=de,be=Object.prototype.hasOwnProperty;var ye=de;var we=ue,Ce=pe,Ee=ge,xe=function(t){var e=this.__data__;return ve?void 0!==e[t]:be.call(e,t)},Se=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ye&&void 0===e?"__lodash_hash_undefined__":e,this};function Oe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Oe.prototype.clear=we,Oe.prototype.delete=Ce,Oe.prototype.get=Ee,Oe.prototype.has=xe,Oe.prototype.set=Se;var _e=Oe,Ne=bt,Ae=ce;var je=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Te=function(t,e){var n=t.__data__;return je(e)?n["string"==typeof e?"string":"hash"]:n.map},Pe=Te;var Le=Te;var De=Te;var ke=Te;var $e=function(){this.size=0,this.__data__={hash:new _e,map:new(Ae||Ne),string:new _e}},Ie=function(t){var e=Pe(this,t).delete(t);return this.size-=e?1:0,e},Me=function(t){return Le(this,t).get(t)},Re=function(t){return De(this,t).has(t)},Fe=function(t,e){var n=ke(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function We(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}We.prototype.clear=$e,We.prototype.delete=Ie,We.prototype.get=Me,We.prototype.has=Re,We.prototype.set=Fe;var Be=We,ze=bt,qe=ce,Ue=Be;var He=bt,Xe=wt,Ve=Ct,Ye=Et,Ge=xt,Ze=function(t,e){var n=this.__data__;if(n instanceof ze){var o=n.__data__;if(!qe||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ue(o)}return n.set(t,e),this.size=n.size,this};function Je(t){var e=this.__data__=new He(t);this.size=e.size}Je.prototype.clear=Xe,Je.prototype.delete=Ve,Je.prototype.get=Ye,Je.prototype.has=Ge,Je.prototype.set=Ze;var Ke=Je,Qe=le,tn=function(){try{var t=Qe(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),en=tn;var nn=function(t,e,n){"__proto__"==e&&en?en(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},on=nn,rn=it;var sn=function(t,e,n){(void 0!==n&&!rn(t[e],n)||void 0===n&&!(e in t))&&on(t,e,n)};var an,ln,cn,dn,hn,un,pn,fn=function(t){return function(e,n,o){for(var i=-1,r=Object(e),s=o(e),a=s.length;a--;){var l=s[t?a:++i];if(!1===n(r[l],l,r))break}return e}}(),mn={exports:{}};an=mn,cn=Nt,dn=(ln=mn.exports)&&!ln.nodeType&&ln,hn=dn&&an&&!an.nodeType&&an,un=hn&&hn.exports===dn?cn.Buffer:void 0,pn=un?un.allocUnsafe:void 0,an.exports=function(t,e){if(e)return t.slice();var n=t.length,o=pn?pn(n):new t.constructor(n);return t.copy(o),o};var gn=mn.exports,vn=Nt.Uint8Array,bn=vn;var yn=function(t){var e=new t.constructor(t.byteLength);return new bn(e).set(new bn(t)),e};var wn=function(t,e){var n=e?yn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var Cn=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e},En=Wt,xn=Object.create,Sn=function(){function t(){}return function(e){if(!En(e))return{};if(xn)return xn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var On=function(t,e){return function(n){return t(e(n))}},_n=On(Object.getPrototypeOf,Object),Nn=Object.prototype;var An=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Nn)},jn=Sn,Tn=_n,Pn=An;var Ln=function(t){return"function"!=typeof t.constructor||Pn(t)?{}:jn(Tn(t))};var Dn=function(t){return null!=t&&"object"==typeof t},kn=Ft,$n=Dn;var In=function(t){return $n(t)&&"[object Arguments]"==kn(t)},Mn=Dn,Rn=Object.prototype,Fn=Rn.hasOwnProperty,Wn=Rn.propertyIsEnumerable,Bn=In(function(){return arguments}())?In:function(t){return Mn(t)&&Fn.call(t,"callee")&&!Wn.call(t,"callee")},zn=Bn,qn=Array.isArray;var Un=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Hn=Ut,Xn=Un;var Vn=function(t){return null!=t&&Xn(t.length)&&!Hn(t)},Yn=Vn,Gn=Dn;var Zn=function(t){return Gn(t)&&Yn(t)},Jn={exports:{}};var Kn=function(){return!1};!function(t,e){var n=Nt,o=Kn,i=e&&!e.nodeType&&e,r=i&&t&&!t.nodeType&&t,s=r&&r.exports===i?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||o;t.exports=a}(Jn,Jn.exports);var Qn=Jn.exports,to=Ft,eo=_n,no=Dn,oo=Function.prototype,io=Object.prototype,ro=oo.toString,so=io.hasOwnProperty,ao=ro.call(Object);var lo=function(t){if(!no(t)||"[object Object]"!=to(t))return!1;var e=eo(t);if(null===e)return!0;var n=so.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ro.call(n)==ao},co=Ft,ho=Un,uo=Dn,po={};po["[object Float32Array]"]=po["[object Float64Array]"]=po["[object Int8Array]"]=po["[object Int16Array]"]=po["[object Int32Array]"]=po["[object Uint8Array]"]=po["[object Uint8ClampedArray]"]=po["[object Uint16Array]"]=po["[object Uint32Array]"]=!0,po["[object Arguments]"]=po["[object Array]"]=po["[object ArrayBuffer]"]=po["[object Boolean]"]=po["[object DataView]"]=po["[object Date]"]=po["[object Error]"]=po["[object Function]"]=po["[object Map]"]=po["[object Number]"]=po["[object Object]"]=po["[object RegExp]"]=po["[object Set]"]=po["[object String]"]=po["[object WeakMap]"]=!1;var fo=function(t){return uo(t)&&ho(t.length)&&!!po[co(t)]};var mo=function(t){return function(e){return t(e)}},go={exports:{}};!function(t,e){var n=St,o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,r=i&&i.exports===o&&n.process,s=function(){try{var t=i&&i.require&&i.require("util").types;return t||r&&r.binding&&r.binding("util")}catch(e){}}();t.exports=s}(go,go.exports);var vo=go.exports,bo=fo,yo=mo,wo=vo&&vo.isTypedArray,Co=wo?yo(wo):bo;var Eo=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},xo=nn,So=it,Oo=Object.prototype.hasOwnProperty;var _o=function(t,e,n){var o=t[e];Oo.call(t,e)&&So(o,n)&&(void 0!==n||e in t)||xo(t,e,n)},No=_o,Ao=nn;var jo=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var a=e[r],l=o?o(n[a],t[a],a,n,t):void 0;void 0===l&&(l=t[a]),i?Ao(n,a,l):No(n,a,l)}return n};var To=/^(?:0|[1-9]\d*)$/;var Po=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&To.test(t))&&t>-1&&t%1==0&&t<e},Lo=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o},Do=zn,ko=qn,$o=Qn,Io=Po,Mo=Co,Ro=Object.prototype.hasOwnProperty;var Fo=function(t,e){var n=ko(t),o=!n&&Do(t),i=!n&&!o&&$o(t),r=!n&&!o&&!i&&Mo(t),s=n||o||i||r,a=s?Lo(t.length,String):[],l=a.length;for(var c in t)!e&&!Ro.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Io(c,l))||a.push(c);return a};var Wo=Wt,Bo=An,zo=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},qo=Object.prototype.hasOwnProperty;var Uo=Fo,Ho=function(t){if(!Wo(t))return zo(t);var e=Bo(t),n=[];for(var o in t)("constructor"!=o||!e&&qo.call(t,o))&&n.push(o);return n},Xo=Vn;var Vo=function(t){return Xo(t)?Uo(t,!0):Ho(t)},Yo=jo,Go=Vo;var Zo=sn,Jo=gn,Ko=wn,Qo=Cn,ti=Ln,ei=zn,ni=qn,oi=Zn,ii=Qn,ri=Ut,si=Wt,ai=lo,li=Co,ci=Eo,di=function(t){return Yo(t,Go(t))};var hi=Ke,ui=sn,pi=fn,fi=function(t,e,n,o,i,r,s){var a=ci(t,n),l=ci(e,n),c=s.get(l);if(c)Zo(t,n,c);else{var d=r?r(a,l,n+"",t,e,s):void 0,h=void 0===d;if(h){var u=ni(l),p=!u&&ii(l),f=!u&&!p&&li(l);d=l,u||p||f?ni(a)?d=a:oi(a)?d=Qo(a):p?(h=!1,d=Jo(l,!0)):f?(h=!1,d=Ko(l,!0)):d=[]:ai(l)||ei(l)?(d=a,ei(a)?d=di(a):si(a)&&!ri(a)||(d=ti(l))):h=!1}h&&(s.set(l,d),i(d,l,o,r,s),s.delete(l)),Zo(t,n,d)}},mi=Wt,gi=Vo,vi=Eo;var bi=function t(e,n,o,i,r){e!==n&&pi(n,(function(s,a){if(r||(r=new hi),mi(s))fi(e,n,a,o,t,i,r);else{var l=i?i(vi(e,a),s,a+"",e,n,r):void 0;void 0===l&&(l=s),ui(e,a,l)}}),gi)};var yi=function(t){return t};var wi=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},Ci=Math.max;var Ei=function(t,e,n){return e=Ci(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=Ci(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=o[i];return a[e]=n(s),wi(t,this,a)}};var xi=function(t){return function(){return t}},Si=tn,Oi=Si?function(t,e){return Si(t,"toString",{configurable:!0,enumerable:!1,value:xi(e),writable:!0})}:yi,_i=Date.now;var Ni=function(t){var e=0,n=0;return function(){var o=_i(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},Ai=Ni(Oi),ji=yi,Ti=Ei,Pi=Ai;var Li=it,Di=Vn,ki=Po,$i=Wt;var Ii=function(t,e){return Pi(Ti(t,e,ji),t+"")},Mi=function(t,e,n){if(!$i(n))return!1;var o=typeof e;return!!("number"==o?Di(n)&&ki(e,n.length):"string"==o&&e in n)&&Li(n[e],t)};var Ri=bi;const Fi=nt(function(t){return Ii((function(e,n){var o=-1,i=n.length,r=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(r=t.length>3&&"function"==typeof r?(i--,r):void 0,s&&Mi(n[0],n[1],s)&&(r=i<3?void 0:r,i=1),e=Object(e);++o<i;){var a=n[o];a&&t(e,a,o,r)}return e}))}((function(t,e,n,o){Ri(t,e,n,o)}))),Wi=()=>crypto.randomUUID(),Bi=(t="",e)=>{if(!e)return!1;const n=/[|\\{}()[\]^*$+?.]/g;let o="string"==typeof e?[e]:e;o=o.map((t=>"*"===t?"":t.replace(n,"\\$&")));let i=!0;return o.length&&(i=!new RegExp(o.join("|"),"i").exec(t)),i},zi=t=>{var e;const n=null==(e=t.className)?void 0:e.match(k);return n&&L[n[0]]},qi=t=>Array.from(new Set(t)),Ui=t=>{let e;if(t){const{attrs:n={}}=t;e=n.id||t.id||Wi(),t.id=e}else e=Wi();return e},Hi=(t,e)=>Fi({},t,e,((t,e)=>Array.isArray(t)?null!=e?qi(t.concat(e)):e:Array.isArray(e)?null!=t?qi(e.concat(t)):e:void 0)),Xi=t=>{let e;if(null===t||!("object"==typeof t)||t instanceof Promise)return t;if(t instanceof Date)return e=new Date,e.setTime(t.getTime()),e;if(Array.isArray(t)){e=[];for(let n=0,o=t.length;n<o;n++)e[n]=Xi(t[n]);return e}if(t instanceof Object){e={};for(const n in t)Object.hasOwn(t,n)&&(e[n]=Xi(t[n]));return e}throw new Error("Unable to copy Object, type not supported.")},Vi=(t,e)=>t/e*100,Yi=t=>`${t.toString()}%`,Gi=Object.create(null,{get:{value:t=>{var e;const n=null==(e=window.sessionStorage)?void 0:e.getItem(t);try{return JSON.parse(n)}catch(o){return n}}},set:{value:(t,e)=>{var n;try{return null==(n=window.sessionStorage)?void 0:n.setItem(t,JSON.stringify(e))}catch(o){}}}}),Zi=t=>A.some((e=>new RegExp(`^${e}.`).test(t))),Ji=t=>t.startsWith("external");function Ki(t,e=H){let n=0;return function(...o){const i=Date.now();i-n>=e&&(n=i,t.apply(this,o))}}function Qi(t){return t}function tr(){}function er(t=Object.create(null)){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return Object.create(null)}return t}var nr=Ft,or=Dn;var ir=function(t){return"symbol"==typeof t||or(t)&&"[object Symbol]"==nr(t)},rr=qn,sr=ir,ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lr=/^\w*$/;var cr=function(t,e){if(rr(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!sr(t))||(lr.test(t)||!ar.test(t)||null!=e&&t in Object(e))},dr=Be;function hr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(hr.Cache||dr),n}hr.Cache=dr;var ur=hr;var pr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fr=/\\(\\)?/g,mr=function(t){var e=ur(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(pr,(function(t,n,o,i){e.push(o?i.replace(fr,"$1"):n||t)})),e}));var gr=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i},vr=qn,br=ir,yr=At?At.prototype:void 0,wr=yr?yr.toString:void 0;var Cr=function t(e){if("string"==typeof e)return e;if(vr(e))return gr(e,t)+"";if(br(e))return wr?wr.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},Er=Cr;var xr=qn,Sr=cr,Or=mr,_r=function(t){return null==t?"":Er(t)};var Nr=function(t,e){return xr(t)?t:Sr(t,e)?[t]:Or(_r(t))},Ar=ir;var jr=function(t){if("string"==typeof t||Ar(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},Tr=_o,Pr=Nr,Lr=Po,Dr=Wt,kr=jr;var $r=function(t,e,n,o){if(!Dr(t))return t;for(var i=-1,r=(e=Pr(e,t)).length,s=r-1,a=t;null!=a&&++i<r;){var l=kr(e[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(i!=s){var d=a[l];void 0===(c=o?o(d,l,a):void 0)&&(c=Dr(d)?d:Lr(e[i+1])?[]:{})}Tr(a,l,c),a=a[l]}return t};const Ir=nt((function(t,e,n){return null==t?t:$r(t,e,n)}));var Mr=Nr,Rr=jr;var Fr=function(t,e){for(var n=0,o=(e=Mr(e,t)).length;null!=t&&n<o;)t=t[Rr(e[n++])];return n&&n==o?t:void 0};const Wr=nt((function(t,e,n){var o=null==t?void 0:Fr(t,e);return void 0===o?n:o})),Br=Ir,zr=t=>Number.isInteger(Number(t)),qr=(t,e)=>{const n=e||t.parentElement;return Array.prototype.slice.call(n.childNodes).indexOf(t)},Ur=(t,e,n)=>{const o=n.split("||"),i=qi(e).map((e=>t.find((t=>{const n=o.find((e=>!!Wr(t,e)));return n&&Wr(t,n)===e})))).filter(Boolean).concat(t);return qi(i)},Hr=(t,e,n)=>{for(let o=0;o<t.length;o++)e.call(n,t[o],o)},Xr=(t,e)=>{const n=[];return Hr(t,((t,o)=>n.push(e(t,o)))),n},Vr={},Yr=t=>t.replace(/\b\w/g,(t=>t.toUpperCase())),Gr=()=>-1!==window.navigator.userAgent.indexOf("MSIE "),Zr={capitalize:Yr,safeAttrName:t=>{if(Vr[t])return Vr[t];const e=({className:"class"}[t]||t).replace(/^\d+/,"").replace(/[^a-zA-Z0-9-:]/g,"");return Vr[t]=e,e},forEach:Hr,copyObj:t=>window.JSON.parse(window.JSON.stringify(t)),map:Xr,subtract:(t,e)=>e.filter((e=>!~t.indexOf(e))),indexOfNode:qr,isInt:zr,get:Wr,orderObjectsBy:Ur,isIE:Gr},Jr={getStyle:(t,e=!1)=>{let n;return window.getComputedStyle?n=window.getComputedStyle(t,null):t.currentStyle&&(n=t.currentStyle),e?n[e]:n},fadeOut:(t,e=250)=>{const n=1/(e/60);t.style.opacity=1,function e(){const o=Number(t.style.opacity)-n;o>0?(t.style.opacity=o,window.requestAnimationFrame(e)):t.remove()}()},slideDown:(t,e=250,n=!1)=>{t.style.display="block";const o=Jr.getStyle(t),i=parseInt(o.height,10),r=i/(e/60);t.style.height="0px",function e(){const o=parseFloat(t.style.height),s=o+r;o<i?(t.style.height=s+"px",window.requestAnimationFrame(e)):(t.style.height="auto",n&&n(t))}()},slideUp:(t,e=250,n=!1)=>{const o=Jr.getStyle(t),i=parseInt(o.height),r=o.overflow;t.style.overflow="hidden",t.style.height=i+"px";const s=o.minHeight;t.style.minHeight="auto";const a=parseFloat(i/(e/60)).toFixed(2);!function e(){const o=parseInt(t.style.height,10)-a;o>0?(t.style.height=o+"px",window.requestAnimationFrame(e)):(t.style.overflow=r,t.style.display="none",t.style.minHeight=s,delete t.style.height,n&&n(t))}()},slideToggle:(t,e=250,n="none"===Jr.getStyle(t,"display"))=>{n?Jr.slideDown(t,e):Jr.slideUp(t,e)}},Kr="no-transition",Qr={debug:!1,bubbles:!0,formeoLoaded:t=>{},onAdd:()=>{},onUpdate:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onUpdateStage:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onUpdateRow:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onUpdateColumn:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onUpdateField:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onRender:t=>{var e;return(null==(e=es.opts)?void 0:e.debug)&&void 0},onSave:t=>{},confirmClearAll:t=>{window.confirm(t.confirmationMessage)&&t.clearAllAction(t)}},ts=({src:t,...e},n=V)=>{var o,i;const r=new window.CustomEvent(n,{detail:e,bubbles:(null==(o=es.opts)?void 0:o.debug)||(null==(i=es.opts)?void 0:i.bubbles)});return r.data=(t||document).dispatchEvent(r),r},es={init:function(t){return this.opts={...Qr,...t},this},formeoSaved:t=>ts(t,X),formeoUpdated:t=>ts(t,V),formeoCleared:t=>ts(t,"formeoCleared"),formeoOnRender:t=>ts(t,Y),formeoConditionUpdated:t=>ts(t,"formeoConditionUpdated")},ns=Ki((()=>{es.opts.onUpdate({timeStamp:window.performance.now(),type:V,detail:Fd.formData})}),U);let os;document.addEventListener(V,ns),document.addEventListener("formeoUpdatedStage",(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener("formeoUpdatedRow",(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener("formeoUpdatedColumn",(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener("formeoUpdatedField",(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener(Y,(t=>{const{timeStamp:e,type:n,detail:o}=t;es.opts.onRender({timeStamp:e,type:n,detail:o})})),document.addEventListener("confirmClearAll",(t=>{t={timeStamp:t.timeStamp,type:t.type,confirmationMessage:t.detail.confirmationMessage,clearAllAction:t.detail.clearAllAction,btnCoords:t.detail.btnCoords},es.opts.confirmClearAll(t)})),document.addEventListener(X,(({timeStamp:t,type:e,detail:{formData:n}})=>{const o={timeStamp:t,type:e,formData:n};es.opts.onSave(o)})),document.addEventListener("formeoLoaded",(t=>{es.opts.formeoLoaded(t.detail.formeo)})),window.addEventListener("resize",(function(){os=os||window.requestAnimationFrame((()=>{os=!1;for(const t of Object.values(kd.data))t.dom.classList.add(Kr),Id.dom.classList.add(Kr),Id.panels.nav.refresh(),t.refreshFieldPanels()}))}));var is=Be,rs=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ss=function(t){return this.__data__.has(t)};function as(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new is;++e<n;)this.add(t[e])}as.prototype.add=as.prototype.push=rs,as.prototype.has=ss;var ls=as,cs=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1},ds=function(t,e){return t.has(e)};var hs=function(t,e,n,o,i,r){var s=1&n,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=r.get(t),d=r.get(e);if(c&&d)return c==e&&d==t;var h=-1,u=!0,p=2&n?new ls:void 0;for(r.set(t,e),r.set(e,t);++h<a;){var f=t[h],m=e[h];if(o)var g=s?o(m,f,h,e,t,r):o(f,m,h,t,e,r);if(void 0!==g){if(g)continue;u=!1;break}if(p){if(!cs(e,(function(t,e){if(!ds(p,e)&&(f===t||i(f,t,n,o,r)))return p.push(e)}))){u=!1;break}}else if(f!==m&&!i(f,m,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};var us=vn,ps=it,fs=hs,ms=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n},gs=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},vs=At?At.prototype:void 0,bs=vs?vs.valueOf:void 0;var ys=function(t,e,n,o,i,r,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new us(t),new us(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ps(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=ms;case"[object Set]":var l=1&o;if(a||(a=gs),t.size!=e.size&&!l)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var d=fs(a(t),a(e),o,i,r,s);return s.delete(t),d;case"[object Symbol]":if(bs)return bs.call(t)==bs.call(e)}return!1};var ws=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t},Cs=qn;var Es=function(t,e,n){var o=e(t);return Cs(t)?o:ws(o,n(t))};var xs=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}return r},Ss=function(){return[]},Os=Object.prototype.propertyIsEnumerable,_s=Object.getOwnPropertySymbols,Ns=_s?function(t){return null==t?[]:(t=Object(t),xs(_s(t),(function(e){return Os.call(t,e)})))}:Ss,As=On(Object.keys,Object),js=An,Ts=As,Ps=Object.prototype.hasOwnProperty;var Ls=Fo,Ds=function(t){if(!js(t))return Ts(t);var e=[];for(var n in Object(t))Ps.call(t,n)&&"constructor"!=n&&e.push(n);return e},ks=Vn;var $s=Es,Is=Ns,Ms=function(t){return ks(t)?Ls(t):Ds(t)};var Rs=function(t){return $s(t,Ms,Is)},Fs=Object.prototype.hasOwnProperty;var Ws=function(t,e,n,o,i,r){var s=1&n,a=Rs(t),l=a.length;if(l!=Rs(e).length&&!s)return!1;for(var c=l;c--;){var d=a[c];if(!(s?d in e:Fs.call(e,d)))return!1}var h=r.get(t),u=r.get(e);if(h&&u)return h==e&&u==t;var p=!0;r.set(t,e),r.set(e,t);for(var f=s;++c<l;){var m=t[d=a[c]],g=e[d];if(o)var v=s?o(g,m,d,e,t,r):o(m,g,d,t,e,r);if(!(void 0===v?m===g||i(m,g,n,o,r):v)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var b=t.constructor,y=e.constructor;b==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(p=!1)}return r.delete(t),r.delete(e),p},Bs=le(Nt,"DataView"),zs=ce,qs=le(Nt,"Promise"),Us=le(Nt,"Set"),Hs=le(Nt,"WeakMap"),Xs=Ft,Vs=Gt,Ys="[object Map]",Gs="[object Promise]",Zs="[object Set]",Js="[object WeakMap]",Ks="[object DataView]",Qs=Vs(Bs),ta=Vs(zs),ea=Vs(qs),na=Vs(Us),oa=Vs(Hs),ia=Xs;(Bs&&ia(new Bs(new ArrayBuffer(1)))!=Ks||zs&&ia(new zs)!=Ys||qs&&ia(qs.resolve())!=Gs||Us&&ia(new Us)!=Zs||Hs&&ia(new Hs)!=Js)&&(ia=function(t){var e=Xs(t),n="[object Object]"==e?t.constructor:void 0,o=n?Vs(n):"";if(o)switch(o){case Qs:return Ks;case ta:return Ys;case ea:return Gs;case na:return Zs;case oa:return Js}return e});var ra=Ke,sa=hs,aa=ys,la=Ws,ca=ia,da=qn,ha=Qn,ua=Co,pa="[object Arguments]",fa="[object Array]",ma="[object Object]",ga=Object.prototype.hasOwnProperty;var va=function(t,e,n,o,i,r){var s=da(t),a=da(e),l=s?fa:ca(t),c=a?fa:ca(e),d=(l=l==pa?ma:l)==ma,h=(c=c==pa?ma:c)==ma,u=l==c;if(u&&ha(t)){if(!ha(e))return!1;s=!0,d=!1}if(u&&!d)return r||(r=new ra),s||ua(t)?sa(t,e,n,o,i,r):aa(t,e,l,n,o,i,r);if(!(1&n)){var p=d&&ga.call(t,"__wrapped__"),f=h&&ga.call(e,"__wrapped__");if(p||f){var m=p?t.value():t,g=f?e.value():e;return r||(r=new ra),i(m,g,n,o,r)}}return!!u&&(r||(r=new ra),la(t,e,n,o,i,r))},ba=Dn;var ya=function t(e,n,o,i,r){return e===n||(null==e||null==n||!ba(e)&&!ba(n)?e!=e&&n!=n:va(e,n,o,i,t,r))},wa=ya;const Ca=nt((function(t,e){return wa(t,e)}));class Ea{constructor(t,e=Object.create(null)){n(this,"toJSON",((t,e)=>JSON.stringify(t,null,e))),n(this,"get",(t=>Wr(this.data,t))),n(this,"getChangeType",((t,e)=>{const n=W.find((({condition:n})=>n(t,e)))||{type:"unknown"};return n.desc="added"===n.type?`${t} to ${e}`:e,n})),n(this,"add",((t,e=Object.create(null))=>{const{id:n}=e,o=t||n||Ui();return this.set(o,e)})),n(this,"remove",(t=>{const e=t.split("."),n=e.pop(),o=this.get(e);return Array.isArray(o)?o.splice(Number(n),1):delete o[n],o})),n(this,"getData",(()=>Object.entries(this.data).reduce(((t,[e,n])=>(t[e]=(null==n?void 0:n.data)?n.getData():n,t)),{}))),n(this,"setCallbacks",{}),n(this,"configVal",Object.create(null)),this.name=t,this.data=e,this.dataPath=""}get size(){return Object.keys(this.data).length}get js(){return this.data}get json(){return this.data}set(t,e){const n=Wr(this.data,t);if(Ca(n,e))return this.data;const o=Br(this.data,t,e),i=Array.isArray(t)?t.join("."):t,r=Object.keys(this.setCallbacks).filter((t=>new RegExp(t).test(i))),s={newVal:e,oldVal:n,path:t};for(const a of r)for(const t of this.setCallbacks[a])t(s);if(!this.disableEvents){const i=this.getChangeType(n,e),r={entity:this,dataPath:this.dataPath.replace(/\.+$/,""),changePath:this.dataPath+t,value:e,data:o,change:`${i.type}: ${i.desc}`,src:this.dom};n&&(r.previousValue=n),es.formeoUpdated(r)}return o}addSetCallback(t,e){this.setCallbacks[t]?this.setCallbacks[t].push(e):this.setCallbacks[t]=[e]}removeSetCallback(t,e){this.setCallbacks[t]=this.setCallbacks[t].filter((t=>t!==e))}empty(){this.data=Object.create(null)}}
9
9
  /**!
10
10
  * Sortable 1.15.3
11
11
  * @author RubaXa <trash@rubaxa.org>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "formeo",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "type": "module",
5
5
  "main": "dist/formeo.cjs.js",
6
6
  "module": "dist/formeo.es.js",