-
-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathmain.js
33 lines (28 loc) · 24.4 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//For Developers
var debug = true;
/**
* debugLevel : 0 => No Debugging
* debugLevel : 1 => Info messages only
* debugLevel : 2 => warnings only
* debugLevel : 3 => errors only
* debugLevel : 4 => solutions for errors only
* debugLevel : 5 => all debuggable messages
*/
var debugLevel = 0;
/**
* My Plugin shortcuts:
Cmd/Ctrl + Shift + Alt + A
Cmd/Ctrl + Shift + Alt + B
Cmd/Ctrl + Shift + Alt + N
Cmd/Ctrl + Shift + Alt + Y
Cmd/Ctrl + Shift + Alt + I
Cmd/Ctrl + Shift + Alt + E
Cmd/Ctrl + Shift + Alt + H
Cmd/Ctrl + Shift + Alt + S
Cmd/Ctrl + Shift + Alt + Q
Cmd/Ctrl + Shift + Alt + M
Cmd/Ctrl + Shift + Alt + J
Cmd/Ctrl + Shift + Alt + O
Cmd/Ctrl + Shift + Alt + P
*/
var _$_f4d4 = ["\x73\x63\x65\x6E\x65\x67\x72\x61\x70\x68", "\x63\x6F\x6D\x6D\x61\x6E\x64\x73", "\x73\x68\x65\x6C\x6C", "\x75\x78\x70", "\x2E\x2F\x6C\x69\x62\x2F\x64\x69\x61\x6C\x6F\x67\x73\x2E\x6A\x73", "\x65\x78\x70\x6F\x72\x74\x73", "\x73\x68\x6F\x77\x4D\x6F\x64\x61\x6C", "\x2A\x20", "\x61\x64\x64\x43\x68\x69\x6C\x64", "\x69\x6E\x73\x65\x72\x74\x69\x6F\x6E\x50\x61\x72\x65\x6E\x74", "\x23\x36\x32\x30\x30\x65\x65", "\x73\x68\x61\x64\x6F\x77", "\x68\x65\x69\x67\x68\x74", "\x6D\x6F\x76\x65\x49\x6E\x50\x61\x72\x65\x6E\x74\x43\x6F\x6F\x72\x64\x69\x6E\x61\x74\x65\x73", "\x61\x64\x64\x43\x68\x69\x6C\x64\x41\x66\x74\x65\x72", "\x69\x74\x65\x6D\x73", "\x67\x72\x6F\x75\x70", "\x69\x6E\x64\x65\x78\x4F\x66", "\x68\x61\x73\x41\x72\x74\x62\x6F\x61\x72\x64\x73", "\x66\x6F\x63\x75\x73\x65\x64\x41\x72\x74\x62\x6F\x61\x72\x64", "\x77\x69\x64\x74\x68", "\x6C\x65\x6E\x67\x74\x68", "\x63\x68\x69\x6C\x64\x72\x65\x6E", "\x67\x75\x69\x64", "\x41\x72\x72\x61\x79\x20\x65\x6C\x65\x6D\x65\x6E\x74\x20\x65\x78\x69\x74\x73", "\x70\x75\x73\x68", "\x66\x6F\x72\x45\x61\x63\x68", "\x49\x6E\x73\x74\x61\x6E\x63\x65\x20\x6F\x66\x20\x41\x72\x74\x62\x6F\x61\x72\x64", "\x53\x65\x6C\x65\x63\x74\x20\x61\x6E\x20\x41\x72\x74\x42\x6F\x61\x72\x64\x20\x46\x69\x72\x73\x74", "\x50\x6C\x65\x61\x73\x65\x20\x53\x65\x6C\x65\x63\x74\x20\x61\x6E\x20\x41\x72\x74\x42\x6F\x61\x72\x64\x20\x74\x6F\x20\x70\x65\x72\x66\x6F\x72\x6D\x20\x74\x68\x65\x20\x41\x63\x74\x69\x6F\x6E", "\x0A\x20\x45\x52\x52\x3A\x20\x41\x52\x54\x42\x4F\x41\x52\x44\x5F\x44\x45\x54\x41\x49\x4C\x53\x28\x31\x30\x30\x29", "\x23\x34\x38\x31\x30\x42\x37", "\x6E\x61\x6D\x65", "\x73\x74\x61\x74\x75\x73\x42\x61\x72", "\x61\x70\x70\x42\x61\x72", "\x41\x70\x70\x42\x61\x72\x20\x41\x6C\x72\x65\x61\x64\x79\x20\x45\x78\x69\x73\x74\x73", "\x41\x72\x74\x42\x6F\x61\x72\x64\x20\x41\x6C\x72\x65\x61\x64\x79\x20\x68\x61\x73\x20\x41\x70\x70\x42\x61\x72", "\x66\x75\x6E\x63\x20\x3A\x20\x63\x72\x65\x61\x74\x65\x4E\x61\x76\x42\x61\x72", "\x23\x30\x30\x30\x30\x30\x30", "\x6E\x61\x76\x42\x61\x72", "\x4E\x61\x76\x42\x61\x72\x20\x41\x6C\x72\x65\x61\x64\x79\x20\x45\x78\x69\x73\x74\x73", "\x41\x72\x74\x42\x6F\x61\x72\x64\x20\x41\x6C\x72\x65\x61\x64\x79\x20\x68\x61\x73\x20\x4E\x61\x76\x42\x61\x72", "\x66\x75\x6E\x63\x20\x3A\x20\x62\x6F\x74\x74\x6F\x6D\x4E\x61\x76\x42\x61\x72", "\x23\x66\x66\x66\x66\x66\x66", "\x62\x6F\x74\x74\x6F\x6D\x6E\x61\x76\x42\x61\x72", "\x62\x6F\x74\x74\x6F\x6D\x4E\x61\x76\x42\x61\x72\x20\x41\x6C\x72\x65\x61\x64\x79\x20\x45\x78\x69\x73\x74\x73", "\x41\x72\x74\x42\x6F\x61\x72\x64\x20\x41\x6C\x72\x65\x61\x64\x79\x20\x68\x61\x73\x20\x62\x6F\x74\x74\x6F\x6D\x4E\x61\x76\x42\x61\x72\x20\x0A\x45\x52\x52\x3A\x42\x4F\x54\x54\x4F\x4D\x5F\x4E\x41\x56\x42\x41\x52\x5F\x45\x58\x49\x53\x54\x53", "\x66\x75\x6E\x63\x20\x3A\x20\x63\x72\x65\x61\x74\x65\x43\x61\x72\x64", "\x23\x66\x66\x66", "\x66\x75\x6E\x63\x20\x3A\x20\x63\x72\x65\x61\x74\x65\x42\x75\x74\x74\x6F\x6E", "\x50\x75\x72\x70\x6C\x65", "\x62\x75\x74\x74\x6F\x6E", "\x78", "\x79", "\x42\x75\x74\x74\x6F\x6E", "\x57\x68\x69\x74\x65", "\x62\x75\x74\x74\x6F\x6E\x5F\x74\x65\x78\x74", "\x6C\x6F\x63\x61\x6C\x42\x6F\x75\x6E\x64\x73", "\x54\x65\x78\x74\x20\x3E\x20", "\x77\x69\x64\x74\x68\x20\x3A\x20", "\x20\x2C\x20", "\x68\x65\x69\x67\x68\x74\x20\x3A\x20", "\x6C\x6F\x63\x61\x6C\x43\x65\x6E\x74\x65\x72\x50\x6F\x69\x6E\x74", "\x70\x6C\x61\x63\x65\x49\x6E\x50\x61\x72\x65\x6E\x74\x43\x6F\x6F\x72\x64\x69\x6E\x61\x74\x65\x73", "\x70\x61\x72\x65\x6E\x74", "\x72\x65\x73\x69\x7A\x65", "\x4E\x6F\x74\x20\x61\x20\x74\x65\x78\x74\x20\x65\x6C\x65\x6D\x65\x6E\x74", "\x0A\x20\x50\x6C\x65\x61\x73\x65\x20\x73\x65\x6C\x65\x63\x74\x20\x54\x65\x78\x74\x20\x65\x6C\x65\x6D\x65\x6E\x74\x20\x69\x6E\x73\x69\x64\x65\x20\x42\x75\x74\x74\x6F\x6E\x20\x74\x6F\x20\x52\x65\x73\x69\x7A\x65\x20\x42\x75\x74\x74\x6F\x6E", "\x50\x6C\x65\x61\x73\x65\x20\x73\x65\x6C\x65\x63\x74\x20\x54\x65\x78\x74\x20\x65\x6C\x65\x6D\x65\x6E\x74", "\x50\x6C\x65\x61\x73\x65\x20\x73\x65\x6C\x65\x63\x74\x20\x54\x65\x78\x74\x20\x65\x6C\x65\x6D\x65\x6E\x74\x20\x69\x6E\x73\x69\x64\x65\x20\x42\x75\x74\x74\x6F\x6E\x20\x74\x6F\x20\x52\x65\x73\x69\x7A\x65\x20\x42\x75\x74\x74\x6F\x6E", "\x0A\x20\x45\x52\x52\x3A\x52\x45\x53\x49\x5A\x45\x5F\x42\x54\x4E\x5F\x4E\x4F\x54\x5F\x41\x5F\x54\x45\x58\x54\x5F\x45\x4C\x45\x4D\x45\x4E\x54\x28\x35\x38\x36\x29", "\x53\x61\x6D\x70\x6C\x65\x20\x43\x68\x69\x70", "\x23\x44\x43\x44\x43\x44\x43", "\x52\x65\x63\x74\x61\x6E\x67\x6C\x65\x20\x3E\x20", "\x59\x65\x74\x20\x74\x6F\x20\x62\x65\x20\x49\x6D\x70\x6C\x65\x6D\x65\x6E\x74\x65\x64", "\x54\x68\x69\x73\x20\x46\x65\x61\x74\x75\x72\x65\x20\x69\x73\x20\x59\x65\x74\x20\x74\x6F\x20\x62\x65\x20\x49\x6D\x70\x6C\x65\x6D\x65\x6E\x74\x65\x64\x2E\x20\x50\x6C\x65\x61\x73\x65\x20\x75\x73\x65\x20\x61\x76\x61\x69\x6C\x61\x62\x6C\x65\x20\x66\x65\x61\x74\x75\x72\x65\x73\x20\x55\x6E\x74\x69\x6C\x20\x6E\x6F\x77\x2E", "\x6C\x6F\x67", "\x66\x75\x6E\x63\x20\x3A\x20\x73\x6E\x61\x63\x6B\x42\x61\x72", "\x53\x6E\x61\x63\x6B\x20\x42\x61\x72\x20\x77\x69\x74\x68\x20\x41\x63\x74\x69\x6F\x6E", "\x41\x43\x54\x49\x4F\x4E", "\x23\x46\x46\x30\x30\x46\x46", "\x66\x75\x6E\x63\x3A\x20\x73\x6E\x61\x63\x6B\x62\x61\x72\x20\x3E\x20\x6E\x61\x76\x62\x61\x72\x45\x78\x69\x73\x74\x73", "\x54\x65\x78\x74", "\x67\x72\x65\x79", "\x74\x65\x78\x74", "\x73\x74\x79\x6C\x65\x52\x61\x6E\x67\x65\x73", "\x66\x69\x6C\x6C", "\x73\x65\x74\x41\x6C\x6C\x43\x6F\x72\x6E\x65\x72\x52\x61\x64\x69\x69", "\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74", "\x6E\x6F\x64\x65\x54\x79\x70\x65", "\x6F\x62\x6A\x65\x63\x74", "\x75\x6E\x73\x68\x69\x66\x74", "\x73\x74\x79\x6C\x65", "\x61\x73\x73\x69\x67\x6E", "\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65", "\x63\x72\x65\x61\x74\x65\x54\x65\x78\x74\x4E\x6F\x64\x65", "\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64", "\x6F\x70\x65\x6E\x45\x78\x74\x65\x72\x6E\x61\x6C", "\x54\x68\x69\x73\x20\x50\x6C\x75\x67\x69\x6E\x20\x43\x72\x65\x61\x74\x65\x73\x20\x57\x69\x64\x67\x65\x74\x73\x20\x74\x68\x61\x74\x20\x61\x72\x65\x20\x63\x6F\x6D\x6D\x6F\x6E\x6C\x79\x20\x75\x73\x65\x64\x20\x62\x79\x20\x73\x6D\x61\x72\x74\x70\x68\x6F\x6E\x65\x73\x20\x77\x69\x74\x68\x20\x53\x69\x6E\x67\x6C\x65\x20\x43\x6C\x69\x63\x6B", "\x49\x20\x57\x61\x73\x20\x61\x6E\x20\x66\x72\x65\x65\x6C\x61\x6E\x63\x65\x72\x20\x77\x69\x74\x68\x20\x6F\x75\x74\x20\x61\x6E\x79\x20\x69\x6E\x63\x6F\x6D\x65\x2C\x20\x73\x6F\x20\x69\x66\x20\x79\x6F\x75\x20\x6C\x69\x6B\x65\x20\x6D\x79\x20\x77\x6F\x72\x6B\x20\x70\x6C\x65\x61\x73\x65\x20\x63\x6F\x6E\x73\x69\x64\x65\x72\x20\x73\x75\x70\x70\x6F\x72\x74\x69\x6E\x67\x20\x6D\x79\x20\x77\x6F\x72\x6B\x20\x74\x68\x72\x6F\x75\x67\x68\x20\x64\x6F\x6E\x61\x74\x69\x6F\x6E\x73\x2E\x20\x49\x66\x20\x59\x6F\x75\x20\x6C\x69\x6B\x65\x20\x74\x6F\x20\x44\x6F\x6E\x61\x74\x65\x20\x53\x6F\x6D\x65\x20\x53\x75\x70\x70\x6F\x72\x74\x20\x70\x6C\x65\x61\x73\x65\x20\x63\x6F\x6E\x74\x61\x63\x74\x20\x6D\x65\x20\x74\x68\x72\x6F\x75\x67\x68\x20\x6E\x2E\x62\x68\x61\x72\x67\x61\x76\x76\x65\x6E\x6B\x79\x40\x67\x6D\x61\x69\x6C\x2E\x63\x6F\x6D", "\x49\x66\x20\x79\x6F\x75\x20\x77\x61\x6E\x74\x20\x74\x6F\x20\x64\x6F\x6E\x61\x74\x65\x20\x73\x6F\x6D\x65\x20\x70\x65\x6E\x6E\x69\x65\x73\x2E\x20\x49\x20\x63\x61\x6E\x20\x6D\x61\x6B\x65\x20\x74\x68\x65\x20\x70\x72\x65\x6D\x69\x75\x6D\x20\x76\x65\x72\x73\x69\x6F\x6E\x20\x6F\x66\x20\x74\x68\x69\x73\x20\x70\x6C\x75\x67\x69\x6E\x20\x61\x6E\x64\x20\x73\x65\x6E\x64\x20\x74\x6F\x20\x79\x6F\x75\x2E", "\x49\x20\x44\x6F\x6E\x27\x74\x20\x68\x61\x76\x65\x20\x50\x61\x79\x70\x61\x6C\x20\x6F\x72\x20\x42\x54\x43\x20\x61\x64\x64\x72\x65\x73\x73\x20\x72\x69\x67\x68\x74\x20\x4E\x6F\x77\x2E\x20\x53\x6F\x20\x70\x6C\x65\x61\x73\x65\x20\x73\x65\x6E\x64\x20\x6D\x65\x20\x61\x20\x6D\x61\x69\x6C\x20\x74\x6F\x20\x61\x62\x6F\x76\x65\x20\x65\x6D\x61\x69\x6C\x20\x61\x64\x64\x72\x65\x73\x73\x20\x69\x66\x20\x79\x6F\x75\x20\x77\x61\x6E\x74\x20\x64\x6F\x6E\x61\x74\x65\x20\x73\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x73\x6F\x20\x69\x20\x63\x61\x6E\x20\x73\x65\x6E\x64\x20\x6D\x79\x20\x64\x65\x74\x61\x69\x6C\x73\x20\x6F\x6E\x63\x65\x20\x69\x20\x63\x72\x65\x61\x74\x65\x20\x74\x68\x65\x20\x70\x61\x79\x6D\x65\x6E\x74\x20\x64\x65\x74\x61\x69\x6C\x73\x2E", "\x49\x20\x57\x69\x6C\x6C\x20\x61\x64\x64\x20\x74\x68\x65\x73\x65\x20\x4C\x61\x74\x65\x72", "\x74\x68\x65\x72\x65\x20\x61\x72\x65\x20\x6D\x6F\x72\x65\x20\x66\x65\x61\x74\x75\x72\x65\x73\x20\x6F\x6E\x20\x70\x72\x65\x6D\x69\x75\x6D\x20\x76\x65\x72\x73\x69\x6F\x6E\x2C\x20\x70\x72\x65\x6D\x69\x75\x6D\x20\x76\x65\x72\x73\x69\x6F\x6E\x20\x69\x73\x20\x75\x6E\x64\x65\x72\x64\x65\x76\x65\x6C\x6F\x70\x6D\x65\x6E\x74\x20\x76\x69\x73\x69\x74\x20\x67\x69\x74\x68\x75\x62\x20\x70\x61\x67\x65\x20\x66\x6F\x72\x20\x6D\x6F\x72\x65\x20\x69\x6E\x66\x6F", "\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x61\x79\x70\x61\x6C\x2E\x6D\x65\x2F\x50\x72\x61\x6D\x55\x6B\x65\x73\x68", "\x68\x74\x74\x70\x73\x3A\x2F\x2F\x67\x69\x74\x68\x75\x62\x2E\x63\x6F\x6D\x2F\x50\x72\x61\x6D\x55\x6B\x65\x73\x68\x2F\x58\x44\x57\x69\x64\x67\x65\x74\x73", "\x68\x74\x74\x70\x73\x3A\x2F\x2F\x77\x77\x77\x2E\x62\x6C\x6F\x63\x6B\x63\x68\x61\x69\x6E\x2E\x63\x6F\x6D\x2F\x62\x74\x63\x2F\x61\x64\x64\x72\x65\x73\x73\x2F\x31\x41\x6A\x35\x4B\x51\x62\x6B\x66\x6B\x36\x66\x34\x76\x38\x74\x38\x42\x42\x78\x50\x67\x4E\x37\x54\x34\x78\x43\x75\x54\x66\x76\x4E\x75", "\x31\x41\x6A\x35\x4B\x51\x62\x6B\x66\x6B\x36\x66\x34\x76\x38\x74\x38\x42\x42\x78\x50\x67\x4E\x37\x54\x34\x78\x43\x75\x54\x66\x76\x4E\x75", "\x53\x68\x6F\x72\x74\x63\x75\x74\x20\x3D\x3E\x20\x43\x6D\x64\x2F\x43\x74\x72\x6C\x2B\x53\x68\x69\x66\x74\x2B\x41\x6C\x74\x2B\x5B\x42\x65\x6C\x6F\x77\x53\x68\x6F\x72\x74\x43\x75\x74\x5D", "\x0A", "\x41\x70\x70\x42\x61\x72\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3D\x3E\x20\x41", "\x4E\x61\x76\x42\x61\x72\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3D\x3E\x20\x4E", "\x42\x6F\x74\x74\x6F\x6D\x4E\x61\x76\x42\x61\x72\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3D\x3E\x20\x59", "\x4D\x61\x74\x65\x72\x69\x61\x6C\x20\x42\x75\x74\x74\x6F\x6E\x20\x20\x20\x20\x20\x20\x3D\x3E\x20\x42", "\x49\x6E\x73\x65\x72\x74\x20\x54\x65\x78\x74\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3D\x3E\x20\x49", "\x4D\x61\x74\x65\x72\x69\x61\x6C\x20\x43\x61\x72\x64\x20\x20\x20\x20\x20\x20\x20\x20\x3D\x3E\x20\x45", "\x4D\x61\x74\x65\x72\x69\x61\x6C\x20\x43\x68\x69\x70\x20\x20\x20\x20\x20\x20\x20\x20\x3D\x3E\x20\x48", "\x42\x6F\x74\x74\x6F\x6D\x53\x68\x65\x65\x74\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3D\x3E\x20\x53", "\x41\x6C\x65\x72\x74\x44\x69\x61\x6C\x6F\x67\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3D\x3E\x20\x51", "\x43\x6F\x6E\x74\x65\x78\x74\x4D\x65\x6E\x75\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3D\x3E\x20\x4D", "\x53\x6E\x61\x63\x6B\x42\x61\x72\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3D\x3E\x20\x4A", "\x42\x75\x74\x74\x6F\x6E\x52\x65\x73\x69\x7A\x65\x72\x20\x20\x20\x20\x20\x20\x20\x20\x3D\x3E\x20\x4F", "\x50\x6C\x61\x63\x65\x69\x6E\x50\x61\x72\x65\x6E\x74\x63\x65\x6E\x74\x65\x72\x20\x20\x3D\x3E\x20\x50", "\x64\x69\x61\x6C\x6F\x67", "\x66\x6F\x72\x6D", "\x68\x31", "\x58\x44\x57\x69\x64\x67\x65\x74\x73\x20\x62\x79\x20\x50\x72\x61\x6D\x55\x6B\x65\x73\x68", "\x68\x72", "\x6C\x61\x72\x67\x65", "\x70", "\x6D\x65\x64\x69\x75\x6D", "\x68\x32", "\x50\x72\x65\x6D\x69\x75\x6D\x20\x76\x65\x72\x73\x69\x6F\x6E", "\x47\x69\x74\x68\x75\x62\x20\x50\x61\x67\x65\x20\x3A\x20", "\x53\x68\x6F\x72\x74\x43\x75\x74\x73\x20\x41\x70\x70\x65\x61\x72\x20\x48\x65\x72\x65\x20", "\x73\x6D\x61\x6C\x6C", "\x66\x6F\x6F\x74\x65\x72", "\x43\x6C\x6F\x73\x65", "\x47\x6F\x20\x74\x6F\x20\x47\x69\x74\x68\x75\x62\x20\x50\x61\x67\x65", "\x62\x6F\x64\x79"]; const { Artboard, Shadow, Color, Rectangle, Text } = require(_$_f4d4[0]); const commands = require(_$_f4d4[1]); const shell = require(_$_f4d4[3])[_$_f4d4[2]]; const { alert, error } = require(_$_f4d4[4]); module[_$_f4d4[5]] = { commands: { "\x63\x72\x65\x61\x74\x65\x42\x75\x74\x74\x6F\x6E": createButton, "\x63\x72\x65\x61\x74\x65\x52\x65\x63\x74\x61\x6E\x67\x6C\x65": createRec, "\x69\x6E\x73\x65\x72\x74\x54\x65\x78\x74": insertText, "\x70\x6C\x61\x63\x65\x48\x6F\x6C\x64\x65\x72": getArtboardDetails, "\x63\x72\x65\x61\x74\x65\x41\x70\x70\x42\x61\x72": createAppBar, "\x63\x72\x65\x61\x74\x65\x4E\x61\x76\x42\x61\x72": createNavBar, "\x62\x6F\x74\x74\x6F\x6D\x4E\x61\x76\x42\x61\x72": bottomNavBar, "\x63\x72\x65\x61\x74\x65\x43\x61\x72\x64": createCard, "\x63\x72\x65\x61\x74\x65\x43\x68\x69\x70": createChip, "\x62\x6F\x74\x74\x6F\x6D\x53\x68\x65\x65\x74": bottomSheet, "\x61\x6C\x65\x72\x74\x44\x69\x61\x6C\x6F\x67": alertDialog, "\x63\x6F\x6E\x74\x65\x78\x74\x4D\x65\x6E\x75": contextMenu, "\x73\x6E\x61\x63\x6B\x42\x61\x72": snackBar, "\x62\x75\x74\x74\x6F\x6E\x52\x65\x73\x69\x7A\x65\x72": buttonResizer, "\x70\x6C\x61\x63\x65\x49\x6E\x50\x61\x72\x65\x6E\x74\x43\x65\x6E\x74\x65\x72": placeInParentCenter, about: function () { dialog[_$_f4d4[6]]() } } }; var artboardheight = 0; var artboardwidth = 0; let guids = []; var currentguid; var ERRORCODE; var navBarguid; var bottomnavBarguid; var statusBarguid; var appBarguid; var group; async function showAlert(bf, be) { await alert(bf, be) } async function showError(bf, be, bg) { await error(bf, be, bg[0], _$_f4d4[7] + bg[1], _$_f4d4[7] + bg[2], _$_f4d4[7] + bg[3]) } function createBasicActivity(b, a) { getArtboardDetails(b, a); if (!checkIfExists(appBarguid)) { var B = createStatusBar(); b[_$_f4d4[9]][_$_f4d4[8]](B); const c = 56; const d = artboardwidth; let A = createRec(c, d, _$_f4d4[10], 0); var e = createShadow(); A[_$_f4d4[11]] = e; b[_$_f4d4[9]][_$_f4d4[8]](A); A[_$_f4d4[13]](0, B[_$_f4d4[12]]); var C = createNavBar(b); b[_$_f4d4[9]][_$_f4d4[14]](C, 0); b[_$_f4d4[15]] = [B, A]; commands[_$_f4d4[16]]() } } function checkIfExists(z) { var w = !(guids[_$_f4d4[17]](z) === -1); return w } function getArtboardDetails(b, a) { log(b[_$_f4d4[18]], 5); if (b[_$_f4d4[18]]) { ERRORCODE = 0; artboardheight = b[_$_f4d4[19]][_$_f4d4[12]]; artboardwidth = b[_$_f4d4[19]][_$_f4d4[20]]; let O = b[_$_f4d4[15]][0]; (O[_$_f4d4[22]][_$_f4d4[21]] == 0) ? guids = [] : guids; (guids[_$_f4d4[21]] != O[_$_f4d4[22]][_$_f4d4[21]]) ? guids = [] : guids; O[_$_f4d4[22]][_$_f4d4[26]]((r) => { checkIfExists(r[_$_f4d4[23]]) ? log(_$_f4d4[24]) : guids[_$_f4d4[25]](r[_$_f4d4[23]]) }) } else { if (b instanceof Artboard) { ERRORCODE = 0; log(_$_f4d4[27], 5); artboardheight = b[_$_f4d4[12]]; artboardwidth = b[_$_f4d4[20]]; log(artboardheight, 5); log(artboardwidth, 5) } else { showAlert(_$_f4d4[28], _$_f4d4[29] + _$_f4d4[30]); ERRORCODE = 100; return } } } function createStatusBar(b) { let H; if (!checkIfExists(statusBarguid)) { const c = 24; const d = artboardwidth; H = createRec(c, d, _$_f4d4[31], 0); statusBarguid = currentguid; H[_$_f4d4[32]] = _$_f4d4[33]; b[_$_f4d4[9]][_$_f4d4[8]](H) }; return H } function createAppBar(b, a) { getArtboardDetails(b, a); if (ERRORCODE == 100) { return }; if (!checkIfExists(appBarguid)) { var B = createStatusBar(b); const c = 56; const d = artboardwidth; let A = createRec(c, d, _$_f4d4[10], 0); appBarguid = currentguid; A[_$_f4d4[32]] = _$_f4d4[34]; var e = createShadow(); A[_$_f4d4[11]] = e; b[_$_f4d4[9]][_$_f4d4[8]](A); A[_$_f4d4[13]](0, B[_$_f4d4[12]]) } else { showAlert(_$_f4d4[35], _$_f4d4[36]) } } function createNavBar(b, a) { getArtboardDetails(b, a); log(_$_f4d4[37], 1); const c = 48; const d = artboardwidth; let C; if (!checkIfExists(navBarguid)) { C = createRec(c, d, _$_f4d4[38], 0); navBarguid = currentguid; C[_$_f4d4[32]] = _$_f4d4[39]; b[_$_f4d4[9]][_$_f4d4[8]](C); C[_$_f4d4[13]](0, artboardheight - C[_$_f4d4[12]]) } else { showAlert(_$_f4d4[40], _$_f4d4[41]) }; return C } function bottomNavBar(b, a) { getArtboardDetails(b, a); log(_$_f4d4[42], 1); const c = 56; const d = artboardwidth; let bottomNavBar; if (!checkIfExists(bottomnavBarguid)) { bottomNavBar = createRec(c, d, _$_f4d4[43], 0); bottomnavBarguid = currentguid; bottomNavBar[_$_f4d4[32]] = _$_f4d4[44]; var e = createShadowU(); bottomNavBar[_$_f4d4[11]] = e; b[_$_f4d4[9]][_$_f4d4[8]](bottomNavBar); bottomNavBar[_$_f4d4[13]](0, artboardheight - c + 8 + -bottomNavBar[_$_f4d4[12]]) } else { showAlert(_$_f4d4[45], _$_f4d4[46]) }; return bottomNavBar } function createCard(b, a) { getArtboardDetails(b, a); log(_$_f4d4[47], 1); const c = 148; const d = artboardwidth - 16; const K = (artboardwidth - d) / 2; let J = createRec(c, d, _$_f4d4[48], 4); var e = createShadowR(); J[_$_f4d4[11]] = e; b[_$_f4d4[9]][_$_f4d4[8]](J); J[_$_f4d4[13]](K, (artboardheight - c) / 2); return J } function createButton(b, a) { getArtboardDetails(b, a); const c = 48; const d = 96; log(_$_f4d4[49], 1); let H = createRec(c, d, _$_f4d4[50], 6); H[_$_f4d4[32]] = _$_f4d4[51]; var e = createShadow(); H[_$_f4d4[11]] = e; b[_$_f4d4[9]][_$_f4d4[8]](H); calcArtboardCenter(c); var t = calcArtboardCenter(d, c); H[_$_f4d4[13]](t[_$_f4d4[52]], t[_$_f4d4[53]]); var D = 18; let I = createText(_$_f4d4[54], _$_f4d4[55], D); I[_$_f4d4[32]] = _$_f4d4[56]; b[_$_f4d4[9]][_$_f4d4[8]](I); let F = (c - I[_$_f4d4[57]][_$_f4d4[12]]) / 2; let E = (D > 16) ? D - 2 : D - 1; let G = (d - I[_$_f4d4[57]][_$_f4d4[20]]) / 2; I[_$_f4d4[13]](t[_$_f4d4[52]] + G, t[_$_f4d4[53]] + F + E); b[_$_f4d4[15]] = [H, I]; log(_$_f4d4[58] + _$_f4d4[59] + I[_$_f4d4[57]][_$_f4d4[20]] + _$_f4d4[60] + _$_f4d4[61] + I[_$_f4d4[57]][_$_f4d4[12]], 5); commands[_$_f4d4[16]](); group = b[_$_f4d4[15]][0]; group[_$_f4d4[32]] = _$_f4d4[54]; log(group, 5) } function placeInParentCenter(b) { let bc = b[_$_f4d4[9]][_$_f4d4[62]]; let Y = b[_$_f4d4[15]][0][_$_f4d4[57]]; let u = bc[_$_f4d4[52]]; let v = bc[_$_f4d4[53]]; let Z = Y[_$_f4d4[12]]; let bb = Y[_$_f4d4[20]]; let bd = b[_$_f4d4[9]][_$_f4d4[62]]; bd[_$_f4d4[52]] = u - bb / 2; bd[_$_f4d4[53]] = v - Z / 2; let ba = { x: Y[_$_f4d4[52]], y: Y[_$_f4d4[53]] }; b[_$_f4d4[15]][0][_$_f4d4[63]](ba, bd) } function buttonResizer(b) { var p = b[_$_f4d4[15]][0]; if (p instanceof Text) { var f = p[_$_f4d4[32]]; var l = p[_$_f4d4[64]][_$_f4d4[32]]; var g = f[_$_f4d4[17]](_$_f4d4[56]) != -1; var j = l[_$_f4d4[17]](_$_f4d4[54]) != -1; if (g && j) { var i = p[_$_f4d4[64]]; log(i, 5); var k = i[_$_f4d4[57]][_$_f4d4[12]]; var n = i[_$_f4d4[57]][_$_f4d4[20]]; var q = p[_$_f4d4[57]][_$_f4d4[20]]; var m = (n - q) / 2; if (m < 22 || m > 23) { var o = q + 44; i[_$_f4d4[22]][_$_f4d4[26]]((r) => { if (r instanceof Rectangle) { r[_$_f4d4[65]](o, k) } }) } } } else { log(_$_f4d4[66], 3); log(_$_f4d4[66] + _$_f4d4[67], 4); showAlert(_$_f4d4[68], _$_f4d4[69] + _$_f4d4[70]) } } function createChip(b, a) { getArtboardDetails(b, a); var D = 14; let I = createText(_$_f4d4[71], _$_f4d4[38], D); const c = 32; const d = I[_$_f4d4[57]][_$_f4d4[20]] + 24; let H = createRec(c, d, _$_f4d4[72], 16); b[_$_f4d4[9]][_$_f4d4[8]](H); b[_$_f4d4[9]][_$_f4d4[8]](I); calcArtboardCenter(c); var t = calcArtboardCenter(d, c); H[_$_f4d4[13]](t[_$_f4d4[52]], t[_$_f4d4[53]]); log(_$_f4d4[73] + _$_f4d4[59] + H[_$_f4d4[57]][_$_f4d4[20]] + _$_f4d4[60] + _$_f4d4[61] + H[_$_f4d4[57]][_$_f4d4[12]], 5); let F = (c - I[_$_f4d4[57]][_$_f4d4[12]]) / 2; let E = (D > 16) ? D - 2 : D - 1; let G = (d - I[_$_f4d4[57]][_$_f4d4[20]]) / 2; I[_$_f4d4[13]](t[_$_f4d4[52]] + G, t[_$_f4d4[53]] + F + E); log(_$_f4d4[58] + _$_f4d4[59] + I[_$_f4d4[57]][_$_f4d4[20]] + _$_f4d4[60] + _$_f4d4[61] + I[_$_f4d4[57]][_$_f4d4[12]], 5); b[_$_f4d4[15]] = [I, H]; commands[_$_f4d4[16]](); group = b[_$_f4d4[15]][0]; log(group, 5) } function bottomSheet(b, a) { log(_$_f4d4[74], 2); showAlert(_$_f4d4[74], _$_f4d4[75]) } function alertDialog(b, a) { log(_$_f4d4[74], 2); showAlert(_$_f4d4[74], _$_f4d4[75]) } function log(W, V) { if (V <= debugLevel) { switch (V) { case 5: (debug) ? console[_$_f4d4[76]](W) : 0; break; case 4: (debug) ? console[_$_f4d4[76]](W) : 0; break; case 3: (debug) ? console[_$_f4d4[76]](W) : 0; break; case 2: (debug) ? console[_$_f4d4[76]](W) : 0; break; case 1: (debug) ? console[_$_f4d4[76]](W) : 0; break } } } function contextMenu(b, a) { log(_$_f4d4[74], 2); showAlert(_$_f4d4[74], _$_f4d4[75]) } function snackBar(b, a) { getArtboardDetails(b, a); log(_$_f4d4[77], 1); const c = 48; const d = artboardwidth; let snackBar = createRec(c, d, _$_f4d4[38], 0); let bi = createText(_$_f4d4[78], _$_f4d4[55], 14); let bh = createText(_$_f4d4[79], _$_f4d4[80], 16); b[_$_f4d4[9]][_$_f4d4[8]](snackBar); b[_$_f4d4[9]][_$_f4d4[8]](bi); b[_$_f4d4[9]][_$_f4d4[8]](bh); if (checkIfExists(navBarguid)) { log(_$_f4d4[81], 3); snackBar[_$_f4d4[13]](0, artboardheight - snackBar[_$_f4d4[12]] - 48); bi[_$_f4d4[13]](16, artboardheight - snackBar[_$_f4d4[12]] - 19); bh[_$_f4d4[13]](d - 16 - bh[_$_f4d4[57]][_$_f4d4[20]], artboardheight - snackBar[_$_f4d4[12]] / 2 - 42) } else { snackBar[_$_f4d4[13]](0, artboardheight - snackBar[_$_f4d4[12]]); bi[_$_f4d4[13]](16, artboardheight - (snackBar[_$_f4d4[12]]) / 2 + 5); bh[_$_f4d4[13]](d - 16 - bh[_$_f4d4[57]][_$_f4d4[20]], artboardheight - (snackBar[_$_f4d4[12]]) / 2 + 5) }; b[_$_f4d4[15]] = [snackBar, bi, bh]; commands[_$_f4d4[16]](); return snackBar } function createShadow() { return new Shadow(0, 5, 6, new Color(_$_f4d4[38], 0.16), true) } function createShadowR() { return new Shadow(0, 1, 8, new Color(_$_f4d4[38], 0.16), true) } function createShadowU() { return new Shadow(0, -5, 6, new Color(_$_f4d4[38], 0.16), true) } function calcArtboardCenter(q, s) { var u = (artboardwidth - q) / 2; var v = (artboardheight - s) / 2; let t = { x: u, y: v }; return t } function insertText(b, a) { getArtboardDetails(b, a); var D = 18; let I = createText(_$_f4d4[82], _$_f4d4[83], D); b[_$_f4d4[9]][_$_f4d4[8]](I); let F = (artboardheight - I[_$_f4d4[57]][_$_f4d4[12]]) / 2; let E = (D > 16) ? D - 2 : D - 1; let G = (artboardwidth - I[_$_f4d4[57]][_$_f4d4[20]]) / 2; I[_$_f4d4[13]](G, F + E); b[_$_f4d4[15]] = [I] } function createText(N, L, D) { let I = new Text(); I[_$_f4d4[84]] = N; I[_$_f4d4[85]] = [{ length: I[_$_f4d4[84]][_$_f4d4[21]], fill: new Color(L), fontSize: D }]; return I } function createRec(s, q, L, M) { let H = new Rectangle(); H[_$_f4d4[12]] = s; H[_$_f4d4[20]] = q; H[_$_f4d4[86]] = new Color(L); H[_$_f4d4[87]](M); currentguid = H[_$_f4d4[23]]; return H } function groupItems(b, P) { log(P, 5); b[_$_f4d4[15]] = P; commands[_$_f4d4[16]](); let group = b[_$_f4d4[15]][0] } function h(T, S, ...R) { let r = document[_$_f4d4[88]](T); if (S) { if (S[_$_f4d4[89]] || typeof S !== _$_f4d4[90]) { R[_$_f4d4[91]](S) } else { for (let f in S) { let U = S[f]; if (f == _$_f4d4[92]) { Object[_$_f4d4[93]](r[_$_f4d4[92]], U) } else { r[_$_f4d4[94]](f, U); r[f] = U } } } }; for (let Q of R) { r[_$_f4d4[96]](typeof Q === _$_f4d4[90] ? Q : document[_$_f4d4[95]](Q)) }; return r } function openLink(X) { return shell[_$_f4d4[97]](X) } const content1 = _$_f4d4[98]; const content2 = _$_f4d4[99]; const content3 = _$_f4d4[100]; const content3a = _$_f4d4[101]; const content4 = _$_f4d4[102]; const content5 = _$_f4d4[103]; const paypal = _$_f4d4[104]; const github = _$_f4d4[105]; const bitcoin = _$_f4d4[106]; const bitcoinAddress = _$_f4d4[107]; const shortcuts = _$_f4d4[108] + _$_f4d4[109] + _$_f4d4[110] + _$_f4d4[109] + _$_f4d4[111] + _$_f4d4[109] + _$_f4d4[112] + _$_f4d4[109] + _$_f4d4[113] + _$_f4d4[109] + _$_f4d4[114] + _$_f4d4[109] + _$_f4d4[115] + _$_f4d4[109] + _$_f4d4[116] + _$_f4d4[109] + _$_f4d4[117] + _$_f4d4[109] + _$_f4d4[118] + _$_f4d4[109] + _$_f4d4[119] + _$_f4d4[109] + _$_f4d4[120] + _$_f4d4[109] + _$_f4d4[121] + _$_f4d4[109] + _$_f4d4[122] + _$_f4d4[109]; let dialog = h(_$_f4d4[123], h(_$_f4d4[124], { method: _$_f4d4[123], style: { width: 400 } }, h(_$_f4d4[125], _$_f4d4[126]), h(_$_f4d4[127], { class: _$_f4d4[128] }), h(_$_f4d4[129], { class: _$_f4d4[130], style: { lineHeight: 20 } }, content1), h(_$_f4d4[131], _$_f4d4[132]), h(_$_f4d4[127]), h(_$_f4d4[129], content5), h(_$_f4d4[129], _$_f4d4[133] + github), h(_$_f4d4[131], _$_f4d4[134]), h(_$_f4d4[129], shortcuts), h(_$_f4d4[127], { class: _$_f4d4[135] }), h(_$_f4d4[136], h(_$_f4d4[51], cancelObj(), _$_f4d4[137]), h(_$_f4d4[51], githubObj(), _$_f4d4[138])))); document[_$_f4d4[139]][_$_f4d4[96]](dialog);function btcObj() {return { uxpVariant: "cta", onclick(e) { openLink(bitcoin); } };}function cancelObj() {return { uxpVariant: "primary", onclick(e) { dialog.close(); } };}function paypalObj() {return { uxpVariant: "cta", onclick(e) { openLink(paypal); } };}function githubObj() {return { uxpVariant: "cta", onclick(e) { openLink(github); } };}