@farris/ui-vue 1.8.5-beta.3 → 1.8.5-beta.4
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/components/batch-editor/index.esm.js +6850 -6840
- package/components/batch-editor/index.umd.cjs +20 -20
- package/components/button/index.esm.js +6852 -6842
- package/components/button/index.umd.cjs +20 -20
- package/components/button-edit/index.esm.js +140 -140
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +46 -45
- package/components/button-group/index.umd.cjs +1 -1
- package/components/common/index.esm.js +16 -12
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +411 -411
- package/components/component/index.umd.cjs +2 -2
- package/components/data-view/index.esm.js +6500 -6487
- package/components/data-view/index.umd.cjs +21 -21
- package/components/designer-canvas/index.esm.js +269 -269
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +458 -458
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.esm.js +386 -386
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1100 -1100
- package/components/flow-canvas/index.umd.cjs +7 -7
- package/components/mapping-editor/index.esm.js +243 -243
- package/components/mapping-editor/index.umd.cjs +2 -2
- package/components/message-box/index.esm.js +82 -82
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +76 -76
- package/components/modal/index.umd.cjs +1 -1
- package/components/order/index.esm.js +139 -138
- package/components/order/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +891 -891
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +151 -149
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +947 -941
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/section/index.esm.js +121 -121
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +539 -539
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +448 -442
- package/components/tabs/index.umd.cjs +1 -1
- package/designer/button-edit/index.esm.js +97 -97
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +6483 -6470
- package/designer/data-grid/index.umd.cjs +21 -21
- package/designer/farris-designer.all.esm.js +1891 -1885
- package/designer/farris-designer.all.umd.cjs +14 -14
- package/designer/radio-group/index.esm.js +183 -183
- package/designer/radio-group/index.umd.cjs +2 -2
- package/designer/response-toolbar/index.esm.js +558 -556
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +416 -416
- package/designer/tabs/index.umd.cjs +2 -2
- package/farris.all.esm.js +9133 -9119
- package/farris.all.umd.cjs +35 -35
- package/package.json +1 -1
- package/types/common/index.d.ts +1 -0
- package/types/common/utils/attrs.d.ts +26 -0
- package/types/modal/src/composition/type.d.ts +2 -0
- package/types/tabs/src/composition/types.d.ts +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(d,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue"),require("bignumber.js"),require("lodash-es")):typeof define=="function"&&define.amd?define(["exports","vue","bignumber.js","lodash-es"],c):(d=typeof globalThis<"u"?globalThis:d||self,c(d.common={},d.Vue,d.BigNumber,d.LodashES))})(this,function(d,c,I,Yt){"use strict";var La=Object.defineProperty;var Sa=(d,c,I)=>c in d?La(d,c,{enumerable:!0,configurable:!0,writable:!0,value:I}):d[c]=I;var f=(d,c,I)=>Sa(d,typeof c!="symbol"?c+"":c,I);function ve(t){const r=t.nativeElement?t.nativeElement:t;return r.classList!==void 0&&r.classList!==null?r:null}function xe(t,r){if(r===void 0)return;const e=ve(t);e&&e.classList.remove(r)}function me(t,r){if(r===void 0)return;const e=ve(t);e&&e.classList.add(r)}const At=[{size:"sm",width:576,pattern:/\b(col-|col-sm-)\d+\b/},{size:"md",width:768,pattern:/\bcol-md-\d+\b/},{size:"lg",width:888,pattern:/\bcol-lg-\d+\b/},{size:"xl",width:1200,pattern:/\bcol-xl-\d+\b/},{size:"el",width:1690,pattern:/\bcol-el-\d+\b/}];function je(t){t&&t.resizeObserver&&(t.resizeObserver.disconnect(),t.resizeObserver=null)}function ze(t,r,e=0){const n=[];if(!r)return;const a=e||r.getBoundingClientRect().width,i=parseFloat(a),o=t.breakPoints;for(let s=0;s<o.length;s++)o[s].width<=i&&n.push(o[s].size);if(t.className.join(",")!==n.join(",")){if(t.className.length-n.length>0)for(let u=n.length;u<t.className.length;u++)xe(r,"f-area-response--"+t.className[u]);else for(let u=t.className.length;u<n.length;u++)me(r,"f-area-response--"+n[u]);t.className=[...n]}}function It(t,r){t.enable&&t.autoWidth?t.resizeObserver||(t.resizeObserver=new ResizeObserver(e=>{if(!e||e.length<1||!e[0].contentRect)return;const n=e[0].contentRect;Math.abs(parseInt(n.width+"")-t.width)>t.threshold&&(ze(t,r,n.width),t.width=parseInt(n.width+""))}),t.resizeObserver.observe(r)):je(t)}function Xe(t,r){if(t.enable)me(r,"f-area-response"),ze(t,r);else{xe(r,"f-area-response");for(let e=t.className.length;e>0;e--)me(r,"f-area-response--"+t.className[e]);t.className=[]}It(t,r)}function Ht(t){const r=[];return At.map(e=>{const n="col-"+e.size+"-";if(t.querySelectorAll('[class*="'+n+'"]').length>0)r.push({size:e.size,width:e.width});else if(e.size==="sm"){const i=t.querySelectorAll('[class*="col-"]');Array.from(i).some(s=>s.className.match(e.pattern))&&r.push({size:e.size,width:e.width})}}),r}function Qe(t,r,e){r.value&&Object.prototype.hasOwnProperty.call(r.value,"enable")&&(t.enable=r.value.enable),r.value&&Object.prototype.hasOwnProperty.call(r.value,"autoWidth")&&(t.autoWidth=r.value.autoWidth),t&&(t.breakPoints=Ht(e))}const we={mounted:(t,r,e)=>{e.sharedObject={className:[],resizeObserver:null,enable:!0,autoWidth:!0,threshold:10,width:0,breakPoints:[]},Qe(e.sharedObject,r,t),Xe(e.sharedObject,t)},updated:function(t,r,e,n){n&&n.sharedObject?e.sharedObject=n.sharedObject:e.sharedObject={className:[],resizeObserver:null,enable:!0,autoWidth:!0,threshold:10,width:0,breakPoints:[]},Qe(e.sharedObject,r,t),Xe(e.sharedObject,t)},beforeUnmount(t,r,e){e.sharedObject&&je(e.sharedObject)}},Ge={created(t,r){t.setAttribute("title",t.textContent||r.value||"")},mounted(t,r){const e=r.value||t.textContent||"";t.setAttribute("title",e)},updated(t,r){const e=r.value||t.textContent||"";t.setAttribute("title",e)},beforeUpdate(t,r){const e=r.value||t.textContent||"";t.setAttribute("title",e)}};function Rt(t,r,e,n,a){const i=c.ref(t.disabled),o=c.ref(!1),s=c.ref(t.showBorder),u=c.ref(t.textAlign),g=c.ref(t.updateOn),D=c.ref(!1),T=c.computed(()=>t.editable||!t.readonly&&!t.disabled),M=c.computed(()=>t.editable&&!t.disabled&&!t.readonly),y=c.computed(()=>!t.disabled&&!t.readonly&&o.value),v=c.computed(()=>e.value===""||e.value===null||e.value===void 0),l=c.computed(()=>(t.disabled||t.readonly)&&!t.forcePlaceholder?"":t.placeholder),w=c.computed(()=>t.readonly||!t.editable),h=c.computed(()=>t.enableTitle?e.value:""),x=c.computed(()=>t.maxLength>0?t.maxLength:void 0),m=c.computed(()=>({"form-control":!0,"f-utils-fill":!0,"text-left":u.value==="left","text-center":u.value==="center","text-right":u.value==="right"})),p=c.computed(()=>{const b={"f-cmp-inputgroup":!0,"input-group":!0,"f-state-disabled":i.value,"f-state-editable":M.value,"f-state-readonly":w.value,"f-state-focus":y.value,"input-group--has-clear":t.enableClear&&D.value};return(t.customClass||"").split(" ").reduce((he,Et)=>(he[Et]=!0,he),b),b}),C=b=>t.maxLength>0&&typeof b=="string"?b.slice(0,t.maxLength):b,j=c.computed(()=>s.value?"":"border-width : 0 ");function W(){return t.type&&t.type!=="text"?t.type:t.showType||"text"}const R=c.ref(W());function k(b,S=!0){e.value=C(b),n.value!==e.value&&(n.value=e.value),S&&(r.emit("change",e.value),r.emit("update:modelValue",e.value),r.emit("update:value",e.value))}c.watch(()=>t.modelValue,(b,S)=>{if(b===S)return;const he=C(b);k(he,!(he===b))},{immediate:!0}),c.watch(()=>t.disabled,(b,S)=>{b!==S&&(i.value=b)}),c.watch(()=>t.showType,b=>{b&&(R.value=b)}),c.watch(()=>t.type,b=>{R.value=b});function de(b){return b.stopPropagation(),o.value=!1,r.emit("blur",b),b.target.tagName==="TEXTAREA"&&g.value==="blur"&&(r.emit("update:modelValue",b.target.value),r.emit("update:value",b.target.value),r.emit("change",b.target.value)),!1}function fe(b){r.emit("click",b)}function K(b){i.value||w.value||(s.value&&(o.value=!0),T.value&&r.emit("focus",b))}function Q(b){r.emit("input",b.target.value,b);const S=b.target.value;n.value=S,g.value==="change"&&(r.emit("update:modelValue",S),r.emit("update:value",S),r.emit("change",S))}function G(b){r.emit("keydown",b)}function Te(b){r.emit("keyup",b)}function De(b){const S=b.target;S.tagName!=="INPUT"&&S.tagName!=="TEXTAREA"&&b.preventDefault(),b.stopPropagation(),r.emit("mousedownEvent",b)}function $e(b){r.emit("mouseupEvent",b)}function Me(b){if(g.value==="blur"){const S=b.target.value;b.stopPropagation(),k(S)}}return{changeTextBoxValue:k,disabled:i,displayText:n,editable:M,hasFocused:y,inputGroupClass:p,inputType:R,isEmpty:v,modelValue:e,readonly:w,maxLength:x,onBlur:de,hasClearClass:D,onClick:fe,onFocus:K,onInput:Q,onKeydown:G,onKeyup:Te,onMousedown:De,onMouseup:$e,onTextBoxValueChange:Me,placeholder:l,textBoxClass:m,textBoxTitle:h,inputGroupStyle:j}}function Wt(t,r,e,n){const a=c.ref(t.disabled),i=c.ref(!1),o=c.ref("text"),s=c.ref(t.showBorder),u=c.ref(t.textAlign);c.computed(()=>t.editable||!t.readonly);const g=c.computed(()=>t.editable&&!t.disabled&&!t.readonly),D=c.computed(()=>!t.disabled&&i.value),T=c.computed(()=>e.value===""||e.value===null||e.value===void 0),M=c.computed(()=>t.placeholder),y=c.computed(()=>t.readonly||!t.editable),v=c.computed(()=>t.enableTitle?e.value:""),l=c.computed(()=>t.maxLength>0?t.maxLength:void 0),w=c.computed(()=>({"form-control":!0,"text-left":u.value==="left","text-center":u.value==="center","text-right":u.value==="right"})),h=c.computed(()=>({"f-cmp-inputgroup":!0,"input-group":!0,"f-state-disabled":!0,"f-state-editable":!1,"f-state-readonly":!0})),x=c.computed(()=>s.value?"":"border-width : 0 ");function m(p,C=!0){}return{changeTextBoxValue:m,disabled:a,displayText:n,editable:g,hasFocused:D,inputGroupClass:h,inputType:o,isEmpty:T,modelValue:e,readonly:y,maxLength:l,placeholder:M,textBoxClass:w,textBoxTitle:v,inputGroupStyle:x}}function Ft(t,r,e){const n=c.ref(!1),a=c.computed(()=>t.enableClear&&!t.readonly&&!t.disabled),{changeTextBoxValue:i,displayText:o,hasFocused:s,modelValue:u,isEmpty:g,hasClearClass:D}=e,T=c.ref(!1);function M(m){n.value=m,D&&(D.value=n.value)}const y=c.computed(()=>a.value&&!!(o!=null&&o.value)&&T.value);c.watch(o,()=>{M(y.value)});const v=c.computed(()=>({"input-group-text":!0,"input-group-clear":!0})),l=c.computed(()=>({width:"24px",display:n.value?"flex":"none"}));function w(m){m.stopPropagation(),a.value&&(i("",!0),M(!n.value),r.emit("clear"))}function h(m){var W,R;T.value=!0;const p=((W=m.target.querySelector("input"))==null?void 0:W.value)||"",C=((R=m.target.querySelector("textarea"))==null?void 0:R.value)||"",j=p||C;j!==u.value&&(u.value=j),a.value&&M(!!j)}function x(m){T.value=!1,a.value&&M(!1)}return{clearButtonClass:v,clearButtonStyle:l,hasShownClearButton:n,onClearValue:w,onMouseEnter:h,onMouseLeave:x,shouldShowClearButton:a}}const Bt={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},qt={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};class Ne{constructor(){f(this,"regexes",{YEAR:"[1-9]\\d{3}",MONTH:"1[0-2]|0?[1-9]",MONTH2:"1[0-2]|0[1-9]",MONTHNAME:"jan|january|feb|february|mar|march|apr|april|may|jun|june|jul|july|aug|august|sep|september|oct|october|nov|november|dec|december",DAYNAME:"mon|monday|tue|tuesday|wed|wednesday|thu|thursday|fri|friday|sat|saturday|sun|sunday",DAY:"3[01]|[12]\\d|0?[1-9]",DAY2:"3[01]|[12]\\d|0[1-9]",TIMEZONE:"[+-][01]\\d\\:?[0-5]\\d",H24:"[01]\\d|2[0-3]",MIN:"[0-5]\\d",SEC:"[0-5]\\d",MS:"\\d{3,}",H12:"0?[1-9]|1[012]",AMPM:"am|pm",UNIT:"year|month|week|day|hour|minute|second|millisecond"});f(this,"patterns",[["iso_8601",this.makePattern("^(_YEAR_)-(_MONTH_)-(_DAY_)$"),"$2/$3/$1"],["us",this.makePattern("^(_MONTH_)([\\/-])(_DAY_)\\2(_YEAR_)$"),"$1/$3/$4"],["world",this.makePattern("^(_DAY_)([\\/\\.])(_MONTH_)\\2(_YEAR_)$"),"$3/$1/$4"],["chicago",this.makePattern("^(?:(?:_DAYNAME_),? )?(_DAY_)([ -])(_MONTHNAME_)\\2(_YEAR_)$"),"$3 $1, $4"],["conversational",this.makePattern("^(?:(?:_DAYNAME_),? )?(_MONTHNAME_) (_DAY_),? (_YEAR_)$"),"$1 $2, $3"],["month_day_time_year",this.makePattern("^(?:_DAYNAME_) (_MONTHNAME_) (_DAY_) ((?:_H24_)\\:(?:_MIN_)(?:\\:_SEC_)?) (_TIMEZONE_) (_YEAR_)$"),r=>{const e=(""+this.getMonthByName(r[1])).padStart(2,"0"),n=(""+r[2]).padStart(2,"0"),a=r[5],i=r[3],o=r[4],s=a+"-"+e+"-"+n+"T"+i+o;return isNaN(s)?!1:s}],["unix",/^@(-?\d+)$/,r=>this.create(parseInt(r[1],10)*1e3)],["24_hour",this.makePattern("^(?:(.+?)(?: |T))?(_H24_)\\:(_MIN_)(?:\\:(_SEC_)(?:\\.(_MS_))?)? ?(?:GMT)?(_TIMEZONE_)?(?: \\([A-Z]+\\))?$"),r=>{let e;const n=r[1];if(n){if(e=this.create(n),isNaN(e))return!1}else e=new Date,e.setMilliseconds(0);const a=r[2],i=r[3],o=r[4],s=r[5];return e.setHours(parseFloat(a),parseFloat(i),parseFloat(o||0)),s&&e.setMilliseconds(+String(s).slice(0,3)),e}],["12_hour",this.makePattern("^(?:(.+) )?(_H12_)(?:\\:(_MIN_)(?:\\:(_SEC_))?)? ?(_AMPM_)$"),r=>{let e;const n=r[1];if(n){if(e=this.create(n),isNaN(e))return!1}else e=new Date,e.setMilliseconds(0);let a=parseFloat(r[2]);a=r[5].toLowerCase()==="am"?a===12?0:a:a===12?12:a+12;const i=r[3],o=r[4];return e.setHours(a,parseFloat(i||0),parseFloat(o||0)),e}]])}makePattern(r){return r=r.replace(/_([A-Z][A-Z0-9]+)_/g,(e,n)=>this.regexes[n]),new RegExp(r,"i")}getMonthByName(r){return Bt[String(r).slice(0,3).toLowerCase()]}getWeekdayByName(r){return qt[String(r).slice(0,3).toLowerCase()]}parse(r){if(!isNaN(Number(r)))return new Date(r);if(r=String(r).replace(/^\s*(.*)\s*$/,"$1"),r=r.replace(/\s{2,}/g," "),r==="")return Date.now();let e=0;for(;e<this.patterns.length;){const n=this.patterns[e];let a,i;typeof n[0]=="string"?(i=n[1],a=n[2]):(i=n[0],a=n[1]);const o=r.match(i);if(!o){e++;continue}if(typeof a=="function"){const s=a(o);if(s instanceof Date)return s}else{const s=Date.parse(r.replace(i,a));if(!isNaN(s))return new Date(s)}e++}return NaN}create(r){return r==null?Date.now():r instanceof Date?r:this.parse(r)}}function H(t){const r=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&r==="[object Date]"?new t.constructor(+t):typeof t=="number"||r==="[object Number]"||typeof t=="string"||r==="[object String]"?new Date(t):new Date(NaN)}function P(t,r){return t instanceof Date?new t.constructor(r):new Date(r)}function Ue(t,r){const e=H(t);return isNaN(r)?P(t,NaN):(r&&e.setDate(e.getDate()+r),e)}const Ve=6048e5,Lt=864e5,Oe=6e4,ke=36e5,St=1e3;let $t={};function ee(){return $t}function U(t,r){var s,u,g,D;const e=ee(),n=(r==null?void 0:r.weekStartsOn)??((u=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:u.weekStartsOn)??e.weekStartsOn??((D=(g=e.locale)==null?void 0:g.options)==null?void 0:D.weekStartsOn)??0,a=H(t),i=a.getDay(),o=(i<n?7:0)+i-n;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function te(t){return U(t,{weekStartsOn:1})}function Ze(t){const r=H(t),e=r.getFullYear(),n=P(t,0);n.setFullYear(e+1,0,4),n.setHours(0,0,0,0);const a=te(n),i=P(t,0);i.setFullYear(e,0,4),i.setHours(0,0,0,0);const o=te(i);return r.getTime()>=a.getTime()?e+1:r.getTime()>=o.getTime()?e:e-1}function Ke(t){const r=H(t);return r.setHours(0,0,0,0),r}function ge(t){const r=H(t),e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),+t-+e}function jt(t,r){const e=Ke(t),n=Ke(r),a=+e-ge(e),i=+n-ge(n);return Math.round((a-i)/Lt)}function zt(t){const r=Ze(t),e=P(t,0);return e.setFullYear(r,0,4),e.setHours(0,0,0,0),te(e)}function Xt(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function _e(t){if(!Xt(t)&&typeof t!="number")return!1;const r=H(t);return!isNaN(Number(r))}function Qt(t){const r=H(t),e=P(t,0);return e.setFullYear(r.getFullYear(),0,1),e.setHours(0,0,0,0),e}const Gt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ut=(t,r,e)=>{let n;const a=Gt[t];return typeof a=="string"?n=a:r===1?n=a.one:n=a.other.replace("{{count}}",r.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+n:n+" ago":n};function Ce(t){return(r={})=>{const e=r.width?String(r.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}const Vt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Zt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Kt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Jt={date:Ce({formats:Vt,defaultWidth:"full"}),time:Ce({formats:Zt,defaultWidth:"full"}),dateTime:Ce({formats:Kt,defaultWidth:"full"})},en={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tn=(t,r,e,n)=>en[t];function ie(t){return(r,e)=>{const n=e!=null&&e.context?String(e.context):"standalone";let a;if(n==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,s=e!=null&&e.width?String(e.width):o;a=t.formattingValues[s]||t.formattingValues[o]}else{const o=t.defaultWidth,s=e!=null&&e.width?String(e.width):t.defaultWidth;a=t.values[s]||t.values[o]}const i=t.argumentCallback?t.argumentCallback(r):r;return a[i]}}const nn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},rn={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},an={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},on={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},sn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},un={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},cn={ordinalNumber:(t,r)=>{const e=Number(t),n=e%100;if(n>20||n<10)switch(n%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:ie({values:nn,defaultWidth:"wide"}),quarter:ie({values:rn,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ie({values:an,defaultWidth:"wide"}),day:ie({values:on,defaultWidth:"wide"}),dayPeriod:ie({values:sn,defaultWidth:"wide",formattingValues:un,defaultFormattingWidth:"wide"})};function oe(t){return(r,e={})=>{const n=e.width,a=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],i=r.match(a);if(!i)return null;const o=i[0],s=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(s)?dn(s,T=>T.test(o)):ln(s,T=>T.test(o));let g;g=t.valueCallback?t.valueCallback(u):u,g=e.valueCallback?e.valueCallback(g):g;const D=r.slice(o.length);return{value:g,rest:D}}}function ln(t,r){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&r(t[e]))return e}function dn(t,r){for(let e=0;e<t.length;e++)if(r(t[e]))return e}function fn(t){return(r,e={})=>{const n=r.match(t.matchPattern);if(!n)return null;const a=n[0],i=r.match(t.parsePattern);if(!i)return null;let o=t.valueCallback?t.valueCallback(i[0]):i[0];o=e.valueCallback?e.valueCallback(o):o;const s=r.slice(a.length);return{value:o,rest:s}}}const hn=/^(\d+)(th|st|nd|rd)?/i,mn=/\d+/i,wn={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},gn={any:[/^b/i,/^(a|c)/i]},yn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bn={any:[/1/i,/2/i,/3/i,/4/i]},pn={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Tn={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Dn={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Mn={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},vn={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},xn={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Nn={ordinalNumber:fn({matchPattern:hn,parsePattern:mn,valueCallback:t=>parseInt(t,10)}),era:oe({matchPatterns:wn,defaultMatchWidth:"wide",parsePatterns:gn,defaultParseWidth:"any"}),quarter:oe({matchPatterns:yn,defaultMatchWidth:"wide",parsePatterns:bn,defaultParseWidth:"any",valueCallback:t=>t+1}),month:oe({matchPatterns:pn,defaultMatchWidth:"wide",parsePatterns:Tn,defaultParseWidth:"any"}),day:oe({matchPatterns:Dn,defaultMatchWidth:"wide",parsePatterns:Mn,defaultParseWidth:"any"}),dayPeriod:oe({matchPatterns:vn,defaultMatchWidth:"any",parsePatterns:xn,defaultParseWidth:"any"})},Je={code:"en-US",formatDistance:Ut,formatLong:Jt,formatRelative:tn,localize:cn,match:Nn,options:{weekStartsOn:0,firstWeekContainsDate:1}};function On(t){const r=H(t);return jt(r,Qt(r))+1}function et(t){const r=H(t),e=+te(r)-+zt(r);return Math.round(e/Ve)+1}function Pe(t,r){var D,T,M,y;const e=H(t),n=e.getFullYear(),a=ee(),i=(r==null?void 0:r.firstWeekContainsDate)??((T=(D=r==null?void 0:r.locale)==null?void 0:D.options)==null?void 0:T.firstWeekContainsDate)??a.firstWeekContainsDate??((y=(M=a.locale)==null?void 0:M.options)==null?void 0:y.firstWeekContainsDate)??1,o=P(t,0);o.setFullYear(n+1,0,i),o.setHours(0,0,0,0);const s=U(o,r),u=P(t,0);u.setFullYear(n,0,i),u.setHours(0,0,0,0);const g=U(u,r);return e.getTime()>=s.getTime()?n+1:e.getTime()>=g.getTime()?n:n-1}function kn(t,r){var s,u,g,D;const e=ee(),n=(r==null?void 0:r.firstWeekContainsDate)??((u=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:u.firstWeekContainsDate)??e.firstWeekContainsDate??((D=(g=e.locale)==null?void 0:g.options)==null?void 0:D.firstWeekContainsDate)??1,a=Pe(t,r),i=P(t,0);return i.setFullYear(a,0,n),i.setHours(0,0,0,0),U(i,r)}function tt(t,r){const e=H(t),n=+U(e,r)-+kn(e,r);return Math.round(n/Ve)+1}function O(t,r){const e=t<0?"-":"",n=Math.abs(t).toString().padStart(r,"0");return e+n}const V={y(t,r){const e=t.getFullYear(),n=e>0?e:1-e;return O(r==="yy"?n%100:n,r.length)},M(t,r){const e=t.getMonth();return r==="M"?String(e+1):O(e+1,2)},d(t,r){return O(t.getDate(),r.length)},a(t,r){const e=t.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(t,r){return O(t.getHours()%12||12,r.length)},H(t,r){return O(t.getHours(),r.length)},m(t,r){return O(t.getMinutes(),r.length)},s(t,r){return O(t.getSeconds(),r.length)},S(t,r){const e=r.length,n=t.getMilliseconds(),a=Math.trunc(n*Math.pow(10,e-3));return O(a,r.length)}},ne={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},nt={G:function(t,r,e){const n=t.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return e.era(n,{width:"abbreviated"});case"GGGGG":return e.era(n,{width:"narrow"});case"GGGG":default:return e.era(n,{width:"wide"})}},y:function(t,r,e){if(r==="yo"){const n=t.getFullYear(),a=n>0?n:1-n;return e.ordinalNumber(a,{unit:"year"})}return V.y(t,r)},Y:function(t,r,e,n){const a=Pe(t,n),i=a>0?a:1-a;if(r==="YY"){const o=i%100;return O(o,2)}return r==="Yo"?e.ordinalNumber(i,{unit:"year"}):O(i,r.length)},R:function(t,r){const e=Ze(t);return O(e,r.length)},u:function(t,r){const e=t.getFullYear();return O(e,r.length)},Q:function(t,r,e){const n=Math.ceil((t.getMonth()+1)/3);switch(r){case"Q":return String(n);case"QQ":return O(n,2);case"Qo":return e.ordinalNumber(n,{unit:"quarter"});case"QQQ":return e.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,r,e){const n=Math.ceil((t.getMonth()+1)/3);switch(r){case"q":return String(n);case"qq":return O(n,2);case"qo":return e.ordinalNumber(n,{unit:"quarter"});case"qqq":return e.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,r,e){const n=t.getMonth();switch(r){case"M":case"MM":return V.M(t,r);case"Mo":return e.ordinalNumber(n+1,{unit:"month"});case"MMM":return e.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(n,{width:"wide",context:"formatting"})}},L:function(t,r,e){const n=t.getMonth();switch(r){case"L":return String(n+1);case"LL":return O(n+1,2);case"Lo":return e.ordinalNumber(n+1,{unit:"month"});case"LLL":return e.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(n,{width:"wide",context:"standalone"})}},w:function(t,r,e,n){const a=tt(t,n);return r==="wo"?e.ordinalNumber(a,{unit:"week"}):O(a,r.length)},I:function(t,r,e){const n=et(t);return r==="Io"?e.ordinalNumber(n,{unit:"week"}):O(n,r.length)},d:function(t,r,e){return r==="do"?e.ordinalNumber(t.getDate(),{unit:"date"}):V.d(t,r)},D:function(t,r,e){const n=On(t);return r==="Do"?e.ordinalNumber(n,{unit:"dayOfYear"}):O(n,r.length)},E:function(t,r,e){const n=t.getDay();switch(r){case"E":case"EE":case"EEE":return e.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(n,{width:"short",context:"formatting"});case"EEEE":default:return e.day(n,{width:"wide",context:"formatting"})}},e:function(t,r,e,n){const a=t.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(r){case"e":return String(i);case"ee":return O(i,2);case"eo":return e.ordinalNumber(i,{unit:"day"});case"eee":return e.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(a,{width:"short",context:"formatting"});case"eeee":default:return e.day(a,{width:"wide",context:"formatting"})}},c:function(t,r,e,n){const a=t.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(r){case"c":return String(i);case"cc":return O(i,r.length);case"co":return e.ordinalNumber(i,{unit:"day"});case"ccc":return e.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(a,{width:"narrow",context:"standalone"});case"cccccc":return e.day(a,{width:"short",context:"standalone"});case"cccc":default:return e.day(a,{width:"wide",context:"standalone"})}},i:function(t,r,e){const n=t.getDay(),a=n===0?7:n;switch(r){case"i":return String(a);case"ii":return O(a,r.length);case"io":return e.ordinalNumber(a,{unit:"day"});case"iii":return e.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(n,{width:"short",context:"formatting"});case"iiii":default:return e.day(n,{width:"wide",context:"formatting"})}},a:function(t,r,e){const a=t.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,r,e){const n=t.getHours();let a;switch(n===12?a=ne.noon:n===0?a=ne.midnight:a=n/12>=1?"pm":"am",r){case"b":case"bb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,r,e){const n=t.getHours();let a;switch(n>=17?a=ne.evening:n>=12?a=ne.afternoon:n>=4?a=ne.morning:a=ne.night,r){case"B":case"BB":case"BBB":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,r,e){if(r==="ho"){let n=t.getHours()%12;return n===0&&(n=12),e.ordinalNumber(n,{unit:"hour"})}return V.h(t,r)},H:function(t,r,e){return r==="Ho"?e.ordinalNumber(t.getHours(),{unit:"hour"}):V.H(t,r)},K:function(t,r,e){const n=t.getHours()%12;return r==="Ko"?e.ordinalNumber(n,{unit:"hour"}):O(n,r.length)},k:function(t,r,e){let n=t.getHours();return n===0&&(n=24),r==="ko"?e.ordinalNumber(n,{unit:"hour"}):O(n,r.length)},m:function(t,r,e){return r==="mo"?e.ordinalNumber(t.getMinutes(),{unit:"minute"}):V.m(t,r)},s:function(t,r,e){return r==="so"?e.ordinalNumber(t.getSeconds(),{unit:"second"}):V.s(t,r)},S:function(t,r){return V.S(t,r)},X:function(t,r,e){const n=t.getTimezoneOffset();if(n===0)return"Z";switch(r){case"X":return at(n);case"XXXX":case"XX":return J(n);case"XXXXX":case"XXX":default:return J(n,":")}},x:function(t,r,e){const n=t.getTimezoneOffset();switch(r){case"x":return at(n);case"xxxx":case"xx":return J(n);case"xxxxx":case"xxx":default:return J(n,":")}},O:function(t,r,e){const n=t.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+rt(n,":");case"OOOO":default:return"GMT"+J(n,":")}},z:function(t,r,e){const n=t.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+rt(n,":");case"zzzz":default:return"GMT"+J(n,":")}},t:function(t,r,e){const n=Math.trunc(t.getTime()/1e3);return O(n,r.length)},T:function(t,r,e){const n=t.getTime();return O(n,r.length)}};function rt(t,r=""){const e=t>0?"-":"+",n=Math.abs(t),a=Math.trunc(n/60),i=n%60;return i===0?e+String(a):e+String(a)+r+O(i,2)}function at(t,r){return t%60===0?(t>0?"-":"+")+O(Math.abs(t)/60,2):J(t,r)}function J(t,r=""){const e=t>0?"-":"+",n=Math.abs(t),a=O(Math.trunc(n/60),2),i=O(n%60,2);return e+a+r+i}const it=(t,r)=>{switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},ot=(t,r)=>{switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Ee={p:ot,P:(t,r)=>{const e=t.match(/(P+)(p+)?/)||[],n=e[1],a=e[2];if(!a)return it(t,r);let i;switch(n){case"P":i=r.dateTime({width:"short"});break;case"PP":i=r.dateTime({width:"medium"});break;case"PPP":i=r.dateTime({width:"long"});break;case"PPPP":default:i=r.dateTime({width:"full"});break}return i.replace("{{date}}",it(n,r)).replace("{{time}}",ot(a,r))}},_n=/^D+$/,Cn=/^Y+$/,Pn=["D","DD","YY","YYYY"];function st(t){return _n.test(t)}function ut(t){return Cn.test(t)}function Ye(t,r,e){const n=En(t,r,e);if(console.warn(n),Pn.includes(t))throw new RangeError(n)}function En(t,r,e){const n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${r}\`) for formatting ${n} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Yn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,An=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,In=/^'([^]*?)'?$/,Hn=/''/g,Rn=/[a-zA-Z]/;function se(t,r,e){var D,T,M,y;const n=ee(),a=n.locale??Je,i=n.firstWeekContainsDate??((T=(D=n.locale)==null?void 0:D.options)==null?void 0:T.firstWeekContainsDate)??1,o=n.weekStartsOn??((y=(M=n.locale)==null?void 0:M.options)==null?void 0:y.weekStartsOn)??0,s=H(t);if(!_e(s))throw new RangeError("Invalid time value");let u=r.match(An).map(v=>{const l=v[0];if(l==="p"||l==="P"){const w=Ee[l];return w(v,a.formatLong)}return v}).join("").match(Yn).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const l=v[0];if(l==="'")return{isToken:!1,value:Wn(v)};if(nt[l])return{isToken:!0,value:v};if(l.match(Rn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+l+"`");return{isToken:!1,value:v}});a.localize.preprocessor&&(u=a.localize.preprocessor(s,u));const g={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return u.map(v=>{if(!v.isToken)return v.value;const l=v.value;(ut(l)||st(l))&&Ye(l,r,String(t));const w=nt[l[0]];return w(s,l,a.localize,g)}).join("")}function Wn(t){const r=t.match(In);return r?r[1].replace(Hn,"'"):t}function Fn(){return Object.assign({},ee())}function Bn(t){let e=H(t).getDay();return e===0&&(e=7),e}function qn(t,r){const e=r instanceof Date?P(r,0):new r(0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e}const Ln=10;class ct{constructor(){f(this,"subPriority",0)}validate(r,e){return!0}}class Sn extends ct{constructor(r,e,n,a,i){super(),this.value=r,this.validateValue=e,this.setValue=n,this.priority=a,i&&(this.subPriority=i)}validate(r,e){return this.validateValue(r,this.value,e)}set(r,e,n){return this.setValue(r,e,this.value,n)}}class $n extends ct{constructor(){super(...arguments);f(this,"priority",Ln);f(this,"subPriority",-1)}set(e,n){return n.timestampIsSet?e:P(e,qn(e,Date))}}class N{run(r,e,n,a){const i=this.parse(r,e,n,a);return i?{setter:new Sn(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(r,e,n){return!0}}class jn extends N{constructor(){super(...arguments);f(this,"priority",140);f(this,"incompatibleTokens",["R","u","t","T"])}parse(e,n,a){switch(n){case"G":case"GG":case"GGG":return a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"});case"GGGGG":return a.era(e,{width:"narrow"});case"GGGG":default:return a.era(e,{width:"wide"})||a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"})}}set(e,n,a){return n.era=a,e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}const Y={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},z={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function A(t,r){return t&&{value:r(t.value),rest:t.rest}}function _(t,r){const e=r.match(t);return e?{value:parseInt(e[0],10),rest:r.slice(e[0].length)}:null}function X(t,r){const e=r.match(t);if(!e)return null;if(e[0]==="Z")return{value:0,rest:r.slice(1)};const n=e[1]==="+"?1:-1,a=e[2]?parseInt(e[2],10):0,i=e[3]?parseInt(e[3],10):0,o=e[5]?parseInt(e[5],10):0;return{value:n*(a*ke+i*Oe+o*St),rest:r.slice(e[0].length)}}function lt(t){return _(Y.anyDigitsSigned,t)}function E(t,r){switch(t){case 1:return _(Y.singleDigit,r);case 2:return _(Y.twoDigits,r);case 3:return _(Y.threeDigits,r);case 4:return _(Y.fourDigits,r);default:return _(new RegExp("^\\d{1,"+t+"}"),r)}}function ye(t,r){switch(t){case 1:return _(Y.singleDigitSigned,r);case 2:return _(Y.twoDigitsSigned,r);case 3:return _(Y.threeDigitsSigned,r);case 4:return _(Y.fourDigitsSigned,r);default:return _(new RegExp("^-?\\d{1,"+t+"}"),r)}}function Ae(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function dt(t,r){const e=r>0,n=e?r:1-r;let a;if(n<=50)a=t||100;else{const i=n+50,o=Math.trunc(i/100)*100,s=t>=i%100;a=t+o-(s?100:0)}return e?a:1-a}function ft(t){return t%400===0||t%4===0&&t%100!==0}class zn extends N{constructor(){super(...arguments);f(this,"priority",130);f(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,n,a){const i=o=>({year:o,isTwoDigitYear:n==="yy"});switch(n){case"y":return A(E(4,e),i);case"yo":return A(a.ordinalNumber(e,{unit:"year"}),i);default:return A(E(n.length,e),i)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,a){const i=e.getFullYear();if(a.isTwoDigitYear){const s=dt(a.year,i);return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}const o=!("era"in n)||n.era===1?a.year:1-a.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}}class Xn extends N{constructor(){super(...arguments);f(this,"priority",130);f(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,n,a){const i=o=>({year:o,isTwoDigitYear:n==="YY"});switch(n){case"Y":return A(E(4,e),i);case"Yo":return A(a.ordinalNumber(e,{unit:"year"}),i);default:return A(E(n.length,e),i)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,a,i){const o=Pe(e,i);if(a.isTwoDigitYear){const u=dt(a.year,o);return e.setFullYear(u,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),U(e,i)}const s=!("era"in n)||n.era===1?a.year:1-a.year;return e.setFullYear(s,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),U(e,i)}}class Qn extends N{constructor(){super(...arguments);f(this,"priority",130);f(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,n){return ye(n==="R"?4:n.length,e)}set(e,n,a){const i=P(e,0);return i.setFullYear(a,0,4),i.setHours(0,0,0,0),te(i)}}class Gn extends N{constructor(){super(...arguments);f(this,"priority",130);f(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,n){return ye(n==="u"?4:n.length,e)}set(e,n,a){return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}class Un extends N{constructor(){super(...arguments);f(this,"priority",120);f(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,n,a){switch(n){case"Q":case"QQ":return E(n.length,e);case"Qo":return a.ordinalNumber(e,{unit:"quarter"});case"QQQ":return a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(e,{width:"wide",context:"formatting"})||a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,a){return e.setMonth((a-1)*3,1),e.setHours(0,0,0,0),e}}class Vn extends N{constructor(){super(...arguments);f(this,"priority",120);f(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,n,a){switch(n){case"q":case"qq":return E(n.length,e);case"qo":return a.ordinalNumber(e,{unit:"quarter"});case"qqq":return a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(e,{width:"wide",context:"standalone"})||a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,a){return e.setMonth((a-1)*3,1),e.setHours(0,0,0,0),e}}class Zn extends N{constructor(){super(...arguments);f(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);f(this,"priority",110)}parse(e,n,a){const i=o=>o-1;switch(n){case"M":return A(_(Y.month,e),i);case"MM":return A(E(2,e),i);case"Mo":return A(a.ordinalNumber(e,{unit:"month"}),i);case"MMM":return a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(e,{width:"wide",context:"formatting"})||a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,a){return e.setMonth(a,1),e.setHours(0,0,0,0),e}}class Kn extends N{constructor(){super(...arguments);f(this,"priority",110);f(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,n,a){const i=o=>o-1;switch(n){case"L":return A(_(Y.month,e),i);case"LL":return A(E(2,e),i);case"Lo":return A(a.ordinalNumber(e,{unit:"month"}),i);case"LLL":return a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(e,{width:"wide",context:"standalone"})||a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,a){return e.setMonth(a,1),e.setHours(0,0,0,0),e}}function Jn(t,r,e){const n=H(t),a=tt(n,e)-r;return n.setDate(n.getDate()-a*7),n}class er extends N{constructor(){super(...arguments);f(this,"priority",100);f(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,n,a){switch(n){case"w":return _(Y.week,e);case"wo":return a.ordinalNumber(e,{unit:"week"});default:return E(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,a,i){return U(Jn(e,a,i),i)}}function tr(t,r){const e=H(t),n=et(e)-r;return e.setDate(e.getDate()-n*7),e}class nr extends N{constructor(){super(...arguments);f(this,"priority",100);f(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,n,a){switch(n){case"I":return _(Y.week,e);case"Io":return a.ordinalNumber(e,{unit:"week"});default:return E(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,a){return te(tr(e,a))}}const rr=[31,28,31,30,31,30,31,31,30,31,30,31],ar=[31,29,31,30,31,30,31,31,30,31,30,31];class ir extends N{constructor(){super(...arguments);f(this,"priority",90);f(this,"subPriority",1);f(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,n,a){switch(n){case"d":return _(Y.date,e);case"do":return a.ordinalNumber(e,{unit:"date"});default:return E(n.length,e)}}validate(e,n){const a=e.getFullYear(),i=ft(a),o=e.getMonth();return i?n>=1&&n<=ar[o]:n>=1&&n<=rr[o]}set(e,n,a){return e.setDate(a),e.setHours(0,0,0,0),e}}class or extends N{constructor(){super(...arguments);f(this,"priority",90);f(this,"subpriority",1);f(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,n,a){switch(n){case"D":case"DD":return _(Y.dayOfYear,e);case"Do":return a.ordinalNumber(e,{unit:"date"});default:return E(n.length,e)}}validate(e,n){const a=e.getFullYear();return ft(a)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,a){return e.setMonth(0,a),e.setHours(0,0,0,0),e}}function Ie(t,r,e){var T,M,y,v;const n=ee(),a=(e==null?void 0:e.weekStartsOn)??((M=(T=e==null?void 0:e.locale)==null?void 0:T.options)==null?void 0:M.weekStartsOn)??n.weekStartsOn??((v=(y=n.locale)==null?void 0:y.options)==null?void 0:v.weekStartsOn)??0,i=H(t),o=i.getDay(),u=(r%7+7)%7,g=7-a,D=r<0||r>6?r-(o+g)%7:(u+g)%7-(o+g)%7;return Ue(i,D)}class sr extends N{constructor(){super(...arguments);f(this,"priority",90);f(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,n,a){switch(n){case"E":case"EE":case"EEE":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,a,i){return e=Ie(e,a,i),e.setHours(0,0,0,0),e}}class ur extends N{constructor(){super(...arguments);f(this,"priority",90);f(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,n,a,i){const o=s=>{const u=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+u};switch(n){case"e":case"ee":return A(E(n.length,e),o);case"eo":return A(a.ordinalNumber(e,{unit:"day"}),o);case"eee":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeeee":return a.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,a,i){return e=Ie(e,a,i),e.setHours(0,0,0,0),e}}class cr extends N{constructor(){super(...arguments);f(this,"priority",90);f(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,n,a,i){const o=s=>{const u=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+u};switch(n){case"c":case"cc":return A(E(n.length,e),o);case"co":return A(a.ordinalNumber(e,{unit:"day"}),o);case"ccc":return a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"ccccc":return a.day(e,{width:"narrow",context:"standalone"});case"cccccc":return a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(e,{width:"wide",context:"standalone"})||a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,a,i){return e=Ie(e,a,i),e.setHours(0,0,0,0),e}}function lr(t,r){const e=H(t),n=Bn(e),a=r-n;return Ue(e,a)}class dr extends N{constructor(){super(...arguments);f(this,"priority",90);f(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,n,a){const i=o=>o===0?7:o;switch(n){case"i":case"ii":return E(n.length,e);case"io":return a.ordinalNumber(e,{unit:"day"});case"iii":return A(a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return A(a.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return A(a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),i);case"iiii":default:return A(a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),i)}}validate(e,n){return n>=1&&n<=7}set(e,n,a){return e=lr(e,a),e.setHours(0,0,0,0),e}}class fr extends N{constructor(){super(...arguments);f(this,"priority",80);f(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,n,a){switch(n){case"a":case"aa":case"aaa":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,a){return e.setHours(Ae(a),0,0,0),e}}class hr extends N{constructor(){super(...arguments);f(this,"priority",80);f(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,n,a){switch(n){case"b":case"bb":case"bbb":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,a){return e.setHours(Ae(a),0,0,0),e}}class mr extends N{constructor(){super(...arguments);f(this,"priority",80);f(this,"incompatibleTokens",["a","b","t","T"])}parse(e,n,a){switch(n){case"B":case"BB":case"BBB":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,a){return e.setHours(Ae(a),0,0,0),e}}class wr extends N{constructor(){super(...arguments);f(this,"priority",70);f(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,n,a){switch(n){case"h":return _(Y.hour12h,e);case"ho":return a.ordinalNumber(e,{unit:"hour"});default:return E(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,a){const i=e.getHours()>=12;return i&&a<12?e.setHours(a+12,0,0,0):!i&&a===12?e.setHours(0,0,0,0):e.setHours(a,0,0,0),e}}class gr extends N{constructor(){super(...arguments);f(this,"priority",70);f(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,n,a){switch(n){case"H":return _(Y.hour23h,e);case"Ho":return a.ordinalNumber(e,{unit:"hour"});default:return E(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,a){return e.setHours(a,0,0,0),e}}class yr extends N{constructor(){super(...arguments);f(this,"priority",70);f(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,n,a){switch(n){case"K":return _(Y.hour11h,e);case"Ko":return a.ordinalNumber(e,{unit:"hour"});default:return E(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,a){return e.getHours()>=12&&a<12?e.setHours(a+12,0,0,0):e.setHours(a,0,0,0),e}}class br extends N{constructor(){super(...arguments);f(this,"priority",70);f(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,n,a){switch(n){case"k":return _(Y.hour24h,e);case"ko":return a.ordinalNumber(e,{unit:"hour"});default:return E(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,a){const i=a<=24?a%24:a;return e.setHours(i,0,0,0),e}}class pr extends N{constructor(){super(...arguments);f(this,"priority",60);f(this,"incompatibleTokens",["t","T"])}parse(e,n,a){switch(n){case"m":return _(Y.minute,e);case"mo":return a.ordinalNumber(e,{unit:"minute"});default:return E(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,a){return e.setMinutes(a,0,0),e}}class Tr extends N{constructor(){super(...arguments);f(this,"priority",50);f(this,"incompatibleTokens",["t","T"])}parse(e,n,a){switch(n){case"s":return _(Y.second,e);case"so":return a.ordinalNumber(e,{unit:"second"});default:return E(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,a){return e.setSeconds(a,0),e}}class Dr extends N{constructor(){super(...arguments);f(this,"priority",30);f(this,"incompatibleTokens",["t","T"])}parse(e,n){const a=i=>Math.trunc(i*Math.pow(10,-n.length+3));return A(E(n.length,e),a)}set(e,n,a){return e.setMilliseconds(a),e}}class Mr extends N{constructor(){super(...arguments);f(this,"priority",10);f(this,"incompatibleTokens",["t","T","x"])}parse(e,n){switch(n){case"X":return X(z.basicOptionalMinutes,e);case"XX":return X(z.basic,e);case"XXXX":return X(z.basicOptionalSeconds,e);case"XXXXX":return X(z.extendedOptionalSeconds,e);case"XXX":default:return X(z.extended,e)}}set(e,n,a){return n.timestampIsSet?e:P(e,e.getTime()-ge(e)-a)}}class vr extends N{constructor(){super(...arguments);f(this,"priority",10);f(this,"incompatibleTokens",["t","T","X"])}parse(e,n){switch(n){case"x":return X(z.basicOptionalMinutes,e);case"xx":return X(z.basic,e);case"xxxx":return X(z.basicOptionalSeconds,e);case"xxxxx":return X(z.extendedOptionalSeconds,e);case"xxx":default:return X(z.extended,e)}}set(e,n,a){return n.timestampIsSet?e:P(e,e.getTime()-ge(e)-a)}}class xr extends N{constructor(){super(...arguments);f(this,"priority",40);f(this,"incompatibleTokens","*")}parse(e){return lt(e)}set(e,n,a){return[P(e,a*1e3),{timestampIsSet:!0}]}}class Nr extends N{constructor(){super(...arguments);f(this,"priority",20);f(this,"incompatibleTokens","*")}parse(e){return lt(e)}set(e,n,a){return[P(e,a),{timestampIsSet:!0}]}}const Or={G:new jn,y:new zn,Y:new Xn,R:new Qn,u:new Gn,Q:new Un,q:new Vn,M:new Zn,L:new Kn,w:new er,I:new nr,d:new ir,D:new or,E:new sr,e:new ur,c:new cr,i:new dr,a:new fr,b:new hr,B:new mr,h:new wr,H:new gr,K:new yr,k:new br,m:new pr,s:new Tr,S:new Dr,X:new Mr,x:new vr,t:new xr,T:new Nr},kr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_r=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Cr=/^'([^]*?)'?$/,Pr=/''/g,Er=/\S/,Yr=/[a-zA-Z]/;function ht(t,r,e,n){var l,w,h,x;const a=Fn(),i=a.locale??Je,o=a.firstWeekContainsDate??((w=(l=a.locale)==null?void 0:l.options)==null?void 0:w.firstWeekContainsDate)??1,s=a.weekStartsOn??((x=(h=a.locale)==null?void 0:h.options)==null?void 0:x.weekStartsOn)??0;if(r==="")return t===""?H(e):P(e,NaN);const u={firstWeekContainsDate:o,weekStartsOn:s,locale:i},g=[new $n],D=r.match(_r).map(m=>{const p=m[0];if(p in Ee){const C=Ee[p];return C(m,i.formatLong)}return m}).join("").match(kr),T=[];for(let m of D){ut(m)&&Ye(m,r,t),st(m)&&Ye(m,r,t);const p=m[0],C=Or[p];if(C){const{incompatibleTokens:j}=C;if(Array.isArray(j)){const R=T.find(k=>j.includes(k.token)||k.token===p);if(R)throw new RangeError(`The format string mustn't contain \`${R.fullToken}\` and \`${m}\` at the same time`)}else if(C.incompatibleTokens==="*"&&T.length>0)throw new RangeError(`The format string mustn't contain \`${m}\` and any other token at the same time`);T.push({token:p,fullToken:m});const W=C.run(t,m,i.match,u);if(!W)return P(e,NaN);g.push(W.setter),t=W.rest}else{if(p.match(Yr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");if(m==="''"?m="'":p==="'"&&(m=Ar(m)),t.indexOf(m)===0)t=t.slice(m.length);else return P(e,NaN)}}if(t.length>0&&Er.test(t))return P(e,NaN);const M=g.map(m=>m.priority).sort((m,p)=>p-m).filter((m,p,C)=>C.indexOf(m)===p).map(m=>g.filter(p=>p.priority===m).sort((p,C)=>C.subPriority-p.subPriority)).map(m=>m[0]);let y=H(e);if(isNaN(y.getTime()))return P(e,NaN);const v={};for(const m of M){if(!m.validate(y,u))return P(e,NaN);const p=m.set(y,v,u);Array.isArray(p)?(y=p[0],Object.assign(v,p[1])):y=p}return P(e,y)}function Ar(t){return t.match(Cr)[1].replace(Pr,"'")}function mt(t,r){const e=(r==null?void 0:r.additionalDigits)??2,n=Wr(t);let a;if(n.date){const u=Fr(n.date,e);a=Br(u.restDateString,u.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);const i=a.getTime();let o=0,s;if(n.time&&(o=qr(n.time),isNaN(o)))return new Date(NaN);if(n.timezone){if(s=Lr(n.timezone),isNaN(s))return new Date(NaN)}else{const u=new Date(i+o),g=new Date(0);return g.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),g.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),g}return new Date(i+o+s)}const be={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ir=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Hr=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Rr=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Wr(t){const r={},e=t.split(be.dateTimeDelimiter);let n;if(e.length>2)return r;if(/:/.test(e[0])?n=e[0]:(r.date=e[0],n=e[1],be.timeZoneDelimiter.test(r.date)&&(r.date=t.split(be.timeZoneDelimiter)[0],n=t.substr(r.date.length,t.length))),n){const a=be.timezone.exec(n);a?(r.time=n.replace(a[1],""),r.timezone=a[1]):r.time=n}return r}function Fr(t,r){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+r)+"})|(\\d{2}|[+-]\\d{"+(2+r)+"})$)"),n=t.match(e);if(!n)return{year:NaN,restDateString:""};const a=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:i===null?a:i*100,restDateString:t.slice((n[1]||n[2]).length)}}function Br(t,r){if(r===null)return new Date(NaN);const e=t.match(Ir);if(!e)return new Date(NaN);const n=!!e[4],a=ue(e[1]),i=ue(e[2])-1,o=ue(e[3]),s=ue(e[4]),u=ue(e[5])-1;if(n)return Xr(r,s,u)?Sr(r,s,u):new Date(NaN);{const g=new Date(0);return!jr(r,i,o)||!zr(r,a)?new Date(NaN):(g.setUTCFullYear(r,i,Math.max(a,o)),g)}}function ue(t){return t?parseInt(t):1}function qr(t){const r=t.match(Hr);if(!r)return NaN;const e=He(r[1]),n=He(r[2]),a=He(r[3]);return Qr(e,n,a)?e*ke+n*Oe+a*1e3:NaN}function He(t){return t&&parseFloat(t.replace(",","."))||0}function Lr(t){if(t==="Z")return 0;const r=t.match(Rr);if(!r)return 0;const e=r[1]==="+"?-1:1,n=parseInt(r[2]),a=r[3]&&parseInt(r[3])||0;return Gr(n,a)?e*(n*ke+a*Oe):NaN}function Sr(t,r,e){const n=new Date(0);n.setUTCFullYear(t,0,4);const a=n.getUTCDay()||7,i=(r-1)*7+e+1-a;return n.setUTCDate(n.getUTCDate()+i),n}const $r=[31,null,31,30,31,30,31,31,30,31,30,31];function wt(t){return t%400===0||t%4===0&&t%100!==0}function jr(t,r,e){return r>=0&&r<=11&&e>=1&&e<=($r[r]||(wt(t)?29:28))}function zr(t,r){return r>=1&&r<=(wt(t)?366:365)}function Xr(t,r,e){return r>=1&&r<=53&&e>=0&&e<=6}function Qr(t,r,e){return t===24?r===0&&e===0:e>=0&&e<60&&r>=0&&r<60&&t>=0&&t<25}function Gr(t,r){return r>=0&&r<=59}function gt(t,r="HH:mm:ss"){if(!(t!=null&&t.trim()))return"";const e=se(new Date,"yyyy-MM-dd");return se(new Date(`${e} ${t.trim()}`),r)}function Ur(t,r){const{hour:e,minute:n,second:a,period:i=0}=t;let o=e;return r.includes("a")&&(o=e===0?12:e),r.replace("HH",String(o).padStart(2,"0")).replace("hh",String(o).padStart(2,"0")).replace("mm",String(n).padStart(2,"0")).replace("ss",String(a).padStart(2,"0")).replace("a",i===0?"AM":"PM")}function Vr(t,r="HH:mm:ss"){if(!(t!=null&&t.trim()))return{hour:0,minute:0,second:0};const e=se(new Date,"yyyy-MM-dd"),n=ht(`${e} ${t.trim()}`,`yyyy-MM-dd ${r}`,new Date);return{hour:n.getHours(),minute:n.getMinutes(),second:n.getSeconds()}}function yt(t){const r=t.getFullYear(),e=t.getMonth()+1,n=t.getDate(),a=t.getHours(),i=t.getMinutes(),o=t.getSeconds();return{year:r,month:e,day:n,hour:a,minute:i,second:o}}const Zr=(t,r)=>{const{year:e,month:n,day:a,hour:i,minute:o,second:s}=yt(t);return r.replace("yyyy",String(e)).replace("MM",String(n).padStart(2,"0")).replace("dd",String(a).padStart(2,"0")).replace("HH",String(i).padStart(2,"0")).replace("mm",String(o).padStart(2,"0")).replace("ss",String(s).padStart(2,"0"))},Kr=(t,r)=>t.getTime()-r.getTime();function bt(t){return t%4===0&&(t%100!==0||t%400===0)}function Jr(t,r){const e=[31,28,31,30,31,30,31,31,30,31,30,31];return r===2&&bt(t)?29:e[r-1]}function ea(){const t=new Ne;function r(n,a){if(!n||typeof n=="string"&&n.indexOf("0001")===0)return null;if(n instanceof Date)return isNaN(n.getTime())?null:n;let i=ht(n,a,new Date);if(isNaN(i.getTime())){let o=n;if(n.indexOf("-")>-1||n.indexOf("/")>-1){n.indexOf("/")>-1&&(o=n.replace(/\//g,"-"));const s="-";o=o.split(s).map(u=>u.length<2?u.padStart(2,"0"):u).join(s)}i=[mt,s=>t.create(s),s=>new Date(s)].reduce((s,u)=>isNaN(s)||isNaN(s==null?void 0:s.getTime())?u(o):s,i)}return i}function e(n,a){var o;let i=r(n,a);if(i===null)return"";if(_e(i))return i=mt(se(i,"yyyy-MM-dd HH:mm:ss")),_e(i)?se(i,a):"";if(typeof n=="string"&&(a.indexOf("HH")===0||a.indexOf("hh")===0)){const s=(o=n==null?void 0:n.match(/\d*/g))==null?void 0:o.filter(u=>u!=="").join(":");return(a==="HH"||a==="hh")&&(a+=":mm"),s?gt(s,a):""}return""}return{parseToDate:r,formatTo:e}}function pt(){function t(){const e=n=>{const a=Math.random()*16|0;return(n==="x"?a:a&3|8).toString(16)};return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e)}function r(e,n){const a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=[];let o;if(n=n||a.length,e)for(o=0;o<e;o++)i[o]=a[0|Math.random()*n];else{let s;for(i[8]=i[13]=i[18]=i[23]="-",i[14]="4",o=0;o<36;o++)i[o]||(s=0|Math.random()*16,i[o]=a[o===19?s&3|8:s])}return i.join("")}return{guid:t,uuid:r}}function ta(){function t(l,w=null){return Array.isArray(l)?I.max.apply(null,l).toFixed():l&&w?I.maximum(l,w).toFixed():(console.error("请提供比较的值firstValue、secondValue."),"")}function r(l,w=null){return Array.isArray(l)?I.min.apply(null,l).toFixed():l&&w?I.minimum(l,w).toFixed():(console.error("请提供比较的值firstValue、secondValue."),"")}function e(l){return I.sum.apply(null,l).toFixed()}function n(l,w){return new I(l).div(w).toFixed()}function a(l,w){return new I(l).plus(w).toFixed()}function i(l,w){return new I(l).times(w).toFixed()}function o(l,w){return new I(l).minus(w).toFixed()}function s(l,w){return new I(l).eq(w)}function u(l,w){return new I(l).lt(w)}function g(l,w){return new I(l).gt(w)}function D(l){return new I(l).toNumber()}function T(l,w=0){return new I(l).toFixed(w)}function M(l){const w=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],h=["","拾","佰","仟"],x=["","万","亿","兆"],m=["角","分","毫","厘"],p="整",C="元";let W,R,k="",de;if(l==="")return"";const fe=parseFloat(l);if(fe>=1e15)return"";if(fe===0)return k=w[0]+C+p,k;if(l=fe.toString(),l.indexOf(".")===-1?(W=l,R=""):(de=l.split("."),W=de[0],R=de[1].substr(0,4)),parseInt(W,10)>0){let K=0;const Q=W.length;for(let G=0;G<Q;G++){const Te=W.substr(G,1),De=Q-G-1,$e=De/4,Me=De%4;Te==="0"?K++:(K>0&&(k+=w[0]),K=0,k+=w[parseInt(Te,10)]+h[Me]),Me===0&&K<4&&(k+=x[$e])}k+=C}if(R!==""){const K=R.length;for(let Q=0;Q<K;Q++){const G=R.substr(Q,1);G!=="0"&&(k+=w[Number(G)]+m[Q])}}return k===""?k+=w[0]+C+p:R===""&&(k+=p),k}function y(l,w){let h=l==null||typeof l=="number"&&isNaN(l)?"":String(l);return w&&(w.prefix&&(h=h.replace(new RegExp(w.prefix,"g"),"")),w.suffix&&(h=h.replace(new RegExp(w.suffix,"g"),"")),h=h.replace(/\\,/g,"")),h}function v(l,w){const h=new I(l),x={prefix:w.prefix||"",suffix:w.suffix||"",decimalSeparator:w.decimalSeparator||".",groupSeparator:w.groupSeparator||"",groupSize:3};if(h.isNaN())return"";let m=w.precision||0;return m=Number(m),h.toFormat(m,x)}return{formatTo:v,removeFormat:y,convertCurrency:M,toFixed:T,toNumber:D,greaterThan:g,lessThan:u,equal:s,minus:o,multiplied:i,plus:a,average:n,sum:e,min:r,max:t}}const na=["秒","分钟","小时","天","周","个月","年"],Re=[60,60,24,7,365/7/12,12];function ra(){const t=new Ne;function r(o,s){if(s===0)return["刚刚","片刻后"];const u=na[~~(s/2)];return[`${o} ${u}前`,`${o} ${u}后`]}function e(o){if(typeof o=="object")return o;{const s=t.create(o);return typeof s=="object"?s:new Date}}function n(o,s){return(+(s?e(s):new Date)-+e(o))/1e3}function a(o){const s=o<0?1:0;o=Math.abs(o);let u=0;for(;o>=Re[u]&&u<Re.length;u++)o/=Re[u];return o=Math.floor(o),u*=2,o>(u===0?9:1)&&(u+=1),r(o,u)[s].replace("%s",o.toString())}function i(o,s){const u=n(o,s&&s.relativeDate);return a(u)}return{formatTo:i}}const Tt=["moz","ms","webkit"];function aa(){let t=0;return r=>{const e=new Date().getTime(),n=Math.max(0,16-(e-t)),a=setTimeout(()=>{r(e+n)},n);return t=e+n,a}}function ia(){if(typeof window>"u")return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const t=Tt.filter(r=>`${r}RequestAnimationFrame`in window)[0];return t?window[`${t}RequestAnimationFrame`]:aa()}function oa(t){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(t);const r=Tt.filter(e=>`${e}CancelAnimationFrame`in window||`${e}CancelRequestAnimationFrame`in window)[0];return r?(window[`${r}CancelAnimationFrame`]||window[`${r}CancelRequestAnimationFrame`]).call(this,t):clearTimeout(t)}const sa=ia();function ua(t,r){return((r==null?void 0:r.split(" "))||[]).reduce((n,a)=>(a&&(n[a]=!0),n),t),t}function ca(t,r){return((r==null?void 0:r.split(";"))||[]).forEach(n=>{var a,i;if(n){const o=n.split(":");if(o.length>=2&&((a=o[0])!=null&&a.trim())&&((i=o[1])!=null&&i.trim())){const s=o[0].trim(),u=o.slice(1).join(":").trim();t[s]=u}}}),t}const la=t=>{const r=t;return r.install=function(e){e.component(r.name,t)},t},da=Symbol("checkboxGroupContext"),fa=Symbol("controller schema repository inject token"),ha=Symbol("radioGroupContext"),ma=Symbol("form schema repository inject token");function wa(t,r,e,n){const{guid:a}=pt(),i=`checkbox_${a().slice(0,8)}`,o=c.computed(()=>(e==null?void 0:e.name)||i),s=c.computed(()=>t.readonly||t.disabled||(e==null?void 0:e.readonly)||(e==null?void 0:e.disabled)),u=c.computed(()=>(e==null?void 0:e.type)==="button"),g=c.computed(()=>(e==null?void 0:e.type)==="default"||Yt.isUndefined(e==null?void 0:e.type)),D=c.ref(t.modelValue);function T(x){return x?e.isStringValue?x.split(e.separator):x:[]}function M(x){return e.modelValue?e.modelValue+e.separator+x:x}const y=c.computed(()=>e?e.modelValue===t.value||T(e.modelValue).includes(t.value):(t.trueValue!=null?t.modelValue===t.trueValue:!!t.modelValue)||!!t.checked),v=c.computed(()=>({btn:!0,"f-radio-button":!0,active:y.value,"f-radio-button-primary":!0})),l=c.ref(t.indeterminate);return c.watch(()=>t.modelValue,x=>{D.value=x}),c.watch(()=>t.indeterminate,x=>{l.value=x}),{buttonClass:v,checked:y,disabled:s,indeterminate:l,name:o,onClickCheckBox:x=>{if(x.stopPropagation(),!s.value)if(e)if(y.value){const m=T(e.modelValue).filter(C=>C!==t.value),p=e.isStringValue?m.join(e.separator):m;n.emit("update:modelValue",p),n.emit("changeValue",p)}else{const m=e.isStringValue?M(t.value):[...e.modelValue,t.value];n.emit("update:modelValue",m),n.emit("changeValue",m)}else r.emit("update:checked",!y.value),r.emit("update:modelValue",y.value?t.falseValue:t.trueValue),r.emit("changeValue",y.value?t.falseValue:t.trueValue),r.emit("change",{originalEvent:x,checked:!y.value})},onClickRadio:x=>{s.value||(x.stopPropagation(),e?y.value||(n.emit("update:modelValue",t.value),n.emit("changeValue",t.value)):r.emit("update:checked",!y.value))},shouldRenderButton:u,shouldRenderNative:g}}const ga={checked:{type:Boolean,default:!1},direction:{type:String,default:"horizontal"},type:{type:String,default:"default"},size:{type:String,default:"middle"},options:{type:Object}},ya="",$=8;function Z(t,r){const e=(t&65535)+(r&65535);return(t>>16)+(r>>16)+(e>>16)<<16|e&65535}function ba(t,r){return t<<r|t>>>32-r}function pe(t,r,e,n,a,i){return Z(ba(Z(Z(r,t),Z(n,i)),a),e)}function F(t,r,e,n,a,i,o){return pe(r&e|~r&n,t,r,a,i,o)}function B(t,r,e,n,a,i,o){return pe(r&n|e&~n,t,r,a,i,o)}function q(t,r,e,n,a,i,o){return pe(r^e^n,t,r,a,i,o)}function L(t,r,e,n,a,i,o){return pe(e^(r|~n),t,r,a,i,o)}function ce(t){const r=[],e=(1<<$)-1;for(let n=0;n<t.length*$;n+=$)r[n>>5]|=(t.charCodeAt(n/$)&e)<<n%32;return r}function Dt(t){let r="";const e=(1<<$)-1;for(let n=0;n<t.length*32;n+=$)r+=String.fromCharCode(t[n>>5]>>>n%32&e);return r}function Mt(t){const r="0123456789abcdef";let e="";for(let n=0;n<t.length*4;n++)e+=r.charAt(t[n>>2]>>n%4*8+4&15)+r.charAt(t[n>>2]>>n%4*8&15);return e}function vt(t){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";let e="";for(let n=0;n<t.length*4;n+=3){const a=(t[n>>2]>>8*(n%4)&255)<<16|(t[n+1>>2]>>8*((n+1)%4)&255)<<8|t[n+2>>2]>>8*((n+2)%4)&255;for(let i=0;i<4;i++)n*8+i*6>t.length*32?e+=ya:e+=r.charAt(a>>6*(3-i)&63)}return e}function re(t,r){t[r>>5]|=128<<r%32,t[(r+64>>>9<<4)+14]=r;let e=1732584193,n=-271733879,a=-1732584194,i=271733878;for(let o=0;o<t.length;o+=16){const s=e,u=n,g=a,D=i;e=F(e,n,a,i,t[o+0],7,-680876936),i=F(i,e,n,a,t[o+1],12,-389564586),a=F(a,i,e,n,t[o+2],17,606105819),n=F(n,a,i,e,t[o+3],22,-1044525330),e=F(e,n,a,i,t[o+4],7,-176418897),i=F(i,e,n,a,t[o+5],12,1200080426),a=F(a,i,e,n,t[o+6],17,-1473231341),n=F(n,a,i,e,t[o+7],22,-45705983),e=F(e,n,a,i,t[o+8],7,1770035416),i=F(i,e,n,a,t[o+9],12,-1958414417),a=F(a,i,e,n,t[o+10],17,-42063),n=F(n,a,i,e,t[o+11],22,-1990404162),e=F(e,n,a,i,t[o+12],7,1804603682),i=F(i,e,n,a,t[o+13],12,-40341101),a=F(a,i,e,n,t[o+14],17,-1502002290),n=F(n,a,i,e,t[o+15],22,1236535329),e=B(e,n,a,i,t[o+1],5,-165796510),i=B(i,e,n,a,t[o+6],9,-1069501632),a=B(a,i,e,n,t[o+11],14,643717713),n=B(n,a,i,e,t[o+0],20,-373897302),e=B(e,n,a,i,t[o+5],5,-701558691),i=B(i,e,n,a,t[o+10],9,38016083),a=B(a,i,e,n,t[o+15],14,-660478335),n=B(n,a,i,e,t[o+4],20,-405537848),e=B(e,n,a,i,t[o+9],5,568446438),i=B(i,e,n,a,t[o+14],9,-1019803690),a=B(a,i,e,n,t[o+3],14,-187363961),n=B(n,a,i,e,t[o+8],20,1163531501),e=B(e,n,a,i,t[o+13],5,-1444681467),i=B(i,e,n,a,t[o+2],9,-51403784),a=B(a,i,e,n,t[o+7],14,1735328473),n=B(n,a,i,e,t[o+12],20,-1926607734),e=q(e,n,a,i,t[o+5],4,-378558),i=q(i,e,n,a,t[o+8],11,-2022574463),a=q(a,i,e,n,t[o+11],16,1839030562),n=q(n,a,i,e,t[o+14],23,-35309556),e=q(e,n,a,i,t[o+1],4,-1530992060),i=q(i,e,n,a,t[o+4],11,1272893353),a=q(a,i,e,n,t[o+7],16,-155497632),n=q(n,a,i,e,t[o+10],23,-1094730640),e=q(e,n,a,i,t[o+13],4,681279174),i=q(i,e,n,a,t[o+0],11,-358537222),a=q(a,i,e,n,t[o+3],16,-722521979),n=q(n,a,i,e,t[o+6],23,76029189),e=q(e,n,a,i,t[o+9],4,-640364487),i=q(i,e,n,a,t[o+12],11,-421815835),a=q(a,i,e,n,t[o+15],16,530742520),n=q(n,a,i,e,t[o+2],23,-995338651),e=L(e,n,a,i,t[o+0],6,-198630844),i=L(i,e,n,a,t[o+7],10,1126891415),a=L(a,i,e,n,t[o+14],15,-1416354905),n=L(n,a,i,e,t[o+5],21,-57434055),e=L(e,n,a,i,t[o+12],6,1700485571),i=L(i,e,n,a,t[o+3],10,-1894986606),a=L(a,i,e,n,t[o+10],15,-1051523),n=L(n,a,i,e,t[o+1],21,-2054922799),e=L(e,n,a,i,t[o+8],6,1873313359),i=L(i,e,n,a,t[o+15],10,-30611744),a=L(a,i,e,n,t[o+6],15,-1560198380),n=L(n,a,i,e,t[o+13],21,1309151649),e=L(e,n,a,i,t[o+4],6,-145523070),i=L(i,e,n,a,t[o+11],10,-1120210379),a=L(a,i,e,n,t[o+2],15,718787259),n=L(n,a,i,e,t[o+9],21,-343485551),e=Z(e,s),n=Z(n,u),a=Z(a,g),i=Z(i,D)}return[e,n,a,i]}function We(t,r){let e=ce(t);e.length>16&&(e=re(e,t.length*$));const n=Array(16),a=Array(16);for(let o=0;o<16;o++)n[o]=e[o]^909522486,a[o]=e[o]^1549556828;const i=re(n.concat(ce(r)),512+r.length*$);return re(a.concat(i),640)}function pa(t,r="hex"){return r==="hex"?Mt(re(ce(t),t.length*$)):r==="b64"?vt(re(ce(t),t.length*$)):Dt(re(ce(t),t.length*$))}function Ta(t,r,e="hex"){return e==="hex"?Mt(We(t,r)):e==="b64"?vt(We(t,r)):Dt(We(t,r))}const Da=(t,r)=>{if(!r||!t)return"";const e=typeof r=="string";return e&&Object.prototype.hasOwnProperty.call(t,r)?t[r]:(e?r.split("."):r).reduce((i,o)=>{if(i!=null)return i[o]},t)},Ma=(t,r,e)=>{if(typeof e=="string"&&Object.prototype.hasOwnProperty.call(r,e)){r[e]=t;return}let n=[];typeof e=="string"&&(n=[...e.split(".")]),Array.isArray(e)&&(n=e);let a=r;for(;n&&n.length>1;)a=a[n.shift()];a[n.shift()]=t};var xt=(t=>(t.SimpleField="SimpleField",t.ComplexField="ComplexField",t))(xt||{}),Nt=(t=>(t.StringType="StringType",t.TextType="TextType",t.NumericType="NumericType",t.BooleanType="BooleanType",t.DateType="DateType",t.DateTimeType="DateTimeType",t.EnumType="EnumType",t.EntityType="EntityType",t.HierarchyType="HierarchyType",t.ObjectType="ObjectType",t.BigNumericType="BigNumericType",t))(Nt||{}),Ot=(t=>(t.String="String",t.DateTime="DateTime",t.Date="Date",t.Enum="Enum",t.Boolean="Boolean",t.Number="Number",t.Text="Text",t.BigNumber="BigNumber",t))(Ot||{}),kt=(t=>(t.String="String",t.Text="Text",t.Integer="Integer",t.Decimal="Decimal",t.Boolean="Boolean",t.Date="Date",t.DateTime="DateTime",t.Binary="Binary",t))(kt||{});const va="commands";function xa(){function t(e,n){return e.filter(i=>n.indexOf(i)===-1)}function r(e,n){for(let a=0;a<n.length;a++)if(!e.includes(n[a]))return!1;return!0}return{getDifference:t,isBInA:r}}function _t(){function t(h){return h===void 0}function r(h){return h===null}function e(h){return typeof h=="string"&&h}function n(h){return h!=null}function a(h){return typeof h=="string"}function i(h){return typeof h=="number"}function o(h){return typeof h=="boolean"}function s(h){return typeof h=="symbol"}function u(h){return typeof h=="function"}function g(h){return h!==null&&typeof h=="object"}function D(h){return g(h)&&u(h.then)&&u(h.catch)}function T(h){return/^-?\d+(\.\d+)?$/.test(h)}function M(h){return typeof h=="object"&&h instanceof Date}function y(h){if(n(h))return h=String(h),T(h)?`${h}px`:h}function v(h){return h.replace(/(?=[A-Z])/g,"-").replace(/^-/,"").toLowerCase()}const{isArray:l}=Array;function w(h,x=2){if(x<=0||!Number.isInteger(x))return!1;let m=h;for(let p=0;p<x;p++){if(!l(m)||p<x-1&&m.length===0)return!1;m=m[0]}return!0}return{isNull:r,isUndefined:t,isValidString:e,isDef:n,isString:a,isNumber:i,isBoolean:o,isArray:l,isMultiArray:w,isSymbol:s,isFunction:u,isObject:g,isPromise:D,isNumeric:T,isDate:M,addUnit:y,camelToKebabCase:v}}function Na(t,r=500){const e=c.ref(t.value);let n;const a=c.watch(t,o=>{clearTimeout(n),n=setTimeout(()=>{e.value=o},r)}),i=()=>{clearTimeout(n),a()};return c.onUnmounted(i),{delayedValue:e,cleanup:i}}function Oa(t,...r){return r.forEach(e=>{delete t[e]}),t}const Fe=Symbol("FConfig");class Be{static get config(){return this._config}static set config(r){this._config={...this._config,...r}}}f(Be,"_config",{basePath:"",size:"medium"});function qe(){const t=c.inject(Fe,null);return t||c.ref(Be.config)}const ka=c.defineComponent({name:"FConfigProvider",props:{config:{type:Object,default:()=>({})}},setup(t,{slots:r}){const e=c.computed(()=>t.config);return c.provide(Fe,e),()=>c.renderSlot(r,"default")}}),le={key:"F_RICHTEXTEDITOR_ASSETSPATH",value:"/platform/common/web/@farris/ui-editor-vue3/assets/farris-editor/",basePath:c.ref("")};function _a(){const t="F_THIRD_COMPONENTS",{basePath:r}=qe().value,e=r+"/platform/common/web/renderer/third-party-components.json?v="+new Date().getTime();r&&le.value.indexOf(r)===-1&&(le.value=r+le.value,le.basePath.value=r);async function n(a){const o=await(await fetch(a||e)).json();return o!=null&&o.length?(window[t]={},await Promise.all(o.map(async s=>{var g;const u=await((g=window.System)==null?void 0:g.import(s.url));window[t][s.module]=u[s.module]})),window[t]):{}}return{loadThirdComponents:n,globalStorageKey:t}}function Ca(t,r){const e=new ResizeObserver(r);return e.observe(t),()=>{e.unobserve(t)}}const Pa=t=>{if(!t||!(t instanceof Element))return!1;const r=window.getComputedStyle(t);return r.display==="none"||r.visibility==="hidden"?!1:t.offsetWidth>0||t.offsetHeight>0||t.getClientRects&&t.getClientRects().length>0},Ea=()=>{const t=["body>.popover.fade.in","body>.modal.fade.show","body>.f-filter-panel-wrapper","body .f-drawer",".f-field-search-box .condition-panel"],r=document.body.querySelectorAll(t.join(","));let e=0;for(let n=0;n<r.length;n++){const a=r[n];if(!Pa(a))continue;const i=window.getComputedStyle?window.getComputedStyle(a):null;if(!i)continue;const o=parseInt(i.zIndex,10);if(o&&!isNaN(o)){const s=Number(o);Number.isFinite(s)&&s>e&&(e=s)}}return e?e+1:0};function Le(){if(typeof window>"u"||typeof navigator>"u")return!1;const t=navigator.userAgent||navigator.vendor||window.opera,r=[/iPhone/i,/iPod/i,/Android.*Mobile/i,/webOS/i,/BlackBerry/i,/IEMobile/i,/Opera Mini/i,/Harmony/i],e=[/iPad/i,/Android(?!.*Mobile)/i,/Tablet/i,/PlayBook/i,/Kindle/i,/Silk/i];for(const u of e)if(u.test(t))return!1;for(const u of r)if(u.test(t))return!0;if(typeof screen>"u")return!1;const n="ontouchstart"in window||navigator.maxTouchPoints>0,a=screen.width,i=screen.height,o=Math.min(a,i);return!!(n&&o<=768)}function Ct(){const t=Le();return t&&document.body.classList.add("f-mobile"),t}typeof document<"u"&&Ct();const ae="nativeGoBackFunctionStackUtils";function Ya(){const t=Le();function r(a){t&&window[ae]&&window[ae].pushNativeGoBackFunction(a)}function e(){t&&window[ae]&&window[ae].popNativeGoBackFunction()}function n(){if(t&&window[ae])return window[ae].peekNativeGoBackFunction()}return{pushNativeGoBackFunction:r,popNativeGoBackFunction:e,peekNativeGoBackFunction:n}}const Se=5;function Aa(t,r){return t>r?"horizontal":r>t?"vertical":""}function Ia(){const t=c.ref(0),r=c.ref(0),e=c.ref(0),n=c.ref(0),a=c.ref(0),i=c.ref(0),o=c.ref(""),s=c.ref(!0),u=()=>o.value==="vertical",g=()=>o.value==="horizontal",D=()=>{e.value=0,n.value=0,a.value=0,i.value=0,o.value="",s.value=!0};return{move:y=>{const v=y.touches[0];e.value=(v.clientX<0?0:v.clientX)-t.value,n.value=v.clientY-r.value,a.value=Math.abs(e.value),i.value=Math.abs(n.value);const l=10;(!o.value||a.value<l&&i.value<l)&&(o.value=Aa(a.value,i.value)),s.value&&(a.value>Se||i.value>Se)&&(s.value=!1)},start:y=>{D(),t.value=y.touches[0].clientX,r.value=y.touches[0].clientY},reset:D,startX:t,startY:r,deltaX:e,deltaY:n,offsetX:a,offsetY:i,direction:o,isVertical:u,isHorizontal:g,isTap:s}}const Ha=t=>{const{maxOverflowY:r=0,TimeThreshold:e=200,YThreshold:n=88}=t;let a=0,i=0,o=0;return{start:T=>{a=new Date().getTime(),i=T},move:T=>{o=T;const M=new Date().getTime();M-a>e&&(i=o,a=M)},end:()=>{const M=new Date().getTime()-a,y=Math.abs(o-i);return M<e&&y>n},get:(T,M,y)=>{const v={noBounce:2500,weekBounce:800,strongBounce:400},l={noBounce:"cubic-bezier(.17, .89, .45, 1)",weekBounce:"cubic-bezier(.25, .46, .45, .94)",strongBounce:"cubic-bezier(.25, .46, .45, .94)"};let w="noBounce";const h=.003,x=10,m=300;let p=0;const j=new Date().getTime()-a,W=T-i,R=2*Math.abs(W)/j;let k=T+R/h*(W<0?-1:1);return k<M?(p=M-k,w=p>m?"strongBounce":"weekBounce",k=Math.max(M-r,M-p/x)):k>y&&(p=k-y,w=p>m?"strongBounce":"weekBounce",k=Math.min(y+r,y+p/x)),{destination:k,duration:v[w],bezier:l[w]}}}},Ra=t=>{const{isArray:r,camelToKebabCase:e}=_t(),n=e(t),a=s=>{if(!s)return n;const u=r(s)?s.join("__"):s;return`${n}__${u}`},i=(s,u)=>{const g=s?`--${s}`:"";return u?a(u)+g:n+g};return{bem:(s,u)=>u?i(u,s):a(s),getElementClass:a,getModifierClass:i}};function Wa(t){return t.match(/\.(jpeg|jpg|gif|png|svg|bmp|webp)$/)!=null}function Pt(t){return t.indexOf("data:image/")>-1}function Fa(t){return!(!t||Pt(t)||t.startsWith("http"))}function Ba(t){const{basePath:r}=qe().value;return!Fa(t)||!r?t:(r.endsWith("/")?r.slice(0,-1):r)+(t.startsWith("/")?"":"/")+t}const qa={install(t){t.directive("area-response",we),t.directive("auto-title",Ge)},register(t,r,e,n){t["area-response"]=we},registerDesigner(t,r){t["area-response"]=we}};d.CHECKBOX_CONTEXT=da,d.ControllerSchemaRepositorySymbol=fa,d.DateConverter=Ne,d.EVENT_PROPERTY_TAB_IDS=va,d.FConfigProvider=ka,d.FConfigService=Be,d.F_CONFIG_INJECTION_KEY=Fe,d.FormSchemaEntityField$Type=xt,d.FormSchemaEntityFieldType$Type=Nt,d.FormSchemaEntityFieldTypeName=Ot,d.FormSchemaRepositorySymbol=ma,d.GSPElementDataType=kt,d.RADIOGROUP_CONTEXT=ha,d.TAP_OFFSET=Se,d.addClass=me,d.areaResponseDirective=we,d.autoTitleDirective=Ge,d.cancelRequestAnimationFrame=oa,d.compareDate=Kr,d.default=qa,d.encrypt=pa,d.excludeProperties=Oa,d.formatDate=Zr,d.formatObjecTime=Ur,d.formatTime=gt,d.getCustomClass=ua,d.getCustomStyle=ca,d.getDateObject=yt,d.getDaysInMonth=Jr,d.getElementWithClassList=ve,d.getMaxZIndex=Ea,d.getTimeObject=Vr,d.globalRichTextEditorAssetsPath=le,d.hmacEncrypt=Ta,d.isBase64ImageUrl=Pt,d.isImageUrl=Wa,d.isLeapYear=bt,d.isMobilePhone=Le,d.radioCheckboxCommonProps=ga,d.removeClass=xe,d.resolveField=Da,d.setFieldValue=Ma,d.urlPrependBasePath=Ba,d.useArrayProcessor=xa,d.useBem=Ra,d.useCheck=wa,d.useClear=Ft,d.useCommonUtils=_t,d.useDateFormat=ea,d.useDelayedRef=Na,d.useFarrisConfig=qe,d.useGuid=pt,d.useMobileBodyClass=Ct,d.useNativeBack=Ya,d.useNumberFormat=ta,d.useReqAnimationFrame=sa,d.useResizeObserver=Ca,d.useTextBox=Rt,d.useTextBoxDesign=Wt,d.useThirdComponent=_a,d.useTimeAgo=ra,d.useTouch=Ia,d.useTouchMomentum=Ha,d.withInstall=la,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(l,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue"),require("bignumber.js"),require("lodash-es")):typeof define=="function"&&define.amd?define(["exports","vue","bignumber.js","lodash-es"],c):(l=typeof globalThis<"u"?globalThis:l||self,c(l.common={},l.Vue,l.BigNumber,l.LodashES))})(this,function(l,c,I,Yt){"use strict";var Sa=Object.defineProperty;var $a=(l,c,I)=>c in l?Sa(l,c,{enumerable:!0,configurable:!0,writable:!0,value:I}):l[c]=I;var f=(l,c,I)=>$a(l,typeof c!="symbol"?c+"":c,I);function ve(t){const r=t.nativeElement?t.nativeElement:t;return r.classList!==void 0&&r.classList!==null?r:null}function xe(t,r){if(r===void 0)return;const e=ve(t);e&&e.classList.remove(r)}function me(t,r){if(r===void 0)return;const e=ve(t);e&&e.classList.add(r)}const At=[{size:"sm",width:576,pattern:/\b(col-|col-sm-)\d+\b/},{size:"md",width:768,pattern:/\bcol-md-\d+\b/},{size:"lg",width:888,pattern:/\bcol-lg-\d+\b/},{size:"xl",width:1200,pattern:/\bcol-xl-\d+\b/},{size:"el",width:1690,pattern:/\bcol-el-\d+\b/}];function je(t){t&&t.resizeObserver&&(t.resizeObserver.disconnect(),t.resizeObserver=null)}function ze(t,r,e=0){const n=[];if(!r)return;const a=e||r.getBoundingClientRect().width,i=parseFloat(a),o=t.breakPoints;for(let s=0;s<o.length;s++)o[s].width<=i&&n.push(o[s].size);if(t.className.join(",")!==n.join(",")){if(t.className.length-n.length>0)for(let u=n.length;u<t.className.length;u++)xe(r,"f-area-response--"+t.className[u]);else for(let u=t.className.length;u<n.length;u++)me(r,"f-area-response--"+n[u]);t.className=[...n]}}function It(t,r){t.enable&&t.autoWidth?t.resizeObserver||(t.resizeObserver=new ResizeObserver(e=>{if(!e||e.length<1||!e[0].contentRect)return;const n=e[0].contentRect;Math.abs(parseInt(n.width+"")-t.width)>t.threshold&&(ze(t,r,n.width),t.width=parseInt(n.width+""))}),t.resizeObserver.observe(r)):je(t)}function Xe(t,r){if(t.enable)me(r,"f-area-response"),ze(t,r);else{xe(r,"f-area-response");for(let e=t.className.length;e>0;e--)me(r,"f-area-response--"+t.className[e]);t.className=[]}It(t,r)}function Ht(t){const r=[];return At.map(e=>{const n="col-"+e.size+"-";if(t.querySelectorAll('[class*="'+n+'"]').length>0)r.push({size:e.size,width:e.width});else if(e.size==="sm"){const i=t.querySelectorAll('[class*="col-"]');Array.from(i).some(s=>s.className.match(e.pattern))&&r.push({size:e.size,width:e.width})}}),r}function Qe(t,r,e){r.value&&Object.prototype.hasOwnProperty.call(r.value,"enable")&&(t.enable=r.value.enable),r.value&&Object.prototype.hasOwnProperty.call(r.value,"autoWidth")&&(t.autoWidth=r.value.autoWidth),t&&(t.breakPoints=Ht(e))}const we={mounted:(t,r,e)=>{e.sharedObject={className:[],resizeObserver:null,enable:!0,autoWidth:!0,threshold:10,width:0,breakPoints:[]},Qe(e.sharedObject,r,t),Xe(e.sharedObject,t)},updated:function(t,r,e,n){n&&n.sharedObject?e.sharedObject=n.sharedObject:e.sharedObject={className:[],resizeObserver:null,enable:!0,autoWidth:!0,threshold:10,width:0,breakPoints:[]},Qe(e.sharedObject,r,t),Xe(e.sharedObject,t)},beforeUnmount(t,r,e){e.sharedObject&&je(e.sharedObject)}},Ge={created(t,r){t.setAttribute("title",t.textContent||r.value||"")},mounted(t,r){const e=r.value||t.textContent||"";t.setAttribute("title",e)},updated(t,r){const e=r.value||t.textContent||"";t.setAttribute("title",e)},beforeUpdate(t,r){const e=r.value||t.textContent||"";t.setAttribute("title",e)}};function Rt(t,r,e,n,a){const i=c.ref(t.disabled),o=c.ref(!1),s=c.ref(t.showBorder),u=c.ref(t.textAlign),g=c.ref(t.updateOn),D=c.ref(!1),T=c.computed(()=>t.editable||!t.readonly&&!t.disabled),M=c.computed(()=>t.editable&&!t.disabled&&!t.readonly),y=c.computed(()=>!t.disabled&&!t.readonly&&o.value),v=c.computed(()=>e.value===""||e.value===null||e.value===void 0),d=c.computed(()=>(t.disabled||t.readonly)&&!t.forcePlaceholder?"":t.placeholder),w=c.computed(()=>t.readonly||!t.editable),h=c.computed(()=>t.enableTitle?e.value:""),x=c.computed(()=>t.maxLength>0?t.maxLength:void 0),m=c.computed(()=>({"form-control":!0,"f-utils-fill":!0,"text-left":u.value==="left","text-center":u.value==="center","text-right":u.value==="right"})),p=c.computed(()=>{const b={"f-cmp-inputgroup":!0,"input-group":!0,"f-state-disabled":i.value,"f-state-editable":M.value,"f-state-readonly":w.value,"f-state-focus":y.value,"input-group--has-clear":t.enableClear&&D.value};return(t.customClass||"").split(" ").reduce((he,Et)=>(he[Et]=!0,he),b),b}),C=b=>t.maxLength>0&&typeof b=="string"?b.slice(0,t.maxLength):b,j=c.computed(()=>s.value?"":"border-width : 0 ");function W(){return t.type&&t.type!=="text"?t.type:t.showType||"text"}const R=c.ref(W());function k(b,S=!0){e.value=C(b),n.value!==e.value&&(n.value=e.value),S&&(r.emit("change",e.value),r.emit("update:modelValue",e.value),r.emit("update:value",e.value))}c.watch(()=>t.modelValue,(b,S)=>{if(b===S)return;const he=C(b);k(he,!(he===b))},{immediate:!0}),c.watch(()=>t.disabled,(b,S)=>{b!==S&&(i.value=b)}),c.watch(()=>t.showType,b=>{b&&(R.value=b)}),c.watch(()=>t.type,b=>{R.value=b});function de(b){return b.stopPropagation(),o.value=!1,r.emit("blur",b),b.target.tagName==="TEXTAREA"&&g.value==="blur"&&(r.emit("update:modelValue",b.target.value),r.emit("update:value",b.target.value),r.emit("change",b.target.value)),!1}function fe(b){r.emit("click",b)}function K(b){i.value||w.value||(s.value&&(o.value=!0),T.value&&r.emit("focus",b))}function Q(b){r.emit("input",b.target.value,b);const S=b.target.value;n.value=S,g.value==="change"&&(r.emit("update:modelValue",S),r.emit("update:value",S),r.emit("change",S))}function G(b){r.emit("keydown",b)}function Te(b){r.emit("keyup",b)}function De(b){const S=b.target;S.tagName!=="INPUT"&&S.tagName!=="TEXTAREA"&&b.preventDefault(),b.stopPropagation(),r.emit("mousedownEvent",b)}function $e(b){r.emit("mouseupEvent",b)}function Me(b){if(g.value==="blur"){const S=b.target.value;b.stopPropagation(),k(S)}}return{changeTextBoxValue:k,disabled:i,displayText:n,editable:M,hasFocused:y,inputGroupClass:p,inputType:R,isEmpty:v,modelValue:e,readonly:w,maxLength:x,onBlur:de,hasClearClass:D,onClick:fe,onFocus:K,onInput:Q,onKeydown:G,onKeyup:Te,onMousedown:De,onMouseup:$e,onTextBoxValueChange:Me,placeholder:d,textBoxClass:m,textBoxTitle:h,inputGroupStyle:j}}function Wt(t,r,e,n){const a=c.ref(t.disabled),i=c.ref(!1),o=c.ref("text"),s=c.ref(t.showBorder),u=c.ref(t.textAlign);c.computed(()=>t.editable||!t.readonly);const g=c.computed(()=>t.editable&&!t.disabled&&!t.readonly),D=c.computed(()=>!t.disabled&&i.value),T=c.computed(()=>e.value===""||e.value===null||e.value===void 0),M=c.computed(()=>t.placeholder),y=c.computed(()=>t.readonly||!t.editable),v=c.computed(()=>t.enableTitle?e.value:""),d=c.computed(()=>t.maxLength>0?t.maxLength:void 0),w=c.computed(()=>({"form-control":!0,"text-left":u.value==="left","text-center":u.value==="center","text-right":u.value==="right"})),h=c.computed(()=>({"f-cmp-inputgroup":!0,"input-group":!0,"f-state-disabled":!0,"f-state-editable":!1,"f-state-readonly":!0})),x=c.computed(()=>s.value?"":"border-width : 0 ");function m(p,C=!0){}return{changeTextBoxValue:m,disabled:a,displayText:n,editable:g,hasFocused:D,inputGroupClass:h,inputType:o,isEmpty:T,modelValue:e,readonly:y,maxLength:d,placeholder:M,textBoxClass:w,textBoxTitle:v,inputGroupStyle:x}}function Ft(t,r,e){const n=c.ref(!1),a=c.computed(()=>t.enableClear&&!t.readonly&&!t.disabled),{changeTextBoxValue:i,displayText:o,hasFocused:s,modelValue:u,isEmpty:g,hasClearClass:D}=e,T=c.ref(!1);function M(m){n.value=m,D&&(D.value=n.value)}const y=c.computed(()=>a.value&&!!(o!=null&&o.value)&&T.value);c.watch(o,()=>{M(y.value)});const v=c.computed(()=>({"input-group-text":!0,"input-group-clear":!0})),d=c.computed(()=>({width:"24px",display:n.value?"flex":"none"}));function w(m){m.stopPropagation(),a.value&&(i("",!0),M(!n.value),r.emit("clear"))}function h(m){var W,R;T.value=!0;const p=((W=m.target.querySelector("input"))==null?void 0:W.value)||"",C=((R=m.target.querySelector("textarea"))==null?void 0:R.value)||"",j=p||C;j!==u.value&&(u.value=j),a.value&&M(!!j)}function x(m){T.value=!1,a.value&&M(!1)}return{clearButtonClass:v,clearButtonStyle:d,hasShownClearButton:n,onClearValue:w,onMouseEnter:h,onMouseLeave:x,shouldShowClearButton:a}}const Bt={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},qt={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};class Ne{constructor(){f(this,"regexes",{YEAR:"[1-9]\\d{3}",MONTH:"1[0-2]|0?[1-9]",MONTH2:"1[0-2]|0[1-9]",MONTHNAME:"jan|january|feb|february|mar|march|apr|april|may|jun|june|jul|july|aug|august|sep|september|oct|october|nov|november|dec|december",DAYNAME:"mon|monday|tue|tuesday|wed|wednesday|thu|thursday|fri|friday|sat|saturday|sun|sunday",DAY:"3[01]|[12]\\d|0?[1-9]",DAY2:"3[01]|[12]\\d|0[1-9]",TIMEZONE:"[+-][01]\\d\\:?[0-5]\\d",H24:"[01]\\d|2[0-3]",MIN:"[0-5]\\d",SEC:"[0-5]\\d",MS:"\\d{3,}",H12:"0?[1-9]|1[012]",AMPM:"am|pm",UNIT:"year|month|week|day|hour|minute|second|millisecond"});f(this,"patterns",[["iso_8601",this.makePattern("^(_YEAR_)-(_MONTH_)-(_DAY_)$"),"$2/$3/$1"],["us",this.makePattern("^(_MONTH_)([\\/-])(_DAY_)\\2(_YEAR_)$"),"$1/$3/$4"],["world",this.makePattern("^(_DAY_)([\\/\\.])(_MONTH_)\\2(_YEAR_)$"),"$3/$1/$4"],["chicago",this.makePattern("^(?:(?:_DAYNAME_),? )?(_DAY_)([ -])(_MONTHNAME_)\\2(_YEAR_)$"),"$3 $1, $4"],["conversational",this.makePattern("^(?:(?:_DAYNAME_),? )?(_MONTHNAME_) (_DAY_),? (_YEAR_)$"),"$1 $2, $3"],["month_day_time_year",this.makePattern("^(?:_DAYNAME_) (_MONTHNAME_) (_DAY_) ((?:_H24_)\\:(?:_MIN_)(?:\\:_SEC_)?) (_TIMEZONE_) (_YEAR_)$"),r=>{const e=(""+this.getMonthByName(r[1])).padStart(2,"0"),n=(""+r[2]).padStart(2,"0"),a=r[5],i=r[3],o=r[4],s=a+"-"+e+"-"+n+"T"+i+o;return isNaN(s)?!1:s}],["unix",/^@(-?\d+)$/,r=>this.create(parseInt(r[1],10)*1e3)],["24_hour",this.makePattern("^(?:(.+?)(?: |T))?(_H24_)\\:(_MIN_)(?:\\:(_SEC_)(?:\\.(_MS_))?)? ?(?:GMT)?(_TIMEZONE_)?(?: \\([A-Z]+\\))?$"),r=>{let e;const n=r[1];if(n){if(e=this.create(n),isNaN(e))return!1}else e=new Date,e.setMilliseconds(0);const a=r[2],i=r[3],o=r[4],s=r[5];return e.setHours(parseFloat(a),parseFloat(i),parseFloat(o||0)),s&&e.setMilliseconds(+String(s).slice(0,3)),e}],["12_hour",this.makePattern("^(?:(.+) )?(_H12_)(?:\\:(_MIN_)(?:\\:(_SEC_))?)? ?(_AMPM_)$"),r=>{let e;const n=r[1];if(n){if(e=this.create(n),isNaN(e))return!1}else e=new Date,e.setMilliseconds(0);let a=parseFloat(r[2]);a=r[5].toLowerCase()==="am"?a===12?0:a:a===12?12:a+12;const i=r[3],o=r[4];return e.setHours(a,parseFloat(i||0),parseFloat(o||0)),e}]])}makePattern(r){return r=r.replace(/_([A-Z][A-Z0-9]+)_/g,(e,n)=>this.regexes[n]),new RegExp(r,"i")}getMonthByName(r){return Bt[String(r).slice(0,3).toLowerCase()]}getWeekdayByName(r){return qt[String(r).slice(0,3).toLowerCase()]}parse(r){if(!isNaN(Number(r)))return new Date(r);if(r=String(r).replace(/^\s*(.*)\s*$/,"$1"),r=r.replace(/\s{2,}/g," "),r==="")return Date.now();let e=0;for(;e<this.patterns.length;){const n=this.patterns[e];let a,i;typeof n[0]=="string"?(i=n[1],a=n[2]):(i=n[0],a=n[1]);const o=r.match(i);if(!o){e++;continue}if(typeof a=="function"){const s=a(o);if(s instanceof Date)return s}else{const s=Date.parse(r.replace(i,a));if(!isNaN(s))return new Date(s)}e++}return NaN}create(r){return r==null?Date.now():r instanceof Date?r:this.parse(r)}}function H(t){const r=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&r==="[object Date]"?new t.constructor(+t):typeof t=="number"||r==="[object Number]"||typeof t=="string"||r==="[object String]"?new Date(t):new Date(NaN)}function P(t,r){return t instanceof Date?new t.constructor(r):new Date(r)}function Ue(t,r){const e=H(t);return isNaN(r)?P(t,NaN):(r&&e.setDate(e.getDate()+r),e)}const Ve=6048e5,Lt=864e5,Oe=6e4,ke=36e5,St=1e3;let $t={};function ee(){return $t}function U(t,r){var s,u,g,D;const e=ee(),n=(r==null?void 0:r.weekStartsOn)??((u=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:u.weekStartsOn)??e.weekStartsOn??((D=(g=e.locale)==null?void 0:g.options)==null?void 0:D.weekStartsOn)??0,a=H(t),i=a.getDay(),o=(i<n?7:0)+i-n;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function te(t){return U(t,{weekStartsOn:1})}function Ze(t){const r=H(t),e=r.getFullYear(),n=P(t,0);n.setFullYear(e+1,0,4),n.setHours(0,0,0,0);const a=te(n),i=P(t,0);i.setFullYear(e,0,4),i.setHours(0,0,0,0);const o=te(i);return r.getTime()>=a.getTime()?e+1:r.getTime()>=o.getTime()?e:e-1}function Ke(t){const r=H(t);return r.setHours(0,0,0,0),r}function ge(t){const r=H(t),e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),+t-+e}function jt(t,r){const e=Ke(t),n=Ke(r),a=+e-ge(e),i=+n-ge(n);return Math.round((a-i)/Lt)}function zt(t){const r=Ze(t),e=P(t,0);return e.setFullYear(r,0,4),e.setHours(0,0,0,0),te(e)}function Xt(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function _e(t){if(!Xt(t)&&typeof t!="number")return!1;const r=H(t);return!isNaN(Number(r))}function Qt(t){const r=H(t),e=P(t,0);return e.setFullYear(r.getFullYear(),0,1),e.setHours(0,0,0,0),e}const Gt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ut=(t,r,e)=>{let n;const a=Gt[t];return typeof a=="string"?n=a:r===1?n=a.one:n=a.other.replace("{{count}}",r.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+n:n+" ago":n};function Ce(t){return(r={})=>{const e=r.width?String(r.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}const Vt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Zt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Kt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Jt={date:Ce({formats:Vt,defaultWidth:"full"}),time:Ce({formats:Zt,defaultWidth:"full"}),dateTime:Ce({formats:Kt,defaultWidth:"full"})},en={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tn=(t,r,e,n)=>en[t];function ie(t){return(r,e)=>{const n=e!=null&&e.context?String(e.context):"standalone";let a;if(n==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,s=e!=null&&e.width?String(e.width):o;a=t.formattingValues[s]||t.formattingValues[o]}else{const o=t.defaultWidth,s=e!=null&&e.width?String(e.width):t.defaultWidth;a=t.values[s]||t.values[o]}const i=t.argumentCallback?t.argumentCallback(r):r;return a[i]}}const nn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},rn={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},an={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},on={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},sn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},un={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},cn={ordinalNumber:(t,r)=>{const e=Number(t),n=e%100;if(n>20||n<10)switch(n%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:ie({values:nn,defaultWidth:"wide"}),quarter:ie({values:rn,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ie({values:an,defaultWidth:"wide"}),day:ie({values:on,defaultWidth:"wide"}),dayPeriod:ie({values:sn,defaultWidth:"wide",formattingValues:un,defaultFormattingWidth:"wide"})};function oe(t){return(r,e={})=>{const n=e.width,a=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],i=r.match(a);if(!i)return null;const o=i[0],s=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(s)?dn(s,T=>T.test(o)):ln(s,T=>T.test(o));let g;g=t.valueCallback?t.valueCallback(u):u,g=e.valueCallback?e.valueCallback(g):g;const D=r.slice(o.length);return{value:g,rest:D}}}function ln(t,r){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&r(t[e]))return e}function dn(t,r){for(let e=0;e<t.length;e++)if(r(t[e]))return e}function fn(t){return(r,e={})=>{const n=r.match(t.matchPattern);if(!n)return null;const a=n[0],i=r.match(t.parsePattern);if(!i)return null;let o=t.valueCallback?t.valueCallback(i[0]):i[0];o=e.valueCallback?e.valueCallback(o):o;const s=r.slice(a.length);return{value:o,rest:s}}}const hn=/^(\d+)(th|st|nd|rd)?/i,mn=/\d+/i,wn={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},gn={any:[/^b/i,/^(a|c)/i]},yn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bn={any:[/1/i,/2/i,/3/i,/4/i]},pn={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Tn={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Dn={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Mn={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},vn={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},xn={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Nn={ordinalNumber:fn({matchPattern:hn,parsePattern:mn,valueCallback:t=>parseInt(t,10)}),era:oe({matchPatterns:wn,defaultMatchWidth:"wide",parsePatterns:gn,defaultParseWidth:"any"}),quarter:oe({matchPatterns:yn,defaultMatchWidth:"wide",parsePatterns:bn,defaultParseWidth:"any",valueCallback:t=>t+1}),month:oe({matchPatterns:pn,defaultMatchWidth:"wide",parsePatterns:Tn,defaultParseWidth:"any"}),day:oe({matchPatterns:Dn,defaultMatchWidth:"wide",parsePatterns:Mn,defaultParseWidth:"any"}),dayPeriod:oe({matchPatterns:vn,defaultMatchWidth:"any",parsePatterns:xn,defaultParseWidth:"any"})},Je={code:"en-US",formatDistance:Ut,formatLong:Jt,formatRelative:tn,localize:cn,match:Nn,options:{weekStartsOn:0,firstWeekContainsDate:1}};function On(t){const r=H(t);return jt(r,Qt(r))+1}function et(t){const r=H(t),e=+te(r)-+zt(r);return Math.round(e/Ve)+1}function Pe(t,r){var D,T,M,y;const e=H(t),n=e.getFullYear(),a=ee(),i=(r==null?void 0:r.firstWeekContainsDate)??((T=(D=r==null?void 0:r.locale)==null?void 0:D.options)==null?void 0:T.firstWeekContainsDate)??a.firstWeekContainsDate??((y=(M=a.locale)==null?void 0:M.options)==null?void 0:y.firstWeekContainsDate)??1,o=P(t,0);o.setFullYear(n+1,0,i),o.setHours(0,0,0,0);const s=U(o,r),u=P(t,0);u.setFullYear(n,0,i),u.setHours(0,0,0,0);const g=U(u,r);return e.getTime()>=s.getTime()?n+1:e.getTime()>=g.getTime()?n:n-1}function kn(t,r){var s,u,g,D;const e=ee(),n=(r==null?void 0:r.firstWeekContainsDate)??((u=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:u.firstWeekContainsDate)??e.firstWeekContainsDate??((D=(g=e.locale)==null?void 0:g.options)==null?void 0:D.firstWeekContainsDate)??1,a=Pe(t,r),i=P(t,0);return i.setFullYear(a,0,n),i.setHours(0,0,0,0),U(i,r)}function tt(t,r){const e=H(t),n=+U(e,r)-+kn(e,r);return Math.round(n/Ve)+1}function O(t,r){const e=t<0?"-":"",n=Math.abs(t).toString().padStart(r,"0");return e+n}const V={y(t,r){const e=t.getFullYear(),n=e>0?e:1-e;return O(r==="yy"?n%100:n,r.length)},M(t,r){const e=t.getMonth();return r==="M"?String(e+1):O(e+1,2)},d(t,r){return O(t.getDate(),r.length)},a(t,r){const e=t.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(t,r){return O(t.getHours()%12||12,r.length)},H(t,r){return O(t.getHours(),r.length)},m(t,r){return O(t.getMinutes(),r.length)},s(t,r){return O(t.getSeconds(),r.length)},S(t,r){const e=r.length,n=t.getMilliseconds(),a=Math.trunc(n*Math.pow(10,e-3));return O(a,r.length)}},ne={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},nt={G:function(t,r,e){const n=t.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return e.era(n,{width:"abbreviated"});case"GGGGG":return e.era(n,{width:"narrow"});case"GGGG":default:return e.era(n,{width:"wide"})}},y:function(t,r,e){if(r==="yo"){const n=t.getFullYear(),a=n>0?n:1-n;return e.ordinalNumber(a,{unit:"year"})}return V.y(t,r)},Y:function(t,r,e,n){const a=Pe(t,n),i=a>0?a:1-a;if(r==="YY"){const o=i%100;return O(o,2)}return r==="Yo"?e.ordinalNumber(i,{unit:"year"}):O(i,r.length)},R:function(t,r){const e=Ze(t);return O(e,r.length)},u:function(t,r){const e=t.getFullYear();return O(e,r.length)},Q:function(t,r,e){const n=Math.ceil((t.getMonth()+1)/3);switch(r){case"Q":return String(n);case"QQ":return O(n,2);case"Qo":return e.ordinalNumber(n,{unit:"quarter"});case"QQQ":return e.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,r,e){const n=Math.ceil((t.getMonth()+1)/3);switch(r){case"q":return String(n);case"qq":return O(n,2);case"qo":return e.ordinalNumber(n,{unit:"quarter"});case"qqq":return e.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,r,e){const n=t.getMonth();switch(r){case"M":case"MM":return V.M(t,r);case"Mo":return e.ordinalNumber(n+1,{unit:"month"});case"MMM":return e.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(n,{width:"wide",context:"formatting"})}},L:function(t,r,e){const n=t.getMonth();switch(r){case"L":return String(n+1);case"LL":return O(n+1,2);case"Lo":return e.ordinalNumber(n+1,{unit:"month"});case"LLL":return e.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(n,{width:"wide",context:"standalone"})}},w:function(t,r,e,n){const a=tt(t,n);return r==="wo"?e.ordinalNumber(a,{unit:"week"}):O(a,r.length)},I:function(t,r,e){const n=et(t);return r==="Io"?e.ordinalNumber(n,{unit:"week"}):O(n,r.length)},d:function(t,r,e){return r==="do"?e.ordinalNumber(t.getDate(),{unit:"date"}):V.d(t,r)},D:function(t,r,e){const n=On(t);return r==="Do"?e.ordinalNumber(n,{unit:"dayOfYear"}):O(n,r.length)},E:function(t,r,e){const n=t.getDay();switch(r){case"E":case"EE":case"EEE":return e.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(n,{width:"short",context:"formatting"});case"EEEE":default:return e.day(n,{width:"wide",context:"formatting"})}},e:function(t,r,e,n){const a=t.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(r){case"e":return String(i);case"ee":return O(i,2);case"eo":return e.ordinalNumber(i,{unit:"day"});case"eee":return e.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(a,{width:"short",context:"formatting"});case"eeee":default:return e.day(a,{width:"wide",context:"formatting"})}},c:function(t,r,e,n){const a=t.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(r){case"c":return String(i);case"cc":return O(i,r.length);case"co":return e.ordinalNumber(i,{unit:"day"});case"ccc":return e.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(a,{width:"narrow",context:"standalone"});case"cccccc":return e.day(a,{width:"short",context:"standalone"});case"cccc":default:return e.day(a,{width:"wide",context:"standalone"})}},i:function(t,r,e){const n=t.getDay(),a=n===0?7:n;switch(r){case"i":return String(a);case"ii":return O(a,r.length);case"io":return e.ordinalNumber(a,{unit:"day"});case"iii":return e.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(n,{width:"short",context:"formatting"});case"iiii":default:return e.day(n,{width:"wide",context:"formatting"})}},a:function(t,r,e){const a=t.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,r,e){const n=t.getHours();let a;switch(n===12?a=ne.noon:n===0?a=ne.midnight:a=n/12>=1?"pm":"am",r){case"b":case"bb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,r,e){const n=t.getHours();let a;switch(n>=17?a=ne.evening:n>=12?a=ne.afternoon:n>=4?a=ne.morning:a=ne.night,r){case"B":case"BB":case"BBB":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,r,e){if(r==="ho"){let n=t.getHours()%12;return n===0&&(n=12),e.ordinalNumber(n,{unit:"hour"})}return V.h(t,r)},H:function(t,r,e){return r==="Ho"?e.ordinalNumber(t.getHours(),{unit:"hour"}):V.H(t,r)},K:function(t,r,e){const n=t.getHours()%12;return r==="Ko"?e.ordinalNumber(n,{unit:"hour"}):O(n,r.length)},k:function(t,r,e){let n=t.getHours();return n===0&&(n=24),r==="ko"?e.ordinalNumber(n,{unit:"hour"}):O(n,r.length)},m:function(t,r,e){return r==="mo"?e.ordinalNumber(t.getMinutes(),{unit:"minute"}):V.m(t,r)},s:function(t,r,e){return r==="so"?e.ordinalNumber(t.getSeconds(),{unit:"second"}):V.s(t,r)},S:function(t,r){return V.S(t,r)},X:function(t,r,e){const n=t.getTimezoneOffset();if(n===0)return"Z";switch(r){case"X":return at(n);case"XXXX":case"XX":return J(n);case"XXXXX":case"XXX":default:return J(n,":")}},x:function(t,r,e){const n=t.getTimezoneOffset();switch(r){case"x":return at(n);case"xxxx":case"xx":return J(n);case"xxxxx":case"xxx":default:return J(n,":")}},O:function(t,r,e){const n=t.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+rt(n,":");case"OOOO":default:return"GMT"+J(n,":")}},z:function(t,r,e){const n=t.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+rt(n,":");case"zzzz":default:return"GMT"+J(n,":")}},t:function(t,r,e){const n=Math.trunc(t.getTime()/1e3);return O(n,r.length)},T:function(t,r,e){const n=t.getTime();return O(n,r.length)}};function rt(t,r=""){const e=t>0?"-":"+",n=Math.abs(t),a=Math.trunc(n/60),i=n%60;return i===0?e+String(a):e+String(a)+r+O(i,2)}function at(t,r){return t%60===0?(t>0?"-":"+")+O(Math.abs(t)/60,2):J(t,r)}function J(t,r=""){const e=t>0?"-":"+",n=Math.abs(t),a=O(Math.trunc(n/60),2),i=O(n%60,2);return e+a+r+i}const it=(t,r)=>{switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},ot=(t,r)=>{switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Ee={p:ot,P:(t,r)=>{const e=t.match(/(P+)(p+)?/)||[],n=e[1],a=e[2];if(!a)return it(t,r);let i;switch(n){case"P":i=r.dateTime({width:"short"});break;case"PP":i=r.dateTime({width:"medium"});break;case"PPP":i=r.dateTime({width:"long"});break;case"PPPP":default:i=r.dateTime({width:"full"});break}return i.replace("{{date}}",it(n,r)).replace("{{time}}",ot(a,r))}},_n=/^D+$/,Cn=/^Y+$/,Pn=["D","DD","YY","YYYY"];function st(t){return _n.test(t)}function ut(t){return Cn.test(t)}function Ye(t,r,e){const n=En(t,r,e);if(console.warn(n),Pn.includes(t))throw new RangeError(n)}function En(t,r,e){const n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${r}\`) for formatting ${n} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Yn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,An=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,In=/^'([^]*?)'?$/,Hn=/''/g,Rn=/[a-zA-Z]/;function se(t,r,e){var D,T,M,y;const n=ee(),a=n.locale??Je,i=n.firstWeekContainsDate??((T=(D=n.locale)==null?void 0:D.options)==null?void 0:T.firstWeekContainsDate)??1,o=n.weekStartsOn??((y=(M=n.locale)==null?void 0:M.options)==null?void 0:y.weekStartsOn)??0,s=H(t);if(!_e(s))throw new RangeError("Invalid time value");let u=r.match(An).map(v=>{const d=v[0];if(d==="p"||d==="P"){const w=Ee[d];return w(v,a.formatLong)}return v}).join("").match(Yn).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const d=v[0];if(d==="'")return{isToken:!1,value:Wn(v)};if(nt[d])return{isToken:!0,value:v};if(d.match(Rn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:v}});a.localize.preprocessor&&(u=a.localize.preprocessor(s,u));const g={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return u.map(v=>{if(!v.isToken)return v.value;const d=v.value;(ut(d)||st(d))&&Ye(d,r,String(t));const w=nt[d[0]];return w(s,d,a.localize,g)}).join("")}function Wn(t){const r=t.match(In);return r?r[1].replace(Hn,"'"):t}function Fn(){return Object.assign({},ee())}function Bn(t){let e=H(t).getDay();return e===0&&(e=7),e}function qn(t,r){const e=r instanceof Date?P(r,0):new r(0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e}const Ln=10;class ct{constructor(){f(this,"subPriority",0)}validate(r,e){return!0}}class Sn extends ct{constructor(r,e,n,a,i){super(),this.value=r,this.validateValue=e,this.setValue=n,this.priority=a,i&&(this.subPriority=i)}validate(r,e){return this.validateValue(r,this.value,e)}set(r,e,n){return this.setValue(r,e,this.value,n)}}class $n extends ct{constructor(){super(...arguments);f(this,"priority",Ln);f(this,"subPriority",-1)}set(e,n){return n.timestampIsSet?e:P(e,qn(e,Date))}}class N{run(r,e,n,a){const i=this.parse(r,e,n,a);return i?{setter:new Sn(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(r,e,n){return!0}}class jn extends N{constructor(){super(...arguments);f(this,"priority",140);f(this,"incompatibleTokens",["R","u","t","T"])}parse(e,n,a){switch(n){case"G":case"GG":case"GGG":return a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"});case"GGGGG":return a.era(e,{width:"narrow"});case"GGGG":default:return a.era(e,{width:"wide"})||a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"})}}set(e,n,a){return n.era=a,e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}const Y={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},z={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function A(t,r){return t&&{value:r(t.value),rest:t.rest}}function _(t,r){const e=r.match(t);return e?{value:parseInt(e[0],10),rest:r.slice(e[0].length)}:null}function X(t,r){const e=r.match(t);if(!e)return null;if(e[0]==="Z")return{value:0,rest:r.slice(1)};const n=e[1]==="+"?1:-1,a=e[2]?parseInt(e[2],10):0,i=e[3]?parseInt(e[3],10):0,o=e[5]?parseInt(e[5],10):0;return{value:n*(a*ke+i*Oe+o*St),rest:r.slice(e[0].length)}}function lt(t){return _(Y.anyDigitsSigned,t)}function E(t,r){switch(t){case 1:return _(Y.singleDigit,r);case 2:return _(Y.twoDigits,r);case 3:return _(Y.threeDigits,r);case 4:return _(Y.fourDigits,r);default:return _(new RegExp("^\\d{1,"+t+"}"),r)}}function ye(t,r){switch(t){case 1:return _(Y.singleDigitSigned,r);case 2:return _(Y.twoDigitsSigned,r);case 3:return _(Y.threeDigitsSigned,r);case 4:return _(Y.fourDigitsSigned,r);default:return _(new RegExp("^-?\\d{1,"+t+"}"),r)}}function Ae(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function dt(t,r){const e=r>0,n=e?r:1-r;let a;if(n<=50)a=t||100;else{const i=n+50,o=Math.trunc(i/100)*100,s=t>=i%100;a=t+o-(s?100:0)}return e?a:1-a}function ft(t){return t%400===0||t%4===0&&t%100!==0}class zn extends N{constructor(){super(...arguments);f(this,"priority",130);f(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,n,a){const i=o=>({year:o,isTwoDigitYear:n==="yy"});switch(n){case"y":return A(E(4,e),i);case"yo":return A(a.ordinalNumber(e,{unit:"year"}),i);default:return A(E(n.length,e),i)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,a){const i=e.getFullYear();if(a.isTwoDigitYear){const s=dt(a.year,i);return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}const o=!("era"in n)||n.era===1?a.year:1-a.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}}class Xn extends N{constructor(){super(...arguments);f(this,"priority",130);f(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,n,a){const i=o=>({year:o,isTwoDigitYear:n==="YY"});switch(n){case"Y":return A(E(4,e),i);case"Yo":return A(a.ordinalNumber(e,{unit:"year"}),i);default:return A(E(n.length,e),i)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,a,i){const o=Pe(e,i);if(a.isTwoDigitYear){const u=dt(a.year,o);return e.setFullYear(u,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),U(e,i)}const s=!("era"in n)||n.era===1?a.year:1-a.year;return e.setFullYear(s,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),U(e,i)}}class Qn extends N{constructor(){super(...arguments);f(this,"priority",130);f(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,n){return ye(n==="R"?4:n.length,e)}set(e,n,a){const i=P(e,0);return i.setFullYear(a,0,4),i.setHours(0,0,0,0),te(i)}}class Gn extends N{constructor(){super(...arguments);f(this,"priority",130);f(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,n){return ye(n==="u"?4:n.length,e)}set(e,n,a){return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}class Un extends N{constructor(){super(...arguments);f(this,"priority",120);f(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,n,a){switch(n){case"Q":case"QQ":return E(n.length,e);case"Qo":return a.ordinalNumber(e,{unit:"quarter"});case"QQQ":return a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(e,{width:"wide",context:"formatting"})||a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,a){return e.setMonth((a-1)*3,1),e.setHours(0,0,0,0),e}}class Vn extends N{constructor(){super(...arguments);f(this,"priority",120);f(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,n,a){switch(n){case"q":case"qq":return E(n.length,e);case"qo":return a.ordinalNumber(e,{unit:"quarter"});case"qqq":return a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(e,{width:"wide",context:"standalone"})||a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,a){return e.setMonth((a-1)*3,1),e.setHours(0,0,0,0),e}}class Zn extends N{constructor(){super(...arguments);f(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);f(this,"priority",110)}parse(e,n,a){const i=o=>o-1;switch(n){case"M":return A(_(Y.month,e),i);case"MM":return A(E(2,e),i);case"Mo":return A(a.ordinalNumber(e,{unit:"month"}),i);case"MMM":return a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(e,{width:"wide",context:"formatting"})||a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,a){return e.setMonth(a,1),e.setHours(0,0,0,0),e}}class Kn extends N{constructor(){super(...arguments);f(this,"priority",110);f(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,n,a){const i=o=>o-1;switch(n){case"L":return A(_(Y.month,e),i);case"LL":return A(E(2,e),i);case"Lo":return A(a.ordinalNumber(e,{unit:"month"}),i);case"LLL":return a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(e,{width:"wide",context:"standalone"})||a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,a){return e.setMonth(a,1),e.setHours(0,0,0,0),e}}function Jn(t,r,e){const n=H(t),a=tt(n,e)-r;return n.setDate(n.getDate()-a*7),n}class er extends N{constructor(){super(...arguments);f(this,"priority",100);f(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,n,a){switch(n){case"w":return _(Y.week,e);case"wo":return a.ordinalNumber(e,{unit:"week"});default:return E(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,a,i){return U(Jn(e,a,i),i)}}function tr(t,r){const e=H(t),n=et(e)-r;return e.setDate(e.getDate()-n*7),e}class nr extends N{constructor(){super(...arguments);f(this,"priority",100);f(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,n,a){switch(n){case"I":return _(Y.week,e);case"Io":return a.ordinalNumber(e,{unit:"week"});default:return E(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,a){return te(tr(e,a))}}const rr=[31,28,31,30,31,30,31,31,30,31,30,31],ar=[31,29,31,30,31,30,31,31,30,31,30,31];class ir extends N{constructor(){super(...arguments);f(this,"priority",90);f(this,"subPriority",1);f(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,n,a){switch(n){case"d":return _(Y.date,e);case"do":return a.ordinalNumber(e,{unit:"date"});default:return E(n.length,e)}}validate(e,n){const a=e.getFullYear(),i=ft(a),o=e.getMonth();return i?n>=1&&n<=ar[o]:n>=1&&n<=rr[o]}set(e,n,a){return e.setDate(a),e.setHours(0,0,0,0),e}}class or extends N{constructor(){super(...arguments);f(this,"priority",90);f(this,"subpriority",1);f(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,n,a){switch(n){case"D":case"DD":return _(Y.dayOfYear,e);case"Do":return a.ordinalNumber(e,{unit:"date"});default:return E(n.length,e)}}validate(e,n){const a=e.getFullYear();return ft(a)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,a){return e.setMonth(0,a),e.setHours(0,0,0,0),e}}function Ie(t,r,e){var T,M,y,v;const n=ee(),a=(e==null?void 0:e.weekStartsOn)??((M=(T=e==null?void 0:e.locale)==null?void 0:T.options)==null?void 0:M.weekStartsOn)??n.weekStartsOn??((v=(y=n.locale)==null?void 0:y.options)==null?void 0:v.weekStartsOn)??0,i=H(t),o=i.getDay(),u=(r%7+7)%7,g=7-a,D=r<0||r>6?r-(o+g)%7:(u+g)%7-(o+g)%7;return Ue(i,D)}class sr extends N{constructor(){super(...arguments);f(this,"priority",90);f(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,n,a){switch(n){case"E":case"EE":case"EEE":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,a,i){return e=Ie(e,a,i),e.setHours(0,0,0,0),e}}class ur extends N{constructor(){super(...arguments);f(this,"priority",90);f(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,n,a,i){const o=s=>{const u=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+u};switch(n){case"e":case"ee":return A(E(n.length,e),o);case"eo":return A(a.ordinalNumber(e,{unit:"day"}),o);case"eee":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeeee":return a.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,a,i){return e=Ie(e,a,i),e.setHours(0,0,0,0),e}}class cr extends N{constructor(){super(...arguments);f(this,"priority",90);f(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,n,a,i){const o=s=>{const u=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+u};switch(n){case"c":case"cc":return A(E(n.length,e),o);case"co":return A(a.ordinalNumber(e,{unit:"day"}),o);case"ccc":return a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"ccccc":return a.day(e,{width:"narrow",context:"standalone"});case"cccccc":return a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(e,{width:"wide",context:"standalone"})||a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,a,i){return e=Ie(e,a,i),e.setHours(0,0,0,0),e}}function lr(t,r){const e=H(t),n=Bn(e),a=r-n;return Ue(e,a)}class dr extends N{constructor(){super(...arguments);f(this,"priority",90);f(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,n,a){const i=o=>o===0?7:o;switch(n){case"i":case"ii":return E(n.length,e);case"io":return a.ordinalNumber(e,{unit:"day"});case"iii":return A(a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return A(a.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return A(a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),i);case"iiii":default:return A(a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),i)}}validate(e,n){return n>=1&&n<=7}set(e,n,a){return e=lr(e,a),e.setHours(0,0,0,0),e}}class fr extends N{constructor(){super(...arguments);f(this,"priority",80);f(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,n,a){switch(n){case"a":case"aa":case"aaa":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,a){return e.setHours(Ae(a),0,0,0),e}}class hr extends N{constructor(){super(...arguments);f(this,"priority",80);f(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,n,a){switch(n){case"b":case"bb":case"bbb":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,a){return e.setHours(Ae(a),0,0,0),e}}class mr extends N{constructor(){super(...arguments);f(this,"priority",80);f(this,"incompatibleTokens",["a","b","t","T"])}parse(e,n,a){switch(n){case"B":case"BB":case"BBB":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,a){return e.setHours(Ae(a),0,0,0),e}}class wr extends N{constructor(){super(...arguments);f(this,"priority",70);f(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,n,a){switch(n){case"h":return _(Y.hour12h,e);case"ho":return a.ordinalNumber(e,{unit:"hour"});default:return E(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,a){const i=e.getHours()>=12;return i&&a<12?e.setHours(a+12,0,0,0):!i&&a===12?e.setHours(0,0,0,0):e.setHours(a,0,0,0),e}}class gr extends N{constructor(){super(...arguments);f(this,"priority",70);f(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,n,a){switch(n){case"H":return _(Y.hour23h,e);case"Ho":return a.ordinalNumber(e,{unit:"hour"});default:return E(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,a){return e.setHours(a,0,0,0),e}}class yr extends N{constructor(){super(...arguments);f(this,"priority",70);f(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,n,a){switch(n){case"K":return _(Y.hour11h,e);case"Ko":return a.ordinalNumber(e,{unit:"hour"});default:return E(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,a){return e.getHours()>=12&&a<12?e.setHours(a+12,0,0,0):e.setHours(a,0,0,0),e}}class br extends N{constructor(){super(...arguments);f(this,"priority",70);f(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,n,a){switch(n){case"k":return _(Y.hour24h,e);case"ko":return a.ordinalNumber(e,{unit:"hour"});default:return E(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,a){const i=a<=24?a%24:a;return e.setHours(i,0,0,0),e}}class pr extends N{constructor(){super(...arguments);f(this,"priority",60);f(this,"incompatibleTokens",["t","T"])}parse(e,n,a){switch(n){case"m":return _(Y.minute,e);case"mo":return a.ordinalNumber(e,{unit:"minute"});default:return E(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,a){return e.setMinutes(a,0,0),e}}class Tr extends N{constructor(){super(...arguments);f(this,"priority",50);f(this,"incompatibleTokens",["t","T"])}parse(e,n,a){switch(n){case"s":return _(Y.second,e);case"so":return a.ordinalNumber(e,{unit:"second"});default:return E(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,a){return e.setSeconds(a,0),e}}class Dr extends N{constructor(){super(...arguments);f(this,"priority",30);f(this,"incompatibleTokens",["t","T"])}parse(e,n){const a=i=>Math.trunc(i*Math.pow(10,-n.length+3));return A(E(n.length,e),a)}set(e,n,a){return e.setMilliseconds(a),e}}class Mr extends N{constructor(){super(...arguments);f(this,"priority",10);f(this,"incompatibleTokens",["t","T","x"])}parse(e,n){switch(n){case"X":return X(z.basicOptionalMinutes,e);case"XX":return X(z.basic,e);case"XXXX":return X(z.basicOptionalSeconds,e);case"XXXXX":return X(z.extendedOptionalSeconds,e);case"XXX":default:return X(z.extended,e)}}set(e,n,a){return n.timestampIsSet?e:P(e,e.getTime()-ge(e)-a)}}class vr extends N{constructor(){super(...arguments);f(this,"priority",10);f(this,"incompatibleTokens",["t","T","X"])}parse(e,n){switch(n){case"x":return X(z.basicOptionalMinutes,e);case"xx":return X(z.basic,e);case"xxxx":return X(z.basicOptionalSeconds,e);case"xxxxx":return X(z.extendedOptionalSeconds,e);case"xxx":default:return X(z.extended,e)}}set(e,n,a){return n.timestampIsSet?e:P(e,e.getTime()-ge(e)-a)}}class xr extends N{constructor(){super(...arguments);f(this,"priority",40);f(this,"incompatibleTokens","*")}parse(e){return lt(e)}set(e,n,a){return[P(e,a*1e3),{timestampIsSet:!0}]}}class Nr extends N{constructor(){super(...arguments);f(this,"priority",20);f(this,"incompatibleTokens","*")}parse(e){return lt(e)}set(e,n,a){return[P(e,a),{timestampIsSet:!0}]}}const Or={G:new jn,y:new zn,Y:new Xn,R:new Qn,u:new Gn,Q:new Un,q:new Vn,M:new Zn,L:new Kn,w:new er,I:new nr,d:new ir,D:new or,E:new sr,e:new ur,c:new cr,i:new dr,a:new fr,b:new hr,B:new mr,h:new wr,H:new gr,K:new yr,k:new br,m:new pr,s:new Tr,S:new Dr,X:new Mr,x:new vr,t:new xr,T:new Nr},kr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_r=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Cr=/^'([^]*?)'?$/,Pr=/''/g,Er=/\S/,Yr=/[a-zA-Z]/;function ht(t,r,e,n){var d,w,h,x;const a=Fn(),i=a.locale??Je,o=a.firstWeekContainsDate??((w=(d=a.locale)==null?void 0:d.options)==null?void 0:w.firstWeekContainsDate)??1,s=a.weekStartsOn??((x=(h=a.locale)==null?void 0:h.options)==null?void 0:x.weekStartsOn)??0;if(r==="")return t===""?H(e):P(e,NaN);const u={firstWeekContainsDate:o,weekStartsOn:s,locale:i},g=[new $n],D=r.match(_r).map(m=>{const p=m[0];if(p in Ee){const C=Ee[p];return C(m,i.formatLong)}return m}).join("").match(kr),T=[];for(let m of D){ut(m)&&Ye(m,r,t),st(m)&&Ye(m,r,t);const p=m[0],C=Or[p];if(C){const{incompatibleTokens:j}=C;if(Array.isArray(j)){const R=T.find(k=>j.includes(k.token)||k.token===p);if(R)throw new RangeError(`The format string mustn't contain \`${R.fullToken}\` and \`${m}\` at the same time`)}else if(C.incompatibleTokens==="*"&&T.length>0)throw new RangeError(`The format string mustn't contain \`${m}\` and any other token at the same time`);T.push({token:p,fullToken:m});const W=C.run(t,m,i.match,u);if(!W)return P(e,NaN);g.push(W.setter),t=W.rest}else{if(p.match(Yr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");if(m==="''"?m="'":p==="'"&&(m=Ar(m)),t.indexOf(m)===0)t=t.slice(m.length);else return P(e,NaN)}}if(t.length>0&&Er.test(t))return P(e,NaN);const M=g.map(m=>m.priority).sort((m,p)=>p-m).filter((m,p,C)=>C.indexOf(m)===p).map(m=>g.filter(p=>p.priority===m).sort((p,C)=>C.subPriority-p.subPriority)).map(m=>m[0]);let y=H(e);if(isNaN(y.getTime()))return P(e,NaN);const v={};for(const m of M){if(!m.validate(y,u))return P(e,NaN);const p=m.set(y,v,u);Array.isArray(p)?(y=p[0],Object.assign(v,p[1])):y=p}return P(e,y)}function Ar(t){return t.match(Cr)[1].replace(Pr,"'")}function mt(t,r){const e=(r==null?void 0:r.additionalDigits)??2,n=Wr(t);let a;if(n.date){const u=Fr(n.date,e);a=Br(u.restDateString,u.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);const i=a.getTime();let o=0,s;if(n.time&&(o=qr(n.time),isNaN(o)))return new Date(NaN);if(n.timezone){if(s=Lr(n.timezone),isNaN(s))return new Date(NaN)}else{const u=new Date(i+o),g=new Date(0);return g.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),g.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),g}return new Date(i+o+s)}const be={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ir=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Hr=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Rr=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Wr(t){const r={},e=t.split(be.dateTimeDelimiter);let n;if(e.length>2)return r;if(/:/.test(e[0])?n=e[0]:(r.date=e[0],n=e[1],be.timeZoneDelimiter.test(r.date)&&(r.date=t.split(be.timeZoneDelimiter)[0],n=t.substr(r.date.length,t.length))),n){const a=be.timezone.exec(n);a?(r.time=n.replace(a[1],""),r.timezone=a[1]):r.time=n}return r}function Fr(t,r){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+r)+"})|(\\d{2}|[+-]\\d{"+(2+r)+"})$)"),n=t.match(e);if(!n)return{year:NaN,restDateString:""};const a=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:i===null?a:i*100,restDateString:t.slice((n[1]||n[2]).length)}}function Br(t,r){if(r===null)return new Date(NaN);const e=t.match(Ir);if(!e)return new Date(NaN);const n=!!e[4],a=ue(e[1]),i=ue(e[2])-1,o=ue(e[3]),s=ue(e[4]),u=ue(e[5])-1;if(n)return Xr(r,s,u)?Sr(r,s,u):new Date(NaN);{const g=new Date(0);return!jr(r,i,o)||!zr(r,a)?new Date(NaN):(g.setUTCFullYear(r,i,Math.max(a,o)),g)}}function ue(t){return t?parseInt(t):1}function qr(t){const r=t.match(Hr);if(!r)return NaN;const e=He(r[1]),n=He(r[2]),a=He(r[3]);return Qr(e,n,a)?e*ke+n*Oe+a*1e3:NaN}function He(t){return t&&parseFloat(t.replace(",","."))||0}function Lr(t){if(t==="Z")return 0;const r=t.match(Rr);if(!r)return 0;const e=r[1]==="+"?-1:1,n=parseInt(r[2]),a=r[3]&&parseInt(r[3])||0;return Gr(n,a)?e*(n*ke+a*Oe):NaN}function Sr(t,r,e){const n=new Date(0);n.setUTCFullYear(t,0,4);const a=n.getUTCDay()||7,i=(r-1)*7+e+1-a;return n.setUTCDate(n.getUTCDate()+i),n}const $r=[31,null,31,30,31,30,31,31,30,31,30,31];function wt(t){return t%400===0||t%4===0&&t%100!==0}function jr(t,r,e){return r>=0&&r<=11&&e>=1&&e<=($r[r]||(wt(t)?29:28))}function zr(t,r){return r>=1&&r<=(wt(t)?366:365)}function Xr(t,r,e){return r>=1&&r<=53&&e>=0&&e<=6}function Qr(t,r,e){return t===24?r===0&&e===0:e>=0&&e<60&&r>=0&&r<60&&t>=0&&t<25}function Gr(t,r){return r>=0&&r<=59}function gt(t,r="HH:mm:ss"){if(!(t!=null&&t.trim()))return"";const e=se(new Date,"yyyy-MM-dd");return se(new Date(`${e} ${t.trim()}`),r)}function Ur(t,r){const{hour:e,minute:n,second:a,period:i=0}=t;let o=e;return r.includes("a")&&(o=e===0?12:e),r.replace("HH",String(o).padStart(2,"0")).replace("hh",String(o).padStart(2,"0")).replace("mm",String(n).padStart(2,"0")).replace("ss",String(a).padStart(2,"0")).replace("a",i===0?"AM":"PM")}function Vr(t,r="HH:mm:ss"){if(!(t!=null&&t.trim()))return{hour:0,minute:0,second:0};const e=se(new Date,"yyyy-MM-dd"),n=ht(`${e} ${t.trim()}`,`yyyy-MM-dd ${r}`,new Date);return{hour:n.getHours(),minute:n.getMinutes(),second:n.getSeconds()}}function yt(t){const r=t.getFullYear(),e=t.getMonth()+1,n=t.getDate(),a=t.getHours(),i=t.getMinutes(),o=t.getSeconds();return{year:r,month:e,day:n,hour:a,minute:i,second:o}}const Zr=(t,r)=>{const{year:e,month:n,day:a,hour:i,minute:o,second:s}=yt(t);return r.replace("yyyy",String(e)).replace("MM",String(n).padStart(2,"0")).replace("dd",String(a).padStart(2,"0")).replace("HH",String(i).padStart(2,"0")).replace("mm",String(o).padStart(2,"0")).replace("ss",String(s).padStart(2,"0"))},Kr=(t,r)=>t.getTime()-r.getTime();function bt(t){return t%4===0&&(t%100!==0||t%400===0)}function Jr(t,r){const e=[31,28,31,30,31,30,31,31,30,31,30,31];return r===2&&bt(t)?29:e[r-1]}function ea(){const t=new Ne;function r(n,a){if(!n||typeof n=="string"&&n.indexOf("0001")===0)return null;if(n instanceof Date)return isNaN(n.getTime())?null:n;let i=ht(n,a,new Date);if(isNaN(i.getTime())){let o=n;if(n.indexOf("-")>-1||n.indexOf("/")>-1){n.indexOf("/")>-1&&(o=n.replace(/\//g,"-"));const s="-";o=o.split(s).map(u=>u.length<2?u.padStart(2,"0"):u).join(s)}i=[mt,s=>t.create(s),s=>new Date(s)].reduce((s,u)=>isNaN(s)||isNaN(s==null?void 0:s.getTime())?u(o):s,i)}return i}function e(n,a){var o;let i=r(n,a);if(i===null)return"";if(_e(i))return i=mt(se(i,"yyyy-MM-dd HH:mm:ss")),_e(i)?se(i,a):"";if(typeof n=="string"&&(a.indexOf("HH")===0||a.indexOf("hh")===0)){const s=(o=n==null?void 0:n.match(/\d*/g))==null?void 0:o.filter(u=>u!=="").join(":");return(a==="HH"||a==="hh")&&(a+=":mm"),s?gt(s,a):""}return""}return{parseToDate:r,formatTo:e}}function pt(){function t(){const e=n=>{const a=Math.random()*16|0;return(n==="x"?a:a&3|8).toString(16)};return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e)}function r(e,n){const a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=[];let o;if(n=n||a.length,e)for(o=0;o<e;o++)i[o]=a[0|Math.random()*n];else{let s;for(i[8]=i[13]=i[18]=i[23]="-",i[14]="4",o=0;o<36;o++)i[o]||(s=0|Math.random()*16,i[o]=a[o===19?s&3|8:s])}return i.join("")}return{guid:t,uuid:r}}function ta(){function t(d,w=null){return Array.isArray(d)?I.max.apply(null,d).toFixed():d&&w?I.maximum(d,w).toFixed():(console.error("请提供比较的值firstValue、secondValue."),"")}function r(d,w=null){return Array.isArray(d)?I.min.apply(null,d).toFixed():d&&w?I.minimum(d,w).toFixed():(console.error("请提供比较的值firstValue、secondValue."),"")}function e(d){return I.sum.apply(null,d).toFixed()}function n(d,w){return new I(d).div(w).toFixed()}function a(d,w){return new I(d).plus(w).toFixed()}function i(d,w){return new I(d).times(w).toFixed()}function o(d,w){return new I(d).minus(w).toFixed()}function s(d,w){return new I(d).eq(w)}function u(d,w){return new I(d).lt(w)}function g(d,w){return new I(d).gt(w)}function D(d){return new I(d).toNumber()}function T(d,w=0){return new I(d).toFixed(w)}function M(d){const w=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],h=["","拾","佰","仟"],x=["","万","亿","兆"],m=["角","分","毫","厘"],p="整",C="元";let W,R,k="",de;if(d==="")return"";const fe=parseFloat(d);if(fe>=1e15)return"";if(fe===0)return k=w[0]+C+p,k;if(d=fe.toString(),d.indexOf(".")===-1?(W=d,R=""):(de=d.split("."),W=de[0],R=de[1].substr(0,4)),parseInt(W,10)>0){let K=0;const Q=W.length;for(let G=0;G<Q;G++){const Te=W.substr(G,1),De=Q-G-1,$e=De/4,Me=De%4;Te==="0"?K++:(K>0&&(k+=w[0]),K=0,k+=w[parseInt(Te,10)]+h[Me]),Me===0&&K<4&&(k+=x[$e])}k+=C}if(R!==""){const K=R.length;for(let Q=0;Q<K;Q++){const G=R.substr(Q,1);G!=="0"&&(k+=w[Number(G)]+m[Q])}}return k===""?k+=w[0]+C+p:R===""&&(k+=p),k}function y(d,w){let h=d==null||typeof d=="number"&&isNaN(d)?"":String(d);return w&&(w.prefix&&(h=h.replace(new RegExp(w.prefix,"g"),"")),w.suffix&&(h=h.replace(new RegExp(w.suffix,"g"),"")),h=h.replace(/\\,/g,"")),h}function v(d,w){const h=new I(d),x={prefix:w.prefix||"",suffix:w.suffix||"",decimalSeparator:w.decimalSeparator||".",groupSeparator:w.groupSeparator||"",groupSize:3};if(h.isNaN())return"";let m=w.precision||0;return m=Number(m),h.toFormat(m,x)}return{formatTo:v,removeFormat:y,convertCurrency:M,toFixed:T,toNumber:D,greaterThan:g,lessThan:u,equal:s,minus:o,multiplied:i,plus:a,average:n,sum:e,min:r,max:t}}const na=["秒","分钟","小时","天","周","个月","年"],Re=[60,60,24,7,365/7/12,12];function ra(){const t=new Ne;function r(o,s){if(s===0)return["刚刚","片刻后"];const u=na[~~(s/2)];return[`${o} ${u}前`,`${o} ${u}后`]}function e(o){if(typeof o=="object")return o;{const s=t.create(o);return typeof s=="object"?s:new Date}}function n(o,s){return(+(s?e(s):new Date)-+e(o))/1e3}function a(o){const s=o<0?1:0;o=Math.abs(o);let u=0;for(;o>=Re[u]&&u<Re.length;u++)o/=Re[u];return o=Math.floor(o),u*=2,o>(u===0?9:1)&&(u+=1),r(o,u)[s].replace("%s",o.toString())}function i(o,s){const u=n(o,s&&s.relativeDate);return a(u)}return{formatTo:i}}const Tt=["moz","ms","webkit"];function aa(){let t=0;return r=>{const e=new Date().getTime(),n=Math.max(0,16-(e-t)),a=setTimeout(()=>{r(e+n)},n);return t=e+n,a}}function ia(){if(typeof window>"u")return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const t=Tt.filter(r=>`${r}RequestAnimationFrame`in window)[0];return t?window[`${t}RequestAnimationFrame`]:aa()}function oa(t){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(t);const r=Tt.filter(e=>`${e}CancelAnimationFrame`in window||`${e}CancelRequestAnimationFrame`in window)[0];return r?(window[`${r}CancelAnimationFrame`]||window[`${r}CancelRequestAnimationFrame`]).call(this,t):clearTimeout(t)}const sa=ia();function ua(t,r){return((r==null?void 0:r.split(" "))||[]).reduce((n,a)=>(a&&(n[a]=!0),n),t),t}function ca(t,r){return((r==null?void 0:r.split(";"))||[]).forEach(n=>{var a,i;if(n){const o=n.split(":");if(o.length>=2&&((a=o[0])!=null&&a.trim())&&((i=o[1])!=null&&i.trim())){const s=o[0].trim(),u=o.slice(1).join(":").trim();t[s]=u}}}),t}const la=t=>{const r=t;return r.install=function(e){e.component(r.name,t)},t},da=Symbol("checkboxGroupContext"),fa=Symbol("controller schema repository inject token"),ha=Symbol("radioGroupContext"),ma=Symbol("form schema repository inject token");function wa(t,r,e,n){const{guid:a}=pt(),i=`checkbox_${a().slice(0,8)}`,o=c.computed(()=>(e==null?void 0:e.name)||i),s=c.computed(()=>t.readonly||t.disabled||(e==null?void 0:e.readonly)||(e==null?void 0:e.disabled)),u=c.computed(()=>(e==null?void 0:e.type)==="button"),g=c.computed(()=>(e==null?void 0:e.type)==="default"||Yt.isUndefined(e==null?void 0:e.type)),D=c.ref(t.modelValue);function T(x){return x?e.isStringValue?x.split(e.separator):x:[]}function M(x){return e.modelValue?e.modelValue+e.separator+x:x}const y=c.computed(()=>e?e.modelValue===t.value||T(e.modelValue).includes(t.value):(t.trueValue!=null?t.modelValue===t.trueValue:!!t.modelValue)||!!t.checked),v=c.computed(()=>({btn:!0,"f-radio-button":!0,active:y.value,"f-radio-button-primary":!0})),d=c.ref(t.indeterminate);return c.watch(()=>t.modelValue,x=>{D.value=x}),c.watch(()=>t.indeterminate,x=>{d.value=x}),{buttonClass:v,checked:y,disabled:s,indeterminate:d,name:o,onClickCheckBox:x=>{if(x.stopPropagation(),!s.value)if(e)if(y.value){const m=T(e.modelValue).filter(C=>C!==t.value),p=e.isStringValue?m.join(e.separator):m;n.emit("update:modelValue",p),n.emit("changeValue",p)}else{const m=e.isStringValue?M(t.value):[...e.modelValue,t.value];n.emit("update:modelValue",m),n.emit("changeValue",m)}else r.emit("update:checked",!y.value),r.emit("update:modelValue",y.value?t.falseValue:t.trueValue),r.emit("changeValue",y.value?t.falseValue:t.trueValue),r.emit("change",{originalEvent:x,checked:!y.value})},onClickRadio:x=>{s.value||(x.stopPropagation(),e?y.value||(n.emit("update:modelValue",t.value),n.emit("changeValue",t.value)):r.emit("update:checked",!y.value))},shouldRenderButton:u,shouldRenderNative:g}}const ga={checked:{type:Boolean,default:!1},direction:{type:String,default:"horizontal"},type:{type:String,default:"default"},size:{type:String,default:"middle"},options:{type:Object}},ya="",$=8;function Z(t,r){const e=(t&65535)+(r&65535);return(t>>16)+(r>>16)+(e>>16)<<16|e&65535}function ba(t,r){return t<<r|t>>>32-r}function pe(t,r,e,n,a,i){return Z(ba(Z(Z(r,t),Z(n,i)),a),e)}function F(t,r,e,n,a,i,o){return pe(r&e|~r&n,t,r,a,i,o)}function B(t,r,e,n,a,i,o){return pe(r&n|e&~n,t,r,a,i,o)}function q(t,r,e,n,a,i,o){return pe(r^e^n,t,r,a,i,o)}function L(t,r,e,n,a,i,o){return pe(e^(r|~n),t,r,a,i,o)}function ce(t){const r=[],e=(1<<$)-1;for(let n=0;n<t.length*$;n+=$)r[n>>5]|=(t.charCodeAt(n/$)&e)<<n%32;return r}function Dt(t){let r="";const e=(1<<$)-1;for(let n=0;n<t.length*32;n+=$)r+=String.fromCharCode(t[n>>5]>>>n%32&e);return r}function Mt(t){const r="0123456789abcdef";let e="";for(let n=0;n<t.length*4;n++)e+=r.charAt(t[n>>2]>>n%4*8+4&15)+r.charAt(t[n>>2]>>n%4*8&15);return e}function vt(t){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";let e="";for(let n=0;n<t.length*4;n+=3){const a=(t[n>>2]>>8*(n%4)&255)<<16|(t[n+1>>2]>>8*((n+1)%4)&255)<<8|t[n+2>>2]>>8*((n+2)%4)&255;for(let i=0;i<4;i++)n*8+i*6>t.length*32?e+=ya:e+=r.charAt(a>>6*(3-i)&63)}return e}function re(t,r){t[r>>5]|=128<<r%32,t[(r+64>>>9<<4)+14]=r;let e=1732584193,n=-271733879,a=-1732584194,i=271733878;for(let o=0;o<t.length;o+=16){const s=e,u=n,g=a,D=i;e=F(e,n,a,i,t[o+0],7,-680876936),i=F(i,e,n,a,t[o+1],12,-389564586),a=F(a,i,e,n,t[o+2],17,606105819),n=F(n,a,i,e,t[o+3],22,-1044525330),e=F(e,n,a,i,t[o+4],7,-176418897),i=F(i,e,n,a,t[o+5],12,1200080426),a=F(a,i,e,n,t[o+6],17,-1473231341),n=F(n,a,i,e,t[o+7],22,-45705983),e=F(e,n,a,i,t[o+8],7,1770035416),i=F(i,e,n,a,t[o+9],12,-1958414417),a=F(a,i,e,n,t[o+10],17,-42063),n=F(n,a,i,e,t[o+11],22,-1990404162),e=F(e,n,a,i,t[o+12],7,1804603682),i=F(i,e,n,a,t[o+13],12,-40341101),a=F(a,i,e,n,t[o+14],17,-1502002290),n=F(n,a,i,e,t[o+15],22,1236535329),e=B(e,n,a,i,t[o+1],5,-165796510),i=B(i,e,n,a,t[o+6],9,-1069501632),a=B(a,i,e,n,t[o+11],14,643717713),n=B(n,a,i,e,t[o+0],20,-373897302),e=B(e,n,a,i,t[o+5],5,-701558691),i=B(i,e,n,a,t[o+10],9,38016083),a=B(a,i,e,n,t[o+15],14,-660478335),n=B(n,a,i,e,t[o+4],20,-405537848),e=B(e,n,a,i,t[o+9],5,568446438),i=B(i,e,n,a,t[o+14],9,-1019803690),a=B(a,i,e,n,t[o+3],14,-187363961),n=B(n,a,i,e,t[o+8],20,1163531501),e=B(e,n,a,i,t[o+13],5,-1444681467),i=B(i,e,n,a,t[o+2],9,-51403784),a=B(a,i,e,n,t[o+7],14,1735328473),n=B(n,a,i,e,t[o+12],20,-1926607734),e=q(e,n,a,i,t[o+5],4,-378558),i=q(i,e,n,a,t[o+8],11,-2022574463),a=q(a,i,e,n,t[o+11],16,1839030562),n=q(n,a,i,e,t[o+14],23,-35309556),e=q(e,n,a,i,t[o+1],4,-1530992060),i=q(i,e,n,a,t[o+4],11,1272893353),a=q(a,i,e,n,t[o+7],16,-155497632),n=q(n,a,i,e,t[o+10],23,-1094730640),e=q(e,n,a,i,t[o+13],4,681279174),i=q(i,e,n,a,t[o+0],11,-358537222),a=q(a,i,e,n,t[o+3],16,-722521979),n=q(n,a,i,e,t[o+6],23,76029189),e=q(e,n,a,i,t[o+9],4,-640364487),i=q(i,e,n,a,t[o+12],11,-421815835),a=q(a,i,e,n,t[o+15],16,530742520),n=q(n,a,i,e,t[o+2],23,-995338651),e=L(e,n,a,i,t[o+0],6,-198630844),i=L(i,e,n,a,t[o+7],10,1126891415),a=L(a,i,e,n,t[o+14],15,-1416354905),n=L(n,a,i,e,t[o+5],21,-57434055),e=L(e,n,a,i,t[o+12],6,1700485571),i=L(i,e,n,a,t[o+3],10,-1894986606),a=L(a,i,e,n,t[o+10],15,-1051523),n=L(n,a,i,e,t[o+1],21,-2054922799),e=L(e,n,a,i,t[o+8],6,1873313359),i=L(i,e,n,a,t[o+15],10,-30611744),a=L(a,i,e,n,t[o+6],15,-1560198380),n=L(n,a,i,e,t[o+13],21,1309151649),e=L(e,n,a,i,t[o+4],6,-145523070),i=L(i,e,n,a,t[o+11],10,-1120210379),a=L(a,i,e,n,t[o+2],15,718787259),n=L(n,a,i,e,t[o+9],21,-343485551),e=Z(e,s),n=Z(n,u),a=Z(a,g),i=Z(i,D)}return[e,n,a,i]}function We(t,r){let e=ce(t);e.length>16&&(e=re(e,t.length*$));const n=Array(16),a=Array(16);for(let o=0;o<16;o++)n[o]=e[o]^909522486,a[o]=e[o]^1549556828;const i=re(n.concat(ce(r)),512+r.length*$);return re(a.concat(i),640)}function pa(t,r="hex"){return r==="hex"?Mt(re(ce(t),t.length*$)):r==="b64"?vt(re(ce(t),t.length*$)):Dt(re(ce(t),t.length*$))}function Ta(t,r,e="hex"){return e==="hex"?Mt(We(t,r)):e==="b64"?vt(We(t,r)):Dt(We(t,r))}const Da=(t,r)=>{if(!r||!t)return"";const e=typeof r=="string";return e&&Object.prototype.hasOwnProperty.call(t,r)?t[r]:(e?r.split("."):r).reduce((i,o)=>{if(i!=null)return i[o]},t)},Ma=(t,r,e)=>{if(typeof e=="string"&&Object.prototype.hasOwnProperty.call(r,e)){r[e]=t;return}let n=[];typeof e=="string"&&(n=[...e.split(".")]),Array.isArray(e)&&(n=e);let a=r;for(;n&&n.length>1;)a=a[n.shift()];a[n.shift()]=t};var xt=(t=>(t.SimpleField="SimpleField",t.ComplexField="ComplexField",t))(xt||{}),Nt=(t=>(t.StringType="StringType",t.TextType="TextType",t.NumericType="NumericType",t.BooleanType="BooleanType",t.DateType="DateType",t.DateTimeType="DateTimeType",t.EnumType="EnumType",t.EntityType="EntityType",t.HierarchyType="HierarchyType",t.ObjectType="ObjectType",t.BigNumericType="BigNumericType",t))(Nt||{}),Ot=(t=>(t.String="String",t.DateTime="DateTime",t.Date="Date",t.Enum="Enum",t.Boolean="Boolean",t.Number="Number",t.Text="Text",t.BigNumber="BigNumber",t))(Ot||{}),kt=(t=>(t.String="String",t.Text="Text",t.Integer="Integer",t.Decimal="Decimal",t.Boolean="Boolean",t.Date="Date",t.DateTime="DateTime",t.Binary="Binary",t))(kt||{});const va="commands";function xa(){function t(e,n){return e.filter(i=>n.indexOf(i)===-1)}function r(e,n){for(let a=0;a<n.length;a++)if(!e.includes(n[a]))return!1;return!0}return{getDifference:t,isBInA:r}}function _t(){function t(h){return h===void 0}function r(h){return h===null}function e(h){return typeof h=="string"&&h}function n(h){return h!=null}function a(h){return typeof h=="string"}function i(h){return typeof h=="number"}function o(h){return typeof h=="boolean"}function s(h){return typeof h=="symbol"}function u(h){return typeof h=="function"}function g(h){return h!==null&&typeof h=="object"}function D(h){return g(h)&&u(h.then)&&u(h.catch)}function T(h){return/^-?\d+(\.\d+)?$/.test(h)}function M(h){return typeof h=="object"&&h instanceof Date}function y(h){if(n(h))return h=String(h),T(h)?`${h}px`:h}function v(h){return h.replace(/(?=[A-Z])/g,"-").replace(/^-/,"").toLowerCase()}const{isArray:d}=Array;function w(h,x=2){if(x<=0||!Number.isInteger(x))return!1;let m=h;for(let p=0;p<x;p++){if(!d(m)||p<x-1&&m.length===0)return!1;m=m[0]}return!0}return{isNull:r,isUndefined:t,isValidString:e,isDef:n,isString:a,isNumber:i,isBoolean:o,isArray:d,isMultiArray:w,isSymbol:s,isFunction:u,isObject:g,isPromise:D,isNumeric:T,isDate:M,addUnit:y,camelToKebabCase:v}}function Na(t,r=500){const e=c.ref(t.value);let n;const a=c.watch(t,o=>{clearTimeout(n),n=setTimeout(()=>{e.value=o},r)}),i=()=>{clearTimeout(n),a()};return c.onUnmounted(i),{delayedValue:e,cleanup:i}}function Oa(t,...r){return r.forEach(e=>{delete t[e]}),t}const Fe=Symbol("FConfig");class Be{static get config(){return this._config}static set config(r){this._config={...this._config,...r}}}f(Be,"_config",{basePath:"",size:"medium"});function qe(){const t=c.inject(Fe,null);return t||c.ref(Be.config)}const ka=c.defineComponent({name:"FConfigProvider",props:{config:{type:Object,default:()=>({})}},setup(t,{slots:r}){const e=c.computed(()=>t.config);return c.provide(Fe,e),()=>c.renderSlot(r,"default")}}),le={key:"F_RICHTEXTEDITOR_ASSETSPATH",value:"/platform/common/web/@farris/ui-editor-vue3/assets/farris-editor/",basePath:c.ref("")};function _a(){const t="F_THIRD_COMPONENTS",{basePath:r}=qe().value,e=r+"/platform/common/web/renderer/third-party-components.json?v="+new Date().getTime();r&&le.value.indexOf(r)===-1&&(le.value=r+le.value,le.basePath.value=r);async function n(a){const o=await(await fetch(a||e)).json();return o!=null&&o.length?(window[t]={},await Promise.all(o.map(async s=>{var g;const u=await((g=window.System)==null?void 0:g.import(s.url));window[t][s.module]=u[s.module]})),window[t]):{}}return{loadThirdComponents:n,globalStorageKey:t}}function Ca(t,r){const e=new ResizeObserver(r);return e.observe(t),()=>{e.unobserve(t)}}const Pa=t=>{if(!t||!(t instanceof Element))return!1;const r=window.getComputedStyle(t);return r.display==="none"||r.visibility==="hidden"?!1:t.offsetWidth>0||t.offsetHeight>0||t.getClientRects&&t.getClientRects().length>0},Ea=()=>{const t=["body>.popover.fade.in","body>.modal.fade.show","body>.f-filter-panel-wrapper","body .f-drawer",".f-field-search-box .condition-panel"],r=document.body.querySelectorAll(t.join(","));let e=0;for(let n=0;n<r.length;n++){const a=r[n];if(!Pa(a))continue;const i=window.getComputedStyle?window.getComputedStyle(a):null;if(!i)continue;const o=parseInt(i.zIndex,10);if(o&&!isNaN(o)){const s=Number(o);Number.isFinite(s)&&s>e&&(e=s)}}return e?e+1:0};function Le(){if(typeof window>"u"||typeof navigator>"u")return!1;const t=navigator.userAgent||navigator.vendor||window.opera,r=[/iPhone/i,/iPod/i,/Android.*Mobile/i,/webOS/i,/BlackBerry/i,/IEMobile/i,/Opera Mini/i,/Harmony/i],e=[/iPad/i,/Android(?!.*Mobile)/i,/Tablet/i,/PlayBook/i,/Kindle/i,/Silk/i];for(const u of e)if(u.test(t))return!1;for(const u of r)if(u.test(t))return!0;if(typeof screen>"u")return!1;const n="ontouchstart"in window||navigator.maxTouchPoints>0,a=screen.width,i=screen.height,o=Math.min(a,i);return!!(n&&o<=768)}function Ct(){const t=Le();return t&&document.body.classList.add("f-mobile"),t}typeof document<"u"&&Ct();const ae="nativeGoBackFunctionStackUtils";function Ya(){const t=Le();function r(a){t&&window[ae]&&window[ae].pushNativeGoBackFunction(a)}function e(){t&&window[ae]&&window[ae].popNativeGoBackFunction()}function n(){if(t&&window[ae])return window[ae].peekNativeGoBackFunction()}return{pushNativeGoBackFunction:r,popNativeGoBackFunction:e,peekNativeGoBackFunction:n}}function Aa(t){return t?Object.keys(t).reduce((r,e)=>(e.startsWith("data-")&&(r[e]=t[e]),r),{}):{}}const Se=5;function Ia(t,r){return t>r?"horizontal":r>t?"vertical":""}function Ha(){const t=c.ref(0),r=c.ref(0),e=c.ref(0),n=c.ref(0),a=c.ref(0),i=c.ref(0),o=c.ref(""),s=c.ref(!0),u=()=>o.value==="vertical",g=()=>o.value==="horizontal",D=()=>{e.value=0,n.value=0,a.value=0,i.value=0,o.value="",s.value=!0};return{move:y=>{const v=y.touches[0];e.value=(v.clientX<0?0:v.clientX)-t.value,n.value=v.clientY-r.value,a.value=Math.abs(e.value),i.value=Math.abs(n.value);const d=10;(!o.value||a.value<d&&i.value<d)&&(o.value=Ia(a.value,i.value)),s.value&&(a.value>Se||i.value>Se)&&(s.value=!1)},start:y=>{D(),t.value=y.touches[0].clientX,r.value=y.touches[0].clientY},reset:D,startX:t,startY:r,deltaX:e,deltaY:n,offsetX:a,offsetY:i,direction:o,isVertical:u,isHorizontal:g,isTap:s}}const Ra=t=>{const{maxOverflowY:r=0,TimeThreshold:e=200,YThreshold:n=88}=t;let a=0,i=0,o=0;return{start:T=>{a=new Date().getTime(),i=T},move:T=>{o=T;const M=new Date().getTime();M-a>e&&(i=o,a=M)},end:()=>{const M=new Date().getTime()-a,y=Math.abs(o-i);return M<e&&y>n},get:(T,M,y)=>{const v={noBounce:2500,weekBounce:800,strongBounce:400},d={noBounce:"cubic-bezier(.17, .89, .45, 1)",weekBounce:"cubic-bezier(.25, .46, .45, .94)",strongBounce:"cubic-bezier(.25, .46, .45, .94)"};let w="noBounce";const h=.003,x=10,m=300;let p=0;const j=new Date().getTime()-a,W=T-i,R=2*Math.abs(W)/j;let k=T+R/h*(W<0?-1:1);return k<M?(p=M-k,w=p>m?"strongBounce":"weekBounce",k=Math.max(M-r,M-p/x)):k>y&&(p=k-y,w=p>m?"strongBounce":"weekBounce",k=Math.min(y+r,y+p/x)),{destination:k,duration:v[w],bezier:d[w]}}}},Wa=t=>{const{isArray:r,camelToKebabCase:e}=_t(),n=e(t),a=s=>{if(!s)return n;const u=r(s)?s.join("__"):s;return`${n}__${u}`},i=(s,u)=>{const g=s?`--${s}`:"";return u?a(u)+g:n+g};return{bem:(s,u)=>u?i(u,s):a(s),getElementClass:a,getModifierClass:i}};function Fa(t){return t.match(/\.(jpeg|jpg|gif|png|svg|bmp|webp)$/)!=null}function Pt(t){return t.indexOf("data:image/")>-1}function Ba(t){return!(!t||Pt(t)||t.startsWith("http"))}function qa(t){const{basePath:r}=qe().value;return!Ba(t)||!r?t:(r.endsWith("/")?r.slice(0,-1):r)+(t.startsWith("/")?"":"/")+t}const La={install(t){t.directive("area-response",we),t.directive("auto-title",Ge)},register(t,r,e,n){t["area-response"]=we},registerDesigner(t,r){t["area-response"]=we}};l.CHECKBOX_CONTEXT=da,l.ControllerSchemaRepositorySymbol=fa,l.DateConverter=Ne,l.EVENT_PROPERTY_TAB_IDS=va,l.FConfigProvider=ka,l.FConfigService=Be,l.F_CONFIG_INJECTION_KEY=Fe,l.FormSchemaEntityField$Type=xt,l.FormSchemaEntityFieldType$Type=Nt,l.FormSchemaEntityFieldTypeName=Ot,l.FormSchemaRepositorySymbol=ma,l.GSPElementDataType=kt,l.RADIOGROUP_CONTEXT=ha,l.TAP_OFFSET=Se,l.addClass=me,l.areaResponseDirective=we,l.autoTitleDirective=Ge,l.cancelRequestAnimationFrame=oa,l.compareDate=Kr,l.default=La,l.encrypt=pa,l.excludeProperties=Oa,l.extractDataAttrs=Aa,l.formatDate=Zr,l.formatObjecTime=Ur,l.formatTime=gt,l.getCustomClass=ua,l.getCustomStyle=ca,l.getDateObject=yt,l.getDaysInMonth=Jr,l.getElementWithClassList=ve,l.getMaxZIndex=Ea,l.getTimeObject=Vr,l.globalRichTextEditorAssetsPath=le,l.hmacEncrypt=Ta,l.isBase64ImageUrl=Pt,l.isImageUrl=Fa,l.isLeapYear=bt,l.isMobilePhone=Le,l.radioCheckboxCommonProps=ga,l.removeClass=xe,l.resolveField=Da,l.setFieldValue=Ma,l.urlPrependBasePath=qa,l.useArrayProcessor=xa,l.useBem=Wa,l.useCheck=wa,l.useClear=Ft,l.useCommonUtils=_t,l.useDateFormat=ea,l.useDelayedRef=Na,l.useFarrisConfig=qe,l.useGuid=pt,l.useMobileBodyClass=Ct,l.useNativeBack=Ya,l.useNumberFormat=ta,l.useReqAnimationFrame=sa,l.useResizeObserver=Ca,l.useTextBox=Rt,l.useTextBoxDesign=Wt,l.useThirdComponent=_a,l.useTimeAgo=ra,l.useTouch=Ha,l.useTouchMomentum=Ra,l.withInstall=la,Object.defineProperties(l,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|