@duxweb/dvha-core 0.1.21 → 0.1.22

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.
Files changed (48) hide show
  1. package/dist/cjs/components/loader/loader.cjs +1 -1
  2. package/dist/cjs/components/loader/remote/loader.cjs +1 -1
  3. package/dist/cjs/components/loader/remote/render.cjs +1 -1
  4. package/dist/cjs/hooks/i18n.cjs +1 -1
  5. package/dist/cjs/hooks/json/utils/expressionParser.cjs +1 -1
  6. package/dist/cjs/hooks/manage.cjs +1 -1
  7. package/dist/cjs/index.cjs +1 -1
  8. package/dist/cjs/provider/app.cjs +1 -1
  9. package/dist/cjs/provider/tab.cjs +1 -1
  10. package/dist/cjs/stores/manage.cjs +1 -1
  11. package/dist/cjs/stores/theme.cjs +1 -1
  12. package/dist/esm/components/loader/loader.js +9 -8
  13. package/dist/esm/components/loader/remote/loader.js +2 -2
  14. package/dist/esm/components/loader/remote/render.js +1 -1
  15. package/dist/esm/hooks/i18n.js +1 -1
  16. package/dist/esm/hooks/json/utils/expressionParser.js +1 -1
  17. package/dist/esm/hooks/manage.js +17 -17
  18. package/dist/esm/index.js +9 -9
  19. package/dist/esm/provider/app.js +4 -4
  20. package/dist/esm/provider/tab.js +1 -1
  21. package/dist/esm/stores/manage.js +27 -25
  22. package/dist/esm/stores/theme.js +36 -34
  23. package/dist/types/hooks/data.d.ts +186 -186
  24. package/dist/types/hooks/form.d.ts +1 -1
  25. package/dist/types/hooks/menu.d.ts +1 -1
  26. package/dist/types/hooks/overlay.d.ts +1 -1
  27. package/dist/types/hooks/theme.d.ts +8 -8
  28. package/dist/types/stores/auth.d.ts +9 -24
  29. package/dist/types/stores/i18n.d.ts +7 -16
  30. package/dist/types/stores/index.d.ts +2 -2
  31. package/dist/types/stores/manage.d.ts +7 -16
  32. package/dist/types/stores/route.d.ts +12 -2538
  33. package/dist/types/stores/tab.d.ts +6 -2069
  34. package/dist/types/stores/theme.d.ts +14 -96
  35. package/dist/types/types/theme.d.ts +2 -0
  36. package/package.json +14 -13
  37. package/dist/cjs/_virtual/_commonjsHelpers.cjs +0 -1
  38. package/dist/cjs/_virtual/dayjs.min.cjs +0 -1
  39. package/dist/cjs/_virtual/dayjs.min2.cjs +0 -1
  40. package/dist/cjs/node_modules/dayjs/dayjs.min.cjs +0 -1
  41. package/dist/cjs/node_modules/jsep/dist/jsep.cjs +0 -2
  42. package/dist/cjs/node_modules/mitt/dist/mitt.cjs +0 -1
  43. package/dist/esm/_virtual/_commonjsHelpers.js +0 -6
  44. package/dist/esm/_virtual/dayjs.min.js +0 -7
  45. package/dist/esm/_virtual/dayjs.min2.js +0 -4
  46. package/dist/esm/node_modules/dayjs/dayjs.min.js +0 -282
  47. package/dist/esm/node_modules/jsep/dist/jsep.js +0 -737
  48. package/dist/esm/node_modules/mitt/dist/mitt.js +0 -19
@@ -1,5 +1,16 @@
1
- import { ThemeColorName, ThemeColorType } from '../hooks';
2
- import { Ref } from 'vue';
1
+ import type { Ref } from 'vue';
2
+ import type { ThemeColorName, ThemeColorType } from '../hooks';
3
+ export interface ThemeStoreState {
4
+ mode: Ref<'light' | 'dark' | 'auto'>;
5
+ theme: Ref<ThemeState>;
6
+ cssInit: Ref<boolean>;
7
+ setMode: (newMode: 'light' | 'dark' | 'auto') => void;
8
+ setCssInit: () => void;
9
+ setThemeColor: (type: ThemeColorType, colorName: ThemeColorName) => void;
10
+ setThemeColors: (colors: Partial<ThemeState>) => void;
11
+ resetTheme: () => void;
12
+ getTheme: () => ThemeState;
13
+ }
3
14
  export interface ThemeState {
4
15
  primary: ThemeColorName;
5
16
  info: ThemeColorName;
@@ -8,97 +19,4 @@ export interface ThemeState {
8
19
  error: ThemeColorName;
9
20
  gray: ThemeColorName;
10
21
  }
11
- export declare function useThemeStore(manageName?: string): import("pinia").Store<`theme-${string}`, Pick<{
12
- mode: Ref<"light" | "dark" | "auto", "light" | "dark" | "auto">;
13
- setMode: (newMode: "light" | "dark" | "auto") => void;
14
- theme: Ref<{
15
- primary: ThemeColorName;
16
- info: ThemeColorName;
17
- success: ThemeColorName;
18
- warning: ThemeColorName;
19
- error: ThemeColorName;
20
- gray: ThemeColorName;
21
- }, ThemeState | {
22
- primary: ThemeColorName;
23
- info: ThemeColorName;
24
- success: ThemeColorName;
25
- warning: ThemeColorName;
26
- error: ThemeColorName;
27
- gray: ThemeColorName;
28
- }>;
29
- cssInit: Ref<boolean, boolean>;
30
- setCssInit: () => void;
31
- setThemeColor: (type: ThemeColorType, colorName: ThemeColorName) => void;
32
- setThemeColors: (colors: Partial<ThemeState>) => void;
33
- resetTheme: () => void;
34
- getTheme: () => {
35
- primary: ThemeColorName;
36
- info: ThemeColorName;
37
- success: ThemeColorName;
38
- warning: ThemeColorName;
39
- error: ThemeColorName;
40
- gray: ThemeColorName;
41
- };
42
- }, "theme" | "mode" | "cssInit">, Pick<{
43
- mode: Ref<"light" | "dark" | "auto", "light" | "dark" | "auto">;
44
- setMode: (newMode: "light" | "dark" | "auto") => void;
45
- theme: Ref<{
46
- primary: ThemeColorName;
47
- info: ThemeColorName;
48
- success: ThemeColorName;
49
- warning: ThemeColorName;
50
- error: ThemeColorName;
51
- gray: ThemeColorName;
52
- }, ThemeState | {
53
- primary: ThemeColorName;
54
- info: ThemeColorName;
55
- success: ThemeColorName;
56
- warning: ThemeColorName;
57
- error: ThemeColorName;
58
- gray: ThemeColorName;
59
- }>;
60
- cssInit: Ref<boolean, boolean>;
61
- setCssInit: () => void;
62
- setThemeColor: (type: ThemeColorType, colorName: ThemeColorName) => void;
63
- setThemeColors: (colors: Partial<ThemeState>) => void;
64
- resetTheme: () => void;
65
- getTheme: () => {
66
- primary: ThemeColorName;
67
- info: ThemeColorName;
68
- success: ThemeColorName;
69
- warning: ThemeColorName;
70
- error: ThemeColorName;
71
- gray: ThemeColorName;
72
- };
73
- }, never>, Pick<{
74
- mode: Ref<"light" | "dark" | "auto", "light" | "dark" | "auto">;
75
- setMode: (newMode: "light" | "dark" | "auto") => void;
76
- theme: Ref<{
77
- primary: ThemeColorName;
78
- info: ThemeColorName;
79
- success: ThemeColorName;
80
- warning: ThemeColorName;
81
- error: ThemeColorName;
82
- gray: ThemeColorName;
83
- }, ThemeState | {
84
- primary: ThemeColorName;
85
- info: ThemeColorName;
86
- success: ThemeColorName;
87
- warning: ThemeColorName;
88
- error: ThemeColorName;
89
- gray: ThemeColorName;
90
- }>;
91
- cssInit: Ref<boolean, boolean>;
92
- setCssInit: () => void;
93
- setThemeColor: (type: ThemeColorType, colorName: ThemeColorName) => void;
94
- setThemeColors: (colors: Partial<ThemeState>) => void;
95
- resetTheme: () => void;
96
- getTheme: () => {
97
- primary: ThemeColorName;
98
- info: ThemeColorName;
99
- success: ThemeColorName;
100
- warning: ThemeColorName;
101
- error: ThemeColorName;
102
- gray: ThemeColorName;
103
- };
104
- }, "setMode" | "setCssInit" | "setThemeColor" | "setThemeColors" | "resetTheme" | "getTheme">>;
22
+ export declare function useThemeStore(manageName?: string): import("pinia").Store<string, Pick<ThemeStoreState, "mode" | "theme" | "cssInit">, Pick<ThemeStoreState, never>, Pick<ThemeStoreState, "setMode" | "setCssInit" | "setThemeColor" | "setThemeColors" | "resetTheme" | "getTheme">>;
@@ -1,10 +1,12 @@
1
1
  import type { ThemeConfig } from '../hooks';
2
+ import type { ThemeState } from '../stores';
2
3
  export interface IConfigTheme {
3
4
  logo?: string;
4
5
  darkLogo?: string;
5
6
  banner?: string;
6
7
  darkBanner?: string;
7
8
  config?: ThemeConfig;
9
+ defaultTheme?: ThemeState;
8
10
  }
9
11
  export interface ITheme {
10
12
  logo?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@duxweb/dvha-core",
3
3
  "type": "module",
4
- "version": "0.1.21",
4
+ "version": "0.1.22",
5
5
  "author": "DuxWeb",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -27,15 +27,6 @@
27
27
  "README.md",
28
28
  "dist"
29
29
  ],
30
- "scripts": {
31
- "clean": "rimraf dist",
32
- "build": "bun run clean && vue-tsc --noEmit && vite build && bun run build:types",
33
- "build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist/types",
34
- "prepublishOnly": "bun run build",
35
- "lint": "eslint .",
36
- "lint:fix": "eslint . --fix"
37
- },
38
- "peerDependencies": {},
39
30
  "dependencies": {
40
31
  "@overlastic/vue": "^0.8.1",
41
32
  "@tanstack/vue-query": "^5.76.2",
@@ -46,20 +37,30 @@
46
37
  "clsx": "^2.1.1",
47
38
  "colorizr": "^3.0.8",
48
39
  "crypto-js": "^4.2.0",
40
+ "dayjs": "^1.11.13",
41
+ "jsep": "^1.4.0",
49
42
  "json-2-csv": "^5.5.9",
50
43
  "lodash-es": "^4.17.21",
51
44
  "mathjs": "^14.5.2",
52
45
  "mime": "^4.0.7",
46
+ "mitt": "^3.0.1",
53
47
  "pinia": "^3.0.3",
54
48
  "pinia-plugin-persistedstate": "^4.3.0",
55
49
  "vee-validate": "^4.15.1",
56
50
  "vue": "^3.5.0",
57
- "vue-i18n": "^11.1.4",
58
- "vue-router": "^4.0.0",
51
+ "vue-i18n": "^11.1.6",
52
+ "vue-router": "^4.5.1",
59
53
  "vue3-sfc-loader": "^0.9.5"
60
54
  },
61
55
  "devDependencies": {
62
56
  "rimraf": "^6.0.1",
63
57
  "vue-tsc": "^2.2.10"
58
+ },
59
+ "scripts": {
60
+ "clean": "rimraf dist",
61
+ "build": "pnpm run clean && vue-tsc --noEmit && vite build && pnpm run build:types",
62
+ "build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist/types",
63
+ "lint": "eslint .",
64
+ "lint:fix": "eslint . --fix"
64
65
  }
65
- }
66
+ }
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}exports.getDefaultExportFromCjs=e;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./_commonjsHelpers.cjs"),r=require("../node_modules/dayjs/dayjs.min.cjs");var t=r.__require();const s=e.getDefaultExportFromCjs(t);exports.default=s;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../../_virtual/dayjs.min2.cjs");var G=C.__module.exports,V;function K(){return V||(V=1,function(P,X){(function(A,k){P.exports=k()})(G,function(){var A=1e3,k=6e4,U=36e5,I="millisecond",p="second",_="minute",w="hour",M="day",H="week",m="month",F="quarter",y="year",O="date",J="Invalid Date",B=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(i){var n=["th","st","nd","rd"],t=i%100;return"["+i+(n[(t-20)%10]||n[t]||n[0])+"]"}},q=function(i,n,t){var r=String(i);return!r||r.length>=n?i:""+Array(n+1-r.length).join(t)+i},R={s:q,z:function(i){var n=-i.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+q(r,2,"0")+":"+q(e,2,"0")},m:function i(n,t){if(n.date()<t.date())return-i(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(r,m),s=t-e<0,u=n.clone().add(r+(s?-1:1),m);return+(-(r+(t-e)/(s?e-u:u-e))||0)},a:function(i){return i<0?Math.ceil(i)||0:Math.floor(i)},p:function(i){return{M:m,y,w:H,d:M,D:O,h:w,m:_,s:p,ms:I,Q:F}[i]||String(i||"").toLowerCase().replace(/s$/,"")},u:function(i){return i===void 0}},x="en",D={};D[x]=Q;var Z="$isDayjsObject",N=function(i){return i instanceof L||!(!i||!i[Z])},j=function i(n,t,r){var e;if(!n)return x;if(typeof n=="string"){var s=n.toLowerCase();D[s]&&(e=s),t&&(D[s]=t,e=s);var u=n.split("-");if(!e&&u.length>1)return i(u[0])}else{var o=n.name;D[o]=n,e=o}return!r&&e&&(x=e),e||!r&&x},f=function(i,n){if(N(i))return i.clone();var t=typeof n=="object"?n:{};return t.date=i,t.args=arguments,new L(t)},a=R;a.l=j,a.i=N,a.w=function(i,n){return f(i,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var L=function(){function i(t){this.$L=j(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[Z]=!0}var n=i.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,s=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(B);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return s?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==J},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)<this.startOf(r)},n.isBefore=function(t,r){return this.endOf(r)<f(t)},n.$g=function(t,r,e){return a.u(t)?this[r]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,r){var e=this,s=!!a.u(r)||r,u=a.p(t),o=function(S,l){var v=a.w(e.$u?Date.UTC(e.$y,l,S):new Date(e.$y,l,S),e);return s?v:v.endOf(M)},c=function(S,l){return a.w(e.toDate()[S].apply(e.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(l)),e)},h=this.$W,d=this.$M,$=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case y:return s?o(1,0):o(31,11);case m:return s?o(1,d):o(0,d+1);case H:var g=this.$locale().weekStart||0,T=(h<g?h+7:h)-g;return o(s?$-T:$+(6-T),d);case M:case O:return c(b+"Hours",0);case w:return c(b+"Minutes",1);case _:return c(b+"Seconds",2);case p:return c(b+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,r){var e,s=a.p(t),u="set"+(this.$u?"UTC":""),o=(e={},e[M]=u+"Date",e[O]=u+"Date",e[m]=u+"Month",e[y]=u+"FullYear",e[w]=u+"Hours",e[_]=u+"Minutes",e[p]=u+"Seconds",e[I]=u+"Milliseconds",e)[s],c=s===M?this.$D+(r-this.$W):r;if(s===m||s===y){var h=this.clone().set(O,1);h.$d[o](c),h.init(),this.$d=h.set(O,Math.min(this.$D,h.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},n.set=function(t,r){return this.clone().$set(t,r)},n.get=function(t){return this[a.p(t)]()},n.add=function(t,r){var e,s=this;t=Number(t);var u=a.p(r),o=function(d){var $=f(s);return a.w($.date($.date()+Math.round(d*t)),s)};if(u===m)return this.set(m,this.$M+t);if(u===y)return this.set(y,this.$y+t);if(u===M)return o(1);if(u===H)return o(7);var c=(e={},e[_]=k,e[w]=U,e[p]=A,e)[u]||1,h=this.$d.getTime()+t*c;return a.w(h,this)},n.subtract=function(t,r){return this.add(-1*t,r)},n.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||J;var s=t||"YYYY-MM-DDTHH:mm:ssZ",u=a.z(this),o=this.$H,c=this.$m,h=this.$M,d=e.weekdays,$=e.months,b=e.meridiem,g=function(l,v,Y,W){return l&&(l[v]||l(r,s))||Y[v].slice(0,W)},T=function(l){return a.s(o%12||12,l,"0")},S=b||function(l,v,Y){var W=l<12?"AM":"PM";return Y?W.toLowerCase():W};return s.replace(E,function(l,v){return v||function(Y){switch(Y){case"YY":return String(r.$y).slice(-2);case"YYYY":return a.s(r.$y,4,"0");case"M":return h+1;case"MM":return a.s(h+1,2,"0");case"MMM":return g(e.monthsShort,h,$,3);case"MMMM":return g($,h);case"D":return r.$D;case"DD":return a.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return g(e.weekdaysMin,r.$W,d,2);case"ddd":return g(e.weekdaysShort,r.$W,d,3);case"dddd":return d[r.$W];case"H":return String(o);case"HH":return a.s(o,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return S(o,c,!0);case"A":return S(o,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(r.$s);case"ss":return a.s(r.$s,2,"0");case"SSS":return a.s(r.$ms,3,"0");case"Z":return u}return null}(l)||u.replace(":","")})},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,r,e){var s,u=this,o=a.p(r),c=f(t),h=(c.utcOffset()-this.utcOffset())*k,d=this-c,$=function(){return a.m(u,c)};switch(o){case y:s=$()/12;break;case m:s=$();break;case F:s=$()/3;break;case H:s=(d-h)/6048e5;break;case M:s=(d-h)/864e5;break;case w:s=d/U;break;case _:s=d/k;break;case p:s=d/A;break;default:s=d}return e?s:a.a(s)},n.daysInMonth=function(){return this.endOf(m).$D},n.$locale=function(){return D[this.$L]},n.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),s=j(t,r,!0);return s&&(e.$L=s),e},n.clone=function(){return a.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},i}(),z=L.prototype;return f.prototype=z,[["$ms",I],["$s",p],["$m",_],["$H",w],["$W",M],["$M",m],["$y",y],["$D",O]].forEach(function(i){z[i[1]]=function(n){return this.$g(n,i[0],i[1])}}),f.extend=function(i,n){return i.$i||(i(n,L,f),i.$i=!0),f},f.locale=j,f.isDayjs=N,f.unix=function(i){return f(1e3*i)},f.en=D[x],f.Ls=D,f.p={},f})}(C.__module)),C.__module.exports}exports.__require=K;
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});class x{add(t,i,s){if(typeof arguments[0]!="string")for(let r in arguments[0])this.add(r,arguments[0][r],arguments[1]);else(Array.isArray(t)?t:[t]).forEach(function(r){this[r]=this[r]||[],i&&this[r][s?"unshift":"push"](i)},this)}run(t,i){this[t]=this[t]||[],this[t].forEach(function(s){s.call(i&&i.context?i.context:i,i)})}}class u{constructor(t){this.jsep=t,this.registered={}}register(...t){t.forEach(i=>{if(typeof i!="object"||!i.name||!i.init)throw new Error("Invalid JSEP plugin format");this.registered[i.name]||(i.init(this.jsep),this.registered[i.name]=i)})}}class e{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+e.version}static addUnaryOp(t){return e.max_unop_len=Math.max(t.length,e.max_unop_len),e.unary_ops[t]=1,e}static addBinaryOp(t,i,s){return e.max_binop_len=Math.max(t.length,e.max_binop_len),e.binary_ops[t]=i,s?e.right_associative.add(t):e.right_associative.delete(t),e}static addIdentifierChar(t){return e.additional_identifier_chars.add(t),e}static addLiteral(t,i){return e.literals[t]=i,e}static removeUnaryOp(t){return delete e.unary_ops[t],t.length===e.max_unop_len&&(e.max_unop_len=e.getMaxKeyLen(e.unary_ops)),e}static removeAllUnaryOps(){return e.unary_ops={},e.max_unop_len=0,e}static removeIdentifierChar(t){return e.additional_identifier_chars.delete(t),e}static removeBinaryOp(t){return delete e.binary_ops[t],t.length===e.max_binop_len&&(e.max_binop_len=e.getMaxKeyLen(e.binary_ops)),e.right_associative.delete(t),e}static removeAllBinaryOps(){return e.binary_ops={},e.max_binop_len=0,e}static removeLiteral(t){return delete e.literals[t],e}static removeAllLiterals(){return e.literals={},e}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(t){this.expr=t,this.index=0}static parse(t){return new e(t).parse()}static getMaxKeyLen(t){return Math.max(0,...Object.keys(t).map(i=>i.length))}static isDecimalDigit(t){return t>=48&&t<=57}static binaryPrecedence(t){return e.binary_ops[t]||0}static isIdentifierStart(t){return t>=65&&t<=90||t>=97&&t<=122||t>=128&&!e.binary_ops[String.fromCharCode(t)]||e.additional_identifier_chars.has(String.fromCharCode(t))}static isIdentifierPart(t){return e.isIdentifierStart(t)||e.isDecimalDigit(t)}throwError(t){const i=new Error(t+" at character "+this.index);throw i.index=this.index,i.description=t,i}runHook(t,i){if(e.hooks[t]){const s={context:this,node:i};return e.hooks.run(t,s),s.node}return i}searchHook(t){if(e.hooks[t]){const i={context:this};return e.hooks[t].find(function(s){return s.call(i.context,i),i.node}),i.node}}gobbleSpaces(){let t=this.code;for(;t===e.SPACE_CODE||t===e.TAB_CODE||t===e.LF_CODE||t===e.CR_CODE;)t=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const t=this.gobbleExpressions(),i=t.length===1?t[0]:{type:e.COMPOUND,body:t};return this.runHook("after-all",i)}gobbleExpressions(t){let i=[],s,r;for(;this.index<this.expr.length;)if(s=this.code,s===e.SEMCOL_CODE||s===e.COMMA_CODE)this.index++;else if(r=this.gobbleExpression())i.push(r);else if(this.index<this.expr.length){if(s===t)break;this.throwError('Unexpected "'+this.char+'"')}return i}gobbleExpression(){const t=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",t)}gobbleBinaryOp(){this.gobbleSpaces();let t=this.expr.substr(this.index,e.max_binop_len),i=t.length;for(;i>0;){if(e.binary_ops.hasOwnProperty(t)&&(!e.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+t.length))))return this.index+=i,t;t=t.substr(0,--i)}return!1}gobbleBinaryExpression(){let t,i,s,r,n,o,l,a,E;if(o=this.gobbleToken(),!o||(i=this.gobbleBinaryOp(),!i))return o;for(n={value:i,prec:e.binaryPrecedence(i),right_a:e.right_associative.has(i)},l=this.gobbleToken(),l||this.throwError("Expected expression after "+i),r=[o,n,l];i=this.gobbleBinaryOp();){if(s=e.binaryPrecedence(i),s===0){this.index-=i.length;break}n={value:i,prec:s,right_a:e.right_associative.has(i)},E=i;const b=d=>n.right_a&&d.right_a?s>d.prec:s<=d.prec;for(;r.length>2&&b(r[r.length-2]);)l=r.pop(),i=r.pop().value,o=r.pop(),t={type:e.BINARY_EXP,operator:i,left:o,right:l},r.push(t);t=this.gobbleToken(),t||this.throwError("Expected expression after "+E),r.push(n,t)}for(a=r.length-1,t=r[a];a>1;)t={type:e.BINARY_EXP,operator:r[a-1].value,left:r[a-2],right:t},a-=2;return t}gobbleToken(){let t,i,s,r;if(this.gobbleSpaces(),r=this.searchHook("gobble-token"),r)return this.runHook("after-token",r);if(t=this.code,e.isDecimalDigit(t)||t===e.PERIOD_CODE)return this.gobbleNumericLiteral();if(t===e.SQUOTE_CODE||t===e.DQUOTE_CODE)r=this.gobbleStringLiteral();else if(t===e.OBRACK_CODE)r=this.gobbleArray();else{for(i=this.expr.substr(this.index,e.max_unop_len),s=i.length;s>0;){if(e.unary_ops.hasOwnProperty(i)&&(!e.isIdentifierStart(this.code)||this.index+i.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+i.length)))){this.index+=s;const n=this.gobbleToken();return n||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:e.UNARY_EXP,operator:i,argument:n,prefix:!0})}i=i.substr(0,--s)}e.isIdentifierStart(t)?(r=this.gobbleIdentifier(),e.literals.hasOwnProperty(r.name)?r={type:e.LITERAL,value:e.literals[r.name],raw:r.name}:r.name===e.this_str&&(r={type:e.THIS_EXP})):t===e.OPAREN_CODE&&(r=this.gobbleGroup())}return r?(r=this.gobbleTokenProperty(r),this.runHook("after-token",r)):this.runHook("after-token",!1)}gobbleTokenProperty(t){this.gobbleSpaces();let i=this.code;for(;i===e.PERIOD_CODE||i===e.OBRACK_CODE||i===e.OPAREN_CODE||i===e.QUMARK_CODE;){let s;if(i===e.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==e.PERIOD_CODE)break;s=!0,this.index+=2,this.gobbleSpaces(),i=this.code}this.index++,i===e.OBRACK_CODE?(t={type:e.MEMBER_EXP,computed:!0,object:t,property:this.gobbleExpression()},t.property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),i=this.code,i!==e.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):i===e.OPAREN_CODE?t={type:e.CALL_EXP,arguments:this.gobbleArguments(e.CPAREN_CODE),callee:t}:(i===e.PERIOD_CODE||s)&&(s&&this.index--,this.gobbleSpaces(),t={type:e.MEMBER_EXP,computed:!1,object:t,property:this.gobbleIdentifier()}),s&&(t.optional=!0),this.gobbleSpaces(),i=this.code}return t}gobbleNumericLiteral(){let t="",i,s;for(;e.isDecimalDigit(this.code);)t+=this.expr.charAt(this.index++);if(this.code===e.PERIOD_CODE)for(t+=this.expr.charAt(this.index++);e.isDecimalDigit(this.code);)t+=this.expr.charAt(this.index++);if(i=this.char,i==="e"||i==="E"){for(t+=this.expr.charAt(this.index++),i=this.char,(i==="+"||i==="-")&&(t+=this.expr.charAt(this.index++));e.isDecimalDigit(this.code);)t+=this.expr.charAt(this.index++);e.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+t+this.char+")")}return s=this.code,e.isIdentifierStart(s)?this.throwError("Variable names cannot start with a number ("+t+this.char+")"):(s===e.PERIOD_CODE||t.length===1&&t.charCodeAt(0)===e.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:e.LITERAL,value:parseFloat(t),raw:t}}gobbleStringLiteral(){let t="";const i=this.index,s=this.expr.charAt(this.index++);let r=!1;for(;this.index<this.expr.length;){let n=this.expr.charAt(this.index++);if(n===s){r=!0;break}else if(n==="\\")switch(n=this.expr.charAt(this.index++),n){case"n":t+=`
2
- `;break;case"r":t+="\r";break;case"t":t+=" ";break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:t+=n}else t+=n}return r||this.throwError('Unclosed quote after "'+t+'"'),{type:e.LITERAL,value:t,raw:this.expr.substring(i,this.index)}}gobbleIdentifier(){let t=this.code,i=this.index;for(e.isIdentifierStart(t)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length&&(t=this.code,e.isIdentifierPart(t));)this.index++;return{type:e.IDENTIFIER,name:this.expr.slice(i,this.index)}}gobbleArguments(t){const i=[];let s=!1,r=0;for(;this.index<this.expr.length;){this.gobbleSpaces();let n=this.code;if(n===t){s=!0,this.index++,t===e.CPAREN_CODE&&r&&r>=i.length&&this.throwError("Unexpected token "+String.fromCharCode(t));break}else if(n===e.COMMA_CODE){if(this.index++,r++,r!==i.length){if(t===e.CPAREN_CODE)this.throwError("Unexpected token ,");else if(t===e.CBRACK_CODE)for(let o=i.length;o<r;o++)i.push(null)}}else if(i.length!==r&&r!==0)this.throwError("Expected comma");else{const o=this.gobbleExpression();(!o||o.type===e.COMPOUND)&&this.throwError("Expected comma"),i.push(o)}}return s||this.throwError("Expected "+String.fromCharCode(t)),i}gobbleGroup(){this.index++;let t=this.gobbleExpressions(e.CPAREN_CODE);if(this.code===e.CPAREN_CODE)return this.index++,t.length===1?t[0]:t.length?{type:e.SEQUENCE_EXP,expressions:t}:!1;this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:e.ARRAY_EXP,elements:this.gobbleArguments(e.CBRACK_CODE)}}}const g=new x;Object.assign(e,{hooks:g,plugins:new u(e),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"});e.max_unop_len=e.getMaxKeyLen(e.unary_ops);e.max_binop_len=e.getMaxKeyLen(e.binary_ops);const c=h=>new e(h).parse(),f=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(e).filter(h=>!f.includes(h)&&c[h]===void 0).forEach(h=>{c[h]=e[h]});c.Jsep=e;const C="ConditionalExpression";var O={name:"ternary",init(h){h.hooks.add("after-expression",function(i){if(i.node&&this.code===h.QUMARK_CODE){this.index++;const s=i.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===h.COLON_CODE){this.index++;const n=this.gobbleExpression();if(n||this.throwError("Expected expression"),i.node={type:C,test:s,consequent:r,alternate:n},s.operator&&h.binary_ops[s.operator]<=.9){let o=s;for(;o.right.operator&&h.binary_ops[o.right.operator]<=.9;)o=o.right;i.node.test=o.right,o.right=i.node,i.node=s}}else this.throwError("Expected :")}})}};c.plugins.register(O);exports.Jsep=e;exports.default=c;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function a(t){return{all:t=t||new Map,on:function(i,u){var e=t.get(i);e?e.push(u):t.set(i,[u])},off:function(i,u){var e=t.get(i);e&&(u?e.splice(e.indexOf(u)>>>0,1):t.set(i,[]))},emit:function(i,u){var e=t.get(i);e&&e.slice().map(function(o){o(u)}),(e=t.get("*"))&&e.slice().map(function(o){o(i,u)})}}}exports.default=a;
@@ -1,6 +0,0 @@
1
- function e(t) {
2
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
- }
4
- export {
5
- e as getDefaultExportFromCjs
6
- };
@@ -1,7 +0,0 @@
1
- import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as o } from "../node_modules/dayjs/dayjs.min.js";
3
- var t = o();
4
- const s = /* @__PURE__ */ r(t);
5
- export {
6
- s as default
7
- };
@@ -1,4 +0,0 @@
1
- var a = { exports: {} };
2
- export {
3
- a as __module
4
- };
@@ -1,282 +0,0 @@
1
- import { __module as C } from "../../_virtual/dayjs.min2.js";
2
- var G = C.exports, V;
3
- function tt() {
4
- return V ? C.exports : (V = 1, function(B, K) {
5
- (function(A, k) {
6
- B.exports = k();
7
- })(G, function() {
8
- var A = 1e3, k = 6e4, q = 36e5, I = "millisecond", S = "second", w = "minute", _ = "hour", M = "day", T = "week", m = "month", F = "quarter", y = "year", O = "date", J = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Q = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(i) {
9
- var n = ["th", "st", "nd", "rd"], t = i % 100;
10
- return "[" + i + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
11
- } }, N = function(i, n, t) {
12
- var r = String(i);
13
- return !r || r.length >= n ? i : "" + Array(n + 1 - r.length).join(t) + i;
14
- }, R = { s: N, z: function(i) {
15
- var n = -i.utcOffset(), t = Math.abs(n), r = Math.floor(t / 60), e = t % 60;
16
- return (n <= 0 ? "+" : "-") + N(r, 2, "0") + ":" + N(e, 2, "0");
17
- }, m: function i(n, t) {
18
- if (n.date() < t.date()) return -i(t, n);
19
- var r = 12 * (t.year() - n.year()) + (t.month() - n.month()), e = n.clone().add(r, m), s = t - e < 0, u = n.clone().add(r + (s ? -1 : 1), m);
20
- return +(-(r + (t - e) / (s ? e - u : u - e)) || 0);
21
- }, a: function(i) {
22
- return i < 0 ? Math.ceil(i) || 0 : Math.floor(i);
23
- }, p: function(i) {
24
- return { M: m, y, w: T, d: M, D: O, h: _, m: w, s: S, ms: I, Q: F }[i] || String(i || "").toLowerCase().replace(/s$/, "");
25
- }, u: function(i) {
26
- return i === void 0;
27
- } }, x = "en", D = {};
28
- D[x] = Q;
29
- var Z = "$isDayjsObject", U = function(i) {
30
- return i instanceof L || !(!i || !i[Z]);
31
- }, j = function i(n, t, r) {
32
- var e;
33
- if (!n) return x;
34
- if (typeof n == "string") {
35
- var s = n.toLowerCase();
36
- D[s] && (e = s), t && (D[s] = t, e = s);
37
- var u = n.split("-");
38
- if (!e && u.length > 1) return i(u[0]);
39
- } else {
40
- var o = n.name;
41
- D[o] = n, e = o;
42
- }
43
- return !r && e && (x = e), e || !r && x;
44
- }, f = function(i, n) {
45
- if (U(i)) return i.clone();
46
- var t = typeof n == "object" ? n : {};
47
- return t.date = i, t.args = arguments, new L(t);
48
- }, a = R;
49
- a.l = j, a.i = U, a.w = function(i, n) {
50
- return f(i, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
51
- };
52
- var L = function() {
53
- function i(t) {
54
- this.$L = j(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[Z] = !0;
55
- }
56
- var n = i.prototype;
57
- return n.parse = function(t) {
58
- this.$d = function(r) {
59
- var e = r.date, s = r.utc;
60
- if (e === null) return /* @__PURE__ */ new Date(NaN);
61
- if (a.u(e)) return /* @__PURE__ */ new Date();
62
- if (e instanceof Date) return new Date(e);
63
- if (typeof e == "string" && !/Z$/i.test(e)) {
64
- var u = e.match(E);
65
- if (u) {
66
- var o = u[2] - 1 || 0, c = (u[7] || "0").substring(0, 3);
67
- return s ? new Date(Date.UTC(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c)) : new Date(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c);
68
- }
69
- }
70
- return new Date(e);
71
- }(t), this.init();
72
- }, n.init = function() {
73
- var t = this.$d;
74
- this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
75
- }, n.$utils = function() {
76
- return a;
77
- }, n.isValid = function() {
78
- return this.$d.toString() !== J;
79
- }, n.isSame = function(t, r) {
80
- var e = f(t);
81
- return this.startOf(r) <= e && e <= this.endOf(r);
82
- }, n.isAfter = function(t, r) {
83
- return f(t) < this.startOf(r);
84
- }, n.isBefore = function(t, r) {
85
- return this.endOf(r) < f(t);
86
- }, n.$g = function(t, r, e) {
87
- return a.u(t) ? this[r] : this.set(e, t);
88
- }, n.unix = function() {
89
- return Math.floor(this.valueOf() / 1e3);
90
- }, n.valueOf = function() {
91
- return this.$d.getTime();
92
- }, n.startOf = function(t, r) {
93
- var e = this, s = !!a.u(r) || r, u = a.p(t), o = function(p, $) {
94
- var v = a.w(e.$u ? Date.UTC(e.$y, $, p) : new Date(e.$y, $, p), e);
95
- return s ? v : v.endOf(M);
96
- }, c = function(p, $) {
97
- return a.w(e.toDate()[p].apply(e.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), e);
98
- }, h = this.$W, d = this.$M, l = this.$D, b = "set" + (this.$u ? "UTC" : "");
99
- switch (u) {
100
- case y:
101
- return s ? o(1, 0) : o(31, 11);
102
- case m:
103
- return s ? o(1, d) : o(0, d + 1);
104
- case T:
105
- var g = this.$locale().weekStart || 0, Y = (h < g ? h + 7 : h) - g;
106
- return o(s ? l - Y : l + (6 - Y), d);
107
- case M:
108
- case O:
109
- return c(b + "Hours", 0);
110
- case _:
111
- return c(b + "Minutes", 1);
112
- case w:
113
- return c(b + "Seconds", 2);
114
- case S:
115
- return c(b + "Milliseconds", 3);
116
- default:
117
- return this.clone();
118
- }
119
- }, n.endOf = function(t) {
120
- return this.startOf(t, !1);
121
- }, n.$set = function(t, r) {
122
- var e, s = a.p(t), u = "set" + (this.$u ? "UTC" : ""), o = (e = {}, e[M] = u + "Date", e[O] = u + "Date", e[m] = u + "Month", e[y] = u + "FullYear", e[_] = u + "Hours", e[w] = u + "Minutes", e[S] = u + "Seconds", e[I] = u + "Milliseconds", e)[s], c = s === M ? this.$D + (r - this.$W) : r;
123
- if (s === m || s === y) {
124
- var h = this.clone().set(O, 1);
125
- h.$d[o](c), h.init(), this.$d = h.set(O, Math.min(this.$D, h.daysInMonth())).$d;
126
- } else o && this.$d[o](c);
127
- return this.init(), this;
128
- }, n.set = function(t, r) {
129
- return this.clone().$set(t, r);
130
- }, n.get = function(t) {
131
- return this[a.p(t)]();
132
- }, n.add = function(t, r) {
133
- var e, s = this;
134
- t = Number(t);
135
- var u = a.p(r), o = function(d) {
136
- var l = f(s);
137
- return a.w(l.date(l.date() + Math.round(d * t)), s);
138
- };
139
- if (u === m) return this.set(m, this.$M + t);
140
- if (u === y) return this.set(y, this.$y + t);
141
- if (u === M) return o(1);
142
- if (u === T) return o(7);
143
- var c = (e = {}, e[w] = k, e[_] = q, e[S] = A, e)[u] || 1, h = this.$d.getTime() + t * c;
144
- return a.w(h, this);
145
- }, n.subtract = function(t, r) {
146
- return this.add(-1 * t, r);
147
- }, n.format = function(t) {
148
- var r = this, e = this.$locale();
149
- if (!this.isValid()) return e.invalidDate || J;
150
- var s = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, l = e.months, b = e.meridiem, g = function($, v, H, W) {
151
- return $ && ($[v] || $(r, s)) || H[v].slice(0, W);
152
- }, Y = function($) {
153
- return a.s(o % 12 || 12, $, "0");
154
- }, p = b || function($, v, H) {
155
- var W = $ < 12 ? "AM" : "PM";
156
- return H ? W.toLowerCase() : W;
157
- };
158
- return s.replace(P, function($, v) {
159
- return v || function(H) {
160
- switch (H) {
161
- case "YY":
162
- return String(r.$y).slice(-2);
163
- case "YYYY":
164
- return a.s(r.$y, 4, "0");
165
- case "M":
166
- return h + 1;
167
- case "MM":
168
- return a.s(h + 1, 2, "0");
169
- case "MMM":
170
- return g(e.monthsShort, h, l, 3);
171
- case "MMMM":
172
- return g(l, h);
173
- case "D":
174
- return r.$D;
175
- case "DD":
176
- return a.s(r.$D, 2, "0");
177
- case "d":
178
- return String(r.$W);
179
- case "dd":
180
- return g(e.weekdaysMin, r.$W, d, 2);
181
- case "ddd":
182
- return g(e.weekdaysShort, r.$W, d, 3);
183
- case "dddd":
184
- return d[r.$W];
185
- case "H":
186
- return String(o);
187
- case "HH":
188
- return a.s(o, 2, "0");
189
- case "h":
190
- return Y(1);
191
- case "hh":
192
- return Y(2);
193
- case "a":
194
- return p(o, c, !0);
195
- case "A":
196
- return p(o, c, !1);
197
- case "m":
198
- return String(c);
199
- case "mm":
200
- return a.s(c, 2, "0");
201
- case "s":
202
- return String(r.$s);
203
- case "ss":
204
- return a.s(r.$s, 2, "0");
205
- case "SSS":
206
- return a.s(r.$ms, 3, "0");
207
- case "Z":
208
- return u;
209
- }
210
- return null;
211
- }($) || u.replace(":", "");
212
- });
213
- }, n.utcOffset = function() {
214
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
215
- }, n.diff = function(t, r, e) {
216
- var s, u = this, o = a.p(r), c = f(t), h = (c.utcOffset() - this.utcOffset()) * k, d = this - c, l = function() {
217
- return a.m(u, c);
218
- };
219
- switch (o) {
220
- case y:
221
- s = l() / 12;
222
- break;
223
- case m:
224
- s = l();
225
- break;
226
- case F:
227
- s = l() / 3;
228
- break;
229
- case T:
230
- s = (d - h) / 6048e5;
231
- break;
232
- case M:
233
- s = (d - h) / 864e5;
234
- break;
235
- case _:
236
- s = d / q;
237
- break;
238
- case w:
239
- s = d / k;
240
- break;
241
- case S:
242
- s = d / A;
243
- break;
244
- default:
245
- s = d;
246
- }
247
- return e ? s : a.a(s);
248
- }, n.daysInMonth = function() {
249
- return this.endOf(m).$D;
250
- }, n.$locale = function() {
251
- return D[this.$L];
252
- }, n.locale = function(t, r) {
253
- if (!t) return this.$L;
254
- var e = this.clone(), s = j(t, r, !0);
255
- return s && (e.$L = s), e;
256
- }, n.clone = function() {
257
- return a.w(this.$d, this);
258
- }, n.toDate = function() {
259
- return new Date(this.valueOf());
260
- }, n.toJSON = function() {
261
- return this.isValid() ? this.toISOString() : null;
262
- }, n.toISOString = function() {
263
- return this.$d.toISOString();
264
- }, n.toString = function() {
265
- return this.$d.toUTCString();
266
- }, i;
267
- }(), z = L.prototype;
268
- return f.prototype = z, [["$ms", I], ["$s", S], ["$m", w], ["$H", _], ["$W", M], ["$M", m], ["$y", y], ["$D", O]].forEach(function(i) {
269
- z[i[1]] = function(n) {
270
- return this.$g(n, i[0], i[1]);
271
- };
272
- }), f.extend = function(i, n) {
273
- return i.$i || (i(n, L, f), i.$i = !0), f;
274
- }, f.locale = j, f.isDayjs = U, f.unix = function(i) {
275
- return f(1e3 * i);
276
- }, f.en = D[x], f.Ls = D, f.p = {}, f;
277
- });
278
- }(C), C.exports);
279
- }
280
- export {
281
- tt as __require
282
- };