marketplacepos 3.14.1 → 3.15.0

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 (100) hide show
  1. package/Marketplace/3rdpartylicenses.txt +61 -61
  2. package/Marketplace/chunk-2AMEIUWK.js +1 -0
  3. package/Marketplace/{chunk-2LGY3VGP.js → chunk-2L5RCILV.js} +1 -1
  4. package/Marketplace/chunk-3TNPJNQS.js +4 -0
  5. package/Marketplace/{chunk-HXDXTE2F.js → chunk-4BPLZVXV.js} +1 -1
  6. package/Marketplace/{chunk-FZ7LVL4C.js → chunk-4URWFKAM.js} +1 -1
  7. package/Marketplace/{chunk-VOWLO2M7.js → chunk-572KOLLQ.js} +1 -1
  8. package/Marketplace/{chunk-IYV3772A.js → chunk-5B6FNQOB.js} +1 -1
  9. package/Marketplace/chunk-5BU6HQXL.js +1 -0
  10. package/Marketplace/{chunk-2YXHLXID.js → chunk-6NFPCNPI.js} +1 -1
  11. package/Marketplace/{chunk-KWFES5F7.js → chunk-6NTRXLMW.js} +1 -1
  12. package/Marketplace/{chunk-JDKWQEVP.js → chunk-6UPC6ZHH.js} +1 -1
  13. package/Marketplace/{chunk-WXUKZFAH.js → chunk-75FMUZX2.js} +1 -1
  14. package/Marketplace/chunk-AAFEUTPF.js +1 -0
  15. package/Marketplace/{chunk-V4UFHWKE.js → chunk-AUMUHIAD.js} +1 -1
  16. package/Marketplace/chunk-B4RTU5A6.js +2 -0
  17. package/Marketplace/chunk-BCZNQVP7.js +22 -0
  18. package/Marketplace/{chunk-FELGHSYN.js → chunk-BIWUQMY6.js} +1 -1
  19. package/Marketplace/{chunk-RMD2ZXUN.js → chunk-C62XLEFW.js} +1 -1
  20. package/Marketplace/chunk-CHPESC5O.js +1 -0
  21. package/Marketplace/{chunk-MVPTQRFO.js → chunk-CTKEWRX4.js} +1 -1
  22. package/Marketplace/{chunk-R7MYFLXJ.js → chunk-DSDMENCN.js} +2 -2
  23. package/Marketplace/{chunk-RXRML6X2.js → chunk-DTNJ6LRO.js} +1 -1
  24. package/Marketplace/{chunk-J47B3BJQ.js → chunk-E3LCGTRI.js} +1 -1
  25. package/Marketplace/{chunk-5WXM6HSA.js → chunk-EEOWKNSQ.js} +8 -8
  26. package/Marketplace/chunk-EI3KPHG7.js +6 -0
  27. package/Marketplace/chunk-ETN6PAVE.js +1 -0
  28. package/Marketplace/{chunk-CAXMTBHH.js → chunk-EZZU5A4W.js} +1 -1
  29. package/Marketplace/{chunk-OY6H4LKT.js → chunk-GMIPFSK2.js} +3 -3
  30. package/Marketplace/chunk-GP6U42SV.js +1 -0
  31. package/Marketplace/{chunk-EKCNJX26.js → chunk-GXHE2CDH.js} +1 -1
  32. package/Marketplace/chunk-HSFUKC7R.js +8 -0
  33. package/Marketplace/chunk-IAYFW5AU.js +1 -0
  34. package/Marketplace/{chunk-IPYNDMGQ.js → chunk-IJAO5VS5.js} +1 -1
  35. package/Marketplace/chunk-IQJZLNR7.js +1 -0
  36. package/Marketplace/chunk-K76GF3AP.js +1 -0
  37. package/Marketplace/{chunk-VQUUMT5F.js → chunk-KGSUB5OH.js} +1 -1
  38. package/Marketplace/chunk-L33MFTTM.js +1 -0
  39. package/Marketplace/{chunk-26HKN7YV.js → chunk-LIUFDNS2.js} +1 -1
  40. package/Marketplace/{chunk-RZ7FKABW.js → chunk-M4JG6342.js} +1 -1
  41. package/Marketplace/{chunk-OQWLBQEH.js → chunk-MS7TDJGD.js} +1 -1
  42. package/Marketplace/chunk-MTGMHTUM.js +1 -0
  43. package/Marketplace/{chunk-KCFS3M2K.js → chunk-N366YXEY.js} +1 -1
  44. package/Marketplace/chunk-NEQN5BMS.js +15 -0
  45. package/Marketplace/{chunk-JTJLVSTV.js → chunk-O5FN3DLG.js} +1 -1
  46. package/Marketplace/chunk-OKITFWXZ.js +1 -0
  47. package/Marketplace/{chunk-YZ42FKNJ.js → chunk-ONKOEBKR.js} +1 -1
  48. package/Marketplace/chunk-OXSGKWPW.js +1 -0
  49. package/Marketplace/{chunk-FGYTQIJ5.js → chunk-PDMFRPES.js} +1 -1
  50. package/Marketplace/chunk-PHVJKT43.js +1 -0
  51. package/Marketplace/chunk-Q4FOBI47.js +1 -0
  52. package/Marketplace/chunk-QKJFDGHL.js +1 -0
  53. package/Marketplace/chunk-QOA24ZLA.js +1 -0
  54. package/Marketplace/{chunk-PIIJRFHM.js → chunk-RKRJ4JOF.js} +1 -1
  55. package/Marketplace/chunk-RXDUUYMX.js +1 -0
  56. package/Marketplace/{chunk-KGNFBVTF.js → chunk-TAUCMC6B.js} +3 -3
  57. package/Marketplace/{chunk-UHE3QQB5.js → chunk-UJNV7X2C.js} +1 -1
  58. package/Marketplace/{chunk-4R22UO7N.js → chunk-UUNZHJ6W.js} +1 -1
  59. package/Marketplace/chunk-UYBM65IV.js +1 -0
  60. package/Marketplace/{chunk-KGINCJJU.js → chunk-UYUDVWKN.js} +1 -1
  61. package/Marketplace/{chunk-YG3KQ63T.js → chunk-VHYFEAS2.js} +1 -1
  62. package/Marketplace/chunk-VUL363BT.js +2 -0
  63. package/Marketplace/chunk-VVKIT2K2.js +1 -0
  64. package/Marketplace/{chunk-Z3E6ZJZB.js → chunk-WUOENHV6.js} +1 -1
  65. package/Marketplace/{chunk-D7X76LHU.js → chunk-XNGU3O4O.js} +1 -1
  66. package/Marketplace/{chunk-S5GA4AVB.js → chunk-Y27IE54D.js} +1 -1
  67. package/Marketplace/{chunk-QZKWUCMY.js → chunk-ZG6JXFSY.js} +1 -1
  68. package/Marketplace/{chunk-MSVZKMTY.js → chunk-ZQLDSEY5.js} +1 -1
  69. package/Marketplace/chunk-ZUTKRQCG.js +1 -0
  70. package/Marketplace/chunk-ZXDRQ5NO.js +1 -0
  71. package/Marketplace/index.html +55 -25
  72. package/Marketplace/main-AHDSMQXN.js +1 -0
  73. package/Marketplace/{styles-BHJH7JG5.css → styles-K7GFOZYN.css} +1 -1
  74. package/package.json +1 -1
  75. package/Marketplace/chunk-3WGDHGSC.js +0 -36
  76. package/Marketplace/chunk-57XFPFTU.js +0 -1
  77. package/Marketplace/chunk-7OUOPJNV.js +0 -1
  78. package/Marketplace/chunk-B3LBEB32.js +0 -1
  79. package/Marketplace/chunk-C3YE27TZ.js +0 -8
  80. package/Marketplace/chunk-DSF55IXM.js +0 -1
  81. package/Marketplace/chunk-EJ5OYNY3.js +0 -1
  82. package/Marketplace/chunk-F63GNFZE.js +0 -1
  83. package/Marketplace/chunk-FTVIBNXQ.js +0 -1
  84. package/Marketplace/chunk-G6HY2OKZ.js +0 -1
  85. package/Marketplace/chunk-HIVRWPHI.js +0 -2
  86. package/Marketplace/chunk-HWUMVID7.js +0 -1
  87. package/Marketplace/chunk-JWI6NSSG.js +0 -1
  88. package/Marketplace/chunk-K7EHVRIN.js +0 -5
  89. package/Marketplace/chunk-L34D7YAZ.js +0 -1
  90. package/Marketplace/chunk-NCNHP5BH.js +0 -1
  91. package/Marketplace/chunk-QPRFFPO5.js +0 -1
  92. package/Marketplace/chunk-RX2NCNAM.js +0 -1
  93. package/Marketplace/chunk-UEZ3MCEP.js +0 -1
  94. package/Marketplace/chunk-V6L3NRY3.js +0 -1
  95. package/Marketplace/chunk-VOSKUYZN.js +0 -1
  96. package/Marketplace/chunk-ZWGSECG3.js +0 -2
  97. package/Marketplace/main-KVPKHKMN.js +0 -1
  98. /package/Marketplace/{chunk-IWVYX6KY.js → chunk-7KG3DC5J.js} +0 -0
  99. /package/Marketplace/{chunk-662E5VTA.js → chunk-BVIRHZTZ.js} +0 -0
  100. /package/Marketplace/{chunk-BSBYMQ7J.js → chunk-XHAXYWZ7.js} +0 -0
@@ -1,6 +1,6 @@
1
1
 
2
2
  --------------------------------------------------------------------------------
3
- Package: @angular/cdk
3
+ Package: @angular/material
4
4
  License: "MIT"
5
5
 
6
6
  The MIT License
@@ -26,7 +26,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
26
  THE SOFTWARE.
27
27
 
28
28
  --------------------------------------------------------------------------------
29
- Package: @angular/material
29
+ Package: @dealpos-npm/ng-dealpos-library
30
+ License: "ISC"
31
+
32
+
33
+ --------------------------------------------------------------------------------
34
+ Package: @angular/cdk
30
35
  License: "MIT"
31
36
 
32
37
  The MIT License
@@ -56,69 +61,11 @@ Package: @microsoft/signalr
56
61
  License: "MIT"
57
62
 
58
63
 
59
- --------------------------------------------------------------------------------
60
- Package: @dealpos-npm/ng-dealpos-library
61
- License: "ISC"
62
-
63
-
64
64
  --------------------------------------------------------------------------------
65
65
  Package: primeng
66
66
  License: "MIT"
67
67
 
68
68
 
69
- --------------------------------------------------------------------------------
70
- Package: moment
71
- License: "MIT"
72
-
73
- Copyright (c) JS Foundation and other contributors
74
-
75
- Permission is hereby granted, free of charge, to any person
76
- obtaining a copy of this software and associated documentation
77
- files (the "Software"), to deal in the Software without
78
- restriction, including without limitation the rights to use,
79
- copy, modify, merge, publish, distribute, sublicense, and/or sell
80
- copies of the Software, and to permit persons to whom the
81
- Software is furnished to do so, subject to the following
82
- conditions:
83
-
84
- The above copyright notice and this permission notice shall be
85
- included in all copies or substantial portions of the Software.
86
-
87
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
88
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
89
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
90
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
91
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
92
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
93
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
94
- OTHER DEALINGS IN THE SOFTWARE.
95
-
96
- --------------------------------------------------------------------------------
97
- Package: @angular/material-moment-adapter
98
- License: "MIT"
99
-
100
- The MIT License
101
-
102
- Copyright (c) 2024 Google LLC.
103
-
104
- Permission is hereby granted, free of charge, to any person obtaining a copy
105
- of this software and associated documentation files (the "Software"), to deal
106
- in the Software without restriction, including without limitation the rights
107
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
108
- copies of the Software, and to permit persons to whom the Software is
109
- furnished to do so, subject to the following conditions:
110
-
111
- The above copyright notice and this permission notice shall be included in
112
- all copies or substantial portions of the Software.
113
-
114
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
115
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
116
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
117
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
118
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
119
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
120
- THE SOFTWARE.
121
-
122
69
  --------------------------------------------------------------------------------
123
70
  Package: ng-http-loader
124
71
  License: "MIT"
@@ -191,9 +138,57 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
191
138
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
192
139
 
193
140
  --------------------------------------------------------------------------------
194
- Package: @ng-select/ng-select
141
+ Package: moment
195
142
  License: "MIT"
196
143
 
144
+ Copyright (c) JS Foundation and other contributors
145
+
146
+ Permission is hereby granted, free of charge, to any person
147
+ obtaining a copy of this software and associated documentation
148
+ files (the "Software"), to deal in the Software without
149
+ restriction, including without limitation the rights to use,
150
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
151
+ copies of the Software, and to permit persons to whom the
152
+ Software is furnished to do so, subject to the following
153
+ conditions:
154
+
155
+ The above copyright notice and this permission notice shall be
156
+ included in all copies or substantial portions of the Software.
157
+
158
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
159
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
160
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
161
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
162
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
163
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
164
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
165
+ OTHER DEALINGS IN THE SOFTWARE.
166
+
167
+ --------------------------------------------------------------------------------
168
+ Package: @angular/material-moment-adapter
169
+ License: "MIT"
170
+
171
+ The MIT License
172
+
173
+ Copyright (c) 2024 Google LLC.
174
+
175
+ Permission is hereby granted, free of charge, to any person obtaining a copy
176
+ of this software and associated documentation files (the "Software"), to deal
177
+ in the Software without restriction, including without limitation the rights
178
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
179
+ copies of the Software, and to permit persons to whom the Software is
180
+ furnished to do so, subject to the following conditions:
181
+
182
+ The above copyright notice and this permission notice shall be included in
183
+ all copies or substantial portions of the Software.
184
+
185
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
186
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
187
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
188
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
189
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
190
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
191
+ THE SOFTWARE.
197
192
 
198
193
  --------------------------------------------------------------------------------
199
194
  Package: autonumeric
@@ -228,6 +223,11 @@ Package: bigger-picture
228
223
  License: "MIT"
229
224
 
230
225
 
226
+ --------------------------------------------------------------------------------
227
+ Package: @ng-select/ng-select
228
+ License: "MIT"
229
+
230
+
231
231
  --------------------------------------------------------------------------------
232
232
  Package: firebase
233
233
  License: "Apache-2.0"
@@ -0,0 +1 @@
1
+ import{$ as P,A as z,E as F,I as H,L as G,La as Q,N as v,R as C,Sa as X,T as j,Wc as ee,X as V,aa as Y,ba as T,ca as d,d as f,da as S,ha as Z,ia as J,jc as _,m as p,n as h,na as q,q as E,s as y,t as I,w as M,za as $}from"./chunk-HSFUKC7R.js";import{a as g,b as A}from"./chunk-GNOSNGXM.js";var c=function(s){return s[s.Tokopedia=1]="Tokopedia",s[s.WooCommerce=2]="WooCommerce",s[s.None=3]="None",s[s.KalCare=4]="KalCare",s[s.Shopee=5]="Shopee",s[s.Tiktok=6]="Tiktok",s[s.Lazada=7]="Lazada",s[s.Shopify=8]="Shopify",s}(c||{});var u=function(s){return s.SHOOPE="https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png",s.WOOCOMMERCE="https://res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp",s.TOKOPEDIA="https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png",s.TIKTOK="https://res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png",s.LAZADA="https://res.cloudinary.com/pos/image/upload/v1680681836/icons/marketplace_icons/Lazadanew.png",s.KALCARE="https://res.cloudinary.com/pos/image/upload/v1654230268/icons/marketplace_icons/kalcare.png",s.SHOPIFY="https://res.cloudinary.com/pos/image/upload/v1707987435/icons/marketplace_icons/shopify.png",s}(u||{});var fe=(()=>{let r=class r{static IsNotEmpty(e){return e!=""&&e!=r.GuidEMpty&&e!=null&&e!=null}static IsEmpty(e){return e==""||e==null||e==null||e==r.GuidEMpty}static getChannelLogoByTypeId(e){let t;switch(e){case c.Tokopedia:t=u.TOKOPEDIA;break;case c.Shopee:t=u.SHOOPE;break;case c.WooCommerce:t=u.WOOCOMMERCE;break;case c.Lazada:t=u.LAZADA;break;case c.Tiktok:t=u.TIKTOK;break;case c.KalCare:t=u.KALCARE;break;case c.Shopify:t=u.SHOPIFY;break}return t}static getChannelLogoByName(e=""){e=e.toLowerCase();let t;switch(e){case"tokopedia":t=u.TOKOPEDIA;break;case"shoppe":t=u.SHOOPE;break;case"woocommerce":t=u.WOOCOMMERCE;break;case"tiktok":t=u.TIKTOK;break;case"lazada":t=u.LAZADA;break;case"kalCare":t=u.KALCARE;break}return t}static getChannelName(e){let t;switch(e){case c.Shopee:t="Shopee";break;case c.Tokopedia:t="Tokopedia";break;case c.Lazada:t="Lazada";break;case c.Tiktok:t="Tiktok";break;case c.WooCommerce:t="WooCommerce";break;case c.KalCare:t="WooCommerce";break}return t}static assignChannelLogo(e){return e=e.map(t=>(t.logo=this.getChannelLogoByTypeId(t.TypeID),t)),e}static getCssChannelColor(e){let t;switch(e){case c.Shopee:t="#ee4d2d";break;case c.Tokopedia:t="var(--G500,#03AC0E)";break;case c.Lazada:t="#FF00B2";break;case c.Tiktok:t="black";break;case c.WooCommerce:t="#674399";break;case c.KalCare:t="rgb(128, 188, 0)";break}return t}static getDaysDiff(e,t){var i=t.getTime()-e.getTime(),n=i/(1e3*60*60*24);return n}static addDays(e,t){let i=new Date(Number(e));return i.setDate(e.getDate()-t),i}static isValidDate(e){return e instanceof Date&&!isNaN(e)}static getImageInfo(e){return new Promise((t,i)=>{let n=new Image;n.src=e,n.decode().then(()=>{t({img:e,height:n.height,width:n.width})}).catch(()=>{i(new Error(`Image load error for ${e}`))})})}static formatTitleFromDate(e,t){let i=null,n=new Date(e),o=new Date(t);return n.getDate()!=o.getDate()&&(i="dd"),n.getMonth()!=o.getMonth()&&(i="dd MMM"),n.getFullYear()!=o.getFullYear()&&(i="dd MMM yyyy"),i}static openDownloadFile(e,t){var i=window.URL.createObjectURL(e),n=document.createElement("a");n.href=i,n.download=t,n.click()}static compare(e,t,i){return(e<t?-1:1)*(i?1:-1)}static isDateExpired(e){let t=new Date,i=!1;return e.getTime()<t.getTime()&&(i=!0),i}static getLabelPathTree(e){let t=[],i=e;for(;i;)t.unshift(i.label),i=i.parent;return t.join(" / ")}static getTimeDifference(e){let t=new Date(e),i=new Date,n=Math.abs(t.getTime()-i.getTime()),o=1e3,a=6e4,m=60*a,x=24*m,ne=Math.floor(n/x),oe=Math.floor(n%x/m),ae=Math.floor(n%m/a),ce=Math.floor(n%a/o);return{days:ne,hours:oe,minutes:ae,seconds:ce}}static convertToReadableDate(e){let{days:t,hours:i,minutes:n,seconds:o}=r.getTimeDifference(e),a="";return t>0&&i>0&&n>0&&(a=`${t} days, ${i} hours and ${n} minutes ago`),t>0&&i>0&&n==0&&(a=`${t} days and ${i} hours ago`),t>0&&i==0&&(a=`${t} days ago`),t==0&&i>0&&n>0&&(a=`${i} hours and ${n} minutes ago`),t==0&&i>0&&n==0&&(a=`${i} hours ago`),t==0&&i==0&&n>0&&(a=`${n} minutes ago`),t==0&&i==0&&n==0&&o>0&&(a=`${o} seconds ago`),a}};r.GuidEMpty="00000000-0000-0000-0000-000000000000",r.MinDate="0001-01-01T00:00:00";let s=r;return s})();var w={REMOVE:"remove",SHOW:"show"},ie=(()=>{let r=class r{constructor(){this.strategiesSource=new f({}),this.strategies$=this.strategiesSource.asObservable()}};r.\u0275fac=function(t){return new(t||r)},r.\u0275prov=P({token:r,factory:r.\u0275fac});let s=r;return s})(),W=new T("USE_CONFIGURATION_STORE"),K=(()=>{let r=class r{constructor(e=!1,t){this.isolate=e,this.configurationStore=t,this.strategiesSource=this.isolate?new f({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy}setDefaultOnAuthorizedStrategy(e){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(e):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(e),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy)}setDefaultOnUnauthorizedStrategy(e){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(e):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(e),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy)}addPermissionStrategy(e,t){this.strategiesSource.value[e]=t}getStrategy(e){return this.strategiesSource.value[e]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(e){if(this.strategiesSource.value[e]||this.isPredefinedStrategy(e))return e;throw new Error(`No ' ${e} ' strategy is found please define one`)}isPredefinedStrategy(e){return e===w.SHOW||e===w.REMOVE}};r.\u0275fac=function(t){return new(t||r)(d(W),d(ie))},r.\u0275prov=P({token:r,factory:r.\u0275fac});let s=r;return s})();function l(s){return typeof s=="function"}function L(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;{let r=Object.getPrototypeOf(s);return r===null||r===Object.prototype}}function se(s){return!!s&&typeof s=="string"}function R(s){return typeof s=="boolean"}function he(s){return Object.prototype.toString.call(s)==="[object Promise]"}function D(s){return Array.isArray(s)?s.length>0:!!s}function k(s){return se(s)?[s]:s}var re=(()=>{let r=class r{constructor(){this.permissionsSource=new f({}),this.permissions$=this.permissionsSource.asObservable()}};r.\u0275fac=function(t){return new(t||r)},r.\u0275prov=P({token:r,factory:r.\u0275fac});let s=r;return s})(),B=new T("USE_PERMISSIONS_STORE"),O=(()=>{let r=class r{constructor(e=!1,t){this.isolate=e,this.permissionsStore=t,this.permissionsSource=this.isolate?new f({}):this.permissionsStore.permissionsSource,this.permissions$=this.permissionsSource.asObservable()}flushPermissions(){this.permissionsSource.next({})}hasPermission(e){return!e||Array.isArray(e)&&e.length===0?Promise.resolve(!0):(e=k(e),this.hasArrayPermission(e))}loadPermissions(e,t){let i=e.reduce((n,o)=>this.reducePermission(n,o,t),{});this.permissionsSource.next(i)}addPermission(e,t){if(Array.isArray(e)){let i=e.reduce((n,o)=>this.reducePermission(n,o,t),this.permissionsSource.value);this.permissionsSource.next(i)}else{let i=this.reducePermission(this.permissionsSource.value,e,t);this.permissionsSource.next(i)}}removePermission(e){let t=g({},this.permissionsSource.value);delete t[e],this.permissionsSource.next(t)}getPermission(e){return this.permissionsSource.value[e]}getPermissions(){return this.permissionsSource.value}reducePermission(e,t,i){return i&&l(i)?A(g({},e),{[t]:{name:t,validationFunction:i}}):A(g({},e),{[t]:{name:t}})}hasArrayPermission(e){let t=e.map(i=>{if(this.hasPermissionValidationFunction(i)){let n=this.permissionsSource.value[i].validationFunction,o=g({},this.permissionsSource.value);return h(null).pipe(E(()=>n(i,o)),j(a=>R(a)?h(a):a),F(()=>h(!1)))}return h(!!this.permissionsSource.value[i])});return p(t).pipe(I(),v(i=>i!==!1,!1),E(i=>i!==!1)).toPromise().then(i=>i)}hasPermissionValidationFunction(e){return!!this.permissionsSource.value[e]&&!!this.permissionsSource.value[e].validationFunction&&l(this.permissionsSource.value[e].validationFunction)}};r.\u0275fac=function(t){return new(t||r)(d(B),d(re))},r.\u0275prov=P({token:r,factory:r.\u0275fac});let s=r;return s})(),b=class{constructor(){this.rolesSource=new f({}),this.roles$=this.rolesSource.asObservable()}},N=new T("USE_ROLES_STORE"),U=(()=>{let r=class r{constructor(e=!1,t,i){this.isolate=e,this.rolesStore=t,this.permissionsService=i,this.rolesSource=this.isolate?new f({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable()}addRole(e,t){let i=A(g({},this.rolesSource.value),{[e]:{name:e,validationFunction:t}});this.rolesSource.next(i)}addRoleWithPermissions(e,t){this.permissionsService.addPermission(t),this.addRole(e,t)}addRoles(e){Object.keys(e).forEach((t,i)=>{this.addRole(t,e[t])})}addRolesWithPermissions(e){Object.keys(e).forEach((t,i)=>{this.addRoleWithPermissions(t,e[t])})}flushRoles(){this.rolesSource.next({})}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions()}removeRole(e){let t=g({},this.rolesSource.value);delete t[e],this.rolesSource.next(t)}getRoles(){return this.rolesSource.value}getRole(e){return this.rolesSource.value[e]}hasOnlyRoles(e){return!e||Array.isArray(e)&&e.length===0?Promise.resolve(!0):(e=k(e),Promise.all([this.hasRoleKey(e),this.hasRolePermission(this.rolesSource.value,e)]).then(([i,n])=>i||n))}hasRoleKey(e){let t=e.map(i=>{if(!!this.rolesSource.value[i]&&!!this.rolesSource.value[i].validationFunction&&l(this.rolesSource.value[i].validationFunction)&&!he(this.rolesSource.value[i].validationFunction)){let o=this.rolesSource.value[i].validationFunction,a=g({},this.rolesSource.value);return h(null).pipe(E(()=>o(i,a)),j(m=>R(m)?h(m):m),F(()=>h(!1)))}return h(!1)});return p(t).pipe(I(),v(i=>i!==!1,!1),E(i=>i!==!1)).toPromise().then(i=>i)}hasRolePermission(e,t){return p(t).pipe(y(i=>e[i]&&Array.isArray(e[i].validationFunction)?p(e[i].validationFunction).pipe(y(n=>this.permissionsService.hasPermission(n)),G(n=>n===!0)):h(!1)),v(i=>i===!0,!1)).toPromise()}};r.\u0275fac=function(t){return new(t||r)(d(N),d(b),d(O))},r.\u0275prov=P({token:r,factory:r.\u0275fac});let s=r;return s})(),Re=(()=>{let r=class r{constructor(){this.permissionsAuthorized=new $,this.permissionsUnauthorized=new $,this.firstMergeUnusedRun=1,this.permissionsService=S(O),this.configurationService=S(K),this.rolesService=S(U),this.viewContainer=S(X),this.changeDetector=S(_),this.templateRef=S(Q)}ngOnInit(){this.viewContainer.clear(),this.initPermissionSubscription=this.validateExceptOnlyPermissions()}ngOnChanges(e){let t=e.ngxPermissionsOnly,i=e.ngxPermissionsExcept;if(t||i){if(t&&t.firstChange||i&&i.firstChange)return;z(this.permissionsService.permissions$,this.rolesService.roles$).pipe(C(this.firstMergeUnusedRun),H(1)).subscribe(()=>{if(D(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(D(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}}ngOnDestroy(){this.initPermissionSubscription&&this.initPermissionSubscription.unsubscribe()}validateExceptOnlyPermissions(){return z(this.permissionsService.permissions$,this.rolesService.roles$).pipe(C(this.firstMergeUnusedRun)).subscribe(()=>{if(D(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(D(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}validateExceptAndOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsExcept),this.rolesService.hasOnlyRoles(this.ngxPermissionsExcept)]).then(([e,t])=>{if(e||t){this.handleUnauthorisedPermission(this.ngxPermissionsExceptElse||this.ngxPermissionsElse);return}if(this.ngxPermissionsOnly)throw!1;this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)}).catch(()=>{this.ngxPermissionsOnly?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)})}validateOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsOnly),this.rolesService.hasOnlyRoles(this.ngxPermissionsOnly)]).then(([e,t])=>{e||t?this.handleAuthorisedPermission(this.ngxPermissionsOnlyThen||this.ngxPermissionsThen||this.templateRef):this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)}).catch(()=>{this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)})}handleUnauthorisedPermission(e){if(!(R(this.currentAuthorizedState)&&!this.currentAuthorizedState)){if(this.currentAuthorizedState=!1,this.permissionsUnauthorized.emit(),this.getUnAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getUnAuthorizedStrategyInput());return}this.configurationService.onUnAuthorisedDefaultStrategy&&!this.elseBlockDefined()?this.applyStrategy(this.configurationService.onUnAuthorisedDefaultStrategy):this.showTemplateBlockInView(e)}}handleAuthorisedPermission(e){if(!(R(this.currentAuthorizedState)&&this.currentAuthorizedState)){if(this.currentAuthorizedState=!0,this.permissionsAuthorized.emit(),this.getAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getAuthorizedStrategyInput());return}this.configurationService.onAuthorisedDefaultStrategy&&!this.thenBlockDefined()?this.applyStrategy(this.configurationService.onAuthorisedDefaultStrategy):this.showTemplateBlockInView(e)}}applyStrategyAccordingToStrategyType(e){if(se(e)){this.applyStrategy(e);return}if(l(e)){this.showTemplateBlockInView(this.templateRef),e(this.templateRef);return}}showTemplateBlockInView(e){this.viewContainer.clear(),e&&(this.viewContainer.createEmbeddedView(e),this.changeDetector.markForCheck())}getAuthorisedTemplates(){return this.ngxPermissionsOnlyThen||this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef}elseBlockDefined(){return!!this.ngxPermissionsExceptElse||!!this.ngxPermissionsElse}thenBlockDefined(){return!!this.ngxPermissionsExceptThen||!!this.ngxPermissionsThen}getAuthorizedStrategyInput(){return this.ngxPermissionsOnlyAuthorisedStrategy||this.ngxPermissionsExceptAuthorisedStrategy||this.ngxPermissionsAuthorisedStrategy}getUnAuthorizedStrategyInput(){return this.ngxPermissionsOnlyUnauthorisedStrategy||this.ngxPermissionsExceptUnauthorisedStrategy||this.ngxPermissionsUnauthorisedStrategy}applyStrategy(e){if(e===w.SHOW){this.showTemplateBlockInView(this.templateRef);return}if(e===w.REMOVE){this.viewContainer.clear();return}let t=this.configurationService.getStrategy(e);this.showTemplateBlockInView(this.templateRef),t(this.templateRef)}};r.\u0275fac=function(t){return new(t||r)},r.\u0275dir=J({type:r,selectors:[["","ngxPermissionsOnly",""],["","ngxPermissionsExcept",""]],inputs:{ngxPermissionsOnly:"ngxPermissionsOnly",ngxPermissionsOnlyThen:"ngxPermissionsOnlyThen",ngxPermissionsOnlyElse:"ngxPermissionsOnlyElse",ngxPermissionsExcept:"ngxPermissionsExcept",ngxPermissionsExceptElse:"ngxPermissionsExceptElse",ngxPermissionsExceptThen:"ngxPermissionsExceptThen",ngxPermissionsThen:"ngxPermissionsThen",ngxPermissionsElse:"ngxPermissionsElse",ngxPermissionsOnlyAuthorisedStrategy:"ngxPermissionsOnlyAuthorisedStrategy",ngxPermissionsOnlyUnauthorisedStrategy:"ngxPermissionsOnlyUnauthorisedStrategy",ngxPermissionsExceptUnauthorisedStrategy:"ngxPermissionsExceptUnauthorisedStrategy",ngxPermissionsExceptAuthorisedStrategy:"ngxPermissionsExceptAuthorisedStrategy",ngxPermissionsUnauthorisedStrategy:"ngxPermissionsUnauthorisedStrategy",ngxPermissionsAuthorisedStrategy:"ngxPermissionsAuthorisedStrategy"},outputs:{permissionsAuthorized:"permissionsAuthorized",permissionsUnauthorized:"permissionsUnauthorized"},features:[q]});let s=r;return s})(),ue="default";var te=(()=>{let r=class r{constructor(e,t,i){this.permissionsService=e,this.rolesService=t,this.router=i}canActivate(e,t){return this.hasPermissions(e,t)}canActivateChild(e,t){return this.hasPermissions(e,t)}canLoad(e){return this.hasPermissions(e)}canMatch(e){return this.hasPermissions(e)}hasPermissions(e,t){let i=e&&e.data?e.data.permissions:{},n=this.transformPermission(i,e,t);return this.isParameterAvailable(n.except)?this.passingExceptPermissionsValidation(n,e,t):this.isParameterAvailable(n.only)?this.passingOnlyPermissionsValidation(n,e,t):!0}transformPermission(e,t,i){let n=l(e.only)?e.only(t,i):k(e.only),o=l(e.except)?e.except(t,i):k(e.except),a=e.redirectTo;return{only:n,except:o,redirectTo:a}}isParameterAvailable(e){return!!e&&e.length>0}passingExceptPermissionsValidation(e,t,i){if(e.redirectTo&&(l(e.redirectTo)||L(e.redirectTo)&&!this.isRedirectionWithParameters(e.redirectTo))){let n="";return p(e.except).pipe(y(o=>M([this.permissionsService.hasPermission(o),this.rolesService.hasOnlyRoles(o)]).pipe(V(a=>{a.every(x=>x===!1)||(n=o)}))),v(o=>o.some(a=>a===!0),!1),y(o=>n?(this.handleRedirectOfFailedPermission(e,n,t,i),h(!1)):!o&&e.only?this.onlyRedirectCheck(e,t,i):h(!o))).toPromise()}return Promise.all([this.permissionsService.hasPermission(e.except),this.rolesService.hasOnlyRoles(e.except)]).then(([n,o])=>n||o?(e.redirectTo&&this.redirectToAnotherRoute(e.redirectTo,t,i),!1):e.only?this.checkOnlyPermissions(e,t,i):!0)}redirectToAnotherRoute(e,t,i,n){let o=l(e)?e(n,t,i):e;if(this.isRedirectionWithParameters(o)){o.navigationCommands=this.transformNavigationCommands(o.navigationCommands,t,i),o.navigationExtras=this.transformNavigationExtras(o.navigationExtras,t,i),this.router.navigate(o.navigationCommands,o.navigationExtras);return}Array.isArray(o)?this.router.navigate(o):this.router.navigate([o])}isRedirectionWithParameters(e){return L(e)&&(!!e.navigationCommands||!!e.navigationExtras)}transformNavigationCommands(e,t,i){return l(e)?e(t,i):e}transformNavigationExtras(e,t,i){return l(e)?e(t,i):e}onlyRedirectCheck(e,t,i){let n="";return p(e.only).pipe(y(o=>M([this.permissionsService.hasPermission(o),this.rolesService.hasOnlyRoles(o)]).pipe(V(a=>{a.every(x=>x===!1)&&(n=o)}))),v(o=>l(e.redirectTo)?o.some(a=>a===!0):o.every(a=>a===!1),!1),y(o=>l(e.redirectTo)?o?h(!0):(this.handleRedirectOfFailedPermission(e,n,t,i),h(!1)):(n&&this.handleRedirectOfFailedPermission(e,n,t,i),h(!o)))).toPromise()}handleRedirectOfFailedPermission(e,t,i,n){this.isFailedPermissionPropertyOfRedirectTo(e,t)?this.redirectToAnotherRoute(e.redirectTo[t],i,n,t):l(e.redirectTo)?this.redirectToAnotherRoute(e.redirectTo,i,n,t):this.redirectToAnotherRoute(e.redirectTo[ue],i,n,t)}isFailedPermissionPropertyOfRedirectTo(e,t){return!!e.redirectTo&&e.redirectTo[t]}checkOnlyPermissions(e,t,i){let n=g({},e);return Promise.all([this.permissionsService.hasPermission(n.only),this.rolesService.hasOnlyRoles(n.only)]).then(([o,a])=>o||a?!0:(n.redirectTo&&this.redirectToAnotherRoute(n.redirectTo,t,i),!1))}passingOnlyPermissionsValidation(e,t,i){return l(e.redirectTo)||L(e.redirectTo)&&!this.isRedirectionWithParameters(e.redirectTo)?this.onlyRedirectCheck(e,t,i):this.checkOnlyPermissions(e,t,i)}};r.\u0275fac=function(t){return new(t||r)(d(O),d(U),d(ee))},r.\u0275prov=P({token:r,factory:r.\u0275fac});let s=r;return s})();var ke=(()=>{let r=class r{static forRoot(e={}){return{ngModule:r,providers:[re,b,ie,O,te,U,K,{provide:B,useValue:e.permissionsIsolate},{provide:N,useValue:e.rolesIsolate},{provide:W,useValue:e.configurationIsolate}]}}static forChild(e={}){return{ngModule:r,providers:[{provide:B,useValue:e.permissionsIsolate},{provide:N,useValue:e.rolesIsolate},{provide:W,useValue:e.configurationIsolate},K,O,U,te]}}};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=Z({type:r}),r.\u0275inj=Y({});let s=r;return s})();export{u as a,c as b,fe as c,O as d,Re as e,ke as f};
@@ -1 +1 @@
1
- import{b as W}from"./chunk-MVPTQRFO.js";import{D as K,K as G,S as X,T as Z,aa as ee}from"./chunk-EKCNJX26.js";import{a as J}from"./chunk-B3LBEB32.js";import{$a as h,Bb as Q,Cb as w,Cc as Y,Da as V,Db as p,Eb as f,Ia as m,Ja as d,Pb as H,Qb as $,Ra as L,Ya as R,_ as q,_a as C,aa as z,ba as g,bb as D,da as M,ga as O,ha as P,ia as x,ic as T,jc as c,kc as A,lb as s,mb as l,nb as E,oa as k,pa as y,rb as B,ta as S,ua as j,ub as b,xb as N,ya as _,yb as U,za as I}from"./chunk-C3YE27TZ.js";var de=["input"],ce=["formField"],ne=["*"],ie=0,v=class{constructor(o,re){this.source=o,this.value=re}},se={provide:J,useExisting:q(()=>me),multi:!0},te=new g("MatRadioGroup"),le=new g("mat-radio-default-options",{providedIn:"root",factory:ue});function ue(){return{color:"accent"}}var me=(()=>{let o=class o{get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name=`mat-radio-group-${ie++}`,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new I}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new v(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}};o.\u0275fac=function(i){return new(i||o)(d(T))},o.\u0275dir=x({type:o,selectors:[["mat-radio-group"]],contentQueries:function(i,t,a){if(i&1&&Q(a,oe,5),i&2){let n;p(n=f())&&(t._radios=n)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",c],required:[2,"required","required",c]},outputs:{change:"change"},exportAs:["matRadioGroup"],standalone:!0,features:[H([se,{provide:te,useExisting:o}]),R]});let r=o;return r})(),oe=(()=>{let o=class o{get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,t,a,n,u,ae,F){this._elementRef=i,this._changeDetector=t,this._focusMonitor=a,this._radioDispatcher=n,this._providerOverride=ae,this._uniqueId=`mat-radio-${++ie}`,this.id=this._uniqueId,this.disableRipple=!1,this.tabIndex=0,this.change=new I,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this._injector=M(j),this.radioGroup=e,this._noopAnimations=u==="NoopAnimations",F&&(this.tabIndex=A(F,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new v(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let t=this._inputElement?.nativeElement;t&&(t.setAttribute("tabindex",i+""),this._previousTabIndex=i,L(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===t&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===t&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}};o.\u0275fac=function(i){return new(i||o)(d(te,8),d(_),d(T),d(K),d(W),d(V,8),d(le,8),S("tabindex"))},o.\u0275cmp=O({type:o,selectors:[["mat-radio-button"]],viewQuery:function(i,t){if(i&1&&(w(de,5),w(ce,7,_)),i&2){let a;p(a=f())&&(t._inputElement=a.first),p(a=f())&&(t._rippleTrigger=a.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(i,t){i&1&&b("focus",function(){return t._inputElement.nativeElement.focus()}),i&2&&(C("id",t.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),D("mat-primary",t.color==="primary")("mat-accent",t.color==="accent")("mat-warn",t.color==="warn")("mat-mdc-radio-checked",t.checked)("_mat-animation-noopable",t._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",c],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:A(e)],checked:[2,"checked","checked",c],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",c],required:[2,"required","required",c],color:"color"},outputs:{change:"change"},exportAs:["matRadioButton"],standalone:!0,features:[R,$],ngContentSelectors:ne,decls:13,vars:16,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,t){if(i&1){let a=B();N(),s(0,"div",2,0)(2,"div",3)(3,"div",4),b("click",function(u){return k(a),y(t._onTouchTargetClick(u))}),l(),s(4,"input",5,1),b("change",function(u){return k(a),y(t._onInputInteraction(u))}),l(),s(6,"div",6),E(7,"div",7)(8,"div",8),l(),s(9,"div",9),E(10,"div",10),l()(),s(11,"label",11),U(12),l()()}i&2&&(h("labelPosition",t.labelPosition),m(2),D("mdc-radio--disabled",t.disabled),m(2),h("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("required",t.required),C("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),m(5),h("matRippleTrigger",t._rippleTrigger.nativeElement)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0),m(2),h("for",t.inputId))},dependencies:[X,ee],styles:['.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mdc-radio-state-layer-size) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled])~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size);top:calc(-1*(var(--mdc-radio-state-layer-size) - 20px)/2);left:calc(-1*(var(--mdc-radio-state-layer-size) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color);opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color);opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio--disabled{cursor:default;pointer-events:none}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color);font-family:var(--mat-radio-label-text-font);line-height:var(--mat-radio-label-text-line-height);font-size:var(--mat-radio-label-text-size);letter-spacing:var(--mat-radio-label-text-tracking);font-weight:var(--mat-radio-label-text-weight)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0});let r=o;return r})(),qe=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=P({type:o}),o.\u0275inj=z({imports:[G,Y,Z,oe,G]});let r=o;return r})();export{me as a,oe as b,qe as c};
1
+ import{b as W}from"./chunk-CTKEWRX4.js";import{D as K,K as G,S as X,T as Z,aa as ee}from"./chunk-GXHE2CDH.js";import{a as J}from"./chunk-QOA24ZLA.js";import{$a as h,Bb as Q,Cb as w,Da as V,Db as p,Dc as Y,Eb as f,Ia as m,Ja as d,Pb as H,Qb as $,Ra as L,Ya as R,_ as q,_a as C,aa as z,ba as g,bb as D,da as M,ga as O,ha as P,ia as x,jc as T,kc as c,lb as s,lc as A,mb as l,nb as E,oa as k,pa as y,rb as B,ta as S,ua as j,ub as b,xb as N,ya as _,yb as U,za as I}from"./chunk-HSFUKC7R.js";var de=["input"],ce=["formField"],ne=["*"],ie=0,v=class{constructor(o,re){this.source=o,this.value=re}},se={provide:J,useExisting:q(()=>me),multi:!0},te=new g("MatRadioGroup"),le=new g("mat-radio-default-options",{providedIn:"root",factory:ue});function ue(){return{color:"accent"}}var me=(()=>{let o=class o{get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name=`mat-radio-group-${ie++}`,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new I}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new v(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}};o.\u0275fac=function(i){return new(i||o)(d(T))},o.\u0275dir=x({type:o,selectors:[["mat-radio-group"]],contentQueries:function(i,t,a){if(i&1&&Q(a,oe,5),i&2){let n;p(n=f())&&(t._radios=n)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",c],required:[2,"required","required",c]},outputs:{change:"change"},exportAs:["matRadioGroup"],standalone:!0,features:[H([se,{provide:te,useExisting:o}]),R]});let r=o;return r})(),oe=(()=>{let o=class o{get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,t,a,n,u,ae,F){this._elementRef=i,this._changeDetector=t,this._focusMonitor=a,this._radioDispatcher=n,this._providerOverride=ae,this._uniqueId=`mat-radio-${++ie}`,this.id=this._uniqueId,this.disableRipple=!1,this.tabIndex=0,this.change=new I,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this._injector=M(j),this.radioGroup=e,this._noopAnimations=u==="NoopAnimations",F&&(this.tabIndex=A(F,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new v(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let t=this._inputElement?.nativeElement;t&&(t.setAttribute("tabindex",i+""),this._previousTabIndex=i,L(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===t&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===t&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}};o.\u0275fac=function(i){return new(i||o)(d(te,8),d(_),d(T),d(K),d(W),d(V,8),d(le,8),S("tabindex"))},o.\u0275cmp=O({type:o,selectors:[["mat-radio-button"]],viewQuery:function(i,t){if(i&1&&(w(de,5),w(ce,7,_)),i&2){let a;p(a=f())&&(t._inputElement=a.first),p(a=f())&&(t._rippleTrigger=a.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(i,t){i&1&&b("focus",function(){return t._inputElement.nativeElement.focus()}),i&2&&(C("id",t.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),D("mat-primary",t.color==="primary")("mat-accent",t.color==="accent")("mat-warn",t.color==="warn")("mat-mdc-radio-checked",t.checked)("_mat-animation-noopable",t._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",c],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:A(e)],checked:[2,"checked","checked",c],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",c],required:[2,"required","required",c],color:"color"},outputs:{change:"change"},exportAs:["matRadioButton"],standalone:!0,features:[R,$],ngContentSelectors:ne,decls:13,vars:16,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,t){if(i&1){let a=B();N(),s(0,"div",2,0)(2,"div",3)(3,"div",4),b("click",function(u){return k(a),y(t._onTouchTargetClick(u))}),l(),s(4,"input",5,1),b("change",function(u){return k(a),y(t._onInputInteraction(u))}),l(),s(6,"div",6),E(7,"div",7)(8,"div",8),l(),s(9,"div",9),E(10,"div",10),l()(),s(11,"label",11),U(12),l()()}i&2&&(h("labelPosition",t.labelPosition),m(2),D("mdc-radio--disabled",t.disabled),m(2),h("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("required",t.required),C("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),m(5),h("matRippleTrigger",t._rippleTrigger.nativeElement)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0),m(2),h("for",t.inputId))},dependencies:[X,ee],styles:['.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mdc-radio-state-layer-size) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled])~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size);top:calc(-1*(var(--mdc-radio-state-layer-size) - 20px)/2);left:calc(-1*(var(--mdc-radio-state-layer-size) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color);opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color);opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio--disabled{cursor:default;pointer-events:none}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color);font-family:var(--mat-radio-label-text-font);line-height:var(--mat-radio-label-text-line-height);font-size:var(--mat-radio-label-text-size);letter-spacing:var(--mat-radio-label-text-tracking);font-weight:var(--mat-radio-label-text-weight)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0});let r=o;return r})(),qe=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=P({type:o}),o.\u0275inj=z({imports:[G,Y,Z,oe,G]});let r=o;return r})();export{me as a,oe as b,qe as c};
@@ -0,0 +1,4 @@
1
+ import{M as Ws,N as Ps}from"./chunk-GXHE2CDH.js";import{$ as xs,ba as Ns,ca as bt}from"./chunk-HSFUKC7R.js";import{c as Ts,e as Fi,g as bs}from"./chunk-GNOSNGXM.js";var Nt=Fi((xt,ye)=>{(function(F,l){typeof xt=="object"&&typeof ye<"u"?ye.exports=l():typeof define=="function"&&define.amd?define(l):F.moment=l()})(xt,function(){"use strict";var F;function l(){return F.apply(null,arguments)}function be(e){F=e}function u(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function _(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function V(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(y(e,t))return!1;return!0}function T(e){return e===void 0}function G(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function we(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Wt(e,t){var s=[],r,a=e.length;for(r=0;r<a;++r)s.push(t(e[r],r));return s}function K(e,t){for(var s in t)y(t,s)&&(e[s]=t[s]);return y(t,"toString")&&(e.toString=t.toString),y(t,"valueOf")&&(e.valueOf=t.valueOf),e}function A(e,t,s,r){return as(e,t,s,r,!0).utc()}function Fs(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return e._pf==null&&(e._pf=Fs()),e._pf}var Je;Array.prototype.some?Je=Array.prototype.some:Je=function(e){var t=Object(this),s=t.length>>>0,r;for(r=0;r<s;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Qe(e){var t=null,s=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=m(e),s=Je.call(t.parsedDateParts,function(a){return a!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function xe(e){var t=A(NaN);return e!=null?K(m(t),e):m(t).userInvalidated=!0,t}var Pt=l.momentProperties=[],Xe=!1;function Ke(e,t){var s,r,a,n=Pt.length;if(T(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),T(t._i)||(e._i=t._i),T(t._f)||(e._f=t._f),T(t._l)||(e._l=t._l),T(t._strict)||(e._strict=t._strict),T(t._tzm)||(e._tzm=t._tzm),T(t._isUTC)||(e._isUTC=t._isUTC),T(t._offset)||(e._offset=t._offset),T(t._pf)||(e._pf=m(t)),T(t._locale)||(e._locale=t._locale),n>0)for(s=0;s<n;s++)r=Pt[s],a=t[r],T(a)||(e[r]=a);return e}function Me(e){Ke(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Xe===!1&&(Xe=!0,l.updateOffset(this),Xe=!1)}function I(e){return e instanceof Me||e!=null&&e._isAMomentObject!=null}function Rt(e){l.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function W(e,t){var s=!0;return K(function(){if(l.deprecationHandler!=null&&l.deprecationHandler(null,e),s){var r=[],a,n,i,d=arguments.length;for(n=0;n<d;n++){if(a="",typeof arguments[n]=="object"){a+=`
2
+ [`+n+"] ";for(i in arguments[0])y(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[n];r.push(a)}Rt(e+`
3
+ Arguments: `+Array.prototype.slice.call(r).join("")+`
4
+ `+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var Ft={};function It(e,t){l.deprecationHandler!=null&&l.deprecationHandler(e,t),Ft[e]||(Rt(t),Ft[e]=!0)}l.suppressDeprecationWarnings=!1,l.deprecationHandler=null;function U(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Is(e){var t,s;for(s in e)y(e,s)&&(t=e[s],U(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function et(e,t){var s=K({},e),r;for(r in t)y(t,r)&&(_(e[r])&&_(t[r])?(s[r]={},K(s[r],e[r]),K(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)y(e,r)&&!y(t,r)&&_(e[r])&&(s[r]=K({},s[r]));return s}function tt(e){e!=null&&this.set(e)}var st;Object.keys?st=Object.keys:st=function(e){var t,s=[];for(t in e)y(e,t)&&s.push(t);return s};var Ls={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Cs(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return U(r)?r.call(t,s):r}function E(e,t,s){var r=""+Math.abs(e),a=t-r.length,n=e>=0;return(n?s?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var rt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,at={},oe={};function f(e,t,s,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(oe[e]=a),t&&(oe[t[0]]=function(){return E(a.apply(this,arguments),t[1],t[2])}),s&&(oe[s]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function As(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Us(e){var t=e.match(rt),s,r;for(s=0,r=t.length;s<r;s++)oe[t[s]]?t[s]=oe[t[s]]:t[s]=As(t[s]);return function(a){var n="",i;for(i=0;i<r;i++)n+=U(t[i])?t[i].call(a,e):t[i];return n}}function We(e,t){return e.isValid()?(t=Lt(t,e.localeData()),at[t]=at[t]||Us(t),at[t](e)):e.localeData().invalidDate()}function Lt(e,t){var s=5;function r(a){return t.longDateFormat(a)||a}for(Ne.lastIndex=0;s>=0&&Ne.test(e);)e=e.replace(Ne,r),Ne.lastIndex=0,s-=1;return e}var Es={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Hs(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(rt).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Vs="Invalid date";function Gs(){return this._invalidDate}var js="%d",zs=/\d{1,2}/;function $s(e){return this._ordinal.replace("%d",e)}var Zs={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qs(e,t,s,r){var a=this._relativeTime[s];return U(a)?a(e,t,s,r):a.replace(/%d/i,e)}function Bs(e,t){var s=this._relativeTime[e>0?"future":"past"];return U(s)?s(t):s.replace(/%s/i,t)}var Ct={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function P(e){return typeof e=="string"?Ct[e]||Ct[e.toLowerCase()]:void 0}function nt(e){var t={},s,r;for(r in e)y(e,r)&&(s=P(r),s&&(t[s]=e[r]));return t}var Js={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Qs(e){var t=[],s;for(s in e)y(e,s)&&t.push({unit:s,priority:Js[s]});return t.sort(function(r,a){return r.priority-a.priority}),t}var At=/\d/,N=/\d\d/,Ut=/\d{3}/,it=/\d{4}/,Pe=/[+-]?\d{6}/,S=/\d\d?/,Et=/\d\d\d\d?/,Ht=/\d\d\d\d\d\d?/,Re=/\d{1,3}/,ot=/\d{1,4}/,Fe=/[+-]?\d{1,6}/,le=/\d+/,Ie=/[+-]?\d+/,Xs=/Z|[+-]\d\d:?\d\d/gi,Le=/Z|[+-]\d\d(?::?\d\d)?/gi,Ks=/[+-]?\d+(\.\d{1,3})?/,De=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ue=/^[1-9]\d?/,lt=/^([1-9]\d|\d)/,Ce;Ce={};function h(e,t,s){Ce[e]=U(t)?t:function(r,a){return r&&s?s:t}}function er(e,t){return y(Ce,e)?Ce[e](t._strict,t._locale):new RegExp(tr(e))}function tr(e){return j(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,a,n){return s||r||a||n}))}function j(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function R(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function w(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=R(t)),s}var ut={};function g(e,t){var s,r=t,a;for(typeof e=="string"&&(e=[e]),G(t)&&(r=function(n,i){i[t]=w(n)}),a=e.length,s=0;s<a;s++)ut[e[s]]=r}function ke(e,t){g(e,function(s,r,a,n){a._w=a._w||{},t(s,a._w,a,n)})}function sr(e,t,s){t!=null&&y(ut,e)&&ut[e](t,s._a,s,e)}function Ae(e){return e%4===0&&e%100!==0||e%400===0}var b=0,z=1,H=2,O=3,L=4,$=5,re=6,rr=7,ar=8;f("Y",0,0,function(){var e=this.year();return e<=9999?E(e,4):"+"+e}),f(0,["YY",2],0,function(){return this.year()%100}),f(0,["YYYY",4],0,"year"),f(0,["YYYYY",5],0,"year"),f(0,["YYYYYY",6,!0],0,"year"),h("Y",Ie),h("YY",S,N),h("YYYY",ot,it),h("YYYYY",Fe,Pe),h("YYYYYY",Fe,Pe),g(["YYYYY","YYYYYY"],b),g("YYYY",function(e,t){t[b]=e.length===2?l.parseTwoDigitYear(e):w(e)}),g("YY",function(e,t){t[b]=l.parseTwoDigitYear(e)}),g("Y",function(e,t){t[b]=parseInt(e,10)});function ge(e){return Ae(e)?366:365}l.parseTwoDigitYear=function(e){return w(e)+(w(e)>68?1900:2e3)};var Vt=de("FullYear",!0);function nr(){return Ae(this.year())}function de(e,t){return function(s){return s!=null?(Gt(this,e,s),l.updateOffset(this,t),this):Se(this,e)}}function Se(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Gt(e,t,s){var r,a,n,i,d;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(a?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(a?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(a?r.setUTCHours(s):r.setHours(s));case"Date":return void(a?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}n=s,i=e.month(),d=e.date(),d=d===29&&i===1&&!Ae(n)?28:d,a?r.setUTCFullYear(n,i,d):r.setFullYear(n,i,d)}}function ir(e){return e=P(e),U(this[e])?this[e]():this}function or(e,t){if(typeof e=="object"){e=nt(e);var s=Qs(e),r,a=s.length;for(r=0;r<a;r++)this[s[r].unit](e[s[r].unit])}else if(e=P(e),U(this[e]))return this[e](t);return this}function lr(e,t){return(e%t+t)%t}var Y;Array.prototype.indexOf?Y=Array.prototype.indexOf:Y=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function dt(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=lr(t,12);return e+=(t-s)/12,s===1?Ae(e)?29:28:31-s%7%2}f("M",["MM",2],"Mo",function(){return this.month()+1}),f("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),f("MMMM",0,0,function(e){return this.localeData().months(this,e)}),h("M",S,ue),h("MM",S,N),h("MMM",function(e,t){return t.monthsShortRegex(e)}),h("MMMM",function(e,t){return t.monthsRegex(e)}),g(["M","MM"],function(e,t){t[z]=w(e)-1}),g(["MMM","MMMM"],function(e,t,s,r){var a=s._locale.monthsParse(e,r,s._strict);a!=null?t[z]=a:m(s).invalidMonth=e});var ur="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),jt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),zt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,dr=De,hr=De;function fr(e,t){return e?u(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||zt).test(t)?"format":"standalone"][e.month()]:u(this._months)?this._months:this._months.standalone}function cr(e,t){return e?u(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[zt.test(t)?"format":"standalone"][e.month()]:u(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function mr(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)n=A([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(n,"").toLocaleLowerCase();return s?t==="MMM"?(a=Y.call(this._shortMonthsParse,i),a!==-1?a:null):(a=Y.call(this._longMonthsParse,i),a!==-1?a:null):t==="MMM"?(a=Y.call(this._shortMonthsParse,i),a!==-1?a:(a=Y.call(this._longMonthsParse,i),a!==-1?a:null)):(a=Y.call(this._longMonthsParse,i),a!==-1?a:(a=Y.call(this._shortMonthsParse,i),a!==-1?a:null))}function _r(e,t,s){var r,a,n;if(this._monthsParseExact)return mr.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=A([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(n="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function $t(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=w(t);else if(t=e.localeData().monthsParse(t),!G(t))return e}var s=t,r=e.date();return r=r<29?r:Math.min(r,dt(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,r):e._d.setMonth(s,r),e}function Zt(e){return e!=null?($t(this,e),l.updateOffset(this,!0),this):Se(this,"Month")}function yr(){return dt(this.year(),this.month())}function wr(e){return this._monthsParseExact?(y(this,"_monthsRegex")||qt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(y(this,"_monthsShortRegex")||(this._monthsShortRegex=dr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Mr(e){return this._monthsParseExact?(y(this,"_monthsRegex")||qt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(y(this,"_monthsRegex")||(this._monthsRegex=hr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function qt(){function e(c,M){return M.length-c.length}var t=[],s=[],r=[],a,n,i,d;for(a=0;a<12;a++)n=A([2e3,a]),i=j(this.monthsShort(n,"")),d=j(this.months(n,"")),t.push(i),s.push(d),r.push(d),r.push(i);t.sort(e),s.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Dr(e,t,s,r,a,n,i){var d;return e<100&&e>=0?(d=new Date(e+400,t,s,r,a,n,i),isFinite(d.getFullYear())&&d.setFullYear(e)):d=new Date(e,t,s,r,a,n,i),d}function pe(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ue(e,t,s){var r=7+t-s,a=(7+pe(e,0,r).getUTCDay()-t)%7;return-a+r-1}function Bt(e,t,s,r,a){var n=(7+s-r)%7,i=Ue(e,r,a),d=1+7*(t-1)+n+i,c,M;return d<=0?(c=e-1,M=ge(c)+d):d>ge(e)?(c=e+1,M=d-ge(e)):(c=e,M=d),{year:c,dayOfYear:M}}function ve(e,t,s){var r=Ue(e.year(),t,s),a=Math.floor((e.dayOfYear()-r-1)/7)+1,n,i;return a<1?(i=e.year()-1,n=a+Z(i,t,s)):a>Z(e.year(),t,s)?(n=a-Z(e.year(),t,s),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function Z(e,t,s){var r=Ue(e,t,s),a=Ue(e+1,t,s);return(ge(e)-r+a)/7}f("w",["ww",2],"wo","week"),f("W",["WW",2],"Wo","isoWeek"),h("w",S,ue),h("ww",S,N),h("W",S,ue),h("WW",S,N),ke(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=w(e)});function kr(e){return ve(e,this._week.dow,this._week.doy).week}var gr={dow:0,doy:6};function Sr(){return this._week.dow}function pr(){return this._week.doy}function vr(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Yr(e){var t=ve(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}f("d",0,"do","day"),f("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),f("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),f("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),f("e",0,0,"weekday"),f("E",0,0,"isoWeekday"),h("d",S),h("e",S),h("E",S),h("dd",function(e,t){return t.weekdaysMinRegex(e)}),h("ddd",function(e,t){return t.weekdaysShortRegex(e)}),h("dddd",function(e,t){return t.weekdaysRegex(e)}),ke(["dd","ddd","dddd"],function(e,t,s,r){var a=s._locale.weekdaysParse(e,r,s._strict);a!=null?t.d=a:m(s).invalidWeekday=e}),ke(["d","e","E"],function(e,t,s,r){t[r]=w(e)});function Or(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Tr(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ht(e,t){return e.slice(t,7).concat(e.slice(0,t))}var br="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Jt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Nr=De,Wr=De,Pr=De;function Rr(e,t){var s=u(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ht(s,this._week.dow):e?s[e.day()]:s}function Fr(e){return e===!0?ht(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ir(e){return e===!0?ht(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Lr(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)n=A([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(n,"").toLocaleLowerCase();return s?t==="dddd"?(a=Y.call(this._weekdaysParse,i),a!==-1?a:null):t==="ddd"?(a=Y.call(this._shortWeekdaysParse,i),a!==-1?a:null):(a=Y.call(this._minWeekdaysParse,i),a!==-1?a:null):t==="dddd"?(a=Y.call(this._weekdaysParse,i),a!==-1||(a=Y.call(this._shortWeekdaysParse,i),a!==-1)?a:(a=Y.call(this._minWeekdaysParse,i),a!==-1?a:null)):t==="ddd"?(a=Y.call(this._shortWeekdaysParse,i),a!==-1||(a=Y.call(this._weekdaysParse,i),a!==-1)?a:(a=Y.call(this._minWeekdaysParse,i),a!==-1?a:null)):(a=Y.call(this._minWeekdaysParse,i),a!==-1||(a=Y.call(this._weekdaysParse,i),a!==-1)?a:(a=Y.call(this._shortWeekdaysParse,i),a!==-1?a:null))}function Cr(e,t,s){var r,a,n;if(this._weekdaysParseExact)return Lr.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=A([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function Ar(e){if(!this.isValid())return e!=null?this:NaN;var t=Se(this,"Day");return e!=null?(e=Or(e,this.localeData()),this.add(e-t,"d")):t}function Ur(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Er(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Tr(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Hr(e){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(y(this,"_weekdaysRegex")||(this._weekdaysRegex=Nr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Vr(e){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(y(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Wr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Gr(e){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(y(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ft(){function e(x,X){return X.length-x.length}var t=[],s=[],r=[],a=[],n,i,d,c,M;for(n=0;n<7;n++)i=A([2e3,1]).day(n),d=j(this.weekdaysMin(i,"")),c=j(this.weekdaysShort(i,"")),M=j(this.weekdays(i,"")),t.push(d),s.push(c),r.push(M),a.push(d),a.push(c),a.push(M);t.sort(e),s.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ct(){return this.hours()%12||12}function jr(){return this.hours()||24}f("H",["HH",2],0,"hour"),f("h",["hh",2],0,ct),f("k",["kk",2],0,jr),f("hmm",0,0,function(){return""+ct.apply(this)+E(this.minutes(),2)}),f("hmmss",0,0,function(){return""+ct.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)}),f("Hmm",0,0,function(){return""+this.hours()+E(this.minutes(),2)}),f("Hmmss",0,0,function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)});function Qt(e,t){f(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Qt("a",!0),Qt("A",!1);function Xt(e,t){return t._meridiemParse}h("a",Xt),h("A",Xt),h("H",S,lt),h("h",S,ue),h("k",S,ue),h("HH",S,N),h("hh",S,N),h("kk",S,N),h("hmm",Et),h("hmmss",Ht),h("Hmm",Et),h("Hmmss",Ht),g(["H","HH"],O),g(["k","kk"],function(e,t,s){var r=w(e);t[O]=r===24?0:r}),g(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e}),g(["h","hh"],function(e,t,s){t[O]=w(e),m(s).bigHour=!0}),g("hmm",function(e,t,s){var r=e.length-2;t[O]=w(e.substr(0,r)),t[L]=w(e.substr(r)),m(s).bigHour=!0}),g("hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[O]=w(e.substr(0,r)),t[L]=w(e.substr(r,2)),t[$]=w(e.substr(a)),m(s).bigHour=!0}),g("Hmm",function(e,t,s){var r=e.length-2;t[O]=w(e.substr(0,r)),t[L]=w(e.substr(r))}),g("Hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[O]=w(e.substr(0,r)),t[L]=w(e.substr(r,2)),t[$]=w(e.substr(a))});function zr(e){return(e+"").toLowerCase().charAt(0)==="p"}var $r=/[ap]\.?m?\.?/i,Zr=de("Hours",!0);function qr(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var Kt={calendar:Ls,longDateFormat:Es,invalidDate:Vs,ordinal:js,dayOfMonthOrdinalParse:zs,relativeTime:Zs,months:ur,monthsShort:jt,week:gr,weekdays:br,weekdaysMin:xr,weekdaysShort:Jt,meridiemParse:$r},v={},Ye={},Oe;function Br(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function es(e){return e&&e.toLowerCase().replace("_","-")}function Jr(e){for(var t=0,s,r,a,n;t<e.length;){for(n=es(e[t]).split("-"),s=n.length,r=es(e[t+1]),r=r?r.split("-"):null;s>0;){if(a=Ee(n.slice(0,s).join("-")),a)return a;if(r&&r.length>=s&&Br(n,r)>=s-1)break;s--}t++}return Oe}function Qr(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ee(e){var t=null,s;if(v[e]===void 0&&typeof ye<"u"&&ye&&ye.exports&&Qr(e))try{t=Oe._abbr,s=Ts,s("./locale/"+e),ee(t)}catch{v[e]=null}return v[e]}function ee(e,t){var s;return e&&(T(t)?s=q(e):s=mt(e,t),s?Oe=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Oe._abbr}function mt(e,t){if(t!==null){var s,r=Kt;if(t.abbr=e,v[e]!=null)It("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=v[e]._config;else if(t.parentLocale!=null)if(v[t.parentLocale]!=null)r=v[t.parentLocale]._config;else if(s=Ee(t.parentLocale),s!=null)r=s._config;else return Ye[t.parentLocale]||(Ye[t.parentLocale]=[]),Ye[t.parentLocale].push({name:e,config:t}),null;return v[e]=new tt(et(r,t)),Ye[e]&&Ye[e].forEach(function(a){mt(a.name,a.config)}),ee(e),v[e]}else return delete v[e],null}function Xr(e,t){if(t!=null){var s,r,a=Kt;v[e]!=null&&v[e].parentLocale!=null?v[e].set(et(v[e]._config,t)):(r=Ee(e),r!=null&&(a=r._config),t=et(a,t),r==null&&(t.abbr=e),s=new tt(t),s.parentLocale=v[e],v[e]=s),ee(e)}else v[e]!=null&&(v[e].parentLocale!=null?(v[e]=v[e].parentLocale,e===ee()&&ee(e)):v[e]!=null&&delete v[e]);return v[e]}function q(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Oe;if(!u(e)){if(t=Ee(e),t)return t;e=[e]}return Jr(e)}function Kr(){return st(v)}function _t(e){var t,s=e._a;return s&&m(e).overflow===-2&&(t=s[z]<0||s[z]>11?z:s[H]<1||s[H]>dt(s[b],s[z])?H:s[O]<0||s[O]>24||s[O]===24&&(s[L]!==0||s[$]!==0||s[re]!==0)?O:s[L]<0||s[L]>59?L:s[$]<0||s[$]>59?$:s[re]<0||s[re]>999?re:-1,m(e)._overflowDayOfYear&&(t<b||t>H)&&(t=H),m(e)._overflowWeeks&&t===-1&&(t=rr),m(e)._overflowWeekday&&t===-1&&(t=ar),m(e).overflow=t),e}var ea=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ta=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,sa=/Z|[+-]\d\d(?::?\d\d)?/,He=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],yt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ra=/^\/?Date\((-?\d+)/i,aa=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,na={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ts(e){var t,s,r=e._i,a=ea.exec(r)||ta.exec(r),n,i,d,c,M=He.length,x=yt.length;if(a){for(m(e).iso=!0,t=0,s=M;t<s;t++)if(He[t][1].exec(a[1])){i=He[t][0],n=He[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(a[3]){for(t=0,s=x;t<s;t++)if(yt[t][1].exec(a[3])){d=(a[2]||" ")+yt[t][0];break}if(d==null){e._isValid=!1;return}}if(!n&&d!=null){e._isValid=!1;return}if(a[4])if(sa.exec(a[4]))c="Z";else{e._isValid=!1;return}e._f=i+(d||"")+(c||""),Mt(e)}else e._isValid=!1}function ia(e,t,s,r,a,n){var i=[oa(e),jt.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(a,10)];return n&&i.push(parseInt(n,10)),i}function oa(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function la(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ua(e,t,s){if(e){var r=Jt.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return m(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function da(e,t,s){if(e)return na[e];if(t)return 0;var r=parseInt(s,10),a=r%100,n=(r-a)/100;return n*60+a}function ss(e){var t=aa.exec(la(e._i)),s;if(t){if(s=ia(t[4],t[3],t[2],t[5],t[6],t[7]),!ua(t[1],s,e))return;e._a=s,e._tzm=da(t[8],t[9],t[10]),e._d=pe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function ha(e){var t=ra.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(ts(e),e._isValid===!1)delete e._isValid;else return;if(ss(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:l.createFromInputFallback(e)}l.createFromInputFallback=W("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function he(e,t,s){return e??t??s}function fa(e){var t=new Date(l.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function wt(e){var t,s,r=[],a,n,i;if(!e._d){for(a=fa(e),e._w&&e._a[H]==null&&e._a[z]==null&&ca(e),e._dayOfYear!=null&&(i=he(e._a[b],a[b]),(e._dayOfYear>ge(i)||e._dayOfYear===0)&&(m(e)._overflowDayOfYear=!0),s=pe(i,0,e._dayOfYear),e._a[z]=s.getUTCMonth(),e._a[H]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[O]===24&&e._a[L]===0&&e._a[$]===0&&e._a[re]===0&&(e._nextDay=!0,e._a[O]=0),e._d=(e._useUTC?pe:Dr).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[O]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(m(e).weekdayMismatch=!0)}}function ca(e){var t,s,r,a,n,i,d,c,M;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,i=4,s=he(t.GG,e._a[b],ve(p(),1,4).year),r=he(t.W,1),a=he(t.E,1),(a<1||a>7)&&(c=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,M=ve(p(),n,i),s=he(t.gg,e._a[b],M.year),r=he(t.w,M.week),t.d!=null?(a=t.d,(a<0||a>6)&&(c=!0)):t.e!=null?(a=t.e+n,(t.e<0||t.e>6)&&(c=!0)):a=n),r<1||r>Z(s,n,i)?m(e)._overflowWeeks=!0:c!=null?m(e)._overflowWeekday=!0:(d=Bt(s,r,a,n,i),e._a[b]=d.year,e._dayOfYear=d.dayOfYear)}l.ISO_8601=function(){},l.RFC_2822=function(){};function Mt(e){if(e._f===l.ISO_8601){ts(e);return}if(e._f===l.RFC_2822){ss(e);return}e._a=[],m(e).empty=!0;var t=""+e._i,s,r,a,n,i,d=t.length,c=0,M,x;for(a=Lt(e._f,e._locale).match(rt)||[],x=a.length,s=0;s<x;s++)n=a[s],r=(t.match(er(n,e))||[])[0],r&&(i=t.substr(0,t.indexOf(r)),i.length>0&&m(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),c+=r.length),oe[n]?(r?m(e).empty=!1:m(e).unusedTokens.push(n),sr(n,r,e)):e._strict&&!r&&m(e).unusedTokens.push(n);m(e).charsLeftOver=d-c,t.length>0&&m(e).unusedInput.push(t),e._a[O]<=12&&m(e).bigHour===!0&&e._a[O]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[O]=ma(e._locale,e._a[O],e._meridiem),M=m(e).era,M!==null&&(e._a[b]=e._locale.erasConvertYear(M,e._a[b])),wt(e),_t(e)}function ma(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function _a(e){var t,s,r,a,n,i,d=!1,c=e._f.length;if(c===0){m(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<c;a++)n=0,i=!1,t=Ke({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],Mt(t),Qe(t)&&(i=!0),n+=m(t).charsLeftOver,n+=m(t).unusedTokens.length*10,m(t).score=n,d?n<r&&(r=n,s=t):(r==null||n<r||i)&&(r=n,s=t,i&&(d=!0));K(e,s||t)}function ya(e){if(!e._d){var t=nt(e._i),s=t.day===void 0?t.date:t.day;e._a=Wt([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),wt(e)}}function wa(e){var t=new Me(_t(rs(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function rs(e){var t=e._i,s=e._f;return e._locale=e._locale||q(e._l),t===null||s===void 0&&t===""?xe({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),I(t)?new Me(_t(t)):(we(t)?e._d=t:u(s)?_a(e):s?Mt(e):Ma(e),Qe(e)||(e._d=null),e))}function Ma(e){var t=e._i;T(t)?e._d=new Date(l.now()):we(t)?e._d=new Date(t.valueOf()):typeof t=="string"?ha(e):u(t)?(e._a=Wt(t.slice(0),function(s){return parseInt(s,10)}),wt(e)):_(t)?ya(e):G(t)?e._d=new Date(t):l.createFromInputFallback(e)}function as(e,t,s,r,a){var n={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(_(e)&&V(e)||u(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=a,n._l=s,n._i=e,n._f=t,n._strict=r,wa(n)}function p(e,t,s,r){return as(e,t,s,r,!1)}var Da=W("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=p.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:xe()}),ka=W("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=p.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:xe()});function ns(e,t){var s,r;if(t.length===1&&u(t[0])&&(t=t[0]),!t.length)return p();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function ga(){var e=[].slice.call(arguments,0);return ns("isBefore",e)}function Sa(){var e=[].slice.call(arguments,0);return ns("isAfter",e)}var pa=function(){return Date.now?Date.now():+new Date},Te=["year","quarter","month","week","day","hour","minute","second","millisecond"];function va(e){var t,s=!1,r,a=Te.length;for(t in e)if(y(e,t)&&!(Y.call(Te,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[Te[r]]){if(s)return!1;parseFloat(e[Te[r]])!==w(e[Te[r]])&&(s=!0)}return!0}function Ya(){return this._isValid}function Oa(){return C(NaN)}function Ve(e){var t=nt(e),s=t.year||0,r=t.quarter||0,a=t.month||0,n=t.week||t.isoWeek||0,i=t.day||0,d=t.hour||0,c=t.minute||0,M=t.second||0,x=t.millisecond||0;this._isValid=va(t),this._milliseconds=+x+M*1e3+c*6e4+d*1e3*60*60,this._days=+i+n*7,this._months=+a+r*3+s*12,this._data={},this._locale=q(),this._bubble()}function Ge(e){return e instanceof Ve}function Dt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Ta(e,t,s){var r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),n=0,i;for(i=0;i<r;i++)(s&&e[i]!==t[i]||!s&&w(e[i])!==w(t[i]))&&n++;return n+a}function is(e,t){f(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+E(~~(s/60),2)+t+E(~~s%60,2)})}is("Z",":"),is("ZZ",""),h("Z",Le),h("ZZ",Le),g(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=kt(Le,e)});var ba=/([\+\-]|\d\d)/gi;function kt(e,t){var s=(t||"").match(e),r,a,n;return s===null?null:(r=s[s.length-1]||[],a=(r+"").match(ba)||["-",0,0],n=+(a[1]*60)+w(a[2]),n===0?0:a[0]==="+"?n:-n)}function gt(e,t){var s,r;return t._isUTC?(s=t.clone(),r=(I(e)||we(e)?e.valueOf():p(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),l.updateOffset(s,!1),s):p(e).local()}function St(e){return-Math.round(e._d.getTimezoneOffset())}l.updateOffset=function(){};function xa(e,t,s){var r=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=kt(Le,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(a=St(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?ds(this,C(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:St(this)}function Na(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Wa(e){return this.utcOffset(0,e)}function Pa(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(St(this),"m")),this}function Ra(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=kt(Xs,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Fa(e){return this.isValid()?(e=e?p(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ia(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function La(){if(!T(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Ke(e,this),e=rs(e),e._a?(t=e._isUTC?A(e._a):p(e._a),this._isDSTShifted=this.isValid()&&Ta(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ca(){return this.isValid()?!this._isUTC:!1}function Aa(){return this.isValid()?this._isUTC:!1}function os(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ua=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ea=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function C(e,t){var s=e,r=null,a,n,i;return Ge(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:G(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=Ua.exec(e))?(a=r[1]==="-"?-1:1,s={y:0,d:w(r[H])*a,h:w(r[O])*a,m:w(r[L])*a,s:w(r[$])*a,ms:w(Dt(r[re]*1e3))*a}):(r=Ea.exec(e))?(a=r[1]==="-"?-1:1,s={y:ae(r[2],a),M:ae(r[3],a),w:ae(r[4],a),d:ae(r[5],a),h:ae(r[6],a),m:ae(r[7],a),s:ae(r[8],a)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(i=Ha(p(s.from),p(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),n=new Ve(s),Ge(e)&&y(e,"_locale")&&(n._locale=e._locale),Ge(e)&&y(e,"_isValid")&&(n._isValid=e._isValid),n}C.fn=Ve.prototype,C.invalid=Oa;function ae(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function ls(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function Ha(e,t){var s;return e.isValid()&&t.isValid()?(t=gt(t,e),e.isBefore(t)?s=ls(e,t):(s=ls(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function us(e,t){return function(s,r){var a,n;return r!==null&&!isNaN(+r)&&(It(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=s,s=r,r=n),a=C(s,r),ds(this,a,e),this}}function ds(e,t,s,r){var a=t._milliseconds,n=Dt(t._days),i=Dt(t._months);e.isValid()&&(r=r??!0,i&&$t(e,Se(e,"Month")+i*s),n&&Gt(e,"Date",Se(e,"Date")+n*s),a&&e._d.setTime(e._d.valueOf()+a*s),r&&l.updateOffset(e,n||i))}var Va=us(1,"add"),Ga=us(-1,"subtract");function hs(e){return typeof e=="string"||e instanceof String}function ja(e){return I(e)||we(e)||hs(e)||G(e)||$a(e)||za(e)||e===null||e===void 0}function za(e){var t=_(e)&&!V(e),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,n,i=r.length;for(a=0;a<i;a+=1)n=r[a],s=s||y(e,n);return t&&s}function $a(e){var t=u(e),s=!1;return t&&(s=e.filter(function(r){return!G(r)&&hs(e)}).length===0),t&&s}function Za(e){var t=_(e)&&!V(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,n;for(a=0;a<r.length;a+=1)n=r[a],s=s||y(e,n);return t&&s}function qa(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function Ba(e,t){arguments.length===1&&(arguments[0]?ja(arguments[0])?(e=arguments[0],t=void 0):Za(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||p(),r=gt(s,this).startOf("day"),a=l.calendarFormat(this,r)||"sameElse",n=t&&(U(t[a])?t[a].call(this,s):t[a]);return this.format(n||this.localeData().calendar(a,this,p(s)))}function Ja(){return new Me(this)}function Qa(e,t){var s=I(e)?e:p(e);return this.isValid()&&s.isValid()?(t=P(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function Xa(e,t){var s=I(e)?e:p(e);return this.isValid()&&s.isValid()?(t=P(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function Ka(e,t,s,r){var a=I(e)?e:p(e),n=I(t)?t:p(t);return this.isValid()&&a.isValid()&&n.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(a,s):!this.isBefore(a,s))&&(r[1]===")"?this.isBefore(n,s):!this.isAfter(n,s))):!1}function en(e,t){var s=I(e)?e:p(e),r;return this.isValid()&&s.isValid()?(t=P(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function tn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function sn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function rn(e,t,s){var r,a,n;if(!this.isValid())return NaN;if(r=gt(e,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,t=P(t),t){case"year":n=je(this,r)/12;break;case"month":n=je(this,r);break;case"quarter":n=je(this,r)/3;break;case"second":n=(this-r)/1e3;break;case"minute":n=(this-r)/6e4;break;case"hour":n=(this-r)/36e5;break;case"day":n=(this-r-a)/864e5;break;case"week":n=(this-r-a)/6048e5;break;default:n=this-r}return s?n:R(n)}function je(e,t){if(e.date()<t.date())return-je(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),a,n;return t-r<0?(a=e.clone().add(s-1,"months"),n=(t-r)/(r-a)):(a=e.clone().add(s+1,"months"),n=(t-r)/(a-r)),-(s+n)||0}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function an(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function nn(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?We(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):U(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",We(s,"Z")):We(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function on(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,a,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(s+r+a+n)}function ln(e){e||(e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var t=We(this,e);return this.localeData().postformat(t)}function un(e,t){return this.isValid()&&(I(e)&&e.isValid()||p(e).isValid())?C({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dn(e){return this.from(p(),e)}function hn(e,t){return this.isValid()&&(I(e)&&e.isValid()||p(e).isValid())?C({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fn(e){return this.to(p(),e)}function fs(e){var t;return e===void 0?this._locale._abbr:(t=q(e),t!=null&&(this._locale=t),this)}var cs=W("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function ms(){return this._locale}var ze=1e3,fe=60*ze,$e=60*fe,_s=(365*400+97)*24*$e;function ce(e,t){return(e%t+t)%t}function ys(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-_s:new Date(e,t,s).valueOf()}function ws(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-_s:Date.UTC(e,t,s)}function cn(e){var t,s;if(e=P(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?ws:ys,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ce(t+(this._isUTC?0:this.utcOffset()*fe),$e);break;case"minute":t=this._d.valueOf(),t-=ce(t,fe);break;case"second":t=this._d.valueOf(),t-=ce(t,ze);break}return this._d.setTime(t),l.updateOffset(this,!0),this}function mn(e){var t,s;if(e=P(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?ws:ys,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=$e-ce(t+(this._isUTC?0:this.utcOffset()*fe),$e)-1;break;case"minute":t=this._d.valueOf(),t+=fe-ce(t,fe)-1;break;case"second":t=this._d.valueOf(),t+=ze-ce(t,ze)-1;break}return this._d.setTime(t),l.updateOffset(this,!0),this}function _n(){return this._d.valueOf()-(this._offset||0)*6e4}function yn(){return Math.floor(this.valueOf()/1e3)}function wn(){return new Date(this.valueOf())}function Mn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Dn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function kn(){return this.isValid()?this.toISOString():null}function gn(){return Qe(this)}function Sn(){return K({},m(this))}function pn(){return m(this).overflow}function vn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}f("N",0,0,"eraAbbr"),f("NN",0,0,"eraAbbr"),f("NNN",0,0,"eraAbbr"),f("NNNN",0,0,"eraName"),f("NNNNN",0,0,"eraNarrow"),f("y",["y",1],"yo","eraYear"),f("y",["yy",2],0,"eraYear"),f("y",["yyy",3],0,"eraYear"),f("y",["yyyy",4],0,"eraYear"),h("N",pt),h("NN",pt),h("NNN",pt),h("NNNN",In),h("NNNNN",Ln),g(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var a=s._locale.erasParse(e,r,s._strict);a?m(s).era=a:m(s).invalidEra=e}),h("y",le),h("yy",le),h("yyy",le),h("yyyy",le),h("yo",Cn),g(["y","yy","yyy","yyyy"],b),g(["yo"],function(e,t,s,r){var a;s._locale._eraYearOrdinalRegex&&(a=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[b]=s._locale.eraYearOrdinalParse(e,a):t[b]=parseInt(e,10)});function Yn(e,t){var s,r,a,n=this._eras||q("en")._eras;for(s=0,r=n.length;s<r;++s){switch(typeof n[s].since){case"string":a=l(n[s].since).startOf("day"),n[s].since=a.valueOf();break}switch(typeof n[s].until){case"undefined":n[s].until=1/0;break;case"string":a=l(n[s].until).startOf("day").valueOf(),n[s].until=a.valueOf();break}}return n}function On(e,t,s){var r,a,n=this.eras(),i,d,c;for(e=e.toUpperCase(),r=0,a=n.length;r<a;++r)if(i=n[r].name.toUpperCase(),d=n[r].abbr.toUpperCase(),c=n[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(d===e)return n[r];break;case"NNNN":if(i===e)return n[r];break;case"NNNNN":if(c===e)return n[r];break}else if([i,d,c].indexOf(e)>=0)return n[r]}function Tn(e,t){var s=e.since<=e.until?1:-1;return t===void 0?l(e.since).year():l(e.since).year()+(t-e.offset)*s}function bn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function xn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function Nn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function Wn(){var e,t,s,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(s=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-l(a[e].since).year())*s+a[e].offset;return this.year()}function Pn(e){return y(this,"_erasNameRegex")||vt.call(this),e?this._erasNameRegex:this._erasRegex}function Rn(e){return y(this,"_erasAbbrRegex")||vt.call(this),e?this._erasAbbrRegex:this._erasRegex}function Fn(e){return y(this,"_erasNarrowRegex")||vt.call(this),e?this._erasNarrowRegex:this._erasRegex}function pt(e,t){return t.erasAbbrRegex(e)}function In(e,t){return t.erasNameRegex(e)}function Ln(e,t){return t.erasNarrowRegex(e)}function Cn(e,t){return t._eraYearOrdinalRegex||le}function vt(){var e=[],t=[],s=[],r=[],a,n,i,d,c,M=this.eras();for(a=0,n=M.length;a<n;++a)i=j(M[a].name),d=j(M[a].abbr),c=j(M[a].narrow),t.push(i),e.push(d),s.push(c),r.push(i),r.push(d),r.push(c);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}f(0,["gg",2],0,function(){return this.weekYear()%100}),f(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ze(e,t){f(0,[e,e.length],0,t)}Ze("gggg","weekYear"),Ze("ggggg","weekYear"),Ze("GGGG","isoWeekYear"),Ze("GGGGG","isoWeekYear"),h("G",Ie),h("g",Ie),h("GG",S,N),h("gg",S,N),h("GGGG",ot,it),h("gggg",ot,it),h("GGGGG",Fe,Pe),h("ggggg",Fe,Pe),ke(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,r){t[r.substr(0,2)]=w(e)}),ke(["gg","GG"],function(e,t,s,r){t[r]=l.parseTwoDigitYear(e)});function An(e){return Ms.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Un(e){return Ms.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function En(){return Z(this.year(),1,4)}function Hn(){return Z(this.isoWeekYear(),1,4)}function Vn(){var e=this.localeData()._week;return Z(this.year(),e.dow,e.doy)}function Gn(){var e=this.localeData()._week;return Z(this.weekYear(),e.dow,e.doy)}function Ms(e,t,s,r,a){var n;return e==null?ve(this,r,a).year:(n=Z(e,r,a),t>n&&(t=n),jn.call(this,e,t,s,r,a))}function jn(e,t,s,r,a){var n=Bt(e,t,s,r,a),i=pe(n.year,0,n.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}f("Q",0,"Qo","quarter"),h("Q",At),g("Q",function(e,t){t[z]=(w(e)-1)*3});function zn(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}f("D",["DD",2],"Do","date"),h("D",S,ue),h("DD",S,N),h("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),g(["D","DD"],H),g("Do",function(e,t){t[H]=w(e.match(S)[0])});var Ds=de("Date",!0);f("DDD",["DDDD",3],"DDDo","dayOfYear"),h("DDD",Re),h("DDDD",Ut),g(["DDD","DDDD"],function(e,t,s){s._dayOfYear=w(e)});function $n(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}f("m",["mm",2],0,"minute"),h("m",S,lt),h("mm",S,N),g(["m","mm"],L);var Zn=de("Minutes",!1);f("s",["ss",2],0,"second"),h("s",S,lt),h("ss",S,N),g(["s","ss"],$);var qn=de("Seconds",!1);f("S",0,0,function(){return~~(this.millisecond()/100)}),f(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),f(0,["SSS",3],0,"millisecond"),f(0,["SSSS",4],0,function(){return this.millisecond()*10}),f(0,["SSSSS",5],0,function(){return this.millisecond()*100}),f(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),f(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),f(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),f(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),h("S",Re,At),h("SS",Re,N),h("SSS",Re,Ut);var te,ks;for(te="SSSS";te.length<=9;te+="S")h(te,le);function Bn(e,t){t[re]=w(("0."+e)*1e3)}for(te="S";te.length<=9;te+="S")g(te,Bn);ks=de("Milliseconds",!1),f("z",0,0,"zoneAbbr"),f("zz",0,0,"zoneName");function Jn(){return this._isUTC?"UTC":""}function Qn(){return this._isUTC?"Coordinated Universal Time":""}var o=Me.prototype;o.add=Va,o.calendar=Ba,o.clone=Ja,o.diff=rn,o.endOf=mn,o.format=ln,o.from=un,o.fromNow=dn,o.to=hn,o.toNow=fn,o.get=ir,o.invalidAt=pn,o.isAfter=Qa,o.isBefore=Xa,o.isBetween=Ka,o.isSame=en,o.isSameOrAfter=tn,o.isSameOrBefore=sn,o.isValid=gn,o.lang=cs,o.locale=fs,o.localeData=ms,o.max=ka,o.min=Da,o.parsingFlags=Sn,o.set=or,o.startOf=cn,o.subtract=Ga,o.toArray=Mn,o.toObject=Dn,o.toDate=wn,o.toISOString=nn,o.inspect=on,typeof Symbol<"u"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),o.toJSON=kn,o.toString=an,o.unix=yn,o.valueOf=_n,o.creationData=vn,o.eraName=bn,o.eraNarrow=xn,o.eraAbbr=Nn,o.eraYear=Wn,o.year=Vt,o.isLeapYear=nr,o.weekYear=An,o.isoWeekYear=Un,o.quarter=o.quarters=zn,o.month=Zt,o.daysInMonth=yr,o.week=o.weeks=vr,o.isoWeek=o.isoWeeks=Yr,o.weeksInYear=Vn,o.weeksInWeekYear=Gn,o.isoWeeksInYear=En,o.isoWeeksInISOWeekYear=Hn,o.date=Ds,o.day=o.days=Ar,o.weekday=Ur,o.isoWeekday=Er,o.dayOfYear=$n,o.hour=o.hours=Zr,o.minute=o.minutes=Zn,o.second=o.seconds=qn,o.millisecond=o.milliseconds=ks,o.utcOffset=xa,o.utc=Wa,o.local=Pa,o.parseZone=Ra,o.hasAlignedHourOffset=Fa,o.isDST=Ia,o.isLocal=Ca,o.isUtcOffset=Aa,o.isUtc=os,o.isUTC=os,o.zoneAbbr=Jn,o.zoneName=Qn,o.dates=W("dates accessor is deprecated. Use date instead.",Ds),o.months=W("months accessor is deprecated. Use month instead",Zt),o.years=W("years accessor is deprecated. Use year instead",Vt),o.zone=W("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Na),o.isDSTShifted=W("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",La);function Xn(e){return p(e*1e3)}function Kn(){return p.apply(null,arguments).parseZone()}function gs(e){return e}var k=tt.prototype;k.calendar=Cs,k.longDateFormat=Hs,k.invalidDate=Gs,k.ordinal=$s,k.preparse=gs,k.postformat=gs,k.relativeTime=qs,k.pastFuture=Bs,k.set=Is,k.eras=Yn,k.erasParse=On,k.erasConvertYear=Tn,k.erasAbbrRegex=Rn,k.erasNameRegex=Pn,k.erasNarrowRegex=Fn,k.months=fr,k.monthsShort=cr,k.monthsParse=_r,k.monthsRegex=Mr,k.monthsShortRegex=wr,k.week=kr,k.firstDayOfYear=pr,k.firstDayOfWeek=Sr,k.weekdays=Rr,k.weekdaysMin=Ir,k.weekdaysShort=Fr,k.weekdaysParse=Cr,k.weekdaysRegex=Hr,k.weekdaysShortRegex=Vr,k.weekdaysMinRegex=Gr,k.isPM=zr,k.meridiem=qr;function qe(e,t,s,r){var a=q(),n=A().set(r,t);return a[s](n,e)}function Ss(e,t,s){if(G(e)&&(t=e,e=void 0),e=e||"",t!=null)return qe(e,t,s,"month");var r,a=[];for(r=0;r<12;r++)a[r]=qe(e,r,s,"month");return a}function Yt(e,t,s,r){typeof e=="boolean"?(G(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,G(t)&&(s=t,t=void 0),t=t||"");var a=q(),n=e?a._week.dow:0,i,d=[];if(s!=null)return qe(t,(s+n)%7,r,"day");for(i=0;i<7;i++)d[i]=qe(t,(i+n)%7,r,"day");return d}function ei(e,t){return Ss(e,t,"months")}function ti(e,t){return Ss(e,t,"monthsShort")}function si(e,t,s){return Yt(e,t,s,"weekdays")}function ri(e,t,s){return Yt(e,t,s,"weekdaysShort")}function ai(e,t,s){return Yt(e,t,s,"weekdaysMin")}ee("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=w(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}}),l.lang=W("moment.lang is deprecated. Use moment.locale instead.",ee),l.langData=W("moment.langData is deprecated. Use moment.localeData instead.",q);var B=Math.abs;function ni(){var e=this._data;return this._milliseconds=B(this._milliseconds),this._days=B(this._days),this._months=B(this._months),e.milliseconds=B(e.milliseconds),e.seconds=B(e.seconds),e.minutes=B(e.minutes),e.hours=B(e.hours),e.months=B(e.months),e.years=B(e.years),this}function ps(e,t,s,r){var a=C(t,s);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function ii(e,t){return ps(this,e,t,1)}function oi(e,t){return ps(this,e,t,-1)}function vs(e){return e<0?Math.floor(e):Math.ceil(e)}function li(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,a,n,i,d,c;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=vs(Ot(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,a=R(e/1e3),r.seconds=a%60,n=R(a/60),r.minutes=n%60,i=R(n/60),r.hours=i%24,t+=R(i/24),c=R(Ys(t)),s+=c,t-=vs(Ot(c)),d=R(s/12),s%=12,r.days=t,r.months=s,r.years=d,this}function Ys(e){return e*4800/146097}function Ot(e){return e*146097/4800}function ui(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=P(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+Ys(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(Ot(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function J(e){return function(){return this.as(e)}}var Os=J("ms"),di=J("s"),hi=J("m"),fi=J("h"),ci=J("d"),mi=J("w"),_i=J("M"),yi=J("Q"),wi=J("y"),Mi=Os;function Di(){return C(this)}function ki(e){return e=P(e),this.isValid()?this[e+"s"]():NaN}function ne(e){return function(){return this.isValid()?this._data[e]:NaN}}var gi=ne("milliseconds"),Si=ne("seconds"),pi=ne("minutes"),vi=ne("hours"),Yi=ne("days"),Oi=ne("months"),Ti=ne("years");function bi(){return R(this.days()/7)}var Q=Math.round,me={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function xi(e,t,s,r,a){return a.relativeTime(t||1,!!s,e,r)}function Ni(e,t,s,r){var a=C(e).abs(),n=Q(a.as("s")),i=Q(a.as("m")),d=Q(a.as("h")),c=Q(a.as("d")),M=Q(a.as("M")),x=Q(a.as("w")),X=Q(a.as("y")),se=n<=s.ss&&["s",n]||n<s.s&&["ss",n]||i<=1&&["m"]||i<s.m&&["mm",i]||d<=1&&["h"]||d<s.h&&["hh",d]||c<=1&&["d"]||c<s.d&&["dd",c];return s.w!=null&&(se=se||x<=1&&["w"]||x<s.w&&["ww",x]),se=se||M<=1&&["M"]||M<s.M&&["MM",M]||X<=1&&["y"]||["yy",X],se[2]=t,se[3]=+e>0,se[4]=r,xi.apply(null,se)}function Wi(e){return e===void 0?Q:typeof e=="function"?(Q=e,!0):!1}function Pi(e,t){return me[e]===void 0?!1:t===void 0?me[e]:(me[e]=t,e==="s"&&(me.ss=t-1),!0)}function Ri(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=me,a,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},me,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),n=Ni(this,!s,r,a),s&&(n=a.pastFuture(+this,n)),a.postformat(n)}var Tt=Math.abs;function _e(e){return(e>0)-(e<0)||+e}function Be(){if(!this.isValid())return this.localeData().invalidDate();var e=Tt(this._milliseconds)/1e3,t=Tt(this._days),s=Tt(this._months),r,a,n,i,d=this.asSeconds(),c,M,x,X;return d?(r=R(e/60),a=R(r/60),e%=60,r%=60,n=R(s/12),s%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=d<0?"-":"",M=_e(this._months)!==_e(d)?"-":"",x=_e(this._days)!==_e(d)?"-":"",X=_e(this._milliseconds)!==_e(d)?"-":"",c+"P"+(n?M+n+"Y":"")+(s?M+s+"M":"")+(t?x+t+"D":"")+(a||r||e?"T":"")+(a?X+a+"H":"")+(r?X+r+"M":"")+(e?X+i+"S":"")):"P0D"}var D=Ve.prototype;D.isValid=Ya,D.abs=ni,D.add=ii,D.subtract=oi,D.as=ui,D.asMilliseconds=Os,D.asSeconds=di,D.asMinutes=hi,D.asHours=fi,D.asDays=ci,D.asWeeks=mi,D.asMonths=_i,D.asQuarters=yi,D.asYears=wi,D.valueOf=Mi,D._bubble=li,D.clone=Di,D.get=ki,D.milliseconds=gi,D.seconds=Si,D.minutes=pi,D.hours=vi,D.days=Yi,D.weeks=bi,D.months=Oi,D.years=Ti,D.humanize=Ri,D.toISOString=Be,D.toString=Be,D.toJSON=Be,D.locale=fs,D.localeData=ms,D.toIsoString=W("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Be),D.lang=cs,f("X",0,0,"unix"),f("x",0,0,"valueOf"),h("x",Ie),h("X",Ks),g("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)}),g("x",function(e,t,s){s._d=new Date(w(e))});return l.version="2.30.1",be(p),l.fn=o,l.min=ga,l.max=Sa,l.now=pa,l.utc=A,l.unix=Xn,l.months=ei,l.isDate=we,l.locale=ee,l.invalid=xe,l.duration=C,l.isMoment=I,l.weekdays=si,l.parseZone=Kn,l.localeData=q,l.isDuration=Ge,l.monthsShort=ti,l.weekdaysMin=ai,l.defineLocale=mt,l.updateLocale=Xr,l.locales=Kr,l.weekdaysShort=ri,l.normalizeUnits=P,l.relativeTimeRounding=Wi,l.relativeTimeThreshold=Pi,l.calendarFormat=qa,l.prototype=o,l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},l})});var Ii=bs(Nt(),1),Rs=bs(Nt(),1),ie=Rs.default||Ii,Li=new Ns("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:Ci});function Ci(){return{useUtc:!1}}function Ai(F,l){let be=Array(F);for(let u=0;u<F;u++)be[u]=l(u);return be}var Ji=(()=>{let l=class l extends Ps{constructor(u,_){super(),this._options=_,this.setLocale(u||ie.locale())}setLocale(u){super.setLocale(u);let _=ie.localeData(u);this._localeData={firstDayOfWeek:_.firstDayOfWeek(),longMonths:_.months(),shortMonths:_.monthsShort(),dates:Ai(31,y=>this.createDate(2017,0,y+1).format("D")),longDaysOfWeek:_.weekdays(),shortDaysOfWeek:_.weekdaysShort(),narrowDaysOfWeek:_.weekdaysMin()}}getYear(u){return this.clone(u).year()}getMonth(u){return this.clone(u).month()}getDate(u){return this.clone(u).date()}getDayOfWeek(u){return this.clone(u).day()}getMonthNames(u){return u=="long"?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(u){return u=="long"?this._localeData.longDaysOfWeek:u=="short"?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(u){return this.clone(u).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(u){return this.clone(u).daysInMonth()}clone(u){return u.clone().locale(this.locale)}createDate(u,_,y){let V=this._createMoment({year:u,month:_,date:y}).locale(this.locale);return V.isValid(),V}today(){return this._createMoment().locale(this.locale)}parse(u,_){return u&&typeof u=="string"?this._createMoment(u,_,this.locale):u?this._createMoment(u).locale(this.locale):null}format(u,_){return u=this.clone(u),this.isValid(u),u.format(_)}addCalendarYears(u,_){return this.clone(u).add({years:_})}addCalendarMonths(u,_){return this.clone(u).add({months:_})}addCalendarDays(u,_){return this.clone(u).add({days:_})}toIso8601(u){return this.clone(u).format()}deserialize(u){let _;if(u instanceof Date)_=this._createMoment(u).locale(this.locale);else if(this.isDateInstance(u))return this.clone(u);if(typeof u=="string"){if(!u)return null;_=this._createMoment(u,ie.ISO_8601).locale(this.locale)}return _&&this.isValid(_)?this._createMoment(_).locale(this.locale):super.deserialize(u)}isDateInstance(u){return ie.isMoment(u)}isValid(u){return this.clone(u).isValid()}invalid(){return ie.invalid()}_createMoment(u,_,y){let{strict:V,useUtc:T}=this._options||{};return T?ie.utc(u,_,y,V):ie(u,_,y,V)}};l.\u0275fac=function(_){return new(_||l)(bt(Ws,8),bt(Li,8))},l.\u0275prov=xs({token:l,factory:l.\u0275fac});let F=l;return F})();export{Ji as a};
@@ -1 +1 @@
1
- import{a as R}from"./chunk-RMD2ZXUN.js";import{t as N,u as z}from"./chunk-MVPTQRFO.js";import{u as F}from"./chunk-B3LBEB32.js";import{c as V}from"./chunk-QPRFFPO5.js";import{$a as c,Cc as B,Fc as A,Ha as _,Hb as S,Ia as i,Ib as g,Ja as T,Jb as w,Kb as I,Lb as $,Qb as O,Sb as P,Za as m,_a as Z,ac as E,ga as k,lb as a,mb as l,nb as s,oa as u,ob as x,pa as f,pb as v,rb as h,sc as M,ub as C,uc as U,vc as D,wb as p,za as b,zb as L}from"./chunk-C3YE27TZ.js";var q=e=>({"me-3":e}),G=e=>({"border-bottom pb-2":e});function Q(e,o){if(e&1){let t=h();x(0),a(1,"img",19),C("click",function(n){u(t);let d=p();return f(d.openBiggerPicture(n))}),l(),v()}if(e&2){let t=p();i(),c("src",t.image,_)}}function X(e,o){e&1&&s(0,"img",20)}function Y(e,o){if(e&1&&(x(0),a(1,"span",24)(2,"a",25),s(3,"i",26),l()(),v()),e&2){let t=p(2);i(2),c("href",t.redirectUrl,_)}}function ee(e,o){if(e&1&&(a(0,"div",21),s(1,"i",22),a(2,"span"),g(3),l(),m(4,Y,4,1,"ng-container",23),l()),e&2){let t=p();i(3),w(t.code),i(),c("ngIf",t.code!=="SKU not assigned"&&t.showRedirectIcon)}}function te(e,o){if(e&1){let t=h();a(0,"div",27),C("click",function(){u(t);let n=p();return f(n.onEventDesc())}),s(1,"i",28),a(2,"span"),g(3),l()()}if(e&2){let t=p();i(3),w(t.description)}}function ne(e,o){if(e&1){let t=h();a(0,"div",29)(1,"input",30),C("change",function(n){u(t);let d=p();return f(d.onCheck(n.target.checked))}),l()()}}function ie(e,o){if(e&1){let t=h();a(0,"button",31),C("click",function(){u(t);let n=p();return f(n.onDownload())}),s(1,"i",32),g(2," Download "),l()}}function oe(e,o){if(e&1){let t=h();a(0,"button",31),C("click",function(){u(t);let n=p();return f(n.onUpload())}),s(1,"i",33),g(2," Upload "),l()}}function re(e,o){if(e&1){let t=h();a(0,"button",34),C("click",function(){u(t);let n=p();return f(n.onScan())}),s(1,"i",35),g(2," Scan "),l()}}function ae(e,o){if(e&1&&(x(0),a(1,"a",37),s(2,"img",38),l(),v()),e&2){let t=o.$implicit,r=o.index,n=p(2);i(),L("href",t.Url,_),i(),c("ngClass",P(4,q,r!=n.channels.length-1))("src",n.getChannelLogo(t),_)("matTooltip",t.Title?t.Title:t.Name)}}function ce(e,o){if(e&1&&(x(0),m(1,ae,3,6,"ng-container",36),v()),e&2){let t=p();i(),c("ngForOf",t.channels)}}function le(e,o){if(e&1&&(a(0,"li")(1,"div",42)(2,"div",43)(3,"a",37),s(4,"img",44),a(5,"span",45),g(6),l()()()()()),e&2){let t=o.$implicit,r=o.index,n=p(2);i(2),c("ngClass",P(4,G,r!=n.channels.length-1)),i(),c("href",t.Url,_),i(),c("src",n.getChannelLogo(t),_),i(2),w(t.Title)}}function de(e,o){if(e&1&&(a(0,"div",39)(1,"button",40),g(2),l(),a(3,"ul",41),m(4,le,7,6,"li",36),l()()),e&2){let t=p();i(2),I(" ",t.channels.length," CHANNELS "),i(2),c("ngForOf",t.channels)}}var Se=(()=>{let o=class o{constructor(r){this.biggerPictureService=r,this.uploadButton=!1,this.scanButton=!1,this.showCheckBox=!1,this.downloadButton=!1,this.hasZoom=!0,this.showRedirectIcon=!0,this.onUploadEvent=new b,this.onScanEvent=new b,this.checkBoxChange=new b,this.onDescEvent=new b,this.onDownloadEvent=new b}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let r=localStorage.getItem("Authorization"),n=JSON.parse(r)?.Host;this.redirectUrl=`https://${n}/menu/Products/Catalog/Products/Info?ID=${this.productId}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(r){this.checkBoxChange.emit(r)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}getChannelLogo(r){return V.getChannelLogoByTypeId(r.TypeID)}openBiggerPicture(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};o.\u0275fac=function(n){return new(n||o)(T(R))},o.\u0275cmp=k({type:o,selectors:[["app-product-card"]],inputs:{productId:"productId",uploadButton:"uploadButton",scanButton:"scanButton",showCheckBox:"showCheckBox",downloadButton:"downloadButton",image:"image",title:"title",code:"code",description:"description",channels:"channels",check:"check",imageForZoom:"imageForZoom",hasZoom:"hasZoom",showRedirectIcon:"showRedirectIcon"},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload"},standalone:!0,features:[O],decls:26,vars:11,consts:[["elsePic",""],["DROPDOWN",""],[1,"card",2,"margin-bottom","0px"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click"],["class","description cursor-pointer",4,"ngIf"],["class","description cursor-pointer",3,"click",4,"ngIf"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],["class","text-end gx-0",4,"ngIf"],[1,"card-footer","d-flex","justify-content-between","py-5","bg-footer","align-items-center",2,"border-top","0.1px solid rgb(220 220 220)"],["class","fs-6 btn btn-light btn-sm me-3",3,"click",4,"ngIf"],["class","fs-6 btn btn-light btn-sm",3,"click",4,"ngIf"],[1,"rounded","imgUpload","float-left",3,"click","src"],["src","https://res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"description","cursor-pointer"],[1,"fa","fa-barcode","me-2"],[4,"ngIf"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fas","fa-external-link-alt"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download"],["aria-hidden","true",1,"fa","fa-upload"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fa","fa-spinner"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],[1,"dropdown"],["type","button","id","dropdownMenuButton1","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","fs-6","btn-sm","btn-light","dropdown-toggle"],[1,"dropdown-menu"],[1,"dropdown-item","py-2",2,"cursor","pointer"],[3,"ngClass"],[1,"img-logo",3,"src"],[1,"ms-4"]],template:function(n,d){if(n&1){let y=h();a(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7),m(6,Q,2,1,"ng-container",8)(7,X,1,0,"ng-template",null,0,E),l()()(),a(9,"div",9)(10,"h4",10),C("click",function(){return u(y),f(d.onEventDesc())}),g(11),l(),m(12,ee,5,2,"div",11)(13,te,4,1,"div",12),l(),a(14,"div",13)(15,"div",14),m(16,ne,2,0,"div",15),l()()()(),a(17,"div",16)(18,"div"),m(19,ie,3,0,"button",17)(20,oe,3,0,"button",17)(21,re,3,0,"button",18),l(),a(22,"div"),m(23,ce,2,1,"ng-container",8)(24,de,5,2,"ng-template",null,1,E),l()()()}if(n&2){let y=S(8),j=S(25);i(6),c("ngIf",d.image)("ngIfElse",y),i(5),I(" ",d.title," "),i(),c("ngIf",d.code),i(),c("ngIf",d.description),i(3),c("ngIf",d.showCheckBox),i(3),c("ngIf",d.downloadButton),i(),c("ngIf",d.uploadButton),i(),c("ngIf",d.scanButton),i(2),c("ngIf",d.channels.length<4)("ngIfElse",j)}},dependencies:[B,M,U,D,F,z,N],styles:[".img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.bg-footer[_ngcontent-%COMP%]{background-color:#ededed69}.description[_ngcontent-%COMP%]{font-weight:300;margin-left:2px}.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down;cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}"]});let e=o;return e})();var pe=e=>({"border-bottom-0":e}),se=e=>({"border-bottom":e});function me(e,o){if(e&1){let t=h();x(0),a(1,"img",14),C("click",function(n){u(t);let d=p();return f(d.onZoomImage(n))}),l(),v()}if(e&2){let t=p();i(),c("ngSrc",t.image)("fill",!0)}}function ge(e,o){e&1&&s(0,"img",15),e&2&&c("fill",!0)}function ue(e,o){if(e&1&&(a(0,"div",16),s(1,"i",17),a(2,"span"),g(3),l()()),e&2){let t=p();i(3),w(t.code)}}function fe(e,o){if(e&1&&(x(0),a(1,"div",27)(2,"div",28),g(3),l(),a(4,"div")(5,"a",29),s(6,"i",30),l()()(),v()),e&2){let t=o.$implicit,r=o.index,n=p().$implicit;i(),c("ngClass",P(4,se,r!==(n==null?null:n.Variants.length)-1)),i(2),$(" ",t.ProductName," - ",t.Name," "),i(2),c("href",t.URL,_)}}function _e(e,o){if(e&1&&(a(0,"div",18)(1,"h2",19)(2,"button",20)(3,"div",21),s(4,"img",22),a(5,"span",23),g(6),l()()()(),a(7,"div",24)(8,"div",25),m(9,fe,7,6,"ng-container",26),l()()()),e&2){let t=o.$implicit,r=o.index,n=p();c("ngClass",P(10,pe,n.channels.length-1==r)),i(),c("id","heading"+r+n.id),i(),Z("data-bs-target","#collapse"+r+n.id)("aria-controls","#collapse"+r+n.id),i(2),c("src",n.getChannelLogo(t.TypeID),_),i(),c("matTooltip",(t==null||t.ChannelName==null?null:t.ChannelName.length)>30?t.ChannelName:""),i(),w(t.ChannelName),i(),c("id","collapse"+r+n.id),Z("aria-labelledby","heading"+r+n.id),i(2),c("ngForOf",t.Variants)}}var Me=(()=>{let o=class o{constructor(r){this.biggerPictureService=r}getChannelLogo(r){return V.getChannelLogoByTypeId(r)}onZoomImage(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};o.\u0275fac=function(n){return new(n||o)(T(R))},o.\u0275cmp=k({type:o,selectors:[["app-duplicate-product-card"]],inputs:{image:"image",imageForZoom:"imageForZoom",title:"title",code:"code",channels:"channels",id:"id"},standalone:!0,features:[O],decls:16,vars:5,consts:[["elsePic",""],[1,"card"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],[1,"col-8","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle"],["class","description",4,"ngIf"],[1,"card-footer",2,"padding-left","0px","padding-right","0px"],["id","accordionParent",1,"accordion","accordion-flush"],["class","accordion-item border-start-0 border-end-0",3,"ngClass",4,"ngFor","ngForOf"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"click","ngSrc","fill"],["ngSrc","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload",3,"fill"],[1,"description"],[1,"fa","fa-barcode","me-2"],[1,"accordion-item","border-start-0","border-end-0",3,"ngClass"],[1,"accordion-header",3,"id"],["type","button","data-bs-toggle","collapse","aria-expanded","true",1,"accordion-button","collapsed",2,"height","40px"],[1,"d-flex","align-items-center","justify-content-start","w-100"],["alt","",1,"channel-logo",3,"src"],[1,"fs-4","ps-4","text-ellipsis",2,"max-width","13vw",3,"matTooltip"],["data-bs-parent","#accordionParent",1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body",2,"padding-top","0px","padding-bottom","0px"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","align-items-center","py-4",3,"ngClass"],[1,"text-ellipsis"],["target","_blank",1,"text-secondary",3,"href"],[1,"fa","fa-external-link-alt"]],template:function(n,d){if(n&1&&(a(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),m(6,me,2,2,"ng-container",7)(7,ge,1,1,"ng-template",null,0,E),l()()(),a(9,"div",8)(10,"h4",9),g(11),l(),m(12,ue,4,1,"div",10),l()()(),a(13,"div",11)(14,"div",12),m(15,_e,10,12,"div",13),l()()()),n&2){let y=S(8);i(6),c("ngIf",d.image)("ngIfElse",y),i(5),I(" ",d.title," "),i(),c("ngIf",d.code),i(3),c("ngForOf",d.channels)}},dependencies:[B,M,U,D,F,z,N,A],styles:[`.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.channel-logo[_ngcontent-%COMP%]{width:18px;height:18px}.accordion-button[_ngcontent-%COMP%]{background-color:#ededed69!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#ededed69!important;color:#333}.accordion-button[_ngcontent-%COMP%]:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.accordion-button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.card[_ngcontent-%COMP%]{margin-bottom:0!important}`]});let e=o;return e})();export{Se as a,Me as b};
1
+ import{a as R}from"./chunk-C62XLEFW.js";import{t as N,u as z}from"./chunk-CTKEWRX4.js";import{y as F}from"./chunk-QOA24ZLA.js";import{c as V}from"./chunk-2AMEIUWK.js";import{$a as c,Dc as B,Ha as _,Hb as S,Hc as A,Ia as i,Ib as g,Ja as T,Jb as w,Kb as I,Lb as $,Qb as O,Sb as P,Za as m,_a as Z,bc as E,ga as k,lb as a,mb as l,nb as s,oa as u,ob as x,pa as f,pb as v,rb as h,tc as M,ub as C,vc as U,wb as p,wc as D,za as b,zb as L}from"./chunk-HSFUKC7R.js";var q=e=>({"me-3":e}),G=e=>({"border-bottom pb-2":e});function Q(e,o){if(e&1){let t=h();x(0),a(1,"img",19),C("click",function(n){u(t);let d=p();return f(d.openBiggerPicture(n))}),l(),v()}if(e&2){let t=p();i(),c("src",t.image,_)}}function X(e,o){e&1&&s(0,"img",20)}function Y(e,o){if(e&1&&(x(0),a(1,"span",24)(2,"a",25),s(3,"i",26),l()(),v()),e&2){let t=p(2);i(2),c("href",t.redirectUrl,_)}}function ee(e,o){if(e&1&&(a(0,"div",21),s(1,"i",22),a(2,"span"),g(3),l(),m(4,Y,4,1,"ng-container",23),l()),e&2){let t=p();i(3),w(t.code),i(),c("ngIf",t.code!=="SKU not assigned"&&t.showRedirectIcon)}}function te(e,o){if(e&1){let t=h();a(0,"div",27),C("click",function(){u(t);let n=p();return f(n.onEventDesc())}),s(1,"i",28),a(2,"span"),g(3),l()()}if(e&2){let t=p();i(3),w(t.description)}}function ne(e,o){if(e&1){let t=h();a(0,"div",29)(1,"input",30),C("change",function(n){u(t);let d=p();return f(d.onCheck(n.target.checked))}),l()()}}function ie(e,o){if(e&1){let t=h();a(0,"button",31),C("click",function(){u(t);let n=p();return f(n.onDownload())}),s(1,"i",32),g(2," Download "),l()}}function oe(e,o){if(e&1){let t=h();a(0,"button",31),C("click",function(){u(t);let n=p();return f(n.onUpload())}),s(1,"i",33),g(2," Upload "),l()}}function re(e,o){if(e&1){let t=h();a(0,"button",34),C("click",function(){u(t);let n=p();return f(n.onScan())}),s(1,"i",35),g(2," Scan "),l()}}function ae(e,o){if(e&1&&(x(0),a(1,"a",37),s(2,"img",38),l(),v()),e&2){let t=o.$implicit,r=o.index,n=p(2);i(),L("href",t.Url,_),i(),c("ngClass",P(4,q,r!=n.channels.length-1))("src",n.getChannelLogo(t),_)("matTooltip",t.Title?t.Title:t.Name)}}function ce(e,o){if(e&1&&(x(0),m(1,ae,3,6,"ng-container",36),v()),e&2){let t=p();i(),c("ngForOf",t.channels)}}function le(e,o){if(e&1&&(a(0,"li")(1,"div",42)(2,"div",43)(3,"a",37),s(4,"img",44),a(5,"span",45),g(6),l()()()()()),e&2){let t=o.$implicit,r=o.index,n=p(2);i(2),c("ngClass",P(4,G,r!=n.channels.length-1)),i(),c("href",t.Url,_),i(),c("src",n.getChannelLogo(t),_),i(2),w(t.Title)}}function de(e,o){if(e&1&&(a(0,"div",39)(1,"button",40),g(2),l(),a(3,"ul",41),m(4,le,7,6,"li",36),l()()),e&2){let t=p();i(2),I(" ",t.channels.length," CHANNELS "),i(2),c("ngForOf",t.channels)}}var Se=(()=>{let o=class o{constructor(r){this.biggerPictureService=r,this.uploadButton=!1,this.scanButton=!1,this.showCheckBox=!1,this.downloadButton=!1,this.hasZoom=!0,this.showRedirectIcon=!0,this.onUploadEvent=new b,this.onScanEvent=new b,this.checkBoxChange=new b,this.onDescEvent=new b,this.onDownloadEvent=new b}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let r=localStorage.getItem("Authorization"),n=JSON.parse(r)?.Host;this.redirectUrl=`https://${n}/menu/Products/Catalog/Products/Info?ID=${this.productId}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(r){this.checkBoxChange.emit(r)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}getChannelLogo(r){return V.getChannelLogoByTypeId(r.TypeID)}openBiggerPicture(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};o.\u0275fac=function(n){return new(n||o)(T(R))},o.\u0275cmp=k({type:o,selectors:[["app-product-card"]],inputs:{productId:"productId",uploadButton:"uploadButton",scanButton:"scanButton",showCheckBox:"showCheckBox",downloadButton:"downloadButton",image:"image",title:"title",code:"code",description:"description",channels:"channels",check:"check",imageForZoom:"imageForZoom",hasZoom:"hasZoom",showRedirectIcon:"showRedirectIcon"},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload"},standalone:!0,features:[O],decls:26,vars:11,consts:[["elsePic",""],["DROPDOWN",""],[1,"card",2,"margin-bottom","0px"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click"],["class","description cursor-pointer",4,"ngIf"],["class","description cursor-pointer",3,"click",4,"ngIf"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],["class","text-end gx-0",4,"ngIf"],[1,"card-footer","d-flex","justify-content-between","py-5","bg-footer","align-items-center",2,"border-top","0.1px solid rgb(220 220 220)"],["class","fs-6 btn btn-light btn-sm me-3",3,"click",4,"ngIf"],["class","fs-6 btn btn-light btn-sm",3,"click",4,"ngIf"],[1,"rounded","imgUpload","float-left",3,"click","src"],["src","https://res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"description","cursor-pointer"],[1,"fa","fa-barcode","me-2"],[4,"ngIf"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fas","fa-external-link-alt"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download"],["aria-hidden","true",1,"fa","fa-upload"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fa","fa-spinner"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],[1,"dropdown"],["type","button","id","dropdownMenuButton1","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","fs-6","btn-sm","btn-light","dropdown-toggle"],[1,"dropdown-menu"],[1,"dropdown-item","py-2",2,"cursor","pointer"],[3,"ngClass"],[1,"img-logo",3,"src"],[1,"ms-4"]],template:function(n,d){if(n&1){let y=h();a(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7),m(6,Q,2,1,"ng-container",8)(7,X,1,0,"ng-template",null,0,E),l()()(),a(9,"div",9)(10,"h4",10),C("click",function(){return u(y),f(d.onEventDesc())}),g(11),l(),m(12,ee,5,2,"div",11)(13,te,4,1,"div",12),l(),a(14,"div",13)(15,"div",14),m(16,ne,2,0,"div",15),l()()()(),a(17,"div",16)(18,"div"),m(19,ie,3,0,"button",17)(20,oe,3,0,"button",17)(21,re,3,0,"button",18),l(),a(22,"div"),m(23,ce,2,1,"ng-container",8)(24,de,5,2,"ng-template",null,1,E),l()()()}if(n&2){let y=S(8),j=S(25);i(6),c("ngIf",d.image)("ngIfElse",y),i(5),I(" ",d.title," "),i(),c("ngIf",d.code),i(),c("ngIf",d.description),i(3),c("ngIf",d.showCheckBox),i(3),c("ngIf",d.downloadButton),i(),c("ngIf",d.uploadButton),i(),c("ngIf",d.scanButton),i(2),c("ngIf",d.channels.length<4)("ngIfElse",j)}},dependencies:[B,M,U,D,F,z,N],styles:[".img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.bg-footer[_ngcontent-%COMP%]{background-color:#ededed69}.description[_ngcontent-%COMP%]{font-weight:300;margin-left:2px}.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down;cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}"]});let e=o;return e})();var pe=e=>({"border-bottom-0":e}),se=e=>({"border-bottom":e});function me(e,o){if(e&1){let t=h();x(0),a(1,"img",14),C("click",function(n){u(t);let d=p();return f(d.onZoomImage(n))}),l(),v()}if(e&2){let t=p();i(),c("ngSrc",t.image)("fill",!0)}}function ge(e,o){e&1&&s(0,"img",15),e&2&&c("fill",!0)}function ue(e,o){if(e&1&&(a(0,"div",16),s(1,"i",17),a(2,"span"),g(3),l()()),e&2){let t=p();i(3),w(t.code)}}function fe(e,o){if(e&1&&(x(0),a(1,"div",27)(2,"div",28),g(3),l(),a(4,"div")(5,"a",29),s(6,"i",30),l()()(),v()),e&2){let t=o.$implicit,r=o.index,n=p().$implicit;i(),c("ngClass",P(4,se,r!==(n==null?null:n.Variants.length)-1)),i(2),$(" ",t.ProductName," - ",t.Name," "),i(2),c("href",t.URL,_)}}function _e(e,o){if(e&1&&(a(0,"div",18)(1,"h2",19)(2,"button",20)(3,"div",21),s(4,"img",22),a(5,"span",23),g(6),l()()()(),a(7,"div",24)(8,"div",25),m(9,fe,7,6,"ng-container",26),l()()()),e&2){let t=o.$implicit,r=o.index,n=p();c("ngClass",P(10,pe,n.channels.length-1==r)),i(),c("id","heading"+r+n.id),i(),Z("data-bs-target","#collapse"+r+n.id)("aria-controls","#collapse"+r+n.id),i(2),c("src",n.getChannelLogo(t.TypeID),_),i(),c("matTooltip",(t==null||t.ChannelName==null?null:t.ChannelName.length)>30?t.ChannelName:""),i(),w(t.ChannelName),i(),c("id","collapse"+r+n.id),Z("aria-labelledby","heading"+r+n.id),i(2),c("ngForOf",t.Variants)}}var Me=(()=>{let o=class o{constructor(r){this.biggerPictureService=r}getChannelLogo(r){return V.getChannelLogoByTypeId(r)}onZoomImage(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};o.\u0275fac=function(n){return new(n||o)(T(R))},o.\u0275cmp=k({type:o,selectors:[["app-duplicate-product-card"]],inputs:{image:"image",imageForZoom:"imageForZoom",title:"title",code:"code",channels:"channels",id:"id"},standalone:!0,features:[O],decls:16,vars:5,consts:[["elsePic",""],[1,"card"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],[1,"col-8","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle"],["class","description",4,"ngIf"],[1,"card-footer",2,"padding-left","0px","padding-right","0px"],["id","accordionParent",1,"accordion","accordion-flush"],["class","accordion-item border-start-0 border-end-0",3,"ngClass",4,"ngFor","ngForOf"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"click","ngSrc","fill"],["ngSrc","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload",3,"fill"],[1,"description"],[1,"fa","fa-barcode","me-2"],[1,"accordion-item","border-start-0","border-end-0",3,"ngClass"],[1,"accordion-header",3,"id"],["type","button","data-bs-toggle","collapse","aria-expanded","true",1,"accordion-button","collapsed",2,"height","40px"],[1,"d-flex","align-items-center","justify-content-start","w-100"],["alt","",1,"channel-logo",3,"src"],[1,"fs-4","ps-4","text-ellipsis",2,"max-width","13vw",3,"matTooltip"],["data-bs-parent","#accordionParent",1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body",2,"padding-top","0px","padding-bottom","0px"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","align-items-center","py-4",3,"ngClass"],[1,"text-ellipsis"],["target","_blank",1,"text-secondary",3,"href"],[1,"fa","fa-external-link-alt"]],template:function(n,d){if(n&1&&(a(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),m(6,me,2,2,"ng-container",7)(7,ge,1,1,"ng-template",null,0,E),l()()(),a(9,"div",8)(10,"h4",9),g(11),l(),m(12,ue,4,1,"div",10),l()()(),a(13,"div",11)(14,"div",12),m(15,_e,10,12,"div",13),l()()()),n&2){let y=S(8);i(6),c("ngIf",d.image)("ngIfElse",y),i(5),I(" ",d.title," "),i(),c("ngIf",d.code),i(3),c("ngForOf",d.channels)}},dependencies:[B,M,U,D,F,z,N,A],styles:[`.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.channel-logo[_ngcontent-%COMP%]{width:18px;height:18px}.accordion-button[_ngcontent-%COMP%]{background-color:#ededed69!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#ededed69!important;color:#333}.accordion-button[_ngcontent-%COMP%]:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.accordion-button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.card[_ngcontent-%COMP%]{margin-bottom:0!important}`]});let e=o;return e})();export{Se as a,Me as b};
@@ -1 +1 @@
1
- import{$a as s,Ha as r,Ia as a,Ib as p,Qb as d,ga as o,lb as i,mb as c,nb as m}from"./chunk-C3YE27TZ.js";var y=(()=>{let t=class t{constructor(){this.emptyStateImg="https://res.cloudinary.com/pos/image/upload/v1683772105/icons/marketplace_icons/emptyrecord.svg"}ngOnInit(){}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o({type:t,selectors:[["app-empty-state"]],standalone:!0,features:[d],decls:4,vars:1,consts:[["alt","",2,"width","225px",3,"src"],[1,"text-center","fs-2","text-secondary","mt-4"]],template:function(e,f){e&1&&(i(0,"div"),m(1,"img",0),i(2,"div",1),p(3," No records found "),c()()),e&2&&(a(),s("src",f.emptyStateImg,r))}});let n=t;return n})();export{y as a};
1
+ import{$a as s,Ha as r,Ia as a,Ib as p,Qb as d,ga as o,lb as i,mb as c,nb as m}from"./chunk-HSFUKC7R.js";var y=(()=>{let t=class t{constructor(){this.emptyStateImg="https://res.cloudinary.com/pos/image/upload/v1683772105/icons/marketplace_icons/emptyrecord.svg"}ngOnInit(){}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o({type:t,selectors:[["app-empty-state"]],standalone:!0,features:[d],decls:4,vars:1,consts:[["alt","",2,"width","225px",3,"src"],[1,"text-center","fs-2","text-secondary","mt-4"]],template:function(e,f){e&1&&(i(0,"div"),m(1,"img",0),i(2,"div",1),p(3," No records found "),c()()),e&2&&(a(),s("src",f.emptyStateImg,r))}});let n=t;return n})();export{y as a};
@@ -1 +1 @@
1
- import{a as F}from"./chunk-YG3KQ63T.js";import{b as x,c as U,i as b,j as D}from"./chunk-4R22UO7N.js";import{h as k,k as T}from"./chunk-B3LBEB32.js";import{$a as m,Ha as h,Ia as s,Ib as y,Ja as d,Jb as v,Mb as O,Nb as w,Ob as I,Za as C,ga as p,lb as l,mb as c,nb as _,oa as g,pa as f,rb as u,ub as M,uc as S}from"./chunk-C3YE27TZ.js";function P(i,n){if(i&1){let a=u();l(0,"li")(1,"mat-checkbox",5),I("ngModelChange",function(e){let t=g(a).$implicit;return w(t.selected,e)||(t.selected=e),f(e)}),l(2,"div",6),_(3,"img",7),l(4,"h5",8),y(5),c()()()()}if(i&2){let a=n.$implicit;s(),O("ngModel",a.selected),s(2),m("src",a.Img,h),s(2),v(a.Name)}}var z=(()=>{let n=class n{constructor(o,e){this.data=o,this.dialogRef=e,this.selectedItems=this.data.selectedItems,this.channels=this.data.channels}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new b,this.modalConfig.title="Updating Inventory"}onOk(){this.dialogRef.close(this.channels)}onClose(){this.dialogRef.close()}getSelectedChannel(){return this.channels.filter(o=>o.selected)}};n.\u0275fac=function(e){return new(e||n)(d(U),d(x))},n.\u0275cmp=p({type:n,selectors:[["app-modal-update-channels"]],decls:5,vars:3,consts:[[3,"onOk","onClose","onCancel","dynamicValidated","config"],["content",""],[2,"overflow-y","auto","max-height","28rem"],[1,"no-bullet"],[4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center"],[1,"channelLogo-md",3,"src"],[1,"fw-light","ms-2","my-auto"]],template:function(e,t){if(e&1&&(l(0,"modal-material",0),M("onOk",function(){return t.onOk()})("onClose",function(){return t.onClose()})("onCancel",function(){return t.onClose()}),l(1,"div",1)(2,"div",2)(3,"ul",3),C(4,P,6,3,"li",4),c()()()()),e&2){let r;m("dynamicValidated",((r=t.getSelectedChannel())==null?null:r.length)>0)("config",t.modalConfig),s(4),m("ngForOf",t.channels)}},dependencies:[S,k,T,F,D],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]});let i=n;return i})();export{z as a};
1
+ import{a as F}from"./chunk-VHYFEAS2.js";import{b as x,c as U,i as b,j as D}from"./chunk-UUNZHJ6W.js";import{h as k,l as T}from"./chunk-QOA24ZLA.js";import{$a as m,Ha as h,Ia as s,Ib as y,Ja as d,Jb as v,Mb as O,Nb as w,Ob as I,Za as C,ga as p,lb as l,mb as c,nb as _,oa as g,pa as f,rb as u,ub as M,vc as S}from"./chunk-HSFUKC7R.js";function P(i,n){if(i&1){let a=u();l(0,"li")(1,"mat-checkbox",5),I("ngModelChange",function(e){let t=g(a).$implicit;return w(t.selected,e)||(t.selected=e),f(e)}),l(2,"div",6),_(3,"img",7),l(4,"h5",8),y(5),c()()()()}if(i&2){let a=n.$implicit;s(),O("ngModel",a.selected),s(2),m("src",a.Img,h),s(2),v(a.Name)}}var z=(()=>{let n=class n{constructor(o,e){this.data=o,this.dialogRef=e,this.selectedItems=this.data.selectedItems,this.channels=this.data.channels}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new b,this.modalConfig.title="Updating Inventory"}onOk(){this.dialogRef.close(this.channels)}onClose(){this.dialogRef.close()}getSelectedChannel(){return this.channels.filter(o=>o.selected)}};n.\u0275fac=function(e){return new(e||n)(d(U),d(x))},n.\u0275cmp=p({type:n,selectors:[["app-modal-update-channels"]],decls:5,vars:3,consts:[[3,"onOk","onClose","onCancel","dynamicValidated","config"],["content",""],[2,"overflow-y","auto","max-height","28rem"],[1,"no-bullet"],[4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center"],[1,"channelLogo-md",3,"src"],[1,"fw-light","ms-2","my-auto"]],template:function(e,t){if(e&1&&(l(0,"modal-material",0),M("onOk",function(){return t.onOk()})("onClose",function(){return t.onClose()})("onCancel",function(){return t.onClose()}),l(1,"div",1)(2,"div",2)(3,"ul",3),C(4,P,6,3,"li",4),c()()()()),e&2){let r;m("dynamicValidated",((r=t.getSelectedChannel())==null?null:r.length)>0)("config",t.modalConfig),s(4),m("ngForOf",t.channels)}},dependencies:[S,k,T,F,D],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]});let i=n;return i})();export{z as a};
@@ -1 +1 @@
1
- import{e as p}from"./chunk-DSF55IXM.js";import{$ as c,ca as a,q as n}from"./chunk-C3YE27TZ.js";var f=(()=>{let t=class t{constructor(r){this.httpService=r}getInventoryAsyncLog(r){return this.httpService.post("api/Inventory/GetAsyncLog",r).pipe(n(e=>(e.hits=e.hits.map(i=>(i.DurationInSecond=parseInt(i._source?.Duration)/1e3,i)),e)))}getInventoryAsyncLogDetail(r){return this.httpService.post("api/Inventory/GetAsyncLogDetail",{ID:r})}};t.\u0275fac=function(e){return new(e||t)(a(p))},t.\u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();export{f as a};
1
+ import{e as p}from"./chunk-AAFEUTPF.js";import{$ as c,ca as a,q as n}from"./chunk-HSFUKC7R.js";var f=(()=>{let t=class t{constructor(r){this.httpService=r}getInventoryAsyncLog(r){return this.httpService.post("api/Inventory/GetAsyncLog",r).pipe(n(e=>(e.hits=e.hits.map(i=>(i.DurationInSecond=parseInt(i._source?.Duration)/1e3,i)),e)))}getInventoryAsyncLogDetail(r){return this.httpService.post("api/Inventory/GetAsyncLogDetail",{ID:r})}};t.\u0275fac=function(e){return new(e||t)(a(p))},t.\u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();export{f as a};
@@ -0,0 +1 @@
1
+ import{e as N}from"./chunk-AAFEUTPF.js";import{c as f}from"./chunk-2AMEIUWK.js";import{$ as P,B as h,F as g,O as p,Q as l,V as c,X as m,Y as b,c as u,ca as d,d as s,q as n}from"./chunk-HSFUKC7R.js";var w=(()=>{let i=class i{get footerPageNumber(){return this._footerPageNumber}set footerPageNumber(t){this._footerPageNumber=t}get hideCount(){return this._hideCount}set hideCount(t){this._hideCount=t}get disableNextButton(){return this._disableNextButton}set disableNextButton(t){this._disableNextButton=t}get goToLastPage(){return this._goToLastPage}set goToLastPage(t){this._goToLastPage=t}constructor(t){this.http=t,this.pagination$=new s(null),this.destroy$=new u,this.data$=this.paginationFunction()}onNextPage(t){t.PageNumber+=1,this.pagination$.next(t)}setPageNumberFooter(t){this.footerPageNumber=t.PageNumber}setPaginationButtonState(t,e){e==0?this.disableNextButton=!0:this.disableNextButton=!(e<t.RowCount*t.PageNumber)}reloadPagination(t){f.IsEmpty(t.PageNumber)&&(t.PageNumber=1),this.pagination$.next(t),this.hideCount=!0,this.goToLastPage=!1}getAllData(t,e){t.RowCount=e,this.pagination$.next(t),this.goToLastPage=!0}destroy(){this.destroy$.next(!0),this.destroy$.complete(),this.pagination$=null,this.pagination$=new s(null),this.data$=this.paginationFunction()}paginationFunction(){return this.pagination$.pipe(c(this.destroy$),h(t=>t!=null),g(t=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(t)).pipe(n(e=>e.Data))),b(this.pagination$),p((t,e)=>{let[$,a]=t,[r]=e;return a.PageNumber==1?[r,a]:[$.concat(r),a]}),m(([t,e])=>{this.setPageNumberFooter(e),this.setPaginationButtonState(e,t.length)}),n(([t])=>t),l())}};i.\u0275fac=function(e){return new(e||i)(d(N))},i.\u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();export{w as a};