@ibgib/core-gib 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/core-gib-snippets.code-snippets +189 -0
- package/.vscode/launch.json +24 -0
- package/.vscode/settings.json +56 -0
- package/.vscode/tasks.json +37 -0
- package/CHANGELOG.md +11 -0
- package/README.md +215 -0
- package/dist/common/aws-constants.d.mts +7 -0
- package/dist/common/aws-constants.d.mts.map +1 -0
- package/dist/common/aws-constants.mjs +7 -0
- package/dist/common/aws-constants.mjs.map +1 -0
- package/dist/common/bin/bin-types.d.mts +17 -0
- package/dist/common/bin/bin-types.d.mts.map +1 -0
- package/dist/common/bin/bin-types.mjs +3 -0
- package/dist/common/bin/bin-types.mjs.map +1 -0
- package/dist/common/cache/cache-types.d.mts +57 -0
- package/dist/common/cache/cache-types.d.mts.map +1 -0
- package/dist/common/cache/cache-types.mjs +2 -0
- package/dist/common/cache/cache-types.mjs.map +1 -0
- package/dist/common/comment/comment-constants.d.mts +11 -0
- package/dist/common/comment/comment-constants.d.mts.map +1 -0
- package/dist/common/comment/comment-constants.mjs +11 -0
- package/dist/common/comment/comment-constants.mjs.map +1 -0
- package/dist/common/comment/comment-helper.d.mts +59 -0
- package/dist/common/comment/comment-helper.d.mts.map +1 -0
- package/dist/common/comment/comment-helper.mjs +173 -0
- package/dist/common/comment/comment-helper.mjs.map +1 -0
- package/dist/common/comment/comment-types.d.mts +16 -0
- package/dist/common/comment/comment-types.d.mts.map +1 -0
- package/dist/common/comment/comment-types.mjs +2 -0
- package/dist/common/comment/comment-types.mjs.map +1 -0
- package/dist/common/display/display-helper.d.mts +19 -0
- package/dist/common/display/display-helper.d.mts.map +1 -0
- package/dist/common/display/display-helper.mjs +68 -0
- package/dist/common/display/display-helper.mjs.map +1 -0
- package/dist/common/display/display-types.d.mts +97 -0
- package/dist/common/display/display-types.d.mts.map +1 -0
- package/dist/common/display/display-types.mjs +37 -0
- package/dist/common/display/display-types.mjs.map +1 -0
- package/dist/common/encrypt/encrypt-constants.d.mts +27 -0
- package/dist/common/encrypt/encrypt-constants.d.mts.map +1 -0
- package/dist/common/encrypt/encrypt-constants.mjs +27 -0
- package/dist/common/encrypt/encrypt-constants.mjs.map +1 -0
- package/dist/common/encrypt/encrypt-types.d.mts +116 -0
- package/dist/common/encrypt/encrypt-types.d.mts.map +1 -0
- package/dist/common/encrypt/encrypt-types.mjs +9 -0
- package/dist/common/encrypt/encrypt-types.mjs.map +1 -0
- package/dist/common/error/error-constants.d.mts +9 -0
- package/dist/common/error/error-constants.d.mts.map +1 -0
- package/dist/common/error/error-constants.mjs +9 -0
- package/dist/common/error/error-constants.mjs.map +1 -0
- package/dist/common/error/error-helper.d.mts +43 -0
- package/dist/common/error/error-helper.d.mts.map +1 -0
- package/dist/common/error/error-helper.mjs +167 -0
- package/dist/common/error/error-helper.mjs.map +1 -0
- package/dist/common/error/error-types.d.mts +58 -0
- package/dist/common/error/error-types.d.mts.map +1 -0
- package/dist/common/error/error-types.mjs +2 -0
- package/dist/common/error/error-types.mjs.map +1 -0
- package/dist/common/form/form-helper.d.mts +97 -0
- package/dist/common/form/form-helper.d.mts.map +1 -0
- package/dist/common/form/form-helper.mjs +185 -0
- package/dist/common/form/form-helper.mjs.map +1 -0
- package/dist/common/form/form-items.d.mts +229 -0
- package/dist/common/form/form-items.d.mts.map +1 -0
- package/dist/common/form/form-items.mjs +63 -0
- package/dist/common/form/form-items.mjs.map +1 -0
- package/dist/common/import-export/import-export-types.d.mts +18 -0
- package/dist/common/import-export/import-export-types.d.mts.map +1 -0
- package/dist/common/import-export/import-export-types.mjs +2 -0
- package/dist/common/import-export/import-export-types.mjs.map +1 -0
- package/dist/common/legacy/legacy-types.d.mts +2 -0
- package/dist/common/legacy/legacy-types.d.mts.map +1 -0
- package/dist/common/legacy/legacy-types.mjs +2 -0
- package/dist/common/legacy/legacy-types.mjs.map +1 -0
- package/dist/common/link/link-constants.d.mts +2 -0
- package/dist/common/link/link-constants.d.mts.map +1 -0
- package/dist/common/link/link-constants.mjs +2 -0
- package/dist/common/link/link-constants.mjs.map +1 -0
- package/dist/common/link/link-helper.d.mts +37 -0
- package/dist/common/link/link-helper.d.mts.map +1 -0
- package/dist/common/link/link-helper.mjs +143 -0
- package/dist/common/link/link-helper.mjs.map +1 -0
- package/dist/common/link/link-types.d.mts +14 -0
- package/dist/common/link/link-types.d.mts.map +1 -0
- package/dist/common/link/link-types.mjs +2 -0
- package/dist/common/link/link-types.mjs.map +1 -0
- package/dist/common/other/graph-helper.d.mts +166 -0
- package/dist/common/other/graph-helper.d.mts.map +1 -0
- package/dist/common/other/graph-helper.mjs +710 -0
- package/dist/common/other/graph-helper.mjs.map +1 -0
- package/dist/common/other/ibgib-helper.d.mts +245 -0
- package/dist/common/other/ibgib-helper.d.mts.map +1 -0
- package/dist/common/other/ibgib-helper.mjs +641 -0
- package/dist/common/other/ibgib-helper.mjs.map +1 -0
- package/dist/common/other/other-constants.d.mts +53 -0
- package/dist/common/other/other-constants.d.mts.map +1 -0
- package/dist/common/other/other-constants.mjs +67 -0
- package/dist/common/other/other-constants.mjs.map +1 -0
- package/dist/common/other/other-types.d.mts +166 -0
- package/dist/common/other/other-types.d.mts.map +1 -0
- package/dist/common/other/other-types.mjs +30 -0
- package/dist/common/other/other-types.mjs.map +1 -0
- package/dist/common/other/svg-constants.d.mts +2 -0
- package/dist/common/other/svg-constants.d.mts.map +1 -0
- package/dist/common/other/svg-constants.mjs +2 -0
- package/dist/common/other/svg-constants.mjs.map +1 -0
- package/dist/common/other/svg-helper.d.mts +54 -0
- package/dist/common/other/svg-helper.d.mts.map +1 -0
- package/dist/common/other/svg-helper.mjs +170 -0
- package/dist/common/other/svg-helper.mjs.map +1 -0
- package/dist/common/pic/pic-constants.d.mts +13 -0
- package/dist/common/pic/pic-constants.d.mts.map +1 -0
- package/dist/common/pic/pic-constants.mjs +13 -0
- package/dist/common/pic/pic-constants.mjs.map +1 -0
- package/dist/common/pic/pic-helper.d.mts +70 -0
- package/dist/common/pic/pic-helper.d.mts.map +1 -0
- package/dist/common/pic/pic-helper.mjs +235 -0
- package/dist/common/pic/pic-helper.mjs.map +1 -0
- package/dist/common/pic/pic-types.d.mts +23 -0
- package/dist/common/pic/pic-types.d.mts.map +1 -0
- package/dist/common/pic/pic-types.mjs +2 -0
- package/dist/common/pic/pic-types.mjs.map +1 -0
- package/dist/common/root/root-constants.d.mts +40 -0
- package/dist/common/root/root-constants.d.mts.map +1 -0
- package/dist/common/root/root-constants.mjs +40 -0
- package/dist/common/root/root-constants.mjs.map +1 -0
- package/dist/common/root/root-types.d.mts +9 -0
- package/dist/common/root/root-types.d.mts.map +1 -0
- package/dist/common/root/root-types.mjs +2 -0
- package/dist/common/root/root-types.mjs.map +1 -0
- package/dist/common/tag/tag-constants.d.mts +21 -0
- package/dist/common/tag/tag-constants.d.mts.map +1 -0
- package/dist/common/tag/tag-constants.mjs +28 -0
- package/dist/common/tag/tag-constants.mjs.map +1 -0
- package/dist/common/tag/tag-types.d.mts +14 -0
- package/dist/common/tag/tag-types.d.mts.map +1 -0
- package/dist/common/tag/tag-types.mjs +2 -0
- package/dist/common/tag/tag-types.mjs.map +1 -0
- package/dist/core-constants.d.mts +89 -0
- package/dist/core-constants.d.mts.map +1 -0
- package/dist/core-constants.mjs +484 -0
- package/dist/core-constants.mjs.map +1 -0
- package/dist/core-helper.d.mts +6 -0
- package/dist/core-helper.d.mts.map +1 -0
- package/dist/core-helper.mjs +28 -0
- package/dist/core-helper.mjs.map +1 -0
- package/dist/core-types.d.mts +520 -0
- package/dist/core-types.d.mts.map +1 -0
- package/dist/core-types.mjs +2 -0
- package/dist/core-types.mjs.map +1 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -0
- package/dist/witness/app/app-base-v1.d.mts +130 -0
- package/dist/witness/app/app-base-v1.d.mts.map +1 -0
- package/dist/witness/app/app-base-v1.mjs +462 -0
- package/dist/witness/app/app-base-v1.mjs.map +1 -0
- package/dist/witness/app/app-constants.d.mts +10 -0
- package/dist/witness/app/app-constants.d.mts.map +1 -0
- package/dist/witness/app/app-constants.mjs +13 -0
- package/dist/witness/app/app-constants.mjs.map +1 -0
- package/dist/witness/app/app-helper.d.mts +85 -0
- package/dist/witness/app/app-helper.d.mts.map +1 -0
- package/dist/witness/app/app-helper.mjs +258 -0
- package/dist/witness/app/app-helper.mjs.map +1 -0
- package/dist/witness/app/app-types.d.mts +211 -0
- package/dist/witness/app/app-types.d.mts.map +1 -0
- package/dist/witness/app/app-types.mjs +49 -0
- package/dist/witness/app/app-types.mjs.map +1 -0
- package/dist/witness/app/chat-app/chat-app-types.d.mts +18 -0
- package/dist/witness/app/chat-app/chat-app-types.d.mts.map +1 -0
- package/dist/witness/app/chat-app/chat-app-types.mjs +25 -0
- package/dist/witness/app/chat-app/chat-app-types.mjs.map +1 -0
- package/dist/witness/app/flash-app/flash-app-types.d.mts +16 -0
- package/dist/witness/app/flash-app/flash-app-types.d.mts.map +1 -0
- package/dist/witness/app/flash-app/flash-app-types.mjs +23 -0
- package/dist/witness/app/flash-app/flash-app-types.mjs.map +1 -0
- package/dist/witness/app/raw-app/raw-app-types.d.mts +18 -0
- package/dist/witness/app/raw-app/raw-app-types.d.mts.map +1 -0
- package/dist/witness/app/raw-app/raw-app-types.mjs +25 -0
- package/dist/witness/app/raw-app/raw-app-types.mjs.map +1 -0
- package/dist/witness/app/todo-app/todo-app-types.d.ts +33 -0
- package/dist/witness/app/todo-app/todo-app-types.d.ts.map +1 -0
- package/dist/witness/app/todo-app/todo-app-types.js +31 -0
- package/dist/witness/app/todo-app/todo-app-types.js.map +1 -0
- package/dist/witness/robbot/robbot-base-v1.d.ts +432 -0
- package/dist/witness/robbot/robbot-base-v1.d.ts.map +1 -0
- package/dist/witness/robbot/robbot-base-v1.js +1407 -0
- package/dist/witness/robbot/robbot-base-v1.js.map +1 -0
- package/dist/witness/robbot/robbot-constants.d.mts +24 -0
- package/dist/witness/robbot/robbot-constants.d.mts.map +1 -0
- package/dist/witness/robbot/robbot-constants.mjs +24 -0
- package/dist/witness/robbot/robbot-constants.mjs.map +1 -0
- package/dist/witness/robbot/robbot-helper.d.mts +152 -0
- package/dist/witness/robbot/robbot-helper.d.mts.map +1 -0
- package/dist/witness/robbot/robbot-helper.mjs +609 -0
- package/dist/witness/robbot/robbot-helper.mjs.map +1 -0
- package/dist/witness/robbot/robbot-types.d.mts +539 -0
- package/dist/witness/robbot/robbot-types.d.mts.map +1 -0
- package/dist/witness/robbot/robbot-types.mjs +294 -0
- package/dist/witness/robbot/robbot-types.mjs.map +1 -0
- package/dist/witness/space/bootstrap/bootstrap-constants.d.mts +14 -0
- package/dist/witness/space/bootstrap/bootstrap-constants.d.mts.map +1 -0
- package/dist/witness/space/bootstrap/bootstrap-constants.mjs +15 -0
- package/dist/witness/space/bootstrap/bootstrap-constants.mjs.map +1 -0
- package/dist/witness/space/inner-space-v1.d.ts +63 -0
- package/dist/witness/space/inner-space-v1.d.ts.map +1 -0
- package/dist/witness/space/inner-space-v1.js +356 -0
- package/dist/witness/space/inner-space-v1.js.map +1 -0
- package/dist/witness/space/outer-space/outer-space-constants.d.mts +2 -0
- package/dist/witness/space/outer-space/outer-space-constants.d.mts.map +1 -0
- package/dist/witness/space/outer-space/outer-space-constants.mjs +2 -0
- package/dist/witness/space/outer-space/outer-space-constants.mjs.map +1 -0
- package/dist/witness/space/outer-space/outer-space-helper.d.mts +28 -0
- package/dist/witness/space/outer-space/outer-space-helper.d.mts.map +1 -0
- package/dist/witness/space/outer-space/outer-space-helper.mjs +87 -0
- package/dist/witness/space/outer-space/outer-space-helper.mjs.map +1 -0
- package/dist/witness/space/outer-space/outer-space-types.d.mts +548 -0
- package/dist/witness/space/outer-space/outer-space-types.d.mts.map +1 -0
- package/dist/witness/space/outer-space/outer-space-types.mjs +118 -0
- package/dist/witness/space/outer-space/outer-space-types.mjs.map +1 -0
- package/dist/witness/space/space-base-v1.d.mts +147 -0
- package/dist/witness/space/space-base-v1.d.mts.map +1 -0
- package/dist/witness/space/space-base-v1.mjs +350 -0
- package/dist/witness/space/space-base-v1.mjs.map +1 -0
- package/dist/witness/space/space-constants.d.mts +181 -0
- package/dist/witness/space/space-constants.d.mts.map +1 -0
- package/dist/witness/space/space-constants.mjs +192 -0
- package/dist/witness/space/space-constants.mjs.map +1 -0
- package/dist/witness/space/space-helper.d.mts +666 -0
- package/dist/witness/space/space-helper.d.mts.map +1 -0
- package/dist/witness/space/space-helper.mjs +2830 -0
- package/dist/witness/space/space-helper.mjs.map +1 -0
- package/dist/witness/space/space-types.d.mts +422 -0
- package/dist/witness/space/space-types.d.mts.map +1 -0
- package/dist/witness/space/space-types.mjs +52 -0
- package/dist/witness/space/space-types.mjs.map +1 -0
- package/dist/witness/witness-base-v1.d.ts +144 -0
- package/dist/witness/witness-base-v1.d.ts.map +1 -0
- package/dist/witness/witness-base-v1.js +300 -0
- package/dist/witness/witness-base-v1.js.map +1 -0
- package/dist/witness/witness-constants.d.mts +3 -0
- package/dist/witness/witness-constants.d.mts.map +1 -0
- package/dist/witness/witness-constants.mjs +3 -0
- package/dist/witness/witness-constants.mjs.map +1 -0
- package/dist/witness/witness-form-builder.d.mts +45 -0
- package/dist/witness/witness-form-builder.d.mts.map +1 -0
- package/dist/witness/witness-form-builder.mjs +95 -0
- package/dist/witness/witness-form-builder.mjs.map +1 -0
- package/dist/witness/witness-helper.d.mts +89 -0
- package/dist/witness/witness-helper.d.mts.map +1 -0
- package/dist/witness/witness-helper.mjs +229 -0
- package/dist/witness/witness-helper.mjs.map +1 -0
- package/dist/witness/witness-types.d.mts +211 -0
- package/dist/witness/witness-types.d.mts.map +1 -0
- package/dist/witness/witness-types.mjs +2 -0
- package/dist/witness/witness-types.mjs.map +1 -0
- package/jasmine-browser.json +18 -0
- package/jasmine.json +6 -0
- package/package.json +67 -0
- package/src/assumptions.spec.mts +45 -0
- package/src/common/aws-constants.mts +5 -0
- package/src/common/bin/bin-types.mts +17 -0
- package/src/common/cache/cache-types.mts +53 -0
- package/src/common/comment/comment-constants.mts +10 -0
- package/src/common/comment/comment-helper.mts +211 -0
- package/src/common/comment/comment-types.mts +19 -0
- package/src/common/display/display-helper.mts +88 -0
- package/src/common/display/display-types.mts +108 -0
- package/src/common/encrypt/encrypt-constants.mts +28 -0
- package/src/common/encrypt/encrypt-types.mts +130 -0
- package/src/common/error/error-constants.mts +8 -0
- package/src/common/error/error-helper.mts +155 -0
- package/src/common/error/error-types.mts +62 -0
- package/src/common/form/form-helper.mts +253 -0
- package/src/common/form/form-items.mts +236 -0
- package/src/common/import-export/import-export-types.mts +18 -0
- package/src/common/legacy/about-legacy.md +0 -0
- package/src/common/legacy/legacy-types.mts +0 -0
- package/src/common/link/link-constants.mts +1 -0
- package/src/common/link/link-helper.mts +155 -0
- package/src/common/link/link-types.mts +16 -0
- package/src/common/other/graph-helper.mts +853 -0
- package/src/common/other/ibgib-helper.mts +671 -0
- package/src/common/other/other-constants.mts +76 -0
- package/src/common/other/other-types.mts +186 -0
- package/src/common/other/svg-constants.mts +1 -0
- package/src/common/other/svg-helper.mts +238 -0
- package/src/common/pic/pic-constants.mts +13 -0
- package/src/common/pic/pic-helper.mts +295 -0
- package/src/common/pic/pic-types.mts +29 -0
- package/src/common/root/root-constants.mts +41 -0
- package/src/common/root/root-types.mts +8 -0
- package/src/common/tag/tag-constants.mts +34 -0
- package/src/common/tag/tag-types.mts +19 -0
- package/src/core-constants.mts +506 -0
- package/src/core-helper.mts +33 -0
- package/src/core-types.mts +519 -0
- package/src/helper.spec.mts +64 -0
- package/src/index.mts +1 -0
- package/src/witness/app/app-base-v1.mts +584 -0
- package/src/witness/app/app-constants.mts +16 -0
- package/src/witness/app/app-helper.mts +322 -0
- package/src/witness/app/app-types.mts +252 -0
- package/src/witness/app/chat-app/chat-app-types.mts +40 -0
- package/src/witness/app/flash-app/flash-app-types.mts +38 -0
- package/src/witness/app/raw-app/raw-app-types.mts +40 -0
- package/src/witness/app/todo-app/todo-app-types.ts +59 -0
- package/src/witness/robbot/robbot-base-v1.ts +1531 -0
- package/src/witness/robbot/robbot-constants.mts +25 -0
- package/src/witness/robbot/robbot-helper.mts +676 -0
- package/src/witness/robbot/robbot-helper.spec.mts +135 -0
- package/src/witness/robbot/robbot-types.mts +797 -0
- package/src/witness/space/bootstrap/bootstrap-constants.mts +15 -0
- package/src/witness/space/inner-space-v1.ts +372 -0
- package/src/witness/space/outer-space/outer-space-constants.mts +1 -0
- package/src/witness/space/outer-space/outer-space-helper.mts +91 -0
- package/src/witness/space/outer-space/outer-space-types.mts +627 -0
- package/src/witness/space/space-base-v1.mts +414 -0
- package/src/witness/space/space-constants.mts +208 -0
- package/src/witness/space/space-helper.mts +3242 -0
- package/src/witness/space/space-types.mts +476 -0
- package/src/witness/witness-base-v1.ts +325 -0
- package/src/witness/witness-constants.mts +2 -0
- package/src/witness/witness-form-builder.mts +128 -0
- package/src/witness/witness-helper.mts +256 -0
- package/src/witness/witness-types.mts +249 -0
- package/tsconfig.json +15 -0
- package/tsconfig.test.json +10 -0
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module core-constants
|
|
3
|
+
*
|
|
4
|
+
* # IMPORTANT!
|
|
5
|
+
*
|
|
6
|
+
* In order to be able to actually use this in an ionic-gib-like clone front end,
|
|
7
|
+
* I want to be sure to include all of these. So I can't remove/comment it out here
|
|
8
|
+
* without putting it _somewhere_. For example, the very first import atow is a
|
|
9
|
+
* reference to @capacitor/filesystem. This should not go in this package (core-gib)
|
|
10
|
+
* so I'm going to create another lib specific to ionic/capacitor and put it there
|
|
11
|
+
* **before** removing it from/commenting it out in this file.
|
|
12
|
+
*
|
|
13
|
+
* # about this file
|
|
14
|
+
*
|
|
15
|
+
* I'm copying this lump sum from ionic-gib and am breaking it out slowly into
|
|
16
|
+
* other more specific constant files. When a constant is moved into one of
|
|
17
|
+
* those sub files, then I will remove it from this file.
|
|
18
|
+
*
|
|
19
|
+
* Ultimately, this should only contain global constants like the logalot
|
|
20
|
+
* and timer settings.
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* Naive selective logging/tracing mechanism.
|
|
24
|
+
*
|
|
25
|
+
* I manually switch this in individual files as needed while
|
|
26
|
+
* developing/troubleshooting. I can change it here to turn on extremely verbose
|
|
27
|
+
* logging application wide (and turn off individual files).
|
|
28
|
+
*/
|
|
29
|
+
export const GLOBAL_LOG_A_LOT = false;
|
|
30
|
+
/**
|
|
31
|
+
* Used in console.timeLog() calls.
|
|
32
|
+
*/
|
|
33
|
+
export const GLOBAL_TIMER_NAME = '[core^gib timer]';
|
|
34
|
+
// export const UUID_REGEXP = /^[a-zA-Z0-9_\-.]{1,256}$/;
|
|
35
|
+
/**
|
|
36
|
+
* regular expression for a classname.
|
|
37
|
+
*
|
|
38
|
+
* Used in witnesses atm.
|
|
39
|
+
*/
|
|
40
|
+
export const CLASSNAME_REGEXP = /^[a-zA-Z0-9_]{1,255}$/;
|
|
41
|
+
/**
|
|
42
|
+
* Much restricted list of chars in english.
|
|
43
|
+
*
|
|
44
|
+
* ## intent
|
|
45
|
+
*
|
|
46
|
+
* When sanitizing input.
|
|
47
|
+
*/
|
|
48
|
+
export const SAFE_SPECIAL_CHARS = `.'",!?-`;
|
|
49
|
+
export const IB_MAX_LENGTH_DEFAULT = 155;
|
|
50
|
+
/**
|
|
51
|
+
* Defaults to word characters, space, tab, hyphen, and other
|
|
52
|
+
* non-slash (path navigating) chars.
|
|
53
|
+
*
|
|
54
|
+
* Does not allow new lines or other whitespace, only tabs and spaces.
|
|
55
|
+
*
|
|
56
|
+
* ## atow
|
|
57
|
+
*
|
|
58
|
+
* `^[\\w\\t\\-|=+.&%\$#@!~\` \\[\\]\\(\\)\\{\\}]{1,${IB_MAX_LENGTH_DEFAULT}}$`
|
|
59
|
+
*/
|
|
60
|
+
export const IB_REGEXP_DEFAULT = new RegExp(`^[\\w\\t\\-|=+.&%\$#@!~\` \\[\\]\\(\\)\\{\\}]{1,${IB_MAX_LENGTH_DEFAULT}}$`);
|
|
61
|
+
/**
|
|
62
|
+
* Ionicons const "enum"
|
|
63
|
+
*/
|
|
64
|
+
export const IONICONS = [
|
|
65
|
+
'add',
|
|
66
|
+
'add-circle',
|
|
67
|
+
'alert',
|
|
68
|
+
'alert-circle',
|
|
69
|
+
'add',
|
|
70
|
+
'airplane',
|
|
71
|
+
'alarm',
|
|
72
|
+
'albums',
|
|
73
|
+
'alert',
|
|
74
|
+
'alert-circle',
|
|
75
|
+
'american-football',
|
|
76
|
+
'analytics',
|
|
77
|
+
'aperture',
|
|
78
|
+
'apps',
|
|
79
|
+
'archive',
|
|
80
|
+
'arrow-back',
|
|
81
|
+
'arrow-back-circle',
|
|
82
|
+
'arrow-down',
|
|
83
|
+
'arrow-down-circle',
|
|
84
|
+
'arrow-forward',
|
|
85
|
+
'arrow-forward-circle',
|
|
86
|
+
'arrow-redo',
|
|
87
|
+
'arrow-redo-circle',
|
|
88
|
+
'arrow-undo',
|
|
89
|
+
'arrow-undo-circle',
|
|
90
|
+
'arrow-up',
|
|
91
|
+
'arrow-up-circle',
|
|
92
|
+
'at',
|
|
93
|
+
'at-circle',
|
|
94
|
+
'attach',
|
|
95
|
+
'backspace',
|
|
96
|
+
'bandage',
|
|
97
|
+
'bar-chart',
|
|
98
|
+
'barbell',
|
|
99
|
+
'barcode',
|
|
100
|
+
'baseball',
|
|
101
|
+
'basket',
|
|
102
|
+
'basketball',
|
|
103
|
+
'battery-charging',
|
|
104
|
+
'battery-dead',
|
|
105
|
+
'battery-full',
|
|
106
|
+
'battery-half',
|
|
107
|
+
'beaker',
|
|
108
|
+
'bed',
|
|
109
|
+
'beer',
|
|
110
|
+
'bicycle',
|
|
111
|
+
'bluetooth',
|
|
112
|
+
'boat',
|
|
113
|
+
'body',
|
|
114
|
+
'bonfire',
|
|
115
|
+
'book',
|
|
116
|
+
'bookmark',
|
|
117
|
+
'bookmarks',
|
|
118
|
+
'briefcase',
|
|
119
|
+
'browsers',
|
|
120
|
+
'brush',
|
|
121
|
+
'bug',
|
|
122
|
+
'build',
|
|
123
|
+
'bulb',
|
|
124
|
+
'bus',
|
|
125
|
+
'business',
|
|
126
|
+
'cafe',
|
|
127
|
+
'calculator',
|
|
128
|
+
'calendar',
|
|
129
|
+
'call',
|
|
130
|
+
'camera',
|
|
131
|
+
'camera-reverse',
|
|
132
|
+
'car',
|
|
133
|
+
'car-sport',
|
|
134
|
+
'card',
|
|
135
|
+
'caret-back',
|
|
136
|
+
'caret-back-circle',
|
|
137
|
+
'caret-down',
|
|
138
|
+
'caret-down-circle',
|
|
139
|
+
'caret-forward',
|
|
140
|
+
'caret-forward-circle',
|
|
141
|
+
'caret-up',
|
|
142
|
+
'caret-up-circle',
|
|
143
|
+
'cart',
|
|
144
|
+
'cash',
|
|
145
|
+
'cellular',
|
|
146
|
+
'chatbox',
|
|
147
|
+
'chatbox-ellipses',
|
|
148
|
+
'chatbubble',
|
|
149
|
+
'chatbubble-ellipses',
|
|
150
|
+
'chatbubbles',
|
|
151
|
+
'checkbox',
|
|
152
|
+
'checkmark',
|
|
153
|
+
'checkmark-circle',
|
|
154
|
+
'checkmark-done',
|
|
155
|
+
'checkmark-done-circle',
|
|
156
|
+
'chevron-back',
|
|
157
|
+
'chevron-back-circle',
|
|
158
|
+
'chevron-down',
|
|
159
|
+
'chevron-down-circle',
|
|
160
|
+
'chevron-forward',
|
|
161
|
+
'chevron-forward-circle',
|
|
162
|
+
'chevron-up',
|
|
163
|
+
'chevron-up-circle',
|
|
164
|
+
'clipboard',
|
|
165
|
+
'close',
|
|
166
|
+
'close-circle',
|
|
167
|
+
'cloud',
|
|
168
|
+
'cloud-circle',
|
|
169
|
+
'cloud-done',
|
|
170
|
+
'cloud-download',
|
|
171
|
+
'cloud-offline',
|
|
172
|
+
'cloud-upload',
|
|
173
|
+
'cloudy',
|
|
174
|
+
'cloudy-night',
|
|
175
|
+
'code',
|
|
176
|
+
'code-download',
|
|
177
|
+
'code-slash',
|
|
178
|
+
'code-working',
|
|
179
|
+
'cog',
|
|
180
|
+
'color-fill',
|
|
181
|
+
'color-filter',
|
|
182
|
+
'color-palette',
|
|
183
|
+
'color-wand',
|
|
184
|
+
'compass',
|
|
185
|
+
'construct',
|
|
186
|
+
'contract',
|
|
187
|
+
'contrast',
|
|
188
|
+
'copy',
|
|
189
|
+
'create',
|
|
190
|
+
'crop',
|
|
191
|
+
'cube',
|
|
192
|
+
'cut',
|
|
193
|
+
'desktop',
|
|
194
|
+
'disc',
|
|
195
|
+
'document',
|
|
196
|
+
'document-attach',
|
|
197
|
+
'document-text',
|
|
198
|
+
'documents',
|
|
199
|
+
'download',
|
|
200
|
+
'duplicate',
|
|
201
|
+
'ear',
|
|
202
|
+
'earth',
|
|
203
|
+
'easel',
|
|
204
|
+
'egg',
|
|
205
|
+
'ellipse',
|
|
206
|
+
'ellipsis-horizontal',
|
|
207
|
+
'ellipsis-horizontal-circle',
|
|
208
|
+
'ellipsis-vertical',
|
|
209
|
+
'ellipsis-vertical-circle',
|
|
210
|
+
'enter',
|
|
211
|
+
'exit',
|
|
212
|
+
'expand',
|
|
213
|
+
'eye',
|
|
214
|
+
'eye-off',
|
|
215
|
+
'eyedrop',
|
|
216
|
+
'fast-food',
|
|
217
|
+
'female',
|
|
218
|
+
'file-tray',
|
|
219
|
+
'file-tray-full',
|
|
220
|
+
'file-tray-stacked',
|
|
221
|
+
'film',
|
|
222
|
+
'filter',
|
|
223
|
+
'finger-print',
|
|
224
|
+
'fitness',
|
|
225
|
+
'flag',
|
|
226
|
+
'flame',
|
|
227
|
+
'flash',
|
|
228
|
+
'flash-off',
|
|
229
|
+
'flashlight',
|
|
230
|
+
'flask',
|
|
231
|
+
'flower',
|
|
232
|
+
'folder',
|
|
233
|
+
'folder-open',
|
|
234
|
+
'football',
|
|
235
|
+
'funnel',
|
|
236
|
+
'game-controller',
|
|
237
|
+
'gift',
|
|
238
|
+
'git-branch',
|
|
239
|
+
'git-commit',
|
|
240
|
+
'git-compare',
|
|
241
|
+
'git-merge',
|
|
242
|
+
'git-network',
|
|
243
|
+
'git-pull-request',
|
|
244
|
+
'glasses',
|
|
245
|
+
'globe',
|
|
246
|
+
'golf',
|
|
247
|
+
'grid',
|
|
248
|
+
'hammer',
|
|
249
|
+
'hand-left',
|
|
250
|
+
'hand-right',
|
|
251
|
+
'happy',
|
|
252
|
+
'hardware-chip',
|
|
253
|
+
'headset',
|
|
254
|
+
'heart',
|
|
255
|
+
'heart-circle',
|
|
256
|
+
'heart-dislike',
|
|
257
|
+
'heart-dislike-circle',
|
|
258
|
+
'heart-half',
|
|
259
|
+
'help',
|
|
260
|
+
'help-buoy',
|
|
261
|
+
'help-circle',
|
|
262
|
+
'home',
|
|
263
|
+
'hourglass',
|
|
264
|
+
'ice-cream',
|
|
265
|
+
'image',
|
|
266
|
+
'images',
|
|
267
|
+
'infinite',
|
|
268
|
+
'information',
|
|
269
|
+
'information-circle',
|
|
270
|
+
'journal',
|
|
271
|
+
'key',
|
|
272
|
+
'keypad',
|
|
273
|
+
'language',
|
|
274
|
+
'laptop',
|
|
275
|
+
'layers',
|
|
276
|
+
'leaf',
|
|
277
|
+
'library',
|
|
278
|
+
'link',
|
|
279
|
+
'list',
|
|
280
|
+
'list-circle',
|
|
281
|
+
'locate',
|
|
282
|
+
'location',
|
|
283
|
+
'lock-closed',
|
|
284
|
+
'lock-open',
|
|
285
|
+
'log-in',
|
|
286
|
+
'magnet',
|
|
287
|
+
'mail',
|
|
288
|
+
'mail-open',
|
|
289
|
+
'mail-unread',
|
|
290
|
+
'male',
|
|
291
|
+
'male-female',
|
|
292
|
+
'man',
|
|
293
|
+
'map',
|
|
294
|
+
'medal',
|
|
295
|
+
'medical',
|
|
296
|
+
'medkit',
|
|
297
|
+
'megaphone',
|
|
298
|
+
'menu',
|
|
299
|
+
'mic',
|
|
300
|
+
'mic-circle',
|
|
301
|
+
'mic-off',
|
|
302
|
+
'mic-off-circle',
|
|
303
|
+
'moon',
|
|
304
|
+
'move',
|
|
305
|
+
'musical-note',
|
|
306
|
+
'musical-notes',
|
|
307
|
+
'navigate',
|
|
308
|
+
'navigate-circle',
|
|
309
|
+
'newspaper',
|
|
310
|
+
'notifications',
|
|
311
|
+
'notifications-circle',
|
|
312
|
+
'notifications-off',
|
|
313
|
+
'notifications-off-circle',
|
|
314
|
+
'nuclear',
|
|
315
|
+
'nutrition',
|
|
316
|
+
'open',
|
|
317
|
+
'options',
|
|
318
|
+
'paper-plane',
|
|
319
|
+
'partly-sunny',
|
|
320
|
+
'pause',
|
|
321
|
+
'pause-circle',
|
|
322
|
+
'paw',
|
|
323
|
+
'pencil',
|
|
324
|
+
'people',
|
|
325
|
+
'people-circle',
|
|
326
|
+
'person',
|
|
327
|
+
'person-add',
|
|
328
|
+
'person-circle',
|
|
329
|
+
'person-remove',
|
|
330
|
+
'phone-landscape',
|
|
331
|
+
'phone-portrait',
|
|
332
|
+
'pie-chart',
|
|
333
|
+
'pin',
|
|
334
|
+
'pint',
|
|
335
|
+
'pizza',
|
|
336
|
+
'planet',
|
|
337
|
+
'play',
|
|
338
|
+
'play-back',
|
|
339
|
+
'play-back-circle',
|
|
340
|
+
'play-circle',
|
|
341
|
+
'play-forward',
|
|
342
|
+
'play-forward-circle',
|
|
343
|
+
'play-skip-back',
|
|
344
|
+
'play-skip-back-circle',
|
|
345
|
+
'play-skip-forward',
|
|
346
|
+
'play-skip-forward-circle',
|
|
347
|
+
'podium',
|
|
348
|
+
'power',
|
|
349
|
+
'pricetag',
|
|
350
|
+
'pricetags',
|
|
351
|
+
'print',
|
|
352
|
+
'pulse',
|
|
353
|
+
'push',
|
|
354
|
+
'qr-code',
|
|
355
|
+
'radio',
|
|
356
|
+
'radio-button-off',
|
|
357
|
+
'radio-button-on',
|
|
358
|
+
'rainy',
|
|
359
|
+
'reader',
|
|
360
|
+
'receipt',
|
|
361
|
+
'recording',
|
|
362
|
+
'refresh',
|
|
363
|
+
'refresh-circle',
|
|
364
|
+
'reload',
|
|
365
|
+
'reload-circle',
|
|
366
|
+
'remove',
|
|
367
|
+
'remove-circle',
|
|
368
|
+
'reorder-four',
|
|
369
|
+
'reorder-three',
|
|
370
|
+
'reorder-two',
|
|
371
|
+
'repeat',
|
|
372
|
+
'resize',
|
|
373
|
+
'restaurant',
|
|
374
|
+
'return-down-back',
|
|
375
|
+
'return-down-forward',
|
|
376
|
+
'return-up-back',
|
|
377
|
+
'return-up-forward',
|
|
378
|
+
'ribbon',
|
|
379
|
+
'rocket',
|
|
380
|
+
'rose',
|
|
381
|
+
'sad',
|
|
382
|
+
'save',
|
|
383
|
+
'scan',
|
|
384
|
+
'scan-circle',
|
|
385
|
+
'school',
|
|
386
|
+
'search',
|
|
387
|
+
'search-circle',
|
|
388
|
+
'send',
|
|
389
|
+
'server',
|
|
390
|
+
'settings',
|
|
391
|
+
'shapes',
|
|
392
|
+
'share',
|
|
393
|
+
'share-social',
|
|
394
|
+
'shield',
|
|
395
|
+
'shield-checkmark',
|
|
396
|
+
'shirt',
|
|
397
|
+
'shuffle',
|
|
398
|
+
'skull',
|
|
399
|
+
'snow',
|
|
400
|
+
'speedometer',
|
|
401
|
+
'square',
|
|
402
|
+
'star',
|
|
403
|
+
'star-half',
|
|
404
|
+
'stats-chart',
|
|
405
|
+
'stop',
|
|
406
|
+
'stop-circle',
|
|
407
|
+
'stopwatch',
|
|
408
|
+
'subway',
|
|
409
|
+
'sunny',
|
|
410
|
+
'swap-horizontal',
|
|
411
|
+
'swap-vertical',
|
|
412
|
+
'sync',
|
|
413
|
+
'sync-circle',
|
|
414
|
+
'tablet-landscape',
|
|
415
|
+
'tablet-portrait',
|
|
416
|
+
'tennisball',
|
|
417
|
+
'terminal',
|
|
418
|
+
'text',
|
|
419
|
+
'thermometer',
|
|
420
|
+
'thumbs-down',
|
|
421
|
+
'thumbs-up',
|
|
422
|
+
'thunderstorm',
|
|
423
|
+
'time',
|
|
424
|
+
'timer',
|
|
425
|
+
'today',
|
|
426
|
+
'toggle',
|
|
427
|
+
'trail-sign',
|
|
428
|
+
'train',
|
|
429
|
+
'transgender',
|
|
430
|
+
'trash',
|
|
431
|
+
'trash-bin',
|
|
432
|
+
'trending-down',
|
|
433
|
+
'trending-up',
|
|
434
|
+
'triangle',
|
|
435
|
+
'trophy',
|
|
436
|
+
'tv',
|
|
437
|
+
'umbrella',
|
|
438
|
+
'videocam',
|
|
439
|
+
'volume-high',
|
|
440
|
+
'volume-low',
|
|
441
|
+
'volume-medium',
|
|
442
|
+
'volume-mute',
|
|
443
|
+
'volume-off',
|
|
444
|
+
'walk',
|
|
445
|
+
'wallet',
|
|
446
|
+
'warning',
|
|
447
|
+
'watch',
|
|
448
|
+
'water',
|
|
449
|
+
'wifi',
|
|
450
|
+
'wine',
|
|
451
|
+
'woman',
|
|
452
|
+
];
|
|
453
|
+
// #region other robbot related
|
|
454
|
+
/**
|
|
455
|
+
* Robbot.data.name regexp
|
|
456
|
+
*/
|
|
457
|
+
export const ROBBOT_NAME_REGEXP = /^[a-zA-Z0-9_\-.]{1,255}$/;
|
|
458
|
+
export const ROBBOT_PREFIX_SUFFIX_REGEXP = /^[a-zA-Z0-9_\-.\s👀🤖:;&]{1,64}$/;
|
|
459
|
+
export const ROBBOT_PREFIX_SUFFIX_REGEXP_DESC = `0 to 64 alphanumerics, spaces, select special characters and emojis.`;
|
|
460
|
+
// #endregion other robbot related
|
|
461
|
+
// #region gestures
|
|
462
|
+
export const GESTURE_DOUBLE_CLICK_THRESHOLD_MS = 500;
|
|
463
|
+
/**
|
|
464
|
+
* If a gesture's move threshold is less than this, then it can still be
|
|
465
|
+
* considered a single punctiliar click. Otherwise, it's a move event.
|
|
466
|
+
*
|
|
467
|
+
* IOW, a click gesture only is considered a "click" if the onMove is triggered
|
|
468
|
+
* less than this many times. If onMove is detected more than this many times,
|
|
469
|
+
* then a move gesture will be triggered.
|
|
470
|
+
*/
|
|
471
|
+
export const GESTURE_CLICK_TOLERANCE_ONMOVE_THRESHOLD_COUNT = 5;
|
|
472
|
+
// #endregion gestures
|
|
473
|
+
export const SIMPLE_CONFIG_KEY_APP_VISIBLE = 'appBarVisible';
|
|
474
|
+
export const SIMPLE_CONFIG_KEY_APP_SELECTED = 'appBarSelectedApp';
|
|
475
|
+
export const SIMPLE_CONFIG_KEY_ROBBOT_VISIBLE = 'robbotBarVisible';
|
|
476
|
+
export const SIMPLE_CONFIG_KEY_ROBBOT_SELECTED_ADDR = 'robbotBarSelectedAddr';
|
|
477
|
+
// #region app
|
|
478
|
+
export const APP_NAME_REGEXP = /^[a-zA-Z0-9_\-.]{1,32}$/;
|
|
479
|
+
export const APP_REL8N_NAME = 'app';
|
|
480
|
+
export const DEFAULT_APP_ICON = 'apps-outline';
|
|
481
|
+
// #endregion app
|
|
482
|
+
export const YOUTUBE_LINK_REG_EXP = /^https:\/\/youtu\.be\/\w+$/;
|
|
483
|
+
export const WEB_1_PATHS = ['welcome', 'about-us', 'your-data'];
|
|
484
|
+
//# sourceMappingURL=core-constants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-constants.mjs","sourceRoot":"","sources":["../src/core-constants.mts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAqB,KAAK,CAAC;AAExD;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAGpD,yDAAyD;AAEzD;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,uBAAuB,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAE5C,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAEzC;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,MAAM,CAAC,mDAAmD,qBAAqB,IAAI,CAAC,CAAC;AAE1H;;GAEG;AACH,MA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AG,eAAe,CAAC;AAC7D,MAAM,CAAC,MAAM,8BAA8B,GAAG,mBAAmB,CAAC;AAClE,MAAM,CAAC,MAAM,gCAAgC,GAAG,kBAAkB,CAAC;AACnE,MAAM,CAAC,MAAM,sCAAsC,GAAG,uBAAuB,CAAC;AAE9E,cAAc;AAEd,MAAM,CAAC,MAAM,eAAe,GAAG,yBAAyB,CAAC;AACzD,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC;AACpC,MAAM,CAAC,MAAM,gBAAgB,GAAG,cAAc,CAAC;AAE/C,iBAAiB;AAEjB,MAAM,CAAC,MAAM,oBAAoB,GAAG,4BAA4B,CAAC;AAEjE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IbAndGib } from '@ibgib/ts-gib';
|
|
2
|
+
import { IbGib_V1 } from '@ibgib/ts-gib/dist/V1/types.mjs';
|
|
3
|
+
export declare function fooClone<T>(x: T): T;
|
|
4
|
+
export declare function fooGetIbAndGib(): IbAndGib;
|
|
5
|
+
export declare function fooFactory(): Promise<IbGib_V1>;
|
|
6
|
+
//# sourceMappingURL=core-helper.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-helper.d.mts","sourceRoot":"","sources":["../src/core-helper.mts"],"names":[],"mappings":"AAAA,OAAO,EAAe,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGtD,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAK3D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAEnC;AAED,wBAAgB,cAAc,IAAI,QAAQ,CAEzC;AAED,wBAAsB,UAAU,IAAI,OAAO,CAAC,QAAQ,CAAC,CAapD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { getIbAndGib } from '@ibgib/ts-gib';
|
|
2
|
+
import { clone, extractErrorMsg, } from '@ibgib/helper-gib';
|
|
3
|
+
import { Factory_V1 as factory } from '@ibgib/ts-gib/dist/V1/factory.mjs';
|
|
4
|
+
let crypto = globalThis.crypto;
|
|
5
|
+
let { subtle } = crypto;
|
|
6
|
+
export function fooClone(x) {
|
|
7
|
+
return clone(x);
|
|
8
|
+
}
|
|
9
|
+
export function fooGetIbAndGib() {
|
|
10
|
+
return getIbAndGib({ ibGib: { ib: 'ib', gib: 'gib' } });
|
|
11
|
+
}
|
|
12
|
+
export async function fooFactory() {
|
|
13
|
+
let result = await factory.firstGen({
|
|
14
|
+
ib: 'yo',
|
|
15
|
+
parentIbGib: factory.primitive({ ib: 'yo primitive yo' }),
|
|
16
|
+
dna: true,
|
|
17
|
+
nCounter: true,
|
|
18
|
+
tjp: {
|
|
19
|
+
timestamp: true,
|
|
20
|
+
uuid: true,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
console.dir(result.newIbGib);
|
|
24
|
+
return result.newIbGib;
|
|
25
|
+
}
|
|
26
|
+
let msg = extractErrorMsg("yo");
|
|
27
|
+
console.log(msg);
|
|
28
|
+
//# sourceMappingURL=core-helper.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-helper.mjs","sourceRoot":"","sources":["../src/core-helper.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,eAAe,GAAG,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAG1E,IAAI,MAAM,GAAQ,UAAU,CAAC,MAAM,CAAC;AACpC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;AAExB,MAAM,UAAU,QAAQ,CAAI,CAAI;IAC5B,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,cAAc;IAC1B,OAAO,WAAW,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU;IAC5B,IAAI,MAAM,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC;QAChC,EAAE,EAAE,IAAI;QACR,WAAW,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,iBAAiB,EAAE,CAAC;QACzD,GAAG,EAAE,IAAI;QACT,QAAQ,EAAE,IAAI;QACd,GAAG,EAAE;YACD,SAAS,EAAE,IAAI;YACf,IAAI,EAAE,IAAI;SACb;KACJ,CAAC,CAAC;IACH,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC7B,OAAO,MAAM,CAAC,QAAQ,CAAC;AAC3B,CAAC;AAED,IAAI,GAAG,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;AAChC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC"}
|