@golemui/gui-lit 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/{currency.element-YyL4TeL0.js → currency.element-BHXWcOEu.js} +57 -54
- package/index.js +4 -4
- package/index.umd.cjs +24 -23
- package/{markdown.element-CNp4wbg9.js → markdown.element-p-kC47D7.js} +22 -21
- package/{number.element-B6TsvHMK.js → number.element-BhEyoOtc.js} +6 -6
- package/package.json +6 -6
- package/{textarea.element-Cu9ZW3K4.js → textarea.element-HThYqdR_.js} +5 -4
package/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(_,_e){typeof exports=="object"&&typeof module<"u"?_e(exports,require("@golemui/core"),require("@golemui/gui-shared"),require("@golemui/lit"),require("lit"),require("lit/decorators.js"),require("@lit/context"),require("rxjs"),require("lit/directives/class-map.js"),require("lit-html/directives/repeat.js"),require("lit/directives/live.js"),require("lit-html/directives/style-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/repeat.js"),require("lit/directives/unsafe-html.js")):typeof define=="function"&&define.amd?define(["exports","@golemui/core","@golemui/gui-shared","@golemui/lit","lit","lit/decorators.js","@lit/context","rxjs","lit/directives/class-map.js","lit-html/directives/repeat.js","lit/directives/live.js","lit-html/directives/style-map.js","lit/directives/if-defined.js","lit/directives/repeat.js","lit/directives/unsafe-html.js"],_e):(_=typeof globalThis<"u"?globalThis:_||self,_e(_["gui-lit"]={},_.core,null,_.lit$1,_.lit,_.decorators_js,_.context,_.rxjs,_.classMap_js,_.repeat_js,_.live_js,_.styleMap_js,_.ifDefined_js,_.repeat_js$1,_.unsafeHtml_js))})(this,(function(_,_e,Nu,h,d,o,g,Ei,$,he,Oi,We,Vt,Pi,Va){"use strict";const Ii={LAYOUTS:"LAYOUTS",DISPLAYS:"DISPLAYS"};function Ua(e){return function(t,i=()=>!0){return{kind:"leaf",selectorType:e,matcher:i,config:t}}}function j(e,t){return typeof e=="function"?e:{type:t,...e??{}}}const Wa=(e,t)=>({type:"ITEMS",itemType:Ii.DISPLAYS,items:[{render:e}],tags:t??[]}),St=new Map;function Ai(e,t){if(St.has(e))throw new Error(`Item type "${e}" is already registered.`);St.set(e,t)}function Et(e){const t=St.get(e);if(!t)throw new Error(`No handler registered for item type "${e}". Did you forget to import the registration module?`);return t}function Li(e){return St.has(e)}function k(e){const t=l=>{if(!e.sensibleDefaults)return{};let u={...e.sensibleDefaults.base};for(const p of l){const c=p.config;for(const y of e.sensibleDefaults.fields){const f=y;c[f]!=null&&(u={...u,[f]:c[f]})}}return u},i=(l,u)=>e.sensibleDefaults?e.sensibleDefaults.apply(l,u):l,s=l=>{switch(e.entryShape){case"bare":return{baseDef:l};case"keyed":{const u=l;return{baseDef:u.def,path:u.key}}case"compound":{const u=l;return{baseDef:u.def,children:u.children}}}},a={rollUpSensibleDefaults:t,applySensibleDefaults:i,mapToWidget:e.mapToWidget,parseEntry:s,...e.afterMerge?{afterMerge:e.afterMerge}:{},...e.buildCustomWidget?{buildCustomWidget:e.buildCustomWidget}:{},...e.getChildren?{getChildren:e.getChildren}:{}};Ai(e.itemType,a);const n=Ua(e.itemType);return{gsl:n,gslByUid:(l,u)=>n(u,(p=>p.uid===l))}}function R(e){const{uid:t,path:i,label:s,disabled:a,readonly:n,defaultValue:r,tags:l,type:u,size:p,onLoad:c,onChange:y,onFilter:f,on:D,states:C,include:Se,exclude:Ba,validator:qa,...Ue}=e;return Ue}function Ga(e){return e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").replace(/\s+/g," ").trim().replace(/\b\w/g,t=>t.toUpperCase()):""}function W(e,t){return e.label!=null||t.suppressAutomaticLabels||!e.path?e:{...e,label:Ga(e.path)}}function Ce(e,t){return e.placeholder!=null||t.suppressAutomaticPlaceholders||!e.path?e:{...e,placeholder:e.path}}function Ha(e){switch(e.type){case"text":return Ka(e);case"number":return Xa(e);case"boolean":return Ya(e);default:throw new Error(`Unsupported field type "${e.type}"`)}}function Ya(e){const t=R(e);return{uid:e.uid??"",kind:"input",type:"toggle",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"boolean")}:{},props:t}}function Ka(e){const t=R(e);return{uid:e.uid??"",kind:"input",type:"textinput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},props:{placeholder:t.placeholder??"",...t},validator:j(e.validator,"string")}}function Xa(e){const t=R(e);return{uid:e.uid??"",kind:"input",type:"number",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},props:{placeholder:t.placeholder??"",...t},validator:j(e.validator,"number")}}k({itemType:"INPUTS",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>{let i=W(e,t);return i=Ce(i,t),i}},mapToWidget:Ha}),k({itemType:"SELECT",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"select",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:R(e)})}),k({itemType:"DROPDOWN",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"dropdown",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:R(e)})}),k({itemType:"RADIOGROUP",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>W(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"radiogroup",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:R(e)})}),k({itemType:"CHECKBOX",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>W(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"checkbox",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"boolean")}:{},props:R(e)})}),k({itemType:"TEXTAREA",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"textarea",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"string")}:{},props:R(e)})}),k({itemType:"PASSWORD",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"password",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"string")}:{},props:R(e)})}),k({itemType:"CURRENCY",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"currency",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"number")}:{},props:R(e)})}),k({itemType:"MARKDOWN",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"markdown",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"string")}:{},props:R(e)})}),k({itemType:"LIST",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>W(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"list",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:R(e)})}),k({itemType:"CALENDAR",entryShape:"bare",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>W(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"calendar",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"string")}:{},props:R(e)})}),k({itemType:"DATE_INPUT",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>W(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"dateInput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"string")}:{},props:R(e)})}),k({itemType:"DATE_PICKER",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"datePicker",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"string")}:{},props:R(e)})}),k({itemType:"RANGE_CALENDAR",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>W(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeCalendar",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"array")}:{},props:R(e)})}),k({itemType:"RANGE_DATE_INPUT",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>W(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeDateInput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"array")}:{},props:R(e)})}),k({itemType:"RANGE_DATE_PICKER",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeDatePicker",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"array")}:{},props:R(e)})});function Ja(e){const t={};return e.addLabel!=null&&(t.addLabel=e.addLabel),e.removeLabel!=null&&(t.removeLabel=e.removeLabel),e.limit!=null&&(t.limit=e.limit),e.title!=null&&(t.title=e.title),e.addButtonIcon!=null&&(t.addButtonIcon=e.addButtonIcon),e.removeButtonIcon!=null&&(t.removeButtonIcon=e.removeButtonIcon),t}function Qa(e){return{uid:e.uid??"",kind:"input",type:"repeater",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"array")}:{},props:{...Ja(e),template:{kind:"layout",type:"flex",children:[],props:{direction:"column"}}}}}function Ut(e,t){for(const i of e){if(typeof i=="function")continue;const s=i;typeof s.path=="string"&&s.path&&!s.path.startsWith(t)&&(s.path=t+s.path),"children"in s&&Array.isArray(s.children)&&Ut(s.children,t);const a=s.props;a?.template?.children&&Array.isArray(a.template.children)&&Ut(a.template.children,t)}}function ja(e,t){const i=t.walkChildren(t.children??[]),s=e.kind==="static"?e.def.path??"":e.fn({})?.path??"";s&&Ut(i,s+".items.");const a={kind:"layout",type:"flex",uid:"",children:i,props:{direction:"column"}};if(e.kind==="static"){const r=t.mapStaticDef(e.def,"REPEATER");return{...r,props:{...r.props,template:a}}}const n=e.fn;return(r=>{const l=n(r),u=t.mapStaticDef(l,"REPEATER");return{...u,props:{...u.props,template:a}}})}function es(e){return{baseDef:e.def,path:e.key,children:e.children}}function ts(e){return e.children}Ai("REPEATER",{parseEntry:es,rollUpSensibleDefaults:()=>({}),applySensibleDefaults:e=>e,mapToWidget:Qa,buildCustomWidget:ja,getChildren:ts});const Ti={onLoad:"load",onChange:"change",onFilter:"filter",onBlur:"blur"},is=Object.keys(Ti);function Mi(e){if(e.length>0)return null;try{const t=e();return typeof t=="string"?t:null}catch{return null}}class as{extractOnClickFromMergeResult(t,i,s){if(t.kind==="dynamic"){const r=t.fn;return{kind:"dynamic",fn:u=>{const p=r(u);return this.wireOnClick(p,i,s)}}}const a=t.def;return{kind:"static",def:this.wireOnClick(a,i,s)}}wireOnClick(t,i,s){const a=s.next(),n=t.onClick;if(typeof n=="function"){const{onClick:r,...l}=t,u=n(void 0);return typeof u=="string"?{...l,uid:a,on:{click:u}}:(i.set(a,p=>n(p.data)),{...l,uid:a,on:{click:a}})}return{...t,uid:a}}wireInputLayoutEvents(t,i,s){if(t.kind==="dynamic"){const n=t.fn;return{kind:"dynamic",fn:l=>{const u=n(l);return this.wireEventProperties(u,i,s)}}}return{kind:"static",def:this.wireEventProperties(t.def,i,s)}}wireEventProperties(t,i,s){const a={...t.on||{}};let n=!1;const r={...t};for(const l of is){const u=t[l];if(u==null)continue;const p=Ti[l];if(typeof u=="function"){const c=Mi(u);if(c!=null)a[p]=c;else{const y=s.next();i.set(y,u),a[p]=y}n=!0}else typeof u=="string"&&(a[p]=u,n=!0);delete r[l]}return n&&(r.on=a),r}}const Wt=new as;function ss(e){const{uid:t,label:i,actionType:s,disabled:a,on:n,onClick:r,data:l,type:u,tags:p,size:c,include:y,exclude:f,states:D,...C}=e;return{uid:t??"",kind:"action",type:"button",disabled:a,actionType:s,label:i,...n!=null?{on:n}:{},props:C}}k({itemType:"ACTIONS",entryShape:"bare",mapToWidget:ss,afterMerge:(e,t)=>Wt.extractOnClickFromMergeResult(e,t.eventRegistry,t.eventIdGenerator)});function ns(e){const{uid:t,widgetName:i,tags:s,size:a,onChange:n,include:r,exclude:l,...u}=e,{on:p,...c}=u;return{uid:t??"",kind:"layout",type:i??"flex",props:{direction:c.direction??"column",...c},children:[]}}function rs(e,t){const i=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"LAYOUTS"),children:i};const s=e.fn;return(a=>{const n=s(a);return{...t.mapStaticDef(n,"LAYOUTS"),children:i}})}function os(e){return e.children}k({itemType:"LAYOUTS",entryShape:"compound",mapToWidget:ns,buildCustomWidget:rs,getChildren:os});function Ri(e){return{errors:void 0,touched:void 0,translate:void 0,...e??{},$form:e?.$form??{}}}function ls(e){return{uid:"",kind:"display",type:"renderer",props:{render:e.render}}}function ds(e,t){if(e.kind==="static"){const s=e.def;return(a=>({uid:"",kind:"display",type:"renderer",...s.include!=null?{include:s.include}:{},...s.exclude!=null?{exclude:s.exclude}:{},props:{render:s.render(Ri(a))}}))}const i=e.fn;return(s=>{const a=i(s);return{uid:"",kind:"display",type:"renderer",...a.include!=null?{include:a.include}:{},...a.exclude!=null?{exclude:a.exclude}:{},props:{render:a.render(Ri(s))}}})}k({itemType:"DISPLAYS",entryShape:"bare",mapToWidget:ls,buildCustomWidget:ds}),k({itemType:"ALERTS",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:"alert",props:{text:e.text,...e.level!=null?{level:e.level}:{}}})}),k({itemType:"MARKDOWN_TEXTS",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:"markdownText",props:{md:e.md}})});function us(e){return{uid:e.uid??"",kind:"layout",type:"tabs",props:{tabs:e.tabs,renderMode:e.renderMode??"all",...e.defaultOpen!=null?{defaultOpen:e.defaultOpen}:{}},children:[]}}function ps(e,t){const i=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"TABS"),children:i};const s=e.fn;return(a=>{const n=s(a);return{...t.mapStaticDef(n,"TABS"),children:i}})}function cs(e){return e.children}k({itemType:"TABS",entryShape:"compound",mapToWidget:us,buildCustomWidget:ps,getChildren:cs});function hs(e){return{uid:e.uid??"",kind:"layout",type:"accordion",props:{sections:e.sections,renderMode:e.renderMode??"all",...e.singleOpen!=null?{singleOpen:e.singleOpen}:{},...e.defaultOpen!=null?{defaultOpen:e.defaultOpen}:{}},children:[]}}function ms(e,t){const i=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"ACCORDION"),children:i};const s=e.fn;return(a=>{const n=s(a);return{...t.mapStaticDef(n,"ACCORDION"),children:i}})}function ys(e){return e.children}k({itemType:"ACCORDION",entryShape:"compound",mapToWidget:hs,buildCustomWidget:ms,getChildren:ys}),k({itemType:"CUSTOM_INPUT",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>W(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:e.customType,path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.defaultValue!=null?{defaultValue:e.defaultValue}:{},...e.validator!=null?{validator:e.validator}:{},props:e.props??{}})}),k({itemType:"CUSTOM_ACTION",entryShape:"bare",mapToWidget:e=>{const{uid:t,label:i,disabled:s,on:a,onClick:n,data:r,customType:l,tags:u,size:p,include:c,exclude:y,states:f,props:D,...C}=e;return{uid:t??"",kind:"action",type:e.customType,label:i,disabled:s,...a!=null?{on:a}:{},props:{...D,...C}}},afterMerge:(e,t)=>Wt.extractOnClickFromMergeResult(e,t.eventRegistry,t.eventIdGenerator)}),k({itemType:"CUSTOM_DISPLAY",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:e.customType,props:e.props??{}})});function fs(e){return{uid:e.uid??"",kind:"layout",type:e.customType,props:e.props??{},children:[]}}function gs(e,t){const i=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"CUSTOM_LAYOUT"),children:i};const s=e.fn;return(a=>{const n=s(a);return{...t.mapStaticDef(n,"CUSTOM_LAYOUT"),children:i}})}function Ds(e){return e.children}k({itemType:"CUSTOM_LAYOUT",entryShape:"compound",mapToWidget:fs,buildCustomWidget:gs,getChildren:Ds}),k({itemType:"TAGS",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"tags",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"array")}:{},props:R(e)})});const Fi={INPUTS:new Set(["INPUTS","TEXTAREA","PASSWORD","SELECT","DROPDOWN","RADIOGROUP","CHECKBOX","CALENDAR","DATE_INPUT","DATE_PICKER","RANGE_CALENDAR","RANGE_DATE_INPUT","RANGE_DATE_PICKER","CURRENCY","MARKDOWN","LIST","CUSTOM_INPUT","REPEATER","TAGS"]),ACTIONS:new Set(["ACTIONS","CUSTOM_ACTION"]),DISPLAYS:new Set(["DISPLAYS","ALERTS","MARKDOWN_TEXTS","CUSTOM_DISPLAY"]),LAYOUTS:new Set(["LAYOUTS","TABS","ACCORDION","CUSTOM_LAYOUT"])};function bs(e,t){const i=Fi[e];return i?i.has(t):e===t}class vs{resolve(t,i){const s=[];for(const n of i)n.kind==="aggregated"?this.collectFromAggregated(n,t,s):this.collectFromLeaf(n,t,s);const a=this.rollUpSensibleDefaults(s);return{leafSelectors:s,sensibleDefaults:a}}collectFromAggregated(t,i,s){if(t.matcher(i))for(const a of t.children)this.collectFromLeaf(a,i,s)}collectFromLeaf(t,i,s){bs(t.selectorType,i.itemType??"")&&t.matcher(i)&&s.push(t)}rollUpSensibleDefaults(t){const i=new Map,s=(n,r)=>{const l=i.get(n)??[];l.push(r),i.set(n,l)};for(const n of t){const r=Fi[n.selectorType];if(r)for(const l of r)s(l,n);else s(n.selectorType,n)}const a={};for(const[n,r]of i)Li(n)&&(a[n]=Et(n).rollUpSensibleDefaults(r));return a}}const ws=new vs;class $s{deepMerge(t,i){if(i==null)return t;if(t==null||typeof t!="object"||typeof i!="object"||Array.isArray(t)||Array.isArray(i))return i;const s={...t};for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&(typeof i[a]=="object"&&!Array.isArray(i[a])&&i[a]!==null&&typeof t[a]=="object"&&!Array.isArray(t[a])&&t[a]!==null?s[a]=this.deepMerge(t[a],i[a]):s[a]=i[a]);return s}}const ks=new $s;class _s{constructor(t){this.objectUtils=t}merge(t,i,s){let a={},n=null;typeof t=="function"&&(n=t);const r=this.collectDecorators(s);for(const p of r){if(n!=null){n=this.composeRuntimeFunctions(n,p);continue}if(typeof p=="function"){const c=p({...a,...typeof t=="function"?{}:t});if(typeof c=="function"){n=this.createPromotedFunction(a,t,c,i,s);continue}a=this.objectUtils.deepMerge(a,c)}else a=this.objectUtils.deepMerge(a,p)}if(n!=null)return{kind:"dynamic",fn:this.wrapWithSensibleDefaults(n,a,i,s)};const l=this.objectUtils.deepMerge(t,a);return{kind:"static",def:this.applySensibleDefaults({...l},i,s)}}collectDecorators(t){const i=[];for(const s of t.leafSelectors){const a=s.config;a.override!=null&&i.push(a.override)}return i}applySensibleDefaults(t,i,s){if(!Li(i))return t;const a=s.sensibleDefaults[i]??{};return Et(i).applySensibleDefaults(t,a)}createPromotedFunction(t,i,s,a,n){return r=>{const l=s(r);let u=this.objectUtils.deepMerge(t,l);return u=this.objectUtils.deepMerge(u,i),this.applySensibleDefaults(u,a,n)}}wrapWithSensibleDefaults(t,i,s,a){return n=>{let r=t(n);return Object.keys(i).length>0&&(r=this.objectUtils.deepMerge(i,r)),this.applySensibleDefaults(r,s,a)}}composeRuntimeFunctions(t,i){return typeof i=="function"?s=>{const a=t(s),n=i(a);return typeof n=="function"?n(s):this.objectUtils.deepMerge(n,a)}:s=>{const a=t(s);return this.objectUtils.deepMerge(a,i)}}}const Cs=new _s(ks);class xs{mapToWidget(t,i){if(t.kind==="dynamic"){const s=t.fn;return(a=>{const n=s(a);return this.mapStaticDef(n,i)})}return this.mapStaticDef(t.def,i)}mapStaticDef(t,i){const s=Et(i).mapToWidget(t);return this.applyBaseWidgetFields(s,t)}applyBaseWidgetFields(t,i){return i.size!=null&&(t.size=i.size),i.defaultValue!=null&&t.kind==="input"&&(t.defaultValue=i.defaultValue),i.on!=null&&(t.on=i.on),i.include!=null&&(t.include=i.include),i.exclude!=null&&(t.exclude=i.exclude),t}}const Ss=new xs;class Es{normalizeSelectors(t){const i=Array.isArray(t)?t:[t],s=[],a=[];for(const n of i)n.kind==="leaf"?a.push(n):s.push(n);return a.length>0&&s.unshift({kind:"aggregated",matcher:()=>!0,children:a}),s}extractFormConfig(){return{suppressAutomaticStack:!1}}}const Os=new Es,Ps={input:new Set(["disabled","readonly","label","validator","size"]),action:new Set(["disabled","label","size"]),layout:new Set(["size"]),display:new Set([])},zi={onChange:"change",onLoad:"load",onFilter:"filter",onClick:"click"};class Is{extractFromMergeResult(t,i){const s={};for(const l of i){const u=l.targetState,p=l.config,c=p.override&&typeof p.override!="function"?p.override:p;s[u]={...s[u]||{},...c}}if(t.kind==="dynamic"){const l=t.fn;return{cleanedResult:{kind:"dynamic",fn:p=>{const c=l(p),{states:y,...f}=c;return f}},stateData:{stateOverrides:s}}}const{states:a,...n}=t.def,r={};for(const[l,u]of Object.entries(s))r[l]={...u};if(a)for(const[l,u]of Object.entries(a))r[l]={...r[l]||{},...u};return{cleanedResult:{kind:"static",def:n},stateData:{stateOverrides:r}}}applyToWidget(t,i,s,a){const{stateOverrides:n}=i;if(Object.keys(n).length===0)return t;const r={...t},l=t.kind,u=Ps[l]||new Set;t.props&&(r.props={...t.props}),t.on&&(r.on={...t.on});for(const[p,c]of Object.entries(n))for(const[y,f]of Object.entries(c))y==="visible"?this.applyVisibility(r,p,f):zi[y]?this.applyStateEvent(r,p,y,f,s,a):u.has(y)?r[`${y}.${p}`]=f:(r.props||(r.props={}),r.props[`${y}.${p}`]=f);return r}hasStateData(t){return Object.keys(t.stateOverrides).length>0}applyVisibility(t,i,s){if(s){const a=t.include?.in||[];t.include={...t.include||{},in:[...a,i]}}else{const a=t.exclude?.from||[];t.exclude={...t.exclude||{},from:[...a,i]}}}applyStateEvent(t,i,s,a,n,r){const l=zi[s];if(t.on||(t.on={}),typeof a=="function"){const u=Mi(a);if(u!=null)t.on[`${l}.${i}`]=u;else{const p=r.next();n.set(p,a),t.on[`${l}.${i}`]=p}}else typeof a=="string"&&(t.on[`${l}.${i}`]=a)}}const As=new Is;function Ls(){let e=0;return{next:()=>`event_${e++}`}}class Ts{constructor(t,i,s,a,n){this.resolver=t,this.merger=i,this.mapper=s,this.eventWiring=a,this.stateExpansion=n}walkAndMap(t,i,s){const a=new Map,n=Ls(),r={value:0},l=new Set;return{widgets:this.walkItems(t,i,a,s,n,r,l),eventRegistry:a}}walkItems(t,i,s,a,n,r,l){return t.flatMap(u=>{if(u.type!=="ITEMS")throw new Error("Unexpected gui shortcut type");return u.items.map(p=>this.processItem(p,u.itemType,u.tags,i,s,a,n,r,l))})}processItem(t,i,s,a,n,r,l,u,p){const c=i,y=Et(i),f=y.parseEntry(t),D=this.buildBaseDef(f),C=this.buildDecoratorForMatching(D,c,s),Se=this.resolver.resolve(C,a),Ba=Se.leafSelectors.filter(re=>re.targetState!=null),qa={leafSelectors:Se.leafSelectors.filter(re=>re.targetState==null),sensibleDefaults:Se.sensibleDefaults};let Ue=this.merger.merge(D,c,qa);y.afterMerge&&(Ue=y.afterMerge(Ue,{eventRegistry:n,formConfig:r,eventIdGenerator:l})),Ue=this.eventWiring.wireInputLayoutEvents(Ue,n,l);const{cleanedResult:Za,stateData:Si}=this.stateExpansion.extractFromMergeResult(Ue,Ba);let Ee;if(y.buildCustomWidget){const re=this.buildCustomWidgetContext(f.children,a,n,r,l,u,p);Ee=this.buildCustomWidget(y,Za,re)}else Ee=this.mapper.mapToWidget(Za,c);if(typeof Ee!="function"){const re=Ee;re.uid||(re.path&&!p.has(re.path)?(re.uid=re.path,p.add(re.path)):re.uid=`dx_${u.value++}`)}if(this.stateExpansion.hasStateData(Si))if(typeof Ee=="function"){const re=Ee;Ee=(Fu=>{const zu=re(Fu);return this.stateExpansion.applyToWidget(zu,Si,n,l)})}else Ee=this.stateExpansion.applyToWidget(Ee,Si,n,l);return Ee}buildCustomWidgetContext(t,i,s,a,n,r,l){return{children:t,mapStaticDef:(u,p)=>this.mapper.mapStaticDef(u,p),walkChildren:u=>this.walkItems(u,i,s,a,n,r,l)}}buildCustomWidget(t,i,s){return t.buildCustomWidget(i,s)}buildBaseDef(t){const i=t.baseDef;return typeof i=="function"?s=>{const n=i(s??{});return t.path!=null?{...n,path:t.path}:n}:t.path!=null?{...i,path:t.path}:i}buildDecoratorForMatching(t,i,s){if(typeof t=="function")return{itemType:i,tags:[...s]};const a=[...s,..."tags"in t&&t.tags?t.tags:[]],n="uid"in t?t.uid:void 0,r="type"in t?t.type:void 0;return{itemType:i,tags:a,uid:n,type:r}}}class Ms{constructor(t,i){this.selectorNormalizer=t,this.walker=i}processDxFacade(t,i=[],s){const{defs:a,gslSelectors:n,formConfig:r}=this.prepareForm(t,i,s),{widgets:l,eventRegistry:u}=this.walker.walkAndMap(a,n,r),p=l[0];return this.buildResult({form:p},u,r)}prepareForm(t,i,s){const n=(Array.isArray(t)?[...t]:[t]).map(u=>typeof u=="function"?Wa(u):u),r=this.selectorNormalizer.normalizeSelectors(i),l={...this.selectorNormalizer.extractFormConfig(),...s};if(!l.suppressAutomaticStack){const u={def:{uid:"#root",direction:"column",widgetName:"flex"},children:n};return{defs:[{type:"ITEMS",itemType:Ii.LAYOUTS,items:[u],tags:[]}],gslSelectors:r,formConfig:l}}return{defs:n,gslSelectors:r,formConfig:l}}convertStateNames(t){const i={};for(const[s,a]of Object.entries(t))i[s.replace(/\$/g,":")]=a;return i}buildResult(t,i,s){s.states&&Object.keys(s.states).length>0&&(t={...t,states:this.convertStateNames(s.states)});const a={form:t};return i.size>0&&(a.events=n=>{const r=i.get(n.name);if(r){const l=p=>{if(p&&typeof p=="object"&&"path"in p&&!("type"in p)){const{path:c,...y}=p;for(const[f,D]of Object.entries(y))n.callback({type:"OVERRIDE_WIDGET_PROP",payload:{path:c,prop:f,value:D}})}else n.callback(p)},u={...n,callback:l,update:l};r(u)}}),s.dependencies&&(a.dependencies=s.dependencies),s.widgetLoaders&&(a.widgetLoaders=s.widgetLoaders),s.validateOn&&(a.validateOn=s.validateOn),s.itemRenderers&&(a.itemRenderers=s.itemRenderers),a}}const Rs=new Ts(ws,Cs,Ss,Wt,As),Fs=new Ms(Os,Rs);function Ni(e){return typeof e=="function"?!0:Array.isArray(e)?e.length===0||e.every(Bi):Bi(e)}function Bi(e){if(typeof e=="function")return!0;if(e===null||typeof e!="object")return!1;const t=e;return t.type==="ITEMS"&&typeof t.itemType=="string"}function zs(e){if(!e||typeof e!="object"||Array.isArray(e))return;const t=e.form;if(Ni(t))throw new Error("[GolemUI] The gui.* form definition was wrapped in an extra `{ form: ... }` object, so its fields were never resolved. Pass the gui.* array DIRECTLY as formDef (`config={{ formDef: form }}`) and put any named `states` in `formConfig`: `config={{ formDef: form, formConfig: { states } }}`. Do NOT wrap them as a `{ form: [...] }` object.")}const qi=Object.freeze({}),Ns=Object.freeze({}),Zi=new WeakMap;function Gt(e,t){return e==null?t:typeof e=="object"?e:{}}function Bs(e,t,i){if(!Ni(e))return zs(e),{formDef:e};const s=Gt(e,qi),a=Gt(t,qi),n=Gt(i,Ns);let r=Zi.get(s);r||(r=new WeakMap,Zi.set(s,r));let l=r.get(a);l||(l=new WeakMap,r.set(a,l));const u=l.get(n);if(u)return u;const p=Fs.processDxFacade(e,t,i),c={formDef:p.form,formEvent:p.events,dependencies:p.dependencies,widgetLoaders:p.widgetLoaders,validateOn:p.validateOn,itemRenderers:p.itemRenderers};return l.set(n,c),c}function m(e,t,i){function s(l,u){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:u,constr:r,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,u);const p=r.prototype,c=Object.keys(p);for(let y=0;y<c.length;y++){const f=c[y];f in l||(l[f]=p[f].bind(l))}}const a=i?.Parent??Object;class n extends a{}Object.defineProperty(n,"name",{value:e});function r(l){var u;const p=i?.Parent?new n:this;s(p,l),(u=p._zod).deferred??(u.deferred=[]);for(const c of p._zod.deferred)c();return p}return Object.defineProperty(r,"init",{value:s}),Object.defineProperty(r,Symbol.hasInstance,{value:l=>i?.Parent&&l instanceof i.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(r,"name",{value:e}),r}class Ge extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Vi extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const qs={};function Re(e){return qs}function Ht(e,t){return typeof t=="bigint"?t.toString():t}function Yt(e){return e==null}function Kt(e){const t=e.startsWith("^")?1:0,i=e.endsWith("$")?e.length-1:e.length;return e.slice(t,i)}const Ui=Symbol("evaluating");function x(e,t,i){let s;Object.defineProperty(e,t,{get(){if(s!==Ui)return s===void 0&&(s=Ui,s=i()),s},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function Zs(...e){const t={};for(const i of e){const s=Object.getOwnPropertyDescriptors(i);Object.assign(t,s)}return Object.defineProperties({},t)}function Vs(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Wi="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Gi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Xt(e){if(Gi(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const i=t.prototype;return!(Gi(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function Hi(e){return Xt(e)?{...e}:Array.isArray(e)?[...e]:e}function Jt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Yi(e,t,i){const s=new e._zod.constr(t??e._zod.def);return(!t||i?.parent)&&(s._zod.parent=e),s}function v(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}const Us={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function He(e,t=0){if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(e.issues[i]?.continue!==!0)return!0;return!1}function Ws(e,t){return t.map(i=>{var s;return(s=i).path??(s.path=[]),i.path.unshift(e),i})}function Ot(e){return typeof e=="string"?e:e?.message}function Fe(e,t,i){const s={...e,path:e.path??[]};if(!e.message){const a=Ot(e.inst?._zod.def?.error?.(e))??Ot(t?.error?.(e))??Ot(i.customError?.(e))??Ot(i.localeError?.(e))??"Invalid input";s.message=a}return delete s.inst,delete s.continue,t?.reportInput||delete s.input,s}function Qt(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function je(...e){const[t,i,s]=e;return typeof t=="string"?{message:t,code:"custom",input:i,inst:s}:{...t}}const Ki=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ht,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Xi=m("$ZodError",Ki),Pt=m("$ZodError",Ki,{Parent:Error});function Gs(e,t=i=>i.message){const i={},s=[];for(const a of e.issues)a.path.length>0?(i[a.path[0]]=i[a.path[0]]||[],i[a.path[0]].push(t(a))):s.push(t(a));return{formErrors:s,fieldErrors:i}}function Hs(e,t=i=>i.message){const i={_errors:[]},s=a=>{for(const n of a.issues)if(n.code==="invalid_union"&&n.errors.length)n.errors.map(r=>s({issues:r}));else if(n.code==="invalid_key")s({issues:n.issues});else if(n.code==="invalid_element")s({issues:n.issues});else if(n.path.length===0)i._errors.push(t(n));else{let r=i,l=0;for(;l<n.path.length;){const u=n.path[l];l===n.path.length-1?(r[u]=r[u]||{_errors:[]},r[u]._errors.push(t(n))):r[u]=r[u]||{_errors:[]},r=r[u],l++}}};return s(e),i}const It=e=>(t,i,s,a)=>{const n=s?Object.assign(s,{async:!1}):{async:!1},r=t._zod.run({value:i,issues:[]},n);if(r instanceof Promise)throw new Ge;if(r.issues.length){const l=new(a?.Err??e)(r.issues.map(u=>Fe(u,n,Re())));throw Wi(l,a?.callee),l}return r.value},Ys=It(Pt),At=e=>async(t,i,s,a)=>{const n=s?Object.assign(s,{async:!0}):{async:!0};let r=t._zod.run({value:i,issues:[]},n);if(r instanceof Promise&&(r=await r),r.issues.length){const l=new(a?.Err??e)(r.issues.map(u=>Fe(u,n,Re())));throw Wi(l,a?.callee),l}return r.value},Ks=At(Pt),Lt=e=>(t,i,s)=>{const a=s?{...s,async:!1}:{async:!1},n=t._zod.run({value:i,issues:[]},a);if(n instanceof Promise)throw new Ge;return n.issues.length?{success:!1,error:new(e??Xi)(n.issues.map(r=>Fe(r,a,Re())))}:{success:!0,data:n.value}},Ji=Lt(Pt),Tt=e=>async(t,i,s)=>{const a=s?Object.assign(s,{async:!0}):{async:!0};let n=t._zod.run({value:i,issues:[]},a);return n instanceof Promise&&(n=await n),n.issues.length?{success:!1,error:new e(n.issues.map(r=>Fe(r,a,Re())))}:{success:!0,data:n.value}},Qi=Tt(Pt),Xs=e=>(t,i,s)=>{const a=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return It(e)(t,i,a)},Js=e=>(t,i,s)=>It(e)(t,i,s),Qs=e=>async(t,i,s)=>{const a=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return At(e)(t,i,a)},js=e=>async(t,i,s)=>At(e)(t,i,s),en=e=>(t,i,s)=>{const a=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Lt(e)(t,i,a)},tn=e=>(t,i,s)=>Lt(e)(t,i,s),an=e=>async(t,i,s)=>{const a=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Tt(e)(t,i,a)},sn=e=>async(t,i,s)=>Tt(e)(t,i,s),nn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ji=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,rn=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,on=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ln=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,dn=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,ea="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",un=new RegExp(`^${ea}$`);function ta(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function pn(e){return new RegExp(`^${ta(e)}$`)}function cn(e){const t=ta({precision:e.precision}),i=["Z"];e.local&&i.push(""),e.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${t}(?:${i.join("|")})`;return new RegExp(`^${ea}T(?:${s})$`)}const hn=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},mn=/^-?\d+$/,yn=/^-?\d+(?:\.\d+)?/,fn=/^(?:true|false)$/i,gn=/^[^A-Z]*$/,Dn=/^[^a-z]*$/,me=m("$ZodCheck",(e,t)=>{var i;e._zod??(e._zod={}),e._zod.def=t,(i=e._zod).onattach??(i.onattach=[])}),ia={number:"number",bigint:"bigint",object:"date"},bn=m("$ZodCheckLessThan",(e,t)=>{me.init(e,t);const i=ia[typeof t.value];e._zod.onattach.push(s=>{const a=s._zod.bag,n=(t.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<n&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=s=>{(t.inclusive?s.value<=t.value:s.value<t.value)||s.issues.push({origin:i,code:"too_big",maximum:t.value,input:s.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),vn=m("$ZodCheckGreaterThan",(e,t)=>{me.init(e,t);const i=ia[typeof t.value];e._zod.onattach.push(s=>{const a=s._zod.bag,n=(t.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>n&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=s=>{(t.inclusive?s.value>=t.value:s.value>t.value)||s.issues.push({origin:i,code:"too_small",minimum:t.value,input:s.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),wn=m("$ZodCheckNumberFormat",(e,t)=>{me.init(e,t),t.format=t.format||"float64";const i=t.format?.includes("int"),s=i?"int":"number",[a,n]=Us[t.format];e._zod.onattach.push(r=>{const l=r._zod.bag;l.format=t.format,l.minimum=a,l.maximum=n,i&&(l.pattern=mn)}),e._zod.check=r=>{const l=r.value;if(i){if(!Number.isInteger(l)){r.issues.push({expected:s,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?r.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!t.abort}):r.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!t.abort});return}}l<a&&r.issues.push({origin:"number",input:l,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),l>n&&r.issues.push({origin:"number",input:l,code:"too_big",maximum:n,inst:e})}}),$n=m("$ZodCheckMaxLength",(e,t)=>{var i;me.init(e,t),(i=e._zod.def).when??(i.when=s=>{const a=s.value;return!Yt(a)&&a.length!==void 0}),e._zod.onattach.push(s=>{const a=s._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(s._zod.bag.maximum=t.maximum)}),e._zod.check=s=>{const a=s.value;if(a.length<=t.maximum)return;const r=Qt(a);s.issues.push({origin:r,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),kn=m("$ZodCheckMinLength",(e,t)=>{var i;me.init(e,t),(i=e._zod.def).when??(i.when=s=>{const a=s.value;return!Yt(a)&&a.length!==void 0}),e._zod.onattach.push(s=>{const a=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(s._zod.bag.minimum=t.minimum)}),e._zod.check=s=>{const a=s.value;if(a.length>=t.minimum)return;const r=Qt(a);s.issues.push({origin:r,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),_n=m("$ZodCheckLengthEquals",(e,t)=>{var i;me.init(e,t),(i=e._zod.def).when??(i.when=s=>{const a=s.value;return!Yt(a)&&a.length!==void 0}),e._zod.onattach.push(s=>{const a=s._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=s=>{const a=s.value,n=a.length;if(n===t.length)return;const r=Qt(a),l=n>t.length;s.issues.push({origin:r,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!t.abort})}}),Mt=m("$ZodCheckStringFormat",(e,t)=>{var i,s;me.init(e,t),e._zod.onattach.push(a=>{const n=a._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(i=e._zod).check??(i.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(s=e._zod).check??(s.check=()=>{})}),Cn=m("$ZodCheckRegex",(e,t)=>{Mt.init(e,t),e._zod.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),xn=m("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=gn),Mt.init(e,t)}),Sn=m("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Dn),Mt.init(e,t)}),En=m("$ZodCheckIncludes",(e,t)=>{me.init(e,t);const i=Jt(t.includes),s=new RegExp(typeof t.position=="number"?`^.{${t.position}}${i}`:i);t.pattern=s,e._zod.onattach.push(a=>{const n=a._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(s)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),On=m("$ZodCheckStartsWith",(e,t)=>{me.init(e,t);const i=new RegExp(`^${Jt(t.prefix)}.*`);t.pattern??(t.pattern=i),e._zod.onattach.push(s=>{const a=s._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),e._zod.check=s=>{s.value.startsWith(t.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:s.value,inst:e,continue:!t.abort})}}),Pn=m("$ZodCheckEndsWith",(e,t)=>{me.init(e,t);const i=new RegExp(`.*${Jt(t.suffix)}$`);t.pattern??(t.pattern=i),e._zod.onattach.push(s=>{const a=s._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),e._zod.check=s=>{s.value.endsWith(t.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:s.value,inst:e,continue:!t.abort})}}),In=m("$ZodCheckOverwrite",(e,t)=>{me.init(e,t),e._zod.check=i=>{i.value=t.tx(i.value)}}),An={major:4,minor:1,patch:13},F=m("$ZodType",(e,t)=>{var i;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=An;const s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(const a of s)for(const n of a._zod.onattach)n(e);if(s.length===0)(i=e._zod).deferred??(i.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const a=(r,l,u)=>{let p=He(r),c;for(const y of l){if(y._zod.def.when){if(!y._zod.def.when(r))continue}else if(p)continue;const f=r.issues.length,D=y._zod.check(r);if(D instanceof Promise&&u?.async===!1)throw new Ge;if(c||D instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await D,r.issues.length!==f&&(p||(p=He(r,f)))});else{if(r.issues.length===f)continue;p||(p=He(r,f))}}return c?c.then(()=>r):r},n=(r,l,u)=>{if(He(r))return r.aborted=!0,r;const p=a(l,s,u);if(p instanceof Promise){if(u.async===!1)throw new Ge;return p.then(c=>e._zod.parse(c,u))}return e._zod.parse(p,u)};e._zod.run=(r,l)=>{if(l.skipChecks)return e._zod.parse(r,l);if(l.direction==="backward"){const p=e._zod.parse({value:r.value,issues:[]},{...l,skipChecks:!0});return p instanceof Promise?p.then(c=>n(c,r,l)):n(p,r,l)}const u=e._zod.parse(r,l);if(u instanceof Promise){if(l.async===!1)throw new Ge;return u.then(p=>a(p,s,l))}return a(u,s,l)}}e["~standard"]={validate:a=>{try{const n=Ji(e,a);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Qi(e,a).then(r=>r.success?{value:r.data}:{issues:r.error?.issues})}},vendor:"zod",version:1}}),jt=m("$ZodString",(e,t)=>{F.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??hn(e._zod.bag),e._zod.parse=(i,s)=>{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),fe=m("$ZodStringFormat",(e,t)=>{Mt.init(e,t),jt.init(e,t)}),Ln=m("$ZodUUID",(e,t)=>{if(t.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(s===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ji(s))}else t.pattern??(t.pattern=ji());fe.init(e,t)}),Tn=m("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=rn),fe.init(e,t)}),Mn=m("$ZodURL",(e,t)=>{fe.init(e,t),e._zod.check=i=>{try{const s=i.value.trim(),a=new URL(s);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:i.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:i.value,inst:e,continue:!t.abort})),t.normalize?i.value=a.href:i.value=s;return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:e,continue:!t.abort})}}}),Rn=m("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=cn(t)),fe.init(e,t)}),Fn=m("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=un),fe.init(e,t)}),zn=m("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=pn(t)),fe.init(e,t)}),Nn=m("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=nn),fe.init(e,t)}),Bn=m("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=on),fe.init(e,t),e._zod.bag.format="ipv4"}),qn=m("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ln),fe.init(e,t),e._zod.bag.format="ipv6",e._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!t.abort})}}}),Zn=m("$ZodCustomStringFormat",(e,t)=>{fe.init(e,t),e._zod.check=i=>{t.fn(i.value)||i.issues.push({code:"invalid_format",format:t.format,input:i.value,inst:e,continue:!t.abort})}}),aa=m("$ZodNumber",(e,t)=>{F.init(e,t),e._zod.pattern=e._zod.bag.pattern??yn,e._zod.parse=(i,s)=>{if(t.coerce)try{i.value=Number(i.value)}catch{}const a=i.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return i;const n=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:a,inst:e,...n?{received:n}:{}}),i}}),Vn=m("$ZodNumberFormat",(e,t)=>{wn.init(e,t),aa.init(e,t)}),Un=m("$ZodBoolean",(e,t)=>{F.init(e,t),e._zod.pattern=fn,e._zod.parse=(i,s)=>{if(t.coerce)try{i.value=!!i.value}catch{}const a=i.value;return typeof a=="boolean"||i.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),i}}),Wn=m("$ZodAny",(e,t)=>{F.init(e,t),e._zod.parse=i=>i});function sa(e,t,i){e.issues.length&&t.issues.push(...Ws(i,e.issues)),t.value[i]=e.value}const na=m("$ZodArray",(e,t)=>{F.init(e,t),e._zod.parse=(i,s)=>{const a=i.value;if(!Array.isArray(a))return i.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),i;i.value=Array(a.length);const n=[];for(let r=0;r<a.length;r++){const l=a[r],u=t.element._zod.run({value:l,issues:[]},s);u instanceof Promise?n.push(u.then(p=>sa(p,i,r))):sa(u,i,r)}return n.length?Promise.all(n).then(()=>i):i}});function ra(e,t,i,s){for(const n of e)if(n.issues.length===0)return t.value=n.value,t;const a=e.filter(n=>!He(n));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:e.map(n=>n.issues.map(r=>Fe(r,s,Re())))}),t)}const Gn=m("$ZodUnion",(e,t)=>{F.init(e,t),x(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),x(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),x(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),x(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){const a=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${a.map(n=>Kt(n.source)).join("|")})$`)}});const i=t.options.length===1,s=t.options[0]._zod.run;e._zod.parse=(a,n)=>{if(i)return s(a,n);let r=!1;const l=[];for(const u of t.options){const p=u._zod.run({value:a.value,issues:[]},n);if(p instanceof Promise)l.push(p),r=!0;else{if(p.issues.length===0)return p;l.push(p)}}return r?Promise.all(l).then(u=>ra(u,a,e,n)):ra(l,a,e,n)}}),Hn=m("$ZodIntersection",(e,t)=>{F.init(e,t),e._zod.parse=(i,s)=>{const a=i.value,n=t.left._zod.run({value:a,issues:[]},s),r=t.right._zod.run({value:a,issues:[]},s);return n instanceof Promise||r instanceof Promise?Promise.all([n,r]).then(([u,p])=>oa(i,u,p)):oa(i,n,r)}});function ei(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Xt(e)&&Xt(t)){const i=Object.keys(t),s=Object.keys(e).filter(n=>i.indexOf(n)!==-1),a={...e,...t};for(const n of s){const r=ei(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};a[n]=r.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const i=[];for(let s=0;s<e.length;s++){const a=e[s],n=t[s],r=ei(a,n);if(!r.valid)return{valid:!1,mergeErrorPath:[s,...r.mergeErrorPath]};i.push(r.data)}return{valid:!0,data:i}}return{valid:!1,mergeErrorPath:[]}}function oa(e,t,i){if(t.issues.length&&e.issues.push(...t.issues),i.issues.length&&e.issues.push(...i.issues),He(e))return e;const s=ei(t.value,i.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const Yn=m("$ZodTransform",(e,t)=>{F.init(e,t),e._zod.parse=(i,s)=>{if(s.direction==="backward")throw new Vi(e.constructor.name);const a=t.transform(i.value,i);if(s.async)return(a instanceof Promise?a:Promise.resolve(a)).then(r=>(i.value=r,i));if(a instanceof Promise)throw new Ge;return i.value=a,i}});function la(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const da=m("$ZodOptional",(e,t)=>{F.init(e,t),e._zod.optin="optional",e._zod.optout="optional",x(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),x(e._zod,"pattern",()=>{const i=t.innerType._zod.pattern;return i?new RegExp(`^(${Kt(i.source)})?$`):void 0}),e._zod.parse=(i,s)=>{if(t.innerType._zod.optin==="optional"){const a=t.innerType._zod.run(i,s);return a instanceof Promise?a.then(n=>la(n,i.value)):la(a,i.value)}return i.value===void 0?i:t.innerType._zod.run(i,s)}}),Kn=m("$ZodNullable",(e,t)=>{F.init(e,t),x(e._zod,"optin",()=>t.innerType._zod.optin),x(e._zod,"optout",()=>t.innerType._zod.optout),x(e._zod,"pattern",()=>{const i=t.innerType._zod.pattern;return i?new RegExp(`^(${Kt(i.source)}|null)$`):void 0}),x(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(i,s)=>i.value===null?i:t.innerType._zod.run(i,s)}),Xn=m("$ZodDefault",(e,t)=>{F.init(e,t),e._zod.optin="optional",x(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(i,s)=>{if(s.direction==="backward")return t.innerType._zod.run(i,s);if(i.value===void 0)return i.value=t.defaultValue,i;const a=t.innerType._zod.run(i,s);return a instanceof Promise?a.then(n=>ua(n,t)):ua(a,t)}});function ua(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Jn=m("$ZodPrefault",(e,t)=>{F.init(e,t),e._zod.optin="optional",x(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(i,s)=>(s.direction==="backward"||i.value===void 0&&(i.value=t.defaultValue),t.innerType._zod.run(i,s))}),Qn=m("$ZodNonOptional",(e,t)=>{F.init(e,t),x(e._zod,"values",()=>{const i=t.innerType._zod.values;return i?new Set([...i].filter(s=>s!==void 0)):void 0}),e._zod.parse=(i,s)=>{const a=t.innerType._zod.run(i,s);return a instanceof Promise?a.then(n=>pa(n,e)):pa(a,e)}});function pa(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const jn=m("$ZodCatch",(e,t)=>{F.init(e,t),x(e._zod,"optin",()=>t.innerType._zod.optin),x(e._zod,"optout",()=>t.innerType._zod.optout),x(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(i,s)=>{if(s.direction==="backward")return t.innerType._zod.run(i,s);const a=t.innerType._zod.run(i,s);return a instanceof Promise?a.then(n=>(i.value=n.value,n.issues.length&&(i.value=t.catchValue({...i,error:{issues:n.issues.map(r=>Fe(r,s,Re()))},input:i.value}),i.issues=[]),i)):(i.value=a.value,a.issues.length&&(i.value=t.catchValue({...i,error:{issues:a.issues.map(n=>Fe(n,s,Re()))},input:i.value}),i.issues=[]),i)}}),er=m("$ZodPipe",(e,t)=>{F.init(e,t),x(e._zod,"values",()=>t.in._zod.values),x(e._zod,"optin",()=>t.in._zod.optin),x(e._zod,"optout",()=>t.out._zod.optout),x(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(i,s)=>{if(s.direction==="backward"){const n=t.out._zod.run(i,s);return n instanceof Promise?n.then(r=>Rt(r,t.in,s)):Rt(n,t.in,s)}const a=t.in._zod.run(i,s);return a instanceof Promise?a.then(n=>Rt(n,t.out,s)):Rt(a,t.out,s)}});function Rt(e,t,i){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},i)}const tr=m("$ZodReadonly",(e,t)=>{F.init(e,t),x(e._zod,"propValues",()=>t.innerType._zod.propValues),x(e._zod,"values",()=>t.innerType._zod.values),x(e._zod,"optin",()=>t.innerType?._zod?.optin),x(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(i,s)=>{if(s.direction==="backward")return t.innerType._zod.run(i,s);const a=t.innerType._zod.run(i,s);return a instanceof Promise?a.then(ca):ca(a)}});function ca(e){return e.value=Object.freeze(e.value),e}const ha=m("$ZodCustom",(e,t)=>{me.init(e,t),F.init(e,t),e._zod.parse=(i,s)=>i,e._zod.check=i=>{const s=i.value,a=t.fn(s);if(a instanceof Promise)return a.then(n=>ma(n,i,s,e));ma(a,i,s,e)}});function ma(e,t,i,s){if(!e){const a={code:"custom",input:i,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(a.params=s._zod.def.params),t.issues.push(je(a))}}var ya;class ir{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...i){const s=i[0];if(this._map.set(t,s),s&&typeof s=="object"&&"id"in s){if(this._idmap.has(s.id))throw new Error(`ID ${s.id} already exists in the registry`);this._idmap.set(s.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const i=this._map.get(t);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(t),this}get(t){const i=t._zod.parent;if(i){const s={...this.get(i)??{}};delete s.id;const a={...s,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function ar(){return new ir}(ya=globalThis).__zod_globalRegistry??(ya.__zod_globalRegistry=ar());const Ft=globalThis.__zod_globalRegistry;function sr(e,t){return new e({type:"string",...v(t)})}function nr(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...v(t)})}function rr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...v(t)})}function or(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...v(t)})}function lr(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...v(t)})}function dr(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...v(t)})}function ur(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...v(t)})}function pr(e,t){return new e({type:"string",format:"date",check:"string_format",...v(t)})}function cr(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...v(t)})}function hr(e,t){return new e({type:"string",format:"duration",check:"string_format",...v(t)})}function mr(e,t){return new e({type:"number",checks:[],...v(t)})}function yr(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...v(t)})}function fr(e,t){return new e({type:"boolean",...v(t)})}function gr(e){return new e({type:"any"})}function Dr(e,t){return new bn({check:"less_than",...v(t),value:e,inclusive:!0})}function br(e,t){return new vn({check:"greater_than",...v(t),value:e,inclusive:!0})}function zt(e,t){return new $n({check:"max_length",...v(t),maximum:e})}function Ye(e,t){return new kn({check:"min_length",...v(t),minimum:e})}function fa(e,t){return new _n({check:"length_equals",...v(t),length:e})}function ga(e,t){return new Cn({check:"string_format",format:"regex",...v(t),pattern:e})}function vr(e){return new xn({check:"string_format",format:"lowercase",...v(e)})}function wr(e){return new Sn({check:"string_format",format:"uppercase",...v(e)})}function $r(e,t){return new En({check:"string_format",format:"includes",...v(t),includes:e})}function kr(e,t){return new On({check:"string_format",format:"starts_with",...v(t),prefix:e})}function _r(e,t){return new Pn({check:"string_format",format:"ends_with",...v(t),suffix:e})}function Ke(e){return new In({check:"overwrite",tx:e})}function Cr(e){return Ke(t=>t.normalize(e))}function xr(){return Ke(e=>e.trim())}function Sr(){return Ke(e=>e.toLowerCase())}function Er(){return Ke(e=>e.toUpperCase())}function Or(){return Ke(e=>Vs(e))}function Pr(e,t,i){return new e({type:"array",element:t,...v(i)})}function Da(e,t,i){return new e({type:"custom",check:"custom",fn:t,...v(i)})}function ba(e){const t=Ir(i=>(i.addIssue=s=>{if(typeof s=="string")i.issues.push(je(s,i.value,t._zod.def));else{const a=s;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=i.value),a.inst??(a.inst=t),a.continue??(a.continue=!t._zod.def.abort),i.issues.push(je(a))}},e(i.value,i)));return t}function Ir(e,t){const i=new me({check:"custom",...v(t)});return i._zod.check=e,i}function Ar(e,t,i,s={}){const a=v(s),n={...v(s),check:"string_format",type:"string",format:t,fn:typeof i=="function"?i:l=>i.test(l),...a};return i instanceof RegExp&&(n.pattern=i),new e(n)}const Lr=m("ZodISODateTime",(e,t)=>{Rn.init(e,t),Nt.init(e,t)});function Tr(e){return ur(Lr,e)}const Mr=m("ZodISODate",(e,t)=>{Fn.init(e,t),Nt.init(e,t)});function Rr(e){return pr(Mr,e)}const Fr=m("ZodISOTime",(e,t)=>{zn.init(e,t),Nt.init(e,t)});function zr(e){return cr(Fr,e)}const Nr=m("ZodISODuration",(e,t)=>{Nn.init(e,t),Nt.init(e,t)});function Br(e){return hr(Nr,e)}const ge=m("ZodError",(e,t)=>{Xi.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:i=>Hs(e,i)},flatten:{value:i=>Gs(e,i)},addIssue:{value:i=>{e.issues.push(i),e.message=JSON.stringify(e.issues,Ht,2)}},addIssues:{value:i=>{e.issues.push(...i),e.message=JSON.stringify(e.issues,Ht,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),qr=It(ge),Zr=At(ge),Vr=Lt(ge),Ur=Tt(ge),Wr=Xs(ge),Gr=Js(ge),Hr=Qs(ge),Yr=js(ge),Kr=en(ge),Xr=tn(ge),Jr=an(ge),Qr=sn(ge),oe=m("ZodType",(e,t)=>(F.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...i)=>e.clone(Zs(t,{checks:[...t.checks??[],...i.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]})),e.clone=(i,s)=>Yi(e,i,s),e.brand=()=>e,e.register=((i,s)=>(i.add(e,s),e)),e.parse=(i,s)=>qr(e,i,s,{callee:e.parse}),e.safeParse=(i,s)=>Vr(e,i,s),e.parseAsync=async(i,s)=>Zr(e,i,s,{callee:e.parseAsync}),e.safeParseAsync=async(i,s)=>Ur(e,i,s),e.spa=e.safeParseAsync,e.encode=(i,s)=>Wr(e,i,s),e.decode=(i,s)=>Gr(e,i,s),e.encodeAsync=async(i,s)=>Hr(e,i,s),e.decodeAsync=async(i,s)=>Yr(e,i,s),e.safeEncode=(i,s)=>Kr(e,i,s),e.safeDecode=(i,s)=>Xr(e,i,s),e.safeEncodeAsync=async(i,s)=>Jr(e,i,s),e.safeDecodeAsync=async(i,s)=>Qr(e,i,s),e.refine=(i,s)=>e.check(ko(i,s)),e.superRefine=i=>e.check(_o(i)),e.overwrite=i=>e.check(Ke(i)),e.optional=()=>va(e),e.nullable=()=>wa(e),e.nullish=()=>va(wa(e)),e.nonoptional=i=>fo(e,i),e.array=()=>to(e),e.or=i=>ao([e,i]),e.and=i=>no(e,i),e.transform=i=>$a(e,oo(i)),e.default=i=>co(e,i),e.prefault=i=>mo(e,i),e.catch=i=>Do(e,i),e.pipe=i=>$a(e,i),e.readonly=()=>wo(e),e.describe=i=>{const s=e.clone();return Ft.add(s,{description:i}),s},Object.defineProperty(e,"description",{get(){return Ft.get(e)?.description},configurable:!0}),e.meta=(...i)=>{if(i.length===0)return Ft.get(e);const s=e.clone();return Ft.add(s,i[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),jr=m("_ZodString",(e,t)=>{jt.init(e,t),oe.init(e,t);const i=e._zod.bag;e.format=i.format??null,e.minLength=i.minimum??null,e.maxLength=i.maximum??null,e.regex=(...s)=>e.check(ga(...s)),e.includes=(...s)=>e.check($r(...s)),e.startsWith=(...s)=>e.check(kr(...s)),e.endsWith=(...s)=>e.check(_r(...s)),e.min=(...s)=>e.check(Ye(...s)),e.max=(...s)=>e.check(zt(...s)),e.length=(...s)=>e.check(fa(...s)),e.nonempty=(...s)=>e.check(Ye(1,...s)),e.lowercase=s=>e.check(vr(s)),e.uppercase=s=>e.check(wr(s)),e.trim=()=>e.check(xr()),e.normalize=(...s)=>e.check(Cr(...s)),e.toLowerCase=()=>e.check(Sr()),e.toUpperCase=()=>e.check(Er()),e.slugify=()=>e.check(Or())}),Nt=m("ZodStringFormat",(e,t)=>{fe.init(e,t),jr.init(e,t)}),eo=m("ZodArray",(e,t)=>{na.init(e,t),oe.init(e,t),e.element=t.element,e.min=(i,s)=>e.check(Ye(i,s)),e.nonempty=i=>e.check(Ye(1,i)),e.max=(i,s)=>e.check(zt(i,s)),e.length=(i,s)=>e.check(fa(i,s)),e.unwrap=()=>e.element});function to(e,t){return Pr(eo,e,t)}const io=m("ZodUnion",(e,t)=>{Gn.init(e,t),oe.init(e,t),e.options=t.options});function ao(e,t){return new io({type:"union",options:e,...v(t)})}const so=m("ZodIntersection",(e,t)=>{Hn.init(e,t),oe.init(e,t)});function no(e,t){return new so({type:"intersection",left:e,right:t})}const ro=m("ZodTransform",(e,t)=>{Yn.init(e,t),oe.init(e,t),e._zod.parse=(i,s)=>{if(s.direction==="backward")throw new Vi(e.constructor.name);i.addIssue=n=>{if(typeof n=="string")i.issues.push(je(n,i.value,t));else{const r=n;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=i.value),r.inst??(r.inst=e),i.issues.push(je(r))}};const a=t.transform(i.value,i);return a instanceof Promise?a.then(n=>(i.value=n,i)):(i.value=a,i)}});function oo(e){return new ro({type:"transform",transform:e})}const lo=m("ZodOptional",(e,t)=>{da.init(e,t),oe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function va(e){return new lo({type:"optional",innerType:e})}const uo=m("ZodNullable",(e,t)=>{Kn.init(e,t),oe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function wa(e){return new uo({type:"nullable",innerType:e})}const po=m("ZodDefault",(e,t)=>{Xn.init(e,t),oe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function co(e,t){return new po({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Hi(t)}})}const ho=m("ZodPrefault",(e,t)=>{Jn.init(e,t),oe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function mo(e,t){return new ho({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Hi(t)}})}const yo=m("ZodNonOptional",(e,t)=>{Qn.init(e,t),oe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function fo(e,t){return new yo({type:"nonoptional",innerType:e,...v(t)})}const go=m("ZodCatch",(e,t)=>{jn.init(e,t),oe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Do(e,t){return new go({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const bo=m("ZodPipe",(e,t)=>{er.init(e,t),oe.init(e,t),e.in=t.in,e.out=t.out});function $a(e,t){return new bo({type:"pipe",in:e,out:t})}const vo=m("ZodReadonly",(e,t)=>{tr.init(e,t),oe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function wo(e){return new vo({type:"readonly",innerType:e})}const $o=m("ZodCustom",(e,t)=>{ha.init(e,t),oe.init(e,t)});function ko(e,t={}){return Da($o,e,t)}function _o(e){return ba(e)}const ze=m("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");F.init(e,t),e.def=t,e.type=t.type,e.parse=(i,s)=>Ys(e,i,s,{callee:e.parse}),e.safeParse=(i,s)=>Ji(e,i,s),e.parseAsync=async(i,s)=>Ks(e,i,s,{callee:e.parseAsync}),e.safeParseAsync=async(i,s)=>Qi(e,i,s),e.check=(...i)=>e.clone({...t,checks:[...t.checks??[],...i.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),e.clone=(i,s)=>Yi(e,i,s),e.brand=()=>e,e.register=((i,s)=>(i.add(e,s),e))}),ka=m("ZodMiniString",(e,t)=>{jt.init(e,t),ze.init(e,t)});function _a(e){return sr(ka,e)}const Xe=m("ZodMiniStringFormat",(e,t)=>{fe.init(e,t),ka.init(e,t)}),Co=m("ZodMiniEmail",(e,t)=>{Tn.init(e,t),Xe.init(e,t)});function xo(e){return nr(Co,e)}const So=m("ZodMiniUUID",(e,t)=>{Ln.init(e,t),Xe.init(e,t)});function Eo(e){return rr(So,e)}const Oo=m("ZodMiniURL",(e,t)=>{Mn.init(e,t),Xe.init(e,t)});function Po(e){return or(Oo,e)}const Io=m("ZodMiniIPv4",(e,t)=>{Bn.init(e,t),Xe.init(e,t)});function Ao(e){return lr(Io,e)}const Lo=m("ZodMiniIPv6",(e,t)=>{qn.init(e,t),Xe.init(e,t)});function To(e){return dr(Lo,e)}const Mo=m("ZodMiniCustomStringFormat",(e,t)=>{Zn.init(e,t),Xe.init(e,t)});function Ro(e){return Ar(Mo,"hostname",dn,e)}const Ca=m("ZodMiniNumber",(e,t)=>{aa.init(e,t),ze.init(e,t)});function xa(e){return mr(Ca,e)}const Fo=m("ZodMiniNumberFormat",(e,t)=>{Vn.init(e,t),Ca.init(e,t)});function zo(e){return yr(Fo,e)}const No=m("ZodMiniBoolean",(e,t)=>{Un.init(e,t),ze.init(e,t)});function Sa(e){return fr(No,e)}const Bo=m("ZodMiniAny",(e,t)=>{Wn.init(e,t),ze.init(e,t)});function ti(){return gr(Bo)}const qo=m("ZodMiniArray",(e,t)=>{na.init(e,t),ze.init(e,t)});function Ea(e,t){return new qo({type:"array",element:e,...v(t)})}const Zo=m("ZodMiniOptional",(e,t)=>{da.init(e,t),ze.init(e,t)});function Vo(e){return new Zo({type:"optional",innerType:e})}const Uo=m("ZodMiniCustom",(e,t)=>{ha.init(e,t),ze.init(e,t)});function Y(e,t={}){return Da(Uo,e,t)}function Oa(e){return ba(e)}const ii={email:{schema:xo()},hostname:{schema:Ro()},ipv4:{schema:Ao()},ipv6:{schema:To()},url:{schema:Po()},uuid:{schema:Eo()},date:{schema:Rr()},time:{schema:zr()},"date-time":{schema:Tr()},duration:{schema:Br()}},Wo=Object.keys(ii),Go=e=>(t,i)=>{switch(t.type){case"string":return Ho(t,i);case"integer":case"number":return Ko(t,i);case"boolean":return Xo(t,i);case"array":return Jo(t,i);case"custom":{if(!e)throw new Error('Validator type "custom" requires a customValidators object, but it was not supplied.');return Qo(t,e)}}};function E(e,t){if(e!==void 0)return typeof e=="string"?e:t?.translate(e.key,e.params,e.default)??e.default}function Ho(e,t){return et(e,i=>{const s=E(i.messages?.invalid,t);let a=s?_a(s):_a();if(i.required===!0){const n=E(i.messages?.required,t)??"This field is required";a=a.check(Y(r=>r.length>0,{error:n}))}if(typeof i.minLength=="number"){const n=E(i.messages?.minLength,t),r=i.minLength;a=a.check(n?Y(l=>l.length>=r,{error:n}):Ye(r))}if(typeof i.maxLength=="number"){const n=E(i.messages?.maxLength,t),r=i.maxLength;a=a.check(n?Y(l=>l.length<=r,{error:n}):zt(r))}if(typeof i.pattern=="string"){const n=E(i.messages?.pattern,t),r=new RegExp(i.pattern);a=a.check(n?Y(l=>r.test(l),{error:n}):ga(r))}if(i.enum){const n=i.enum,r=E(i.messages?.enum,t);a=a.check(Y(l=>n.includes(l),r?{error:r}:void 0))}if(i.const!==void 0){const n=E(i.messages?.const,t);a=a.check(Y(r=>r===i.const,n?{error:n}:void 0))}if(i.format!==void 0)if(Wo.includes(i.format)){const n=E(i.messages?.format,t);a=a.check(n?Oa((r,l)=>{const u=_e.standardValidate(ii[i.format].schema,r);_e.isStandardValidateSuccess(u)||l.addIssue({code:"custom",path:[],message:n})}):ii[i.format].schema)}else console.error(`The string validation format "${i.format}" is not supported`);return a})}const Yo=(e,t)=>{if(t===0)return!1;const i=e/t;return Math.abs(i-Math.round(i))<1e-10};function Ko(e,t){return et(e,i=>{const s=E(i.messages?.invalid,t);let a=s?xa(s):xa();if(i.type==="integer"&&(a=a.check(zo())),i.minimum!==void 0){const n=E(i.messages?.minimum,t),r=i.minimum;a=a.check(n?Y(l=>l>=r,{error:n}):br(r))}if(i.maximum!==void 0){const n=E(i.messages?.maximum,t),r=i.maximum;a=a.check(n?Y(l=>l<=r,{error:n}):Dr(r))}if(i.exclusiveMinimum!==void 0){const n=E(i.messages?.exclusiveMinimum,t),r=i.exclusiveMinimum;a=a.check(Y(l=>l>r,n?{error:n}:void 0))}if(i.exclusiveMaximum!==void 0){const n=E(i.messages?.exclusiveMaximum,t),r=i.exclusiveMaximum;a=a.check(Y(l=>l<r,n?{error:n}:void 0))}if(i.multipleOf!==void 0){const n=E(i.messages?.multipleOf,t),r=i.multipleOf;a=a.check(Y(l=>Yo(l,r),n?{error:n}:void 0))}if(i.enum){const n=i.enum,r=E(i.messages?.enum,t);a=a.check(Y(l=>n.includes(l),r?{error:r}:void 0))}if(i.const!==void 0){const n=E(i.messages?.const,t);a=a.check(Y(r=>r===i.const,n?{error:n}:void 0))}return a})}function Xo(e,t){return et(e,i=>{const s=E(i.messages?.invalid,t);let a=s?Sa(s):Sa();if(i.const!==void 0){const n=E(i.messages?.const,t);a=a.check(Y(r=>r===i.const,n?{error:n}:void 0))}return a})}function Jo(e,t){return et(e,i=>{const s=E(i.messages?.invalid,t);let a=s?Ea(ti(),s):Ea(ti());if(i.required===!0){const n=E(i.messages?.required,t)??"This field is required";a=a.check(Y(r=>r.length>0,{error:n}))}if(typeof i.minItems=="number"){const n=E(i.messages?.minItems,t),r=i.minItems;a=a.check(n?Y(l=>l.length>=r,{error:n}):Ye(r))}if(typeof i.maxItems=="number"){const n=E(i.messages?.maxItems,t),r=i.maxItems;a=a.check(n?Y(l=>l.length<=r,{error:n}):zt(r))}return a})}function Qo(e,t){return et(e,i=>{let s=ti();return _e.filterTap(Object.keys(i),a=>a!=="type"&&a!=="required",a=>{const n=i[a],r=t[a],l=r(n);s=s.check(Oa((u,p)=>{const c=_e.standardValidate(l,u);if(!_e.isStandardValidateSuccess(c)){const y=c.issues[0];p.addIssue({code:"custom",path:[],message:y?.message||`Validation failed for ${a}`})}}))}),s})}function et(e,t){const i=t(e);return e.required?i:Vo(i)}const jo=e=>e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"label")&&Object.prototype.hasOwnProperty.call(e,"value");function el(e,t){if(e!=null&&typeof e=="object"&&"__rid"in e)return e.__rid;const i=t();return Object.defineProperty(e,"__rid",{value:i,enumerable:!1,configurable:!1}),i}const Pa={button:async()=>(await Promise.resolve().then(()=>ol)).ButtonElement,calendar:async()=>(await Promise.resolve().then(()=>gl)).CalendarElement,rangeCalendar:async()=>(await Promise.resolve().then(()=>_l)).RangeCalendarElement,rangeDateInput:async()=>(await Promise.resolve().then(()=>Ol)).RangeDateInputElement,rangeDatePicker:async()=>(await Promise.resolve().then(()=>Al)).RangeDatePickerElement,currency:async()=>(await Promise.resolve().then(()=>Fl)).CurrencyElement,dateInput:async()=>(await Promise.resolve().then(()=>Zl)).DateElement,datePicker:async()=>(await Promise.resolve().then(()=>Wl)).DatePickerElement,dropdown:async()=>(await Promise.resolve().then(()=>nd)).DropdownElement,list:async()=>(await Promise.resolve().then(()=>ld)).ListElement,markdown:async()=>(await Promise.resolve().then(()=>yd)).MarkdownElement,password:async()=>(await Promise.resolve().then(()=>vd)).PasswordElement,textinput:async()=>(await Promise.resolve().then(()=>Cd)).TextinputElement,textarea:async()=>(await Promise.resolve().then(()=>Pd)).TextareaElement,toggle:async()=>(await Promise.resolve().then(()=>Md)).ToggleElement,checkbox:async()=>(await Promise.resolve().then(()=>Bd)).CheckboxElement,number:async()=>(await Promise.resolve().then(()=>Wd)).NumberElement,radiogroup:async()=>(await Promise.resolve().then(()=>jd)).RadiogroupElement,select:async()=>(await Promise.resolve().then(()=>su)).SelectElement,tags:async()=>(await Promise.resolve().then(()=>uu)).TagsElement,repeater:async()=>(await Promise.resolve().then(()=>yu)).RepeaterElement,flex:async()=>(await Promise.resolve().then(()=>Du)).FlexElement,grid:async()=>(await Promise.resolve().then(()=>wu)).GridElement,tabs:async()=>(await Promise.resolve().then(()=>_u)).TabsElement,accordion:async()=>(await Promise.resolve().then(()=>Su)).AccordionElement,alert:async()=>(await Promise.resolve().then(()=>Pu)).AlertElement,markdownText:async()=>(await Promise.resolve().then(()=>Lu)).MarkdownTextElement,renderer:async()=>(await Promise.resolve().then(()=>Ru)).RendererElement};var tl=Object.defineProperty,il=Object.getOwnPropertyDescriptor,tt=(e,t,i,s)=>{for(var a=s>1?void 0:s?il(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&tl(t,i,a),a};_.FormElement=class extends d.LitElement{constructor(){super(...arguments),this.autocomplete=void 0}setData(t){this.coreForm?.setData(t)}setMeta(t){this.coreForm?.setMeta(t)}createRenderRoot(){return this}render(){const t=this.config,i=Bs(t.formDef,t.formSelectors,t.formConfig),s={formDef:i.formDef,widgetLoaders:{...Pa,...i.widgetLoaders,...t.customWidgetLoaders??{}},dependencies:{...i.dependencies??{},...t.dependencies??{}},validateOn:t.validateOn??i.validateOn??"eager",itemRenderers:{...i.itemRenderers??{},...t.itemRenderers??{}},localization:t.localization,middlewares:t.middlewares??[],data:t.data,meta:t.meta,formName:t.formName},a=Go({...t.customValidators??{}}),n=i.formEvent,r=n?l=>n(l.detail):void 0;return d.html`
|
|
1
|
+
(function(_,_e){typeof exports=="object"&&typeof module<"u"?_e(exports,require("@golemui/core"),require("@golemui/gui-shared"),require("@golemui/lit"),require("lit"),require("lit/decorators.js"),require("@lit/context"),require("rxjs"),require("lit/directives/class-map.js"),require("lit-html/directives/repeat.js"),require("lit/directives/live.js"),require("lit-html/directives/style-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/repeat.js"),require("lit/directives/unsafe-html.js")):typeof define=="function"&&define.amd?define(["exports","@golemui/core","@golemui/gui-shared","@golemui/lit","lit","lit/decorators.js","@lit/context","rxjs","lit/directives/class-map.js","lit-html/directives/repeat.js","lit/directives/live.js","lit-html/directives/style-map.js","lit/directives/if-defined.js","lit/directives/repeat.js","lit/directives/unsafe-html.js"],_e):(_=typeof globalThis<"u"?globalThis:_||self,_e(_["gui-lit"]={},_.core,null,_.lit$1,_.lit,_.decorators_js,_.context,_.rxjs,_.classMap_js,_.repeat_js,_.live_js,_.styleMap_js,_.ifDefined_js,_.repeat_js$1,_.unsafeHtml_js))})(this,(function(_,_e,Nu,h,d,o,g,Ei,$,he,Oi,We,Vt,Pi,Va){"use strict";const Ii={LAYOUTS:"LAYOUTS",DISPLAYS:"DISPLAYS"};function Ua(e){return function(t,i=()=>!0){return{kind:"leaf",selectorType:e,matcher:i,config:t}}}function j(e,t){return typeof e=="function"?e:{type:t,...e??{}}}const Wa=(e,t)=>({type:"ITEMS",itemType:Ii.DISPLAYS,items:[{render:e}],tags:t??[]}),St=new Map;function Ai(e,t){if(St.has(e))throw new Error(`Item type "${e}" is already registered.`);St.set(e,t)}function Et(e){const t=St.get(e);if(!t)throw new Error(`No handler registered for item type "${e}". Did you forget to import the registration module?`);return t}function Li(e){return St.has(e)}function k(e){const t=l=>{if(!e.sensibleDefaults)return{};let u={...e.sensibleDefaults.base};for(const p of l){const c=p.config;for(const y of e.sensibleDefaults.fields){const f=y;c[f]!=null&&(u={...u,[f]:c[f]})}}return u},i=(l,u)=>e.sensibleDefaults?e.sensibleDefaults.apply(l,u):l,s=l=>{switch(e.entryShape){case"bare":return{baseDef:l};case"keyed":{const u=l;return{baseDef:u.def,path:u.key}}case"compound":{const u=l;return{baseDef:u.def,children:u.children}}}},a={rollUpSensibleDefaults:t,applySensibleDefaults:i,mapToWidget:e.mapToWidget,parseEntry:s,...e.afterMerge?{afterMerge:e.afterMerge}:{},...e.buildCustomWidget?{buildCustomWidget:e.buildCustomWidget}:{},...e.getChildren?{getChildren:e.getChildren}:{}};Ai(e.itemType,a);const n=Ua(e.itemType);return{gsl:n,gslByUid:(l,u)=>n(u,(p=>p.uid===l))}}function R(e){const{uid:t,path:i,label:s,disabled:a,readonly:n,defaultValue:r,tags:l,type:u,size:p,onLoad:c,onChange:y,onFilter:f,on:b,states:C,include:Se,exclude:Ba,validator:qa,...Ue}=e;return Ue}function Ga(e){return e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").replace(/\s+/g," ").trim().replace(/\b\w/g,t=>t.toUpperCase()):""}function W(e,t){return e.label!=null||t.suppressAutomaticLabels||!e.path?e:{...e,label:Ga(e.path)}}function Ce(e,t){return e.placeholder!=null||t.suppressAutomaticPlaceholders||!e.path?e:{...e,placeholder:e.path}}function Ha(e){switch(e.type){case"text":return Ka(e);case"number":return Xa(e);case"boolean":return Ya(e);default:throw new Error(`Unsupported field type "${e.type}"`)}}function Ya(e){const t=R(e);return{uid:e.uid??"",kind:"input",type:"toggle",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"boolean")}:{},props:t}}function Ka(e){const t=R(e);return{uid:e.uid??"",kind:"input",type:"textinput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},props:{placeholder:t.placeholder??"",...t},validator:j(e.validator,"string")}}function Xa(e){const t=R(e);return{uid:e.uid??"",kind:"input",type:"number",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},props:{placeholder:t.placeholder??"",...t},validator:j(e.validator,"number")}}k({itemType:"INPUTS",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>{let i=W(e,t);return i=Ce(i,t),i}},mapToWidget:Ha}),k({itemType:"SELECT",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"select",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:R(e)})}),k({itemType:"DROPDOWN",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"dropdown",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:R(e)})}),k({itemType:"RADIOGROUP",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>W(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"radiogroup",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:R(e)})}),k({itemType:"CHECKBOX",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>W(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"checkbox",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"boolean")}:{},props:R(e)})}),k({itemType:"TEXTAREA",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"textarea",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"string")}:{},props:R(e)})}),k({itemType:"PASSWORD",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"password",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"string")}:{},props:R(e)})}),k({itemType:"CURRENCY",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"currency",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"number")}:{},props:R(e)})}),k({itemType:"MARKDOWN",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"markdown",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"string")}:{},props:R(e)})}),k({itemType:"LIST",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>W(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"list",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:R(e)})}),k({itemType:"CALENDAR",entryShape:"bare",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>W(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"calendar",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"string")}:{},props:R(e)})}),k({itemType:"DATE_INPUT",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>W(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"dateInput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"string")}:{},props:R(e)})}),k({itemType:"DATE_PICKER",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"datePicker",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"string")}:{},props:R(e)})}),k({itemType:"RANGE_CALENDAR",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>W(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeCalendar",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"array")}:{},props:R(e)})}),k({itemType:"RANGE_DATE_INPUT",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>W(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeDateInput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"array")}:{},props:R(e)})}),k({itemType:"RANGE_DATE_PICKER",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeDatePicker",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"array")}:{},props:R(e)})});function Ja(e){const t={};return e.addLabel!=null&&(t.addLabel=e.addLabel),e.removeLabel!=null&&(t.removeLabel=e.removeLabel),e.limit!=null&&(t.limit=e.limit),e.title!=null&&(t.title=e.title),e.addButtonIcon!=null&&(t.addButtonIcon=e.addButtonIcon),e.removeButtonIcon!=null&&(t.removeButtonIcon=e.removeButtonIcon),t}function Qa(e){return{uid:e.uid??"",kind:"input",type:"repeater",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"array")}:{},props:{...Ja(e),template:{kind:"layout",type:"flex",children:[],props:{direction:"column"}}}}}function Ut(e,t){for(const i of e){if(typeof i=="function")continue;const s=i;typeof s.path=="string"&&s.path&&!s.path.startsWith(t)&&(s.path=t+s.path),"children"in s&&Array.isArray(s.children)&&Ut(s.children,t);const a=s.props;a?.template?.children&&Array.isArray(a.template.children)&&Ut(a.template.children,t)}}function ja(e,t){const i=t.walkChildren(t.children??[]),s=e.kind==="static"?e.def.path??"":e.fn({})?.path??"";s&&Ut(i,s+".items.");const a={kind:"layout",type:"flex",uid:"",children:i,props:{direction:"column"}};if(e.kind==="static"){const r=t.mapStaticDef(e.def,"REPEATER");return{...r,props:{...r.props,template:a}}}const n=e.fn;return(r=>{const l=n(r),u=t.mapStaticDef(l,"REPEATER");return{...u,props:{...u.props,template:a}}})}function es(e){return{baseDef:e.def,path:e.key,children:e.children}}function ts(e){return e.children}Ai("REPEATER",{parseEntry:es,rollUpSensibleDefaults:()=>({}),applySensibleDefaults:e=>e,mapToWidget:Qa,buildCustomWidget:ja,getChildren:ts});const Ti={onLoad:"load",onChange:"change",onFilter:"filter",onBlur:"blur"},is=Object.keys(Ti);function Mi(e){if(e.length>0)return null;try{const t=e();return typeof t=="string"?t:null}catch{return null}}class as{extractOnClickFromMergeResult(t,i,s){if(t.kind==="dynamic"){const r=t.fn;return{kind:"dynamic",fn:u=>{const p=r(u);return this.wireOnClick(p,i,s)}}}const a=t.def;return{kind:"static",def:this.wireOnClick(a,i,s)}}wireOnClick(t,i,s){const a=s.next(),n=t.onClick;if(typeof n=="function"){const{onClick:r,...l}=t,u=n(void 0);return typeof u=="string"?{...l,uid:a,on:{click:u}}:(i.set(a,p=>n(p.data)),{...l,uid:a,on:{click:a}})}return{...t,uid:a}}wireInputLayoutEvents(t,i,s){if(t.kind==="dynamic"){const n=t.fn;return{kind:"dynamic",fn:l=>{const u=n(l);return this.wireEventProperties(u,i,s)}}}return{kind:"static",def:this.wireEventProperties(t.def,i,s)}}wireEventProperties(t,i,s){const a={...t.on||{}};let n=!1;const r={...t};for(const l of is){const u=t[l];if(u==null)continue;const p=Ti[l];if(typeof u=="function"){const c=Mi(u);if(c!=null)a[p]=c;else{const y=s.next();i.set(y,u),a[p]=y}n=!0}else typeof u=="string"&&(a[p]=u,n=!0);delete r[l]}return n&&(r.on=a),r}}const Wt=new as;function ss(e){const{uid:t,label:i,actionType:s,disabled:a,on:n,onClick:r,data:l,type:u,tags:p,size:c,include:y,exclude:f,states:b,...C}=e;return{uid:t??"",kind:"action",type:"button",disabled:a,actionType:s,label:i,...n!=null?{on:n}:{},props:C}}k({itemType:"ACTIONS",entryShape:"bare",mapToWidget:ss,afterMerge:(e,t)=>Wt.extractOnClickFromMergeResult(e,t.eventRegistry,t.eventIdGenerator)});function ns(e){const{uid:t,widgetName:i,tags:s,size:a,onChange:n,include:r,exclude:l,...u}=e,{on:p,...c}=u;return{uid:t??"",kind:"layout",type:i??"flex",props:{direction:c.direction??"column",...c},children:[]}}function rs(e,t){const i=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"LAYOUTS"),children:i};const s=e.fn;return(a=>{const n=s(a);return{...t.mapStaticDef(n,"LAYOUTS"),children:i}})}function os(e){return e.children}k({itemType:"LAYOUTS",entryShape:"compound",mapToWidget:ns,buildCustomWidget:rs,getChildren:os});function Ri(e){return{errors:void 0,touched:void 0,translate:void 0,...e??{},$form:e?.$form??{}}}function ls(e){return{uid:"",kind:"display",type:"renderer",props:{render:e.render}}}function ds(e,t){if(e.kind==="static"){const s=e.def;return(a=>({uid:"",kind:"display",type:"renderer",...s.include!=null?{include:s.include}:{},...s.exclude!=null?{exclude:s.exclude}:{},props:{render:s.render(Ri(a))}}))}const i=e.fn;return(s=>{const a=i(s);return{uid:"",kind:"display",type:"renderer",...a.include!=null?{include:a.include}:{},...a.exclude!=null?{exclude:a.exclude}:{},props:{render:a.render(Ri(s))}}})}k({itemType:"DISPLAYS",entryShape:"bare",mapToWidget:ls,buildCustomWidget:ds}),k({itemType:"ALERTS",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:"alert",props:{text:e.text,...e.level!=null?{level:e.level}:{}}})}),k({itemType:"MARKDOWN_TEXTS",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:"markdownText",props:{md:e.md}})});function us(e){return{uid:e.uid??"",kind:"layout",type:"tabs",props:{tabs:e.tabs,renderMode:e.renderMode??"all",...e.defaultOpen!=null?{defaultOpen:e.defaultOpen}:{}},children:[]}}function ps(e,t){const i=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"TABS"),children:i};const s=e.fn;return(a=>{const n=s(a);return{...t.mapStaticDef(n,"TABS"),children:i}})}function cs(e){return e.children}k({itemType:"TABS",entryShape:"compound",mapToWidget:us,buildCustomWidget:ps,getChildren:cs});function hs(e){return{uid:e.uid??"",kind:"layout",type:"accordion",props:{sections:e.sections,renderMode:e.renderMode??"all",...e.singleOpen!=null?{singleOpen:e.singleOpen}:{},...e.defaultOpen!=null?{defaultOpen:e.defaultOpen}:{}},children:[]}}function ms(e,t){const i=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"ACCORDION"),children:i};const s=e.fn;return(a=>{const n=s(a);return{...t.mapStaticDef(n,"ACCORDION"),children:i}})}function ys(e){return e.children}k({itemType:"ACCORDION",entryShape:"compound",mapToWidget:hs,buildCustomWidget:ms,getChildren:ys}),k({itemType:"CUSTOM_INPUT",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>W(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:e.customType,path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.defaultValue!=null?{defaultValue:e.defaultValue}:{},...e.validator!=null?{validator:e.validator}:{},props:e.props??{}})}),k({itemType:"CUSTOM_ACTION",entryShape:"bare",mapToWidget:e=>{const{uid:t,label:i,disabled:s,on:a,onClick:n,data:r,customType:l,tags:u,size:p,include:c,exclude:y,states:f,props:b,...C}=e;return{uid:t??"",kind:"action",type:e.customType,label:i,disabled:s,...a!=null?{on:a}:{},props:{...b,...C}}},afterMerge:(e,t)=>Wt.extractOnClickFromMergeResult(e,t.eventRegistry,t.eventIdGenerator)}),k({itemType:"CUSTOM_DISPLAY",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:e.customType,props:e.props??{}})});function fs(e){return{uid:e.uid??"",kind:"layout",type:e.customType,props:e.props??{},children:[]}}function gs(e,t){const i=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"CUSTOM_LAYOUT"),children:i};const s=e.fn;return(a=>{const n=s(a);return{...t.mapStaticDef(n,"CUSTOM_LAYOUT"),children:i}})}function bs(e){return e.children}k({itemType:"CUSTOM_LAYOUT",entryShape:"compound",mapToWidget:fs,buildCustomWidget:gs,getChildren:bs}),k({itemType:"TAGS",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>Ce(W(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"tags",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:j(e.validator,"array")}:{},props:R(e)})});const Fi={INPUTS:new Set(["INPUTS","TEXTAREA","PASSWORD","SELECT","DROPDOWN","RADIOGROUP","CHECKBOX","CALENDAR","DATE_INPUT","DATE_PICKER","RANGE_CALENDAR","RANGE_DATE_INPUT","RANGE_DATE_PICKER","CURRENCY","MARKDOWN","LIST","CUSTOM_INPUT","REPEATER","TAGS"]),ACTIONS:new Set(["ACTIONS","CUSTOM_ACTION"]),DISPLAYS:new Set(["DISPLAYS","ALERTS","MARKDOWN_TEXTS","CUSTOM_DISPLAY"]),LAYOUTS:new Set(["LAYOUTS","TABS","ACCORDION","CUSTOM_LAYOUT"])};function Ds(e,t){const i=Fi[e];return i?i.has(t):e===t}class vs{resolve(t,i){const s=[];for(const n of i)n.kind==="aggregated"?this.collectFromAggregated(n,t,s):this.collectFromLeaf(n,t,s);const a=this.rollUpSensibleDefaults(s);return{leafSelectors:s,sensibleDefaults:a}}collectFromAggregated(t,i,s){if(t.matcher(i))for(const a of t.children)this.collectFromLeaf(a,i,s)}collectFromLeaf(t,i,s){Ds(t.selectorType,i.itemType??"")&&t.matcher(i)&&s.push(t)}rollUpSensibleDefaults(t){const i=new Map,s=(n,r)=>{const l=i.get(n)??[];l.push(r),i.set(n,l)};for(const n of t){const r=Fi[n.selectorType];if(r)for(const l of r)s(l,n);else s(n.selectorType,n)}const a={};for(const[n,r]of i)Li(n)&&(a[n]=Et(n).rollUpSensibleDefaults(r));return a}}const ws=new vs;class $s{deepMerge(t,i){if(i==null)return t;if(t==null||typeof t!="object"||typeof i!="object"||Array.isArray(t)||Array.isArray(i))return i;const s={...t};for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&(typeof i[a]=="object"&&!Array.isArray(i[a])&&i[a]!==null&&typeof t[a]=="object"&&!Array.isArray(t[a])&&t[a]!==null?s[a]=this.deepMerge(t[a],i[a]):s[a]=i[a]);return s}}const ks=new $s;class _s{constructor(t){this.objectUtils=t}merge(t,i,s){let a={},n=null;typeof t=="function"&&(n=t);const r=this.collectDecorators(s);for(const p of r){if(n!=null){n=this.composeRuntimeFunctions(n,p);continue}if(typeof p=="function"){const c=p({...a,...typeof t=="function"?{}:t});if(typeof c=="function"){n=this.createPromotedFunction(a,t,c,i,s);continue}a=this.objectUtils.deepMerge(a,c)}else a=this.objectUtils.deepMerge(a,p)}if(n!=null)return{kind:"dynamic",fn:this.wrapWithSensibleDefaults(n,a,i,s)};const l=this.objectUtils.deepMerge(t,a);return{kind:"static",def:this.applySensibleDefaults({...l},i,s)}}collectDecorators(t){const i=[];for(const s of t.leafSelectors){const a=s.config;a.override!=null&&i.push(a.override)}return i}applySensibleDefaults(t,i,s){if(!Li(i))return t;const a=s.sensibleDefaults[i]??{};return Et(i).applySensibleDefaults(t,a)}createPromotedFunction(t,i,s,a,n){return r=>{const l=s(r);let u=this.objectUtils.deepMerge(t,l);return u=this.objectUtils.deepMerge(u,i),this.applySensibleDefaults(u,a,n)}}wrapWithSensibleDefaults(t,i,s,a){return n=>{let r=t(n);return Object.keys(i).length>0&&(r=this.objectUtils.deepMerge(i,r)),this.applySensibleDefaults(r,s,a)}}composeRuntimeFunctions(t,i){return typeof i=="function"?s=>{const a=t(s),n=i(a);return typeof n=="function"?n(s):this.objectUtils.deepMerge(n,a)}:s=>{const a=t(s);return this.objectUtils.deepMerge(a,i)}}}const Cs=new _s(ks);class xs{mapToWidget(t,i){if(t.kind==="dynamic"){const s=t.fn;return(a=>{const n=s(a);return this.mapStaticDef(n,i)})}return this.mapStaticDef(t.def,i)}mapStaticDef(t,i){const s=Et(i).mapToWidget(t);return this.applyBaseWidgetFields(s,t)}applyBaseWidgetFields(t,i){return i.size!=null&&(t.size=i.size),i.defaultValue!=null&&t.kind==="input"&&(t.defaultValue=i.defaultValue),i.on!=null&&(t.on=i.on),i.include!=null&&(t.include=i.include),i.exclude!=null&&(t.exclude=i.exclude),t}}const Ss=new xs;class Es{normalizeSelectors(t){const i=Array.isArray(t)?t:[t],s=[],a=[];for(const n of i)n.kind==="leaf"?a.push(n):s.push(n);return a.length>0&&s.unshift({kind:"aggregated",matcher:()=>!0,children:a}),s}extractFormConfig(){return{suppressAutomaticStack:!1}}}const Os=new Es,Ps={input:new Set(["disabled","readonly","label","validator","size"]),action:new Set(["disabled","label","size"]),layout:new Set(["size"]),display:new Set([])},zi={onChange:"change",onLoad:"load",onFilter:"filter",onClick:"click"};class Is{extractFromMergeResult(t,i){const s={};for(const l of i){const u=l.targetState,p=l.config,c=p.override&&typeof p.override!="function"?p.override:p;s[u]={...s[u]||{},...c}}if(t.kind==="dynamic"){const l=t.fn;return{cleanedResult:{kind:"dynamic",fn:p=>{const c=l(p),{states:y,...f}=c;return f}},stateData:{stateOverrides:s}}}const{states:a,...n}=t.def,r={};for(const[l,u]of Object.entries(s))r[l]={...u};if(a)for(const[l,u]of Object.entries(a))r[l]={...r[l]||{},...u};return{cleanedResult:{kind:"static",def:n},stateData:{stateOverrides:r}}}applyToWidget(t,i,s,a){const{stateOverrides:n}=i;if(Object.keys(n).length===0)return t;const r={...t},l=t.kind,u=Ps[l]||new Set;t.props&&(r.props={...t.props}),t.on&&(r.on={...t.on});for(const[p,c]of Object.entries(n))for(const[y,f]of Object.entries(c))y==="visible"?this.applyVisibility(r,p,f):zi[y]?this.applyStateEvent(r,p,y,f,s,a):u.has(y)?r[`${y}.${p}`]=f:(r.props||(r.props={}),r.props[`${y}.${p}`]=f);return r}hasStateData(t){return Object.keys(t.stateOverrides).length>0}applyVisibility(t,i,s){if(s){const a=t.include?.in||[];t.include={...t.include||{},in:[...a,i]}}else{const a=t.exclude?.from||[];t.exclude={...t.exclude||{},from:[...a,i]}}}applyStateEvent(t,i,s,a,n,r){const l=zi[s];if(t.on||(t.on={}),typeof a=="function"){const u=Mi(a);if(u!=null)t.on[`${l}.${i}`]=u;else{const p=r.next();n.set(p,a),t.on[`${l}.${i}`]=p}}else typeof a=="string"&&(t.on[`${l}.${i}`]=a)}}const As=new Is;function Ls(){let e=0;return{next:()=>`event_${e++}`}}class Ts{constructor(t,i,s,a,n){this.resolver=t,this.merger=i,this.mapper=s,this.eventWiring=a,this.stateExpansion=n}walkAndMap(t,i,s){const a=new Map,n=Ls(),r={value:0},l=new Set;return{widgets:this.walkItems(t,i,a,s,n,r,l),eventRegistry:a}}walkItems(t,i,s,a,n,r,l){return t.flatMap(u=>{if(u.type!=="ITEMS")throw new Error("Unexpected gui shortcut type");return u.items.map(p=>this.processItem(p,u.itemType,u.tags,i,s,a,n,r,l))})}processItem(t,i,s,a,n,r,l,u,p){const c=i,y=Et(i),f=y.parseEntry(t),b=this.buildBaseDef(f),C=this.buildDecoratorForMatching(b,c,s),Se=this.resolver.resolve(C,a),Ba=Se.leafSelectors.filter(re=>re.targetState!=null),qa={leafSelectors:Se.leafSelectors.filter(re=>re.targetState==null),sensibleDefaults:Se.sensibleDefaults};let Ue=this.merger.merge(b,c,qa);y.afterMerge&&(Ue=y.afterMerge(Ue,{eventRegistry:n,formConfig:r,eventIdGenerator:l})),Ue=this.eventWiring.wireInputLayoutEvents(Ue,n,l);const{cleanedResult:Za,stateData:Si}=this.stateExpansion.extractFromMergeResult(Ue,Ba);let Ee;if(y.buildCustomWidget){const re=this.buildCustomWidgetContext(f.children,a,n,r,l,u,p);Ee=this.buildCustomWidget(y,Za,re)}else Ee=this.mapper.mapToWidget(Za,c);if(typeof Ee!="function"){const re=Ee;re.uid||(re.path&&!p.has(re.path)?(re.uid=re.path,p.add(re.path)):re.uid=`dx_${u.value++}`)}if(this.stateExpansion.hasStateData(Si))if(typeof Ee=="function"){const re=Ee;Ee=(Fu=>{const zu=re(Fu);return this.stateExpansion.applyToWidget(zu,Si,n,l)})}else Ee=this.stateExpansion.applyToWidget(Ee,Si,n,l);return Ee}buildCustomWidgetContext(t,i,s,a,n,r,l){return{children:t,mapStaticDef:(u,p)=>this.mapper.mapStaticDef(u,p),walkChildren:u=>this.walkItems(u,i,s,a,n,r,l)}}buildCustomWidget(t,i,s){return t.buildCustomWidget(i,s)}buildBaseDef(t){const i=t.baseDef;return typeof i=="function"?s=>{const n=i(s??{});return t.path!=null?{...n,path:t.path}:n}:t.path!=null?{...i,path:t.path}:i}buildDecoratorForMatching(t,i,s){if(typeof t=="function")return{itemType:i,tags:[...s]};const a=[...s,..."tags"in t&&t.tags?t.tags:[]],n="uid"in t?t.uid:void 0,r="type"in t?t.type:void 0;return{itemType:i,tags:a,uid:n,type:r}}}class Ms{constructor(t,i){this.selectorNormalizer=t,this.walker=i}processDxFacade(t,i=[],s){const{defs:a,gslSelectors:n,formConfig:r}=this.prepareForm(t,i,s),{widgets:l,eventRegistry:u}=this.walker.walkAndMap(a,n,r),p=l[0];return this.buildResult({form:p},u,r)}prepareForm(t,i,s){const n=(Array.isArray(t)?[...t]:[t]).map(u=>typeof u=="function"?Wa(u):u),r=this.selectorNormalizer.normalizeSelectors(i),l={...this.selectorNormalizer.extractFormConfig(),...s};if(!l.suppressAutomaticStack){const u={def:{uid:"#root",direction:"column",widgetName:"flex"},children:n};return{defs:[{type:"ITEMS",itemType:Ii.LAYOUTS,items:[u],tags:[]}],gslSelectors:r,formConfig:l}}return{defs:n,gslSelectors:r,formConfig:l}}convertStateNames(t){const i={};for(const[s,a]of Object.entries(t))i[s.replace(/\$/g,":")]=a;return i}buildResult(t,i,s){s.states&&Object.keys(s.states).length>0&&(t={...t,states:this.convertStateNames(s.states)});const a={form:t};return i.size>0&&(a.events=n=>{const r=i.get(n.name);if(r){const l=p=>{if(p&&typeof p=="object"&&"path"in p&&!("type"in p)){const{path:c,...y}=p;for(const[f,b]of Object.entries(y))n.callback({type:"OVERRIDE_WIDGET_PROP",payload:{path:c,prop:f,value:b}})}else n.callback(p)},u={...n,callback:l,update:l};r(u)}}),s.dependencies&&(a.dependencies=s.dependencies),s.widgetLoaders&&(a.widgetLoaders=s.widgetLoaders),s.validateOn&&(a.validateOn=s.validateOn),s.itemRenderers&&(a.itemRenderers=s.itemRenderers),a}}const Rs=new Ts(ws,Cs,Ss,Wt,As),Fs=new Ms(Os,Rs);function Ni(e){return typeof e=="function"?!0:Array.isArray(e)?e.length===0||e.every(Bi):Bi(e)}function Bi(e){if(typeof e=="function")return!0;if(e===null||typeof e!="object")return!1;const t=e;return t.type==="ITEMS"&&typeof t.itemType=="string"}function zs(e){if(!e||typeof e!="object"||Array.isArray(e))return;const t=e.form;if(Ni(t))throw new Error("[GolemUI] The gui.* form definition was wrapped in an extra `{ form: ... }` object, so its fields were never resolved. Pass the gui.* array DIRECTLY as formDef (`config={{ formDef: form }}`) and put any named `states` in `formConfig`: `config={{ formDef: form, formConfig: { states } }}`. Do NOT wrap them as a `{ form: [...] }` object.")}const qi=Object.freeze({}),Ns=Object.freeze({}),Zi=new WeakMap;function Gt(e,t){return e==null?t:typeof e=="object"?e:{}}function Bs(e,t,i){if(!Ni(e))return zs(e),{formDef:e};const s=Gt(e,qi),a=Gt(t,qi),n=Gt(i,Ns);let r=Zi.get(s);r||(r=new WeakMap,Zi.set(s,r));let l=r.get(a);l||(l=new WeakMap,r.set(a,l));const u=l.get(n);if(u)return u;const p=Fs.processDxFacade(e,t,i),c={formDef:p.form,formEvent:p.events,dependencies:p.dependencies,widgetLoaders:p.widgetLoaders,validateOn:p.validateOn,itemRenderers:p.itemRenderers};return l.set(n,c),c}function m(e,t,i){function s(l,u){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:u,constr:r,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,u);const p=r.prototype,c=Object.keys(p);for(let y=0;y<c.length;y++){const f=c[y];f in l||(l[f]=p[f].bind(l))}}const a=i?.Parent??Object;class n extends a{}Object.defineProperty(n,"name",{value:e});function r(l){var u;const p=i?.Parent?new n:this;s(p,l),(u=p._zod).deferred??(u.deferred=[]);for(const c of p._zod.deferred)c();return p}return Object.defineProperty(r,"init",{value:s}),Object.defineProperty(r,Symbol.hasInstance,{value:l=>i?.Parent&&l instanceof i.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(r,"name",{value:e}),r}class Ge extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Vi extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const qs={};function Re(e){return qs}function Ht(e,t){return typeof t=="bigint"?t.toString():t}function Yt(e){return e==null}function Kt(e){const t=e.startsWith("^")?1:0,i=e.endsWith("$")?e.length-1:e.length;return e.slice(t,i)}const Ui=Symbol("evaluating");function x(e,t,i){let s;Object.defineProperty(e,t,{get(){if(s!==Ui)return s===void 0&&(s=Ui,s=i()),s},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function Zs(...e){const t={};for(const i of e){const s=Object.getOwnPropertyDescriptors(i);Object.assign(t,s)}return Object.defineProperties({},t)}function Vs(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Wi="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Gi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Xt(e){if(Gi(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const i=t.prototype;return!(Gi(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function Hi(e){return Xt(e)?{...e}:Array.isArray(e)?[...e]:e}function Jt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Yi(e,t,i){const s=new e._zod.constr(t??e._zod.def);return(!t||i?.parent)&&(s._zod.parent=e),s}function v(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}const Us={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function He(e,t=0){if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(e.issues[i]?.continue!==!0)return!0;return!1}function Ws(e,t){return t.map(i=>{var s;return(s=i).path??(s.path=[]),i.path.unshift(e),i})}function Ot(e){return typeof e=="string"?e:e?.message}function Fe(e,t,i){const s={...e,path:e.path??[]};if(!e.message){const a=Ot(e.inst?._zod.def?.error?.(e))??Ot(t?.error?.(e))??Ot(i.customError?.(e))??Ot(i.localeError?.(e))??"Invalid input";s.message=a}return delete s.inst,delete s.continue,t?.reportInput||delete s.input,s}function Qt(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function je(...e){const[t,i,s]=e;return typeof t=="string"?{message:t,code:"custom",input:i,inst:s}:{...t}}const Ki=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ht,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Xi=m("$ZodError",Ki),Pt=m("$ZodError",Ki,{Parent:Error});function Gs(e,t=i=>i.message){const i={},s=[];for(const a of e.issues)a.path.length>0?(i[a.path[0]]=i[a.path[0]]||[],i[a.path[0]].push(t(a))):s.push(t(a));return{formErrors:s,fieldErrors:i}}function Hs(e,t=i=>i.message){const i={_errors:[]},s=a=>{for(const n of a.issues)if(n.code==="invalid_union"&&n.errors.length)n.errors.map(r=>s({issues:r}));else if(n.code==="invalid_key")s({issues:n.issues});else if(n.code==="invalid_element")s({issues:n.issues});else if(n.path.length===0)i._errors.push(t(n));else{let r=i,l=0;for(;l<n.path.length;){const u=n.path[l];l===n.path.length-1?(r[u]=r[u]||{_errors:[]},r[u]._errors.push(t(n))):r[u]=r[u]||{_errors:[]},r=r[u],l++}}};return s(e),i}const It=e=>(t,i,s,a)=>{const n=s?Object.assign(s,{async:!1}):{async:!1},r=t._zod.run({value:i,issues:[]},n);if(r instanceof Promise)throw new Ge;if(r.issues.length){const l=new(a?.Err??e)(r.issues.map(u=>Fe(u,n,Re())));throw Wi(l,a?.callee),l}return r.value},Ys=It(Pt),At=e=>async(t,i,s,a)=>{const n=s?Object.assign(s,{async:!0}):{async:!0};let r=t._zod.run({value:i,issues:[]},n);if(r instanceof Promise&&(r=await r),r.issues.length){const l=new(a?.Err??e)(r.issues.map(u=>Fe(u,n,Re())));throw Wi(l,a?.callee),l}return r.value},Ks=At(Pt),Lt=e=>(t,i,s)=>{const a=s?{...s,async:!1}:{async:!1},n=t._zod.run({value:i,issues:[]},a);if(n instanceof Promise)throw new Ge;return n.issues.length?{success:!1,error:new(e??Xi)(n.issues.map(r=>Fe(r,a,Re())))}:{success:!0,data:n.value}},Ji=Lt(Pt),Tt=e=>async(t,i,s)=>{const a=s?Object.assign(s,{async:!0}):{async:!0};let n=t._zod.run({value:i,issues:[]},a);return n instanceof Promise&&(n=await n),n.issues.length?{success:!1,error:new e(n.issues.map(r=>Fe(r,a,Re())))}:{success:!0,data:n.value}},Qi=Tt(Pt),Xs=e=>(t,i,s)=>{const a=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return It(e)(t,i,a)},Js=e=>(t,i,s)=>It(e)(t,i,s),Qs=e=>async(t,i,s)=>{const a=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return At(e)(t,i,a)},js=e=>async(t,i,s)=>At(e)(t,i,s),en=e=>(t,i,s)=>{const a=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Lt(e)(t,i,a)},tn=e=>(t,i,s)=>Lt(e)(t,i,s),an=e=>async(t,i,s)=>{const a=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Tt(e)(t,i,a)},sn=e=>async(t,i,s)=>Tt(e)(t,i,s),nn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ji=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,rn=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,on=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ln=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,dn=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,ea="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",un=new RegExp(`^${ea}$`);function ta(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function pn(e){return new RegExp(`^${ta(e)}$`)}function cn(e){const t=ta({precision:e.precision}),i=["Z"];e.local&&i.push(""),e.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${t}(?:${i.join("|")})`;return new RegExp(`^${ea}T(?:${s})$`)}const hn=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},mn=/^-?\d+$/,yn=/^-?\d+(?:\.\d+)?/,fn=/^(?:true|false)$/i,gn=/^[^A-Z]*$/,bn=/^[^a-z]*$/,me=m("$ZodCheck",(e,t)=>{var i;e._zod??(e._zod={}),e._zod.def=t,(i=e._zod).onattach??(i.onattach=[])}),ia={number:"number",bigint:"bigint",object:"date"},Dn=m("$ZodCheckLessThan",(e,t)=>{me.init(e,t);const i=ia[typeof t.value];e._zod.onattach.push(s=>{const a=s._zod.bag,n=(t.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<n&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=s=>{(t.inclusive?s.value<=t.value:s.value<t.value)||s.issues.push({origin:i,code:"too_big",maximum:t.value,input:s.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),vn=m("$ZodCheckGreaterThan",(e,t)=>{me.init(e,t);const i=ia[typeof t.value];e._zod.onattach.push(s=>{const a=s._zod.bag,n=(t.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>n&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=s=>{(t.inclusive?s.value>=t.value:s.value>t.value)||s.issues.push({origin:i,code:"too_small",minimum:t.value,input:s.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),wn=m("$ZodCheckNumberFormat",(e,t)=>{me.init(e,t),t.format=t.format||"float64";const i=t.format?.includes("int"),s=i?"int":"number",[a,n]=Us[t.format];e._zod.onattach.push(r=>{const l=r._zod.bag;l.format=t.format,l.minimum=a,l.maximum=n,i&&(l.pattern=mn)}),e._zod.check=r=>{const l=r.value;if(i){if(!Number.isInteger(l)){r.issues.push({expected:s,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?r.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!t.abort}):r.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!t.abort});return}}l<a&&r.issues.push({origin:"number",input:l,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),l>n&&r.issues.push({origin:"number",input:l,code:"too_big",maximum:n,inst:e})}}),$n=m("$ZodCheckMaxLength",(e,t)=>{var i;me.init(e,t),(i=e._zod.def).when??(i.when=s=>{const a=s.value;return!Yt(a)&&a.length!==void 0}),e._zod.onattach.push(s=>{const a=s._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(s._zod.bag.maximum=t.maximum)}),e._zod.check=s=>{const a=s.value;if(a.length<=t.maximum)return;const r=Qt(a);s.issues.push({origin:r,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),kn=m("$ZodCheckMinLength",(e,t)=>{var i;me.init(e,t),(i=e._zod.def).when??(i.when=s=>{const a=s.value;return!Yt(a)&&a.length!==void 0}),e._zod.onattach.push(s=>{const a=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(s._zod.bag.minimum=t.minimum)}),e._zod.check=s=>{const a=s.value;if(a.length>=t.minimum)return;const r=Qt(a);s.issues.push({origin:r,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),_n=m("$ZodCheckLengthEquals",(e,t)=>{var i;me.init(e,t),(i=e._zod.def).when??(i.when=s=>{const a=s.value;return!Yt(a)&&a.length!==void 0}),e._zod.onattach.push(s=>{const a=s._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=s=>{const a=s.value,n=a.length;if(n===t.length)return;const r=Qt(a),l=n>t.length;s.issues.push({origin:r,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!t.abort})}}),Mt=m("$ZodCheckStringFormat",(e,t)=>{var i,s;me.init(e,t),e._zod.onattach.push(a=>{const n=a._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(i=e._zod).check??(i.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(s=e._zod).check??(s.check=()=>{})}),Cn=m("$ZodCheckRegex",(e,t)=>{Mt.init(e,t),e._zod.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),xn=m("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=gn),Mt.init(e,t)}),Sn=m("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=bn),Mt.init(e,t)}),En=m("$ZodCheckIncludes",(e,t)=>{me.init(e,t);const i=Jt(t.includes),s=new RegExp(typeof t.position=="number"?`^.{${t.position}}${i}`:i);t.pattern=s,e._zod.onattach.push(a=>{const n=a._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(s)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),On=m("$ZodCheckStartsWith",(e,t)=>{me.init(e,t);const i=new RegExp(`^${Jt(t.prefix)}.*`);t.pattern??(t.pattern=i),e._zod.onattach.push(s=>{const a=s._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),e._zod.check=s=>{s.value.startsWith(t.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:s.value,inst:e,continue:!t.abort})}}),Pn=m("$ZodCheckEndsWith",(e,t)=>{me.init(e,t);const i=new RegExp(`.*${Jt(t.suffix)}$`);t.pattern??(t.pattern=i),e._zod.onattach.push(s=>{const a=s._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),e._zod.check=s=>{s.value.endsWith(t.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:s.value,inst:e,continue:!t.abort})}}),In=m("$ZodCheckOverwrite",(e,t)=>{me.init(e,t),e._zod.check=i=>{i.value=t.tx(i.value)}}),An={major:4,minor:1,patch:13},F=m("$ZodType",(e,t)=>{var i;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=An;const s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(const a of s)for(const n of a._zod.onattach)n(e);if(s.length===0)(i=e._zod).deferred??(i.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const a=(r,l,u)=>{let p=He(r),c;for(const y of l){if(y._zod.def.when){if(!y._zod.def.when(r))continue}else if(p)continue;const f=r.issues.length,b=y._zod.check(r);if(b instanceof Promise&&u?.async===!1)throw new Ge;if(c||b instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await b,r.issues.length!==f&&(p||(p=He(r,f)))});else{if(r.issues.length===f)continue;p||(p=He(r,f))}}return c?c.then(()=>r):r},n=(r,l,u)=>{if(He(r))return r.aborted=!0,r;const p=a(l,s,u);if(p instanceof Promise){if(u.async===!1)throw new Ge;return p.then(c=>e._zod.parse(c,u))}return e._zod.parse(p,u)};e._zod.run=(r,l)=>{if(l.skipChecks)return e._zod.parse(r,l);if(l.direction==="backward"){const p=e._zod.parse({value:r.value,issues:[]},{...l,skipChecks:!0});return p instanceof Promise?p.then(c=>n(c,r,l)):n(p,r,l)}const u=e._zod.parse(r,l);if(u instanceof Promise){if(l.async===!1)throw new Ge;return u.then(p=>a(p,s,l))}return a(u,s,l)}}e["~standard"]={validate:a=>{try{const n=Ji(e,a);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Qi(e,a).then(r=>r.success?{value:r.data}:{issues:r.error?.issues})}},vendor:"zod",version:1}}),jt=m("$ZodString",(e,t)=>{F.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??hn(e._zod.bag),e._zod.parse=(i,s)=>{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),fe=m("$ZodStringFormat",(e,t)=>{Mt.init(e,t),jt.init(e,t)}),Ln=m("$ZodUUID",(e,t)=>{if(t.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(s===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ji(s))}else t.pattern??(t.pattern=ji());fe.init(e,t)}),Tn=m("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=rn),fe.init(e,t)}),Mn=m("$ZodURL",(e,t)=>{fe.init(e,t),e._zod.check=i=>{try{const s=i.value.trim(),a=new URL(s);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:i.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:i.value,inst:e,continue:!t.abort})),t.normalize?i.value=a.href:i.value=s;return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:e,continue:!t.abort})}}}),Rn=m("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=cn(t)),fe.init(e,t)}),Fn=m("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=un),fe.init(e,t)}),zn=m("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=pn(t)),fe.init(e,t)}),Nn=m("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=nn),fe.init(e,t)}),Bn=m("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=on),fe.init(e,t),e._zod.bag.format="ipv4"}),qn=m("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ln),fe.init(e,t),e._zod.bag.format="ipv6",e._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!t.abort})}}}),Zn=m("$ZodCustomStringFormat",(e,t)=>{fe.init(e,t),e._zod.check=i=>{t.fn(i.value)||i.issues.push({code:"invalid_format",format:t.format,input:i.value,inst:e,continue:!t.abort})}}),aa=m("$ZodNumber",(e,t)=>{F.init(e,t),e._zod.pattern=e._zod.bag.pattern??yn,e._zod.parse=(i,s)=>{if(t.coerce)try{i.value=Number(i.value)}catch{}const a=i.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return i;const n=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:a,inst:e,...n?{received:n}:{}}),i}}),Vn=m("$ZodNumberFormat",(e,t)=>{wn.init(e,t),aa.init(e,t)}),Un=m("$ZodBoolean",(e,t)=>{F.init(e,t),e._zod.pattern=fn,e._zod.parse=(i,s)=>{if(t.coerce)try{i.value=!!i.value}catch{}const a=i.value;return typeof a=="boolean"||i.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),i}}),Wn=m("$ZodAny",(e,t)=>{F.init(e,t),e._zod.parse=i=>i});function sa(e,t,i){e.issues.length&&t.issues.push(...Ws(i,e.issues)),t.value[i]=e.value}const na=m("$ZodArray",(e,t)=>{F.init(e,t),e._zod.parse=(i,s)=>{const a=i.value;if(!Array.isArray(a))return i.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),i;i.value=Array(a.length);const n=[];for(let r=0;r<a.length;r++){const l=a[r],u=t.element._zod.run({value:l,issues:[]},s);u instanceof Promise?n.push(u.then(p=>sa(p,i,r))):sa(u,i,r)}return n.length?Promise.all(n).then(()=>i):i}});function ra(e,t,i,s){for(const n of e)if(n.issues.length===0)return t.value=n.value,t;const a=e.filter(n=>!He(n));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:e.map(n=>n.issues.map(r=>Fe(r,s,Re())))}),t)}const Gn=m("$ZodUnion",(e,t)=>{F.init(e,t),x(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),x(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),x(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),x(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){const a=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${a.map(n=>Kt(n.source)).join("|")})$`)}});const i=t.options.length===1,s=t.options[0]._zod.run;e._zod.parse=(a,n)=>{if(i)return s(a,n);let r=!1;const l=[];for(const u of t.options){const p=u._zod.run({value:a.value,issues:[]},n);if(p instanceof Promise)l.push(p),r=!0;else{if(p.issues.length===0)return p;l.push(p)}}return r?Promise.all(l).then(u=>ra(u,a,e,n)):ra(l,a,e,n)}}),Hn=m("$ZodIntersection",(e,t)=>{F.init(e,t),e._zod.parse=(i,s)=>{const a=i.value,n=t.left._zod.run({value:a,issues:[]},s),r=t.right._zod.run({value:a,issues:[]},s);return n instanceof Promise||r instanceof Promise?Promise.all([n,r]).then(([u,p])=>oa(i,u,p)):oa(i,n,r)}});function ei(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Xt(e)&&Xt(t)){const i=Object.keys(t),s=Object.keys(e).filter(n=>i.indexOf(n)!==-1),a={...e,...t};for(const n of s){const r=ei(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};a[n]=r.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const i=[];for(let s=0;s<e.length;s++){const a=e[s],n=t[s],r=ei(a,n);if(!r.valid)return{valid:!1,mergeErrorPath:[s,...r.mergeErrorPath]};i.push(r.data)}return{valid:!0,data:i}}return{valid:!1,mergeErrorPath:[]}}function oa(e,t,i){if(t.issues.length&&e.issues.push(...t.issues),i.issues.length&&e.issues.push(...i.issues),He(e))return e;const s=ei(t.value,i.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const Yn=m("$ZodTransform",(e,t)=>{F.init(e,t),e._zod.parse=(i,s)=>{if(s.direction==="backward")throw new Vi(e.constructor.name);const a=t.transform(i.value,i);if(s.async)return(a instanceof Promise?a:Promise.resolve(a)).then(r=>(i.value=r,i));if(a instanceof Promise)throw new Ge;return i.value=a,i}});function la(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const da=m("$ZodOptional",(e,t)=>{F.init(e,t),e._zod.optin="optional",e._zod.optout="optional",x(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),x(e._zod,"pattern",()=>{const i=t.innerType._zod.pattern;return i?new RegExp(`^(${Kt(i.source)})?$`):void 0}),e._zod.parse=(i,s)=>{if(t.innerType._zod.optin==="optional"){const a=t.innerType._zod.run(i,s);return a instanceof Promise?a.then(n=>la(n,i.value)):la(a,i.value)}return i.value===void 0?i:t.innerType._zod.run(i,s)}}),Kn=m("$ZodNullable",(e,t)=>{F.init(e,t),x(e._zod,"optin",()=>t.innerType._zod.optin),x(e._zod,"optout",()=>t.innerType._zod.optout),x(e._zod,"pattern",()=>{const i=t.innerType._zod.pattern;return i?new RegExp(`^(${Kt(i.source)}|null)$`):void 0}),x(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(i,s)=>i.value===null?i:t.innerType._zod.run(i,s)}),Xn=m("$ZodDefault",(e,t)=>{F.init(e,t),e._zod.optin="optional",x(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(i,s)=>{if(s.direction==="backward")return t.innerType._zod.run(i,s);if(i.value===void 0)return i.value=t.defaultValue,i;const a=t.innerType._zod.run(i,s);return a instanceof Promise?a.then(n=>ua(n,t)):ua(a,t)}});function ua(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Jn=m("$ZodPrefault",(e,t)=>{F.init(e,t),e._zod.optin="optional",x(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(i,s)=>(s.direction==="backward"||i.value===void 0&&(i.value=t.defaultValue),t.innerType._zod.run(i,s))}),Qn=m("$ZodNonOptional",(e,t)=>{F.init(e,t),x(e._zod,"values",()=>{const i=t.innerType._zod.values;return i?new Set([...i].filter(s=>s!==void 0)):void 0}),e._zod.parse=(i,s)=>{const a=t.innerType._zod.run(i,s);return a instanceof Promise?a.then(n=>pa(n,e)):pa(a,e)}});function pa(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const jn=m("$ZodCatch",(e,t)=>{F.init(e,t),x(e._zod,"optin",()=>t.innerType._zod.optin),x(e._zod,"optout",()=>t.innerType._zod.optout),x(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(i,s)=>{if(s.direction==="backward")return t.innerType._zod.run(i,s);const a=t.innerType._zod.run(i,s);return a instanceof Promise?a.then(n=>(i.value=n.value,n.issues.length&&(i.value=t.catchValue({...i,error:{issues:n.issues.map(r=>Fe(r,s,Re()))},input:i.value}),i.issues=[]),i)):(i.value=a.value,a.issues.length&&(i.value=t.catchValue({...i,error:{issues:a.issues.map(n=>Fe(n,s,Re()))},input:i.value}),i.issues=[]),i)}}),er=m("$ZodPipe",(e,t)=>{F.init(e,t),x(e._zod,"values",()=>t.in._zod.values),x(e._zod,"optin",()=>t.in._zod.optin),x(e._zod,"optout",()=>t.out._zod.optout),x(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(i,s)=>{if(s.direction==="backward"){const n=t.out._zod.run(i,s);return n instanceof Promise?n.then(r=>Rt(r,t.in,s)):Rt(n,t.in,s)}const a=t.in._zod.run(i,s);return a instanceof Promise?a.then(n=>Rt(n,t.out,s)):Rt(a,t.out,s)}});function Rt(e,t,i){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},i)}const tr=m("$ZodReadonly",(e,t)=>{F.init(e,t),x(e._zod,"propValues",()=>t.innerType._zod.propValues),x(e._zod,"values",()=>t.innerType._zod.values),x(e._zod,"optin",()=>t.innerType?._zod?.optin),x(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(i,s)=>{if(s.direction==="backward")return t.innerType._zod.run(i,s);const a=t.innerType._zod.run(i,s);return a instanceof Promise?a.then(ca):ca(a)}});function ca(e){return e.value=Object.freeze(e.value),e}const ha=m("$ZodCustom",(e,t)=>{me.init(e,t),F.init(e,t),e._zod.parse=(i,s)=>i,e._zod.check=i=>{const s=i.value,a=t.fn(s);if(a instanceof Promise)return a.then(n=>ma(n,i,s,e));ma(a,i,s,e)}});function ma(e,t,i,s){if(!e){const a={code:"custom",input:i,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(a.params=s._zod.def.params),t.issues.push(je(a))}}var ya;class ir{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...i){const s=i[0];if(this._map.set(t,s),s&&typeof s=="object"&&"id"in s){if(this._idmap.has(s.id))throw new Error(`ID ${s.id} already exists in the registry`);this._idmap.set(s.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const i=this._map.get(t);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(t),this}get(t){const i=t._zod.parent;if(i){const s={...this.get(i)??{}};delete s.id;const a={...s,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function ar(){return new ir}(ya=globalThis).__zod_globalRegistry??(ya.__zod_globalRegistry=ar());const Ft=globalThis.__zod_globalRegistry;function sr(e,t){return new e({type:"string",...v(t)})}function nr(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...v(t)})}function rr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...v(t)})}function or(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...v(t)})}function lr(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...v(t)})}function dr(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...v(t)})}function ur(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...v(t)})}function pr(e,t){return new e({type:"string",format:"date",check:"string_format",...v(t)})}function cr(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...v(t)})}function hr(e,t){return new e({type:"string",format:"duration",check:"string_format",...v(t)})}function mr(e,t){return new e({type:"number",checks:[],...v(t)})}function yr(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...v(t)})}function fr(e,t){return new e({type:"boolean",...v(t)})}function gr(e){return new e({type:"any"})}function br(e,t){return new Dn({check:"less_than",...v(t),value:e,inclusive:!0})}function Dr(e,t){return new vn({check:"greater_than",...v(t),value:e,inclusive:!0})}function zt(e,t){return new $n({check:"max_length",...v(t),maximum:e})}function Ye(e,t){return new kn({check:"min_length",...v(t),minimum:e})}function fa(e,t){return new _n({check:"length_equals",...v(t),length:e})}function ga(e,t){return new Cn({check:"string_format",format:"regex",...v(t),pattern:e})}function vr(e){return new xn({check:"string_format",format:"lowercase",...v(e)})}function wr(e){return new Sn({check:"string_format",format:"uppercase",...v(e)})}function $r(e,t){return new En({check:"string_format",format:"includes",...v(t),includes:e})}function kr(e,t){return new On({check:"string_format",format:"starts_with",...v(t),prefix:e})}function _r(e,t){return new Pn({check:"string_format",format:"ends_with",...v(t),suffix:e})}function Ke(e){return new In({check:"overwrite",tx:e})}function Cr(e){return Ke(t=>t.normalize(e))}function xr(){return Ke(e=>e.trim())}function Sr(){return Ke(e=>e.toLowerCase())}function Er(){return Ke(e=>e.toUpperCase())}function Or(){return Ke(e=>Vs(e))}function Pr(e,t,i){return new e({type:"array",element:t,...v(i)})}function ba(e,t,i){return new e({type:"custom",check:"custom",fn:t,...v(i)})}function Da(e){const t=Ir(i=>(i.addIssue=s=>{if(typeof s=="string")i.issues.push(je(s,i.value,t._zod.def));else{const a=s;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=i.value),a.inst??(a.inst=t),a.continue??(a.continue=!t._zod.def.abort),i.issues.push(je(a))}},e(i.value,i)));return t}function Ir(e,t){const i=new me({check:"custom",...v(t)});return i._zod.check=e,i}function Ar(e,t,i,s={}){const a=v(s),n={...v(s),check:"string_format",type:"string",format:t,fn:typeof i=="function"?i:l=>i.test(l),...a};return i instanceof RegExp&&(n.pattern=i),new e(n)}const Lr=m("ZodISODateTime",(e,t)=>{Rn.init(e,t),Nt.init(e,t)});function Tr(e){return ur(Lr,e)}const Mr=m("ZodISODate",(e,t)=>{Fn.init(e,t),Nt.init(e,t)});function Rr(e){return pr(Mr,e)}const Fr=m("ZodISOTime",(e,t)=>{zn.init(e,t),Nt.init(e,t)});function zr(e){return cr(Fr,e)}const Nr=m("ZodISODuration",(e,t)=>{Nn.init(e,t),Nt.init(e,t)});function Br(e){return hr(Nr,e)}const ge=m("ZodError",(e,t)=>{Xi.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:i=>Hs(e,i)},flatten:{value:i=>Gs(e,i)},addIssue:{value:i=>{e.issues.push(i),e.message=JSON.stringify(e.issues,Ht,2)}},addIssues:{value:i=>{e.issues.push(...i),e.message=JSON.stringify(e.issues,Ht,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),qr=It(ge),Zr=At(ge),Vr=Lt(ge),Ur=Tt(ge),Wr=Xs(ge),Gr=Js(ge),Hr=Qs(ge),Yr=js(ge),Kr=en(ge),Xr=tn(ge),Jr=an(ge),Qr=sn(ge),oe=m("ZodType",(e,t)=>(F.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...i)=>e.clone(Zs(t,{checks:[...t.checks??[],...i.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]})),e.clone=(i,s)=>Yi(e,i,s),e.brand=()=>e,e.register=((i,s)=>(i.add(e,s),e)),e.parse=(i,s)=>qr(e,i,s,{callee:e.parse}),e.safeParse=(i,s)=>Vr(e,i,s),e.parseAsync=async(i,s)=>Zr(e,i,s,{callee:e.parseAsync}),e.safeParseAsync=async(i,s)=>Ur(e,i,s),e.spa=e.safeParseAsync,e.encode=(i,s)=>Wr(e,i,s),e.decode=(i,s)=>Gr(e,i,s),e.encodeAsync=async(i,s)=>Hr(e,i,s),e.decodeAsync=async(i,s)=>Yr(e,i,s),e.safeEncode=(i,s)=>Kr(e,i,s),e.safeDecode=(i,s)=>Xr(e,i,s),e.safeEncodeAsync=async(i,s)=>Jr(e,i,s),e.safeDecodeAsync=async(i,s)=>Qr(e,i,s),e.refine=(i,s)=>e.check(ko(i,s)),e.superRefine=i=>e.check(_o(i)),e.overwrite=i=>e.check(Ke(i)),e.optional=()=>va(e),e.nullable=()=>wa(e),e.nullish=()=>va(wa(e)),e.nonoptional=i=>fo(e,i),e.array=()=>to(e),e.or=i=>ao([e,i]),e.and=i=>no(e,i),e.transform=i=>$a(e,oo(i)),e.default=i=>co(e,i),e.prefault=i=>mo(e,i),e.catch=i=>bo(e,i),e.pipe=i=>$a(e,i),e.readonly=()=>wo(e),e.describe=i=>{const s=e.clone();return Ft.add(s,{description:i}),s},Object.defineProperty(e,"description",{get(){return Ft.get(e)?.description},configurable:!0}),e.meta=(...i)=>{if(i.length===0)return Ft.get(e);const s=e.clone();return Ft.add(s,i[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),jr=m("_ZodString",(e,t)=>{jt.init(e,t),oe.init(e,t);const i=e._zod.bag;e.format=i.format??null,e.minLength=i.minimum??null,e.maxLength=i.maximum??null,e.regex=(...s)=>e.check(ga(...s)),e.includes=(...s)=>e.check($r(...s)),e.startsWith=(...s)=>e.check(kr(...s)),e.endsWith=(...s)=>e.check(_r(...s)),e.min=(...s)=>e.check(Ye(...s)),e.max=(...s)=>e.check(zt(...s)),e.length=(...s)=>e.check(fa(...s)),e.nonempty=(...s)=>e.check(Ye(1,...s)),e.lowercase=s=>e.check(vr(s)),e.uppercase=s=>e.check(wr(s)),e.trim=()=>e.check(xr()),e.normalize=(...s)=>e.check(Cr(...s)),e.toLowerCase=()=>e.check(Sr()),e.toUpperCase=()=>e.check(Er()),e.slugify=()=>e.check(Or())}),Nt=m("ZodStringFormat",(e,t)=>{fe.init(e,t),jr.init(e,t)}),eo=m("ZodArray",(e,t)=>{na.init(e,t),oe.init(e,t),e.element=t.element,e.min=(i,s)=>e.check(Ye(i,s)),e.nonempty=i=>e.check(Ye(1,i)),e.max=(i,s)=>e.check(zt(i,s)),e.length=(i,s)=>e.check(fa(i,s)),e.unwrap=()=>e.element});function to(e,t){return Pr(eo,e,t)}const io=m("ZodUnion",(e,t)=>{Gn.init(e,t),oe.init(e,t),e.options=t.options});function ao(e,t){return new io({type:"union",options:e,...v(t)})}const so=m("ZodIntersection",(e,t)=>{Hn.init(e,t),oe.init(e,t)});function no(e,t){return new so({type:"intersection",left:e,right:t})}const ro=m("ZodTransform",(e,t)=>{Yn.init(e,t),oe.init(e,t),e._zod.parse=(i,s)=>{if(s.direction==="backward")throw new Vi(e.constructor.name);i.addIssue=n=>{if(typeof n=="string")i.issues.push(je(n,i.value,t));else{const r=n;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=i.value),r.inst??(r.inst=e),i.issues.push(je(r))}};const a=t.transform(i.value,i);return a instanceof Promise?a.then(n=>(i.value=n,i)):(i.value=a,i)}});function oo(e){return new ro({type:"transform",transform:e})}const lo=m("ZodOptional",(e,t)=>{da.init(e,t),oe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function va(e){return new lo({type:"optional",innerType:e})}const uo=m("ZodNullable",(e,t)=>{Kn.init(e,t),oe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function wa(e){return new uo({type:"nullable",innerType:e})}const po=m("ZodDefault",(e,t)=>{Xn.init(e,t),oe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function co(e,t){return new po({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Hi(t)}})}const ho=m("ZodPrefault",(e,t)=>{Jn.init(e,t),oe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function mo(e,t){return new ho({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Hi(t)}})}const yo=m("ZodNonOptional",(e,t)=>{Qn.init(e,t),oe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function fo(e,t){return new yo({type:"nonoptional",innerType:e,...v(t)})}const go=m("ZodCatch",(e,t)=>{jn.init(e,t),oe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bo(e,t){return new go({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Do=m("ZodPipe",(e,t)=>{er.init(e,t),oe.init(e,t),e.in=t.in,e.out=t.out});function $a(e,t){return new Do({type:"pipe",in:e,out:t})}const vo=m("ZodReadonly",(e,t)=>{tr.init(e,t),oe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function wo(e){return new vo({type:"readonly",innerType:e})}const $o=m("ZodCustom",(e,t)=>{ha.init(e,t),oe.init(e,t)});function ko(e,t={}){return ba($o,e,t)}function _o(e){return Da(e)}const ze=m("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");F.init(e,t),e.def=t,e.type=t.type,e.parse=(i,s)=>Ys(e,i,s,{callee:e.parse}),e.safeParse=(i,s)=>Ji(e,i,s),e.parseAsync=async(i,s)=>Ks(e,i,s,{callee:e.parseAsync}),e.safeParseAsync=async(i,s)=>Qi(e,i,s),e.check=(...i)=>e.clone({...t,checks:[...t.checks??[],...i.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),e.clone=(i,s)=>Yi(e,i,s),e.brand=()=>e,e.register=((i,s)=>(i.add(e,s),e))}),ka=m("ZodMiniString",(e,t)=>{jt.init(e,t),ze.init(e,t)});function _a(e){return sr(ka,e)}const Xe=m("ZodMiniStringFormat",(e,t)=>{fe.init(e,t),ka.init(e,t)}),Co=m("ZodMiniEmail",(e,t)=>{Tn.init(e,t),Xe.init(e,t)});function xo(e){return nr(Co,e)}const So=m("ZodMiniUUID",(e,t)=>{Ln.init(e,t),Xe.init(e,t)});function Eo(e){return rr(So,e)}const Oo=m("ZodMiniURL",(e,t)=>{Mn.init(e,t),Xe.init(e,t)});function Po(e){return or(Oo,e)}const Io=m("ZodMiniIPv4",(e,t)=>{Bn.init(e,t),Xe.init(e,t)});function Ao(e){return lr(Io,e)}const Lo=m("ZodMiniIPv6",(e,t)=>{qn.init(e,t),Xe.init(e,t)});function To(e){return dr(Lo,e)}const Mo=m("ZodMiniCustomStringFormat",(e,t)=>{Zn.init(e,t),Xe.init(e,t)});function Ro(e){return Ar(Mo,"hostname",dn,e)}const Ca=m("ZodMiniNumber",(e,t)=>{aa.init(e,t),ze.init(e,t)});function xa(e){return mr(Ca,e)}const Fo=m("ZodMiniNumberFormat",(e,t)=>{Vn.init(e,t),Ca.init(e,t)});function zo(e){return yr(Fo,e)}const No=m("ZodMiniBoolean",(e,t)=>{Un.init(e,t),ze.init(e,t)});function Sa(e){return fr(No,e)}const Bo=m("ZodMiniAny",(e,t)=>{Wn.init(e,t),ze.init(e,t)});function ti(){return gr(Bo)}const qo=m("ZodMiniArray",(e,t)=>{na.init(e,t),ze.init(e,t)});function Ea(e,t){return new qo({type:"array",element:e,...v(t)})}const Zo=m("ZodMiniOptional",(e,t)=>{da.init(e,t),ze.init(e,t)});function Vo(e){return new Zo({type:"optional",innerType:e})}const Uo=m("ZodMiniCustom",(e,t)=>{ha.init(e,t),ze.init(e,t)});function Y(e,t={}){return ba(Uo,e,t)}function Oa(e){return Da(e)}const ii={email:{schema:xo()},hostname:{schema:Ro()},ipv4:{schema:Ao()},ipv6:{schema:To()},url:{schema:Po()},uuid:{schema:Eo()},date:{schema:Rr()},time:{schema:zr()},"date-time":{schema:Tr()},duration:{schema:Br()}},Wo=Object.keys(ii),Go=e=>(t,i)=>{switch(t.type){case"string":return Ho(t,i);case"integer":case"number":return Ko(t,i);case"boolean":return Xo(t,i);case"array":return Jo(t,i);case"custom":{if(!e)throw new Error('Validator type "custom" requires a customValidators object, but it was not supplied.');return Qo(t,e)}}};function E(e,t){if(e!==void 0)return typeof e=="string"?e:t?.translate(e.key,e.params,e.default)??e.default}function Ho(e,t){return et(e,i=>{const s=E(i.messages?.invalid,t);let a=s?_a(s):_a();if(i.required===!0){const n=E(i.messages?.required,t)??"This field is required";a=a.check(Y(r=>r.length>0,{error:n}))}if(typeof i.minLength=="number"){const n=E(i.messages?.minLength,t),r=i.minLength;a=a.check(n?Y(l=>l.length>=r,{error:n}):Ye(r))}if(typeof i.maxLength=="number"){const n=E(i.messages?.maxLength,t),r=i.maxLength;a=a.check(n?Y(l=>l.length<=r,{error:n}):zt(r))}if(typeof i.pattern=="string"){const n=E(i.messages?.pattern,t),r=new RegExp(i.pattern);a=a.check(n?Y(l=>r.test(l),{error:n}):ga(r))}if(i.enum){const n=i.enum,r=E(i.messages?.enum,t);a=a.check(Y(l=>n.includes(l),r?{error:r}:void 0))}if(i.const!==void 0){const n=E(i.messages?.const,t);a=a.check(Y(r=>r===i.const,n?{error:n}:void 0))}if(i.format!==void 0)if(Wo.includes(i.format)){const n=E(i.messages?.format,t);a=a.check(n?Oa((r,l)=>{const u=_e.standardValidate(ii[i.format].schema,r);_e.isStandardValidateSuccess(u)||l.addIssue({code:"custom",path:[],message:n})}):ii[i.format].schema)}else console.error(`The string validation format "${i.format}" is not supported`);return a})}const Yo=(e,t)=>{if(t===0)return!1;const i=e/t;return Math.abs(i-Math.round(i))<1e-10};function Ko(e,t){return et(e,i=>{const s=E(i.messages?.invalid,t);let a=s?xa(s):xa();if(i.type==="integer"&&(a=a.check(zo())),i.minimum!==void 0){const n=E(i.messages?.minimum,t),r=i.minimum;a=a.check(n?Y(l=>l>=r,{error:n}):Dr(r))}if(i.maximum!==void 0){const n=E(i.messages?.maximum,t),r=i.maximum;a=a.check(n?Y(l=>l<=r,{error:n}):br(r))}if(i.exclusiveMinimum!==void 0){const n=E(i.messages?.exclusiveMinimum,t),r=i.exclusiveMinimum;a=a.check(Y(l=>l>r,n?{error:n}:void 0))}if(i.exclusiveMaximum!==void 0){const n=E(i.messages?.exclusiveMaximum,t),r=i.exclusiveMaximum;a=a.check(Y(l=>l<r,n?{error:n}:void 0))}if(i.multipleOf!==void 0){const n=E(i.messages?.multipleOf,t),r=i.multipleOf;a=a.check(Y(l=>Yo(l,r),n?{error:n}:void 0))}if(i.enum){const n=i.enum,r=E(i.messages?.enum,t);a=a.check(Y(l=>n.includes(l),r?{error:r}:void 0))}if(i.const!==void 0){const n=E(i.messages?.const,t);a=a.check(Y(r=>r===i.const,n?{error:n}:void 0))}return a})}function Xo(e,t){return et(e,i=>{const s=E(i.messages?.invalid,t);let a=s?Sa(s):Sa();if(i.const!==void 0){const n=E(i.messages?.const,t);a=a.check(Y(r=>r===i.const,n?{error:n}:void 0))}return a})}function Jo(e,t){return et(e,i=>{const s=E(i.messages?.invalid,t);let a=s?Ea(ti(),s):Ea(ti());if(i.required===!0){const n=E(i.messages?.required,t)??"This field is required";a=a.check(Y(r=>r.length>0,{error:n}))}if(typeof i.minItems=="number"){const n=E(i.messages?.minItems,t),r=i.minItems;a=a.check(n?Y(l=>l.length>=r,{error:n}):Ye(r))}if(typeof i.maxItems=="number"){const n=E(i.messages?.maxItems,t),r=i.maxItems;a=a.check(n?Y(l=>l.length<=r,{error:n}):zt(r))}return a})}function Qo(e,t){return et(e,i=>{let s=ti();return _e.filterTap(Object.keys(i),a=>a!=="type"&&a!=="required",a=>{const n=i[a],r=t[a],l=r(n);s=s.check(Oa((u,p)=>{const c=_e.standardValidate(l,u);if(!_e.isStandardValidateSuccess(c)){const y=c.issues[0];p.addIssue({code:"custom",path:[],message:y?.message||`Validation failed for ${a}`})}}))}),s})}function et(e,t){const i=t(e);return e.required?i:Vo(i)}const jo=e=>e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"label")&&Object.prototype.hasOwnProperty.call(e,"value");function el(e,t){if(e!=null&&typeof e=="object"&&"__rid"in e)return e.__rid;const i=t();return Object.defineProperty(e,"__rid",{value:i,enumerable:!1,configurable:!1}),i}const Pa={button:async()=>(await Promise.resolve().then(()=>ol)).ButtonElement,calendar:async()=>(await Promise.resolve().then(()=>gl)).CalendarElement,rangeCalendar:async()=>(await Promise.resolve().then(()=>_l)).RangeCalendarElement,rangeDateInput:async()=>(await Promise.resolve().then(()=>Ol)).RangeDateInputElement,rangeDatePicker:async()=>(await Promise.resolve().then(()=>Al)).RangeDatePickerElement,currency:async()=>(await Promise.resolve().then(()=>Fl)).CurrencyElement,dateInput:async()=>(await Promise.resolve().then(()=>Zl)).DateElement,datePicker:async()=>(await Promise.resolve().then(()=>Wl)).DatePickerElement,dropdown:async()=>(await Promise.resolve().then(()=>nd)).DropdownElement,list:async()=>(await Promise.resolve().then(()=>ld)).ListElement,markdown:async()=>(await Promise.resolve().then(()=>yd)).MarkdownElement,password:async()=>(await Promise.resolve().then(()=>vd)).PasswordElement,textinput:async()=>(await Promise.resolve().then(()=>Cd)).TextinputElement,textarea:async()=>(await Promise.resolve().then(()=>Pd)).TextareaElement,toggle:async()=>(await Promise.resolve().then(()=>Md)).ToggleElement,checkbox:async()=>(await Promise.resolve().then(()=>Bd)).CheckboxElement,number:async()=>(await Promise.resolve().then(()=>Wd)).NumberElement,radiogroup:async()=>(await Promise.resolve().then(()=>jd)).RadiogroupElement,select:async()=>(await Promise.resolve().then(()=>su)).SelectElement,tags:async()=>(await Promise.resolve().then(()=>uu)).TagsElement,repeater:async()=>(await Promise.resolve().then(()=>yu)).RepeaterElement,flex:async()=>(await Promise.resolve().then(()=>bu)).FlexElement,grid:async()=>(await Promise.resolve().then(()=>wu)).GridElement,tabs:async()=>(await Promise.resolve().then(()=>_u)).TabsElement,accordion:async()=>(await Promise.resolve().then(()=>Su)).AccordionElement,alert:async()=>(await Promise.resolve().then(()=>Pu)).AlertElement,markdownText:async()=>(await Promise.resolve().then(()=>Lu)).MarkdownTextElement,renderer:async()=>(await Promise.resolve().then(()=>Ru)).RendererElement};var tl=Object.defineProperty,il=Object.getOwnPropertyDescriptor,tt=(e,t,i,s)=>{for(var a=s>1?void 0:s?il(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&tl(t,i,a),a};_.FormElement=class extends d.LitElement{constructor(){super(...arguments),this.autocomplete=void 0}setData(t){this.coreForm?.setData(t)}setMeta(t){this.coreForm?.setMeta(t)}createRenderRoot(){return this}render(){const t=this.config,i=Bs(t.formDef,t.formSelectors,t.formConfig),s={formDef:i.formDef,widgetLoaders:{...Pa,...i.widgetLoaders,...t.customWidgetLoaders??{}},dependencies:{...i.dependencies??{},...t.dependencies??{}},validateOn:t.validateOn??i.validateOn??"eager",itemRenderers:{...i.itemRenderers??{},...t.itemRenderers??{}},localization:t.localization,middlewares:t.middlewares??[],data:t.data,meta:t.meta,formName:t.formName},a=Go({...t.customValidators??{}}),n=i.formEvent,r=n?l=>n(l.detail):void 0;return d.html`
|
|
2
2
|
<gui-core-form
|
|
3
3
|
.config=${s}
|
|
4
4
|
.validators=${a}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
.iconPosition=${this.adapter.templateData.iconPosition}
|
|
34
34
|
@click=${()=>this.adapter.click()}
|
|
35
35
|
></gui-button>
|
|
36
|
-
`}disconnectedCallback(){super.disconnectedCallback(),this.adapter.destroy(),this.subscriptions.forEach(e=>e.unsubscribe())}};ai([g.consume({context:h.formContext}),o.property({attribute:!1})],it.prototype,"formContext",2),ai([g.provide({context:h.actionContext})],it.prototype,"adapter",2),it=ai([o.customElement("gui-button-interactive")],it);const ol=Object.freeze(Object.defineProperty({__proto__:null,get ButtonElement(){return it}},Symbol.toStringTag,{value:"Module"})),ll={aa:{firstDay:7,weekend:[6,7],minimalDays:1},"aa-DJ":{firstDay:6,weekend:[6,7],minimalDays:1},"aa-ER":{firstDay:1,weekend:[6,7],minimalDays:1},ab:{firstDay:1,weekend:[6,7],minimalDays:1},af:{firstDay:7,weekend:[6,7],minimalDays:1},"af-NA":{firstDay:1,weekend:[6,7],minimalDays:1},agq:{firstDay:1,weekend:[6,7],minimalDays:1},ak:{firstDay:1,weekend:[6,7],minimalDays:1},am:{firstDay:7,weekend:[6,7],minimalDays:1},an:{firstDay:1,weekend:[6,7],minimalDays:4},ann:{firstDay:1,weekend:[6,7],minimalDays:1},apc:{firstDay:6,weekend:[5,6],minimalDays:1},ar:{firstDay:6,weekend:[5,6],minimalDays:1},"ar-AE":{firstDay:6,weekend:[6,7],minimalDays:1},"ar-BH":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-DJ":{firstDay:6,weekend:[6,7],minimalDays:1},"ar-DZ":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-EG":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-EH":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-ER":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-IL":{firstDay:7,weekend:[5,6],minimalDays:1},"ar-IQ":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-JO":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-KM":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-KW":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-LB":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-LY":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-MA":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-MR":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-OM":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-PS":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-QA":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-SA":{firstDay:7,weekend:[5,6],minimalDays:1},"ar-SD":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-SO":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-SS":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-SY":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-TD":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-TN":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-YE":{firstDay:7,weekend:[5,6],minimalDays:1},arn:{firstDay:1,weekend:[6,7],minimalDays:1},as:{firstDay:7,weekend:[7],minimalDays:1},asa:{firstDay:1,weekend:[6,7],minimalDays:1},ast:{firstDay:1,weekend:[6,7],minimalDays:4},az:{firstDay:1,weekend:[6,7],minimalDays:1},"az-Arab":{firstDay:6,weekend:[5],minimalDays:1},"az-Arab-IQ":{firstDay:6,weekend:[5,6],minimalDays:1},"az-Arab-TR":{firstDay:1,weekend:[6,7],minimalDays:1},"az-Cyrl":{firstDay:1,weekend:[6,7],minimalDays:1},"az-Latn":{firstDay:1,weekend:[6,7],minimalDays:1},ba:{firstDay:1,weekend:[6,7],minimalDays:4},bal:{firstDay:7,weekend:[6,7],minimalDays:1},"bal-Arab":{firstDay:7,weekend:[6,7],minimalDays:1},"bal-Latn":{firstDay:7,weekend:[6,7],minimalDays:1},bas:{firstDay:1,weekend:[6,7],minimalDays:1},be:{firstDay:1,weekend:[6,7],minimalDays:1},"be-tarask":{firstDay:1,weekend:[6,7],minimalDays:1},bem:{firstDay:1,weekend:[6,7],minimalDays:1},bew:{firstDay:7,weekend:[6,7],minimalDays:1},bez:{firstDay:1,weekend:[6,7],minimalDays:1},bg:{firstDay:1,weekend:[6,7],minimalDays:4},bgc:{firstDay:7,weekend:[7],minimalDays:1},bgn:{firstDay:7,weekend:[6,7],minimalDays:1},"bgn-AE":{firstDay:6,weekend:[6,7],minimalDays:1},"bgn-AF":{firstDay:6,weekend:[4,5],minimalDays:1},"bgn-IR":{firstDay:6,weekend:[5],minimalDays:1},"bgn-OM":{firstDay:6,weekend:[5,6],minimalDays:1},bho:{firstDay:7,weekend:[7],minimalDays:1},blo:{firstDay:1,weekend:[6,7],minimalDays:1},blt:{firstDay:1,weekend:[6,7],minimalDays:1},bm:{firstDay:1,weekend:[6,7],minimalDays:1},"bm-Nkoo":{firstDay:1,weekend:[6,7],minimalDays:1},bn:{firstDay:7,weekend:[6,7],minimalDays:1},"bn-IN":{firstDay:7,weekend:[7],minimalDays:1},bo:{firstDay:1,weekend:[6,7],minimalDays:1},"bo-IN":{firstDay:7,weekend:[7],minimalDays:1},br:{firstDay:1,weekend:[6,7],minimalDays:4},brx:{firstDay:7,weekend:[7],minimalDays:1},bs:{firstDay:1,weekend:[6,7],minimalDays:1},"bs-Cyrl":{firstDay:1,weekend:[6,7],minimalDays:1},"bs-Latn":{firstDay:1,weekend:[6,7],minimalDays:1},bss:{firstDay:1,weekend:[6,7],minimalDays:1},byn:{firstDay:1,weekend:[6,7],minimalDays:1},ca:{firstDay:1,weekend:[6,7],minimalDays:4},"ca-AD":{firstDay:1,weekend:[6,7],minimalDays:4},"ca-ES-valencia":{firstDay:1,weekend:[6,7],minimalDays:4},"ca-FR":{firstDay:1,weekend:[6,7],minimalDays:4},"ca-IT":{firstDay:1,weekend:[6,7],minimalDays:4},cad:{firstDay:7,weekend:[6,7],minimalDays:1},cch:{firstDay:1,weekend:[6,7],minimalDays:1},ccp:{firstDay:7,weekend:[6,7],minimalDays:1},"ccp-IN":{firstDay:7,weekend:[7],minimalDays:1},ce:{firstDay:1,weekend:[6,7],minimalDays:4},ceb:{firstDay:7,weekend:[6,7],minimalDays:1},cgg:{firstDay:1,weekend:[7],minimalDays:1},cho:{firstDay:7,weekend:[6,7],minimalDays:1},chr:{firstDay:7,weekend:[6,7],minimalDays:1},cic:{firstDay:7,weekend:[6,7],minimalDays:1},ckb:{firstDay:6,weekend:[5,6],minimalDays:1},"ckb-IR":{firstDay:6,weekend:[5],minimalDays:1},co:{firstDay:1,weekend:[6,7],minimalDays:4},cs:{firstDay:1,weekend:[6,7],minimalDays:4},csw:{firstDay:7,weekend:[6,7],minimalDays:1},cu:{firstDay:1,weekend:[6,7],minimalDays:4},cv:{firstDay:1,weekend:[6,7],minimalDays:4},cy:{firstDay:1,weekend:[6,7],minimalDays:4},da:{firstDay:1,weekend:[6,7],minimalDays:4},"da-GL":{firstDay:1,weekend:[6,7],minimalDays:1},dav:{firstDay:7,weekend:[6,7],minimalDays:1},de:{firstDay:1,weekend:[6,7],minimalDays:4},"de-AT":{firstDay:1,weekend:[6,7],minimalDays:4},"de-BE":{firstDay:1,weekend:[6,7],minimalDays:4},"de-CH":{firstDay:1,weekend:[6,7],minimalDays:4},"de-IT":{firstDay:1,weekend:[6,7],minimalDays:4},"de-LI":{firstDay:1,weekend:[6,7],minimalDays:4},"de-LU":{firstDay:1,weekend:[6,7],minimalDays:4},dje:{firstDay:1,weekend:[6,7],minimalDays:1},doi:{firstDay:7,weekend:[7],minimalDays:1},dsb:{firstDay:1,weekend:[6,7],minimalDays:4},dua:{firstDay:1,weekend:[6,7],minimalDays:1},dv:{firstDay:5,weekend:[6,7],minimalDays:1},dyo:{firstDay:1,weekend:[6,7],minimalDays:1},dz:{firstDay:7,weekend:[6,7],minimalDays:1},ebu:{firstDay:7,weekend:[6,7],minimalDays:1},ee:{firstDay:1,weekend:[6,7],minimalDays:1},"ee-TG":{firstDay:1,weekend:[6,7],minimalDays:1},el:{firstDay:1,weekend:[6,7],minimalDays:4},"el-CY":{firstDay:1,weekend:[6,7],minimalDays:1},"el-polyton":{firstDay:1,weekend:[6,7],minimalDays:4},en:{firstDay:7,weekend:[6,7],minimalDays:1},"en-001":{firstDay:1,weekend:[6,7],minimalDays:1},"en-150":{firstDay:1,weekend:[6,7],minimalDays:1},"en-AE":{firstDay:6,weekend:[6,7],minimalDays:1},"en-AG":{firstDay:7,weekend:[6,7],minimalDays:1},"en-AI":{firstDay:1,weekend:[6,7],minimalDays:1},"en-AS":{firstDay:7,weekend:[6,7],minimalDays:1},"en-AT":{firstDay:1,weekend:[6,7],minimalDays:4},"en-AU":{firstDay:1,weekend:[6,7],minimalDays:1},"en-BB":{firstDay:1,weekend:[6,7],minimalDays:1},"en-BE":{firstDay:1,weekend:[6,7],minimalDays:4},"en-BI":{firstDay:1,weekend:[6,7],minimalDays:1},"en-BM":{firstDay:1,weekend:[6,7],minimalDays:1},"en-BS":{firstDay:7,weekend:[6,7],minimalDays:1},"en-BW":{firstDay:7,weekend:[6,7],minimalDays:1},"en-BZ":{firstDay:7,weekend:[6,7],minimalDays:1},"en-CA":{firstDay:7,weekend:[6,7],minimalDays:1},"en-CC":{firstDay:1,weekend:[6,7],minimalDays:1},"en-CH":{firstDay:1,weekend:[6,7],minimalDays:4},"en-CK":{firstDay:1,weekend:[6,7],minimalDays:1},"en-CM":{firstDay:1,weekend:[6,7],minimalDays:1},"en-CX":{firstDay:1,weekend:[6,7],minimalDays:1},"en-CY":{firstDay:1,weekend:[6,7],minimalDays:1},"en-DE":{firstDay:1,weekend:[6,7],minimalDays:4},"en-DG":{firstDay:1,weekend:[6,7],minimalDays:1},"en-DK":{firstDay:1,weekend:[6,7],minimalDays:4},"en-DM":{firstDay:7,weekend:[6,7],minimalDays:1},"en-Dsrt":{firstDay:7,weekend:[6,7],minimalDays:1},"en-ER":{firstDay:1,weekend:[6,7],minimalDays:1},"en-FI":{firstDay:1,weekend:[6,7],minimalDays:4},"en-FJ":{firstDay:1,weekend:[6,7],minimalDays:4},"en-FK":{firstDay:1,weekend:[6,7],minimalDays:1},"en-FM":{firstDay:1,weekend:[6,7],minimalDays:1},"en-GB":{firstDay:1,weekend:[6,7],minimalDays:4},"en-GD":{firstDay:1,weekend:[6,7],minimalDays:1},"en-GG":{firstDay:1,weekend:[6,7],minimalDays:4},"en-GH":{firstDay:1,weekend:[6,7],minimalDays:1},"en-GI":{firstDay:1,weekend:[6,7],minimalDays:4},"en-GM":{firstDay:1,weekend:[6,7],minimalDays:1},"en-GU":{firstDay:7,weekend:[6,7],minimalDays:1},"en-GY":{firstDay:1,weekend:[6,7],minimalDays:1},"en-HK":{firstDay:7,weekend:[6,7],minimalDays:1},"en-ID":{firstDay:7,weekend:[6,7],minimalDays:1},"en-IE":{firstDay:1,weekend:[6,7],minimalDays:4},"en-IL":{firstDay:7,weekend:[5,6],minimalDays:1},"en-IM":{firstDay:1,weekend:[6,7],minimalDays:4},"en-IN":{firstDay:7,weekend:[7],minimalDays:1},"en-IO":{firstDay:1,weekend:[6,7],minimalDays:1},"en-JE":{firstDay:1,weekend:[6,7],minimalDays:4},"en-JM":{firstDay:7,weekend:[6,7],minimalDays:1},"en-KE":{firstDay:7,weekend:[6,7],minimalDays:1},"en-KI":{firstDay:1,weekend:[6,7],minimalDays:1},"en-KN":{firstDay:1,weekend:[6,7],minimalDays:1},"en-KY":{firstDay:1,weekend:[6,7],minimalDays:1},"en-LC":{firstDay:1,weekend:[6,7],minimalDays:1},"en-LR":{firstDay:1,weekend:[6,7],minimalDays:1},"en-LS":{firstDay:1,weekend:[6,7],minimalDays:1},"en-MG":{firstDay:1,weekend:[6,7],minimalDays:1},"en-MH":{firstDay:7,weekend:[6,7],minimalDays:1},"en-MO":{firstDay:7,weekend:[6,7],minimalDays:1},"en-MP":{firstDay:1,weekend:[6,7],minimalDays:1},"en-MS":{firstDay:1,weekend:[6,7],minimalDays:1},"en-MT":{firstDay:7,weekend:[6,7],minimalDays:1},"en-MU":{firstDay:1,weekend:[6,7],minimalDays:1},"en-MV":{firstDay:5,weekend:[6,7],minimalDays:1},"en-MW":{firstDay:1,weekend:[6,7],minimalDays:1},"en-MY":{firstDay:1,weekend:[6,7],minimalDays:1},"en-NA":{firstDay:1,weekend:[6,7],minimalDays:1},"en-NF":{firstDay:1,weekend:[6,7],minimalDays:1},"en-NG":{firstDay:1,weekend:[6,7],minimalDays:1},"en-NL":{firstDay:1,weekend:[6,7],minimalDays:4},"en-NR":{firstDay:1,weekend:[6,7],minimalDays:1},"en-NU":{firstDay:1,weekend:[6,7],minimalDays:1},"en-NZ":{firstDay:1,weekend:[6,7],minimalDays:1},"en-PG":{firstDay:1,weekend:[6,7],minimalDays:1},"en-PH":{firstDay:7,weekend:[6,7],minimalDays:1},"en-PK":{firstDay:7,weekend:[6,7],minimalDays:1},"en-PN":{firstDay:1,weekend:[6,7],minimalDays:1},"en-PR":{firstDay:7,weekend:[6,7],minimalDays:1},"en-PW":{firstDay:1,weekend:[6,7],minimalDays:1},"en-RW":{firstDay:1,weekend:[6,7],minimalDays:1},"en-SB":{firstDay:1,weekend:[6,7],minimalDays:1},"en-SC":{firstDay:1,weekend:[6,7],minimalDays:1},"en-SD":{firstDay:6,weekend:[5,6],minimalDays:1},"en-SE":{firstDay:1,weekend:[6,7],minimalDays:4},"en-SG":{firstDay:7,weekend:[6,7],minimalDays:1},"en-SH":{firstDay:1,weekend:[6,7],minimalDays:1},"en-SI":{firstDay:1,weekend:[6,7],minimalDays:1},"en-SL":{firstDay:1,weekend:[6,7],minimalDays:1},"en-SS":{firstDay:1,weekend:[6,7],minimalDays:1},"en-SX":{firstDay:1,weekend:[6,7],minimalDays:1},"en-SZ":{firstDay:1,weekend:[6,7],minimalDays:1},"en-Shaw":{firstDay:1,weekend:[6,7],minimalDays:4},"en-TC":{firstDay:1,weekend:[6,7],minimalDays:1},"en-TK":{firstDay:1,weekend:[6,7],minimalDays:1},"en-TO":{firstDay:1,weekend:[6,7],minimalDays:1},"en-TT":{firstDay:7,weekend:[6,7],minimalDays:1},"en-TV":{firstDay:1,weekend:[6,7],minimalDays:1},"en-TZ":{firstDay:1,weekend:[6,7],minimalDays:1},"en-UG":{firstDay:1,weekend:[7],minimalDays:1},"en-UM":{firstDay:7,weekend:[6,7],minimalDays:1},"en-VC":{firstDay:1,weekend:[6,7],minimalDays:1},"en-VG":{firstDay:1,weekend:[6,7],minimalDays:1},"en-VI":{firstDay:7,weekend:[6,7],minimalDays:1},"en-VU":{firstDay:1,weekend:[6,7],minimalDays:1},"en-WS":{firstDay:7,weekend:[6,7],minimalDays:1},"en-ZA":{firstDay:7,weekend:[6,7],minimalDays:1},"en-ZM":{firstDay:1,weekend:[6,7],minimalDays:1},"en-ZW":{firstDay:7,weekend:[6,7],minimalDays:1},eo:{firstDay:1,weekend:[6,7],minimalDays:1},es:{firstDay:1,weekend:[6,7],minimalDays:4},"es-419":{firstDay:1,weekend:[6,7],minimalDays:1},"es-AR":{firstDay:1,weekend:[6,7],minimalDays:1},"es-BO":{firstDay:1,weekend:[6,7],minimalDays:1},"es-BR":{firstDay:7,weekend:[6,7],minimalDays:1},"es-BZ":{firstDay:7,weekend:[6,7],minimalDays:1},"es-CL":{firstDay:1,weekend:[6,7],minimalDays:1},"es-CO":{firstDay:7,weekend:[6,7],minimalDays:1},"es-CR":{firstDay:1,weekend:[6,7],minimalDays:1},"es-CU":{firstDay:1,weekend:[6,7],minimalDays:1},"es-DO":{firstDay:7,weekend:[6,7],minimalDays:1},"es-EA":{firstDay:1,weekend:[6,7],minimalDays:1},"es-EC":{firstDay:1,weekend:[6,7],minimalDays:1},"es-GQ":{firstDay:1,weekend:[6,7],minimalDays:1},"es-GT":{firstDay:7,weekend:[6,7],minimalDays:1},"es-HN":{firstDay:7,weekend:[6,7],minimalDays:1},"es-IC":{firstDay:1,weekend:[6,7],minimalDays:1},"es-MX":{firstDay:7,weekend:[6,7],minimalDays:1},"es-NI":{firstDay:7,weekend:[6,7],minimalDays:1},"es-PA":{firstDay:7,weekend:[6,7],minimalDays:1},"es-PE":{firstDay:7,weekend:[6,7],minimalDays:1},"es-PH":{firstDay:7,weekend:[6,7],minimalDays:1},"es-PR":{firstDay:7,weekend:[6,7],minimalDays:1},"es-PY":{firstDay:7,weekend:[6,7],minimalDays:1},"es-SV":{firstDay:7,weekend:[6,7],minimalDays:1},"es-US":{firstDay:7,weekend:[6,7],minimalDays:1},"es-UY":{firstDay:1,weekend:[6,7],minimalDays:1},"es-VE":{firstDay:7,weekend:[6,7],minimalDays:1},et:{firstDay:1,weekend:[6,7],minimalDays:4},eu:{firstDay:1,weekend:[6,7],minimalDays:4},ewo:{firstDay:1,weekend:[6,7],minimalDays:1},fa:{firstDay:6,weekend:[5],minimalDays:1},"fa-AF":{firstDay:6,weekend:[4,5],minimalDays:1},ff:{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-BF":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-CM":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-GH":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-GM":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-GW":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-LR":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-MR":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-NE":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-NG":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-SL":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-SN":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-BF":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-CM":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-GH":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-GM":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-GN":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-GW":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-LR":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-MR":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-NE":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-NG":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-SL":{firstDay:1,weekend:[6,7],minimalDays:1},fi:{firstDay:1,weekend:[6,7],minimalDays:4},fil:{firstDay:7,weekend:[6,7],minimalDays:1},fo:{firstDay:1,weekend:[6,7],minimalDays:4},"fo-DK":{firstDay:1,weekend:[6,7],minimalDays:4},fr:{firstDay:1,weekend:[6,7],minimalDays:4},"fr-BE":{firstDay:1,weekend:[6,7],minimalDays:4},"fr-BF":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-BI":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-BJ":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-BL":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-CA":{firstDay:7,weekend:[6,7],minimalDays:1},"fr-CD":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-CF":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-CG":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-CH":{firstDay:1,weekend:[6,7],minimalDays:4},"fr-CI":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-CM":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-DJ":{firstDay:6,weekend:[6,7],minimalDays:1},"fr-DZ":{firstDay:6,weekend:[5,6],minimalDays:1},"fr-GA":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-GF":{firstDay:1,weekend:[6,7],minimalDays:4},"fr-GN":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-GP":{firstDay:1,weekend:[6,7],minimalDays:4},"fr-GQ":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-HT":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-KM":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-LU":{firstDay:1,weekend:[6,7],minimalDays:4},"fr-MA":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-MC":{firstDay:1,weekend:[6,7],minimalDays:4},"fr-MF":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-MG":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-ML":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-MQ":{firstDay:1,weekend:[6,7],minimalDays:4},"fr-MR":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-MU":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-NC":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-NE":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-PF":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-PM":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-RE":{firstDay:1,weekend:[6,7],minimalDays:4},"fr-RW":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-SC":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-SN":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-SY":{firstDay:6,weekend:[5,6],minimalDays:1},"fr-TD":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-TG":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-TN":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-VU":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-WF":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-YT":{firstDay:1,weekend:[6,7],minimalDays:1},frr:{firstDay:1,weekend:[6,7],minimalDays:4},fur:{firstDay:1,weekend:[6,7],minimalDays:4},fy:{firstDay:1,weekend:[6,7],minimalDays:4},ga:{firstDay:1,weekend:[6,7],minimalDays:4},"ga-GB":{firstDay:1,weekend:[6,7],minimalDays:4},gaa:{firstDay:1,weekend:[6,7],minimalDays:1},gd:{firstDay:1,weekend:[6,7],minimalDays:4},gez:{firstDay:7,weekend:[6,7],minimalDays:1},"gez-ER":{firstDay:1,weekend:[6,7],minimalDays:1},gl:{firstDay:1,weekend:[6,7],minimalDays:4},gn:{firstDay:7,weekend:[6,7],minimalDays:1},gsw:{firstDay:1,weekend:[6,7],minimalDays:4},"gsw-FR":{firstDay:1,weekend:[6,7],minimalDays:4},"gsw-LI":{firstDay:1,weekend:[6,7],minimalDays:4},gu:{firstDay:7,weekend:[7],minimalDays:1},guz:{firstDay:7,weekend:[6,7],minimalDays:1},gv:{firstDay:1,weekend:[6,7],minimalDays:4},ha:{firstDay:1,weekend:[6,7],minimalDays:1},"ha-Arab":{firstDay:1,weekend:[6,7],minimalDays:1},"ha-Arab-SD":{firstDay:6,weekend:[5,6],minimalDays:1},"ha-GH":{firstDay:1,weekend:[6,7],minimalDays:1},"ha-NE":{firstDay:1,weekend:[6,7],minimalDays:1},haw:{firstDay:7,weekend:[6,7],minimalDays:1},he:{firstDay:7,weekend:[5,6],minimalDays:1},hi:{firstDay:7,weekend:[7],minimalDays:1},"hi-Latn":{firstDay:7,weekend:[7],minimalDays:1},hnj:{firstDay:7,weekend:[6,7],minimalDays:1},"hnj-Hmnp":{firstDay:7,weekend:[6,7],minimalDays:1},hr:{firstDay:1,weekend:[6,7],minimalDays:1},"hr-BA":{firstDay:1,weekend:[6,7],minimalDays:1},hsb:{firstDay:1,weekend:[6,7],minimalDays:4},hu:{firstDay:1,weekend:[6,7],minimalDays:4},hy:{firstDay:1,weekend:[6,7],minimalDays:1},ia:{firstDay:1,weekend:[6,7],minimalDays:1},id:{firstDay:7,weekend:[6,7],minimalDays:1},ie:{firstDay:1,weekend:[6,7],minimalDays:4},ig:{firstDay:1,weekend:[6,7],minimalDays:1},ii:{firstDay:1,weekend:[6,7],minimalDays:1},io:{firstDay:1,weekend:[6,7],minimalDays:1},is:{firstDay:1,weekend:[6,7],minimalDays:4},it:{firstDay:1,weekend:[6,7],minimalDays:4},"it-CH":{firstDay:1,weekend:[6,7],minimalDays:4},"it-SM":{firstDay:1,weekend:[6,7],minimalDays:4},"it-VA":{firstDay:1,weekend:[6,7],minimalDays:4},iu:{firstDay:7,weekend:[6,7],minimalDays:1},"iu-Latn":{firstDay:7,weekend:[6,7],minimalDays:1},ja:{firstDay:7,weekend:[6,7],minimalDays:1},jbo:{firstDay:1,weekend:[6,7],minimalDays:1},jgo:{firstDay:1,weekend:[6,7],minimalDays:1},jmc:{firstDay:1,weekend:[6,7],minimalDays:1},jv:{firstDay:7,weekend:[6,7],minimalDays:1},ka:{firstDay:1,weekend:[6,7],minimalDays:1},kab:{firstDay:6,weekend:[5,6],minimalDays:1},kaj:{firstDay:1,weekend:[6,7],minimalDays:1},kam:{firstDay:7,weekend:[6,7],minimalDays:1},kcg:{firstDay:1,weekend:[6,7],minimalDays:1},kde:{firstDay:1,weekend:[6,7],minimalDays:1},kea:{firstDay:1,weekend:[6,7],minimalDays:1},ken:{firstDay:1,weekend:[6,7],minimalDays:1},kgp:{firstDay:7,weekend:[6,7],minimalDays:1},khq:{firstDay:1,weekend:[6,7],minimalDays:1},ki:{firstDay:7,weekend:[6,7],minimalDays:1},kk:{firstDay:1,weekend:[6,7],minimalDays:1},kkj:{firstDay:1,weekend:[6,7],minimalDays:1},kl:{firstDay:1,weekend:[6,7],minimalDays:1},kln:{firstDay:7,weekend:[6,7],minimalDays:1},km:{firstDay:7,weekend:[6,7],minimalDays:1},kn:{firstDay:7,weekend:[7],minimalDays:1},ko:{firstDay:7,weekend:[6,7],minimalDays:1},"ko-CN":{firstDay:1,weekend:[6,7],minimalDays:1},"ko-KP":{firstDay:1,weekend:[6,7],minimalDays:1},kok:{firstDay:7,weekend:[7],minimalDays:1},kpe:{firstDay:1,weekend:[6,7],minimalDays:1},"kpe-GN":{firstDay:1,weekend:[6,7],minimalDays:1},ks:{firstDay:7,weekend:[7],minimalDays:1},"ks-Arab":{firstDay:7,weekend:[7],minimalDays:1},"ks-Deva":{firstDay:7,weekend:[7],minimalDays:1},ksb:{firstDay:1,weekend:[6,7],minimalDays:1},ksf:{firstDay:1,weekend:[6,7],minimalDays:1},ksh:{firstDay:1,weekend:[6,7],minimalDays:4},ku:{firstDay:1,weekend:[6,7],minimalDays:1},kw:{firstDay:1,weekend:[6,7],minimalDays:4},kxv:{firstDay:7,weekend:[7],minimalDays:1},"kxv-Deva":{firstDay:7,weekend:[7],minimalDays:1},"kxv-Latn":{firstDay:7,weekend:[7],minimalDays:1},"kxv-Orya":{firstDay:7,weekend:[7],minimalDays:1},"kxv-Telu":{firstDay:7,weekend:[7],minimalDays:1},ky:{firstDay:1,weekend:[6,7],minimalDays:1},la:{firstDay:1,weekend:[6,7],minimalDays:4},lag:{firstDay:1,weekend:[6,7],minimalDays:1},lb:{firstDay:1,weekend:[6,7],minimalDays:4},lg:{firstDay:1,weekend:[7],minimalDays:1},lij:{firstDay:1,weekend:[6,7],minimalDays:4},lkt:{firstDay:7,weekend:[6,7],minimalDays:1},lmo:{firstDay:1,weekend:[6,7],minimalDays:4},ln:{firstDay:1,weekend:[6,7],minimalDays:1},"ln-AO":{firstDay:1,weekend:[6,7],minimalDays:1},"ln-CF":{firstDay:1,weekend:[6,7],minimalDays:1},"ln-CG":{firstDay:1,weekend:[6,7],minimalDays:1},lo:{firstDay:7,weekend:[6,7],minimalDays:1},lrc:{firstDay:6,weekend:[5],minimalDays:1},"lrc-IQ":{firstDay:6,weekend:[5,6],minimalDays:1},lt:{firstDay:1,weekend:[6,7],minimalDays:4},lu:{firstDay:1,weekend:[6,7],minimalDays:1},luo:{firstDay:7,weekend:[6,7],minimalDays:1},luy:{firstDay:7,weekend:[6,7],minimalDays:1},lv:{firstDay:1,weekend:[6,7],minimalDays:1},mai:{firstDay:7,weekend:[7],minimalDays:1},mas:{firstDay:7,weekend:[6,7],minimalDays:1},"mas-TZ":{firstDay:1,weekend:[6,7],minimalDays:1},mdf:{firstDay:1,weekend:[6,7],minimalDays:4},mer:{firstDay:7,weekend:[6,7],minimalDays:1},mfe:{firstDay:1,weekend:[6,7],minimalDays:1},mg:{firstDay:1,weekend:[6,7],minimalDays:1},mgh:{firstDay:7,weekend:[6,7],minimalDays:1},mgo:{firstDay:1,weekend:[6,7],minimalDays:1},mi:{firstDay:1,weekend:[6,7],minimalDays:1},mic:{firstDay:7,weekend:[6,7],minimalDays:1},mk:{firstDay:1,weekend:[6,7],minimalDays:1},ml:{firstDay:7,weekend:[7],minimalDays:1},mn:{firstDay:1,weekend:[6,7],minimalDays:1},"mn-Mong":{firstDay:1,weekend:[6,7],minimalDays:1},"mn-Mong-MN":{firstDay:1,weekend:[6,7],minimalDays:1},mni:{firstDay:7,weekend:[7],minimalDays:1},"mni-Beng":{firstDay:7,weekend:[7],minimalDays:1},"mni-Mtei":{firstDay:7,weekend:[7],minimalDays:1},moh:{firstDay:7,weekend:[6,7],minimalDays:1},mr:{firstDay:7,weekend:[7],minimalDays:1},ms:{firstDay:1,weekend:[6,7],minimalDays:1},"ms-Arab":{firstDay:1,weekend:[6,7],minimalDays:1},"ms-Arab-BN":{firstDay:1,weekend:[6,7],minimalDays:1},"ms-BN":{firstDay:1,weekend:[6,7],minimalDays:1},"ms-ID":{firstDay:7,weekend:[6,7],minimalDays:1},"ms-SG":{firstDay:7,weekend:[6,7],minimalDays:1},mt:{firstDay:7,weekend:[6,7],minimalDays:1},mua:{firstDay:1,weekend:[6,7],minimalDays:1},mus:{firstDay:7,weekend:[6,7],minimalDays:1},my:{firstDay:7,weekend:[6,7],minimalDays:1},myv:{firstDay:1,weekend:[6,7],minimalDays:4},mzn:{firstDay:6,weekend:[5],minimalDays:1},naq:{firstDay:1,weekend:[6,7],minimalDays:1},nb:{firstDay:1,weekend:[6,7],minimalDays:4},"nb-SJ":{firstDay:1,weekend:[6,7],minimalDays:4},nd:{firstDay:7,weekend:[6,7],minimalDays:1},nds:{firstDay:1,weekend:[6,7],minimalDays:4},"nds-NL":{firstDay:1,weekend:[6,7],minimalDays:4},ne:{firstDay:7,weekend:[6,7],minimalDays:1},"ne-IN":{firstDay:7,weekend:[7],minimalDays:1},nl:{firstDay:1,weekend:[6,7],minimalDays:4},"nl-AW":{firstDay:1,weekend:[6,7],minimalDays:1},"nl-BE":{firstDay:1,weekend:[6,7],minimalDays:4},"nl-BQ":{firstDay:1,weekend:[6,7],minimalDays:1},"nl-CW":{firstDay:1,weekend:[6,7],minimalDays:1},"nl-SR":{firstDay:1,weekend:[6,7],minimalDays:1},"nl-SX":{firstDay:1,weekend:[6,7],minimalDays:1},nmg:{firstDay:1,weekend:[6,7],minimalDays:1},nn:{firstDay:1,weekend:[6,7],minimalDays:4},nnh:{firstDay:1,weekend:[6,7],minimalDays:1},no:{firstDay:1,weekend:[6,7],minimalDays:4},nqo:{firstDay:1,weekend:[6,7],minimalDays:1},nr:{firstDay:7,weekend:[6,7],minimalDays:1},nso:{firstDay:7,weekend:[6,7],minimalDays:1},nus:{firstDay:1,weekend:[6,7],minimalDays:1},nv:{firstDay:7,weekend:[6,7],minimalDays:1},ny:{firstDay:1,weekend:[6,7],minimalDays:1},nyn:{firstDay:1,weekend:[7],minimalDays:1},oc:{firstDay:1,weekend:[6,7],minimalDays:4},"oc-ES":{firstDay:1,weekend:[6,7],minimalDays:4},om:{firstDay:7,weekend:[6,7],minimalDays:1},"om-KE":{firstDay:7,weekend:[6,7],minimalDays:1},or:{firstDay:7,weekend:[7],minimalDays:1},os:{firstDay:1,weekend:[6,7],minimalDays:1},"os-RU":{firstDay:1,weekend:[6,7],minimalDays:4},osa:{firstDay:7,weekend:[6,7],minimalDays:1},pa:{firstDay:7,weekend:[7],minimalDays:1},"pa-Arab":{firstDay:7,weekend:[6,7],minimalDays:1},"pa-Guru":{firstDay:7,weekend:[7],minimalDays:1},pap:{firstDay:1,weekend:[6,7],minimalDays:1},"pap-AW":{firstDay:1,weekend:[6,7],minimalDays:1},pcm:{firstDay:1,weekend:[6,7],minimalDays:1},pis:{firstDay:1,weekend:[6,7],minimalDays:1},pl:{firstDay:1,weekend:[6,7],minimalDays:4},prg:{firstDay:1,weekend:[6,7],minimalDays:4},ps:{firstDay:6,weekend:[4,5],minimalDays:1},"ps-PK":{firstDay:7,weekend:[6,7],minimalDays:1},pt:{firstDay:7,weekend:[6,7],minimalDays:1},"pt-AO":{firstDay:1,weekend:[6,7],minimalDays:1},"pt-CH":{firstDay:1,weekend:[6,7],minimalDays:4},"pt-CV":{firstDay:1,weekend:[6,7],minimalDays:1},"pt-GQ":{firstDay:1,weekend:[6,7],minimalDays:1},"pt-GW":{firstDay:1,weekend:[6,7],minimalDays:1},"pt-LU":{firstDay:1,weekend:[6,7],minimalDays:4},"pt-MO":{firstDay:7,weekend:[6,7],minimalDays:1},"pt-MZ":{firstDay:7,weekend:[6,7],minimalDays:1},"pt-PT":{firstDay:7,weekend:[6,7],minimalDays:4},"pt-ST":{firstDay:1,weekend:[6,7],minimalDays:1},"pt-TL":{firstDay:1,weekend:[6,7],minimalDays:1},qu:{firstDay:7,weekend:[6,7],minimalDays:1},"qu-BO":{firstDay:1,weekend:[6,7],minimalDays:1},"qu-EC":{firstDay:1,weekend:[6,7],minimalDays:1},quc:{firstDay:7,weekend:[6,7],minimalDays:1},raj:{firstDay:7,weekend:[7],minimalDays:1},rhg:{firstDay:7,weekend:[6,7],minimalDays:1},"rhg-Rohg":{firstDay:7,weekend:[6,7],minimalDays:1},"rhg-Rohg-BD":{firstDay:7,weekend:[6,7],minimalDays:1},rif:{firstDay:1,weekend:[6,7],minimalDays:1},rm:{firstDay:1,weekend:[6,7],minimalDays:4},rn:{firstDay:1,weekend:[6,7],minimalDays:1},ro:{firstDay:1,weekend:[6,7],minimalDays:1},"ro-MD":{firstDay:1,weekend:[6,7],minimalDays:1},rof:{firstDay:1,weekend:[6,7],minimalDays:1},ru:{firstDay:1,weekend:[6,7],minimalDays:4},"ru-BY":{firstDay:1,weekend:[6,7],minimalDays:1},"ru-KG":{firstDay:1,weekend:[6,7],minimalDays:1},"ru-KZ":{firstDay:1,weekend:[6,7],minimalDays:1},"ru-MD":{firstDay:1,weekend:[6,7],minimalDays:1},"ru-UA":{firstDay:1,weekend:[6,7],minimalDays:1},rw:{firstDay:1,weekend:[6,7],minimalDays:1},rwk:{firstDay:1,weekend:[6,7],minimalDays:1},sa:{firstDay:7,weekend:[7],minimalDays:1},sah:{firstDay:1,weekend:[6,7],minimalDays:4},saq:{firstDay:7,weekend:[6,7],minimalDays:1},sat:{firstDay:7,weekend:[7],minimalDays:1},"sat-Deva":{firstDay:7,weekend:[7],minimalDays:1},"sat-Olck":{firstDay:7,weekend:[7],minimalDays:1},sbp:{firstDay:1,weekend:[6,7],minimalDays:1},sc:{firstDay:1,weekend:[6,7],minimalDays:4},scn:{firstDay:1,weekend:[6,7],minimalDays:4},sd:{firstDay:7,weekend:[6,7],minimalDays:1},"sd-Arab":{firstDay:7,weekend:[6,7],minimalDays:1},"sd-Deva":{firstDay:7,weekend:[7],minimalDays:1},sdh:{firstDay:6,weekend:[5],minimalDays:1},"sdh-IQ":{firstDay:6,weekend:[5,6],minimalDays:1},se:{firstDay:1,weekend:[6,7],minimalDays:4},"se-FI":{firstDay:1,weekend:[6,7],minimalDays:4},"se-SE":{firstDay:1,weekend:[6,7],minimalDays:4},seh:{firstDay:7,weekend:[6,7],minimalDays:1},ses:{firstDay:1,weekend:[6,7],minimalDays:1},sg:{firstDay:1,weekend:[6,7],minimalDays:1},shi:{firstDay:1,weekend:[6,7],minimalDays:1},"shi-Latn":{firstDay:1,weekend:[6,7],minimalDays:1},"shi-Tfng":{firstDay:1,weekend:[6,7],minimalDays:1},shn:{firstDay:7,weekend:[6,7],minimalDays:1},"shn-TH":{firstDay:7,weekend:[6,7],minimalDays:1},si:{firstDay:1,weekend:[6,7],minimalDays:1},sid:{firstDay:7,weekend:[6,7],minimalDays:1},sk:{firstDay:1,weekend:[6,7],minimalDays:4},skr:{firstDay:7,weekend:[6,7],minimalDays:1},sl:{firstDay:1,weekend:[6,7],minimalDays:1},sma:{firstDay:1,weekend:[6,7],minimalDays:4},"sma-NO":{firstDay:1,weekend:[6,7],minimalDays:4},smj:{firstDay:1,weekend:[6,7],minimalDays:4},"smj-NO":{firstDay:1,weekend:[6,7],minimalDays:4},smn:{firstDay:1,weekend:[6,7],minimalDays:4},sms:{firstDay:1,weekend:[6,7],minimalDays:4},sn:{firstDay:7,weekend:[6,7],minimalDays:1},so:{firstDay:1,weekend:[6,7],minimalDays:1},"so-DJ":{firstDay:6,weekend:[6,7],minimalDays:1},"so-ET":{firstDay:7,weekend:[6,7],minimalDays:1},"so-KE":{firstDay:7,weekend:[6,7],minimalDays:1},sq:{firstDay:1,weekend:[6,7],minimalDays:1},"sq-MK":{firstDay:1,weekend:[6,7],minimalDays:1},"sq-XK":{firstDay:1,weekend:[6,7],minimalDays:1},sr:{firstDay:1,weekend:[6,7],minimalDays:1},"sr-Cyrl":{firstDay:1,weekend:[6,7],minimalDays:1},"sr-Cyrl-BA":{firstDay:1,weekend:[6,7],minimalDays:1},"sr-Cyrl-ME":{firstDay:1,weekend:[6,7],minimalDays:1},"sr-Cyrl-XK":{firstDay:1,weekend:[6,7],minimalDays:1},"sr-Latn":{firstDay:1,weekend:[6,7],minimalDays:1},"sr-Latn-BA":{firstDay:1,weekend:[6,7],minimalDays:1},"sr-Latn-ME":{firstDay:1,weekend:[6,7],minimalDays:1},"sr-Latn-XK":{firstDay:1,weekend:[6,7],minimalDays:1},ss:{firstDay:7,weekend:[6,7],minimalDays:1},"ss-SZ":{firstDay:1,weekend:[6,7],minimalDays:1},ssy:{firstDay:1,weekend:[6,7],minimalDays:1},st:{firstDay:7,weekend:[6,7],minimalDays:1},"st-LS":{firstDay:1,weekend:[6,7],minimalDays:1},su:{firstDay:7,weekend:[6,7],minimalDays:1},"su-Latn":{firstDay:7,weekend:[6,7],minimalDays:1},sv:{firstDay:1,weekend:[6,7],minimalDays:4},"sv-AX":{firstDay:1,weekend:[6,7],minimalDays:4},"sv-FI":{firstDay:1,weekend:[6,7],minimalDays:4},sw:{firstDay:1,weekend:[6,7],minimalDays:1},"sw-CD":{firstDay:1,weekend:[6,7],minimalDays:1},"sw-KE":{firstDay:7,weekend:[6,7],minimalDays:1},"sw-UG":{firstDay:1,weekend:[7],minimalDays:1},syr:{firstDay:6,weekend:[5,6],minimalDays:1},"syr-SY":{firstDay:6,weekend:[5,6],minimalDays:1},szl:{firstDay:1,weekend:[6,7],minimalDays:4},ta:{firstDay:7,weekend:[7],minimalDays:1},"ta-LK":{firstDay:1,weekend:[6,7],minimalDays:1},"ta-MY":{firstDay:1,weekend:[6,7],minimalDays:1},"ta-SG":{firstDay:7,weekend:[6,7],minimalDays:1},te:{firstDay:7,weekend:[7],minimalDays:1},teo:{firstDay:1,weekend:[7],minimalDays:1},"teo-KE":{firstDay:7,weekend:[6,7],minimalDays:1},tg:{firstDay:1,weekend:[6,7],minimalDays:1},th:{firstDay:7,weekend:[6,7],minimalDays:1},ti:{firstDay:7,weekend:[6,7],minimalDays:1},"ti-ER":{firstDay:1,weekend:[6,7],minimalDays:1},tig:{firstDay:1,weekend:[6,7],minimalDays:1},tk:{firstDay:1,weekend:[6,7],minimalDays:1},tn:{firstDay:7,weekend:[6,7],minimalDays:1},"tn-BW":{firstDay:7,weekend:[6,7],minimalDays:1},to:{firstDay:1,weekend:[6,7],minimalDays:1},tok:{firstDay:1,weekend:[6,7],minimalDays:1},tpi:{firstDay:1,weekend:[6,7],minimalDays:1},tr:{firstDay:1,weekend:[6,7],minimalDays:1},"tr-CY":{firstDay:1,weekend:[6,7],minimalDays:1},trv:{firstDay:7,weekend:[6,7],minimalDays:1},trw:{firstDay:7,weekend:[6,7],minimalDays:1},ts:{firstDay:7,weekend:[6,7],minimalDays:1},tt:{firstDay:1,weekend:[6,7],minimalDays:4},twq:{firstDay:1,weekend:[6,7],minimalDays:1},tyv:{firstDay:1,weekend:[6,7],minimalDays:4},tzm:{firstDay:1,weekend:[6,7],minimalDays:1},ug:{firstDay:1,weekend:[6,7],minimalDays:1},uk:{firstDay:1,weekend:[6,7],minimalDays:1},und:{firstDay:7,weekend:[6,7],minimalDays:1},ur:{firstDay:7,weekend:[6,7],minimalDays:1},"ur-IN":{firstDay:7,weekend:[7],minimalDays:1},uz:{firstDay:1,weekend:[6,7],minimalDays:1},"uz-Arab":{firstDay:6,weekend:[4,5],minimalDays:1},"uz-Cyrl":{firstDay:1,weekend:[6,7],minimalDays:1},"uz-Latn":{firstDay:1,weekend:[6,7],minimalDays:1},vai:{firstDay:1,weekend:[6,7],minimalDays:1},"vai-Latn":{firstDay:1,weekend:[6,7],minimalDays:1},"vai-Vaii":{firstDay:1,weekend:[6,7],minimalDays:1},ve:{firstDay:7,weekend:[6,7],minimalDays:1},vec:{firstDay:1,weekend:[6,7],minimalDays:4},vi:{firstDay:1,weekend:[6,7],minimalDays:1},vmw:{firstDay:7,weekend:[6,7],minimalDays:1},vo:{firstDay:1,weekend:[6,7],minimalDays:1},vun:{firstDay:1,weekend:[6,7],minimalDays:1},wa:{firstDay:1,weekend:[6,7],minimalDays:4},wae:{firstDay:1,weekend:[6,7],minimalDays:4},wal:{firstDay:7,weekend:[6,7],minimalDays:1},wbp:{firstDay:1,weekend:[6,7],minimalDays:1},wo:{firstDay:1,weekend:[6,7],minimalDays:1},xh:{firstDay:7,weekend:[6,7],minimalDays:1},xnr:{firstDay:7,weekend:[7],minimalDays:1},xog:{firstDay:1,weekend:[7],minimalDays:1},yav:{firstDay:1,weekend:[6,7],minimalDays:1},yi:{firstDay:1,weekend:[6,7],minimalDays:1},yo:{firstDay:1,weekend:[6,7],minimalDays:1},"yo-BJ":{firstDay:1,weekend:[6,7],minimalDays:1},yrl:{firstDay:7,weekend:[6,7],minimalDays:1},"yrl-CO":{firstDay:7,weekend:[6,7],minimalDays:1},"yrl-VE":{firstDay:7,weekend:[6,7],minimalDays:1},yue:{firstDay:7,weekend:[6,7],minimalDays:1},"yue-Hans":{firstDay:1,weekend:[6,7],minimalDays:1},"yue-Hant":{firstDay:7,weekend:[6,7],minimalDays:1},za:{firstDay:1,weekend:[6,7],minimalDays:1},zgh:{firstDay:1,weekend:[6,7],minimalDays:1},zh:{firstDay:1,weekend:[6,7],minimalDays:1},"zh-Hans":{firstDay:1,weekend:[6,7],minimalDays:1},"zh-Hans-HK":{firstDay:7,weekend:[6,7],minimalDays:1},"zh-Hans-MO":{firstDay:7,weekend:[6,7],minimalDays:1},"zh-Hans-SG":{firstDay:7,weekend:[6,7],minimalDays:1},"zh-Hant":{firstDay:7,weekend:[6,7],minimalDays:1},"zh-Hant-HK":{firstDay:7,weekend:[6,7],minimalDays:1},"zh-Hant-MO":{firstDay:7,weekend:[6,7],minimalDays:1},zu:{firstDay:7,weekend:[6,7],minimalDays:1}};function Pe(e){const t=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${t}-${i}-${s}`}function Ia(e){return at(e,new Date)}function at(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function dl(e){const t=[0,1,2,3,4,5,6],i=e%7;return[...t.slice(i),...t.slice(0,i)]}function Aa(e){const t=ll[e??"en"]||{firstDay:0};return dl(t.firstDay)}function ul(e){const t=new Intl.DateTimeFormat(e,{weekday:"narrow"}),i=new Date(2025,10,30);return Aa(e).map(s=>{const a=new Date(i);return a.setDate(i.getDate()+s),t.format(a)})}function Ne(e,t,i){for(let s=0;s<i;s++){const a=new Date(t.getFullYear(),t.getMonth()+s,1);if(e.getMonth()===a.getMonth()&&e.getFullYear()===a.getFullYear())return!0}return!1}function pl(e,t,i="long"){return new Intl.DateTimeFormat(e,{month:i,year:"numeric"}).formatToParts(t).filter(a=>a.type==="month"||a.type==="year")}function La(e,t){const i=e||"en-US",n=new Intl.DateTimeFormat(i,{day:"numeric"}).formatToParts(t).find(r=>r.type==="day");return n?n.value:t.getDate().toString()}function si(e,t){const i=Pe(e),s=Pe(t);return i===s?{start:i}:{start:i,end:s}}function Ta(e){return e.length?e.map(s=>({start:new Date(s.start).getTime(),end:new Date(s.end??s.start).getTime()})).sort((s,a)=>s.start-a.start).reduce((s,a)=>{const n=s[s.length-1];if(n){const r=new Date(n.end);if(r.setDate(r.getDate()+1),a.start<=r.getTime())return n.end=Math.max(n.end,a.end),s}return[...s,a]},[]).map(s=>si(new Date(s.start),new Date(s.end))):[]}class ae{constructor(t,i){t.addController(this),this.getTargets=i.getTargets,this.getState=i.getState}hostConnected(){}hostUpdated(){const t=this.getTargets();if(!t)return;let i=[];t instanceof NodeList?i=Array.from(t):Array.isArray(t)?i=t:i=[t];const{uid:s,templateData:a}=this.getState(),{touched:n,errors:r,readonly:l,disabled:u,hint:p}=a,c=n&&r&&r.length>0;_e.filterTap(i,y=>!!y,y=>{const f=(D,C)=>{C?y.setAttribute(D,C):y.removeAttribute(D)};f("aria-describedby",p?`${s}_hint`:null),f("aria-invalid",c?"true":null),f("aria-errormessage",c?`${s}_errors`:null),f("aria-readonly",u||l?"true":null)})}}const se=(e,t,i=!1,s=void 0,a=!0)=>a?t.label?d.html`<label
|
|
36
|
+
`}disconnectedCallback(){super.disconnectedCallback(),this.adapter.destroy(),this.subscriptions.forEach(e=>e.unsubscribe())}};ai([g.consume({context:h.formContext}),o.property({attribute:!1})],it.prototype,"formContext",2),ai([g.provide({context:h.actionContext})],it.prototype,"adapter",2),it=ai([o.customElement("gui-button-interactive")],it);const ol=Object.freeze(Object.defineProperty({__proto__:null,get ButtonElement(){return it}},Symbol.toStringTag,{value:"Module"})),ll={aa:{firstDay:7,weekend:[6,7],minimalDays:1},"aa-DJ":{firstDay:6,weekend:[6,7],minimalDays:1},"aa-ER":{firstDay:1,weekend:[6,7],minimalDays:1},ab:{firstDay:1,weekend:[6,7],minimalDays:1},af:{firstDay:7,weekend:[6,7],minimalDays:1},"af-NA":{firstDay:1,weekend:[6,7],minimalDays:1},agq:{firstDay:1,weekend:[6,7],minimalDays:1},ak:{firstDay:1,weekend:[6,7],minimalDays:1},am:{firstDay:7,weekend:[6,7],minimalDays:1},an:{firstDay:1,weekend:[6,7],minimalDays:4},ann:{firstDay:1,weekend:[6,7],minimalDays:1},apc:{firstDay:6,weekend:[5,6],minimalDays:1},ar:{firstDay:6,weekend:[5,6],minimalDays:1},"ar-AE":{firstDay:6,weekend:[6,7],minimalDays:1},"ar-BH":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-DJ":{firstDay:6,weekend:[6,7],minimalDays:1},"ar-DZ":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-EG":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-EH":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-ER":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-IL":{firstDay:7,weekend:[5,6],minimalDays:1},"ar-IQ":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-JO":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-KM":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-KW":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-LB":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-LY":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-MA":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-MR":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-OM":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-PS":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-QA":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-SA":{firstDay:7,weekend:[5,6],minimalDays:1},"ar-SD":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-SO":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-SS":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-SY":{firstDay:6,weekend:[5,6],minimalDays:1},"ar-TD":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-TN":{firstDay:1,weekend:[6,7],minimalDays:1},"ar-YE":{firstDay:7,weekend:[5,6],minimalDays:1},arn:{firstDay:1,weekend:[6,7],minimalDays:1},as:{firstDay:7,weekend:[7],minimalDays:1},asa:{firstDay:1,weekend:[6,7],minimalDays:1},ast:{firstDay:1,weekend:[6,7],minimalDays:4},az:{firstDay:1,weekend:[6,7],minimalDays:1},"az-Arab":{firstDay:6,weekend:[5],minimalDays:1},"az-Arab-IQ":{firstDay:6,weekend:[5,6],minimalDays:1},"az-Arab-TR":{firstDay:1,weekend:[6,7],minimalDays:1},"az-Cyrl":{firstDay:1,weekend:[6,7],minimalDays:1},"az-Latn":{firstDay:1,weekend:[6,7],minimalDays:1},ba:{firstDay:1,weekend:[6,7],minimalDays:4},bal:{firstDay:7,weekend:[6,7],minimalDays:1},"bal-Arab":{firstDay:7,weekend:[6,7],minimalDays:1},"bal-Latn":{firstDay:7,weekend:[6,7],minimalDays:1},bas:{firstDay:1,weekend:[6,7],minimalDays:1},be:{firstDay:1,weekend:[6,7],minimalDays:1},"be-tarask":{firstDay:1,weekend:[6,7],minimalDays:1},bem:{firstDay:1,weekend:[6,7],minimalDays:1},bew:{firstDay:7,weekend:[6,7],minimalDays:1},bez:{firstDay:1,weekend:[6,7],minimalDays:1},bg:{firstDay:1,weekend:[6,7],minimalDays:4},bgc:{firstDay:7,weekend:[7],minimalDays:1},bgn:{firstDay:7,weekend:[6,7],minimalDays:1},"bgn-AE":{firstDay:6,weekend:[6,7],minimalDays:1},"bgn-AF":{firstDay:6,weekend:[4,5],minimalDays:1},"bgn-IR":{firstDay:6,weekend:[5],minimalDays:1},"bgn-OM":{firstDay:6,weekend:[5,6],minimalDays:1},bho:{firstDay:7,weekend:[7],minimalDays:1},blo:{firstDay:1,weekend:[6,7],minimalDays:1},blt:{firstDay:1,weekend:[6,7],minimalDays:1},bm:{firstDay:1,weekend:[6,7],minimalDays:1},"bm-Nkoo":{firstDay:1,weekend:[6,7],minimalDays:1},bn:{firstDay:7,weekend:[6,7],minimalDays:1},"bn-IN":{firstDay:7,weekend:[7],minimalDays:1},bo:{firstDay:1,weekend:[6,7],minimalDays:1},"bo-IN":{firstDay:7,weekend:[7],minimalDays:1},br:{firstDay:1,weekend:[6,7],minimalDays:4},brx:{firstDay:7,weekend:[7],minimalDays:1},bs:{firstDay:1,weekend:[6,7],minimalDays:1},"bs-Cyrl":{firstDay:1,weekend:[6,7],minimalDays:1},"bs-Latn":{firstDay:1,weekend:[6,7],minimalDays:1},bss:{firstDay:1,weekend:[6,7],minimalDays:1},byn:{firstDay:1,weekend:[6,7],minimalDays:1},ca:{firstDay:1,weekend:[6,7],minimalDays:4},"ca-AD":{firstDay:1,weekend:[6,7],minimalDays:4},"ca-ES-valencia":{firstDay:1,weekend:[6,7],minimalDays:4},"ca-FR":{firstDay:1,weekend:[6,7],minimalDays:4},"ca-IT":{firstDay:1,weekend:[6,7],minimalDays:4},cad:{firstDay:7,weekend:[6,7],minimalDays:1},cch:{firstDay:1,weekend:[6,7],minimalDays:1},ccp:{firstDay:7,weekend:[6,7],minimalDays:1},"ccp-IN":{firstDay:7,weekend:[7],minimalDays:1},ce:{firstDay:1,weekend:[6,7],minimalDays:4},ceb:{firstDay:7,weekend:[6,7],minimalDays:1},cgg:{firstDay:1,weekend:[7],minimalDays:1},cho:{firstDay:7,weekend:[6,7],minimalDays:1},chr:{firstDay:7,weekend:[6,7],minimalDays:1},cic:{firstDay:7,weekend:[6,7],minimalDays:1},ckb:{firstDay:6,weekend:[5,6],minimalDays:1},"ckb-IR":{firstDay:6,weekend:[5],minimalDays:1},co:{firstDay:1,weekend:[6,7],minimalDays:4},cs:{firstDay:1,weekend:[6,7],minimalDays:4},csw:{firstDay:7,weekend:[6,7],minimalDays:1},cu:{firstDay:1,weekend:[6,7],minimalDays:4},cv:{firstDay:1,weekend:[6,7],minimalDays:4},cy:{firstDay:1,weekend:[6,7],minimalDays:4},da:{firstDay:1,weekend:[6,7],minimalDays:4},"da-GL":{firstDay:1,weekend:[6,7],minimalDays:1},dav:{firstDay:7,weekend:[6,7],minimalDays:1},de:{firstDay:1,weekend:[6,7],minimalDays:4},"de-AT":{firstDay:1,weekend:[6,7],minimalDays:4},"de-BE":{firstDay:1,weekend:[6,7],minimalDays:4},"de-CH":{firstDay:1,weekend:[6,7],minimalDays:4},"de-IT":{firstDay:1,weekend:[6,7],minimalDays:4},"de-LI":{firstDay:1,weekend:[6,7],minimalDays:4},"de-LU":{firstDay:1,weekend:[6,7],minimalDays:4},dje:{firstDay:1,weekend:[6,7],minimalDays:1},doi:{firstDay:7,weekend:[7],minimalDays:1},dsb:{firstDay:1,weekend:[6,7],minimalDays:4},dua:{firstDay:1,weekend:[6,7],minimalDays:1},dv:{firstDay:5,weekend:[6,7],minimalDays:1},dyo:{firstDay:1,weekend:[6,7],minimalDays:1},dz:{firstDay:7,weekend:[6,7],minimalDays:1},ebu:{firstDay:7,weekend:[6,7],minimalDays:1},ee:{firstDay:1,weekend:[6,7],minimalDays:1},"ee-TG":{firstDay:1,weekend:[6,7],minimalDays:1},el:{firstDay:1,weekend:[6,7],minimalDays:4},"el-CY":{firstDay:1,weekend:[6,7],minimalDays:1},"el-polyton":{firstDay:1,weekend:[6,7],minimalDays:4},en:{firstDay:7,weekend:[6,7],minimalDays:1},"en-001":{firstDay:1,weekend:[6,7],minimalDays:1},"en-150":{firstDay:1,weekend:[6,7],minimalDays:1},"en-AE":{firstDay:6,weekend:[6,7],minimalDays:1},"en-AG":{firstDay:7,weekend:[6,7],minimalDays:1},"en-AI":{firstDay:1,weekend:[6,7],minimalDays:1},"en-AS":{firstDay:7,weekend:[6,7],minimalDays:1},"en-AT":{firstDay:1,weekend:[6,7],minimalDays:4},"en-AU":{firstDay:1,weekend:[6,7],minimalDays:1},"en-BB":{firstDay:1,weekend:[6,7],minimalDays:1},"en-BE":{firstDay:1,weekend:[6,7],minimalDays:4},"en-BI":{firstDay:1,weekend:[6,7],minimalDays:1},"en-BM":{firstDay:1,weekend:[6,7],minimalDays:1},"en-BS":{firstDay:7,weekend:[6,7],minimalDays:1},"en-BW":{firstDay:7,weekend:[6,7],minimalDays:1},"en-BZ":{firstDay:7,weekend:[6,7],minimalDays:1},"en-CA":{firstDay:7,weekend:[6,7],minimalDays:1},"en-CC":{firstDay:1,weekend:[6,7],minimalDays:1},"en-CH":{firstDay:1,weekend:[6,7],minimalDays:4},"en-CK":{firstDay:1,weekend:[6,7],minimalDays:1},"en-CM":{firstDay:1,weekend:[6,7],minimalDays:1},"en-CX":{firstDay:1,weekend:[6,7],minimalDays:1},"en-CY":{firstDay:1,weekend:[6,7],minimalDays:1},"en-DE":{firstDay:1,weekend:[6,7],minimalDays:4},"en-DG":{firstDay:1,weekend:[6,7],minimalDays:1},"en-DK":{firstDay:1,weekend:[6,7],minimalDays:4},"en-DM":{firstDay:7,weekend:[6,7],minimalDays:1},"en-Dsrt":{firstDay:7,weekend:[6,7],minimalDays:1},"en-ER":{firstDay:1,weekend:[6,7],minimalDays:1},"en-FI":{firstDay:1,weekend:[6,7],minimalDays:4},"en-FJ":{firstDay:1,weekend:[6,7],minimalDays:4},"en-FK":{firstDay:1,weekend:[6,7],minimalDays:1},"en-FM":{firstDay:1,weekend:[6,7],minimalDays:1},"en-GB":{firstDay:1,weekend:[6,7],minimalDays:4},"en-GD":{firstDay:1,weekend:[6,7],minimalDays:1},"en-GG":{firstDay:1,weekend:[6,7],minimalDays:4},"en-GH":{firstDay:1,weekend:[6,7],minimalDays:1},"en-GI":{firstDay:1,weekend:[6,7],minimalDays:4},"en-GM":{firstDay:1,weekend:[6,7],minimalDays:1},"en-GU":{firstDay:7,weekend:[6,7],minimalDays:1},"en-GY":{firstDay:1,weekend:[6,7],minimalDays:1},"en-HK":{firstDay:7,weekend:[6,7],minimalDays:1},"en-ID":{firstDay:7,weekend:[6,7],minimalDays:1},"en-IE":{firstDay:1,weekend:[6,7],minimalDays:4},"en-IL":{firstDay:7,weekend:[5,6],minimalDays:1},"en-IM":{firstDay:1,weekend:[6,7],minimalDays:4},"en-IN":{firstDay:7,weekend:[7],minimalDays:1},"en-IO":{firstDay:1,weekend:[6,7],minimalDays:1},"en-JE":{firstDay:1,weekend:[6,7],minimalDays:4},"en-JM":{firstDay:7,weekend:[6,7],minimalDays:1},"en-KE":{firstDay:7,weekend:[6,7],minimalDays:1},"en-KI":{firstDay:1,weekend:[6,7],minimalDays:1},"en-KN":{firstDay:1,weekend:[6,7],minimalDays:1},"en-KY":{firstDay:1,weekend:[6,7],minimalDays:1},"en-LC":{firstDay:1,weekend:[6,7],minimalDays:1},"en-LR":{firstDay:1,weekend:[6,7],minimalDays:1},"en-LS":{firstDay:1,weekend:[6,7],minimalDays:1},"en-MG":{firstDay:1,weekend:[6,7],minimalDays:1},"en-MH":{firstDay:7,weekend:[6,7],minimalDays:1},"en-MO":{firstDay:7,weekend:[6,7],minimalDays:1},"en-MP":{firstDay:1,weekend:[6,7],minimalDays:1},"en-MS":{firstDay:1,weekend:[6,7],minimalDays:1},"en-MT":{firstDay:7,weekend:[6,7],minimalDays:1},"en-MU":{firstDay:1,weekend:[6,7],minimalDays:1},"en-MV":{firstDay:5,weekend:[6,7],minimalDays:1},"en-MW":{firstDay:1,weekend:[6,7],minimalDays:1},"en-MY":{firstDay:1,weekend:[6,7],minimalDays:1},"en-NA":{firstDay:1,weekend:[6,7],minimalDays:1},"en-NF":{firstDay:1,weekend:[6,7],minimalDays:1},"en-NG":{firstDay:1,weekend:[6,7],minimalDays:1},"en-NL":{firstDay:1,weekend:[6,7],minimalDays:4},"en-NR":{firstDay:1,weekend:[6,7],minimalDays:1},"en-NU":{firstDay:1,weekend:[6,7],minimalDays:1},"en-NZ":{firstDay:1,weekend:[6,7],minimalDays:1},"en-PG":{firstDay:1,weekend:[6,7],minimalDays:1},"en-PH":{firstDay:7,weekend:[6,7],minimalDays:1},"en-PK":{firstDay:7,weekend:[6,7],minimalDays:1},"en-PN":{firstDay:1,weekend:[6,7],minimalDays:1},"en-PR":{firstDay:7,weekend:[6,7],minimalDays:1},"en-PW":{firstDay:1,weekend:[6,7],minimalDays:1},"en-RW":{firstDay:1,weekend:[6,7],minimalDays:1},"en-SB":{firstDay:1,weekend:[6,7],minimalDays:1},"en-SC":{firstDay:1,weekend:[6,7],minimalDays:1},"en-SD":{firstDay:6,weekend:[5,6],minimalDays:1},"en-SE":{firstDay:1,weekend:[6,7],minimalDays:4},"en-SG":{firstDay:7,weekend:[6,7],minimalDays:1},"en-SH":{firstDay:1,weekend:[6,7],minimalDays:1},"en-SI":{firstDay:1,weekend:[6,7],minimalDays:1},"en-SL":{firstDay:1,weekend:[6,7],minimalDays:1},"en-SS":{firstDay:1,weekend:[6,7],minimalDays:1},"en-SX":{firstDay:1,weekend:[6,7],minimalDays:1},"en-SZ":{firstDay:1,weekend:[6,7],minimalDays:1},"en-Shaw":{firstDay:1,weekend:[6,7],minimalDays:4},"en-TC":{firstDay:1,weekend:[6,7],minimalDays:1},"en-TK":{firstDay:1,weekend:[6,7],minimalDays:1},"en-TO":{firstDay:1,weekend:[6,7],minimalDays:1},"en-TT":{firstDay:7,weekend:[6,7],minimalDays:1},"en-TV":{firstDay:1,weekend:[6,7],minimalDays:1},"en-TZ":{firstDay:1,weekend:[6,7],minimalDays:1},"en-UG":{firstDay:1,weekend:[7],minimalDays:1},"en-UM":{firstDay:7,weekend:[6,7],minimalDays:1},"en-VC":{firstDay:1,weekend:[6,7],minimalDays:1},"en-VG":{firstDay:1,weekend:[6,7],minimalDays:1},"en-VI":{firstDay:7,weekend:[6,7],minimalDays:1},"en-VU":{firstDay:1,weekend:[6,7],minimalDays:1},"en-WS":{firstDay:7,weekend:[6,7],minimalDays:1},"en-ZA":{firstDay:7,weekend:[6,7],minimalDays:1},"en-ZM":{firstDay:1,weekend:[6,7],minimalDays:1},"en-ZW":{firstDay:7,weekend:[6,7],minimalDays:1},eo:{firstDay:1,weekend:[6,7],minimalDays:1},es:{firstDay:1,weekend:[6,7],minimalDays:4},"es-419":{firstDay:1,weekend:[6,7],minimalDays:1},"es-AR":{firstDay:1,weekend:[6,7],minimalDays:1},"es-BO":{firstDay:1,weekend:[6,7],minimalDays:1},"es-BR":{firstDay:7,weekend:[6,7],minimalDays:1},"es-BZ":{firstDay:7,weekend:[6,7],minimalDays:1},"es-CL":{firstDay:1,weekend:[6,7],minimalDays:1},"es-CO":{firstDay:7,weekend:[6,7],minimalDays:1},"es-CR":{firstDay:1,weekend:[6,7],minimalDays:1},"es-CU":{firstDay:1,weekend:[6,7],minimalDays:1},"es-DO":{firstDay:7,weekend:[6,7],minimalDays:1},"es-EA":{firstDay:1,weekend:[6,7],minimalDays:1},"es-EC":{firstDay:1,weekend:[6,7],minimalDays:1},"es-GQ":{firstDay:1,weekend:[6,7],minimalDays:1},"es-GT":{firstDay:7,weekend:[6,7],minimalDays:1},"es-HN":{firstDay:7,weekend:[6,7],minimalDays:1},"es-IC":{firstDay:1,weekend:[6,7],minimalDays:1},"es-MX":{firstDay:7,weekend:[6,7],minimalDays:1},"es-NI":{firstDay:7,weekend:[6,7],minimalDays:1},"es-PA":{firstDay:7,weekend:[6,7],minimalDays:1},"es-PE":{firstDay:7,weekend:[6,7],minimalDays:1},"es-PH":{firstDay:7,weekend:[6,7],minimalDays:1},"es-PR":{firstDay:7,weekend:[6,7],minimalDays:1},"es-PY":{firstDay:7,weekend:[6,7],minimalDays:1},"es-SV":{firstDay:7,weekend:[6,7],minimalDays:1},"es-US":{firstDay:7,weekend:[6,7],minimalDays:1},"es-UY":{firstDay:1,weekend:[6,7],minimalDays:1},"es-VE":{firstDay:7,weekend:[6,7],minimalDays:1},et:{firstDay:1,weekend:[6,7],minimalDays:4},eu:{firstDay:1,weekend:[6,7],minimalDays:4},ewo:{firstDay:1,weekend:[6,7],minimalDays:1},fa:{firstDay:6,weekend:[5],minimalDays:1},"fa-AF":{firstDay:6,weekend:[4,5],minimalDays:1},ff:{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-BF":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-CM":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-GH":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-GM":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-GW":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-LR":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-MR":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-NE":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-NG":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-SL":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Adlm-SN":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-BF":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-CM":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-GH":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-GM":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-GN":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-GW":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-LR":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-MR":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-NE":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-NG":{firstDay:1,weekend:[6,7],minimalDays:1},"ff-Latn-SL":{firstDay:1,weekend:[6,7],minimalDays:1},fi:{firstDay:1,weekend:[6,7],minimalDays:4},fil:{firstDay:7,weekend:[6,7],minimalDays:1},fo:{firstDay:1,weekend:[6,7],minimalDays:4},"fo-DK":{firstDay:1,weekend:[6,7],minimalDays:4},fr:{firstDay:1,weekend:[6,7],minimalDays:4},"fr-BE":{firstDay:1,weekend:[6,7],minimalDays:4},"fr-BF":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-BI":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-BJ":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-BL":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-CA":{firstDay:7,weekend:[6,7],minimalDays:1},"fr-CD":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-CF":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-CG":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-CH":{firstDay:1,weekend:[6,7],minimalDays:4},"fr-CI":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-CM":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-DJ":{firstDay:6,weekend:[6,7],minimalDays:1},"fr-DZ":{firstDay:6,weekend:[5,6],minimalDays:1},"fr-GA":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-GF":{firstDay:1,weekend:[6,7],minimalDays:4},"fr-GN":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-GP":{firstDay:1,weekend:[6,7],minimalDays:4},"fr-GQ":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-HT":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-KM":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-LU":{firstDay:1,weekend:[6,7],minimalDays:4},"fr-MA":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-MC":{firstDay:1,weekend:[6,7],minimalDays:4},"fr-MF":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-MG":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-ML":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-MQ":{firstDay:1,weekend:[6,7],minimalDays:4},"fr-MR":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-MU":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-NC":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-NE":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-PF":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-PM":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-RE":{firstDay:1,weekend:[6,7],minimalDays:4},"fr-RW":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-SC":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-SN":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-SY":{firstDay:6,weekend:[5,6],minimalDays:1},"fr-TD":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-TG":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-TN":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-VU":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-WF":{firstDay:1,weekend:[6,7],minimalDays:1},"fr-YT":{firstDay:1,weekend:[6,7],minimalDays:1},frr:{firstDay:1,weekend:[6,7],minimalDays:4},fur:{firstDay:1,weekend:[6,7],minimalDays:4},fy:{firstDay:1,weekend:[6,7],minimalDays:4},ga:{firstDay:1,weekend:[6,7],minimalDays:4},"ga-GB":{firstDay:1,weekend:[6,7],minimalDays:4},gaa:{firstDay:1,weekend:[6,7],minimalDays:1},gd:{firstDay:1,weekend:[6,7],minimalDays:4},gez:{firstDay:7,weekend:[6,7],minimalDays:1},"gez-ER":{firstDay:1,weekend:[6,7],minimalDays:1},gl:{firstDay:1,weekend:[6,7],minimalDays:4},gn:{firstDay:7,weekend:[6,7],minimalDays:1},gsw:{firstDay:1,weekend:[6,7],minimalDays:4},"gsw-FR":{firstDay:1,weekend:[6,7],minimalDays:4},"gsw-LI":{firstDay:1,weekend:[6,7],minimalDays:4},gu:{firstDay:7,weekend:[7],minimalDays:1},guz:{firstDay:7,weekend:[6,7],minimalDays:1},gv:{firstDay:1,weekend:[6,7],minimalDays:4},ha:{firstDay:1,weekend:[6,7],minimalDays:1},"ha-Arab":{firstDay:1,weekend:[6,7],minimalDays:1},"ha-Arab-SD":{firstDay:6,weekend:[5,6],minimalDays:1},"ha-GH":{firstDay:1,weekend:[6,7],minimalDays:1},"ha-NE":{firstDay:1,weekend:[6,7],minimalDays:1},haw:{firstDay:7,weekend:[6,7],minimalDays:1},he:{firstDay:7,weekend:[5,6],minimalDays:1},hi:{firstDay:7,weekend:[7],minimalDays:1},"hi-Latn":{firstDay:7,weekend:[7],minimalDays:1},hnj:{firstDay:7,weekend:[6,7],minimalDays:1},"hnj-Hmnp":{firstDay:7,weekend:[6,7],minimalDays:1},hr:{firstDay:1,weekend:[6,7],minimalDays:1},"hr-BA":{firstDay:1,weekend:[6,7],minimalDays:1},hsb:{firstDay:1,weekend:[6,7],minimalDays:4},hu:{firstDay:1,weekend:[6,7],minimalDays:4},hy:{firstDay:1,weekend:[6,7],minimalDays:1},ia:{firstDay:1,weekend:[6,7],minimalDays:1},id:{firstDay:7,weekend:[6,7],minimalDays:1},ie:{firstDay:1,weekend:[6,7],minimalDays:4},ig:{firstDay:1,weekend:[6,7],minimalDays:1},ii:{firstDay:1,weekend:[6,7],minimalDays:1},io:{firstDay:1,weekend:[6,7],minimalDays:1},is:{firstDay:1,weekend:[6,7],minimalDays:4},it:{firstDay:1,weekend:[6,7],minimalDays:4},"it-CH":{firstDay:1,weekend:[6,7],minimalDays:4},"it-SM":{firstDay:1,weekend:[6,7],minimalDays:4},"it-VA":{firstDay:1,weekend:[6,7],minimalDays:4},iu:{firstDay:7,weekend:[6,7],minimalDays:1},"iu-Latn":{firstDay:7,weekend:[6,7],minimalDays:1},ja:{firstDay:7,weekend:[6,7],minimalDays:1},jbo:{firstDay:1,weekend:[6,7],minimalDays:1},jgo:{firstDay:1,weekend:[6,7],minimalDays:1},jmc:{firstDay:1,weekend:[6,7],minimalDays:1},jv:{firstDay:7,weekend:[6,7],minimalDays:1},ka:{firstDay:1,weekend:[6,7],minimalDays:1},kab:{firstDay:6,weekend:[5,6],minimalDays:1},kaj:{firstDay:1,weekend:[6,7],minimalDays:1},kam:{firstDay:7,weekend:[6,7],minimalDays:1},kcg:{firstDay:1,weekend:[6,7],minimalDays:1},kde:{firstDay:1,weekend:[6,7],minimalDays:1},kea:{firstDay:1,weekend:[6,7],minimalDays:1},ken:{firstDay:1,weekend:[6,7],minimalDays:1},kgp:{firstDay:7,weekend:[6,7],minimalDays:1},khq:{firstDay:1,weekend:[6,7],minimalDays:1},ki:{firstDay:7,weekend:[6,7],minimalDays:1},kk:{firstDay:1,weekend:[6,7],minimalDays:1},kkj:{firstDay:1,weekend:[6,7],minimalDays:1},kl:{firstDay:1,weekend:[6,7],minimalDays:1},kln:{firstDay:7,weekend:[6,7],minimalDays:1},km:{firstDay:7,weekend:[6,7],minimalDays:1},kn:{firstDay:7,weekend:[7],minimalDays:1},ko:{firstDay:7,weekend:[6,7],minimalDays:1},"ko-CN":{firstDay:1,weekend:[6,7],minimalDays:1},"ko-KP":{firstDay:1,weekend:[6,7],minimalDays:1},kok:{firstDay:7,weekend:[7],minimalDays:1},kpe:{firstDay:1,weekend:[6,7],minimalDays:1},"kpe-GN":{firstDay:1,weekend:[6,7],minimalDays:1},ks:{firstDay:7,weekend:[7],minimalDays:1},"ks-Arab":{firstDay:7,weekend:[7],minimalDays:1},"ks-Deva":{firstDay:7,weekend:[7],minimalDays:1},ksb:{firstDay:1,weekend:[6,7],minimalDays:1},ksf:{firstDay:1,weekend:[6,7],minimalDays:1},ksh:{firstDay:1,weekend:[6,7],minimalDays:4},ku:{firstDay:1,weekend:[6,7],minimalDays:1},kw:{firstDay:1,weekend:[6,7],minimalDays:4},kxv:{firstDay:7,weekend:[7],minimalDays:1},"kxv-Deva":{firstDay:7,weekend:[7],minimalDays:1},"kxv-Latn":{firstDay:7,weekend:[7],minimalDays:1},"kxv-Orya":{firstDay:7,weekend:[7],minimalDays:1},"kxv-Telu":{firstDay:7,weekend:[7],minimalDays:1},ky:{firstDay:1,weekend:[6,7],minimalDays:1},la:{firstDay:1,weekend:[6,7],minimalDays:4},lag:{firstDay:1,weekend:[6,7],minimalDays:1},lb:{firstDay:1,weekend:[6,7],minimalDays:4},lg:{firstDay:1,weekend:[7],minimalDays:1},lij:{firstDay:1,weekend:[6,7],minimalDays:4},lkt:{firstDay:7,weekend:[6,7],minimalDays:1},lmo:{firstDay:1,weekend:[6,7],minimalDays:4},ln:{firstDay:1,weekend:[6,7],minimalDays:1},"ln-AO":{firstDay:1,weekend:[6,7],minimalDays:1},"ln-CF":{firstDay:1,weekend:[6,7],minimalDays:1},"ln-CG":{firstDay:1,weekend:[6,7],minimalDays:1},lo:{firstDay:7,weekend:[6,7],minimalDays:1},lrc:{firstDay:6,weekend:[5],minimalDays:1},"lrc-IQ":{firstDay:6,weekend:[5,6],minimalDays:1},lt:{firstDay:1,weekend:[6,7],minimalDays:4},lu:{firstDay:1,weekend:[6,7],minimalDays:1},luo:{firstDay:7,weekend:[6,7],minimalDays:1},luy:{firstDay:7,weekend:[6,7],minimalDays:1},lv:{firstDay:1,weekend:[6,7],minimalDays:1},mai:{firstDay:7,weekend:[7],minimalDays:1},mas:{firstDay:7,weekend:[6,7],minimalDays:1},"mas-TZ":{firstDay:1,weekend:[6,7],minimalDays:1},mdf:{firstDay:1,weekend:[6,7],minimalDays:4},mer:{firstDay:7,weekend:[6,7],minimalDays:1},mfe:{firstDay:1,weekend:[6,7],minimalDays:1},mg:{firstDay:1,weekend:[6,7],minimalDays:1},mgh:{firstDay:7,weekend:[6,7],minimalDays:1},mgo:{firstDay:1,weekend:[6,7],minimalDays:1},mi:{firstDay:1,weekend:[6,7],minimalDays:1},mic:{firstDay:7,weekend:[6,7],minimalDays:1},mk:{firstDay:1,weekend:[6,7],minimalDays:1},ml:{firstDay:7,weekend:[7],minimalDays:1},mn:{firstDay:1,weekend:[6,7],minimalDays:1},"mn-Mong":{firstDay:1,weekend:[6,7],minimalDays:1},"mn-Mong-MN":{firstDay:1,weekend:[6,7],minimalDays:1},mni:{firstDay:7,weekend:[7],minimalDays:1},"mni-Beng":{firstDay:7,weekend:[7],minimalDays:1},"mni-Mtei":{firstDay:7,weekend:[7],minimalDays:1},moh:{firstDay:7,weekend:[6,7],minimalDays:1},mr:{firstDay:7,weekend:[7],minimalDays:1},ms:{firstDay:1,weekend:[6,7],minimalDays:1},"ms-Arab":{firstDay:1,weekend:[6,7],minimalDays:1},"ms-Arab-BN":{firstDay:1,weekend:[6,7],minimalDays:1},"ms-BN":{firstDay:1,weekend:[6,7],minimalDays:1},"ms-ID":{firstDay:7,weekend:[6,7],minimalDays:1},"ms-SG":{firstDay:7,weekend:[6,7],minimalDays:1},mt:{firstDay:7,weekend:[6,7],minimalDays:1},mua:{firstDay:1,weekend:[6,7],minimalDays:1},mus:{firstDay:7,weekend:[6,7],minimalDays:1},my:{firstDay:7,weekend:[6,7],minimalDays:1},myv:{firstDay:1,weekend:[6,7],minimalDays:4},mzn:{firstDay:6,weekend:[5],minimalDays:1},naq:{firstDay:1,weekend:[6,7],minimalDays:1},nb:{firstDay:1,weekend:[6,7],minimalDays:4},"nb-SJ":{firstDay:1,weekend:[6,7],minimalDays:4},nd:{firstDay:7,weekend:[6,7],minimalDays:1},nds:{firstDay:1,weekend:[6,7],minimalDays:4},"nds-NL":{firstDay:1,weekend:[6,7],minimalDays:4},ne:{firstDay:7,weekend:[6,7],minimalDays:1},"ne-IN":{firstDay:7,weekend:[7],minimalDays:1},nl:{firstDay:1,weekend:[6,7],minimalDays:4},"nl-AW":{firstDay:1,weekend:[6,7],minimalDays:1},"nl-BE":{firstDay:1,weekend:[6,7],minimalDays:4},"nl-BQ":{firstDay:1,weekend:[6,7],minimalDays:1},"nl-CW":{firstDay:1,weekend:[6,7],minimalDays:1},"nl-SR":{firstDay:1,weekend:[6,7],minimalDays:1},"nl-SX":{firstDay:1,weekend:[6,7],minimalDays:1},nmg:{firstDay:1,weekend:[6,7],minimalDays:1},nn:{firstDay:1,weekend:[6,7],minimalDays:4},nnh:{firstDay:1,weekend:[6,7],minimalDays:1},no:{firstDay:1,weekend:[6,7],minimalDays:4},nqo:{firstDay:1,weekend:[6,7],minimalDays:1},nr:{firstDay:7,weekend:[6,7],minimalDays:1},nso:{firstDay:7,weekend:[6,7],minimalDays:1},nus:{firstDay:1,weekend:[6,7],minimalDays:1},nv:{firstDay:7,weekend:[6,7],minimalDays:1},ny:{firstDay:1,weekend:[6,7],minimalDays:1},nyn:{firstDay:1,weekend:[7],minimalDays:1},oc:{firstDay:1,weekend:[6,7],minimalDays:4},"oc-ES":{firstDay:1,weekend:[6,7],minimalDays:4},om:{firstDay:7,weekend:[6,7],minimalDays:1},"om-KE":{firstDay:7,weekend:[6,7],minimalDays:1},or:{firstDay:7,weekend:[7],minimalDays:1},os:{firstDay:1,weekend:[6,7],minimalDays:1},"os-RU":{firstDay:1,weekend:[6,7],minimalDays:4},osa:{firstDay:7,weekend:[6,7],minimalDays:1},pa:{firstDay:7,weekend:[7],minimalDays:1},"pa-Arab":{firstDay:7,weekend:[6,7],minimalDays:1},"pa-Guru":{firstDay:7,weekend:[7],minimalDays:1},pap:{firstDay:1,weekend:[6,7],minimalDays:1},"pap-AW":{firstDay:1,weekend:[6,7],minimalDays:1},pcm:{firstDay:1,weekend:[6,7],minimalDays:1},pis:{firstDay:1,weekend:[6,7],minimalDays:1},pl:{firstDay:1,weekend:[6,7],minimalDays:4},prg:{firstDay:1,weekend:[6,7],minimalDays:4},ps:{firstDay:6,weekend:[4,5],minimalDays:1},"ps-PK":{firstDay:7,weekend:[6,7],minimalDays:1},pt:{firstDay:7,weekend:[6,7],minimalDays:1},"pt-AO":{firstDay:1,weekend:[6,7],minimalDays:1},"pt-CH":{firstDay:1,weekend:[6,7],minimalDays:4},"pt-CV":{firstDay:1,weekend:[6,7],minimalDays:1},"pt-GQ":{firstDay:1,weekend:[6,7],minimalDays:1},"pt-GW":{firstDay:1,weekend:[6,7],minimalDays:1},"pt-LU":{firstDay:1,weekend:[6,7],minimalDays:4},"pt-MO":{firstDay:7,weekend:[6,7],minimalDays:1},"pt-MZ":{firstDay:7,weekend:[6,7],minimalDays:1},"pt-PT":{firstDay:7,weekend:[6,7],minimalDays:4},"pt-ST":{firstDay:1,weekend:[6,7],minimalDays:1},"pt-TL":{firstDay:1,weekend:[6,7],minimalDays:1},qu:{firstDay:7,weekend:[6,7],minimalDays:1},"qu-BO":{firstDay:1,weekend:[6,7],minimalDays:1},"qu-EC":{firstDay:1,weekend:[6,7],minimalDays:1},quc:{firstDay:7,weekend:[6,7],minimalDays:1},raj:{firstDay:7,weekend:[7],minimalDays:1},rhg:{firstDay:7,weekend:[6,7],minimalDays:1},"rhg-Rohg":{firstDay:7,weekend:[6,7],minimalDays:1},"rhg-Rohg-BD":{firstDay:7,weekend:[6,7],minimalDays:1},rif:{firstDay:1,weekend:[6,7],minimalDays:1},rm:{firstDay:1,weekend:[6,7],minimalDays:4},rn:{firstDay:1,weekend:[6,7],minimalDays:1},ro:{firstDay:1,weekend:[6,7],minimalDays:1},"ro-MD":{firstDay:1,weekend:[6,7],minimalDays:1},rof:{firstDay:1,weekend:[6,7],minimalDays:1},ru:{firstDay:1,weekend:[6,7],minimalDays:4},"ru-BY":{firstDay:1,weekend:[6,7],minimalDays:1},"ru-KG":{firstDay:1,weekend:[6,7],minimalDays:1},"ru-KZ":{firstDay:1,weekend:[6,7],minimalDays:1},"ru-MD":{firstDay:1,weekend:[6,7],minimalDays:1},"ru-UA":{firstDay:1,weekend:[6,7],minimalDays:1},rw:{firstDay:1,weekend:[6,7],minimalDays:1},rwk:{firstDay:1,weekend:[6,7],minimalDays:1},sa:{firstDay:7,weekend:[7],minimalDays:1},sah:{firstDay:1,weekend:[6,7],minimalDays:4},saq:{firstDay:7,weekend:[6,7],minimalDays:1},sat:{firstDay:7,weekend:[7],minimalDays:1},"sat-Deva":{firstDay:7,weekend:[7],minimalDays:1},"sat-Olck":{firstDay:7,weekend:[7],minimalDays:1},sbp:{firstDay:1,weekend:[6,7],minimalDays:1},sc:{firstDay:1,weekend:[6,7],minimalDays:4},scn:{firstDay:1,weekend:[6,7],minimalDays:4},sd:{firstDay:7,weekend:[6,7],minimalDays:1},"sd-Arab":{firstDay:7,weekend:[6,7],minimalDays:1},"sd-Deva":{firstDay:7,weekend:[7],minimalDays:1},sdh:{firstDay:6,weekend:[5],minimalDays:1},"sdh-IQ":{firstDay:6,weekend:[5,6],minimalDays:1},se:{firstDay:1,weekend:[6,7],minimalDays:4},"se-FI":{firstDay:1,weekend:[6,7],minimalDays:4},"se-SE":{firstDay:1,weekend:[6,7],minimalDays:4},seh:{firstDay:7,weekend:[6,7],minimalDays:1},ses:{firstDay:1,weekend:[6,7],minimalDays:1},sg:{firstDay:1,weekend:[6,7],minimalDays:1},shi:{firstDay:1,weekend:[6,7],minimalDays:1},"shi-Latn":{firstDay:1,weekend:[6,7],minimalDays:1},"shi-Tfng":{firstDay:1,weekend:[6,7],minimalDays:1},shn:{firstDay:7,weekend:[6,7],minimalDays:1},"shn-TH":{firstDay:7,weekend:[6,7],minimalDays:1},si:{firstDay:1,weekend:[6,7],minimalDays:1},sid:{firstDay:7,weekend:[6,7],minimalDays:1},sk:{firstDay:1,weekend:[6,7],minimalDays:4},skr:{firstDay:7,weekend:[6,7],minimalDays:1},sl:{firstDay:1,weekend:[6,7],minimalDays:1},sma:{firstDay:1,weekend:[6,7],minimalDays:4},"sma-NO":{firstDay:1,weekend:[6,7],minimalDays:4},smj:{firstDay:1,weekend:[6,7],minimalDays:4},"smj-NO":{firstDay:1,weekend:[6,7],minimalDays:4},smn:{firstDay:1,weekend:[6,7],minimalDays:4},sms:{firstDay:1,weekend:[6,7],minimalDays:4},sn:{firstDay:7,weekend:[6,7],minimalDays:1},so:{firstDay:1,weekend:[6,7],minimalDays:1},"so-DJ":{firstDay:6,weekend:[6,7],minimalDays:1},"so-ET":{firstDay:7,weekend:[6,7],minimalDays:1},"so-KE":{firstDay:7,weekend:[6,7],minimalDays:1},sq:{firstDay:1,weekend:[6,7],minimalDays:1},"sq-MK":{firstDay:1,weekend:[6,7],minimalDays:1},"sq-XK":{firstDay:1,weekend:[6,7],minimalDays:1},sr:{firstDay:1,weekend:[6,7],minimalDays:1},"sr-Cyrl":{firstDay:1,weekend:[6,7],minimalDays:1},"sr-Cyrl-BA":{firstDay:1,weekend:[6,7],minimalDays:1},"sr-Cyrl-ME":{firstDay:1,weekend:[6,7],minimalDays:1},"sr-Cyrl-XK":{firstDay:1,weekend:[6,7],minimalDays:1},"sr-Latn":{firstDay:1,weekend:[6,7],minimalDays:1},"sr-Latn-BA":{firstDay:1,weekend:[6,7],minimalDays:1},"sr-Latn-ME":{firstDay:1,weekend:[6,7],minimalDays:1},"sr-Latn-XK":{firstDay:1,weekend:[6,7],minimalDays:1},ss:{firstDay:7,weekend:[6,7],minimalDays:1},"ss-SZ":{firstDay:1,weekend:[6,7],minimalDays:1},ssy:{firstDay:1,weekend:[6,7],minimalDays:1},st:{firstDay:7,weekend:[6,7],minimalDays:1},"st-LS":{firstDay:1,weekend:[6,7],minimalDays:1},su:{firstDay:7,weekend:[6,7],minimalDays:1},"su-Latn":{firstDay:7,weekend:[6,7],minimalDays:1},sv:{firstDay:1,weekend:[6,7],minimalDays:4},"sv-AX":{firstDay:1,weekend:[6,7],minimalDays:4},"sv-FI":{firstDay:1,weekend:[6,7],minimalDays:4},sw:{firstDay:1,weekend:[6,7],minimalDays:1},"sw-CD":{firstDay:1,weekend:[6,7],minimalDays:1},"sw-KE":{firstDay:7,weekend:[6,7],minimalDays:1},"sw-UG":{firstDay:1,weekend:[7],minimalDays:1},syr:{firstDay:6,weekend:[5,6],minimalDays:1},"syr-SY":{firstDay:6,weekend:[5,6],minimalDays:1},szl:{firstDay:1,weekend:[6,7],minimalDays:4},ta:{firstDay:7,weekend:[7],minimalDays:1},"ta-LK":{firstDay:1,weekend:[6,7],minimalDays:1},"ta-MY":{firstDay:1,weekend:[6,7],minimalDays:1},"ta-SG":{firstDay:7,weekend:[6,7],minimalDays:1},te:{firstDay:7,weekend:[7],minimalDays:1},teo:{firstDay:1,weekend:[7],minimalDays:1},"teo-KE":{firstDay:7,weekend:[6,7],minimalDays:1},tg:{firstDay:1,weekend:[6,7],minimalDays:1},th:{firstDay:7,weekend:[6,7],minimalDays:1},ti:{firstDay:7,weekend:[6,7],minimalDays:1},"ti-ER":{firstDay:1,weekend:[6,7],minimalDays:1},tig:{firstDay:1,weekend:[6,7],minimalDays:1},tk:{firstDay:1,weekend:[6,7],minimalDays:1},tn:{firstDay:7,weekend:[6,7],minimalDays:1},"tn-BW":{firstDay:7,weekend:[6,7],minimalDays:1},to:{firstDay:1,weekend:[6,7],minimalDays:1},tok:{firstDay:1,weekend:[6,7],minimalDays:1},tpi:{firstDay:1,weekend:[6,7],minimalDays:1},tr:{firstDay:1,weekend:[6,7],minimalDays:1},"tr-CY":{firstDay:1,weekend:[6,7],minimalDays:1},trv:{firstDay:7,weekend:[6,7],minimalDays:1},trw:{firstDay:7,weekend:[6,7],minimalDays:1},ts:{firstDay:7,weekend:[6,7],minimalDays:1},tt:{firstDay:1,weekend:[6,7],minimalDays:4},twq:{firstDay:1,weekend:[6,7],minimalDays:1},tyv:{firstDay:1,weekend:[6,7],minimalDays:4},tzm:{firstDay:1,weekend:[6,7],minimalDays:1},ug:{firstDay:1,weekend:[6,7],minimalDays:1},uk:{firstDay:1,weekend:[6,7],minimalDays:1},und:{firstDay:7,weekend:[6,7],minimalDays:1},ur:{firstDay:7,weekend:[6,7],minimalDays:1},"ur-IN":{firstDay:7,weekend:[7],minimalDays:1},uz:{firstDay:1,weekend:[6,7],minimalDays:1},"uz-Arab":{firstDay:6,weekend:[4,5],minimalDays:1},"uz-Cyrl":{firstDay:1,weekend:[6,7],minimalDays:1},"uz-Latn":{firstDay:1,weekend:[6,7],minimalDays:1},vai:{firstDay:1,weekend:[6,7],minimalDays:1},"vai-Latn":{firstDay:1,weekend:[6,7],minimalDays:1},"vai-Vaii":{firstDay:1,weekend:[6,7],minimalDays:1},ve:{firstDay:7,weekend:[6,7],minimalDays:1},vec:{firstDay:1,weekend:[6,7],minimalDays:4},vi:{firstDay:1,weekend:[6,7],minimalDays:1},vmw:{firstDay:7,weekend:[6,7],minimalDays:1},vo:{firstDay:1,weekend:[6,7],minimalDays:1},vun:{firstDay:1,weekend:[6,7],minimalDays:1},wa:{firstDay:1,weekend:[6,7],minimalDays:4},wae:{firstDay:1,weekend:[6,7],minimalDays:4},wal:{firstDay:7,weekend:[6,7],minimalDays:1},wbp:{firstDay:1,weekend:[6,7],minimalDays:1},wo:{firstDay:1,weekend:[6,7],minimalDays:1},xh:{firstDay:7,weekend:[6,7],minimalDays:1},xnr:{firstDay:7,weekend:[7],minimalDays:1},xog:{firstDay:1,weekend:[7],minimalDays:1},yav:{firstDay:1,weekend:[6,7],minimalDays:1},yi:{firstDay:1,weekend:[6,7],minimalDays:1},yo:{firstDay:1,weekend:[6,7],minimalDays:1},"yo-BJ":{firstDay:1,weekend:[6,7],minimalDays:1},yrl:{firstDay:7,weekend:[6,7],minimalDays:1},"yrl-CO":{firstDay:7,weekend:[6,7],minimalDays:1},"yrl-VE":{firstDay:7,weekend:[6,7],minimalDays:1},yue:{firstDay:7,weekend:[6,7],minimalDays:1},"yue-Hans":{firstDay:1,weekend:[6,7],minimalDays:1},"yue-Hant":{firstDay:7,weekend:[6,7],minimalDays:1},za:{firstDay:1,weekend:[6,7],minimalDays:1},zgh:{firstDay:1,weekend:[6,7],minimalDays:1},zh:{firstDay:1,weekend:[6,7],minimalDays:1},"zh-Hans":{firstDay:1,weekend:[6,7],minimalDays:1},"zh-Hans-HK":{firstDay:7,weekend:[6,7],minimalDays:1},"zh-Hans-MO":{firstDay:7,weekend:[6,7],minimalDays:1},"zh-Hans-SG":{firstDay:7,weekend:[6,7],minimalDays:1},"zh-Hant":{firstDay:7,weekend:[6,7],minimalDays:1},"zh-Hant-HK":{firstDay:7,weekend:[6,7],minimalDays:1},"zh-Hant-MO":{firstDay:7,weekend:[6,7],minimalDays:1},zu:{firstDay:7,weekend:[6,7],minimalDays:1}};function Pe(e){const t=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${t}-${i}-${s}`}function Ia(e){return at(e,new Date)}function at(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function dl(e){const t=[0,1,2,3,4,5,6],i=e%7;return[...t.slice(i),...t.slice(0,i)]}function Aa(e){const t=ll[e??"en"]||{firstDay:0};return dl(t.firstDay)}function ul(e){const t=new Intl.DateTimeFormat(e,{weekday:"narrow"}),i=new Date(2025,10,30);return Aa(e).map(s=>{const a=new Date(i);return a.setDate(i.getDate()+s),t.format(a)})}function Ne(e,t,i){for(let s=0;s<i;s++){const a=new Date(t.getFullYear(),t.getMonth()+s,1);if(e.getMonth()===a.getMonth()&&e.getFullYear()===a.getFullYear())return!0}return!1}function pl(e,t,i="long"){return new Intl.DateTimeFormat(e,{month:i,year:"numeric"}).formatToParts(t).filter(a=>a.type==="month"||a.type==="year")}function La(e,t){const i=e||"en-US",n=new Intl.DateTimeFormat(i,{day:"numeric"}).formatToParts(t).find(r=>r.type==="day");return n?n.value:t.getDate().toString()}function si(e,t){const i=Pe(e),s=Pe(t);return i===s?{start:i}:{start:i,end:s}}function Ta(e){return e.length?e.map(s=>({start:new Date(s.start).getTime(),end:new Date(s.end??s.start).getTime()})).sort((s,a)=>s.start-a.start).reduce((s,a)=>{const n=s[s.length-1];if(n){const r=new Date(n.end);if(r.setDate(r.getDate()+1),a.start<=r.getTime())return n.end=Math.max(n.end,a.end),s}return[...s,a]},[]).map(s=>si(new Date(s.start),new Date(s.end))):[]}class ae{constructor(t,i){t.addController(this),this.getTargets=i.getTargets,this.getState=i.getState}hostConnected(){}hostUpdated(){const t=this.getTargets();if(!t)return;let i=[];t instanceof NodeList?i=Array.from(t):Array.isArray(t)?i=t:i=[t];const{uid:s,templateData:a}=this.getState(),{touched:n,errors:r,readonly:l,disabled:u,hint:p}=a,c=n&&r&&r.length>0;_e.filterTap(i,y=>!!y,y=>{const f=(b,C)=>{C?y.setAttribute(b,C):y.removeAttribute(b)};f("aria-describedby",p?`${s}_hint`:null),f("aria-invalid",c?"true":null),f("aria-errormessage",c?`${s}_errors`:null),f("aria-readonly",u||l?"true":null)})}}const se=(e,t,i=!1,s=void 0,a=!0)=>a?t.label?d.html`<label
|
|
37
37
|
class="gui-label"
|
|
38
38
|
for=${e}
|
|
39
39
|
data-cy=${`${e}_label`}
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
</div>
|
|
189
189
|
`)}
|
|
190
190
|
</div>
|
|
191
|
-
`}chunkYears(t){const i=[];for(let s=0;s<t.length;s+=4)i.push(t.slice(s,s+4));return i}toggleYearSelector(){this._yearSelectorOpen=!this._yearSelectorOpen,this._yearSelectorOpen&&this.updateComplete.then(()=>{this.scrollToCurrentYear(),this.focusCurrentYearButton()})}selectYear(t){this.querySelector(".gui-calendar__year-selector")?.focus();const s=this._currentDate;this._currentDate=new Date(t,s.getMonth(),1),this._yearSelectorOpen=!1,this.updateComplete.then(()=>{this.querySelector('.gui-calendar__day-button[tabindex="0"]')?.focus()})}scrollToCurrentYear(){const t=this.querySelector(".gui-calendar__year-grid"),i=this.querySelector(".gui-calendar__year-button.current");if(t&&i){const s=t.getBoundingClientRect(),a=i.getBoundingClientRect(),n=t.scrollTop+(a.top-s.top)-s.height/2+a.height/2;t.scrollTop=Math.max(0,n)}}focusCurrentYearButton(){this.querySelector(".gui-calendar__year-button.current")?.focus()}handleYearKeydown(t){const i=t.target;if(!i.classList.contains("gui-calendar__year-button"))return;const s=Array.from(this.querySelectorAll(".gui-calendar__year-button")),a=s.indexOf(i),n=window.getComputedStyle(this).direction==="rtl";let r=0;switch(t.key){case"ArrowLeft":r=n?1:-1;break;case"ArrowRight":r=n?-1:1;break;case"ArrowUp":r=-4;break;case"ArrowDown":r=4;break;case"Enter":case" ":{t.preventDefault();const u=parseInt(i.dataset.year??"",10);isNaN(u)||this.selectYear(u);return}case"Escape":{t.preventDefault(),this.querySelector(".gui-calendar__year-selector")?.focus(),this._yearSelectorOpen=!1;return}default:return}t.preventDefault();const l=a+r;l>=0&&l<s.length&&s[l].focus()}get _effectiveMinYear(){return this.minDate?new Date(this.minDate).getFullYear():1900}get _effectiveMaxYear(){return this.maxDate?new Date(this.maxDate).getFullYear():2099}get _yearList(){const t=[];for(let i=this._effectiveMinYear;i<=this._effectiveMaxYear;i++)t.push(i);return t}async handleKeydown(t,i){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)&&t.key!==" "&&t.key!=="Enter")return;const a=Array.from(this.querySelectorAll(".gui-calendar__day-button:not(.other-month)")),n=a.indexOf(t.target),r=window.getComputedStyle(this).direction==="rtl";let l=0;switch(t.key){case"ArrowLeft":l=r?1:-1;break;case"ArrowRight":l=r?-1:1;break;case"ArrowUp":l=-7;break;case"ArrowDown":l=7;break;case" ":case"Enter":t.preventDefault(),this.selectDate(i,t);return}t.preventDefault();const u=this.findNextFocusableIndex(n,l,a);let p=!1;if(u<0)if(this.canGoPrev())this.prevMonth(),p=!0;else{a.find(y=>!this.isButtonDisabled(y))?.focus();return}else if(u>=a.length)if(this.canGoNext())this.nextMonth(),p=!0;else{[...a].reverse().find(f=>!this.isButtonDisabled(f))?.focus();return}if(p){await this.updateComplete;const c=Array.from(this.querySelectorAll(".gui-calendar__day-button:not(.other-month)")),y=Array.from(this.querySelectorAll(".gui-calendar__panel"));let f;if(u<0)f=y[0].querySelectorAll(".gui-calendar__day-button:not(.other-month)").length+u;else{const C=y[y.length-1].querySelectorAll(".gui-calendar__day-button:not(.other-month)").length;f=c.length-C+(u-a.length)}if(this.isButtonDisabled(c[f])){const
|
|
191
|
+
`}chunkYears(t){const i=[];for(let s=0;s<t.length;s+=4)i.push(t.slice(s,s+4));return i}toggleYearSelector(){this._yearSelectorOpen=!this._yearSelectorOpen,this._yearSelectorOpen&&this.updateComplete.then(()=>{this.scrollToCurrentYear(),this.focusCurrentYearButton()})}selectYear(t){this.querySelector(".gui-calendar__year-selector")?.focus();const s=this._currentDate;this._currentDate=new Date(t,s.getMonth(),1),this._yearSelectorOpen=!1,this.updateComplete.then(()=>{this.querySelector('.gui-calendar__day-button[tabindex="0"]')?.focus()})}scrollToCurrentYear(){const t=this.querySelector(".gui-calendar__year-grid"),i=this.querySelector(".gui-calendar__year-button.current");if(t&&i){const s=t.getBoundingClientRect(),a=i.getBoundingClientRect(),n=t.scrollTop+(a.top-s.top)-s.height/2+a.height/2;t.scrollTop=Math.max(0,n)}}focusCurrentYearButton(){this.querySelector(".gui-calendar__year-button.current")?.focus()}handleYearKeydown(t){const i=t.target;if(!i.classList.contains("gui-calendar__year-button"))return;const s=Array.from(this.querySelectorAll(".gui-calendar__year-button")),a=s.indexOf(i),n=window.getComputedStyle(this).direction==="rtl";let r=0;switch(t.key){case"ArrowLeft":r=n?1:-1;break;case"ArrowRight":r=n?-1:1;break;case"ArrowUp":r=-4;break;case"ArrowDown":r=4;break;case"Enter":case" ":{t.preventDefault();const u=parseInt(i.dataset.year??"",10);isNaN(u)||this.selectYear(u);return}case"Escape":{t.preventDefault(),this.querySelector(".gui-calendar__year-selector")?.focus(),this._yearSelectorOpen=!1;return}default:return}t.preventDefault();const l=a+r;l>=0&&l<s.length&&s[l].focus()}get _effectiveMinYear(){return this.minDate?new Date(this.minDate).getFullYear():1900}get _effectiveMaxYear(){return this.maxDate?new Date(this.maxDate).getFullYear():2099}get _yearList(){const t=[];for(let i=this._effectiveMinYear;i<=this._effectiveMaxYear;i++)t.push(i);return t}async handleKeydown(t,i){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)&&t.key!==" "&&t.key!=="Enter")return;const a=Array.from(this.querySelectorAll(".gui-calendar__day-button:not(.other-month)")),n=a.indexOf(t.target),r=window.getComputedStyle(this).direction==="rtl";let l=0;switch(t.key){case"ArrowLeft":l=r?1:-1;break;case"ArrowRight":l=r?-1:1;break;case"ArrowUp":l=-7;break;case"ArrowDown":l=7;break;case" ":case"Enter":t.preventDefault(),this.selectDate(i,t);return}t.preventDefault();const u=this.findNextFocusableIndex(n,l,a);let p=!1;if(u<0)if(this.canGoPrev())this.prevMonth(),p=!0;else{a.find(y=>!this.isButtonDisabled(y))?.focus();return}else if(u>=a.length)if(this.canGoNext())this.nextMonth(),p=!0;else{[...a].reverse().find(f=>!this.isButtonDisabled(f))?.focus();return}if(p){await this.updateComplete;const c=Array.from(this.querySelectorAll(".gui-calendar__day-button:not(.other-month)")),y=Array.from(this.querySelectorAll(".gui-calendar__panel"));let f;if(u<0)f=y[0].querySelectorAll(".gui-calendar__day-button:not(.other-month)").length+u;else{const C=y[y.length-1].querySelectorAll(".gui-calendar__day-button:not(.other-month)").length;f=c.length-C+(u-a.length)}if(this.isButtonDisabled(c[f])){const b=this.findNextFocusableIndex(f,l,c);if(b<0||b>=c.length){const C=c.findIndex(Se=>!this.isButtonDisabled(Se));C>-1&&c[C].focus()}else c[b]?.focus()}else{const b=Math.max(0,Math.min(f,c.length-1));c[b]?.focus()}}else a[u]?.focus()}chunkDays(t){const i=[];for(let s=0;s<t.length;s+=7)i.push(t.slice(s,s+7));return i}onFocusOut(t){t.relatedTarget&&this.contains(t.relatedTarget)||(this._blurRafId!==void 0&&cancelAnimationFrame(this._blurRafId),this._blurRafId=requestAnimationFrame(()=>{this._blurRafId=void 0,this.contains(document.activeElement)||this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}))}disconnectedCallback(){super.disconnectedCallback(),this._blurRafId!==void 0&&cancelAnimationFrame(this._blurRafId)}isDisabled(t){const i=Pe(t);if(this.minDate&&i<this.minDate||this.maxDate&&i>this.maxDate)return!0;if(this.disabledRanges&&this.disabledRanges.length>0)for(const s of this.disabledRanges){const a=s.start.split("T")[0],n=s.end?s.end.split("T")[0]:a;if(i>=a&&i<=n)return!0}return!1}prevMonth(){const t=this._currentDate;this._currentDate=new Date(t.getFullYear(),t.getMonth()-1,1)}nextMonth(){const t=this._currentDate;this._currentDate=new Date(t.getFullYear(),t.getMonth()+1,1)}generateDateGrid(t=0){const i=this._currentDate.getFullYear(),s=this._currentDate.getMonth()+t,a=new Date(i,s,1),n=a.getDay(),r=Aa(this.localeId)[0],l=(n-r+7)%7,u=new Date(a);u.setDate(a.getDate()-l);const p=[];for(let c=0;c<42;c++){const y=new Date(u);y.setDate(u.getDate()+c),p.push(y)}return p}findNextFocusableIndex(t,i,s){let a=t+i;for(;a>=0&&a<s.length;){const n=s[a];if(!this.isButtonDisabled(n))return a;a+=i}return a}isButtonDisabled(t){return t?t.hasAttribute("disabled"):!0}canGoPrev(){if(!this.minDate)return!0;const t=new Date(this._currentDate.getFullYear(),this._currentDate.getMonth(),0);return Pe(t)>=this.minDate}canGoNext(){if(!this.maxDate)return!0;const t=(this.numberOfMonths??1)-1,i=new Date(this._currentDate.getFullYear(),this._currentDate.getMonth()+t+1,1);return Pe(i)<=this.maxDate}}O([o.property({type:String})],S.prototype,"uid"),O([o.property({type:String})],S.prototype,"label"),O([o.property({type:String})],S.prototype,"hint"),O([o.property({type:String,attribute:"locale-id"})],S.prototype,"localeId"),O([o.property({type:Array})],S.prototype,"errors"),O([o.property({type:Boolean})],S.prototype,"touched"),O([o.property({type:Boolean})],S.prototype,"required"),O([o.property({type:Boolean})],S.prototype,"disabled"),O([o.property({type:Boolean,attribute:"readonly"})],S.prototype,"readOnly"),O([o.property({type:String,attribute:"prev-month-icon"})],S.prototype,"prevMonthIcon"),O([o.property({type:String,attribute:"next-month-icon"})],S.prototype,"nextMonthIcon"),O([o.property({type:String,attribute:"prev-month-aria-label"})],S.prototype,"prevMonthAriaLabel"),O([o.property({type:String,attribute:"next-month-aria-label"})],S.prototype,"nextMonthAriaLabel"),O([o.property({type:String})],S.prototype,"dayFormat"),O([o.property({type:String})],S.prototype,"weekdayFormat"),O([o.property({type:String})],S.prototype,"monthFormat"),O([o.property({type:String})],S.prototype,"minDate"),O([o.property({type:String})],S.prototype,"maxDate"),O([o.property({type:Array})],S.prototype,"disabledRanges"),O([o.property({type:Number})],S.prototype,"numberOfMonths"),O([o.state()],S.prototype,"_currentDate"),O([o.state()],S.prototype,"_yearSelectorOpen");var hl=Object.defineProperty,ml=Object.getOwnPropertyDescriptor,Ra=(e,t,i,s)=>{for(var a=s>1?void 0:s?ml(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&hl(t,i,a),a};let Bt=class extends S{constructor(){super(...arguments),this.value=void 0}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.classList.add("gui-field")}willUpdate(e){if(e.has("value")&&this.value){const t=new Date(this.value);!isNaN(t.getTime())&&!Ne(t,this._currentDate,this.numberOfMonths??1)&&(this._currentDate=t)}}renderDay(e){const t={"gui-calendar__day-button":!0,today:e.isToday,selected:e.isSelected,disabled:e.isDisabled,"other-month":!e.isCurrentMonth};return d.html`
|
|
192
192
|
<button
|
|
193
193
|
type="button"
|
|
194
194
|
role="gridcell"
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
@change=${this.valueChanged}
|
|
229
229
|
@blur=${()=>this.adapter.onBlur()}
|
|
230
230
|
></gui-calendar>
|
|
231
|
-
`}valueChanged(e){const t=e?.target;this.adapter.valueChanged(t.value)}disconnectedCallback(){super.disconnectedCallback(),this.adapter.destroy(),this.subscriptions.forEach(e=>e.unsubscribe())}};ni([g.consume({context:h.formContext}),o.property({attribute:!1})],st.prototype,"formContext",2),ni([g.provide({context:h.inputContext})],st.prototype,"adapter",2),st=ni([o.customElement("gui-calendar-input")],st);const gl=Object.freeze(Object.defineProperty({__proto__:null,get CalendarElement(){return st}},Symbol.toStringTag,{value:"Module"}));function qt(e,t,i){if(!e)throw new TypeError("The element provided to the IntersectionObserver must exist");const s=new IntersectionObserver(a=>{a.forEach(n=>{t(n.isIntersecting)})},i);return s.observe(e),s}var
|
|
231
|
+
`}valueChanged(e){const t=e?.target;this.adapter.valueChanged(t.value)}disconnectedCallback(){super.disconnectedCallback(),this.adapter.destroy(),this.subscriptions.forEach(e=>e.unsubscribe())}};ni([g.consume({context:h.formContext}),o.property({attribute:!1})],st.prototype,"formContext",2),ni([g.provide({context:h.inputContext})],st.prototype,"adapter",2),st=ni([o.customElement("gui-calendar-input")],st);const gl=Object.freeze(Object.defineProperty({__proto__:null,get CalendarElement(){return st}},Symbol.toStringTag,{value:"Module"}));function qt(e,t,i){if(!e)throw new TypeError("The element provided to the IntersectionObserver must exist");const s=new IntersectionObserver(a=>{a.forEach(n=>{t(n.isIntersecting)})},i);return s.observe(e),s}var bl=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,le=(e,t,i,s)=>{for(var a=s>1?void 0:s?Dl(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&bl(t,i,a),a};let ee=class extends d.LitElement{constructor(){super(...arguments),this.items=[],this.clickable=!1,this.removable=!0,this.bubble=!0,this.tabbable=!0,this.disabled=!1,this.readOnly=!1,this.removeAriaLabel="Remove",this._isStartVisible=!0,this._isEndVisible=!0,this._showDropdown=!1,this._pendingFocusIndex=null,this.handlePillFocus=e=>{e.target.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},this.toggleDropdown=()=>{this._showDropdown?this.closeDropdown():this.openDropdown()},this.handleOutsideInteraction=e=>{const t=this.querySelector(".gui-pills__compact"),i=this.querySelector(".gui-pills__dropdown"),s=e.composedPath()[0];!t?.contains(s)&&!i?.contains(s)&&this.closeDropdown()}}createRenderRoot(){return this}updated(e){if(super.updated(e),this.setupObservers(),this._pendingFocusIndex!==null&&e.has("items")){const t=this._pendingFocusIndex;this._pendingFocusIndex=null;const i=this.items.length;if(i===0){this._showDropdown&&this.closeDropdown();return}const s=Math.max(0,Math.min(t,i-1));this.focusPillAt(s)}}disconnectedCallback(){super.disconnectedCallback(),this.disconnectObservers(),this.removeOutsideListeners()}render(){const e=this.items.length;return e===0?d.nothing:d.html`
|
|
232
232
|
${this.renderStrip()} ${this.bubble?this.renderCompact(e):d.nothing}
|
|
233
233
|
${this.bubble&&this._showDropdown?this.renderDropdown():d.nothing}
|
|
234
234
|
`}renderStrip(){return d.html`
|
|
@@ -315,7 +315,7 @@
|
|
|
315
315
|
>
|
|
316
316
|
${e.dayLabel}
|
|
317
317
|
</button>
|
|
318
|
-
`}getDaysInMonth(e){const t=new Date(this._currentDate);t.setDate(1),t.setMonth(t.getMonth()+e);const i=this.generateDateGrid(e),s=t.getMonth();let a=i.map(n=>{const r=n.getMonth()===s,l=this.isDisabled(n),u=Ia(n),{isRangeStart:p,isRangeEnd:c,isInRange:y,isSelecting:f}=this.checkDateStatus(n),
|
|
318
|
+
`}getDaysInMonth(e){const t=new Date(this._currentDate);t.setDate(1),t.setMonth(t.getMonth()+e);const i=this.generateDateGrid(e),s=t.getMonth();let a=i.map(n=>{const r=n.getMonth()===s,l=this.isDisabled(n),u=Ia(n),{isRangeStart:p,isRangeEnd:c,isInRange:y,isSelecting:f}=this.checkDateStatus(n),b=u||p,C=this._anchorDate?at(n,this._anchorDate):!1;return{date:n,dayLabel:La(this.localeId,n),isCurrentMonth:r,isToday:u,isRangeStart:p,isRangeEnd:c,isInRange:y,isDisabled:l,isOneDayRange:p&&c,isAnchor:C,isFocusable:b,isSelecting:f&&r}});for(let n=0;n<2;n++)a.slice(-7).every(l=>!l.isCurrentMonth)&&(a=a.slice(0,-7));if(e===0&&!a.some(n=>n.isFocusable)){const n=this.numberOfMonths??1,r=Ne(new Date,this._currentDate,n),l=this.value?.some(u=>Ne(new Date(u.start),this._currentDate,n))??!1;if(!r&&!l){const u=a.find(p=>p.isCurrentMonth&&!p.isDisabled);u&&(u.isFocusable=!0)}}return a}checkDateStatus(e){let t=!1,i=!1,s=!1,a=!1;if(this._isSelecting&&this._nextDate&&this._anchorDate){const n=this._nextDate.date,r=new Date(this._anchorDate);n.getTime()>r.getTime()?a=e.getTime()>=r.getTime()&&e.getTime()<=n.getTime():a=e.getTime()>=n.getTime()&&e.getTime()<=r.getTime()}if(this.value&&Array.isArray(this.value))for(const n of this.value){const r=new Date(n.start);if(at(e,r)&&(t=!0,i=!n.end),n.end){const l=new Date(n.end);at(e,l)&&(i=!0);const u=e.getTime(),p=r.getTime(),c=l.getTime();u>p&&u<c&&(s=!0)}}return{isRangeStart:t,isRangeEnd:i,isInRange:s,isSelecting:a}}selectDate(e,t=null){if(!e.isCurrentMonth||this.disabled||this.readOnly)return;const i=e.date;if(!this._anchorDate){this._isSelecting=!0,this._anchorDate=i;return}let s=this._anchorDate,a=i;i<s&&(s=i,a=this._anchorDate);const n=this.calculateValidRanges(s,a),r=[...this.value||[],...n];this._skipValueNavigation=!0,this.value=Ta(r),this._isSelecting=!1,this._nextDate=null,this._anchorDate=null,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}calculateValidRanges(e,t){const i=[],s=new Date(e),a=new Date(t);s.setHours(0,0,0,0),a.setHours(0,0,0,0);let n=null;for(;s<=a;){if(!this.isDisabled(s))n||(n=new Date(s));else if(n){const l=new Date(s);l.setDate(s.getDate()-1),i.push(si(n,l)),n=null}s.setDate(s.getDate()+1)}return n&&i.push(si(n,t)),i}onMouseOver(e){this._isSelecting&&(this._nextDate=e)}renderAboveCalendar(){if(this.hidePills)return d.nothing;const e=this.getSortedPills();if(e.length===0)return d.nothing;const t=e.map(i=>{const s=this.formatDateForDisplay(i.start),a=i.end?this.formatDateForDisplay(i.end):s,n=`${s} - ${a}`;return{key:`${i.start}-${i.end??i.start}`,label:n,ariaLabel:`${this.removePillAriaLabel??"Remove date"} ${n}`}});return d.html`
|
|
319
319
|
<gui-pills
|
|
320
320
|
class="gui-range-calendar__pills"
|
|
321
321
|
.items=${t}
|
|
@@ -550,7 +550,7 @@
|
|
|
550
550
|
</div>
|
|
551
551
|
|
|
552
552
|
${z(this.uid,e)}
|
|
553
|
-
`}handleInput(e){if(e.stopPropagation(),!this.readOnly){const t=e.target;this.displayValue=this.formatCurrency(t.valueAsNumber)
|
|
553
|
+
`}handleInput(e){if(e.stopPropagation(),!this.readOnly){const t=e.target;this.displayValue=this.formatCurrency(t.valueAsNumber);const i=t.valueAsNumber;this.dispatchEvent(new CustomEvent("input",{detail:{value:Number.isNaN(i)?void 0:i},bubbles:!0,composed:!0}))}}handleFocus(){this.displayValue=this.formatCurrency(this.value)}handleBlur(){this.displayValue=this.formatCurrency(this.value),this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}formatCurrency(e){if(e===""||e===void 0||e===null||isNaN(e))return"";try{const t=this.maximumFractionDigits??Math.max(this.minimumFractionDigits??2,2),i=Math.min(this.minimumFractionDigits??2,t);return new Intl.NumberFormat(this.localeId??"en",{style:"currency",currency:this.currency??"USD",maximumFractionDigits:t,minimumFractionDigits:i}).format(e)}catch(t){return console.warn("Invalid locale or currency",t),e.toString()}}get separators(){const e=new Intl.NumberFormat(this.localeId??"en").format(1111.1);return{group:e.replace(/1/g,"").replace(/\d/g,"")[0]||",",decimal:e.replace(/1/g,"").replace(/\d/g,"").slice(-1)||"."}}};T([o.property({type:String})],P.prototype,"uid",2),T([o.property({type:String})],P.prototype,"label",2),T([o.property({type:String,attribute:"locale-id"})],P.prototype,"localeId",2),T([o.property({type:Array})],P.prototype,"errors",2),T([o.property({type:Boolean})],P.prototype,"touched",2),T([o.property({type:Boolean})],P.prototype,"required",2),T([o.property({type:Boolean})],P.prototype,"disabled",2),T([o.property({type:Boolean,attribute:"readonly"})],P.prototype,"readOnly",2),T([o.property({type:String})],P.prototype,"value",2),T([o.property({type:String})],P.prototype,"currency",2),T([o.property({type:String})],P.prototype,"step",2),T([o.property({type:String})],P.prototype,"maximumFractionDigits",2),T([o.property({type:String})],P.prototype,"minimumFractionDigits",2),T([o.property({type:String})],P.prototype,"hint",2),T([o.property({type:String})],P.prototype,"icon",2),T([o.property({type:String})],P.prototype,"placeholder",2),T([o.property({type:String})],P.prototype,"autocomplete",2),T([o.state()],P.prototype,"displayValue",2),T([o.query("input")],P.prototype,"inputElement",2),P=T([o.customElement("gui-currency")],P),typeof customElements<"u"&&!customElements.get("gui-currency")&&customElements.define("gui-currency",P);var Ml=Object.defineProperty,Rl=Object.getOwnPropertyDescriptor,li=(e,t,i,s)=>{for(var a=s>1?void 0:s?Rl(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&Ml(t,i,a),a};let ot=class extends d.LitElement{constructor(){super(...arguments),this.adapter=new h.InputWidgetAdapter,this.subscriptions=[]}createRenderRoot(){return this}updated(e){super.updated(e);const t=this.adapter.templateData.size;t?this.style.flex=String(t):this.style.removeProperty("flex")}connectedCallback(){super.connectedCallback(),this.classList.add("gui-currency","gui-field"),this.adapter.context=this.formContext,this.adapter.init(this.widget),this.subscriptions.push(this.adapter.templateDataChanged$.subscribe(()=>this.requestUpdate()))}render(){return super.render(),d.html`
|
|
554
554
|
<gui-currency
|
|
555
555
|
.uid=${this.widget.uid}
|
|
556
556
|
.label=${this.adapter.templateData.label}
|
|
@@ -729,7 +729,7 @@
|
|
|
729
729
|
<slot></slot>
|
|
730
730
|
</div>
|
|
731
731
|
</div>
|
|
732
|
-
`}focus(e){this.viewportElement?this.viewportElement.focus(e):super.focus(e)}focusItemAtIndex(e){this._focusedIndex=e}scrollToSelectedIndex(){const e=this._items.findIndex(t=>t.value===this.value);this.scrollToIndex(e)}onKeyDown(e){if(this.disabled||this.readOnly)return;const t=this.itemHeight??40,i=Math.ceil(this._viewportHeight/t),s=this.items.length-1;let a=!1;switch(e.key){case"ArrowDown":this.setFocusedIndex(Math.min(this._focusedIndex+1,s)),a=!0;break;case"ArrowUp":this.setFocusedIndex(Math.max(this._focusedIndex-1,0)),a=!0;break;case"PageDown":this.setFocusedIndex(Math.min(this._focusedIndex+i,s)),a=!0;break;case"PageUp":this.setFocusedIndex(Math.max(this._focusedIndex-i,0)),a=!0;break;case"Home":this.setFocusedIndex(0),a=!0;break;case"End":this.setFocusedIndex(s),a=!0;break;case"Enter":case" ":{const n=this._items[this._focusedIndex];this._focusedIndex>=0&&n!=null&&this.selectItem(n),a=!0;break}}a&&e.preventDefault()}onFocus(){if(!this.value||!this.items.length)return;const e=this._items.findIndex(t=>t.value===this.value);this._focusedIndex=e,this.scrollToIndex(e),this.dispatchEvent(new CustomEvent("gui-focus-change",{detail:{index:e},bubbles:!0,composed:!0}))}onFocusOut(e){e.relatedTarget&&this.contains(e.relatedTarget)||(this._focusedIndex=-1,this.dispatchEvent(new CustomEvent("gui-focus-change",{detail:{index:-1},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0})))}scrollToIndex(e){const t=this.itemHeight??40,i=this.height??300,s=e*t,a=s+t,n=this.viewportElement.scrollTop,r=n+i;s<n?this.viewportElement.scrollTop=s:a>r&&(this.viewportElement.scrollTop=a-i)}selectItem(e){this.dispatchEvent(new CustomEvent("change",{detail:{value:e.value},bubbles:!0,composed:!0}))}setFocusedIndex(e){e<0||e>=this.items.length||(this._focusedIndex=e,this.scrollToIndex(e),this.dispatchEvent(new CustomEvent("gui-focus-change",{detail:{index:e},bubbles:!0,composed:!0})))}updateItems(){this._items=Ql(this.items,{valueField:this.valueField}),this.dispatchEvent(new CustomEvent("gui-update-items",{detail:this._items,bubbles:!0,composed:!0}))}emitRangeChange(){const{startIndex:e,endIndex:t}=this.calculateRange();this.dispatchEvent(new CustomEvent("gui-range-change",{detail:{startIndex:e,endIndex:t},bubbles:!0,composed:!0}))}measureViewport(){this.viewportElement&&(this._viewportHeight=this.viewportElement.offsetHeight,this.emitRangeChange())}onScroll(e){const t=e.target;this._scrollTop=t.scrollTop}calculateRange(){const e=this.itemHeight??40,t=this.items?.length??0,i=Math.ceil(this._viewportHeight/e),s=Math.floor(this._scrollTop/e),a=Math.max(0,s-this.buffer),n=Math.min(t,s+i+this.buffer),r=a*e;return{startIndex:a,endIndex:n,offsetY:r}}};H([o.property({type:String})],M.prototype,"uid",2),H([o.property({type:Boolean})],M.prototype,"touched",2),H([o.property({type:Boolean})],M.prototype,"required",2),H([o.property({type:Boolean})],M.prototype,"disabled",2),H([o.property({type:Boolean,attribute:"readonly"})],M.prototype,"readOnly",2),H([o.property({type:String})],M.prototype,"value",2),H([o.property({type:String})],M.prototype,"valueField",2),H([o.property({type:String})],M.prototype,"label",2),H([o.property({type:String})],M.prototype,"hint",2),H([o.property({type:Array})],M.prototype,"items",2),H([o.property({type:Number})],M.prototype,"itemHeight",2),H([o.property({type:Number})],M.prototype,"height",2),H([o.state()],M.prototype,"_items",2),H([o.state()],M.prototype,"_scrollTop",2),H([o.state()],M.prototype,"_viewportHeight",2),H([o.state()],M.prototype,"_focusedIndex",2),H([o.query(".gui-list__scroll-viewport")],M.prototype,"viewportElement",2),M=H([o.customElement("gui-list")],M),typeof customElements<"u"&&!customElements.get("gui-list")&&customElements.define("gui-list",M);var td=Object.defineProperty,id=Object.getOwnPropertyDescriptor,Zt=(e,t,i,s)=>{for(var a=s>1?void 0:s?id(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&td(t,i,a),a};let Qe=class extends d.LitElement{constructor(){super(...arguments),this.uid=void 0,this.errors=[],this.touched=!1}createRenderRoot(){return this}render(){return super.render(),d.html`${z(this.uid,{touched:this.touched,errors:this.errors})}`}};Zt([o.property({type:String})],Qe.prototype,"uid",2),Zt([o.property({type:Array})],Qe.prototype,"errors",2),Zt([o.property({type:Boolean})],Qe.prototype,"touched",2),Qe=Zt([o.customElement("gui-errors")],Qe),typeof customElements<"u"&&!customElements.get("gui-errors")&&customElements.define("gui-errors",Qe);var ad=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,
|
|
732
|
+
`}focus(e){this.viewportElement?this.viewportElement.focus(e):super.focus(e)}focusItemAtIndex(e){this._focusedIndex=e}scrollToSelectedIndex(){const e=this._items.findIndex(t=>t.value===this.value);this.scrollToIndex(e)}onKeyDown(e){if(this.disabled||this.readOnly)return;const t=this.itemHeight??40,i=Math.ceil(this._viewportHeight/t),s=this.items.length-1;let a=!1;switch(e.key){case"ArrowDown":this.setFocusedIndex(Math.min(this._focusedIndex+1,s)),a=!0;break;case"ArrowUp":this.setFocusedIndex(Math.max(this._focusedIndex-1,0)),a=!0;break;case"PageDown":this.setFocusedIndex(Math.min(this._focusedIndex+i,s)),a=!0;break;case"PageUp":this.setFocusedIndex(Math.max(this._focusedIndex-i,0)),a=!0;break;case"Home":this.setFocusedIndex(0),a=!0;break;case"End":this.setFocusedIndex(s),a=!0;break;case"Enter":case" ":{const n=this._items[this._focusedIndex];this._focusedIndex>=0&&n!=null&&this.selectItem(n),a=!0;break}}a&&e.preventDefault()}onFocus(){if(!this.value||!this.items.length)return;const e=this._items.findIndex(t=>t.value===this.value);this._focusedIndex=e,this.scrollToIndex(e),this.dispatchEvent(new CustomEvent("gui-focus-change",{detail:{index:e},bubbles:!0,composed:!0}))}onFocusOut(e){e.relatedTarget&&this.contains(e.relatedTarget)||(this._focusedIndex=-1,this.dispatchEvent(new CustomEvent("gui-focus-change",{detail:{index:-1},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0})))}scrollToIndex(e){const t=this.itemHeight??40,i=this.height??300,s=e*t,a=s+t,n=this.viewportElement.scrollTop,r=n+i;s<n?this.viewportElement.scrollTop=s:a>r&&(this.viewportElement.scrollTop=a-i)}selectItem(e){this.dispatchEvent(new CustomEvent("change",{detail:{value:e.value},bubbles:!0,composed:!0}))}setFocusedIndex(e){e<0||e>=this.items.length||(this._focusedIndex=e,this.scrollToIndex(e),this.dispatchEvent(new CustomEvent("gui-focus-change",{detail:{index:e},bubbles:!0,composed:!0})))}updateItems(){this._items=Ql(this.items,{valueField:this.valueField}),this.dispatchEvent(new CustomEvent("gui-update-items",{detail:this._items,bubbles:!0,composed:!0}))}emitRangeChange(){const{startIndex:e,endIndex:t}=this.calculateRange();this.dispatchEvent(new CustomEvent("gui-range-change",{detail:{startIndex:e,endIndex:t},bubbles:!0,composed:!0}))}measureViewport(){this.viewportElement&&(this._viewportHeight=this.viewportElement.offsetHeight,this.emitRangeChange())}onScroll(e){const t=e.target;this._scrollTop=t.scrollTop}calculateRange(){const e=this.itemHeight??40,t=this.items?.length??0,i=Math.ceil(this._viewportHeight/e),s=Math.floor(this._scrollTop/e),a=Math.max(0,s-this.buffer),n=Math.min(t,s+i+this.buffer),r=a*e;return{startIndex:a,endIndex:n,offsetY:r}}};H([o.property({type:String})],M.prototype,"uid",2),H([o.property({type:Boolean})],M.prototype,"touched",2),H([o.property({type:Boolean})],M.prototype,"required",2),H([o.property({type:Boolean})],M.prototype,"disabled",2),H([o.property({type:Boolean,attribute:"readonly"})],M.prototype,"readOnly",2),H([o.property({type:String})],M.prototype,"value",2),H([o.property({type:String})],M.prototype,"valueField",2),H([o.property({type:String})],M.prototype,"label",2),H([o.property({type:String})],M.prototype,"hint",2),H([o.property({type:Array})],M.prototype,"items",2),H([o.property({type:Number})],M.prototype,"itemHeight",2),H([o.property({type:Number})],M.prototype,"height",2),H([o.state()],M.prototype,"_items",2),H([o.state()],M.prototype,"_scrollTop",2),H([o.state()],M.prototype,"_viewportHeight",2),H([o.state()],M.prototype,"_focusedIndex",2),H([o.query(".gui-list__scroll-viewport")],M.prototype,"viewportElement",2),M=H([o.customElement("gui-list")],M),typeof customElements<"u"&&!customElements.get("gui-list")&&customElements.define("gui-list",M);var td=Object.defineProperty,id=Object.getOwnPropertyDescriptor,Zt=(e,t,i,s)=>{for(var a=s>1?void 0:s?id(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&td(t,i,a),a};let Qe=class extends d.LitElement{constructor(){super(...arguments),this.uid=void 0,this.errors=[],this.touched=!1}createRenderRoot(){return this}render(){return super.render(),d.html`${z(this.uid,{touched:this.touched,errors:this.errors})}`}};Zt([o.property({type:String})],Qe.prototype,"uid",2),Zt([o.property({type:Array})],Qe.prototype,"errors",2),Zt([o.property({type:Boolean})],Qe.prototype,"touched",2),Qe=Zt([o.customElement("gui-errors")],Qe),typeof customElements<"u"&&!customElements.get("gui-errors")&&customElements.define("gui-errors",Qe);var ad=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,be=(e,t,i,s)=>{for(var a=s>1?void 0:s?sd(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&ad(t,i,a),a};let de=class extends d.LitElement{constructor(){super(...arguments),this.adapter=new h.InputWidgetAdapter,this.debouncer=new Ei.Subject,this.subscriptions=[],this._range={start:0,end:10},this._filteredItems=[],this._listItems=[],this._focusedIndex=-1,this._isFiltering=!1,this._isListVisible=!1,this._selectedItem=void 0,this.onDocumentClick=e=>{if(!this._isListVisible)return;const t=e.composedPath(),i=this._inputRef&&t.includes(this._inputRef),s=this._listRef&&t.includes(this._listRef);!i&&!s&&(this._isListVisible=!1)}}createRenderRoot(){return this}updated(e){super.updated(e);const t=this.adapter.templateData.size;t?this.style.flex=String(t):this.style.removeProperty("flex")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.onDocumentClick),this.classList.add("gui-dropdown","gui-field"),this.adapter.context=this.formContext,this.adapter.init(this.widget),this._filteredItems=this.adapter.templateData.items,this.subscriptions.push(this.adapter.templateDataChanged$.subscribe(()=>{const e=this.adapter.templateData;e.items&&this._listItems?.length===0&&this._filteredItems?.length===0&&(this._filteredItems=e.items,this._listItems=e.items),this.requestUpdate()}),this.debouncer.pipe(Ei.debounceTime(this.adapter.templateData.inputDebounce??500)).subscribe(e=>{this._filterItems(e)}))}disconnectedCallback(){super.disconnectedCallback(),this.adapter.destroy(),this.subscriptions.forEach(e=>e.unsubscribe())}_onRangeChange(e){this._range={start:e.detail.startIndex,end:e.detail.endIndex}}_onUpdateItems(e){const t=e.detail||[];if(this._listItems=t,!this._selectedItem&&this.adapter.templateData.value!=null){const i=t.find(s=>s.value===this.adapter.templateData.value);i&&(this._selectedItem=i)}}_onFocusChange(e){this._focusedIndex=e.detail.index}_onClickItem(e,t){if(this.adapter.templateData.readonly)return;const i=this.adapter.templateData;this.adapter.valueChanged(e.value),this.adapter.filterChanged(""),this._focusedIndex=t,this._selectedItem=e,this._isFiltering=!1,this._isListVisible=!1,this._listRef&&(this._listRef.focusItemAtIndex(t),this._inputRef.value=i.valueField?e.template[i.valueField]:e.template)}_onValueChange(e){const t=e.detail.value;this.adapter.valueChanged(t),this.adapter.filterChanged(""),this._selectedItem=this._listItems.find(i=>i.value===t),this._isFiltering=!1,this._isListVisible=!1}async _onKeyDown(e){switch(e.key){case"ArrowDown":e.preventDefault(),this._isListVisible=!0,await this.updateComplete,this._listRef.focus(),this._listRef.scrollToSelectedIndex();break;case"Enter":this._inputRef.value||(this.adapter.valueChanged(null),this._isListVisible=!1,this._isFiltering=!1);break}}_onInput(e){const t=e.target.value;this.debouncer.next(t)}_filterItems(e){const t=this.adapter.templateData,i=!!this.widget.on?.filter;if(this.adapter.filterChanged(e),e&&!i){this._isFiltering=!0,this._isListVisible=!0;const s=t.searchFields??[t.labelField,t.valueField].filter(l=>!!l),a=s.length>0,r=(t.items||[]).filter(l=>{const u=Object.keys(l);if(!u.length)return l.toString().toLowerCase().includes(e.toLowerCase());const c=(y,f)=>y||l[f].toString().toLowerCase().includes(e.toLowerCase());return a?u.filter(y=>s.includes(y)).reduce(c,!1):u.reduce(c,!1)});this._filteredItems=[...r]}else this._isFiltering=!1,this._filteredItems=[...t.items]}async _onFocus(){this._isListVisible=!0,await this.updateComplete,this._listRef.scrollToSelectedIndex()}_onFocusOutInput(e){const t=e.relatedTarget;t&&this.contains(t)||(this.adapter.onBlur(),this._isListVisible=!1,this._isFiltering=!1)}_onBlur(){this.adapter.onBlur(),this._isListVisible=!1,this._isFiltering=!1}render(){const e=this.adapter.templateData,t=e.touched&&e.errors&&e.errors.length>0,i=this._listItems.slice(this._range.start,this._range.end),s=this.adapter.getItemRenderer(e.itemRenderer,Fa),n=this._selectedItem?.template!==null&&typeof this._selectedItem?.template=="object"?e.labelField??"label":null,r=n?this._selectedItem?.template[n]:this._selectedItem?.template,l=!!this.widget.on?.filter;return d.html`
|
|
733
733
|
<gui-label
|
|
734
734
|
.targetElement=${[this._listRef,this._inputRef]}
|
|
735
735
|
.uid=${this.widget.uid}
|
|
@@ -787,7 +787,7 @@
|
|
|
787
787
|
@blur=${this._onBlur}
|
|
788
788
|
@change=${this._onValueChange}
|
|
789
789
|
>
|
|
790
|
-
${i.map((u,p)=>{const c=this._range.start+p,y=e.value===u.value,f=this._focusedIndex===c,
|
|
790
|
+
${i.map((u,p)=>{const c=this._range.start+p,y=e.value===u.value,f=this._focusedIndex===c,b=e.labelField??"label",Se=u.template!==null&&typeof u.template=="object"&&b&&!e.itemRenderer?u.template[b]:u.template;return d.html`
|
|
791
791
|
<div
|
|
792
792
|
role="option"
|
|
793
793
|
tabindex="-1"
|
|
@@ -808,7 +808,7 @@
|
|
|
808
808
|
.errors=${e.errors}
|
|
809
809
|
.touched=${e.touched}
|
|
810
810
|
></gui-errors>`:d.nothing}
|
|
811
|
-
`}};
|
|
811
|
+
`}};be([g.consume({context:h.formContext}),o.property({attribute:!1})],de.prototype,"formContext",2),be([g.provide({context:h.inputContext})],de.prototype,"adapter",2),be([o.state()],de.prototype,"_range",2),be([o.state()],de.prototype,"_filteredItems",2),be([o.state()],de.prototype,"_listItems",2),be([o.state()],de.prototype,"_focusedIndex",2),be([o.state()],de.prototype,"_isFiltering",2),be([o.state()],de.prototype,"_isListVisible",2),be([o.state()],de.prototype,"_selectedItem",2),be([o.query("input")],de.prototype,"_inputRef",2),be([o.query("gui-list")],de.prototype,"_listRef",2),de=be([o.customElement("gui-dropdown-input")],de);const nd=Object.freeze(Object.defineProperty({__proto__:null,get DropdownElement(){return de}},Symbol.toStringTag,{value:"Module"}));var rd=Object.defineProperty,od=Object.getOwnPropertyDescriptor,Ze=(e,t,i,s)=>{for(var a=s>1?void 0:s?od(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&rd(t,i,a),a};let Ae=class extends d.LitElement{constructor(){super(...arguments),this.adapter=new h.InputWidgetAdapter,this.subscriptions=[],this._range={start:0,end:10},this._listItems=[],this._focusedIndex=-1}createRenderRoot(){return this}updated(e){super.updated(e);const t=this.adapter.templateData.size;t?this.style.flex=String(t):this.style.removeProperty("flex")}connectedCallback(){super.connectedCallback(),this.classList.add("gui-list","gui-field"),this.adapter.context=this.formContext,this.adapter.init(this.widget),this.subscriptions.push(this.adapter.templateDataChanged$.subscribe(()=>{const e=this.adapter.templateData;e.items&&this._listItems.length===0&&(this._listItems=e.items),this.requestUpdate()}))}disconnectedCallback(){super.disconnectedCallback(),this.adapter.destroy(),this.subscriptions.forEach(e=>e.unsubscribe())}render(){const e=this.adapter.templateData,t=e.touched&&e.errors&&e.errors.length>0,i=this._listItems.slice(this._range.start,this._range.end),s=this.adapter.getItemRenderer(e.itemRenderer,Fa);return d.html`
|
|
812
812
|
<gui-label
|
|
813
813
|
.targetElement=${this._guiListRef}
|
|
814
814
|
.uid=${this.widget.uid}
|
|
@@ -862,7 +862,7 @@
|
|
|
862
862
|
.errors=${e.errors}
|
|
863
863
|
.touched=${e.touched}
|
|
864
864
|
></gui-errors>`:d.nothing}
|
|
865
|
-
`}_onRangeChange(e){this._range={start:e.detail.startIndex,end:e.detail.endIndex}}_onUpdateItems(e){this._listItems=e.detail||[]}_onFocusChange(e){this._focusedIndex=e.detail.index}_onClickItem(e,t){this.adapter.templateData.disabled||(this.adapter.valueChanged(e.value),this._focusedIndex=t,this._guiListRef&&typeof this._guiListRef.focusItemAtIndex=="function"&&this._guiListRef.focusItemAtIndex(t))}_valueChanged(e){this.adapter.templateData.readonly||this.adapter.valueChanged(e.detail.value)}};Ze([g.consume({context:h.formContext}),o.property({attribute:!1})],Ae.prototype,"formContext",2),Ze([g.provide({context:h.inputContext})],Ae.prototype,"adapter",2),Ze([o.state()],Ae.prototype,"_range",2),Ze([o.state()],Ae.prototype,"_listItems",2),Ze([o.state()],Ae.prototype,"_focusedIndex",2),Ze([o.query("gui-list")],Ae.prototype,"_guiListRef",2),Ae=Ze([o.customElement("gui-list-input")],Ae);const ld=Object.freeze(Object.defineProperty({__proto__:null,get ListElement(){return Ae}},Symbol.toStringTag,{value:"Module"}));var dd=Object.defineProperty,ud=Object.getOwnPropertyDescriptor,ui=(e,t,i,s)=>{for(var a=s>1?void 0:s?ud(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&dd(t,i,a),a};let dt=class extends d.LitElement{constructor(){super(...arguments),this.md=void 0,this.dependencies=void 0}createRenderRoot(){return this}render(){return d.html`${Va.unsafeHTML(this.dependencies?.markdown?.parse(this.md??""))}`}};ui([o.property({type:String})],dt.prototype,"md",2),ui([o.property({type:Object})],dt.prototype,"dependencies",2),dt=ui([o.customElement("gui-markdown-text")],dt),typeof customElements<"u"&&!customElements.get("gui-markdown-text")&&customElements.define("gui-markdown-text",dt);var pd=Object.defineProperty,cd=Object.getOwnPropertyDescriptor,w=(e,t,i,s)=>{for(var a=s>1?void 0:s?cd(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&pd(t,i,a),a};let
|
|
865
|
+
`}_onRangeChange(e){this._range={start:e.detail.startIndex,end:e.detail.endIndex}}_onUpdateItems(e){this._listItems=e.detail||[]}_onFocusChange(e){this._focusedIndex=e.detail.index}_onClickItem(e,t){this.adapter.templateData.disabled||(this.adapter.valueChanged(e.value),this._focusedIndex=t,this._guiListRef&&typeof this._guiListRef.focusItemAtIndex=="function"&&this._guiListRef.focusItemAtIndex(t))}_valueChanged(e){this.adapter.templateData.readonly||this.adapter.valueChanged(e.detail.value)}};Ze([g.consume({context:h.formContext}),o.property({attribute:!1})],Ae.prototype,"formContext",2),Ze([g.provide({context:h.inputContext})],Ae.prototype,"adapter",2),Ze([o.state()],Ae.prototype,"_range",2),Ze([o.state()],Ae.prototype,"_listItems",2),Ze([o.state()],Ae.prototype,"_focusedIndex",2),Ze([o.query("gui-list")],Ae.prototype,"_guiListRef",2),Ae=Ze([o.customElement("gui-list-input")],Ae);const ld=Object.freeze(Object.defineProperty({__proto__:null,get ListElement(){return Ae}},Symbol.toStringTag,{value:"Module"}));var dd=Object.defineProperty,ud=Object.getOwnPropertyDescriptor,ui=(e,t,i,s)=>{for(var a=s>1?void 0:s?ud(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&dd(t,i,a),a};let dt=class extends d.LitElement{constructor(){super(...arguments),this.md=void 0,this.dependencies=void 0}createRenderRoot(){return this}render(){return d.html`${Va.unsafeHTML(this.dependencies?.markdown?.parse(this.md??""))}`}};ui([o.property({type:String})],dt.prototype,"md",2),ui([o.property({type:Object})],dt.prototype,"dependencies",2),dt=ui([o.customElement("gui-markdown-text")],dt),typeof customElements<"u"&&!customElements.get("gui-markdown-text")&&customElements.define("gui-markdown-text",dt);var pd=Object.defineProperty,cd=Object.getOwnPropertyDescriptor,w=(e,t,i,s)=>{for(var a=s>1?void 0:s?cd(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&pd(t,i,a),a};let D=class extends d.LitElement{constructor(){super(...arguments),this.uid=void 0,this.label=void 0,this.localeId="en",this.errors=[],this.touched=!1,this.required=!1,this.disabled=!1,this.readOnly=!1,this.value=void 0,this.hint=void 0,this.tools=void 0,this.placeholder=void 0,this.autocomplete=void 0,this.minimumHeight=void 0,this.autoGrow=!1,this.defaultOpenPreview=void 0,this.maxLength=void 0,this.headingTitle=void 0,this.boldTitle=void 0,this.italicTitle=void 0,this.strikethroughTitle=void 0,this.quoteTitle=void 0,this.linkTitle=void 0,this.orderedListTitle=void 0,this.unorderedListTitle=void 0,this.splitViewTitle=void 0,this.dependencies=void 0,this.splitViewActive=!1,this.activeFormats={},this.splitViewInitialized=!1,this.ariaController=new ae(this,{getTargets:()=>this.querySelectorAll(`textarea[id="${this.uid}"]`),getState:()=>({uid:this.uid,templateData:{hint:this.hint,errors:this.errors,readonly:this.readOnly,disabled:this.disabled,touched:this.touched}})})}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.classList.add("gui-field")}updated(){this.recalculateAutoGrow()}willUpdate(e){!this.splitViewInitialized&&e.has("defaultOpenPreview")&&(this.splitViewActive=!!this.defaultOpenPreview,this.splitViewInitialized=!0)}render(){super.render();const e={uid:this.uid,label:this.label,errors:this.errors,touched:this.touched,required:this.required,disabled:this.disabled,readonly:this.readOnly,value:this.value,hint:this.hint,placeholder:this.placeholder,counterMode:this.counterMode??"remaining",minimumHeight:this.minimumHeight??120,autoGrow:this.autoGrow??!1,defaultOpenPreview:this.defaultOpenPreview??!1,maxLength:this.maxLength,dependencies:this.dependencies},t={"gui-widget-input":!0,"gui-markdown--icon":!1};let i=d.html``;if(e.counterMode&&e.maxLength){const a={"gui-markdown--counter":!0,"gui-markdown--counter__error":(e.value?.length??0)>e.maxLength},n=e.counterMode==="current"?d.html`<span>${e.value?.length??0}</span>`:d.html`<span>${e.maxLength-(e.value?.length??0)}</span>`;i=d.html`<div class=${$.classMap(a)}>
|
|
866
866
|
${n}
|
|
867
867
|
<span> / ${e.maxLength}</span>
|
|
868
868
|
</div>`}const s={"min-height":`${e.minimumHeight}px`};return d.html`
|
|
@@ -1051,7 +1051,7 @@
|
|
|
1051
1051
|
<path d="M140,24V232a12,12,0,0,1-24,0V24a12,12,0,0,1,24,0Z"></path>
|
|
1052
1052
|
</svg>
|
|
1053
1053
|
</span>
|
|
1054
|
-
</li>`;default:return d.nothing}}toolbarBtnClass(e){return $.classMap({"gui-markdown__toolbar-button":!0,"gui-markdown__toolbar-button--active":!!e&&!!this.activeFormats[e]})}detectFormats(){const e=this.querySelector(`textarea[id="${this.uid}"]`);if(!e)return;const{selectionStart:t,value:i}=e,s=i.lastIndexOf(`
|
|
1054
|
+
</li>`;default:return d.nothing}}toolbarBtnClass(e){return $.classMap({"gui-markdown__toolbar-button":!0,"gui-markdown__toolbar-button--disabled":this.disabled===!0||this.readOnly===!0,"gui-markdown__toolbar-button--active":!!e&&!!this.activeFormats[e]})}detectFormats(){const e=this.querySelector(`textarea[id="${this.uid}"]`);if(!e)return;const{selectionStart:t,value:i}=e,s=i.lastIndexOf(`
|
|
1055
1055
|
`,t-1)+1,a=i.indexOf(`
|
|
1056
1056
|
`,t),n=i.substring(s,a===-1?i.length:a);this.activeFormats={heading:/^#{1,6}\s/.test(n),bold:this.isInsideInlineFormat(i,t,"**"),italic:this.isInsideInlineFormat(i,t,"_"),strikethrough:this.isInsideInlineFormat(i,t,"~~"),quote:n.startsWith("> "),link:this.isInsideLink(i,t),orderedList:/^\d+\.\s/.test(n),unorderedList:n.startsWith("- ")}}isInsideInlineFormat(e,t,i){const s=e.lastIndexOf(`
|
|
1057
1057
|
`,t-1)+1,a=e.indexOf(`
|
|
@@ -1059,7 +1059,7 @@
|
|
|
1059
1059
|
`,t-1)+1,s=e.indexOf(`
|
|
1060
1060
|
`,t),a=e.substring(i,s===-1?e.length:s),n=t-i,r=/\[[^\]]*\]\([^)]*\)/g;let l;for(;(l=r.exec(a))!==null;)if(n>=l.index&&n<=l.index+l[0].length)return!0;return!1}applyFormat(e,t="",i=""){return()=>{const s=this.querySelector(`textarea[id="${this.uid}"]`);if(s){if(i&&this.activeFormats[i])this.removeFormat(s,e,t,i);else{const{selectionStart:a,selectionEnd:n,value:r}=s,l=r.substring(a,n),u=r.substring(0,a),p=r.substring(n);s.value=`${u}${e}${l}${t}${p}`,s.selectionStart=a+e.length,s.selectionEnd=a+e.length+l.length}s.focus(),s.dispatchEvent(new Event("input",{bubbles:!0})),this.detectFormats()}}}removeFormat(e,t,i,s){const{selectionStart:a,value:n}=e,r=n.lastIndexOf(`
|
|
1061
1061
|
`,a-1)+1,l=n.indexOf(`
|
|
1062
|
-
`,a),u=n.substring(r,l===-1?n.length:l);if(i)if(s==="link"){const p=a-r,c=/\[([^\]]*)\]\([^)]*\)/g;let y;for(;(y=c.exec(u))!==null;)if(p>=y.index&&p<=y.index+y[0].length){const f=y[1],
|
|
1062
|
+
`,a),u=n.substring(r,l===-1?n.length:l);if(i)if(s==="link"){const p=a-r,c=/\[([^\]]*)\]\([^)]*\)/g;let y;for(;(y=c.exec(u))!==null;)if(p>=y.index&&p<=y.index+y[0].length){const f=y[1],b=r+y.index,C=b+y[0].length;e.value=`${n.substring(0,b)}${f}${n.substring(C)}`,e.selectionStart=b,e.selectionEnd=b+f.length;break}}else{const p=a-r;let c=0;for(;c<u.length;){const y=u.indexOf(t,c);if(y===-1)break;const f=u.indexOf(i,y+t.length);if(f===-1)break;if(p>=y&&p<=f+i.length){const b=u.substring(y+t.length,f),C=r+y,Se=r+f+i.length;e.value=`${n.substring(0,C)}${b}${n.substring(Se)}`,e.selectionStart=C,e.selectionEnd=C+b.length;break}c=f+i.length}}else{let p=t;if(s==="heading"){const b=u.match(/^#{1,6}\s/);b&&(p=b[0])}else if(s==="orderedList"){const b=u.match(/^\d+\.\s/);b&&(p=b[0])}const c=n.substring(0,r),y=u.substring(p.length),f=n.substring(l===-1?n.length:l);e.value=`${c}${y}${f}`,e.selectionStart=Math.max(r,a-p.length),e.selectionEnd=e.selectionStart}}valueChanged(e){if(e.stopPropagation(),!this.readOnly){const t=e.target;this.dispatchEvent(new CustomEvent("input",{detail:{value:t.value},bubbles:!0,composed:!0}))}}onBlur(){this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}};w([o.property({type:String})],D.prototype,"uid",2),w([o.property({type:String})],D.prototype,"label",2),w([o.property({type:String,attribute:"locale-id"})],D.prototype,"localeId",2),w([o.property({type:Array})],D.prototype,"errors",2),w([o.property({type:Boolean})],D.prototype,"touched",2),w([o.property({type:Boolean})],D.prototype,"required",2),w([o.property({type:Boolean})],D.prototype,"disabled",2),w([o.property({type:Boolean,attribute:"readonly"})],D.prototype,"readOnly",2),w([o.property({type:String})],D.prototype,"value",2),w([o.property({type:String})],D.prototype,"hint",2),w([o.property({type:Array})],D.prototype,"tools",2),w([o.property({type:String})],D.prototype,"placeholder",2),w([o.property({type:String})],D.prototype,"autocomplete",2),w([o.property({type:String,attribute:"countermode"})],D.prototype,"counterMode",2),w([o.property({type:Number,attribute:"minimumheight"})],D.prototype,"minimumHeight",2),w([o.property({type:Boolean,attribute:"autogrow"})],D.prototype,"autoGrow",2),w([o.property({type:Boolean,attribute:"defaultopenpreview"})],D.prototype,"defaultOpenPreview",2),w([o.property({type:Number,attribute:"maxlength"})],D.prototype,"maxLength",2),w([o.property({type:String})],D.prototype,"headingTitle",2),w([o.property({type:String})],D.prototype,"boldTitle",2),w([o.property({type:String})],D.prototype,"italicTitle",2),w([o.property({type:String})],D.prototype,"strikethroughTitle",2),w([o.property({type:String})],D.prototype,"quoteTitle",2),w([o.property({type:String})],D.prototype,"linkTitle",2),w([o.property({type:String})],D.prototype,"orderedListTitle",2),w([o.property({type:String})],D.prototype,"unorderedListTitle",2),w([o.property({type:String})],D.prototype,"splitViewTitle",2),w([o.property({type:Object})],D.prototype,"dependencies",2),w([o.state()],D.prototype,"splitViewActive",2),w([o.state()],D.prototype,"activeFormats",2),D=w([o.customElement("gui-markdown")],D),typeof customElements<"u"&&!customElements.get("gui-markdown")&&customElements.define("gui-markdown",D);var hd=Object.defineProperty,md=Object.getOwnPropertyDescriptor,pi=(e,t,i,s)=>{for(var a=s>1?void 0:s?md(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&hd(t,i,a),a};let ut=class extends d.LitElement{constructor(){super(...arguments),this.adapter=new h.InputWidgetAdapter,this.subscriptions=[]}createRenderRoot(){return this}updated(e){super.updated(e);const t=this.adapter.templateData.size;t?this.style.flex=String(t):this.style.removeProperty("flex")}connectedCallback(){super.connectedCallback(),this.classList.add("gui-markdown","gui-field"),this.adapter.context=this.formContext,this.adapter.init(this.widget),this.subscriptions.push(this.adapter.templateDataChanged$.subscribe(()=>this.requestUpdate()))}render(){return super.render(),d.html`
|
|
1063
1063
|
<gui-markdown
|
|
1064
1064
|
.uid=${this.widget.uid}
|
|
1065
1065
|
.label=${this.adapter.templateData.label}
|
|
@@ -1115,7 +1115,7 @@
|
|
|
1115
1115
|
</div>
|
|
1116
1116
|
|
|
1117
1117
|
${z(this.uid,e)}
|
|
1118
|
-
`}valueChanged(e){if(e.stopPropagation(),!this.readOnly){const t=e.target;this.dispatchEvent(new CustomEvent("input",{detail:{value:t.value},bubbles:!0,composed:!0}))}}onBlur(){this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}};B([o.property({type:String})],A.prototype,"uid",2),B([o.property({type:String})],A.prototype,"label",2),B([o.property({type:String,attribute:"locale-id"})],A.prototype,"localeId",2),B([o.property({type:Array})],A.prototype,"errors",2),B([o.property({type:Boolean})],A.prototype,"touched",2),B([o.property({type:Boolean})],A.prototype,"required",2),B([o.property({type:Boolean})],A.prototype,"disabled",2),B([o.property({type:Boolean,attribute:"readonly"})],A.prototype,"readOnly",2),B([o.property({type:String})],A.prototype,"value",2),B([o.property({type:String})],A.prototype,"hint",2),B([o.property({type:String})],A.prototype,"icon",2),B([o.property({type:String})],A.prototype,"placeholder",2),B([o.property({type:String})],A.prototype,"autocomplete",2),B([o.property({type:String})],A.prototype,"showPasswordIcon",2),B([o.property({type:String})],A.prototype,"hidePasswordIcon",2),B([o.property({type:String})],A.prototype,"showPasswordLabel",2),B([o.property({type:String})],A.prototype,"hidePasswordLabel",2),B([o.state()],A.prototype,"showPassword",2),A=B([o.customElement("gui-password")],A),typeof customElements<"u"&&!customElements.get("gui-password")&&customElements.define("gui-password",A);var
|
|
1118
|
+
`}valueChanged(e){if(e.stopPropagation(),!this.readOnly){const t=e.target;this.dispatchEvent(new CustomEvent("input",{detail:{value:t.value},bubbles:!0,composed:!0}))}}onBlur(){this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}};B([o.property({type:String})],A.prototype,"uid",2),B([o.property({type:String})],A.prototype,"label",2),B([o.property({type:String,attribute:"locale-id"})],A.prototype,"localeId",2),B([o.property({type:Array})],A.prototype,"errors",2),B([o.property({type:Boolean})],A.prototype,"touched",2),B([o.property({type:Boolean})],A.prototype,"required",2),B([o.property({type:Boolean})],A.prototype,"disabled",2),B([o.property({type:Boolean,attribute:"readonly"})],A.prototype,"readOnly",2),B([o.property({type:String})],A.prototype,"value",2),B([o.property({type:String})],A.prototype,"hint",2),B([o.property({type:String})],A.prototype,"icon",2),B([o.property({type:String})],A.prototype,"placeholder",2),B([o.property({type:String})],A.prototype,"autocomplete",2),B([o.property({type:String})],A.prototype,"showPasswordIcon",2),B([o.property({type:String})],A.prototype,"hidePasswordIcon",2),B([o.property({type:String})],A.prototype,"showPasswordLabel",2),B([o.property({type:String})],A.prototype,"hidePasswordLabel",2),B([o.state()],A.prototype,"showPassword",2),A=B([o.customElement("gui-password")],A),typeof customElements<"u"&&!customElements.get("gui-password")&&customElements.define("gui-password",A);var bd=Object.defineProperty,Dd=Object.getOwnPropertyDescriptor,ci=(e,t,i,s)=>{for(var a=s>1?void 0:s?Dd(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&bd(t,i,a),a};let pt=class extends d.LitElement{constructor(){super(...arguments),this.adapter=new h.InputWidgetAdapter,this.subscriptions=[]}createRenderRoot(){return this}updated(e){super.updated(e);const t=this.adapter.templateData.size;t?this.style.flex=String(t):this.style.removeProperty("flex")}connectedCallback(){super.connectedCallback(),this.classList.add("gui-password","gui-field"),this.adapter.context=this.formContext,this.adapter.init(this.widget),this.subscriptions.push(this.adapter.templateDataChanged$.subscribe(()=>this.requestUpdate()))}render(){return super.render(),d.html`
|
|
1119
1119
|
<gui-password
|
|
1120
1120
|
.uid=${this.widget.uid}
|
|
1121
1121
|
.label=${this.adapter.templateData.label}
|
|
@@ -1192,6 +1192,7 @@
|
|
|
1192
1192
|
?readonly=${e.readonly}
|
|
1193
1193
|
placeholder=${e.placeholder||d.nothing}
|
|
1194
1194
|
autocomplete=${this.autocomplete||d.nothing}
|
|
1195
|
+
.value=${this.value||""}
|
|
1195
1196
|
@input=${this.valueChanged}
|
|
1196
1197
|
@blur=${this.onBlur}
|
|
1197
1198
|
></textarea>
|
|
@@ -1221,7 +1222,7 @@
|
|
|
1221
1222
|
@input=${this.valueChanged}
|
|
1222
1223
|
@blur=${()=>this.adapter.onBlur()}
|
|
1223
1224
|
></gui-textarea>
|
|
1224
|
-
`}valueChanged(e){const t=e.detail.value;this.adapter.valueChanged(t)}disconnectedCallback(){super.disconnectedCallback(),this.adapter.destroy(),this.subscriptions.forEach(e=>e.unsubscribe())}};mi([g.consume({context:h.formContext}),o.property({attribute:!1})],ht.prototype,"formContext",2),mi([g.provide({context:h.inputContext})],ht.prototype,"adapter",2),ht=mi([o.customElement("gui-textarea-input")],ht);const Pd=Object.freeze(Object.defineProperty({__proto__:null,get TextareaElement(){return ht}},Symbol.toStringTag,{value:"Module"}));var Id=Object.defineProperty,Ad=Object.getOwnPropertyDescriptor,
|
|
1225
|
+
`}valueChanged(e){const t=e.detail.value;this.adapter.valueChanged(t)}disconnectedCallback(){super.disconnectedCallback(),this.adapter.destroy(),this.subscriptions.forEach(e=>e.unsubscribe())}};mi([g.consume({context:h.formContext}),o.property({attribute:!1})],ht.prototype,"formContext",2),mi([g.provide({context:h.inputContext})],ht.prototype,"adapter",2),ht=mi([o.customElement("gui-textarea-input")],ht);const Pd=Object.freeze(Object.defineProperty({__proto__:null,get TextareaElement(){return ht}},Symbol.toStringTag,{value:"Module"}));var Id=Object.defineProperty,Ad=Object.getOwnPropertyDescriptor,De=(e,t,i,s)=>{for(var a=s>1?void 0:s?Ad(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&Id(t,i,a),a};let pe=class extends d.LitElement{constructor(){super(...arguments),this.uid=void 0,this.label=void 0,this.localeId="en",this.errors=[],this.touched=!1,this.required=!1,this.disabled=!1,this.readOnly=!1,this.value=void 0,this.hint=void 0,this.togglePosition="left",this.ariaController=new ae(this,{getTargets:()=>this.querySelectorAll('span[role="presentation"]'),getState:()=>({uid:this.uid,templateData:{hint:this.hint,errors:this.errors,touched:this.touched,readonly:!1,disabled:!1}})})}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.classList.add("gui-field")}render(){super.render();const e={uid:this.uid,label:this.label,hint:this.hint,errors:this.errors,touched:this.touched,required:this.required,disabled:this.disabled,readonly:this.readOnly,value:this.value,togglePosition:this.togglePosition};return e.togglePosition==="right"?this.classList.add("gui-toggle--right"):this.classList.contains("gui-toggle--right")&&this.classList.remove("gui-toggle--right"),d.html`
|
|
1225
1226
|
<label
|
|
1226
1227
|
class="gui-label"
|
|
1227
1228
|
for=${this.uid}
|
|
@@ -1252,7 +1253,7 @@
|
|
|
1252
1253
|
<div class="gui-widget-hint" id=${`${e.uid}_hint`}>
|
|
1253
1254
|
${e.hint??d.nothing} ${z(this.uid,e)}
|
|
1254
1255
|
</div>
|
|
1255
|
-
`}valueChanged(e){if(e?.stopPropagation(),!this.readOnly){const t=e?.target;this.dispatchEvent(new CustomEvent("change",{detail:{value:t.checked},bubbles:!0,composed:!0}))}}onBlur(){this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}};
|
|
1256
|
+
`}valueChanged(e){if(e?.stopPropagation(),!this.readOnly){const t=e?.target;this.dispatchEvent(new CustomEvent("change",{detail:{value:t.checked},bubbles:!0,composed:!0}))}}onBlur(){this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}};De([o.property({type:String})],pe.prototype,"uid",2),De([o.property({type:String})],pe.prototype,"label",2),De([o.property({type:String,attribute:"locale-id"})],pe.prototype,"localeId",2),De([o.property({type:Array})],pe.prototype,"errors",2),De([o.property({type:Boolean})],pe.prototype,"touched",2),De([o.property({type:Boolean})],pe.prototype,"required",2),De([o.property({type:Boolean})],pe.prototype,"disabled",2),De([o.property({type:Boolean,attribute:"readonly"})],pe.prototype,"readOnly",2),De([o.property({type:String})],pe.prototype,"value",2),De([o.property({type:String})],pe.prototype,"hint",2),De([o.property({type:String})],pe.prototype,"togglePosition",2),pe=De([o.customElement("gui-toggle")],pe),typeof customElements<"u"&&!customElements.get("gui-toggle")&&customElements.define("gui-toggle",pe);var Ld=Object.defineProperty,Td=Object.getOwnPropertyDescriptor,yi=(e,t,i,s)=>{for(var a=s>1?void 0:s?Td(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&Ld(t,i,a),a};let mt=class extends d.LitElement{constructor(){super(...arguments),this.adapter=new h.InputWidgetAdapter,this.subscriptions=[]}createRenderRoot(){return this}updated(e){super.updated(e);const t=this.adapter.templateData.size;t?this.style.flex=String(t):this.style.removeProperty("flex")}connectedCallback(){super.connectedCallback(),this.classList.add("gui-toggle","gui-field"),this.adapter.context=this.formContext,this.adapter.init(this.widget),this.subscriptions.push(this.adapter.templateDataChanged$.subscribe(()=>this.requestUpdate()))}render(){return super.render(),d.html`
|
|
1256
1257
|
<gui-toggle
|
|
1257
1258
|
.uid=${this.widget.uid}
|
|
1258
1259
|
.label=${this.adapter.templateData.label}
|
|
@@ -1348,7 +1349,7 @@
|
|
|
1348
1349
|
</div>
|
|
1349
1350
|
|
|
1350
1351
|
${z(this.uid,i)}
|
|
1351
|
-
`}keyDown(e){switch(e.stopPropagation(),e.key){case"ArrowUp":e.preventDefault(),this.plus();break;case"ArrowDown":e.preventDefault(),this.minus();break}}minus(){if(!this.readOnly){const e=this.querySelector(`input[id="${this.uid}"]`),t=typeof this.step=="number"?this.step:1;let i=Number(e.valueAsNumber)||Number(e.valueAsNumber)===0?e.valueAsNumber-t:1;i=Number(this.maximum)?Math.min(i,this.maximum):i,i=Number(this.minimum)?Math.max(i,this.minimum):i,e.valueAsNumber=i,this.value=i,this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0}))}}plus(){if(!this.readOnly){const e=this.querySelector(`input[id="${this.uid}"]`),t=typeof this.step=="number"?this.step:1;let i=Number(e.valueAsNumber)||Number(e.valueAsNumber)===0?e.valueAsNumber+t:1;i=Number(this.maximum)?Math.min(i,this.maximum):i,i=Number(this.minimum)?Math.max(i,this.minimum):i,e.valueAsNumber=i,this.value=i,this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0}))}}valueChanged(e){if(e.stopPropagation(),!this.readOnly){const
|
|
1352
|
+
`}keyDown(e){switch(e.stopPropagation(),e.key){case"ArrowUp":e.preventDefault(),this.plus();break;case"ArrowDown":e.preventDefault(),this.minus();break}}minus(){if(!this.readOnly){const e=this.querySelector(`input[id="${this.uid}"]`),t=typeof this.step=="number"?this.step:1;let i=Number(e.valueAsNumber)||Number(e.valueAsNumber)===0?e.valueAsNumber-t:1;i=Number(this.maximum)?Math.min(i,this.maximum):i,i=Number(this.minimum)?Math.max(i,this.minimum):i,e.valueAsNumber=i,this.value=i,this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0}))}}plus(){if(!this.readOnly){const e=this.querySelector(`input[id="${this.uid}"]`),t=typeof this.step=="number"?this.step:1;let i=Number(e.valueAsNumber)||Number(e.valueAsNumber)===0?e.valueAsNumber+t:1;i=Number(this.maximum)?Math.min(i,this.maximum):i,i=Number(this.minimum)?Math.max(i,this.minimum):i,e.valueAsNumber=i,this.value=i,this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0}))}}valueChanged(e){if(e.stopPropagation(),!this.readOnly){const i=e.target.valueAsNumber;this.dispatchEvent(new CustomEvent("input",{detail:{value:Number.isNaN(i)?void 0:i},bubbles:!0,composed:!0}))}}onBlur(){this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}};X([o.property({type:String})],Z.prototype,"uid",2),X([o.property({type:String})],Z.prototype,"label",2),X([o.property({type:String})],Z.prototype,"hint",2),X([o.property({type:String,attribute:"locale-id"})],Z.prototype,"localeId",2),X([o.property({type:Array})],Z.prototype,"errors",2),X([o.property({type:Boolean})],Z.prototype,"touched",2),X([o.property({type:Boolean})],Z.prototype,"required",2),X([o.property({type:Boolean})],Z.prototype,"disabled",2),X([o.property({type:Boolean,attribute:"readonly"})],Z.prototype,"readOnly",2),X([o.property({type:Number})],Z.prototype,"value",2),X([o.property({type:Number})],Z.prototype,"step",2),X([o.property({type:String})],Z.prototype,"placeholder",2),X([o.property({type:String})],Z.prototype,"autocomplete",2),X([o.property({type:Number})],Z.prototype,"minimum",2),X([o.property({type:Number})],Z.prototype,"maximum",2),X([o.property({type:Number})],Z.prototype,"autoGrow",2),Z=X([o.customElement("gui-number")],Z),typeof customElements<"u"&&!customElements.get("gui-number")&&customElements.define("gui-number",Z);var Vd=Object.defineProperty,Ud=Object.getOwnPropertyDescriptor,gi=(e,t,i,s)=>{for(var a=s>1?void 0:s?Ud(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&Vd(t,i,a),a};let ft=class extends d.LitElement{constructor(){super(...arguments),this.adapter=new h.InputWidgetAdapter,this.subscriptions=[]}createRenderRoot(){return this}updated(e){super.updated(e);const t=this.adapter.templateData.size;t?this.style.flex=String(t):this.style.removeProperty("flex")}connectedCallback(){super.connectedCallback(),this.classList.add("gui-number","gui-field"),this.adapter.context=this.formContext,this.adapter.init(this.widget),this.subscriptions.push(this.adapter.templateDataChanged$.subscribe(()=>this.requestUpdate()))}render(){return super.render(),d.html`
|
|
1352
1353
|
<gui-number
|
|
1353
1354
|
.uid=${this.widget.uid}
|
|
1354
1355
|
.label=${this.adapter.templateData.label}
|
|
@@ -1399,7 +1400,7 @@
|
|
|
1399
1400
|
</div>
|
|
1400
1401
|
|
|
1401
1402
|
${z(this.uid,e)}
|
|
1402
|
-
`}valueChanged(e){if(e.stopPropagation(),!this.readOnly){const t=e.target;this.dispatchEvent(new CustomEvent("change",{detail:{value:za(t.value,this.options)},bubbles:!0,composed:!0}))}}onBlur(){this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}};ne([o.property({type:String})],J.prototype,"uid",2),ne([o.property({type:String})],J.prototype,"label",2),ne([o.property({type:String,attribute:"locale-id"})],J.prototype,"localeId",2),ne([o.property({type:Array})],J.prototype,"errors",2),ne([o.property({type:Boolean})],J.prototype,"touched",2),ne([o.property({type:Boolean})],J.prototype,"required",2),ne([o.property({type:Boolean})],J.prototype,"disabled",2),ne([o.property({type:Boolean,attribute:"readonly"})],J.prototype,"readOnly",2),ne([o.property({type:String})],J.prototype,"value",2),ne([o.property({type:String})],J.prototype,"hint",2),ne([o.property({type:Array})],J.prototype,"options",2),ne([o.property({type:String})],J.prototype,"labelField",2),ne([o.property({type:String})],J.prototype,"valueField",2),ne([o.property({type:String})],J.prototype,"direction",2),J=ne([o.customElement("gui-radiogroup")],J),typeof customElements<"u"&&!customElements.get("gui-radiogroup")&&customElements.define("gui-radiogroup",J);var Jd=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,
|
|
1403
|
+
`}valueChanged(e){if(e.stopPropagation(),!this.readOnly){const t=e.target;this.dispatchEvent(new CustomEvent("change",{detail:{value:za(t.value,this.options)},bubbles:!0,composed:!0}))}}onBlur(){this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}};ne([o.property({type:String})],J.prototype,"uid",2),ne([o.property({type:String})],J.prototype,"label",2),ne([o.property({type:String,attribute:"locale-id"})],J.prototype,"localeId",2),ne([o.property({type:Array})],J.prototype,"errors",2),ne([o.property({type:Boolean})],J.prototype,"touched",2),ne([o.property({type:Boolean})],J.prototype,"required",2),ne([o.property({type:Boolean})],J.prototype,"disabled",2),ne([o.property({type:Boolean,attribute:"readonly"})],J.prototype,"readOnly",2),ne([o.property({type:String})],J.prototype,"value",2),ne([o.property({type:String})],J.prototype,"hint",2),ne([o.property({type:Array})],J.prototype,"options",2),ne([o.property({type:String})],J.prototype,"labelField",2),ne([o.property({type:String})],J.prototype,"valueField",2),ne([o.property({type:String})],J.prototype,"direction",2),J=ne([o.customElement("gui-radiogroup")],J),typeof customElements<"u"&&!customElements.get("gui-radiogroup")&&customElements.define("gui-radiogroup",J);var Jd=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,bi=(e,t,i,s)=>{for(var a=s>1?void 0:s?Qd(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&Jd(t,i,a),a};let gt=class extends d.LitElement{constructor(){super(...arguments),this.adapter=new h.InputWidgetAdapter,this.subscriptions=[]}createRenderRoot(){return this}updated(e){super.updated(e);const t=this.adapter.templateData.size;t?this.style.flex=String(t):this.style.removeProperty("flex")}connectedCallback(){super.connectedCallback(),this.classList.add("gui-radiogroup","gui-field"),this.adapter.context=this.formContext,this.adapter.init(this.widget),this.subscriptions.push(this.adapter.templateDataChanged$.subscribe(()=>this.requestUpdate()))}render(){return super.render(),d.html`
|
|
1403
1404
|
<gui-radiogroup
|
|
1404
1405
|
.uid=${this.widget.uid}
|
|
1405
1406
|
.label=${this.adapter.templateData.label}
|
|
@@ -1417,7 +1418,7 @@
|
|
|
1417
1418
|
@change=${this.valueChanged}
|
|
1418
1419
|
@blur=${()=>this.adapter.onBlur()}
|
|
1419
1420
|
></gui-radiogroup>
|
|
1420
|
-
`}valueChanged(e){const t=e.detail.value;this.adapter.valueChanged(t)}disconnectedCallback(){super.disconnectedCallback(),this.adapter.destroy(),this.subscriptions.forEach(e=>e.unsubscribe())}};
|
|
1421
|
+
`}valueChanged(e){const t=e.detail.value;this.adapter.valueChanged(t)}disconnectedCallback(){super.disconnectedCallback(),this.adapter.destroy(),this.subscriptions.forEach(e=>e.unsubscribe())}};bi([g.consume({context:h.formContext}),o.property({attribute:!1})],gt.prototype,"formContext",2),bi([g.provide({context:h.inputContext})],gt.prototype,"adapter",2),gt=bi([o.customElement("gui-radiogroup-input")],gt);const jd=Object.freeze(Object.defineProperty({__proto__:null,get RadiogroupElement(){return gt}},Symbol.toStringTag,{value:"Module"}));var eu=Object.defineProperty,tu=Object.getOwnPropertyDescriptor,Q=(e,t,i,s)=>{for(var a=s>1?void 0:s?tu(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&eu(t,i,a),a};let V=class extends d.LitElement{constructor(){super(...arguments),this.uid=void 0,this.label=void 0,this.localeId="en",this.errors=[],this.touched=!1,this.required=!1,this.disabled=!1,this.readOnly=!1,this.value=void 0,this.hint=void 0,this.icon=void 0,this.autocomplete=void 0,this.options=[],this.placeholder=void 0,this.labelField=void 0,this.valueField=void 0,this.optionsLoading=!1,this.hasMatchingValue=!1,this.ariaController=new ae(this,{getTargets:()=>this.querySelectorAll(`select[id="${this.uid}"]`),getState:()=>({uid:this.uid,templateData:{hint:this.hint,errors:this.errors,readonly:this.readOnly,disabled:this.disabled,touched:this.touched}})})}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.classList.add("gui-field")}render(){super.render();const e={uid:this.uid,label:this.label,errors:this.errors,touched:this.touched,required:this.required,disabled:this.disabled,readonly:this.readOnly,value:this.value,hint:this.hint,icon:this.icon,autocomplete:this.autocomplete,options:this.options,placeholder:this.placeholder,labelField:this.labelField,valueField:this.valueField},t=Be("select",e);this.options=Na(this.options,{labelField:this.labelField,valueField:this.valueField}),this.hasMatchingValue=this.options?.length?this.options.find(({value:s})=>s===this.value)!==void 0:!1;const i=this.optionsLoading?d.html`<span>Loading...</span>`:d.html`
|
|
1421
1422
|
<option value="" disabled selected=${this.hasMatchingValue?d.nothing:""}>
|
|
1422
1423
|
${this.placeholder??"Select an option"}
|
|
1423
1424
|
</option>
|
|
@@ -1454,7 +1455,7 @@
|
|
|
1454
1455
|
</div>
|
|
1455
1456
|
|
|
1456
1457
|
${z(this.uid,e)}
|
|
1457
|
-
`}updated(e){e.has("value")&&!this.hasMatchingValue&&this.value&&this.dispatchEvent(new CustomEvent("inputError",{detail:{message:`Invalid selection: '${this.value}' is not a valid option.`},bubbles:!0}))}valueChanged(e){if(e.stopPropagation(),!this.readOnly){const t=e.target;this.dispatchEvent(new CustomEvent("change",{detail:{value:za(t.value,this.options)},bubbles:!0,composed:!0}))}}onBlur(){this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}};Q([o.property({type:String})],V.prototype,"uid",2),Q([o.property({type:String})],V.prototype,"label",2),Q([o.property({type:String,attribute:"locale-id"})],V.prototype,"localeId",2),Q([o.property({type:Array})],V.prototype,"errors",2),Q([o.property({type:Boolean})],V.prototype,"touched",2),Q([o.property({type:Boolean})],V.prototype,"required",2),Q([o.property({type:Boolean})],V.prototype,"disabled",2),Q([o.property({type:Boolean,attribute:"readonly"})],V.prototype,"readOnly",2),Q([o.property({type:String})],V.prototype,"value",2),Q([o.property({type:String})],V.prototype,"hint",2),Q([o.property({type:String})],V.prototype,"icon",2),Q([o.property({type:String})],V.prototype,"autocomplete",2),Q([o.property({type:Array})],V.prototype,"options",2),Q([o.property({type:String})],V.prototype,"placeholder",2),Q([o.property({type:String})],V.prototype,"labelField",2),Q([o.property({type:String})],V.prototype,"valueField",2),V=Q([o.customElement("gui-select")],V),typeof customElements<"u"&&!customElements.get("gui-select")&&customElements.define("gui-select",V);var iu=Object.defineProperty,au=Object.getOwnPropertyDescriptor,
|
|
1458
|
+
`}updated(e){e.has("value")&&!this.hasMatchingValue&&this.value&&this.dispatchEvent(new CustomEvent("inputError",{detail:{message:`Invalid selection: '${this.value}' is not a valid option.`},bubbles:!0}))}valueChanged(e){if(e.stopPropagation(),!this.readOnly){const t=e.target;this.dispatchEvent(new CustomEvent("change",{detail:{value:za(t.value,this.options)},bubbles:!0,composed:!0}))}}onBlur(){this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}};Q([o.property({type:String})],V.prototype,"uid",2),Q([o.property({type:String})],V.prototype,"label",2),Q([o.property({type:String,attribute:"locale-id"})],V.prototype,"localeId",2),Q([o.property({type:Array})],V.prototype,"errors",2),Q([o.property({type:Boolean})],V.prototype,"touched",2),Q([o.property({type:Boolean})],V.prototype,"required",2),Q([o.property({type:Boolean})],V.prototype,"disabled",2),Q([o.property({type:Boolean,attribute:"readonly"})],V.prototype,"readOnly",2),Q([o.property({type:String})],V.prototype,"value",2),Q([o.property({type:String})],V.prototype,"hint",2),Q([o.property({type:String})],V.prototype,"icon",2),Q([o.property({type:String})],V.prototype,"autocomplete",2),Q([o.property({type:Array})],V.prototype,"options",2),Q([o.property({type:String})],V.prototype,"placeholder",2),Q([o.property({type:String})],V.prototype,"labelField",2),Q([o.property({type:String})],V.prototype,"valueField",2),V=Q([o.customElement("gui-select")],V),typeof customElements<"u"&&!customElements.get("gui-select")&&customElements.define("gui-select",V);var iu=Object.defineProperty,au=Object.getOwnPropertyDescriptor,Di=(e,t,i,s)=>{for(var a=s>1?void 0:s?au(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&iu(t,i,a),a};let bt=class extends d.LitElement{constructor(){super(...arguments),this.adapter=new h.InputWidgetAdapter,this.subscriptions=[]}createRenderRoot(){return this}updated(e){super.updated(e);const t=this.adapter.templateData.size;t?this.style.flex=String(t):this.style.removeProperty("flex")}connectedCallback(){super.connectedCallback(),this.classList.add("gui-select","gui-field"),this.adapter.context=this.formContext,this.adapter.init(this.widget),this.subscriptions.push(this.adapter.templateDataChanged$.subscribe(()=>this.requestUpdate()))}render(){return super.render(),d.html`
|
|
1458
1459
|
<gui-select
|
|
1459
1460
|
.uid=${this.widget.uid}
|
|
1460
1461
|
.label=${this.adapter.templateData.label}
|
|
@@ -1475,7 +1476,7 @@
|
|
|
1475
1476
|
@inputError=${this.onInputError}
|
|
1476
1477
|
@blur=${()=>this.adapter.onBlur()}
|
|
1477
1478
|
></gui-select>
|
|
1478
|
-
`}valueChanged(e){const t=e.detail.value;this.adapter.valueChanged(t)}onInputError(e){this.adapter.injectValidationIssues([e.detail.message])}disconnectedCallback(){super.disconnectedCallback(),this.adapter.destroy(),this.subscriptions.forEach(e=>e.unsubscribe())}};
|
|
1479
|
+
`}valueChanged(e){const t=e.detail.value;this.adapter.valueChanged(t)}onInputError(e){this.adapter.injectValidationIssues([e.detail.message])}disconnectedCallback(){super.disconnectedCallback(),this.adapter.destroy(),this.subscriptions.forEach(e=>e.unsubscribe())}};Di([g.consume({context:h.formContext}),o.property({attribute:!1})],bt.prototype,"formContext",2),Di([g.provide({context:h.inputContext})],bt.prototype,"adapter",2),bt=Di([o.customElement("gui-select-input")],bt);const su=Object.freeze(Object.defineProperty({__proto__:null,get SelectElement(){return bt}},Symbol.toStringTag,{value:"Module"}));var nu=Object.defineProperty,ru=Object.getOwnPropertyDescriptor,U=(e,t,i,s)=>{for(var a=s>1?void 0:s?ru(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&nu(t,i,a),a};const ou=["Enter",",","Tab","blur"];let L=class extends d.LitElement{constructor(){super(...arguments),this.uid=void 0,this.label=void 0,this.localeId="en",this.errors=[],this.touched=!1,this.required=!1,this.disabled=!1,this.readOnly=!1,this.value=[],this.hint=void 0,this.placeholder=void 0,this.icon=void 0,this.separators=void 0,this.allowDuplicates=!0,this.trim=!0,this.limit=void 0,this.removeAriaLabel=void 0,this.removeIcon=void 0,this.ariaController=new ae(this,{getTargets:()=>this.querySelectorAll(".gui-tags-input"),getState:()=>({uid:this.uid,templateData:{hint:this.hint,errors:this.errors,readonly:this.readOnly,disabled:this.disabled,touched:this.touched}})}),this.onPillRemove=e=>{if(this.disabled||this.readOnly)return;const t=this.getValue(),i=t.findIndex((a,n)=>this.pillKey(a,n)===e.detail.key);if(i<0)return;const s=t.filter((a,n)=>n!==i);this.emitChange(s),s.length===0&&requestAnimationFrame(()=>this.focusInput())},this.onPillKeydown=e=>{e.detail.event.key==="ArrowRight"&&!this.isDropdownOpen()&&this.focusInput()}}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.classList.add("gui-field")}getSeparators(){return this.separators&&this.separators.length>0?this.separators:ou}getValue(){return Array.isArray(this.value)?this.value:[]}getRemoveAriaLabel(){return this.removeAriaLabel??"Remove tag"}pillKey(e,t){return`${t}-${e}`}render(){const e=this.getValue(),t={uid:this.uid,label:this.label,hint:this.hint,errors:this.errors,touched:this.touched,required:this.required,disabled:this.disabled,readonly:this.readOnly,placeholder:this.placeholder,icon:this.icon},i={"gui-widget-icon":!0,[this.icon]:!!this.icon},s=e.map((a,n)=>({key:this.pillKey(a,n),label:a}));return d.html`
|
|
1479
1480
|
${this.label?se(this.uid,t,!1,void 0,!1):d.nothing}
|
|
1480
1481
|
|
|
1481
1482
|
<div class="gui-widget">
|
|
@@ -1521,7 +1522,7 @@
|
|
|
1521
1522
|
${z(this.uid,t)}
|
|
1522
1523
|
</div>
|
|
1523
1524
|
`}onInputKeydown(e){if(this.disabled||this.readOnly)return;const t=e.target,i=this.getSeparators(),s=t.value,a=t.selectionStart===0&&t.selectionEnd===0;if(e.key==="Enter"&&i.includes("Enter")){e.preventDefault(),this.commitDraft(s)&&(t.value="");return}if(e.key===","&&i.includes(",")){e.preventDefault(),this.commitDraft(s)&&(t.value="");return}if(e.key==="Tab"&&i.includes("Tab")&&s.length>0){this.commitDraft(s)&&(t.value="");return}if(e.key==="Escape"){e.preventDefault(),t.value="";return}const n=this.getValue(),r=this.isCompactMode();if(e.key==="ArrowDown"&&r&&n.length>0){e.preventDefault(),this.enterPillList(0);return}if(e.key==="ArrowLeft"&&!r&&a&&n.length>0){e.preventDefault(),this.enterPillList(n.length-1);return}if(e.key==="Backspace"&&s===""&&n.length>0){e.preventDefault(),this.enterPillList(n.length-1);return}}onInputBlur(e){const t=e.target,i=this.getSeparators(),s=t.value;s.length>0&&i.includes("blur")&&!this.disabled&&!this.readOnly&&this.commitDraft(s)&&(t.value=""),this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}onPaste(e){if(this.disabled||this.readOnly)return;const t=e.clipboardData?.getData("text")??"";if(!t)return;const s=this.getSeparators().filter(c=>c!=="Enter"&&c!=="Tab"&&c!=="blur");if(s.length===0)return;const a=new RegExp(`[${s.map(c=>c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("")}
|
|
1524
|
-
]`);if(!a.test(t))return;e.preventDefault();const n=e.target instanceof HTMLInputElement?e.target:null,l=((n?.value??"")+t).split(a),u=l.slice(0,-1),p=l[l.length-1]??"";this.commitDraftBatch(u)&&n&&(n.value=p)}commitDraft(e){const t=this.trim?e.trim():e;if(t.length===0)return!1;const i=this.getValue();return this.allowDuplicates===!1&&i.includes(t)?!0:this.limit!==void 0&&i.length>=this.limit?!1:(this.emitChange([...i,t]),!0)}commitDraftBatch(e){const t=this.getValue(),i=[...t];for(const s of e){const a=this.trim?s.trim():s;if(a.length!==0&&!(this.allowDuplicates===!1&&i.includes(a))){if(this.limit!==void 0&&i.length>=this.limit)break;i.push(a)}}return i.length===t.length?!1:(this.emitChange(i),!0)}emitChange(e){this.value=e,this.dispatchEvent(new CustomEvent("change",{detail:{value:e},bubbles:!0,composed:!0}))}focusInput(){this.querySelector(`input[id="${this.uid}"]`)?.focus()}getPills(){return this.querySelector("gui-pills")}isDropdownOpen(){return!!this.getPills()?.querySelector(".gui-pills__dropdown")}isCompactMode(){const e=this.getPills();if(!e)return!1;const t=e.querySelector(".gui-pills__strip-wrapper");return t?getComputedStyle(t).display==="none":!1}enterPillList(e){const t=this.getPills();t&&(this.isCompactMode()?(t.openDropdown(),requestAnimationFrame(()=>t.focusPillAt(e))):t.focusPillAt(e))}};U([o.property({type:String})],L.prototype,"uid",2),U([o.property({type:String})],L.prototype,"label",2),U([o.property({type:String,attribute:"locale-id"})],L.prototype,"localeId",2),U([o.property({type:Array})],L.prototype,"errors",2),U([o.property({type:Boolean})],L.prototype,"touched",2),U([o.property({type:Boolean})],L.prototype,"required",2),U([o.property({type:Boolean})],L.prototype,"disabled",2),U([o.property({type:Boolean,attribute:"readonly"})],L.prototype,"readOnly",2),U([o.property({type:Array})],L.prototype,"value",2),U([o.property({type:String})],L.prototype,"hint",2),U([o.property({type:String})],L.prototype,"placeholder",2),U([o.property({type:String})],L.prototype,"icon",2),U([o.property({type:Array})],L.prototype,"separators",2),U([o.property({type:Boolean})],L.prototype,"allowDuplicates",2),U([o.property({type:Boolean})],L.prototype,"trim",2),U([o.property({type:Number})],L.prototype,"limit",2),U([o.property({type:String,attribute:"remove-aria-label"})],L.prototype,"removeAriaLabel",2),U([o.property({type:String,attribute:"remove-icon"})],L.prototype,"removeIcon",2),L=U([o.customElement("gui-tags")],L),typeof customElements<"u"&&!customElements.get("gui-tags")&&customElements.define("gui-tags",L);var lu=Object.defineProperty,du=Object.getOwnPropertyDescriptor,vi=(e,t,i,s)=>{for(var a=s>1?void 0:s?du(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&lu(t,i,a),a};let
|
|
1525
|
+
]`);if(!a.test(t))return;e.preventDefault();const n=e.target instanceof HTMLInputElement?e.target:null,l=((n?.value??"")+t).split(a),u=l.slice(0,-1),p=l[l.length-1]??"";this.commitDraftBatch(u)&&n&&(n.value=p)}commitDraft(e){const t=this.trim?e.trim():e;if(t.length===0)return!1;const i=this.getValue();return this.allowDuplicates===!1&&i.includes(t)?!0:this.limit!==void 0&&i.length>=this.limit?!1:(this.emitChange([...i,t]),!0)}commitDraftBatch(e){const t=this.getValue(),i=[...t];for(const s of e){const a=this.trim?s.trim():s;if(a.length!==0&&!(this.allowDuplicates===!1&&i.includes(a))){if(this.limit!==void 0&&i.length>=this.limit)break;i.push(a)}}return i.length===t.length?!1:(this.emitChange(i),!0)}emitChange(e){this.value=e,this.dispatchEvent(new CustomEvent("change",{detail:{value:e},bubbles:!0,composed:!0}))}focusInput(){this.querySelector(`input[id="${this.uid}"]`)?.focus()}getPills(){return this.querySelector("gui-pills")}isDropdownOpen(){return!!this.getPills()?.querySelector(".gui-pills__dropdown")}isCompactMode(){const e=this.getPills();if(!e)return!1;const t=e.querySelector(".gui-pills__strip-wrapper");return t?getComputedStyle(t).display==="none":!1}enterPillList(e){const t=this.getPills();t&&(this.isCompactMode()?(t.openDropdown(),requestAnimationFrame(()=>t.focusPillAt(e))):t.focusPillAt(e))}};U([o.property({type:String})],L.prototype,"uid",2),U([o.property({type:String})],L.prototype,"label",2),U([o.property({type:String,attribute:"locale-id"})],L.prototype,"localeId",2),U([o.property({type:Array})],L.prototype,"errors",2),U([o.property({type:Boolean})],L.prototype,"touched",2),U([o.property({type:Boolean})],L.prototype,"required",2),U([o.property({type:Boolean})],L.prototype,"disabled",2),U([o.property({type:Boolean,attribute:"readonly"})],L.prototype,"readOnly",2),U([o.property({type:Array})],L.prototype,"value",2),U([o.property({type:String})],L.prototype,"hint",2),U([o.property({type:String})],L.prototype,"placeholder",2),U([o.property({type:String})],L.prototype,"icon",2),U([o.property({type:Array})],L.prototype,"separators",2),U([o.property({type:Boolean})],L.prototype,"allowDuplicates",2),U([o.property({type:Boolean})],L.prototype,"trim",2),U([o.property({type:Number})],L.prototype,"limit",2),U([o.property({type:String,attribute:"remove-aria-label"})],L.prototype,"removeAriaLabel",2),U([o.property({type:String,attribute:"remove-icon"})],L.prototype,"removeIcon",2),L=U([o.customElement("gui-tags")],L),typeof customElements<"u"&&!customElements.get("gui-tags")&&customElements.define("gui-tags",L);var lu=Object.defineProperty,du=Object.getOwnPropertyDescriptor,vi=(e,t,i,s)=>{for(var a=s>1?void 0:s?du(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&lu(t,i,a),a};let Dt=class extends d.LitElement{constructor(){super(...arguments),this.adapter=new h.InputWidgetAdapter,this.subscriptions=[]}createRenderRoot(){return this}updated(e){super.updated(e);const t=this.adapter.templateData.size;t?this.style.flex=String(t):this.style.removeProperty("flex")}connectedCallback(){super.connectedCallback(),this.classList.add("gui-tags","gui-field"),this.adapter.context=this.formContext,this.adapter.init(this.widget),this.subscriptions.push(this.adapter.templateDataChanged$.subscribe(()=>this.requestUpdate()))}render(){return super.render(),d.html`
|
|
1525
1526
|
<gui-tags
|
|
1526
1527
|
.uid=${this.widget.uid}
|
|
1527
1528
|
.label=${this.adapter.templateData.label}
|
|
@@ -1543,7 +1544,7 @@
|
|
|
1543
1544
|
@change=${this.valueChanged}
|
|
1544
1545
|
@blur=${()=>this.adapter.onBlur()}
|
|
1545
1546
|
></gui-tags>
|
|
1546
|
-
`}valueChanged(e){const t=e.detail.value;this.adapter.valueChanged(t)}disconnectedCallback(){super.disconnectedCallback(),this.adapter.destroy(),this.subscriptions.forEach(e=>e.unsubscribe())}};vi([g.consume({context:h.formContext}),o.property({attribute:!1})],
|
|
1547
|
+
`}valueChanged(e){const t=e.detail.value;this.adapter.valueChanged(t)}disconnectedCallback(){super.disconnectedCallback(),this.adapter.destroy(),this.subscriptions.forEach(e=>e.unsubscribe())}};vi([g.consume({context:h.formContext}),o.property({attribute:!1})],Dt.prototype,"formContext",2),vi([g.provide({context:h.inputContext})],Dt.prototype,"adapter",2),Dt=vi([o.customElement("gui-tags-input")],Dt);const uu=Object.freeze(Object.defineProperty({__proto__:null,get TagsElement(){return Dt}},Symbol.toStringTag,{value:"Module"}));var pu=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,vt=(e,t,i,s)=>{for(var a=s>1?void 0:s?cu(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&pu(t,i,a),a};let hu=0;const mu=()=>hu++;let Ve=class extends d.LitElement{constructor(){super(...arguments),this.adapter=new h.InputWidgetAdapter,this.isFocused=!1,this.subscriptions=[]}createRenderRoot(){return this}updated(e){super.updated(e);const t=this.adapter.templateData.size;t?this.style.flex=String(t):this.style.removeProperty("flex")}connectedCallback(){super.connectedCallback(),this.classList.add("gui-repeater","gui-field"),this.adapter.context=this.formContext,this.adapter.init(this.widget),this.subscriptions.push(this.adapter.templateDataChanged$.subscribe(()=>this.requestUpdate()))}onFocusIn(e){e.stopPropagation(),this.isFocused=!0}onFocusOut(e){e.stopPropagation(),this.adapter.onBlur(),this.isFocused=!1}render(){const e=this.adapter.templateData,t=e.touched&&e.errors&&e.errors.length>0;return d.html`
|
|
1547
1548
|
<div
|
|
1548
1549
|
id=${this.widget.uid}
|
|
1549
1550
|
class=${`gui-repeater__main-card gui-repeater__card ${this.isFocused?"gui-repeater__card--focused":""}`}
|
|
@@ -1612,7 +1613,7 @@
|
|
|
1612
1613
|
>
|
|
1613
1614
|
${he.repeat(this.adapter.templateData.children||[],t=>t?.uid,t=>d.html`<gui-widget .widget=${t}></gui-widget>`)}
|
|
1614
1615
|
</div>
|
|
1615
|
-
`}disconnectedCallback(){super.disconnectedCallback(),this.adapter.destroy(),this.subscriptions.forEach(e=>e.unsubscribe())}};wi([g.consume({context:h.formContext}),o.property({attribute:!1})],wt.prototype,"formContext",2),wi([g.provide({context:h.layoutContext})],wt.prototype,"adapter",2),wt=wi([o.customElement("gui-flex-layout")],wt);const
|
|
1616
|
+
`}disconnectedCallback(){super.disconnectedCallback(),this.adapter.destroy(),this.subscriptions.forEach(e=>e.unsubscribe())}};wi([g.consume({context:h.formContext}),o.property({attribute:!1})],wt.prototype,"formContext",2),wi([g.provide({context:h.layoutContext})],wt.prototype,"adapter",2),wt=wi([o.customElement("gui-flex-layout")],wt);const bu=Object.freeze(Object.defineProperty({__proto__:null,get FlexElement(){return wt}},Symbol.toStringTag,{value:"Module"}));var Du=Object.defineProperty,vu=Object.getOwnPropertyDescriptor,$i=(e,t,i,s)=>{for(var a=s>1?void 0:s?vu(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&Du(t,i,a),a};let $t=class extends d.LitElement{constructor(){super(...arguments),this.adapter=new h.LayoutWidgetAdapter,this.subscriptions=[]}createRenderRoot(){return this}updated(e){super.updated(e);const t=this.adapter.templateData.size;t?this.style.flex=String(t):this.style.removeProperty("flex")}connectedCallback(){super.connectedCallback(),this.classList.add("gui-grid","gui-field"),this.adapter.context=this.formContext,this.adapter.init(this.widget),this.subscriptions.push(this.adapter.templateDataChanged$.subscribe(()=>this.requestUpdate()))}render(){const e=this.adapter.templateData.direction==="column",t=!e,i=this.adapter.templateData.autoFit??!0,s={"gui-grid__widget":!0,"gui-grid__widget--row":t,"gui-grid__widget--row--auto-fit":t&&i,"gui-grid__widget--column":e,"gui-grid__widget--align-center":this.adapter.templateData.align==="center","gui-grid__widget--align-start":this.adapter.templateData.align==="start","gui-grid__widget--align-end":this.adapter.templateData.align==="end","gui-grid__widget--align-space-between":this.adapter.templateData.align==="space-between","gui-grid__widget--align-space-around":this.adapter.templateData.align==="space-around","gui-grid__widget--align-space-evenly":this.adapter.templateData.align==="space-evenly","gui-grid__widget--align-stretch":!this.adapter.templateData.align||this.adapter.templateData.align==="stretch","gui-grid__widget--justify-center":this.adapter.templateData.justify==="center","gui-grid__widget--justify-start":this.adapter.templateData.justify==="start","gui-grid__widget--justify-end":this.adapter.templateData.justify==="end","gui-grid__widget--justify-stretch":this.adapter.templateData.justify==="stretch"},a=[];return this.adapter.templateData.columnGap!==void 0&&a.push(`column-gap: ${this.adapter.templateData.columnGap}px`),this.adapter.templateData.rowGap!==void 0&&a.push(`row-gap: ${this.adapter.templateData.rowGap}px`),d.html`
|
|
1616
1617
|
<div class=${$.classMap(s)} id=${this.widget?.uid} style=${a.join("; ")}>
|
|
1617
1618
|
${he.repeat(this.adapter.templateData.children||[],n=>n?.uid,n=>d.html`<div class="gui-grid__cell" style="grid-column: span ${n.size||1}">
|
|
1618
1619
|
<gui-widget .widget=${n}></gui-widget>
|