menupro 0.7.0 → 1.0.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.
package/README.md CHANGED
@@ -1,5 +1,321 @@
1
1
  # NOTE
2
2
 
3
- This package is unde construction...
3
+ Create menu in your saas like Desktop App
4
4
 
5
- ![](./images/screenshot.png)
5
+ ## install
6
+
7
+ ```bash
8
+ npm i -D menupro
9
+ ```
10
+
11
+ ## setup
12
+
13
+ On top of your project
14
+
15
+ ```js
16
+ import 'menupro'
17
+ ```
18
+
19
+ ## use
20
+
21
+ in your app (React too)
22
+
23
+ ```js
24
+ <Menupro
25
+ name: "menupro",
26
+ element: "#root>nav",
27
+ ...json
28
+ />
29
+ ```
30
+
31
+ ### parameters
32
+
33
+ "name" <-- the name for your element
34
+ "element" <-- where you want your menu append (usually NAV)
35
+ "...json" <-- the object contains your menu (see the json)
36
+
37
+ ## config
38
+
39
+ you can use a json to configure the menu.
40
+ Here some ways...
41
+
42
+ ```js
43
+ const json = require("./menu.json")
44
+
45
+ or
46
+
47
+ import json from "./menu.json"
48
+ ```
49
+
50
+ > example:
51
+
52
+ ```json
53
+
54
+ {
55
+ "author": "",
56
+ "charset": "UTF-8",
57
+ "title": "navmenu",
58
+ "short": "navmenu",
59
+ "keywords": "",
60
+ "nav": [
61
+ {
62
+ "name": "file",
63
+ "title": "",
64
+ "target": "",
65
+ "link": "",
66
+ "onclick": "",
67
+ "icon": "",
68
+ "lang": {
69
+ "en": "file"
70
+ },
71
+ "sub": [
72
+ {
73
+ "name": "test_file_1_1",
74
+ "title": "",
75
+ "target": "",
76
+ "link": "",
77
+ "onclick": "message('test')",
78
+ "icon": "<img src='/assets/icons/list-alt.svg' />",
79
+ "lang": {
80
+ "en": "test"
81
+ },
82
+ "sub": []
83
+ },
84
+ {
85
+ "name": "test_file_2_1",
86
+ "title": "",
87
+ "target": "",
88
+ "link": "",
89
+ "onclick": "message('test')",
90
+ "icon": "<img src='/assets/icons/tasks.svg' />",
91
+ "lang": {
92
+ "en": "test"
93
+ },
94
+ "sub": []
95
+ },
96
+ {
97
+ "name": ""
98
+ },
99
+ {
100
+ "name": "test_file_3_1",
101
+ "title": "",
102
+ "target": "",
103
+ "link": "",
104
+ "onclick": "message('test')",
105
+ "icon": "<img src='/assets/icons/thumbtack.svg' />",
106
+ "lang": {
107
+ "en": "test"
108
+ },
109
+ "sub": []
110
+ },
111
+ {
112
+ "name": "test_file_4_1",
113
+ "title": "",
114
+ "target": "",
115
+ "link": "",
116
+ "onclick": "message('test')",
117
+ "icon": "<img src='/assets/icons/users.svg' />",
118
+ "lang": {
119
+ "en": "test"
120
+ },
121
+ "sub": [
122
+ {
123
+ "name": "test_file_2_1",
124
+ "title": "",
125
+ "target": "",
126
+ "link": "",
127
+ "onclick": "message('test')",
128
+ "icon": "",
129
+ "lang": {
130
+ "en": "test"
131
+ },
132
+ "sub": [
133
+ {
134
+ "name": "test_file_3_1",
135
+ "title": "",
136
+ "target": "",
137
+ "link": "",
138
+ "onclick": "message('test')",
139
+ "icon": "<img src='/assets/icons/users-cog.svg' />",
140
+ "lang": {
141
+ "en": "test"
142
+ },
143
+ "sub": []
144
+ },
145
+ {
146
+ "name": ""
147
+ },
148
+ {
149
+ "name": "test_file_3_2",
150
+ "title": "",
151
+ "target": "",
152
+ "link": "",
153
+ "onclick": "message('test')",
154
+ "icon": "<img src='/assets/icons/wifi.svg' />",
155
+ "lang": {
156
+ "en": "test"
157
+ },
158
+ "sub": []
159
+ }
160
+ ]
161
+ }
162
+ ]
163
+ },
164
+ {
165
+ "name": "test_file_5_1",
166
+ "title": "",
167
+ "target": "",
168
+ "link": "",
169
+ "onclick": "message('test')",
170
+ "icon": "<img src='/assets/icons/wrench.svg' />",
171
+ "lang": {
172
+ "en": "test"
173
+ },
174
+ "sub": [
175
+ {
176
+ "name": "test_file_2_1",
177
+ "title": "",
178
+ "target": "",
179
+ "link": "",
180
+ "onclick": "message('test')",
181
+ "icon": "",
182
+ "lang": {
183
+ "en": "test"
184
+ },
185
+ "sub": [
186
+ {
187
+ "name": "test_file_3_1",
188
+ "title": "",
189
+ "target": "",
190
+ "link": "",
191
+ "onclick": "message('test')",
192
+ "icon": "",
193
+ "lang": {
194
+ "en": "test"
195
+ },
196
+ "sub": []
197
+ },
198
+ {
199
+ "name": "test_file_3_2",
200
+ "title": "",
201
+ "target": "",
202
+ "link": "",
203
+ "onclick": "message('test')",
204
+ "icon": "",
205
+ "lang": {
206
+ "en": "test"
207
+ },
208
+ "sub": []
209
+ }
210
+ ]
211
+ }
212
+ ]
213
+ }
214
+ ]
215
+ },
216
+ {
217
+ "name": "edit",
218
+ "title": "",
219
+ "target": "",
220
+ "link": "",
221
+ "onclick": "",
222
+ "icon": "",
223
+ "lang": {
224
+ "en": "edit"
225
+ },
226
+ "sub": [
227
+ {
228
+ "name": "test_edit_1",
229
+ "title": "",
230
+ "target": "",
231
+ "link": "",
232
+ "onclick": "message('test')",
233
+ "icon": "",
234
+ "lang": {
235
+ "en": "test"
236
+ },
237
+ "sub": [
238
+ {
239
+ "name": "test_edit_1_1",
240
+ "title": "",
241
+ "target": "",
242
+ "link": "",
243
+ "onclick": "message('test')",
244
+ "icon": "",
245
+ "lang": {
246
+ "en": "test"
247
+ },
248
+ "sub": []
249
+ },
250
+ {
251
+ "name": "test_edit_1_2",
252
+ "title": "",
253
+ "target": "",
254
+ "link": "",
255
+ "onclick": "message('test')",
256
+ "icon": "",
257
+ "lang": {
258
+ "en": "test"
259
+ },
260
+ "sub": []
261
+ },
262
+ {
263
+ "name": ""
264
+ },
265
+ {
266
+ "name": "test_edit_1_3",
267
+ "title": "",
268
+ "target": "",
269
+ "link": "",
270
+ "onclick": "message('test')",
271
+ "icon": "",
272
+ "lang": {
273
+ "en": "test"
274
+ },
275
+ "sub": [
276
+ {
277
+ "name": "test_edit_2_1",
278
+ "title": "",
279
+ "target": "",
280
+ "link": "",
281
+ "onclick": "message('test')",
282
+ "icon": "",
283
+ "lang": {
284
+ "en": "test"
285
+ },
286
+ "sub": []
287
+ }
288
+ ]
289
+ },
290
+ {
291
+ "name": "test_edit_1_4",
292
+ "title": "",
293
+ "target": "",
294
+ "link": "",
295
+ "onclick": "message('test')",
296
+ "icon": "",
297
+ "lang": {
298
+ "en": "test"
299
+ },
300
+ "sub": []
301
+ }
302
+ ]
303
+ }
304
+ ]
305
+ },
306
+ {
307
+ "name": "selection",
308
+ "title": "",
309
+ "target": "",
310
+ "link": "",
311
+ "onclick": "message('test')",
312
+ "icon": "",
313
+ "lang": {
314
+ "en": "selection"
315
+ },
316
+ "sub": []
317
+ }
318
+ ]
319
+ }
320
+
321
+ ```
package/docs/index.md CHANGED
@@ -1,5 +1,321 @@
1
1
  # NOTE
2
2
 
3
- This package is unde construction...
3
+ Create menu in your saas like Desktop App
4
4
 
5
- ![](./images/screenshot.png)
5
+ ## install
6
+
7
+ ```bash
8
+ npm i -D menupro
9
+ ```
10
+
11
+ ## setup
12
+
13
+ On top of your project
14
+
15
+ ```js
16
+ import 'menupro'
17
+ ```
18
+
19
+ ## use
20
+
21
+ in your app (React too)
22
+
23
+ ```js
24
+ <Menupro
25
+ name: "menupro",
26
+ element: "#root>nav",
27
+ ...json
28
+ />
29
+ ```
30
+
31
+ ### parameters
32
+
33
+ "name" <-- the name for your element
34
+ "element" <-- where you want your menu append (usually NAV)
35
+ "...json" <-- the object contains your menu (see the json)
36
+
37
+ ## config
38
+
39
+ you can use a json to configure the menu.
40
+ Here some ways...
41
+
42
+ ```js
43
+ const json = require("./menu.json")
44
+
45
+ or
46
+
47
+ import json from "./menu.json"
48
+ ```
49
+
50
+ > example:
51
+
52
+ ```json
53
+
54
+ {
55
+ "author": "",
56
+ "charset": "UTF-8",
57
+ "title": "navmenu",
58
+ "short": "navmenu",
59
+ "keywords": "",
60
+ "nav": [
61
+ {
62
+ "name": "file",
63
+ "title": "",
64
+ "target": "",
65
+ "link": "",
66
+ "onclick": "",
67
+ "icon": "",
68
+ "lang": {
69
+ "en": "file"
70
+ },
71
+ "sub": [
72
+ {
73
+ "name": "test_file_1_1",
74
+ "title": "",
75
+ "target": "",
76
+ "link": "",
77
+ "onclick": "message('test')",
78
+ "icon": "<img src='/assets/icons/list-alt.svg' />",
79
+ "lang": {
80
+ "en": "test"
81
+ },
82
+ "sub": []
83
+ },
84
+ {
85
+ "name": "test_file_2_1",
86
+ "title": "",
87
+ "target": "",
88
+ "link": "",
89
+ "onclick": "message('test')",
90
+ "icon": "<img src='/assets/icons/tasks.svg' />",
91
+ "lang": {
92
+ "en": "test"
93
+ },
94
+ "sub": []
95
+ },
96
+ {
97
+ "name": ""
98
+ },
99
+ {
100
+ "name": "test_file_3_1",
101
+ "title": "",
102
+ "target": "",
103
+ "link": "",
104
+ "onclick": "message('test')",
105
+ "icon": "<img src='/assets/icons/thumbtack.svg' />",
106
+ "lang": {
107
+ "en": "test"
108
+ },
109
+ "sub": []
110
+ },
111
+ {
112
+ "name": "test_file_4_1",
113
+ "title": "",
114
+ "target": "",
115
+ "link": "",
116
+ "onclick": "message('test')",
117
+ "icon": "<img src='/assets/icons/users.svg' />",
118
+ "lang": {
119
+ "en": "test"
120
+ },
121
+ "sub": [
122
+ {
123
+ "name": "test_file_2_1",
124
+ "title": "",
125
+ "target": "",
126
+ "link": "",
127
+ "onclick": "message('test')",
128
+ "icon": "",
129
+ "lang": {
130
+ "en": "test"
131
+ },
132
+ "sub": [
133
+ {
134
+ "name": "test_file_3_1",
135
+ "title": "",
136
+ "target": "",
137
+ "link": "",
138
+ "onclick": "message('test')",
139
+ "icon": "<img src='/assets/icons/users-cog.svg' />",
140
+ "lang": {
141
+ "en": "test"
142
+ },
143
+ "sub": []
144
+ },
145
+ {
146
+ "name": ""
147
+ },
148
+ {
149
+ "name": "test_file_3_2",
150
+ "title": "",
151
+ "target": "",
152
+ "link": "",
153
+ "onclick": "message('test')",
154
+ "icon": "<img src='/assets/icons/wifi.svg' />",
155
+ "lang": {
156
+ "en": "test"
157
+ },
158
+ "sub": []
159
+ }
160
+ ]
161
+ }
162
+ ]
163
+ },
164
+ {
165
+ "name": "test_file_5_1",
166
+ "title": "",
167
+ "target": "",
168
+ "link": "",
169
+ "onclick": "message('test')",
170
+ "icon": "<img src='/assets/icons/wrench.svg' />",
171
+ "lang": {
172
+ "en": "test"
173
+ },
174
+ "sub": [
175
+ {
176
+ "name": "test_file_2_1",
177
+ "title": "",
178
+ "target": "",
179
+ "link": "",
180
+ "onclick": "message('test')",
181
+ "icon": "",
182
+ "lang": {
183
+ "en": "test"
184
+ },
185
+ "sub": [
186
+ {
187
+ "name": "test_file_3_1",
188
+ "title": "",
189
+ "target": "",
190
+ "link": "",
191
+ "onclick": "message('test')",
192
+ "icon": "",
193
+ "lang": {
194
+ "en": "test"
195
+ },
196
+ "sub": []
197
+ },
198
+ {
199
+ "name": "test_file_3_2",
200
+ "title": "",
201
+ "target": "",
202
+ "link": "",
203
+ "onclick": "message('test')",
204
+ "icon": "",
205
+ "lang": {
206
+ "en": "test"
207
+ },
208
+ "sub": []
209
+ }
210
+ ]
211
+ }
212
+ ]
213
+ }
214
+ ]
215
+ },
216
+ {
217
+ "name": "edit",
218
+ "title": "",
219
+ "target": "",
220
+ "link": "",
221
+ "onclick": "",
222
+ "icon": "",
223
+ "lang": {
224
+ "en": "edit"
225
+ },
226
+ "sub": [
227
+ {
228
+ "name": "test_edit_1",
229
+ "title": "",
230
+ "target": "",
231
+ "link": "",
232
+ "onclick": "message('test')",
233
+ "icon": "",
234
+ "lang": {
235
+ "en": "test"
236
+ },
237
+ "sub": [
238
+ {
239
+ "name": "test_edit_1_1",
240
+ "title": "",
241
+ "target": "",
242
+ "link": "",
243
+ "onclick": "message('test')",
244
+ "icon": "",
245
+ "lang": {
246
+ "en": "test"
247
+ },
248
+ "sub": []
249
+ },
250
+ {
251
+ "name": "test_edit_1_2",
252
+ "title": "",
253
+ "target": "",
254
+ "link": "",
255
+ "onclick": "message('test')",
256
+ "icon": "",
257
+ "lang": {
258
+ "en": "test"
259
+ },
260
+ "sub": []
261
+ },
262
+ {
263
+ "name": ""
264
+ },
265
+ {
266
+ "name": "test_edit_1_3",
267
+ "title": "",
268
+ "target": "",
269
+ "link": "",
270
+ "onclick": "message('test')",
271
+ "icon": "",
272
+ "lang": {
273
+ "en": "test"
274
+ },
275
+ "sub": [
276
+ {
277
+ "name": "test_edit_2_1",
278
+ "title": "",
279
+ "target": "",
280
+ "link": "",
281
+ "onclick": "message('test')",
282
+ "icon": "",
283
+ "lang": {
284
+ "en": "test"
285
+ },
286
+ "sub": []
287
+ }
288
+ ]
289
+ },
290
+ {
291
+ "name": "test_edit_1_4",
292
+ "title": "",
293
+ "target": "",
294
+ "link": "",
295
+ "onclick": "message('test')",
296
+ "icon": "",
297
+ "lang": {
298
+ "en": "test"
299
+ },
300
+ "sub": []
301
+ }
302
+ ]
303
+ }
304
+ ]
305
+ },
306
+ {
307
+ "name": "selection",
308
+ "title": "",
309
+ "target": "",
310
+ "link": "",
311
+ "onclick": "message('test')",
312
+ "icon": "",
313
+ "lang": {
314
+ "en": "selection"
315
+ },
316
+ "sub": []
317
+ }
318
+ ]
319
+ }
320
+
321
+ ```
package/index.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e,n,r={50:e=>{"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var r="",t=void 0!==n[5];return n[4]&&(r+="@supports (".concat(n[4],") {")),n[2]&&(r+="@media ".concat(n[2]," {")),t&&(r+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),r+=e(n),t&&(r+="}"),n[2]&&(r+="}"),n[4]&&(r+="}"),r})).join("")},n.i=function(e,r,t,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(t)for(var c=0;c<this.length;c++){var l=this[c][0];null!=l&&(a[l]=!0)}for(var u=0;u<e.length;u++){var d=[].concat(e[u]);t&&a[d[0]]||(void 0!==i&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=i),r&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=r):d[2]=r),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),n.push(d))}},n}},56:(e,n,r)=>{"use strict";e.exports=function(e){var n=r.nc;n&&e.setAttribute("nonce",n)}},72:e=>{"use strict";var n=[];function r(e){for(var r=-1,t=0;t<n.length;t++)if(n[t].identifier===e){r=t;break}return r}function t(e,t){for(var i={},a=[],c=0;c<e.length;c++){var l=e[c],u=t.base?l[0]+t.base:l[0],d=i[u]||0,s="".concat(u," ").concat(d);i[u]=d+1;var p=r(s),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)n[p].references++,n[p].updater(f);else{var h=o(f,t);t.byIndex=c,n.splice(c,0,{identifier:s,updater:h,references:1})}a.push(s)}return a}function o(e,n){var r=n.domAPI(n);return r.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;r.update(e=n)}else r.remove()}}e.exports=function(e,o){var i=t(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var c=r(i[a]);n[c].references--}for(var l=t(e,o),u=0;u<i.length;u++){var d=r(i[u]);0===n[d].references&&(n[d].updater(),n.splice(d,1))}i=l}}},106:()=>{menupro.credits=e=>{console.groupCollapsed(`%c${e.name} v${e.version}%c`,"color:orange",""),console.debug(`%c${e.name} v${e.version}%c by Dario Passariello started`,"color:orange",""),console.debug(`%cType ${e.name} in this console to see it`,"color:gray",""),console.debug("name: %c"+e.name,"color:orange",""),console.debug("version: %c"+e.version,"color:orange",""),console.debug("description: %c"+e.description,"color:orange",""),console.debug("license: %c"+e.license,"color:orange",""),console.debug("author: %c"+e.author.name,"color:orange",""),console.debug("email: %c"+e.author.email,"color:orange",""),console.groupEnd()}},113:e=>{"use strict";e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},329:e=>{"use strict";e.exports=function(e){return e[1]}},540:e=>{"use strict";e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},561:(e,n,r)=>{"use strict";r.r(n),r.d(n,{default:()=>c});var t=r(329),o=r.n(t),i=r(50),a=r.n(i)()(o());a.push([e.id,'.menupro{position:relative;margin:0;padding:0}.menupro ul,.menupro li,.menupro ul{background-color:#000;list-style:none;margin:0;padding:0}.menupro li:hover{transition:0s;transition-delay:0s}.menupro ul,.menupro ul,.menupro ul:hover,.menupro ul:hover{transition:0s;transition-delay:.5s}.menupro hr{border:1px solid !important;height:0 !important;color:#333 !important;background-color:#333 !important;margin:0;padding:0}.menupro a{padding:4px 10px;display:block;text-align:left;white-space:nowrap}.menupro :hover{background-color:#0b86bf}.menupro li{float:left;position:relative}.menupro li :hover,.menupro li :active{background-color:#0b86bf}.menupro li:hover>ul,.menupro li:focus-within>ul{opacity:1;visibility:visible;transition-delay:visibility 0s}.menupro li>span.icon{position:absolute;left:5px;top:5px;width:13px;height:auto;filter:invert(0.5)}.menupro li>span.arrow:before{content:"›";position:absolute;right:5px;top:0;font-size:1.5em;line-height:1em}.menupro li>ul{position:absolute;width:auto;float:left;opacity:0;visibility:hidden;transition-delay:visibility 0s;box-shadow:0 8px 8px #000;padding:0}.menupro li>ul li{float:left;position:relative;width:100%;padding:0}.menupro li>ul li:hover>ul,.menupro li>ul li:focus-within>ul{opacity:1;pointer-events:auto}.menupro li>ul li:not(:visible){pointer-events:none}.menupro li>ul li>ul{position:absolute;margin:0 auto;top:0px;left:99%}.menupro li>ul li a{padding:4px 20px 4px 30px}',""]);const c=a},601:()=>{},621:(e,n,r)=>{"use strict";r.r(n),r(822),menupro.start=e=>{const{element:n,name:r=e.name||"menupro"}=e;let t,o;const i=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"."+r;e?.map((e=>{e.name&&(t=$(`<li><a>${e.name}</a></li>`),t.appendTo(n),t.on("click",(function(){new Function(e.onclick)()}))),""===e.name&&(t=$("<hr/>").appendTo(n)),n!="."+r&&(e.icon&&$(`<span class='icon'>${e.icon}</span>`).appendTo(t),e.sub?.length>0&&$("<span class='arrow'></span>").appendTo(t)),e.sub?.length>0&&(o=$("<ul></ul>").appendTo(t)),e.sub?.length>0&&i(e.sub,o)}))};setTimeout((()=>{$("."+r).length>1||($(`<ul class="${r}"></ul>`).appendTo(n),i(e.nav))}))}},659:e=>{"use strict";var n={};e.exports=function(e,r){var t=function(e){if(void 0===n[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}n[e]=r}return n[e]}(e);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(r)}},677:(e,n,r)=>{"use strict";globalThis.menupro||globalThis.menupro||(globalThis.menupro={},Object.defineProperty(globalThis,"menupro",{value:{},writable:!1,configurable:!1,enumerable:!1}),r(601),r(853),r(621),r(106))},822:(e,n,r)=>{"use strict";var t=r(72),o=r.n(t),i=r(825),a=r.n(i),c=r(659),l=r.n(c),u=r(56),d=r.n(u),s=r(540),p=r.n(s),f=r(113),h=r.n(f),m=r(561),v={};v.styleTagTransform=h(),v.setAttributes=d(),v.insert=l().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=p();var g=o()(m.default,v);if(!m.default.locals||e.hot.invalidate){var y=!m.default.locals,b=y?m:m.default.locals;e.hot.accept(561,(n=>{m=r(561),function(e,n,r){if(!e&&n||e&&!n)return!1;var t;for(t in e)if((!r||"default"!==t)&&e[t]!==n[t])return!1;for(t in n)if(!(r&&"default"===t||e[t]))return!1;return!0}(b,y?m:m.default.locals,y)?(b=y?m:m.default.locals,g(m.default)):e.hot.invalidate()}))}e.hot.dispose((function(){g()})),m.default&&m.default.locals&&m.default.locals},825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(r){!function(e,n,r){var t="";r.supports&&(t+="@supports (".concat(r.supports,") {")),r.media&&(t+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(t+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),t+=r.css,o&&(t+="}"),r.media&&(t+="}"),r.supports&&(t+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),n.styleTagTransform(t,e,n.options)}(n,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},853:()=>{$=globalThis.$||{},jQuery=globalThis.jQuery||{}}},t={};function o(e){var n=t[e];if(void 0!==n){if(void 0!==n.error)throw n.error;return n.exports}var i=t[e]={id:e,exports:{}};try{var a={id:e,module:i,factory:r[e],require:o};o.i.forEach((function(e){e(a)})),i=a.module,a.factory.call(i.exports,i,i.exports,a.require)}catch(e){throw i.error=e,e}return i.exports}o.m=r,o.c=t,o.i=[],o.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return o.d(n,{a:n}),n},o.d=(e,n)=>{for(var r in n)o.o(n,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o.hu=e=>e+"."+o.h()+".hot-update.js",o.hmrF=()=>"index."+o.h()+".hot-update.json",o.h=()=>"48fb1d26f8136f56c9de",o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),e={},n="menupro:",o.l=(r,t,i,a)=>{if(e[r])e[r].push(t);else{var c,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),d=0;d<u.length;d++){var s=u[d];if(s.getAttribute("src")==r||s.getAttribute("data-webpack")==n+i){c=s;break}}c||(l=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,o.nc&&c.setAttribute("nonce",o.nc),c.setAttribute("data-webpack",n+i),c.src=r),e[r]=[t];var p=(n,t)=>{c.onerror=c.onload=null,clearTimeout(f);var o=e[r];if(delete e[r],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(t))),n)return n(t)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),l&&document.head.appendChild(c)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e,n,r,t={},i=o.c,a=[],c=[],l="idle",u=0,d=[];function s(e){l=e;for(var n=[],r=0;r<c.length;r++)n[r]=c[r].call(null,e);return Promise.all(n).then((function(){}))}function p(){0==--u&&s("ready").then((function(){if(0===u){var e=d;d=[];for(var n=0;n<e.length;n++)e[n]()}}))}function f(e){if("idle"!==l)throw new Error("check() is only allowed in idle status");return s("check").then(o.hmrM).then((function(r){return r?s("prepare").then((function(){var t=[];return n=[],Promise.all(Object.keys(o.hmrC).reduce((function(e,i){return o.hmrC[i](r.c,r.r,r.m,e,n,t),e}),[])).then((function(){return n=function(){return e?m(e):s("ready").then((function(){return t}))},0===u?n():new Promise((function(e){d.push((function(){e(n())}))}));var n}))})):s(v()?"ready":"idle").then((function(){return null}))}))}function h(e){return"ready"!==l?Promise.resolve().then((function(){throw new Error("apply() is only allowed in ready status (state: "+l+")")})):m(e)}function m(e){e=e||{},v();var t=n.map((function(n){return n(e)}));n=void 0;var o=t.map((function(e){return e.error})).filter(Boolean);if(o.length>0)return s("abort").then((function(){throw o[0]}));var i=s("dispose");t.forEach((function(e){e.dispose&&e.dispose()}));var a,c=s("apply"),l=function(e){a||(a=e)},u=[];return Promise.all(t.filter((function(e){return e.apply})).map((function(e){return e.apply(l)}))).then((function(e){e.forEach((function(e){if(e)for(var n=0;n<e.length;n++)u.push(e[n])}))})).then((function(){return Promise.all([i,c]).then((function(){return a?s("fail").then((function(){throw a})):r?m(e).then((function(e){return u.forEach((function(n){e.indexOf(n)<0&&e.push(n)})),e})):s("idle").then((function(){return u}))}))}))}function v(){if(r)return n||(n=[]),Object.keys(o.hmrI).forEach((function(e){r.forEach((function(r){o.hmrI[e](r,n)}))})),r=void 0,!0}o.hmrD=t,o.i.push((function(d){var m,v,g,y,b=d.module,w=function(n,r){var t=i[r];if(!t)return n;var o=function(o){if(t.hot.active){if(i[o]){var c=i[o].parents;-1===c.indexOf(r)&&c.push(r)}else a=[r],e=o;-1===t.children.indexOf(o)&&t.children.push(o)}else console.warn("[HMR] unexpected require("+o+") from disposed module "+r),a=[];return n(o)},c=function(e){return{configurable:!0,enumerable:!0,get:function(){return n[e]},set:function(r){n[e]=r}}};for(var d in n)Object.prototype.hasOwnProperty.call(n,d)&&"e"!==d&&Object.defineProperty(o,d,c(d));return o.e=function(e,r){return function(e){switch(l){case"ready":s("prepare");case"prepare":return u++,e.then(p,p),e;default:return e}}(n.e(e,r))},o}(d.require,d.id);b.hot=(m=d.id,v=b,y={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:g=e!==m,_requireSelf:function(){a=v.parents.slice(),e=g?void 0:m,o(m)},active:!0,accept:function(e,n,r){if(void 0===e)y._selfAccepted=!0;else if("function"==typeof e)y._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var t=0;t<e.length;t++)y._acceptedDependencies[e[t]]=n||function(){},y._acceptedErrorHandlers[e[t]]=r;else y._acceptedDependencies[e]=n||function(){},y._acceptedErrorHandlers[e]=r},decline:function(e){if(void 0===e)y._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var n=0;n<e.length;n++)y._declinedDependencies[e[n]]=!0;else y._declinedDependencies[e]=!0},dispose:function(e){y._disposeHandlers.push(e)},addDisposeHandler:function(e){y._disposeHandlers.push(e)},removeDisposeHandler:function(e){var n=y._disposeHandlers.indexOf(e);n>=0&&y._disposeHandlers.splice(n,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":n=[],Object.keys(o.hmrI).forEach((function(e){o.hmrI[e](m,n)})),s("ready");break;case"ready":Object.keys(o.hmrI).forEach((function(e){o.hmrI[e](m,n)}));break;case"prepare":case"check":case"dispose":case"apply":(r=r||[]).push(m)}},check:f,apply:h,status:function(e){if(!e)return l;c.push(e)},addStatusHandler:function(e){c.push(e)},removeStatusHandler:function(e){var n=c.indexOf(e);n>=0&&c.splice(n,1)},data:t[m]},e=void 0,y),b.parents=a,b.children=[],a=[],d.require=w})),o.hmrC={},o.hmrI={}})(),o.p="/",(()=>{var e,n,r,t,i,a=o.hmrS_jsonp=o.hmrS_jsonp||{57:0},c={};function l(n,r){return e=r,new Promise(((e,r)=>{c[n]=e;var t=o.p+o.hu(n),i=new Error;o.l(t,(e=>{if(c[n]){c[n]=void 0;var t=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;i.message="Loading hot update chunk "+n+" failed.\n("+t+": "+o+")",i.name="ChunkLoadError",i.type=t,i.request=o,r(i)}}))}))}function u(e){function c(e){for(var n=[e],r={},t=n.map((function(e){return{chain:[e],id:e}}));t.length>0;){var i=t.pop(),a=i.id,c=i.chain,u=o.c[a];if(u&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:c,moduleId:a};if(u.hot._main)return{type:"unaccepted",chain:c,moduleId:a};for(var d=0;d<u.parents.length;d++){var s=u.parents[d],p=o.c[s];if(p){if(p.hot._declinedDependencies[a])return{type:"declined",chain:c.concat([s]),moduleId:a,parentId:s};-1===n.indexOf(s)&&(p.hot._acceptedDependencies[a]?(r[s]||(r[s]=[]),l(r[s],[a])):(delete r[s],n.push(s),t.push({chain:c.concat([s]),id:s})))}}}}return{type:"accepted",moduleId:e,outdatedModules:n,outdatedDependencies:r}}function l(e,n){for(var r=0;r<n.length;r++){var t=n[r];-1===e.indexOf(t)&&e.push(t)}}o.f&&delete o.f.jsonpHmr,n=void 0;var u={},d=[],s={},p=function(e){console.warn("[HMR] unexpected require("+e.id+") to disposed module")};for(var f in r)if(o.o(r,f)){var h=r[f],m=h?c(f):{type:"disposed",moduleId:f},v=!1,g=!1,y=!1,b="";switch(m.chain&&(b="\nUpdate propagation: "+m.chain.join(" -> ")),m.type){case"self-declined":e.onDeclined&&e.onDeclined(m),e.ignoreDeclined||(v=new Error("Aborted because of self decline: "+m.moduleId+b));break;case"declined":e.onDeclined&&e.onDeclined(m),e.ignoreDeclined||(v=new Error("Aborted because of declined dependency: "+m.moduleId+" in "+m.parentId+b));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(m),e.ignoreUnaccepted||(v=new Error("Aborted because "+f+" is not accepted"+b));break;case"accepted":e.onAccepted&&e.onAccepted(m),g=!0;break;case"disposed":e.onDisposed&&e.onDisposed(m),y=!0;break;default:throw new Error("Unexception type "+m.type)}if(v)return{error:v};if(g)for(f in s[f]=h,l(d,m.outdatedModules),m.outdatedDependencies)o.o(m.outdatedDependencies,f)&&(u[f]||(u[f]=[]),l(u[f],m.outdatedDependencies[f]));y&&(l(d,[m.moduleId]),s[f]=p)}r=void 0;for(var w,E=[],x=0;x<d.length;x++){var _=d[x],I=o.c[_];I&&(I.hot._selfAccepted||I.hot._main)&&s[_]!==p&&!I.hot._selfInvalidated&&E.push({module:_,require:I.hot._requireSelf,errorHandler:I.hot._selfAccepted})}return{dispose:function(){var e;t.forEach((function(e){delete a[e]})),t=void 0;for(var n,r=d.slice();r.length>0;){var i=r.pop(),c=o.c[i];if(c){var l={},s=c.hot._disposeHandlers;for(x=0;x<s.length;x++)s[x].call(null,l);for(o.hmrD[i]=l,c.hot.active=!1,delete o.c[i],delete u[i],x=0;x<c.children.length;x++){var p=o.c[c.children[x]];p&&(e=p.parents.indexOf(i))>=0&&p.parents.splice(e,1)}}}for(var f in u)if(o.o(u,f)&&(c=o.c[f]))for(w=u[f],x=0;x<w.length;x++)n=w[x],(e=c.children.indexOf(n))>=0&&c.children.splice(e,1)},apply:function(n){var r=[];for(var t in s)o.o(s,t)&&(o.m[t]=s[t]);for(var a=0;a<i.length;a++)i[a](o);for(var c in u)if(o.o(u,c)){var l=o.c[c];if(l){w=u[c];for(var p=[],f=[],h=[],m=0;m<w.length;m++){var v=w[m],g=l.hot._acceptedDependencies[v],y=l.hot._acceptedErrorHandlers[v];if(g){if(-1!==p.indexOf(g))continue;p.push(g),f.push(y),h.push(v)}}for(var b=0;b<p.length;b++){var x;try{x=p[b].call(null,w)}catch(r){if("function"==typeof f[b])try{f[b](r,{moduleId:c,dependencyId:h[b]})}catch(t){e.onErrored&&e.onErrored({type:"accept-error-handler-errored",moduleId:c,dependencyId:h[b],error:t,originalError:r}),e.ignoreErrored||(n(t),n(r))}else e.onErrored&&e.onErrored({type:"accept-errored",moduleId:c,dependencyId:h[b],error:r}),e.ignoreErrored||n(r)}x&&"function"==typeof x.then&&r.push(x)}}}return Promise.all(r).then((function(){for(var r=0;r<E.length;r++){var t=E[r],i=t.module;try{t.require(i)}catch(r){if("function"==typeof t.errorHandler)try{t.errorHandler(r,{moduleId:i,module:o.c[i]})}catch(t){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:i,error:t,originalError:r}),e.ignoreErrored||(n(t),n(r))}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:i,error:r}),e.ignoreErrored||n(r)}}})).then((function(){return d}))}}}self.webpackHotUpdatemenupro=(n,t,a)=>{for(var l in t)o.o(t,l)&&(r[l]=t[l],e&&e.push(l));a&&i.push(a),c[n]&&(c[n](),c[n]=void 0)},o.hmrI.jsonp=function(e,n){r||(r={},i=[],t=[],n.push(u)),o.o(r,e)||(r[e]=o.m[e])},o.hmrC.jsonp=function(e,c,d,s,p,f){p.push(u),n={},t=c,r=d.reduce((function(e,n){return e[n]=!1,e}),{}),i=[],e.forEach((function(e){o.o(a,e)&&void 0!==a[e]?(s.push(l(e,f)),n[e]=!0):n[e]=!1})),o.f&&(o.f.jsonpHmr=function(e,r){n&&o.o(n,e)&&!n[e]&&(r.push(l(e)),n[e]=!0)})},o.hmrM=()=>{if("undefined"==typeof fetch)throw new Error("No browser support: need fetch API");return fetch(o.p+o.hmrF()).then((e=>{if(404!==e.status){if(!e.ok)throw new Error("Failed to fetch update manifest "+e.statusText);return e.json()}}))}})(),o.nc=void 0,o(677)})();
1
+ (()=>{var e,n,r={50:e=>{"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var r="",t=void 0!==n[5];return n[4]&&(r+="@supports (".concat(n[4],") {")),n[2]&&(r+="@media ".concat(n[2]," {")),t&&(r+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),r+=e(n),t&&(r+="}"),n[2]&&(r+="}"),n[4]&&(r+="}"),r})).join("")},n.i=function(e,r,t,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(t)for(var c=0;c<this.length;c++){var u=this[c][0];null!=u&&(a[u]=!0)}for(var l=0;l<e.length;l++){var d=[].concat(e[l]);t&&a[d[0]]||(void 0!==i&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=i),r&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=r):d[2]=r),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),n.push(d))}},n}},56:(e,n,r)=>{"use strict";e.exports=function(e){var n=r.nc;n&&e.setAttribute("nonce",n)}},72:e=>{"use strict";var n=[];function r(e){for(var r=-1,t=0;t<n.length;t++)if(n[t].identifier===e){r=t;break}return r}function t(e,t){for(var i={},a=[],c=0;c<e.length;c++){var u=e[c],l=t.base?u[0]+t.base:u[0],d=i[l]||0,s="".concat(l," ").concat(d);i[l]=d+1;var p=r(s),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)n[p].references++,n[p].updater(f);else{var h=o(f,t);t.byIndex=c,n.splice(c,0,{identifier:s,updater:h,references:1})}a.push(s)}return a}function o(e,n){var r=n.domAPI(n);return r.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;r.update(e=n)}else r.remove()}}e.exports=function(e,o){var i=t(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var c=r(i[a]);n[c].references--}for(var u=t(e,o),l=0;l<i.length;l++){var d=r(i[l]);0===n[d].references&&(n[d].updater(),n.splice(d,1))}i=u}}},106:()=>{Object.defineProperty(menupro,"credits",{value:function(e){console.groupCollapsed("%c".concat(e.name," v").concat(e.version,"%c"),"color:orange",""),console.debug("%c".concat(e.name," v").concat(e.version,"%c by Dario Passariello started"),"color:orange",""),console.debug("%cType ".concat(e.name," in this console to see it"),"color:gray",""),console.debug("name: %c"+e.name,"color:orange",""),console.debug("version: %c"+e.version,"color:orange",""),console.debug("description: %c"+e.description,"color:orange",""),console.debug("license: %c"+e.license,"color:orange",""),console.debug("author: %c"+e.author.name,"color:orange",""),console.debug("email: %c"+e.author.email,"color:orange",""),console.groupEnd()},writable:!1,configurable:!1,enumerable:!1})},113:e=>{"use strict";e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},329:e=>{"use strict";e.exports=function(e){return e[1]}},540:e=>{"use strict";e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},561:(e,n,r)=>{"use strict";r.r(n),r.d(n,{default:()=>c});var t=r(329),o=r.n(t),i=r(50),a=r.n(i)()(o());a.push([e.id,'.menupro{position:relative;margin:0;padding:0}.menupro ul,.menupro li,.menupro ul{background-color:#000;list-style:none;margin:0;padding:0}.menupro li:hover{transition:0s;transition-delay:0s}.menupro ul,.menupro ul,.menupro ul:hover,.menupro ul:hover{transition:0s;transition-delay:.5s}.menupro hr{border:1px solid !important;height:0 !important;color:#333 !important;background-color:#333 !important;margin:0;padding:0}.menupro a{padding:4px 10px;display:block;text-align:left;white-space:nowrap}.menupro :hover{background-color:#0b86bf}.menupro li{float:left;position:relative}.menupro li :hover,.menupro li :active{background-color:#0b86bf}.menupro li:hover>ul,.menupro li:focus-within>ul{opacity:1;visibility:visible;transition-delay:visibility 0s}.menupro li>span.icon{position:absolute;left:5px;top:5px;width:13px;height:auto;filter:invert(0.5)}.menupro li>span.arrow:before{content:"›";position:absolute;right:5px;top:0;font-size:1.5em;line-height:1em}.menupro li>ul{position:absolute;width:auto;float:left;opacity:0;visibility:hidden;transition-delay:visibility 0s;box-shadow:0 8px 8px #000;padding:0}.menupro li>ul li{float:left;position:relative;width:100%;padding:0}.menupro li>ul li:hover>ul,.menupro li>ul li:focus-within>ul{opacity:1;pointer-events:auto}.menupro li>ul li:not(:visible){pointer-events:none}.menupro li>ul li>ul{position:absolute;margin:0 auto;top:0px;left:99%}.menupro li>ul li a{padding:4px 20px 4px 30px}',""]);const c=a},601:()=>{},621:(e,n,r)=>{"use strict";r.r(n),r(822),menupro.start=function(e){var n,r,t=e.element,o=e.name,i=void 0===o?e.name||"menupro":o,a=e.json,c=void 0===a?e.json||{}:a,u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"."+i;null==e||e.map((function(e){var o,a,c;e.name&&((n=$("<li><a>".concat(e.name,"</a></li>"))).appendTo(t),n.on("click",(function(){new Function(e.onclick)()}))),""===e.name&&(n=$("<hr/>").appendTo(t)),t!="."+i&&(e.icon&&$("<span class='icon'>".concat(e.icon,"</span>")).appendTo(n),(null===(c=e.sub)||void 0===c?void 0:c.length)>0&&$("<span class='arrow'></span>").appendTo(n)),(null===(o=e.sub)||void 0===o?void 0:o.length)>0&&(r=$("<ul></ul>").appendTo(n)),(null===(a=e.sub)||void 0===a?void 0:a.length)>0&&u(e.sub,r)}))};setTimeout((function(){$("."+i).length>1||($('<ul class="'.concat(i,'"></ul>')).appendTo(t),u(null==c?void 0:c.nav))}),200)}},659:e=>{"use strict";var n={};e.exports=function(e,r){var t=function(e){if(void 0===n[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}n[e]=r}return n[e]}(e);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(r)}},677:(e,n,r)=>{"use strict";globalThis.menupro||(Object.defineProperty(globalThis,"menupro",{value:{start:{}},writable:!1,configurable:!1,enumerable:!1}),r(601),r(853),r(621),r(106))},822:(e,n,r)=>{"use strict";var t=r(72),o=r.n(t),i=r(825),a=r.n(i),c=r(659),u=r.n(c),l=r(56),d=r.n(l),s=r(540),p=r.n(s),f=r(113),h=r.n(f),v=r(561),m={};m.styleTagTransform=h(),m.setAttributes=d(),m.insert=u().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p();var y=o()(v.default,m);if(!v.default.locals||e.hot.invalidate){var g=!v.default.locals,b=g?v:v.default.locals;e.hot.accept(561,(n=>{v=r(561),function(e,n,r){if(!e&&n||e&&!n)return!1;var t;for(t in e)if((!r||"default"!==t)&&e[t]!==n[t])return!1;for(t in n)if(!(r&&"default"===t||e[t]))return!1;return!0}(b,g?v:v.default.locals,g)?(b=g?v:v.default.locals,y(v.default)):e.hot.invalidate()}))}e.hot.dispose((function(){y()})),v.default&&v.default.locals&&v.default.locals},825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(r){!function(e,n,r){var t="";r.supports&&(t+="@supports (".concat(r.supports,") {")),r.media&&(t+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(t+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),t+=r.css,o&&(t+="}"),r.media&&(t+="}"),r.supports&&(t+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),n.styleTagTransform(t,e,n.options)}(n,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},853:()=>{$=globalThis.$||{},jQuery=globalThis.jQuery||{}}},t={};function o(e){var n=t[e];if(void 0!==n){if(void 0!==n.error)throw n.error;return n.exports}var i=t[e]={id:e,exports:{}};try{var a={id:e,module:i,factory:r[e],require:o};o.i.forEach((function(e){e(a)})),i=a.module,a.factory.call(i.exports,i,i.exports,a.require)}catch(e){throw i.error=e,e}return i.exports}o.m=r,o.c=t,o.i=[],o.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return o.d(n,{a:n}),n},o.d=(e,n)=>{for(var r in n)o.o(n,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o.hu=e=>e+"."+o.h()+".hot-update.js",o.hmrF=()=>"index."+o.h()+".hot-update.json",o.h=()=>"01dd7b52a7acc72f33bb",o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),e={},n="menupro:",o.l=(r,t,i,a)=>{if(e[r])e[r].push(t);else{var c,u;if(void 0!==i)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var s=l[d];if(s.getAttribute("src")==r||s.getAttribute("data-webpack")==n+i){c=s;break}}c||(u=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,o.nc&&c.setAttribute("nonce",o.nc),c.setAttribute("data-webpack",n+i),c.src=r),e[r]=[t];var p=(n,t)=>{c.onerror=c.onload=null,clearTimeout(f);var o=e[r];if(delete e[r],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(t))),n)return n(t)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),u&&document.head.appendChild(c)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e,n,r,t={},i=o.c,a=[],c=[],u="idle",l=0,d=[];function s(e){u=e;for(var n=[],r=0;r<c.length;r++)n[r]=c[r].call(null,e);return Promise.all(n).then((function(){}))}function p(){0==--l&&s("ready").then((function(){if(0===l){var e=d;d=[];for(var n=0;n<e.length;n++)e[n]()}}))}function f(e){if("idle"!==u)throw new Error("check() is only allowed in idle status");return s("check").then(o.hmrM).then((function(r){return r?s("prepare").then((function(){var t=[];return n=[],Promise.all(Object.keys(o.hmrC).reduce((function(e,i){return o.hmrC[i](r.c,r.r,r.m,e,n,t),e}),[])).then((function(){return n=function(){return e?v(e):s("ready").then((function(){return t}))},0===l?n():new Promise((function(e){d.push((function(){e(n())}))}));var n}))})):s(m()?"ready":"idle").then((function(){return null}))}))}function h(e){return"ready"!==u?Promise.resolve().then((function(){throw new Error("apply() is only allowed in ready status (state: "+u+")")})):v(e)}function v(e){e=e||{},m();var t=n.map((function(n){return n(e)}));n=void 0;var o=t.map((function(e){return e.error})).filter(Boolean);if(o.length>0)return s("abort").then((function(){throw o[0]}));var i=s("dispose");t.forEach((function(e){e.dispose&&e.dispose()}));var a,c=s("apply"),u=function(e){a||(a=e)},l=[];return Promise.all(t.filter((function(e){return e.apply})).map((function(e){return e.apply(u)}))).then((function(e){e.forEach((function(e){if(e)for(var n=0;n<e.length;n++)l.push(e[n])}))})).then((function(){return Promise.all([i,c]).then((function(){return a?s("fail").then((function(){throw a})):r?v(e).then((function(e){return l.forEach((function(n){e.indexOf(n)<0&&e.push(n)})),e})):s("idle").then((function(){return l}))}))}))}function m(){if(r)return n||(n=[]),Object.keys(o.hmrI).forEach((function(e){r.forEach((function(r){o.hmrI[e](r,n)}))})),r=void 0,!0}o.hmrD=t,o.i.push((function(d){var v,m,y,g,b=d.module,w=function(n,r){var t=i[r];if(!t)return n;var o=function(o){if(t.hot.active){if(i[o]){var c=i[o].parents;-1===c.indexOf(r)&&c.push(r)}else a=[r],e=o;-1===t.children.indexOf(o)&&t.children.push(o)}else console.warn("[HMR] unexpected require("+o+") from disposed module "+r),a=[];return n(o)},c=function(e){return{configurable:!0,enumerable:!0,get:function(){return n[e]},set:function(r){n[e]=r}}};for(var d in n)Object.prototype.hasOwnProperty.call(n,d)&&"e"!==d&&Object.defineProperty(o,d,c(d));return o.e=function(e,r){return function(e){switch(u){case"ready":s("prepare");case"prepare":return l++,e.then(p,p),e;default:return e}}(n.e(e,r))},o}(d.require,d.id);b.hot=(v=d.id,m=b,g={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:y=e!==v,_requireSelf:function(){a=m.parents.slice(),e=y?void 0:v,o(v)},active:!0,accept:function(e,n,r){if(void 0===e)g._selfAccepted=!0;else if("function"==typeof e)g._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var t=0;t<e.length;t++)g._acceptedDependencies[e[t]]=n||function(){},g._acceptedErrorHandlers[e[t]]=r;else g._acceptedDependencies[e]=n||function(){},g._acceptedErrorHandlers[e]=r},decline:function(e){if(void 0===e)g._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var n=0;n<e.length;n++)g._declinedDependencies[e[n]]=!0;else g._declinedDependencies[e]=!0},dispose:function(e){g._disposeHandlers.push(e)},addDisposeHandler:function(e){g._disposeHandlers.push(e)},removeDisposeHandler:function(e){var n=g._disposeHandlers.indexOf(e);n>=0&&g._disposeHandlers.splice(n,1)},invalidate:function(){switch(this._selfInvalidated=!0,u){case"idle":n=[],Object.keys(o.hmrI).forEach((function(e){o.hmrI[e](v,n)})),s("ready");break;case"ready":Object.keys(o.hmrI).forEach((function(e){o.hmrI[e](v,n)}));break;case"prepare":case"check":case"dispose":case"apply":(r=r||[]).push(v)}},check:f,apply:h,status:function(e){if(!e)return u;c.push(e)},addStatusHandler:function(e){c.push(e)},removeStatusHandler:function(e){var n=c.indexOf(e);n>=0&&c.splice(n,1)},data:t[v]},e=void 0,g),b.parents=a,b.children=[],a=[],d.require=w})),o.hmrC={},o.hmrI={}})(),o.p="/",(()=>{var e,n,r,t,i,a=o.hmrS_jsonp=o.hmrS_jsonp||{57:0},c={};function u(n,r){return e=r,new Promise(((e,r)=>{c[n]=e;var t=o.p+o.hu(n),i=new Error;o.l(t,(e=>{if(c[n]){c[n]=void 0;var t=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;i.message="Loading hot update chunk "+n+" failed.\n("+t+": "+o+")",i.name="ChunkLoadError",i.type=t,i.request=o,r(i)}}))}))}function l(e){function c(e){for(var n=[e],r={},t=n.map((function(e){return{chain:[e],id:e}}));t.length>0;){var i=t.pop(),a=i.id,c=i.chain,l=o.c[a];if(l&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:c,moduleId:a};if(l.hot._main)return{type:"unaccepted",chain:c,moduleId:a};for(var d=0;d<l.parents.length;d++){var s=l.parents[d],p=o.c[s];if(p){if(p.hot._declinedDependencies[a])return{type:"declined",chain:c.concat([s]),moduleId:a,parentId:s};-1===n.indexOf(s)&&(p.hot._acceptedDependencies[a]?(r[s]||(r[s]=[]),u(r[s],[a])):(delete r[s],n.push(s),t.push({chain:c.concat([s]),id:s})))}}}}return{type:"accepted",moduleId:e,outdatedModules:n,outdatedDependencies:r}}function u(e,n){for(var r=0;r<n.length;r++){var t=n[r];-1===e.indexOf(t)&&e.push(t)}}o.f&&delete o.f.jsonpHmr,n=void 0;var l={},d=[],s={},p=function(e){console.warn("[HMR] unexpected require("+e.id+") to disposed module")};for(var f in r)if(o.o(r,f)){var h=r[f],v=h?c(f):{type:"disposed",moduleId:f},m=!1,y=!1,g=!1,b="";switch(v.chain&&(b="\nUpdate propagation: "+v.chain.join(" -> ")),v.type){case"self-declined":e.onDeclined&&e.onDeclined(v),e.ignoreDeclined||(m=new Error("Aborted because of self decline: "+v.moduleId+b));break;case"declined":e.onDeclined&&e.onDeclined(v),e.ignoreDeclined||(m=new Error("Aborted because of declined dependency: "+v.moduleId+" in "+v.parentId+b));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(v),e.ignoreUnaccepted||(m=new Error("Aborted because "+f+" is not accepted"+b));break;case"accepted":e.onAccepted&&e.onAccepted(v),y=!0;break;case"disposed":e.onDisposed&&e.onDisposed(v),g=!0;break;default:throw new Error("Unexception type "+v.type)}if(m)return{error:m};if(y)for(f in s[f]=h,u(d,v.outdatedModules),v.outdatedDependencies)o.o(v.outdatedDependencies,f)&&(l[f]||(l[f]=[]),u(l[f],v.outdatedDependencies[f]));g&&(u(d,[v.moduleId]),s[f]=p)}r=void 0;for(var w,E=[],x=0;x<d.length;x++){var _=d[x],I=o.c[_];I&&(I.hot._selfAccepted||I.hot._main)&&s[_]!==p&&!I.hot._selfInvalidated&&E.push({module:_,require:I.hot._requireSelf,errorHandler:I.hot._selfAccepted})}return{dispose:function(){var e;t.forEach((function(e){delete a[e]})),t=void 0;for(var n,r=d.slice();r.length>0;){var i=r.pop(),c=o.c[i];if(c){var u={},s=c.hot._disposeHandlers;for(x=0;x<s.length;x++)s[x].call(null,u);for(o.hmrD[i]=u,c.hot.active=!1,delete o.c[i],delete l[i],x=0;x<c.children.length;x++){var p=o.c[c.children[x]];p&&(e=p.parents.indexOf(i))>=0&&p.parents.splice(e,1)}}}for(var f in l)if(o.o(l,f)&&(c=o.c[f]))for(w=l[f],x=0;x<w.length;x++)n=w[x],(e=c.children.indexOf(n))>=0&&c.children.splice(e,1)},apply:function(n){var r=[];for(var t in s)o.o(s,t)&&(o.m[t]=s[t]);for(var a=0;a<i.length;a++)i[a](o);for(var c in l)if(o.o(l,c)){var u=o.c[c];if(u){w=l[c];for(var p=[],f=[],h=[],v=0;v<w.length;v++){var m=w[v],y=u.hot._acceptedDependencies[m],g=u.hot._acceptedErrorHandlers[m];if(y){if(-1!==p.indexOf(y))continue;p.push(y),f.push(g),h.push(m)}}for(var b=0;b<p.length;b++){var x;try{x=p[b].call(null,w)}catch(r){if("function"==typeof f[b])try{f[b](r,{moduleId:c,dependencyId:h[b]})}catch(t){e.onErrored&&e.onErrored({type:"accept-error-handler-errored",moduleId:c,dependencyId:h[b],error:t,originalError:r}),e.ignoreErrored||(n(t),n(r))}else e.onErrored&&e.onErrored({type:"accept-errored",moduleId:c,dependencyId:h[b],error:r}),e.ignoreErrored||n(r)}x&&"function"==typeof x.then&&r.push(x)}}}return Promise.all(r).then((function(){for(var r=0;r<E.length;r++){var t=E[r],i=t.module;try{t.require(i)}catch(r){if("function"==typeof t.errorHandler)try{t.errorHandler(r,{moduleId:i,module:o.c[i]})}catch(t){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:i,error:t,originalError:r}),e.ignoreErrored||(n(t),n(r))}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:i,error:r}),e.ignoreErrored||n(r)}}})).then((function(){return d}))}}}self.webpackHotUpdatemenupro=(n,t,a)=>{for(var u in t)o.o(t,u)&&(r[u]=t[u],e&&e.push(u));a&&i.push(a),c[n]&&(c[n](),c[n]=void 0)},o.hmrI.jsonp=function(e,n){r||(r={},i=[],t=[],n.push(l)),o.o(r,e)||(r[e]=o.m[e])},o.hmrC.jsonp=function(e,c,d,s,p,f){p.push(l),n={},t=c,r=d.reduce((function(e,n){return e[n]=!1,e}),{}),i=[],e.forEach((function(e){o.o(a,e)&&void 0!==a[e]?(s.push(u(e,f)),n[e]=!0):n[e]=!1})),o.f&&(o.f.jsonpHmr=function(e,r){n&&o.o(n,e)&&!n[e]&&(r.push(u(e)),n[e]=!0)})},o.hmrM=()=>{if("undefined"==typeof fetch)throw new Error("No browser support: need fetch API");return fetch(o.p+o.hmrF()).then((e=>{if(404!==e.status){if(!e.ok)throw new Error("Failed to fetch update manifest "+e.statusText);return e.json()}}))}})(),o.nc=void 0,o(677)})();
package/package.json CHANGED
@@ -1,30 +1,31 @@
1
1
  {
2
2
  "name": "menupro",
3
- "displayName": "menupro",
4
- "version": "0.7.0",
5
3
  "description": "custom menu like OS by Dario Passariello",
4
+ "keywords": [
5
+ "layer",
6
+ "popup",
7
+ "modal",
8
+ "passariello",
9
+ "menupro"
10
+ ],
11
+ "version": "1.0.0",
6
12
  "copyright": "Dario Passariello",
7
13
  "license": "MIT",
8
- "port": 3002,
9
- "code": "wind",
10
14
  "folder": "/",
11
- "appPort": "",
12
- "logo": "",
13
15
  "deprecated": false,
14
16
  "preferGlobal": true,
15
17
  "target": "web",
16
- "targets": "web",
18
+ "homepage": "https://a51.dev/npm/menupro",
19
+ "main": "./index.js",
17
20
  "language": {
18
21
  "en": {}
19
22
  },
20
23
  "app": {
21
24
  "port": 3002,
22
- "code": "menupro",
25
+ "code": "wind",
23
26
  "name": "menupro",
24
27
  "type": "beta",
25
28
  "folder": "/",
26
- "appPort": "",
27
- "target": "web",
28
29
  "proxy": {
29
30
  "api": {
30
31
  "tst": "http://localhost:5003/",
@@ -42,19 +43,11 @@
42
43
  "info": {},
43
44
  "cdn": {}
44
45
  },
45
- "homepage": "https://github.com/passariello/menupro",
46
- "main": "./index.js",
47
46
  "author": {
48
47
  "name": "Dario Passariello",
49
48
  "url": "https://github.com/passariello/",
50
49
  "email": "dariopassariello@gmail.com"
51
50
  },
52
- "support": {
53
- "name": "Dario Passariello",
54
- "url": "https://github.com/passariello/",
55
- "email": "dariopassariello@gmail.com"
56
- },
57
- "company": {},
58
51
  "contributors": [
59
52
  {
60
53
  "name": "Dario Passariello",
@@ -65,44 +58,10 @@
65
58
  "email": "valeriacalascaglitta@gmail.com"
66
59
  }
67
60
  ],
68
- "workspaces": [
69
- "mcp"
70
- ],
71
61
  "typings": "./types/*",
72
62
  "globals": {
73
63
  "menupro": {}
74
64
  },
75
- "browserslist": {
76
- "production": [
77
- "last 2 Chrome major versions",
78
- "last 2 Firefox major versions",
79
- "last 2 Safari major versions",
80
- "last 2 Edge major versions",
81
- "last 2 Opera versions",
82
- "last 2 iOS major versions",
83
- "last 1 Explorer major version",
84
- "last 1 ChromeAndroid version",
85
- "last 1 UCAndroid version",
86
- "last 1 Samsung version",
87
- "last 1 OperaMini version",
88
- "Firefox ESR",
89
- ">0.2%",
90
- "not dead",
91
- "not op_mini all"
92
- ],
93
- "development": [
94
- "last 1 chrome version",
95
- "last 1 firefox version",
96
- "last 1 safari version"
97
- ]
98
- },
99
- "keywords": [
100
- "layer",
101
- "popup",
102
- "modal",
103
- "passariello",
104
- "menupro"
105
- ],
106
65
  "funding": [
107
66
  {
108
67
  "type": "patreon",
@@ -116,7 +75,7 @@
116
75
  "watch": "webpack --watch --progress --color --mode production --config webpack.ts",
117
76
  "build": "webpack --progress --color --mode production --config webpack.ts",
118
77
  "-----------": "",
119
- "npm publish": "npm run build && cd dist && ls -al && npm publish"
78
+ "npm:publish": "npm run build && cd dist && ls -al && npm publish"
120
79
  },
121
80
  "engines": {
122
81
  "node": ">=18"
@@ -128,23 +87,23 @@
128
87
  "@babel/preset-react": "7.27.1",
129
88
  "@babel/preset-typescript": "7.27.1",
130
89
  "@babel/eslint-parser": "^7.28.4",
131
- "@eslint/js": "9.35.0",
90
+ "@eslint/js": "9.36.0",
132
91
  "@types/jest": "^30.0.0",
133
- "@types/node": "^24.3.1",
92
+ "@types/node": "^24.5.2",
134
93
  "@types/webpack-env": "1.18.8",
135
- "@typescript-eslint/eslint-plugin": "8.43.0",
136
- "@typescript-eslint/parser": "8.43.0",
94
+ "@typescript-eslint/eslint-plugin": "8.44.1",
95
+ "@typescript-eslint/parser": "8.44.1",
137
96
  "babel-loader": "10.0.0",
138
97
  "copy-webpack-plugin": "^13.0.1",
139
- "eslint": "9.35.0",
98
+ "eslint": "9.36.0",
140
99
  "css-loader": "7.1.2",
141
100
  "file-loader": "6.2.0",
142
101
  "jquery": "3.7.1",
143
102
  "ts-loader": "^9.5.4",
144
- "ts-jest": "29.4.1",
103
+ "ts-jest": "29.4.4",
145
104
  "ts-node": "10.9.2",
146
105
  "tslib": "^2.8.1",
147
- "sass": "^1.92.1",
106
+ "sass": "^1.93.2",
148
107
  "sass-loader": "^16.0.5",
149
108
  "style-loader": "^4.0.0",
150
109
  "terser-webpack-plugin": "^5.3.14",
@@ -9,5 +9,4 @@ declare module 'menupro' {
9
9
  }
10
10
 
11
11
  type menupro = {}
12
-
13
12
  declare var menupro: any