From eacc759e4baa453b02b76b9a3640cf1924f6afc3 Mon Sep 17 00:00:00 2001 From: David Thorpe Date: Sat, 26 Oct 2024 12:48:27 +0200 Subject: [PATCH 01/10] Updated js-framework in dev2 --- README.md | 10 + chat/.npmrc | 1 - chat/package.json | 11 - example/data.json | 3499 +++++++++++++++++ {src => example}/esbuild.js | 0 example/index.html | 21 + example/index.js | 9 + example/load.js | 4 + package-lock.json | 4 +- package.json | 4 +- src/core/EventType.js | 13 + src/core/ModelElement.js | 170 + src/core/ProviderElement.js | 215 + src/core/core.js | 6 + src/geojson/FeatureElement.js | 30 + src/geojson/ShapeElement.js | 24 + src/geojson/geojson.js | 6 + {src => srcold}/app/CanvasElement.js | 0 {src => srcold}/app/CanvasNavbarElement.js | 0 {src => srcold}/app/CanvasSectionElement.js | 0 {src => srcold}/app/CardElement.js | 0 {src => srcold}/app/CardGroupElement.js | 0 {src => srcold}/app/IconElement.js | 0 {src => srcold}/app/NavDividerElement.js | 0 {src => srcold}/app/NavGroupElement.js | 0 {src => srcold}/app/NavItemElement.js | 0 {src => srcold}/app/NavSpacerElement.js | 0 {src => srcold}/app/app.css | 0 {src => srcold}/app/app.js | 0 .../assets/font/OpenSans/LICENSE.txt | 0 .../assets/font/OpenSans/OpenSans-Bold.ttf | Bin .../font/OpenSans/OpenSans-BoldItalic.ttf | Bin .../font/OpenSans/OpenSans-ExtraBold.ttf | Bin .../OpenSans/OpenSans-ExtraBoldItalic.ttf | Bin .../assets/font/OpenSans/OpenSans-Italic.ttf | Bin .../assets/font/OpenSans/OpenSans-Light.ttf | Bin .../font/OpenSans/OpenSans-LightItalic.ttf | Bin .../assets/font/OpenSans/OpenSans-Regular.ttf | Bin .../font/OpenSans/OpenSans-SemiBold.ttf | Bin .../font/OpenSans/OpenSans-SemiBoldItalic.ttf | Bin {src => srcold}/assets/font/opensans.css | 0 {src => srcold}/button/ButtonElement.js | 0 .../button/ControlButtonGroupElement.js | 0 {src => srcold}/button/button.css | 0 {src => srcold}/button/button.js | 0 {src => srcold}/core.css | 0 {src => srcold}/core/Event.js | 0 {src => srcold}/core/Model.js | 0 {src => srcold}/core/Provider.js | 0 {src => srcold}/document.css | 0 srcold/esbuild.js | 5 + {src => srcold}/form/FormControlElement.js | 0 {src => srcold}/form/FormSelectElement.js | 0 {src => srcold}/form/FormSwitchElement.js | 0 {src => srcold}/form/form.css | 0 {src => srcold}/form/form.js | 0 {src => srcold}/index.html | 0 {src => srcold}/index.html-old | 0 {src => srcold}/index.js | 0 {src => srcold}/layout/CodeElement.css.js | 0 {src => srcold}/layout/CodeElement.js | 0 {src => srcold}/layout/layout.js | 0 {src => srcold}/load.js | 0 .../old/component/badge/BadgeElement.js | 0 .../old/component/badge/BadgeGroupElement.js | 0 {src => srcold}/old/component/badge/badge.css | 0 {src => srcold}/old/component/badge/badge.js | 0 .../old/component/button/ButtonElement.js | 0 .../component/button/ButtonGroupElement.js | 0 .../component/button/CloseButtonElement.js | 0 .../old/component/form/FormDateElement.js | 0 .../old/component/form/FormElement.js | 0 .../old/component/form/FormElement.js-OLD | 0 .../component/form/FormPasswordElement.js-OLD | 0 .../old/component/form/FormTextElement.js | 0 .../old/component/icon/IconElement.js | 0 .../old/component/layout/RowElement.js | 0 .../old/component/layout/SpacerElement.js | 0 .../old/component/modal/ModalElement.js | 0 .../old/component/modal/SideModalElement.js | 0 .../old/component/nav/CanvasElement.js | 0 .../old/component/nav/ContentElement.js | 0 .../old/component/nav/NavBarElement.js | 0 .../old/component/nav/NavElement.js | 0 .../old/component/nav/NavItemElement.js | 0 .../old/component/nav/NavSpacerElement.js | 0 .../old/component/nav/SideBarElement.js | 0 .../old/component/nav/TabElement.js | 0 .../old/component/nav/TabGroupElement.js | 0 .../old/component/nav/ViewController.js | 0 .../old/component/nav/ViewElement.js | 0 .../old/component/nav/ViewGroupElement.js | 0 {src => srcold}/old/component/nav/nav.css | 0 {src => srcold}/old/component/nav/nav.js | 0 .../old/component/table/TableColumn.js | 0 .../old/component/table/TableElement.js | 0 {src => srcold}/old/component/table/table.css | 0 {src => srcold}/old/component/table/table.js | 0 {src => srcold}/popup/PopupElement.js | 0 {src => srcold}/popup/popup.css | 0 {src => srcold}/popup/popup.js | 0 {src => srcold}/test.js-old | 0 102 files changed, 4016 insertions(+), 16 deletions(-) delete mode 100644 chat/.npmrc delete mode 100644 chat/package.json create mode 100644 example/data.json rename {src => example}/esbuild.js (100%) create mode 100644 example/index.html create mode 100644 example/index.js create mode 100644 example/load.js create mode 100644 src/core/EventType.js create mode 100644 src/core/ModelElement.js create mode 100644 src/core/ProviderElement.js create mode 100644 src/core/core.js create mode 100644 src/geojson/FeatureElement.js create mode 100644 src/geojson/ShapeElement.js create mode 100644 src/geojson/geojson.js rename {src => srcold}/app/CanvasElement.js (100%) rename {src => srcold}/app/CanvasNavbarElement.js (100%) rename {src => srcold}/app/CanvasSectionElement.js (100%) rename {src => srcold}/app/CardElement.js (100%) rename {src => srcold}/app/CardGroupElement.js (100%) rename {src => srcold}/app/IconElement.js (100%) rename {src => srcold}/app/NavDividerElement.js (100%) rename {src => srcold}/app/NavGroupElement.js (100%) rename {src => srcold}/app/NavItemElement.js (100%) rename {src => srcold}/app/NavSpacerElement.js (100%) rename {src => srcold}/app/app.css (100%) rename {src => srcold}/app/app.js (100%) rename {src => srcold}/assets/font/OpenSans/LICENSE.txt (100%) rename {src => srcold}/assets/font/OpenSans/OpenSans-Bold.ttf (100%) rename {src => srcold}/assets/font/OpenSans/OpenSans-BoldItalic.ttf (100%) rename {src => srcold}/assets/font/OpenSans/OpenSans-ExtraBold.ttf (100%) rename {src => srcold}/assets/font/OpenSans/OpenSans-ExtraBoldItalic.ttf (100%) rename {src => srcold}/assets/font/OpenSans/OpenSans-Italic.ttf (100%) rename {src => srcold}/assets/font/OpenSans/OpenSans-Light.ttf (100%) rename {src => srcold}/assets/font/OpenSans/OpenSans-LightItalic.ttf (100%) rename {src => srcold}/assets/font/OpenSans/OpenSans-Regular.ttf (100%) rename {src => srcold}/assets/font/OpenSans/OpenSans-SemiBold.ttf (100%) rename {src => srcold}/assets/font/OpenSans/OpenSans-SemiBoldItalic.ttf (100%) rename {src => srcold}/assets/font/opensans.css (100%) rename {src => srcold}/button/ButtonElement.js (100%) rename {src => srcold}/button/ControlButtonGroupElement.js (100%) rename {src => srcold}/button/button.css (100%) rename {src => srcold}/button/button.js (100%) rename {src => srcold}/core.css (100%) rename {src => srcold}/core/Event.js (100%) rename {src => srcold}/core/Model.js (100%) rename {src => srcold}/core/Provider.js (100%) rename {src => srcold}/document.css (100%) create mode 100644 srcold/esbuild.js rename {src => srcold}/form/FormControlElement.js (100%) rename {src => srcold}/form/FormSelectElement.js (100%) rename {src => srcold}/form/FormSwitchElement.js (100%) rename {src => srcold}/form/form.css (100%) rename {src => srcold}/form/form.js (100%) rename {src => srcold}/index.html (100%) rename {src => srcold}/index.html-old (100%) rename {src => srcold}/index.js (100%) rename {src => srcold}/layout/CodeElement.css.js (100%) rename {src => srcold}/layout/CodeElement.js (100%) rename {src => srcold}/layout/layout.js (100%) rename {src => srcold}/load.js (100%) rename {src => srcold}/old/component/badge/BadgeElement.js (100%) rename {src => srcold}/old/component/badge/BadgeGroupElement.js (100%) rename {src => srcold}/old/component/badge/badge.css (100%) rename {src => srcold}/old/component/badge/badge.js (100%) rename {src => srcold}/old/component/button/ButtonElement.js (100%) rename {src => srcold}/old/component/button/ButtonGroupElement.js (100%) rename {src => srcold}/old/component/button/CloseButtonElement.js (100%) rename {src => srcold}/old/component/form/FormDateElement.js (100%) rename {src => srcold}/old/component/form/FormElement.js (100%) rename {src => srcold}/old/component/form/FormElement.js-OLD (100%) rename {src => srcold}/old/component/form/FormPasswordElement.js-OLD (100%) rename {src => srcold}/old/component/form/FormTextElement.js (100%) rename {src => srcold}/old/component/icon/IconElement.js (100%) rename {src => srcold}/old/component/layout/RowElement.js (100%) rename {src => srcold}/old/component/layout/SpacerElement.js (100%) rename {src => srcold}/old/component/modal/ModalElement.js (100%) rename {src => srcold}/old/component/modal/SideModalElement.js (100%) rename {src => srcold}/old/component/nav/CanvasElement.js (100%) rename {src => srcold}/old/component/nav/ContentElement.js (100%) rename {src => srcold}/old/component/nav/NavBarElement.js (100%) rename {src => srcold}/old/component/nav/NavElement.js (100%) rename {src => srcold}/old/component/nav/NavItemElement.js (100%) rename {src => srcold}/old/component/nav/NavSpacerElement.js (100%) rename {src => srcold}/old/component/nav/SideBarElement.js (100%) rename {src => srcold}/old/component/nav/TabElement.js (100%) rename {src => srcold}/old/component/nav/TabGroupElement.js (100%) rename {src => srcold}/old/component/nav/ViewController.js (100%) rename {src => srcold}/old/component/nav/ViewElement.js (100%) rename {src => srcold}/old/component/nav/ViewGroupElement.js (100%) rename {src => srcold}/old/component/nav/nav.css (100%) rename {src => srcold}/old/component/nav/nav.js (100%) rename {src => srcold}/old/component/table/TableColumn.js (100%) rename {src => srcold}/old/component/table/TableElement.js (100%) rename {src => srcold}/old/component/table/table.css (100%) rename {src => srcold}/old/component/table/table.js (100%) rename {src => srcold}/popup/PopupElement.js (100%) rename {src => srcold}/popup/popup.css (100%) rename {src => srcold}/popup/popup.js (100%) rename {src => srcold}/test.js-old (100%) diff --git a/README.md b/README.md index 953e544..ff7b70c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,12 @@ # js-framework +To install packages, + +```bash +npm install +``` + +Development mode, + +```bash +npm run dev \ No newline at end of file diff --git a/chat/.npmrc b/chat/.npmrc deleted file mode 100644 index 4462dca..0000000 --- a/chat/.npmrc +++ /dev/null @@ -1 +0,0 @@ -@mutablelogic:registry=https://npm.pkg.github.com/:_authToken=${GITHUB_TOKEN} diff --git a/chat/package.json b/chat/package.json deleted file mode 100644 index e6f2491..0000000 --- a/chat/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "@mutablelogic/chat", - "version": "1.0.0", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "description": "" -} diff --git a/example/data.json b/example/data.json new file mode 100644 index 0000000..7e4e752 --- /dev/null +++ b/example/data.json @@ -0,0 +1,3499 @@ +{ + "type": "Feature", + "title": "Donestska", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 37.9765625, + 49.13134765625 + ], + [ + 37.981201171875, + 49.132232666015625 + ], + [ + 37.98541259765625, + 49.13409423828125 + ], + [ + 38.011505126953125, + 49.149658203125 + ], + [ + 38.015838623046875, + 49.151397705078125 + ], + [ + 38.0206298828125, + 49.152252197265625 + ], + [ + 38.061767578125, + 49.150848388671875 + ], + [ + 38.066741943359375, + 49.150054931640625 + ], + [ + 38.070465087890625, + 49.148040771484375 + ], + [ + 38.070159912109375, + 49.142913818359375 + ], + [ + 38.06317138671875, + 49.1170654296875 + ], + [ + 38.062255859375, + 49.109222412109375 + ], + [ + 38.062408447265625, + 49.10552978515625 + ], + [ + 38.0628662109375, + 49.10198974609375 + ], + [ + 38.063323974609375, + 49.0947265625 + ], + [ + 38.06207275390625, + 49.09063720703125 + ], + [ + 38.060211181640625, + 49.086639404296875 + ], + [ + 38.057586669921875, + 49.083251953125 + ], + [ + 38.05450439453125, + 49.08038330078125 + ], + [ + 38.04388427734375, + 49.07281494140625 + ], + [ + 38.041015625, + 49.0699462890625 + ], + [ + 38.04266357421875, + 49.061798095703125 + ], + [ + 38.048583984375, + 49.0498046875 + ], + [ + 38.07757568359375, + 49.00360107421875 + ], + [ + 38.0777587890625, + 49.001220703125 + ], + [ + 38.0777587890625, + 48.999847412109375 + ], + [ + 38.0772705078125, + 48.99822998046875 + ], + [ + 38.0760498046875, + 48.99530029296875 + ], + [ + 38.073699951171875, + 48.992340087890625 + ], + [ + 38.06982421875, + 48.990325927734375 + ], + [ + 38.065338134765625, + 48.989166259765625 + ], + [ + 38.049224853515625, + 48.9884033203125 + ], + [ + 38.044830322265625, + 48.9874267578125 + ], + [ + 38.043182373046875, + 48.984893798828125 + ], + [ + 38.04254150390625, + 48.981536865234375 + ], + [ + 38.042236328125, + 48.978179931640625 + ], + [ + 38.040496826171875, + 48.97528076171875 + ], + [ + 38.036285400390625, + 48.974151611328125 + ], + [ + 38.024658203125, + 48.97454833984375 + ], + [ + 38.019561767578125, + 48.973785400390625 + ], + [ + 38.015838623046875, + 48.97161865234375 + ], + [ + 38.01287841796875, + 48.9686279296875 + ], + [ + 38.010406494140625, + 48.9649658203125 + ], + [ + 38.008544921875, + 48.96112060546875 + ], + [ + 38.008087158203125, + 48.957275390625 + ], + [ + 38.00994873046875, + 48.954254150390625 + ], + [ + 38.015838623046875, + 48.952545166015625 + ], + [ + 38.02142333984375, + 48.951873779296875 + ], + [ + 38.028228759765625, + 48.95025634765625 + ], + [ + 38.03521728515625, + 48.947113037109375 + ], + [ + 38.044830322265625, + 48.940643310546875 + ], + [ + 38.051239013671875, + 48.938140869140625 + ], + [ + 38.0577392578125, + 48.937042236328125 + ], + [ + 38.171173095703125, + 48.932037353515625 + ], + [ + 38.2100830078125, + 48.923919677734375 + ], + [ + 38.213409423828125, + 48.913116455078125 + ], + [ + 38.22503662109375, + 48.889923095703125 + ], + [ + 38.228118896484375, + 48.879913330078125 + ], + [ + 38.229522705078125, + 48.873016357421875 + ], + [ + 38.229522705078125, + 48.858154296875 + ], + [ + 38.2310791015625, + 48.854248046875 + ], + [ + 38.23480224609375, + 48.850738525390625 + ], + [ + 38.243316650390625, + 48.84698486328125 + ], + [ + 38.25726318359375, + 48.844146728515625 + ], + [ + 38.263153076171875, + 48.84381103515625 + ], + [ + 38.275146484375, + 48.841827392578125 + ], + [ + 38.27947998046875, + 48.839141845703125 + ], + [ + 38.281494140625, + 48.835205078125 + ], + [ + 38.281036376953125, + 48.82843017578125 + ], + [ + 38.279327392578125, + 48.82373046875 + ], + [ + 38.27947998046875, + 48.8182373046875 + ], + [ + 38.282745361328125, + 48.811676025390625 + ], + [ + 38.291748046875, + 48.800689697265625 + ], + [ + 38.2957763671875, + 48.790069580078125 + ], + [ + 38.296539306640625, + 48.78314208984375 + ], + [ + 38.294830322265625, + 48.7781982421875 + ], + [ + 38.290191650390625, + 48.770751953125 + ], + [ + 38.28460693359375, + 48.76416015625 + ], + [ + 38.272369384765625, + 48.75225830078125 + ], + [ + 38.26971435546875, + 48.748779296875 + ], + [ + 38.267974853515625, + 48.744873046875 + ], + [ + 38.266937255859375, + 48.7410888671875 + ], + [ + 38.266632080078125, + 48.73785400390625 + ], + [ + 38.26641845703125, + 48.73272705078125 + ], + [ + 38.267547607421875, + 48.72991943359375 + ], + [ + 38.269500732421875, + 48.72735595703125 + ], + [ + 38.274383544921875, + 48.7266845703125 + ], + [ + 38.2940673828125, + 48.72967529296875 + ], + [ + 38.299346923828125, + 48.729766845703125 + ], + [ + 38.3038330078125, + 48.728515625 + ], + [ + 38.30645751953125, + 48.725372314453125 + ], + [ + 38.305389404296875, + 48.71929931640625 + ], + [ + 38.30303955078125, + 48.714996337890625 + ], + [ + 38.30010986328125, + 48.711090087890625 + ], + [ + 38.284149169921875, + 48.696929931640625 + ], + [ + 38.261444091796875, + 48.6837158203125 + ], + [ + 38.255401611328125, + 48.679046630859375 + ], + [ + 38.25384521484375, + 48.67742919921875 + ], + [ + 38.2518310546875, + 48.674560546875 + ], + [ + 38.249969482421875, + 48.671112060546875 + ], + [ + 38.2489013671875, + 48.6673583984375 + ], + [ + 38.248748779296875, + 48.66357421875 + ], + [ + 38.251373291015625, + 48.638580322265625 + ], + [ + 38.25604248046875, + 48.622650146484375 + ], + [ + 38.25634765625, + 48.6207275390625 + ], + [ + 38.256195068359375, + 48.61773681640625 + ], + [ + 38.253997802734375, + 48.609832763671875 + ], + [ + 38.253692626953125, + 48.605499267578125 + ], + [ + 38.255706787109375, + 48.600921630859375 + ], + [ + 38.267852783203125, + 48.579803466796875 + ], + [ + 38.27001953125, + 48.5736083984375 + ], + [ + 38.26983642578125, + 48.568145751953125 + ], + [ + 38.268157958984375, + 48.563934326171875 + ], + [ + 38.261749267578125, + 48.5521240234375 + ], + [ + 38.2603759765625, + 48.54803466796875 + ], + [ + 38.26007080078125, + 48.54425048828125 + ], + [ + 38.262237548828125, + 48.540283203125 + ], + [ + 38.2667236328125, + 48.536468505859375 + ], + [ + 38.27716064453125, + 48.531585693359375 + ], + [ + 38.289886474609375, + 48.5279541015625 + ], + [ + 38.30523681640625, + 48.5255126953125 + ], + [ + 38.310333251953125, + 48.523468017578125 + ], + [ + 38.31390380859375, + 48.520538330078125 + ], + [ + 38.314849853515625, + 48.515411376953125 + ], + [ + 38.31500244140625, + 48.511077880859375 + ], + [ + 38.31329345703125, + 48.50347900390625 + ], + [ + 38.3118896484375, + 48.500396728515625 + ], + [ + 38.311279296875, + 48.49951171875 + ], + [ + 38.308624267578125, + 48.494659423828125 + ], + [ + 38.305389404296875, + 48.486328125 + ], + [ + 38.302581787109375, + 48.474090576171875 + ], + [ + 38.301971435546875, + 48.4664306640625 + ], + [ + 38.3021240234375, + 48.459014892578125 + ], + [ + 38.304901123046875, + 48.45458984375 + ], + [ + 38.3101806640625, + 48.449951171875 + ], + [ + 38.32366943359375, + 48.443145751953125 + ], + [ + 38.3323974609375, + 48.4405517578125 + ], + [ + 38.33984375, + 48.43939208984375 + ], + [ + 38.34527587890625, + 48.439239501953125 + ], + [ + 38.35101318359375, + 48.438201904296875 + ], + [ + 38.36419677734375, + 48.432586669921875 + ], + [ + 38.370086669921875, + 48.43182373046875 + ], + [ + 38.375335693359375, + 48.432098388671875 + ], + [ + 38.37957763671875, + 48.4337158203125 + ], + [ + 38.383087158203125, + 48.435882568359375 + ], + [ + 38.3896484375, + 48.441253662109375 + ], + [ + 38.39337158203125, + 48.4434814453125 + ], + [ + 38.39910888671875, + 48.442291259765625 + ], + [ + 38.40625, + 48.437347412109375 + ], + [ + 38.4171142578125, + 48.424102783203125 + ], + [ + 38.421142578125, + 48.41693115234375 + ], + [ + 38.423614501953125, + 48.411285400390625 + ], + [ + 38.424530029296875, + 48.40802001953125 + ], + [ + 38.42608642578125, + 48.404876708984375 + ], + [ + 38.429962158203125, + 48.401214599609375 + ], + [ + 38.435699462890625, + 48.3970947265625 + ], + [ + 38.457000732421875, + 48.3856201171875 + ], + [ + 38.466766357421875, + 48.37615966796875 + ], + [ + 38.480560302734375, + 48.35760498046875 + ], + [ + 38.48272705078125, + 48.35284423828125 + ], + [ + 38.48272705078125, + 48.350738525390625 + ], + [ + 38.481964111328125, + 48.347625732421875 + ], + [ + 38.48040771484375, + 48.344207763671875 + ], + [ + 38.47808837890625, + 48.34100341796875 + ], + [ + 38.474822998046875, + 48.338287353515625 + ], + [ + 38.47125244140625, + 48.33612060546875 + ], + [ + 38.46722412109375, + 48.334503173828125 + ], + [ + 38.46319580078125, + 48.333465576171875 + ], + [ + 38.417572021484375, + 48.328338623046875 + ], + [ + 38.41461181640625, + 48.327667236328125 + ], + [ + 38.4119873046875, + 48.32647705078125 + ], + [ + 38.409820556640625, + 48.324127197265625 + ], + [ + 38.40966796875, + 48.32110595703125 + ], + [ + 38.40997314453125, + 48.317718505859375 + ], + [ + 38.41290283203125, + 48.310455322265625 + ], + [ + 38.41912841796875, + 48.298919677734375 + ], + [ + 38.423614501953125, + 48.285614013671875 + ], + [ + 38.426727294921875, + 48.28204345703125 + ], + [ + 38.432281494140625, + 48.27862548828125 + ], + [ + 38.445220947265625, + 48.27459716796875 + ], + [ + 38.46087646484375, + 48.27239990234375 + ], + [ + 38.56097412109375, + 48.278839111328125 + ], + [ + 38.566253662109375, + 48.277618408203125 + ], + [ + 38.57073974609375, + 48.27435302734375 + ], + [ + 38.57647705078125, + 48.26629638671875 + ], + [ + 38.58111572265625, + 48.25689697265625 + ], + [ + 38.584228515625, + 48.246612548828125 + ], + [ + 38.588714599609375, + 48.237091064453125 + ], + [ + 38.604278564453125, + 48.21331787109375 + ], + [ + 38.6058349609375, + 48.21026611328125 + ], + [ + 38.607177734375, + 48.206939697265625 + ], + [ + 38.606536865234375, + 48.20318603515625 + ], + [ + 38.603668212890625, + 48.195068359375 + ], + [ + 38.601470947265625, + 48.18701171875 + ], + [ + 38.600982666015625, + 48.18316650390625 + ], + [ + 38.603668212890625, + 48.179107666015625 + ], + [ + 38.609222412109375, + 48.17498779296875 + ], + [ + 38.630462646484375, + 48.165924072265625 + ], + [ + 38.75616455078125, + 48.134002685546875 + ], + [ + 38.81402587890625, + 48.111419677734375 + ], + [ + 38.81805419921875, + 48.10791015625 + ], + [ + 38.8211669921875, + 48.10321044921875 + ], + [ + 38.822723388671875, + 48.094268798828125 + ], + [ + 38.821319580078125, + 48.089019775390625 + ], + [ + 38.81884765625, + 48.0848388671875 + ], + [ + 38.80999755859375, + 48.075439453125 + ], + [ + 38.80487060546875, + 48.068450927734375 + ], + [ + 38.802703857421875, + 48.064605712890625 + ], + [ + 38.8011474609375, + 48.060546875 + ], + [ + 38.80023193359375, + 48.056671142578125 + ], + [ + 38.80535888671875, + 48.050445556640625 + ], + [ + 38.814971923828125, + 48.04296875 + ], + [ + 38.840118408203125, + 48.0279541015625 + ], + [ + 38.852691650390625, + 48.0228271484375 + ], + [ + 38.8623046875, + 48.020111083984375 + ], + [ + 38.93365478515625, + 48.021087646484375 + ], + [ + 39.027099609375, + 48.006622314453125 + ], + [ + 39.031280517578125, + 48.00103759765625 + ], + [ + 39.03375244140625, + 47.991943359375 + ], + [ + 39.030975341796875, + 47.958770751953125 + ], + [ + 39.031280517578125, + 47.9498291015625 + ], + [ + 39.0357666015625, + 47.942535400390625 + ], + [ + 39.04010009765625, + 47.938568115234375 + ], + [ + 39.044921875, + 47.9356689453125 + ], + [ + 39.05364990234375, + 47.93157958984375 + ], + [ + 39.05499267578125, + 47.92376708984375 + ], + [ + 39.055511474609375, + 47.9173583984375 + ], + [ + 39.0380859375, + 47.8658447265625 + ], + [ + 39.036224365234375, + 47.857330322265625 + ], + [ + 39.036163330078125, + 47.85699462890625 + ], + [ + 38.877227783203125, + 47.861236572265625 + ], + [ + 38.8309326171875, + 47.848236083984375 + ], + [ + 38.79620361328125, + 47.819915771484375 + ], + [ + 38.77099609375, + 47.78082275390625 + ], + [ + 38.7532958984375, + 47.735137939453125 + ], + [ + 38.745147705078125, + 47.693084716796875 + ], + [ + 38.7344970703125, + 47.6771240234375 + ], + [ + 38.7130126953125, + 47.67572021484375 + ], + [ + 38.6778564453125, + 47.685150146484375 + ], + [ + 38.662139892578125, + 47.68328857421875 + ], + [ + 38.643341064453125, + 47.67352294921875 + ], + [ + 38.606353759765625, + 47.645050048828125 + ], + [ + 38.587646484375, + 47.63427734375 + ], + [ + 38.56219482421875, + 47.626617431640625 + ], + [ + 38.3529052734375, + 47.607086181640625 + ], + [ + 38.31903076171875, + 47.591278076171875 + ], + [ + 38.29339599609375, + 47.562774658203125 + ], + [ + 38.274383544921875, + 47.52783203125 + ], + [ + 38.26031494140625, + 47.492919921875 + ], + [ + 38.26361083984375, + 47.42169189453125 + ], + [ + 38.2579345703125, + 47.393218994140625 + ], + [ + 38.23333740234375, + 47.362396240234375 + ], + [ + 38.203369140625, + 47.334625244140625 + ], + [ + 38.1905517578125, + 47.31689453125 + ], + [ + 38.188690185546875, + 47.30096435546875 + ], + [ + 38.20098876953125, + 47.290618896484375 + ], + [ + 38.220306396484375, + 47.288787841796875 + ], + [ + 38.25762939453125, + 47.292724609375 + ], + [ + 38.275726318359375, + 47.29180908203125 + ], + [ + 38.291839599609375, + 47.287017822265625 + ], + [ + 38.300933837890625, + 47.2760009765625 + ], + [ + 38.29815673828125, + 47.256011962890625 + ], + [ + 38.284698486328125, + 47.241119384765625 + ], + [ + 38.263946533203125, + 47.23150634765625 + ], + [ + 38.241302490234375, + 47.22393798828125 + ], + [ + 38.222503662109375, + 47.2152099609375 + ], + [ + 38.203460693359375, + 47.192291259765625 + ], + [ + 38.19696044921875, + 47.162384033203125 + ], + [ + 38.201416015625, + 47.1307373046875 + ], + [ + 38.216644287109375, + 47.103240966796875 + ], + [ + 38.216644287109375, + 47.103240966796875 + ], + [ + 38.216461181640625, + 47.10308837890625 + ], + [ + 38.1962890625, + 47.0894775390625 + ], + [ + 38.142242431640625, + 47.03765869140625 + ], + [ + 38.108062744140625, + 47.026336669921875 + ], + [ + 38.13037109375, + 47.05841064453125 + ], + [ + 38.130035400390625, + 47.07464599609375 + ], + [ + 38.104339599609375, + 47.08160400390625 + ], + [ + 38.071533203125, + 47.09979248046875 + ], + [ + 38.066558837890625, + 47.09808349609375 + ], + [ + 38.06103515625, + 47.094940185546875 + ], + [ + 38.03515625, + 47.08428955078125 + ], + [ + 38.026214599609375, + 47.08160400390625 + ], + [ + 37.987640380859375, + 47.0919189453125 + ], + [ + 37.962066650390625, + 47.095916748046875 + ], + [ + 37.950439453125, + 47.09124755859375 + ], + [ + 37.861083984375, + 47.10150146484375 + ], + [ + 37.753265380859375, + 47.07525634765625 + ], + [ + 37.710296630859375, + 47.07415771484375 + ], + [ + 37.580718994140625, + 47.09039306640625 + ], + [ + 37.54638671875, + 47.08160400390625 + ], + [ + 37.48291015625, + 47.03594970703125 + ], + [ + 37.3779296875, + 46.93389892578125 + ], + [ + 37.351715087890625, + 46.89874267578125 + ], + [ + 37.335205078125, + 46.8824462890625 + ], + [ + 37.31298828125, + 46.87554931640625 + ], + [ + 37.3173828125, + 46.90081787109375 + ], + [ + 37.29541015625, + 46.92022705078125 + ], + [ + 37.2607421875, + 46.93267822265625 + ], + [ + 37.22705078125, + 46.936981201171875 + ], + [ + 37.208160400390625, + 46.933563232421875 + ], + [ + 37.162261962890625, + 46.9090576171875 + ], + [ + 37.046539306640625, + 46.87774658203125 + ], + [ + 37.037750244140625, + 46.87664794921875 + ], + [ + 37.037689208984375, + 46.876708984375 + ], + [ + 37.009552001953125, + 46.914825439453125 + ], + [ + 37.00830078125, + 46.918243408203125 + ], + [ + 37.007843017578125, + 46.92193603515625 + ], + [ + 37.009552001953125, + 46.926788330078125 + ], + [ + 37.012481689453125, + 46.9300537109375 + ], + [ + 37.015594482421875, + 46.933135986328125 + ], + [ + 37.018829345703125, + 46.93572998046875 + ], + [ + 37.04742431640625, + 46.953857421875 + ], + [ + 37.0511474609375, + 46.95684814453125 + ], + [ + 37.057037353515625, + 46.95947265625 + ], + [ + 37.06182861328125, + 46.9610595703125 + ], + [ + 37.0672607421875, + 46.96099853515625 + ], + [ + 37.07208251953125, + 46.959716796875 + ], + [ + 37.081512451171875, + 46.956207275390625 + ], + [ + 37.086334228515625, + 46.955108642578125 + ], + [ + 37.0911865234375, + 46.954986572265625 + ], + [ + 37.09552001953125, + 46.956085205078125 + ], + [ + 37.099700927734375, + 46.957733154296875 + ], + [ + 37.11444091796875, + 46.9656982421875 + ], + [ + 37.115692138671875, + 46.969879150390625 + ], + [ + 37.11444091796875, + 46.97576904296875 + ], + [ + 37.093658447265625, + 47 + ], + [ + 37.09381103515625, + 47.000885009765625 + ], + [ + 37.098480224609375, + 47.005706787109375 + ], + [ + 37.105621337890625, + 47.011260986328125 + ], + [ + 37.116607666015625, + 47.017669677734375 + ], + [ + 37.119720458984375, + 47.02020263671875 + ], + [ + 37.1204833984375, + 47.023895263671875 + ], + [ + 37.11846923828125, + 47.028167724609375 + ], + [ + 37.111328125, + 47.033905029296875 + ], + [ + 37.106231689453125, + 47.0369873046875 + ], + [ + 37.090972900390625, + 47.04388427734375 + ], + [ + 37.0740966796875, + 47.0557861328125 + ], + [ + 37.070831298828125, + 47.057525634765625 + ], + [ + 37.067108154296875, + 47.05804443359375 + ], + [ + 37.0638427734375, + 47.056549072265625 + ], + [ + 37.060760498046875, + 47.0540771484375 + ], + [ + 37.055328369140625, + 47.047821044921875 + ], + [ + 37.052520751953125, + 47.04522705078125 + ], + [ + 37.04913330078125, + 47.044769287109375 + ], + [ + 37.045867919921875, + 47.046142578125 + ], + [ + 37.01092529296875, + 47.06561279296875 + ], + [ + 37.006439208984375, + 47.069915771484375 + ], + [ + 37.0025634765625, + 47.076507568359375 + ], + [ + 36.99078369140625, + 47.10614013671875 + ], + [ + 36.9830322265625, + 47.117431640625 + ], + [ + 36.96746826171875, + 47.135467529296875 + ], + [ + 36.9625244140625, + 47.139678955078125 + ], + [ + 36.95880126953125, + 47.14190673828125 + ], + [ + 36.94049072265625, + 47.149627685546875 + ], + [ + 36.897674560546875, + 47.16217041015625 + ], + [ + 36.88897705078125, + 47.166046142578125 + ], + [ + 36.86444091796875, + 47.18243408203125 + ], + [ + 36.85870361328125, + 47.187652587890625 + ], + [ + 36.85699462890625, + 47.190643310546875 + ], + [ + 36.856536865234375, + 47.193695068359375 + ], + [ + 36.860076904296875, + 47.197235107421875 + ], + [ + 36.86444091796875, + 47.199005126953125 + ], + [ + 36.869903564453125, + 47.199798583984375 + ], + [ + 36.922607421875, + 47.202728271484375 + ], + [ + 36.931671142578125, + 47.204864501953125 + ], + [ + 36.935546875, + 47.206573486328125 + ], + [ + 36.938629150390625, + 47.208984375 + ], + [ + 36.940338134765625, + 47.212310791015625 + ], + [ + 36.941131591796875, + 47.2159423828125 + ], + [ + 36.938018798828125, + 47.241119384765625 + ], + [ + 36.9361572265625, + 47.248138427734375 + ], + [ + 36.93353271484375, + 47.25360107421875 + ], + [ + 36.918487548828125, + 47.275146484375 + ], + [ + 36.9139404296875, + 47.283599853515625 + ], + [ + 36.912994384765625, + 47.293853759765625 + ], + [ + 36.9156494140625, + 47.298248291015625 + ], + [ + 36.919403076171875, + 47.30126953125 + ], + [ + 36.92779541015625, + 47.3043212890625 + ], + [ + 36.93212890625, + 47.305084228515625 + ], + [ + 36.93646240234375, + 47.3050537109375 + ], + [ + 36.93988037109375, + 47.30352783203125 + ], + [ + 36.94329833984375, + 47.30145263671875 + ], + [ + 36.947021484375, + 47.299530029296875 + ], + [ + 36.95196533203125, + 47.298736572265625 + ], + [ + 36.9620361328125, + 47.298583984375 + ], + [ + 36.966552734375, + 47.297607421875 + ], + [ + 36.970123291015625, + 47.295654296875 + ], + [ + 36.97320556640625, + 47.293212890625 + ], + [ + 36.977386474609375, + 47.291107177734375 + ], + [ + 36.98907470703125, + 47.28863525390625 + ], + [ + 37.007843017578125, + 47.28692626953125 + ], + [ + 37.0289306640625, + 47.28753662109375 + ], + [ + 37.065399169921875, + 47.296173095703125 + ], + [ + 37.069427490234375, + 47.29803466796875 + ], + [ + 37.0723876953125, + 47.30059814453125 + ], + [ + 37.074249267578125, + 47.304168701171875 + ], + [ + 37.07470703125, + 47.307891845703125 + ], + [ + 37.0740966796875, + 47.318817138671875 + ], + [ + 37.074859619140625, + 47.322723388671875 + ], + [ + 37.07672119140625, + 47.326385498046875 + ], + [ + 37.078887939453125, + 47.329986572265625 + ], + [ + 37.0877685546875, + 47.339874267578125 + ], + [ + 37.089935302734375, + 47.342926025390625 + ], + [ + 37.092132568359375, + 47.346771240234375 + ], + [ + 37.0958251953125, + 47.355194091796875 + ], + [ + 37.100189208984375, + 47.36273193359375 + ], + [ + 37.103271484375, + 47.3656005859375 + ], + [ + 37.106536865234375, + 47.368072509765625 + ], + [ + 37.11444091796875, + 47.3714599609375 + ], + [ + 37.118621826171875, + 47.372344970703125 + ], + [ + 37.122802734375, + 47.372650146484375 + ], + [ + 37.12591552734375, + 47.37255859375 + ], + [ + 37.130706787109375, + 47.37188720703125 + ], + [ + 37.135528564453125, + 47.37054443359375 + ], + [ + 37.139862060546875, + 47.36859130859375 + ], + [ + 37.143280029296875, + 47.366363525390625 + ], + [ + 37.149688720703125, + 47.36138916015625 + ], + [ + 37.1524658203125, + 47.358642578125 + ], + [ + 37.157135009765625, + 47.352996826171875 + ], + [ + 37.15899658203125, + 47.350067138671875 + ], + [ + 37.1610107421875, + 47.3475341796875 + ], + [ + 37.16363525390625, + 47.34588623046875 + ], + [ + 37.167205810546875, + 47.346282958984375 + ], + [ + 37.17108154296875, + 47.34747314453125 + ], + [ + 37.17913818359375, + 47.350830078125 + ], + [ + 37.182403564453125, + 47.353057861328125 + ], + [ + 37.185028076171875, + 47.3555908203125 + ], + [ + 37.18548583984375, + 47.359100341796875 + ], + [ + 37.184722900390625, + 47.362884521484375 + ], + [ + 37.183319091796875, + 47.367767333984375 + ], + [ + 37.18194580078125, + 47.375762939453125 + ], + [ + 37.1822509765625, + 47.379669189453125 + ], + [ + 37.183013916015625, + 47.383697509765625 + ], + [ + 37.1845703125, + 47.38787841796875 + ], + [ + 37.188751220703125, + 47.39544677734375 + ], + [ + 37.19866943359375, + 47.40911865234375 + ], + [ + 37.199615478515625, + 47.413238525390625 + ], + [ + 37.199310302734375, + 47.42205810546875 + ], + [ + 37.199920654296875, + 47.425567626953125 + ], + [ + 37.2017822265625, + 47.42913818359375 + ], + [ + 37.217803955078125, + 47.448394775390625 + ], + [ + 37.22027587890625, + 47.451934814453125 + ], + [ + 37.22088623046875, + 47.45526123046875 + ], + [ + 37.21917724609375, + 47.4581298828125 + ], + [ + 37.21142578125, + 47.45947265625 + ], + [ + 37.1943359375, + 47.459259033203125 + ], + [ + 37.15216064453125, + 47.4638671875 + ], + [ + 37.147308349609375, + 47.463226318359375 + ], + [ + 37.143890380859375, + 47.461212158203125 + ], + [ + 37.140655517578125, + 47.454803466796875 + ], + [ + 37.1376953125, + 47.4522705078125 + ], + [ + 37.134124755859375, + 47.450408935546875 + ], + [ + 37.128692626953125, + 47.451171875 + ], + [ + 37.122344970703125, + 47.454620361328125 + ], + [ + 37.102813720703125, + 47.47528076171875 + ], + [ + 37.099884033203125, + 47.477813720703125 + ], + [ + 37.02117919921875, + 47.524200439453125 + ], + [ + 36.99542236328125, + 47.5474853515625 + ], + [ + 36.987518310546875, + 47.552520751953125 + ], + [ + 36.9442138671875, + 47.57037353515625 + ], + [ + 36.936767578125, + 47.57147216796875 + ], + [ + 36.93072509765625, + 47.571044921875 + ], + [ + 36.9041748046875, + 47.557342529296875 + ], + [ + 36.897186279296875, + 47.552734375 + ], + [ + 36.893310546875, + 47.550872802734375 + ], + [ + 36.8818359375, + 47.555908203125 + ], + [ + 36.864959716796875, + 47.56634521484375 + ], + [ + 36.825836181640625, + 47.5958251953125 + ], + [ + 36.80902099609375, + 47.605560302734375 + ], + [ + 36.797882080078125, + 47.6102294921875 + ], + [ + 36.766571044921875, + 47.60150146484375 + ], + [ + 36.7569580078125, + 47.6002197265625 + ], + [ + 36.7520751953125, + 47.6016845703125 + ], + [ + 36.74884033203125, + 47.6051025390625 + ], + [ + 36.748046875, + 47.61199951171875 + ], + [ + 36.74884033203125, + 47.617279052734375 + ], + [ + 36.7520751953125, + 47.62628173828125 + ], + [ + 36.75323486328125, + 47.63037109375 + ], + [ + 36.752410888671875, + 47.633880615234375 + ], + [ + 36.74945068359375, + 47.636444091796875 + ], + [ + 36.73193359375, + 47.638824462890625 + ], + [ + 36.727294921875, + 47.6405029296875 + ], + [ + 36.723724365234375, + 47.64404296875 + ], + [ + 36.72125244140625, + 47.64892578125 + ], + [ + 36.720001220703125, + 47.657745361328125 + ], + [ + 36.7227783203125, + 47.66131591796875 + ], + [ + 36.726959228515625, + 47.663421630859375 + ], + [ + 36.736419677734375, + 47.665283203125 + ], + [ + 36.744964599609375, + 47.66802978515625 + ], + [ + 36.748382568359375, + 47.669891357421875 + ], + [ + 36.7491455078125, + 47.67218017578125 + ], + [ + 36.747283935546875, + 47.674896240234375 + ], + [ + 36.74078369140625, + 47.67706298828125 + ], + [ + 36.715179443359375, + 47.681365966796875 + ], + [ + 36.708831787109375, + 47.685028076171875 + ], + [ + 36.703094482421875, + 47.690826416015625 + ], + [ + 36.689239501953125, + 47.71588134765625 + ], + [ + 36.661346435546875, + 47.757110595703125 + ], + [ + 36.658538818359375, + 47.763671875 + ], + [ + 36.656707763671875, + 47.778045654296875 + ], + [ + 36.654998779296875, + 47.78497314453125 + ], + [ + 36.652984619140625, + 47.787811279296875 + ], + [ + 36.649566650390625, + 47.78973388671875 + ], + [ + 36.643035888671875, + 47.789794921875 + ], + [ + 36.616943359375, + 47.786346435546875 + ], + [ + 36.605804443359375, + 47.786468505859375 + ], + [ + 36.59417724609375, + 47.7882080078125 + ], + [ + 36.583740234375, + 47.7913818359375 + ], + [ + 36.576904296875, + 47.803009033203125 + ], + [ + 36.576141357421875, + 47.844207763671875 + ], + [ + 36.5694580078125, + 47.867340087890625 + ], + [ + 36.565887451171875, + 47.87060546875 + ], + [ + 36.55999755859375, + 47.874176025390625 + ], + [ + 36.5458984375, + 47.876922607421875 + ], + [ + 36.5367431640625, + 47.880096435546875 + ], + [ + 36.53302001953125, + 47.883636474609375 + ], + [ + 36.531341552734375, + 47.887359619140625 + ], + [ + 36.5311279296875, + 47.89111328125 + ], + [ + 36.531341552734375, + 47.895263671875 + ], + [ + 36.53204345703125, + 47.899658203125 + ], + [ + 36.534423828125, + 47.905029296875 + ], + [ + 36.537689208984375, + 47.908172607421875 + ], + [ + 36.541717529296875, + 47.910247802734375 + ], + [ + 36.55828857421875, + 47.91070556640625 + ], + [ + 36.5648193359375, + 47.911956787109375 + ], + [ + 36.572418212890625, + 47.915679931640625 + ], + [ + 36.578460693359375, + 47.917266845703125 + ], + [ + 36.584564208984375, + 47.9180908203125 + ], + [ + 36.6180419921875, + 47.918243408203125 + ], + [ + 36.62890625, + 47.919647216796875 + ], + [ + 36.63385009765625, + 47.921722412109375 + ], + [ + 36.634002685546875, + 47.92425537109375 + ], + [ + 36.632781982421875, + 47.927093505859375 + ], + [ + 36.6260986328125, + 47.93572998046875 + ], + [ + 36.61944580078125, + 47.9481201171875 + ], + [ + 36.6180419921875, + 47.951324462890625 + ], + [ + 36.616180419921875, + 47.954315185546875 + ], + [ + 36.6134033203125, + 47.957000732421875 + ], + [ + 36.609344482421875, + 47.9591064453125 + ], + [ + 36.604248046875, + 47.960479736328125 + ], + [ + 36.586212158203125, + 47.96234130859375 + ], + [ + 36.581085205078125, + 47.9652099609375 + ], + [ + 36.57659912109375, + 47.970703125 + ], + [ + 36.57659912109375, + 47.982025146484375 + ], + [ + 36.571929931640625, + 47.995513916015625 + ], + [ + 36.571319580078125, + 47.99993896484375 + ], + [ + 36.575042724609375, + 48.0582275390625 + ], + [ + 36.576904296875, + 48.0670166015625 + ], + [ + 36.58062744140625, + 48.07318115234375 + ], + [ + 36.58465576171875, + 48.076416015625 + ], + [ + 36.58905029296875, + 48.07891845703125 + ], + [ + 36.5933837890625, + 48.080352783203125 + ], + [ + 36.598052978515625, + 48.081390380859375 + ], + [ + 36.6031494140625, + 48.082000732421875 + ], + [ + 36.620208740234375, + 48.081817626953125 + ], + [ + 36.65435791015625, + 48.087921142578125 + ], + [ + 36.659637451171875, + 48.0882568359375 + ], + [ + 36.665069580078125, + 48.088043212890625 + ], + [ + 36.723724365234375, + 48.075592041015625 + ], + [ + 36.728057861328125, + 48.0736083984375 + ], + [ + 36.731475830078125, + 48.0712890625 + ], + [ + 36.7342529296875, + 48.068603515625 + ], + [ + 36.738433837890625, + 48.05908203125 + ], + [ + 36.741546630859375, + 48.056427001953125 + ], + [ + 36.745574951171875, + 48.0543212890625 + ], + [ + 36.75054931640625, + 48.05255126953125 + ], + [ + 36.788421630859375, + 48.04510498046875 + ], + [ + 36.823822021484375, + 48.0330810546875 + ], + [ + 36.82940673828125, + 48.0321044921875 + ], + [ + 36.839019775390625, + 48.034454345703125 + ], + [ + 36.85125732421875, + 48.03985595703125 + ], + [ + 36.8760986328125, + 48.0538330078125 + ], + [ + 36.8863525390625, + 48.06146240234375 + ], + [ + 36.892547607421875, + 48.067535400390625 + ], + [ + 36.893463134765625, + 48.07147216796875 + ], + [ + 36.893798828125, + 48.075286865234375 + ], + [ + 36.893798828125, + 48.079071044921875 + ], + [ + 36.891448974609375, + 48.09320068359375 + ], + [ + 36.889434814453125, + 48.099945068359375 + ], + [ + 36.87921142578125, + 48.118438720703125 + ], + [ + 36.876739501953125, + 48.12493896484375 + ], + [ + 36.87005615234375, + 48.15228271484375 + ], + [ + 36.869598388671875, + 48.15643310546875 + ], + [ + 36.8697509765625, + 48.1610107421875 + ], + [ + 36.871917724609375, + 48.16741943359375 + ], + [ + 36.875335693359375, + 48.1707763671875 + ], + [ + 36.8795166015625, + 48.173065185546875 + ], + [ + 36.88958740234375, + 48.174560546875 + ], + [ + 36.896728515625, + 48.1768798828125 + ], + [ + 36.90509033203125, + 48.180908203125 + ], + [ + 36.919525146484375, + 48.19049072265625 + ], + [ + 36.9246826171875, + 48.19647216796875 + ], + [ + 36.927154541015625, + 48.20147705078125 + ], + [ + 36.927001953125, + 48.205108642578125 + ], + [ + 36.924163818359375, + 48.215362548828125 + ], + [ + 36.923553466796875, + 48.218841552734375 + ], + [ + 36.922821044921875, + 48.222015380859375 + ], + [ + 36.922515869140625, + 48.22503662109375 + ], + [ + 36.913787841796875, + 48.2637939453125 + ], + [ + 36.911468505859375, + 48.270477294921875 + ], + [ + 36.908660888671875, + 48.276824951171875 + ], + [ + 36.906951904296875, + 48.28369140625 + ], + [ + 36.90557861328125, + 48.29443359375 + ], + [ + 36.904022216796875, + 48.29766845703125 + ], + [ + 36.90106201171875, + 48.30029296875 + ], + [ + 36.8961181640625, + 48.302001953125 + ], + [ + 36.873321533203125, + 48.30438232421875 + ], + [ + 36.86944580078125, + 48.305419921875 + ], + [ + 36.867523193359375, + 48.307952880859375 + ], + [ + 36.866485595703125, + 48.311187744140625 + ], + [ + 36.864959716796875, + 48.314239501953125 + ], + [ + 36.862579345703125, + 48.316802978515625 + ], + [ + 36.858551025390625, + 48.318267822265625 + ], + [ + 36.85357666015625, + 48.31878662109375 + ], + [ + 36.84814453125, + 48.31878662109375 + ], + [ + 36.837921142578125, + 48.3173828125 + ], + [ + 36.829071044921875, + 48.31475830078125 + ], + [ + 36.8245849609375, + 48.3138427734375 + ], + [ + 36.8199462890625, + 48.31439208984375 + ], + [ + 36.8165283203125, + 48.316253662109375 + ], + [ + 36.814208984375, + 48.319000244140625 + ], + [ + 36.812652587890625, + 48.32220458984375 + ], + [ + 36.81182861328125, + 48.32568359375 + ], + [ + 36.812347412109375, + 48.330718994140625 + ], + [ + 36.818389892578125, + 48.352447509765625 + ], + [ + 36.819000244140625, + 48.357421875 + ], + [ + 36.814666748046875, + 48.386383056640625 + ], + [ + 36.8101806640625, + 48.40008544921875 + ], + [ + 36.809234619140625, + 48.405181884765625 + ], + [ + 36.808929443359375, + 48.413116455078125 + ], + [ + 36.8114013671875, + 48.417144775390625 + ], + [ + 36.81512451171875, + 48.419708251953125 + ], + [ + 36.838226318359375, + 48.426788330078125 + ], + [ + 36.842742919921875, + 48.429534912109375 + ], + [ + 36.84722900390625, + 48.4339599609375 + ], + [ + 36.84613037109375, + 48.43682861328125 + ], + [ + 36.837921142578125, + 48.441741943359375 + ], + [ + 36.834991455078125, + 48.445465087890625 + ], + [ + 36.83544921875, + 48.476318359375 + ], + [ + 36.838226318359375, + 48.480194091796875 + ], + [ + 36.841796875, + 48.48297119140625 + ], + [ + 36.851409912109375, + 48.486572265625 + ], + [ + 36.856536865234375, + 48.48944091796875 + ], + [ + 36.858551025390625, + 48.492645263671875 + ], + [ + 36.8583984375, + 48.495635986328125 + ], + [ + 36.857452392578125, + 48.4981689453125 + ], + [ + 36.85638427734375, + 48.500274658203125 + ], + [ + 36.85498046875, + 48.50360107421875 + ], + [ + 36.8526611328125, + 48.513153076171875 + ], + [ + 36.85418701171875, + 48.516510009765625 + ], + [ + 36.857452392578125, + 48.51873779296875 + ], + [ + 36.87115478515625, + 48.5223388671875 + ], + [ + 36.8818359375, + 48.52618408203125 + ], + [ + 36.888671875, + 48.5301513671875 + ], + [ + 36.8909912109375, + 48.533966064453125 + ], + [ + 36.89208984375, + 48.537841796875 + ], + [ + 36.890533447265625, + 48.559722900390625 + ], + [ + 36.888671875, + 48.570343017578125 + ], + [ + 36.887420654296875, + 48.5736083984375 + ], + [ + 36.88555908203125, + 48.57666015625 + ], + [ + 36.883087158203125, + 48.57928466796875 + ], + [ + 36.879058837890625, + 48.5811767578125 + ], + [ + 36.8681640625, + 48.5823974609375 + ], + [ + 36.824432373046875, + 48.57977294921875 + ], + [ + 36.81915283203125, + 48.5782470703125 + ], + [ + 36.814056396484375, + 48.5755615234375 + ], + [ + 36.809539794921875, + 48.569061279296875 + ], + [ + 36.80718994140625, + 48.5640869140625 + ], + [ + 36.800048828125, + 48.5421142578125 + ], + [ + 36.797882080078125, + 48.5380859375 + ], + [ + 36.795074462890625, + 48.5347900390625 + ], + [ + 36.791351318359375, + 48.53265380859375 + ], + [ + 36.786865234375, + 48.531402587890625 + ], + [ + 36.755401611328125, + 48.529052734375 + ], + [ + 36.75115966796875, + 48.529205322265625 + ], + [ + 36.74853515625, + 48.5308837890625 + ], + [ + 36.747283935546875, + 48.5338134765625 + ], + [ + 36.746673583984375, + 48.539154052734375 + ], + [ + 36.74713134765625, + 48.55816650390625 + ], + [ + 36.749298095703125, + 48.563934326171875 + ], + [ + 36.75323486328125, + 48.567352294921875 + ], + [ + 36.757720947265625, + 48.569305419921875 + ], + [ + 36.76251220703125, + 48.571807861328125 + ], + [ + 36.7730712890625, + 48.585662841796875 + ], + [ + 36.7764892578125, + 48.588134765625 + ], + [ + 36.78515625, + 48.59222412109375 + ], + [ + 36.789825439453125, + 48.59503173828125 + ], + [ + 36.79058837890625, + 48.598052978515625 + ], + [ + 36.78997802734375, + 48.6011962890625 + ], + [ + 36.78717041015625, + 48.60369873046875 + ], + [ + 36.783294677734375, + 48.60528564453125 + ], + [ + 36.77850341796875, + 48.6055908203125 + ], + [ + 36.743255615234375, + 48.601104736328125 + ], + [ + 36.73828125, + 48.6015625 + ], + [ + 36.734405517578125, + 48.603424072265625 + ], + [ + 36.732086181640625, + 48.606048583984375 + ], + [ + 36.730377197265625, + 48.609161376953125 + ], + [ + 36.72930908203125, + 48.61322021484375 + ], + [ + 36.728668212890625, + 48.616455078125 + ], + [ + 36.725433349609375, + 48.62591552734375 + ], + [ + 36.710845947265625, + 48.649566650390625 + ], + [ + 36.708526611328125, + 48.66082763671875 + ], + [ + 36.710540771484375, + 48.688385009765625 + ], + [ + 36.71038818359375, + 48.70599365234375 + ], + [ + 36.70928955078125, + 48.71441650390625 + ], + [ + 36.693267822265625, + 48.758270263671875 + ], + [ + 36.69049072265625, + 48.769287109375 + ], + [ + 36.690032958984375, + 48.77752685546875 + ], + [ + 36.6925048828125, + 48.781768798828125 + ], + [ + 36.696990966796875, + 48.785888671875 + ], + [ + 36.701690673828125, + 48.78814697265625 + ], + [ + 36.70697021484375, + 48.789215087890625 + ], + [ + 36.718292236328125, + 48.78924560546875 + ], + [ + 36.73052978515625, + 48.787506103515625 + ], + [ + 36.76068115234375, + 48.77685546875 + ], + [ + 36.772918701171875, + 48.7745361328125 + ], + [ + 36.820404052734375, + 48.77239990234375 + ], + [ + 36.82537841796875, + 48.773193359375 + ], + [ + 36.836517333984375, + 48.77984619140625 + ], + [ + 36.846923828125, + 48.78753662109375 + ], + [ + 36.860870361328125, + 48.79534912109375 + ], + [ + 36.865570068359375, + 48.797119140625 + ], + [ + 36.8748779296875, + 48.79949951171875 + ], + [ + 36.885101318359375, + 48.8009033203125 + ], + [ + 36.890838623046875, + 48.8009033203125 + ], + [ + 36.903076171875, + 48.799224853515625 + ], + [ + 36.9991455078125, + 48.766876220703125 + ], + [ + 37.00146484375, + 48.765594482421875 + ], + [ + 37.004425048828125, + 48.7635498046875 + ], + [ + 37.008758544921875, + 48.761444091796875 + ], + [ + 37.01434326171875, + 48.75958251953125 + ], + [ + 37.0238037109375, + 48.758880615234375 + ], + [ + 37.0289306640625, + 48.7607421875 + ], + [ + 37.032470703125, + 48.76397705078125 + ], + [ + 37.033721923828125, + 48.767913818359375 + ], + [ + 37.03363037109375, + 48.771636962890625 + ], + [ + 37.03094482421875, + 48.774322509765625 + ], + [ + 37.026580810546875, + 48.77630615234375 + ], + [ + 37.00518798828125, + 48.782684326171875 + ], + [ + 37.001800537109375, + 48.78460693359375 + ], + [ + 36.99993896484375, + 48.7861328125 + ], + [ + 36.998382568359375, + 48.788330078125 + ], + [ + 36.998077392578125, + 48.7913818359375 + ], + [ + 36.99822998046875, + 48.794525146484375 + ], + [ + 37.0008544921875, + 48.7984619140625 + ], + [ + 37.01263427734375, + 48.810272216796875 + ], + [ + 37.018524169921875, + 48.813690185546875 + ], + [ + 37.024566650390625, + 48.8153076171875 + ], + [ + 37.02984619140625, + 48.81427001953125 + ], + [ + 37.0408935546875, + 48.810821533203125 + ], + [ + 37.047576904296875, + 48.809600830078125 + ], + [ + 37.057342529296875, + 48.809600830078125 + ], + [ + 37.062774658203125, + 48.8116455078125 + ], + [ + 37.06634521484375, + 48.814849853515625 + ], + [ + 37.067718505859375, + 48.818817138671875 + ], + [ + 37.068817138671875, + 48.823577880859375 + ], + [ + 37.07037353515625, + 48.82867431640625 + ], + [ + 37.07440185546875, + 48.835723876953125 + ], + [ + 37.0787353515625, + 48.839263916015625 + ], + [ + 37.083526611328125, + 48.84161376953125 + ], + [ + 37.088714599609375, + 48.842376708984375 + ], + [ + 37.094451904296875, + 48.8426513671875 + ], + [ + 37.10003662109375, + 48.842010498046875 + ], + [ + 37.105133056640625, + 48.840576171875 + ], + [ + 37.1090087890625, + 48.838409423828125 + ], + [ + 37.117401123046875, + 48.8304443359375 + ], + [ + 37.120635986328125, + 48.827911376953125 + ], + [ + 37.124359130859375, + 48.825531005859375 + ], + [ + 37.128875732421875, + 48.823516845703125 + ], + [ + 37.134124755859375, + 48.822174072265625 + ], + [ + 37.139862060546875, + 48.821502685546875 + ], + [ + 37.147613525390625, + 48.821746826171875 + ], + [ + 37.17047119140625, + 48.82562255859375 + ], + [ + 37.1771240234375, + 48.82830810546875 + ], + [ + 37.18115234375, + 48.83148193359375 + ], + [ + 37.18145751953125, + 48.8348388671875 + ], + [ + 37.17822265625, + 48.852203369140625 + ], + [ + 37.1788330078125, + 48.85662841796875 + ], + [ + 37.180694580078125, + 48.861297607421875 + ], + [ + 37.186126708984375, + 48.86712646484375 + ], + [ + 37.191864013671875, + 48.869781494140625 + ], + [ + 37.199798583984375, + 48.870941162109375 + ], + [ + 37.203948974609375, + 48.87322998046875 + ], + [ + 37.206939697265625, + 48.87615966796875 + ], + [ + 37.21112060546875, + 48.885101318359375 + ], + [ + 37.217010498046875, + 48.89453125 + ], + [ + 37.22088623046875, + 48.897552490234375 + ], + [ + 37.259033203125, + 48.915435791015625 + ], + [ + 37.265899658203125, + 48.917755126953125 + ], + [ + 37.293487548828125, + 48.91778564453125 + ], + [ + 37.30511474609375, + 48.920196533203125 + ], + [ + 37.31103515625, + 48.922943115234375 + ], + [ + 37.3143310546875, + 48.926513671875 + ], + [ + 37.314422607421875, + 48.9300537109375 + ], + [ + 37.313385009765625, + 48.93328857421875 + ], + [ + 37.3116455078125, + 48.93634033203125 + ], + [ + 37.306365966796875, + 48.941864013671875 + ], + [ + 37.30419921875, + 48.94476318359375 + ], + [ + 37.302947998046875, + 48.947998046875 + ], + [ + 37.303436279296875, + 48.951873779296875 + ], + [ + 37.305908203125, + 48.959930419921875 + ], + [ + 37.305908203125, + 48.96356201171875 + ], + [ + 37.303436279296875, + 48.966278076171875 + ], + [ + 37.2950439453125, + 48.9705810546875 + ], + [ + 37.291961669921875, + 48.973114013671875 + ], + [ + 37.29071044921875, + 48.97625732421875 + ], + [ + 37.29180908203125, + 48.979827880859375 + ], + [ + 37.30853271484375, + 48.998504638671875 + ], + [ + 37.3143310546875, + 49.002899169921875 + ], + [ + 37.319610595703125, + 49.005889892578125 + ], + [ + 37.343475341796875, + 49.012176513671875 + ], + [ + 37.3487548828125, + 49.015625 + ], + [ + 37.351837158203125, + 49.019683837890625 + ], + [ + 37.35247802734375, + 49.0235595703125 + ], + [ + 37.353851318359375, + 49.0286865234375 + ], + [ + 37.3568115234375, + 49.03472900390625 + ], + [ + 37.364105224609375, + 49.044708251953125 + ], + [ + 37.369415283203125, + 49.049346923828125 + ], + [ + 37.373748779296875, + 49.052490234375 + ], + [ + 37.601226806640625, + 49.144622802734375 + ], + [ + 37.609619140625, + 49.150177001953125 + ], + [ + 37.612396240234375, + 49.154541015625 + ], + [ + 37.610382080078125, + 49.15728759765625 + ], + [ + 37.59698486328125, + 49.1708984375 + ], + [ + 37.593902587890625, + 49.17340087890625 + ], + [ + 37.590179443359375, + 49.175323486328125 + ], + [ + 37.585052490234375, + 49.1761474609375 + ], + [ + 37.5633544921875, + 49.17529296875 + ], + [ + 37.525482177734375, + 49.178436279296875 + ], + [ + 37.51385498046875, + 49.180419921875 + ], + [ + 37.508575439453125, + 49.18194580078125 + ], + [ + 37.504852294921875, + 49.1839599609375 + ], + [ + 37.503448486328125, + 49.1864013671875 + ], + [ + 37.535308837890625, + 49.221435546875 + ], + [ + 37.540985107421875, + 49.22515869140625 + ], + [ + 37.54693603515625, + 49.227203369140625 + ], + [ + 37.643096923828125, + 49.228302001953125 + ], + [ + 37.771148681640625, + 49.204345703125 + ], + [ + 37.816925048828125, + 49.205474853515625 + ], + [ + 37.833831787109375, + 49.20751953125 + ], + [ + 37.838958740234375, + 49.210418701171875 + ], + [ + 37.841888427734375, + 49.214202880859375 + ], + [ + 37.843292236328125, + 49.21875 + ], + [ + 37.843902587890625, + 49.222259521484375 + ], + [ + 37.847320556640625, + 49.231719970703125 + ], + [ + 37.858795166015625, + 49.230926513671875 + ], + [ + 37.86810302734375, + 49.227630615234375 + ], + [ + 37.8797607421875, + 49.220855712890625 + ], + [ + 37.886138916015625, + 49.215789794921875 + ], + [ + 37.8917236328125, + 49.21044921875 + ], + [ + 37.89495849609375, + 49.208038330078125 + ], + [ + 37.899627685546875, + 49.2064208984375 + ], + [ + 37.905364990234375, + 49.205413818359375 + ], + [ + 37.92364501953125, + 49.20391845703125 + ], + [ + 37.92938232421875, + 49.202056884765625 + ], + [ + 37.933624267578125, + 49.199554443359375 + ], + [ + 37.93402099609375, + 49.193634033203125 + ], + [ + 37.930816650390625, + 49.191314697265625 + ], + [ + 37.925811767578125, + 49.189788818359375 + ], + [ + 37.898223876953125, + 49.188873291015625 + ], + [ + 37.89404296875, + 49.1873779296875 + ], + [ + 37.8912353515625, + 49.184478759765625 + ], + [ + 37.889068603515625, + 49.180877685546875 + ], + [ + 37.88348388671875, + 49.16839599609375 + ], + [ + 37.883636474609375, + 49.16412353515625 + ], + [ + 37.8865966796875, + 49.1602783203125 + ], + [ + 37.895263671875, + 49.156280517578125 + ], + [ + 37.938720703125, + 49.144622802734375 + ], + [ + 37.9661865234375, + 49.132537841796875 + ], + [ + 37.971282958984375, + 49.13153076171875 + ], + [ + 37.9765625, + 49.13134765625 + ] + ] + ] + } +} diff --git a/src/esbuild.js b/example/esbuild.js similarity index 100% rename from src/esbuild.js rename to example/esbuild.js diff --git a/example/index.html b/example/index.html new file mode 100644 index 0000000..50cb4e0 --- /dev/null +++ b/example/index.html @@ -0,0 +1,21 @@ + + + + + + + Example + + + + + + PROVIDER + + + + MODEL + + + + diff --git a/example/index.js b/example/index.js new file mode 100644 index 0000000..375da0f --- /dev/null +++ b/example/index.js @@ -0,0 +1,9 @@ +// This file defines all the styles and elements used for the web components + +// Components +import '../src/core/core'; +import '../src/geojson/geojson'; + +// Other +import './esbuild'; +import './load'; diff --git a/example/load.js b/example/load.js new file mode 100644 index 0000000..c9077eb --- /dev/null +++ b/example/load.js @@ -0,0 +1,4 @@ + +window.addEventListener('load', () => { + // TODO +}); diff --git a/package-lock.json b/package-lock.json index 4e87c6d..39ed8ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mutablelogic/js-framework", - "version": "0.0.49", + "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mutablelogic/js-framework", - "version": "0.0.49", + "version": "0.0.0", "license": "Apache", "dependencies": { "bootstrap-icons": "^1.11.3", diff --git a/package.json b/package.json index c9b3c65..55b06b8 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "Javascript Framework", "main": "dist/index.js", "scripts": { - "serve": "rm -fr dist && install -d dist && esbuild src/index.html src/index.js --outdir=dist --format=esm --sourcemap --minify --bundle --loader:.svg=file --loader:.woff=file --loader:.woff2=file --loader:.ttf=file --loader:.otf=file --loader:.html=copy --watch --serve", - "build": "rm -fr dist && install -d dist && esbuild src/index.js --outdir=dist --format=esm --sourcemap --minify --bundle --loader:.svg=file --loader:.woff=file --loader:.woff2=file --loader:.ttf=file --loader:.otf=file --loader:.html=copy", + "dev": "rm -fr dist && install -d dist && esbuild example/index.html example/index.js example/data.json --outdir=dist --format=esm --sourcemap --minify --bundle --loader:.svg=file --loader:.woff=file --loader:.woff2=file --loader:.ttf=file --loader:.otf=file --loader:.html=copy --loader:.json=copy --watch --serve", + "build": "rm -fr dist && install -d dist && esbuild example/index.js --outdir=dist --format=esm --sourcemap --minify --bundle --loader:.svg=file --loader:.woff=file --loader:.woff2=file --loader:.ttf=file --loader:.otf=file --loader:.html=copy", "lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c config/eslint.config.mjs --cache --fix ./src/**/*.js", "docs": "jsdoc -c config/jsdoc.config.json" }, diff --git a/src/core/EventType.js b/src/core/EventType.js new file mode 100644 index 0000000..a5476be --- /dev/null +++ b/src/core/EventType.js @@ -0,0 +1,13 @@ +/** + * Define event tyoes used by web components + * @readonly + * @enum {String} + */ +export const EventType = { + ERROR: 'js-error', + FETCH: 'js-fetch', + TEXT: 'js-text', + OBJECT: 'js-object', + BLOB: 'js-blob', + DONE: 'js-done', +}; diff --git a/src/core/ModelElement.js b/src/core/ModelElement.js new file mode 100644 index 0000000..f559a04 --- /dev/null +++ b/src/core/ModelElement.js @@ -0,0 +1,170 @@ +import { LitElement, html } from 'lit'; +import { EventType } from './EventType'; + +/** + * @class ModelElement + * + * This class is a data store for an object. + * + * @property {String} provider - A connnected provider element id + * + * @example + * + */ +export class ModelElement extends LitElement { + #provider; + + static get localName() { + return 'js-model'; + } + + constructor(data) { + super(); + + // Default properties + this.provider = null; + this.data = null; + if (data) { + this._updateData(data); + } + } + + static get properties() { + return { + provider: { type: String }, + data: { type: Object, reflect: true }, + }; + } + + render() { + return html`
${this.asJSON()}
`; + } + + asJSON() { + return JSON.stringify(this.data); + } + + connectedCallback() { + super.connectedCallback(); + this.#connect(); + } + + #connect() { + if (this.provider) { + this.#provider = document.getElementById(this.provider); + } else { + this.#provider = null; + } + if (this.#provider) { + this.#provider.addEventListener(EventType.FETCH, (evt) => { + // Object is being fetched from the provider + }); + this.#provider.addEventListener(EventType.ERROR, (evt) => { + // An error occurred in the provider + console.log('Error event', evt.error); + }); + this.#provider.addEventListener(EventType.DONE, (evt) => { + // Object has been fetched from the provider + }); + this.#provider.addEventListener(EventType.TEXT, (evt) => { + this._updateData(evt.detail); + }); + this.#provider.addEventListener(EventType.OBJECT, (evt) => { + this._updateData(evt.detail); + }); + this.#provider.addEventListener(EventType.BLOB, (evt) => { + this._updateData(evt.detail); + }); + } + } + + _updateData(data) { + // Scalar type + if (ModelElement.#isScalar(data)) { + this.data = data; + return; + } + // Object type + if (data instanceof Object || data instanceof ModelElement) { + const newVal = this.#updateObject(data); + if (newVal) { + // Modified + this.data = newVal; + } + return; + } + // Cannot handle this type yet + throw new Error(`Cannot handle data type ${data.localName}`); + } + + static #isScalar(value) { + if (value === null) { + return true; + } + if (value instanceof String || typeof value === 'string') { + return true; + } + if (value instanceof Number || typeof value === 'number') { + return true; + } + if (value instanceof Boolean || typeof value === 'boolean') { + return true; + } + if (value instanceof Date) { + return true; + } + return false; + } + + #updateObject(data) { + let obj = {}; + let newVal; + let modified = false; + const properties = this.constructor.properties; + for (const key in data) { + if (!properties[key]) { + continue; + } else if (properties[key].type === String) { + newVal = this.#setString(key, data[key]); + if (newVal !== undefined) { + obj[key] = data[key]; + modified = true; + } + } else if (ModelElement.#isSubclassOf(properties[key].type, ModelElement)) { + newVal = this.#setModel(key, data[key]); + if (newVal !== undefined) { + obj[key] = data[key]; + modified = true; + } + } else { + throw new Error(`#updateObject: ${key}: Unknown type}`); + } + } + return modified ? obj : null; + } + + static #isSubclassOf(subClass, superClass) { + let prototype = subClass.prototype; + while (prototype) { + if (prototype === superClass.prototype) { + return true; + } + prototype = Object.getPrototypeOf(prototype); + } + return false; + } + + #setString(key, value) { + // Check if modified + if (this[key] === value) { + return undefined; + } + console.log('SetString:', key, 'Value:', value); + this[key] = value; + return value; + } + + #setModel(key, value) { + console.log('SetModel:', key, 'Value:', value); + } +} diff --git a/src/core/ProviderElement.js b/src/core/ProviderElement.js new file mode 100644 index 0000000..8a0f79b --- /dev/null +++ b/src/core/ProviderElement.js @@ -0,0 +1,215 @@ +import { LitElement, html } from 'lit'; +import { EventType } from './EventType'; + +/** + * @class ProviderElement + * + * This class is a "provider" of data from external sources. + * + * @property {String} origin - The origin of the resource + * @property {String} path - The path to the resource + * @property {String} method - The method to use to fetch the resource + * @property {Number} interval - The interval to fetch the resource in seconds. If undefined, only fetch once + * @property {String} message - The status message to display + * + * @example + * + */ +export class ProviderElement extends LitElement { + #timer; + + static get localName() { + return 'js-provider'; + } + + constructor() { + super(); + + // Default properties + this.origin = null; + this.path = null; + this.method = 'GET'; + this.interval = 0; + this.message = ''; + } + + static get properties() { + return { + origin: { type: String }, + message: { type: String }, + path: { type: String, reflect: true }, + method: { type: String, reflect: true }, + interval: { type: Number, reflect: true }, + }; + } + + attributeChangedCallback(name, oldVal, newVal) { + super.attributeChangedCallback(name, oldVal, newVal); + if (name === 'path') { + this.#pathChanged(newVal, oldVal); + } + } + + render() { + return html`
${this.message}
`; + } + + /** + * Fetch data from a remote source + * + * @param {String} path - The path to the resource. If NULL, use the path property. + * @param {Object} request - The request object. If NULL, use the method property. + * @param {Number} interval - The interval to fetch the data. If NULL, use the interval property. + * + * @memberof ProviderElement + */ + fetch(path, request, interval) { + // Set default path and request + if (!path) { + path = this.path || "/"; + } + if (!request) { + request = this.#request; + } + if (!interval) { + interval = this.interval; + } + + // Create an absolute URL + let url; + try { + url = new URL(path, this.#origin); + } + catch (error) { + this.message = `${error}`; + this.dispatchEvent(new ErrorEvent(EventType.ERROR, { + error: error, + message: this.message + })); + return; + } + + // Cancel any existing requests + this.cancel(); + + // Fetch the data + this.#fetch(url, request); + + // Set the interval for the next fetch + if (interval) { + this.#timer = setInterval(() => { + this.#fetch(url, request); + }, interval * 1000); + } + } + + /** + * Cancel any existing request interval timer. + * + * @memberof ProviderElement + */ + cancel() { + if (this.#timer) { + clearTimeout(this.#timer); + this.#timer = null; + } + } + + #pathChanged(newVal, oldVal) { + if (newVal) { + if(newVal !== oldVal) { + console.log(`path changed: ${oldVal} => ${newVal}`); + this.fetch(newVal); + } + } else { + this.cancel(); + } + } + + get #origin() { + return this.origin || window.location.href; + } + + get #request() { + return { + method: this.method || "GET", + body: null, + headers: {} + }; + } + + #fetch(url, request) { + this.dispatchEvent(new CustomEvent(EventType.FETCH, { + detail: url + })); + fetch(url, request).then((response) => { + if (!response.ok) { + throw new Error(`status: ${response.status}`); + } + const contentType = response.headers ? response.headers.get('Content-Type') || '' : ''; + return this.#fetchresponse(contentType.split(';')[0], response); + }).then((data) => { + this.#fetchdata(data); + }).catch((error) => { + this.message = `${error}`; + this.dispatchEvent(new ErrorEvent(EventType.ERROR, { + error: error, + message: this.message + })); + }).finally(() => { + this.message = `DONE ${url}`; + this.dispatchEvent(new CustomEvent(EventType.DONE, { + detail: url + })); + }); + } + + #fetchresponse(contentType, response) { + switch (contentType.split(';')[0]) { + case 'application/json': + case 'text/json': + return response.json(); + case 'text/plain': + case 'text/html': + return response.text(); + default: + return response.blob(); + } + } + + #fetchdata(data) { + if (typeof data == "string") { + this.#fetchtext(data); + } else if (data instanceof Array) { + data.forEach((item) => { + this.#fetchobject(data); + }); + } else if (data instanceof Object) { + this.#fetchobject(data); + } else { + this.#fetchblob(data); + } + } + + #fetchtext(data) { + this.message = data; + this.dispatchEvent(new CustomEvent(EventType.TEXT, { + detail: data + })); + } + + #fetchobject(data) { + this.message = data; + this.dispatchEvent(new CustomEvent(EventType.OBJECT, { + detail: data + })); + } + + #fetchblob(data) { + this.message = data; + this.dispatchEvent(new CustomEvent(EventType.BLOB, { + detail: data + })); + } +} + diff --git a/src/core/core.js b/src/core/core.js new file mode 100644 index 0000000..175f059 --- /dev/null +++ b/src/core/core.js @@ -0,0 +1,6 @@ +import { ProviderElement } from './ProviderElement'; +import { ModelElement } from './ModelElement'; + +// Define Web Components +customElements.define(ProviderElement.localName, ProviderElement); // js-provider +customElements.define(ModelElement.localName, ModelElement); // js-model diff --git a/src/geojson/FeatureElement.js b/src/geojson/FeatureElement.js new file mode 100644 index 0000000..a773238 --- /dev/null +++ b/src/geojson/FeatureElement.js @@ -0,0 +1,30 @@ +import { ModelElement } from '../core/ModelElement'; +import { ShapeElement } from './ShapeElement'; + +/** + * @class FeatureElement + * + * This class is a data store for a GeoJSON feature object. + * + * @property {String} type - Type of feature + * @property {String} title - Title of feature + * @property {ShapeElement} geometry - Geometry of feature + * @property {Object} properties - Properties of feature + * + * @example + * + */ +export class FeatureElement extends ModelElement { + static get localName() { + return 'js-geo-feature'; + } + + static get properties() { + const properties = super.properties; + properties.type = { type: String, reflect: true }; + properties.title = { type: String, reflect: true }; + properties.geometry = { type: ShapeElement, reflect: true }; + properties.properties = { type: Object, reflect: true }; + return properties; + } +} diff --git a/src/geojson/ShapeElement.js b/src/geojson/ShapeElement.js new file mode 100644 index 0000000..4f5dfaa --- /dev/null +++ b/src/geojson/ShapeElement.js @@ -0,0 +1,24 @@ +import { ModelElement } from '../core/ModelElement'; + +/** + * @class ShapeElement + * + * This class is a data store for an object. + * + * @property {String} provider - A connnected provider element id + * + * @example + * + */ +export class ShapeElement extends ModelElement { + static get localName() { + return 'js-geo-shape'; + } + + static get properties() { + const properties = super.properties; + properties.type = { type: String, reflect: true }; + properties.coordinates = { type: Array, reflect: true }; + return properties; + } +} diff --git a/src/geojson/geojson.js b/src/geojson/geojson.js new file mode 100644 index 0000000..9740b8c --- /dev/null +++ b/src/geojson/geojson.js @@ -0,0 +1,6 @@ +import { FeatureElement } from './FeatureElement'; +import { ShapeElement } from './ShapeElement'; + +// Define Web Components +customElements.define(FeatureElement.localName, FeatureElement); // js-geo-feature +customElements.define(ShapeElement.localName, ShapeElement); // js-geo-shape diff --git a/src/app/CanvasElement.js b/srcold/app/CanvasElement.js similarity index 100% rename from src/app/CanvasElement.js rename to srcold/app/CanvasElement.js diff --git a/src/app/CanvasNavbarElement.js b/srcold/app/CanvasNavbarElement.js similarity index 100% rename from src/app/CanvasNavbarElement.js rename to srcold/app/CanvasNavbarElement.js diff --git a/src/app/CanvasSectionElement.js b/srcold/app/CanvasSectionElement.js similarity index 100% rename from src/app/CanvasSectionElement.js rename to srcold/app/CanvasSectionElement.js diff --git a/src/app/CardElement.js b/srcold/app/CardElement.js similarity index 100% rename from src/app/CardElement.js rename to srcold/app/CardElement.js diff --git a/src/app/CardGroupElement.js b/srcold/app/CardGroupElement.js similarity index 100% rename from src/app/CardGroupElement.js rename to srcold/app/CardGroupElement.js diff --git a/src/app/IconElement.js b/srcold/app/IconElement.js similarity index 100% rename from src/app/IconElement.js rename to srcold/app/IconElement.js diff --git a/src/app/NavDividerElement.js b/srcold/app/NavDividerElement.js similarity index 100% rename from src/app/NavDividerElement.js rename to srcold/app/NavDividerElement.js diff --git a/src/app/NavGroupElement.js b/srcold/app/NavGroupElement.js similarity index 100% rename from src/app/NavGroupElement.js rename to srcold/app/NavGroupElement.js diff --git a/src/app/NavItemElement.js b/srcold/app/NavItemElement.js similarity index 100% rename from src/app/NavItemElement.js rename to srcold/app/NavItemElement.js diff --git a/src/app/NavSpacerElement.js b/srcold/app/NavSpacerElement.js similarity index 100% rename from src/app/NavSpacerElement.js rename to srcold/app/NavSpacerElement.js diff --git a/src/app/app.css b/srcold/app/app.css similarity index 100% rename from src/app/app.css rename to srcold/app/app.css diff --git a/src/app/app.js b/srcold/app/app.js similarity index 100% rename from src/app/app.js rename to srcold/app/app.js diff --git a/src/assets/font/OpenSans/LICENSE.txt b/srcold/assets/font/OpenSans/LICENSE.txt similarity index 100% rename from src/assets/font/OpenSans/LICENSE.txt rename to srcold/assets/font/OpenSans/LICENSE.txt diff --git a/src/assets/font/OpenSans/OpenSans-Bold.ttf b/srcold/assets/font/OpenSans/OpenSans-Bold.ttf similarity index 100% rename from src/assets/font/OpenSans/OpenSans-Bold.ttf rename to srcold/assets/font/OpenSans/OpenSans-Bold.ttf diff --git a/src/assets/font/OpenSans/OpenSans-BoldItalic.ttf b/srcold/assets/font/OpenSans/OpenSans-BoldItalic.ttf similarity index 100% rename from src/assets/font/OpenSans/OpenSans-BoldItalic.ttf rename to srcold/assets/font/OpenSans/OpenSans-BoldItalic.ttf diff --git a/src/assets/font/OpenSans/OpenSans-ExtraBold.ttf b/srcold/assets/font/OpenSans/OpenSans-ExtraBold.ttf similarity index 100% rename from src/assets/font/OpenSans/OpenSans-ExtraBold.ttf rename to srcold/assets/font/OpenSans/OpenSans-ExtraBold.ttf diff --git a/src/assets/font/OpenSans/OpenSans-ExtraBoldItalic.ttf b/srcold/assets/font/OpenSans/OpenSans-ExtraBoldItalic.ttf similarity index 100% rename from src/assets/font/OpenSans/OpenSans-ExtraBoldItalic.ttf rename to srcold/assets/font/OpenSans/OpenSans-ExtraBoldItalic.ttf diff --git a/src/assets/font/OpenSans/OpenSans-Italic.ttf b/srcold/assets/font/OpenSans/OpenSans-Italic.ttf similarity index 100% rename from src/assets/font/OpenSans/OpenSans-Italic.ttf rename to srcold/assets/font/OpenSans/OpenSans-Italic.ttf diff --git a/src/assets/font/OpenSans/OpenSans-Light.ttf b/srcold/assets/font/OpenSans/OpenSans-Light.ttf similarity index 100% rename from src/assets/font/OpenSans/OpenSans-Light.ttf rename to srcold/assets/font/OpenSans/OpenSans-Light.ttf diff --git a/src/assets/font/OpenSans/OpenSans-LightItalic.ttf b/srcold/assets/font/OpenSans/OpenSans-LightItalic.ttf similarity index 100% rename from src/assets/font/OpenSans/OpenSans-LightItalic.ttf rename to srcold/assets/font/OpenSans/OpenSans-LightItalic.ttf diff --git a/src/assets/font/OpenSans/OpenSans-Regular.ttf b/srcold/assets/font/OpenSans/OpenSans-Regular.ttf similarity index 100% rename from src/assets/font/OpenSans/OpenSans-Regular.ttf rename to srcold/assets/font/OpenSans/OpenSans-Regular.ttf diff --git a/src/assets/font/OpenSans/OpenSans-SemiBold.ttf b/srcold/assets/font/OpenSans/OpenSans-SemiBold.ttf similarity index 100% rename from src/assets/font/OpenSans/OpenSans-SemiBold.ttf rename to srcold/assets/font/OpenSans/OpenSans-SemiBold.ttf diff --git a/src/assets/font/OpenSans/OpenSans-SemiBoldItalic.ttf b/srcold/assets/font/OpenSans/OpenSans-SemiBoldItalic.ttf similarity index 100% rename from src/assets/font/OpenSans/OpenSans-SemiBoldItalic.ttf rename to srcold/assets/font/OpenSans/OpenSans-SemiBoldItalic.ttf diff --git a/src/assets/font/opensans.css b/srcold/assets/font/opensans.css similarity index 100% rename from src/assets/font/opensans.css rename to srcold/assets/font/opensans.css diff --git a/src/button/ButtonElement.js b/srcold/button/ButtonElement.js similarity index 100% rename from src/button/ButtonElement.js rename to srcold/button/ButtonElement.js diff --git a/src/button/ControlButtonGroupElement.js b/srcold/button/ControlButtonGroupElement.js similarity index 100% rename from src/button/ControlButtonGroupElement.js rename to srcold/button/ControlButtonGroupElement.js diff --git a/src/button/button.css b/srcold/button/button.css similarity index 100% rename from src/button/button.css rename to srcold/button/button.css diff --git a/src/button/button.js b/srcold/button/button.js similarity index 100% rename from src/button/button.js rename to srcold/button/button.js diff --git a/src/core.css b/srcold/core.css similarity index 100% rename from src/core.css rename to srcold/core.css diff --git a/src/core/Event.js b/srcold/core/Event.js similarity index 100% rename from src/core/Event.js rename to srcold/core/Event.js diff --git a/src/core/Model.js b/srcold/core/Model.js similarity index 100% rename from src/core/Model.js rename to srcold/core/Model.js diff --git a/src/core/Provider.js b/srcold/core/Provider.js similarity index 100% rename from src/core/Provider.js rename to srcold/core/Provider.js diff --git a/src/document.css b/srcold/document.css similarity index 100% rename from src/document.css rename to srcold/document.css diff --git a/srcold/esbuild.js b/srcold/esbuild.js new file mode 100644 index 0000000..9fd9f25 --- /dev/null +++ b/srcold/esbuild.js @@ -0,0 +1,5 @@ +/* Code to reload in the esbuild serve development environment */ +window.addEventListener('load', () => { + // eslint-disable-next-line no-restricted-globals + new EventSource('/esbuild').addEventListener('change', () => location.reload()); +}); diff --git a/src/form/FormControlElement.js b/srcold/form/FormControlElement.js similarity index 100% rename from src/form/FormControlElement.js rename to srcold/form/FormControlElement.js diff --git a/src/form/FormSelectElement.js b/srcold/form/FormSelectElement.js similarity index 100% rename from src/form/FormSelectElement.js rename to srcold/form/FormSelectElement.js diff --git a/src/form/FormSwitchElement.js b/srcold/form/FormSwitchElement.js similarity index 100% rename from src/form/FormSwitchElement.js rename to srcold/form/FormSwitchElement.js diff --git a/src/form/form.css b/srcold/form/form.css similarity index 100% rename from src/form/form.css rename to srcold/form/form.css diff --git a/src/form/form.js b/srcold/form/form.js similarity index 100% rename from src/form/form.js rename to srcold/form/form.js diff --git a/src/index.html b/srcold/index.html similarity index 100% rename from src/index.html rename to srcold/index.html diff --git a/src/index.html-old b/srcold/index.html-old similarity index 100% rename from src/index.html-old rename to srcold/index.html-old diff --git a/src/index.js b/srcold/index.js similarity index 100% rename from src/index.js rename to srcold/index.js diff --git a/src/layout/CodeElement.css.js b/srcold/layout/CodeElement.css.js similarity index 100% rename from src/layout/CodeElement.css.js rename to srcold/layout/CodeElement.css.js diff --git a/src/layout/CodeElement.js b/srcold/layout/CodeElement.js similarity index 100% rename from src/layout/CodeElement.js rename to srcold/layout/CodeElement.js diff --git a/src/layout/layout.js b/srcold/layout/layout.js similarity index 100% rename from src/layout/layout.js rename to srcold/layout/layout.js diff --git a/src/load.js b/srcold/load.js similarity index 100% rename from src/load.js rename to srcold/load.js diff --git a/src/old/component/badge/BadgeElement.js b/srcold/old/component/badge/BadgeElement.js similarity index 100% rename from src/old/component/badge/BadgeElement.js rename to srcold/old/component/badge/BadgeElement.js diff --git a/src/old/component/badge/BadgeGroupElement.js b/srcold/old/component/badge/BadgeGroupElement.js similarity index 100% rename from src/old/component/badge/BadgeGroupElement.js rename to srcold/old/component/badge/BadgeGroupElement.js diff --git a/src/old/component/badge/badge.css b/srcold/old/component/badge/badge.css similarity index 100% rename from src/old/component/badge/badge.css rename to srcold/old/component/badge/badge.css diff --git a/src/old/component/badge/badge.js b/srcold/old/component/badge/badge.js similarity index 100% rename from src/old/component/badge/badge.js rename to srcold/old/component/badge/badge.js diff --git a/src/old/component/button/ButtonElement.js b/srcold/old/component/button/ButtonElement.js similarity index 100% rename from src/old/component/button/ButtonElement.js rename to srcold/old/component/button/ButtonElement.js diff --git a/src/old/component/button/ButtonGroupElement.js b/srcold/old/component/button/ButtonGroupElement.js similarity index 100% rename from src/old/component/button/ButtonGroupElement.js rename to srcold/old/component/button/ButtonGroupElement.js diff --git a/src/old/component/button/CloseButtonElement.js b/srcold/old/component/button/CloseButtonElement.js similarity index 100% rename from src/old/component/button/CloseButtonElement.js rename to srcold/old/component/button/CloseButtonElement.js diff --git a/src/old/component/form/FormDateElement.js b/srcold/old/component/form/FormDateElement.js similarity index 100% rename from src/old/component/form/FormDateElement.js rename to srcold/old/component/form/FormDateElement.js diff --git a/src/old/component/form/FormElement.js b/srcold/old/component/form/FormElement.js similarity index 100% rename from src/old/component/form/FormElement.js rename to srcold/old/component/form/FormElement.js diff --git a/src/old/component/form/FormElement.js-OLD b/srcold/old/component/form/FormElement.js-OLD similarity index 100% rename from src/old/component/form/FormElement.js-OLD rename to srcold/old/component/form/FormElement.js-OLD diff --git a/src/old/component/form/FormPasswordElement.js-OLD b/srcold/old/component/form/FormPasswordElement.js-OLD similarity index 100% rename from src/old/component/form/FormPasswordElement.js-OLD rename to srcold/old/component/form/FormPasswordElement.js-OLD diff --git a/src/old/component/form/FormTextElement.js b/srcold/old/component/form/FormTextElement.js similarity index 100% rename from src/old/component/form/FormTextElement.js rename to srcold/old/component/form/FormTextElement.js diff --git a/src/old/component/icon/IconElement.js b/srcold/old/component/icon/IconElement.js similarity index 100% rename from src/old/component/icon/IconElement.js rename to srcold/old/component/icon/IconElement.js diff --git a/src/old/component/layout/RowElement.js b/srcold/old/component/layout/RowElement.js similarity index 100% rename from src/old/component/layout/RowElement.js rename to srcold/old/component/layout/RowElement.js diff --git a/src/old/component/layout/SpacerElement.js b/srcold/old/component/layout/SpacerElement.js similarity index 100% rename from src/old/component/layout/SpacerElement.js rename to srcold/old/component/layout/SpacerElement.js diff --git a/src/old/component/modal/ModalElement.js b/srcold/old/component/modal/ModalElement.js similarity index 100% rename from src/old/component/modal/ModalElement.js rename to srcold/old/component/modal/ModalElement.js diff --git a/src/old/component/modal/SideModalElement.js b/srcold/old/component/modal/SideModalElement.js similarity index 100% rename from src/old/component/modal/SideModalElement.js rename to srcold/old/component/modal/SideModalElement.js diff --git a/src/old/component/nav/CanvasElement.js b/srcold/old/component/nav/CanvasElement.js similarity index 100% rename from src/old/component/nav/CanvasElement.js rename to srcold/old/component/nav/CanvasElement.js diff --git a/src/old/component/nav/ContentElement.js b/srcold/old/component/nav/ContentElement.js similarity index 100% rename from src/old/component/nav/ContentElement.js rename to srcold/old/component/nav/ContentElement.js diff --git a/src/old/component/nav/NavBarElement.js b/srcold/old/component/nav/NavBarElement.js similarity index 100% rename from src/old/component/nav/NavBarElement.js rename to srcold/old/component/nav/NavBarElement.js diff --git a/src/old/component/nav/NavElement.js b/srcold/old/component/nav/NavElement.js similarity index 100% rename from src/old/component/nav/NavElement.js rename to srcold/old/component/nav/NavElement.js diff --git a/src/old/component/nav/NavItemElement.js b/srcold/old/component/nav/NavItemElement.js similarity index 100% rename from src/old/component/nav/NavItemElement.js rename to srcold/old/component/nav/NavItemElement.js diff --git a/src/old/component/nav/NavSpacerElement.js b/srcold/old/component/nav/NavSpacerElement.js similarity index 100% rename from src/old/component/nav/NavSpacerElement.js rename to srcold/old/component/nav/NavSpacerElement.js diff --git a/src/old/component/nav/SideBarElement.js b/srcold/old/component/nav/SideBarElement.js similarity index 100% rename from src/old/component/nav/SideBarElement.js rename to srcold/old/component/nav/SideBarElement.js diff --git a/src/old/component/nav/TabElement.js b/srcold/old/component/nav/TabElement.js similarity index 100% rename from src/old/component/nav/TabElement.js rename to srcold/old/component/nav/TabElement.js diff --git a/src/old/component/nav/TabGroupElement.js b/srcold/old/component/nav/TabGroupElement.js similarity index 100% rename from src/old/component/nav/TabGroupElement.js rename to srcold/old/component/nav/TabGroupElement.js diff --git a/src/old/component/nav/ViewController.js b/srcold/old/component/nav/ViewController.js similarity index 100% rename from src/old/component/nav/ViewController.js rename to srcold/old/component/nav/ViewController.js diff --git a/src/old/component/nav/ViewElement.js b/srcold/old/component/nav/ViewElement.js similarity index 100% rename from src/old/component/nav/ViewElement.js rename to srcold/old/component/nav/ViewElement.js diff --git a/src/old/component/nav/ViewGroupElement.js b/srcold/old/component/nav/ViewGroupElement.js similarity index 100% rename from src/old/component/nav/ViewGroupElement.js rename to srcold/old/component/nav/ViewGroupElement.js diff --git a/src/old/component/nav/nav.css b/srcold/old/component/nav/nav.css similarity index 100% rename from src/old/component/nav/nav.css rename to srcold/old/component/nav/nav.css diff --git a/src/old/component/nav/nav.js b/srcold/old/component/nav/nav.js similarity index 100% rename from src/old/component/nav/nav.js rename to srcold/old/component/nav/nav.js diff --git a/src/old/component/table/TableColumn.js b/srcold/old/component/table/TableColumn.js similarity index 100% rename from src/old/component/table/TableColumn.js rename to srcold/old/component/table/TableColumn.js diff --git a/src/old/component/table/TableElement.js b/srcold/old/component/table/TableElement.js similarity index 100% rename from src/old/component/table/TableElement.js rename to srcold/old/component/table/TableElement.js diff --git a/src/old/component/table/table.css b/srcold/old/component/table/table.css similarity index 100% rename from src/old/component/table/table.css rename to srcold/old/component/table/table.css diff --git a/src/old/component/table/table.js b/srcold/old/component/table/table.js similarity index 100% rename from src/old/component/table/table.js rename to srcold/old/component/table/table.js diff --git a/src/popup/PopupElement.js b/srcold/popup/PopupElement.js similarity index 100% rename from src/popup/PopupElement.js rename to srcold/popup/PopupElement.js diff --git a/src/popup/popup.css b/srcold/popup/popup.css similarity index 100% rename from src/popup/popup.css rename to srcold/popup/popup.css diff --git a/src/popup/popup.js b/srcold/popup/popup.js similarity index 100% rename from src/popup/popup.js rename to srcold/popup/popup.js diff --git a/src/test.js-old b/srcold/test.js-old similarity index 100% rename from src/test.js-old rename to srcold/test.js-old From 5357cef3df09e8c1167524fdda641ace003d6c7a Mon Sep 17 00:00:00 2001 From: David Thorpe Date: Sat, 26 Oct 2024 16:32:03 +0200 Subject: [PATCH 02/10] Updates --- example/index.html | 12 +- example/index.js | 2 +- example/load.js | 6 +- package-lock.json | 756 +++++++++++++----- src/core/EventType.js | 1 + src/core/Model.js | 192 +++++ src/core/ModelElement.js | 170 ---- src/core/ProviderElement.js | 1 + src/core/core.js | 2 - src/element/ButtonElement.js | 59 ++ src/element/TableBodyElement.js | 66 ++ src/element/element.css | 12 + src/element/element.js | 10 + .../{FeatureElement.js => FeatureModel.js} | 22 +- .../{ShapeElement.js => ShapeModel.js} | 12 +- src/geojson/geojson.js | 6 - 16 files changed, 916 insertions(+), 413 deletions(-) create mode 100644 src/core/Model.js delete mode 100644 src/core/ModelElement.js create mode 100644 src/element/ButtonElement.js create mode 100644 src/element/TableBodyElement.js create mode 100644 src/element/element.css create mode 100644 src/element/element.js rename src/geojson/{FeatureElement.js => FeatureModel.js} (62%) rename src/geojson/{ShapeElement.js => ShapeModel.js} (70%) diff --git a/example/index.html b/example/index.html index 50cb4e0..d9aa3fe 100644 --- a/example/index.html +++ b/example/index.html @@ -10,12 +10,14 @@ - PROVIDER - +
+ PROVIDER + + Reload +
- - MODEL - + TABLE + diff --git a/example/index.js b/example/index.js index 375da0f..65abdd4 100644 --- a/example/index.js +++ b/example/index.js @@ -2,7 +2,7 @@ // Components import '../src/core/core'; -import '../src/geojson/geojson'; +import '../src/element/element'; // Other import './esbuild'; diff --git a/example/load.js b/example/load.js index c9077eb..2d35b8a 100644 --- a/example/load.js +++ b/example/load.js @@ -1,4 +1,8 @@ +import { FeatureModel } from "../src/geojson/FeatureModel"; window.addEventListener('load', () => { - // TODO + const provider = document.querySelector('#provider'); + const table = document.querySelector('#table'); + table.model = new FeatureModel(provider); + provider.path = 'data.json'; }); diff --git a/package-lock.json b/package-lock.json index 39ed8ff..a45e511 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,20 +24,35 @@ "jsdoc": "^4.0.2" } }, - "node_modules/@aashutoshrathi/word-wrap": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", - "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "node_modules/@babel/helper-string-parser": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", + "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", "dev": true, + "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", + "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.4.tgz", - "integrity": "sha512-zTvEBcghmeBma9QIGunWevvBAp4/Qu9Bdq+2k0Ot4fVMD6v3dsC9WOcRSKk7tRRyBM/53yKMJko9xOatGQAwSg==", + "version": "7.26.1", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.1.tgz", + "integrity": "sha512-reoQYNiAJreZNsJzyrDNzFQ+IQ5JFiIzAHJg9bn94S3l+4++J7RsIhNMoB+lgP/9tpmiAQqspv+xfdxTSzREOw==", "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.26.0" + }, "bin": { "parser": "bin/babel-parser.js" }, @@ -45,6 +60,20 @@ "node": ">=6.0.0" } }, + "node_modules/@babel/types": { + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", + "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz", @@ -53,6 +82,7 @@ "ppc64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "aix" @@ -69,6 +99,7 @@ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" @@ -85,6 +116,7 @@ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" @@ -101,6 +133,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" @@ -117,6 +150,7 @@ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -133,6 +167,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -149,6 +184,7 @@ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "freebsd" @@ -165,6 +201,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "freebsd" @@ -181,6 +218,7 @@ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -197,6 +235,7 @@ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -213,6 +252,7 @@ "ia32" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -229,6 +269,7 @@ "loong64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -245,6 +286,7 @@ "mips64el" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -261,6 +303,7 @@ "ppc64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -277,6 +320,7 @@ "riscv64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -293,6 +337,7 @@ "s390x" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -309,6 +354,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -325,6 +371,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "netbsd" @@ -341,6 +388,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "openbsd" @@ -357,6 +405,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "sunos" @@ -373,6 +422,7 @@ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" @@ -389,6 +439,7 @@ "ia32" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" @@ -405,6 +456,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" @@ -414,46 +466,40 @@ } }, "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz", + "integrity": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==", "dev": true, + "license": "MIT", "dependencies": { - "eslint-visitor-keys": "^3.3.0" + "eslint-visitor-keys": "^3.4.3" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, "funding": { "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, "node_modules/@eslint-community/regexpp": { - "version": "4.10.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", - "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "version": "4.11.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.11.2.tgz", + "integrity": "sha512-2WwyTYNVaMNUWPZTOJdkax9iqTdirrApgTbk+Qoq5EPX6myqZvG8QGFRgdKmkjKVG6/G/a565vpPauHk0+hpBA==", "dev": true, + "license": "MIT", "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, "node_modules/@eslint/eslintrc": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.0.2.tgz", - "integrity": "sha512-wV19ZEGEMAC1eHgrS7UQPqsdEiCIbTKTasEfcXAigzoXICcqZSjBZEHlZwNVvKg6UBCjSlos84XiLqsRJnIcIg==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.1.0.tgz", + "integrity": "sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==", "dev": true, + "license": "MIT", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", @@ -477,6 +523,7 @@ "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=18" }, @@ -485,21 +532,24 @@ } }, "node_modules/@eslint/js": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.0.0.tgz", - "integrity": "sha512-RThY/MnKrhubF6+s1JflwUjPEsnCEmYCWwqa/aRISKWNXGZ9epUwft4bUMM35SdKF9xvBrLydAM1RDHd1Z//ZQ==", + "version": "9.13.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.13.0.tgz", + "integrity": "sha512-IFLyoY4d72Z5y/6o/BazFBezupzI/taV8sGumxTAVw3lXG9A6md1Dc34T9s1FoD/an9pJH8RHbAxsaEbBed9lA==", "dev": true, + "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", - "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", + "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", + "deprecated": "Use @eslint/config-array instead", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", + "@humanwhocodes/object-schema": "^2.0.3", "debug": "^4.3.1", "minimatch": "^3.0.5" }, @@ -512,6 +562,7 @@ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=12.22" }, @@ -524,13 +575,16 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", - "dev": true + "deprecated": "Use @eslint/object-schema instead", + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/@jsdoc/salty": { "version": "0.2.8", "resolved": "https://registry.npmjs.org/@jsdoc/salty/-/salty-0.2.8.tgz", "integrity": "sha512-5e+SFVavj1ORKlKaKr2BmTOekmXbelU7dC0cDkQLqag7xfuTPuGMUFx7KWJuv4bYZrTsoL2Z18VVCOKYxzoHcg==", "dev": true, + "license": "Apache-2.0", "dependencies": { "lodash": "^4.17.21" }, @@ -539,14 +593,16 @@ } }, "node_modules/@lit-labs/ssr-dom-shim": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.2.0.tgz", - "integrity": "sha512-yWJKmpGE6lUURKAaIltoPIE/wrbY3TEkqQt+X0m+7fQNnAv0keydnYvbiJFP1PnMhizmIWRWOG5KLhYyc/xl+g==" + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.2.1.tgz", + "integrity": "sha512-wx4aBmgeGvFmOKucFKY+8VFJSYZxs9poN3SDNQFF6lT6NrQUnHiPB2PWz2sc4ieEcAaYYzN+1uWahEeTq2aRIQ==", + "license": "BSD-3-Clause" }, "node_modules/@lit/reactive-element": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.0.4.tgz", "integrity": "sha512-GFn91inaUa2oHLak8awSIigYz0cU0Payr1rcFsrkf5OJ5eSPxElyZfKh0f2p9FsTiZWXQdWGJeXZICEfXXYSXQ==", + "license": "BSD-3-Clause", "dependencies": { "@lit-labs/ssr-dom-shim": "^1.2.0" } @@ -556,6 +612,7 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -569,6 +626,7 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8" } @@ -578,6 +636,7 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -586,50 +645,64 @@ "node": ">= 8" } }, + "node_modules/@rtsao/scc": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", + "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/json5": { "version": "0.0.29", "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/linkify-it": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-3.0.5.tgz", - "integrity": "sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw==", - "dev": true + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==", + "dev": true, + "license": "MIT" }, "node_modules/@types/markdown-it": { - "version": "12.2.3", - "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-12.2.3.tgz", - "integrity": "sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==", + "version": "14.1.2", + "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.2.tgz", + "integrity": "sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==", "dev": true, + "license": "MIT", "dependencies": { - "@types/linkify-it": "*", - "@types/mdurl": "*" + "@types/linkify-it": "^5", + "@types/mdurl": "^2" } }, "node_modules/@types/mdurl": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-1.0.5.tgz", - "integrity": "sha512-6L6VymKTzYSrEf4Nev4Xa1LCHKrlTlYCBMTlQKFuddo1CvQcE52I0mwfOJayueUC7MJuXOeHTcIU683lzd0cUA==", - "dev": true + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==", + "dev": true, + "license": "MIT" }, "node_modules/@types/trusted-types": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", - "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==" + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "license": "MIT" }, "node_modules/@ungap/structured-clone": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/acorn": { - "version": "8.11.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", - "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.13.0.tgz", + "integrity": "sha512-8zSiw54Oxrdym50NlZ9sUusyO1Z1ZchgRLWRaK6c86XJFClyCgFKetdowBg5bKxyp/u+CDBJG4Mpp0m3HLZl9w==", "dev": true, + "license": "MIT", "bin": { "acorn": "bin/acorn" }, @@ -642,6 +715,7 @@ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, + "license": "MIT", "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } @@ -651,6 +725,7 @@ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, + "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -667,6 +742,7 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -676,6 +752,7 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -690,13 +767,15 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true + "dev": true, + "license": "Python-2.0" }, "node_modules/array-buffer-byte-length": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz", "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.5", "is-array-buffer": "^3.0.4" @@ -713,6 +792,7 @@ "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.8.tgz", "integrity": "sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -733,6 +813,7 @@ "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.5.tgz", "integrity": "sha512-zfETvRFA8o7EiNn++N5f/kaCw221hrpGsDmcpndVupkPzEc1Wuf3VgC0qby1BbHs7f5DVYjgtEU2LLh5bqeGfQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -753,6 +834,7 @@ "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.2.0", @@ -771,6 +853,7 @@ "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.2.0", @@ -789,6 +872,7 @@ "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz", "integrity": "sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==", "dev": true, + "license": "MIT", "dependencies": { "array-buffer-byte-length": "^1.0.1", "call-bind": "^1.0.5", @@ -811,6 +895,7 @@ "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", "dev": true, + "license": "MIT", "dependencies": { "possible-typed-array-names": "^1.0.0" }, @@ -825,13 +910,15 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/bootstrap-icons": { "version": "1.11.3", @@ -846,13 +933,15 @@ "type": "opencollective", "url": "https://opencollective.com/bootstrap" } - ] + ], + "license": "MIT" }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -863,6 +952,7 @@ "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", "dev": true, + "license": "MIT", "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -882,6 +972,7 @@ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -891,6 +982,7 @@ "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.9.0.tgz", "integrity": "sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==", "dev": true, + "license": "MIT", "dependencies": { "lodash": "^4.17.15" }, @@ -903,6 +995,7 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -919,6 +1012,7 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -930,25 +1024,29 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/confusing-browser-globals": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -963,6 +1061,7 @@ "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.1.tgz", "integrity": "sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.6", "es-errors": "^1.3.0", @@ -980,6 +1079,7 @@ "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.1.tgz", "integrity": "sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "es-errors": "^1.3.0", @@ -997,6 +1097,7 @@ "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.0.tgz", "integrity": "sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.6", "es-errors": "^1.3.0", @@ -1010,12 +1111,13 @@ } }, "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", "dev": true, + "license": "MIT", "dependencies": { - "ms": "2.1.2" + "ms": "^2.1.3" }, "engines": { "node": ">=6.0" @@ -1030,13 +1132,15 @@ "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/define-data-property": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", "dev": true, + "license": "MIT", "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -1054,6 +1158,7 @@ "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", "dev": true, + "license": "MIT", "dependencies": { "define-data-property": "^1.0.1", "has-property-descriptors": "^1.0.0", @@ -1071,6 +1176,7 @@ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, + "license": "Apache-2.0", "dependencies": { "esutils": "^2.0.2" }, @@ -1079,10 +1185,14 @@ } }, "node_modules/entities": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", - "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, "funding": { "url": "https://github.com/fb55/entities?sponsor=1" } @@ -1092,6 +1202,7 @@ "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.3.tgz", "integrity": "sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==", "dev": true, + "license": "MIT", "dependencies": { "array-buffer-byte-length": "^1.0.1", "arraybuffer.prototype.slice": "^1.0.3", @@ -1152,6 +1263,7 @@ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", "dev": true, + "license": "MIT", "dependencies": { "get-intrinsic": "^1.2.4" }, @@ -1164,6 +1276,7 @@ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" } @@ -1173,6 +1286,7 @@ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz", "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==", "dev": true, + "license": "MIT", "dependencies": { "es-errors": "^1.3.0" }, @@ -1185,6 +1299,7 @@ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz", "integrity": "sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==", "dev": true, + "license": "MIT", "dependencies": { "get-intrinsic": "^1.2.4", "has-tostringtag": "^1.0.2", @@ -1199,6 +1314,7 @@ "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", "dev": true, + "license": "MIT", "dependencies": { "hasown": "^2.0.0" } @@ -1208,6 +1324,7 @@ "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", "dev": true, + "license": "MIT", "dependencies": { "is-callable": "^1.1.4", "is-date-object": "^1.0.1", @@ -1226,6 +1343,7 @@ "integrity": "sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==", "dev": true, "hasInstallScript": true, + "license": "MIT", "bin": { "esbuild": "bin/esbuild" }, @@ -1263,6 +1381,7 @@ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -1271,16 +1390,18 @@ } }, "node_modules/eslint": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", - "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", + "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", + "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", "dev": true, + "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", + "@eslint/js": "8.57.1", + "@humanwhocodes/config-array": "^0.13.0", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", "@ungap/structured-clone": "^1.2.0", @@ -1330,6 +1451,7 @@ "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", "dev": true, + "license": "MIT", "dependencies": { "confusing-browser-globals": "^1.0.10", "object.assign": "^4.1.2", @@ -1349,6 +1471,7 @@ "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^3.2.7", "is-core-module": "^2.13.0", @@ -1360,15 +1483,17 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.1" } }, "node_modules/eslint-module-utils": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.1.tgz", - "integrity": "sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q==", + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.0.tgz", + "integrity": "sha512-wALZ0HFoytlyh/1+4wuZ9FJCD/leWHQzzrxJ8+rebyReSLk7LApMyd3WJaLVoN+D5+WIdJyDK1c6JnE65V4Zyg==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^3.2.7" }, @@ -1386,39 +1511,43 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.1" } }, "node_modules/eslint-plugin-import": { - "version": "2.29.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz", - "integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==", + "version": "2.31.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.31.0.tgz", + "integrity": "sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==", "dev": true, + "license": "MIT", "dependencies": { - "array-includes": "^3.1.7", - "array.prototype.findlastindex": "^1.2.3", + "@rtsao/scc": "^1.1.0", + "array-includes": "^3.1.8", + "array.prototype.findlastindex": "^1.2.5", "array.prototype.flat": "^1.3.2", "array.prototype.flatmap": "^1.3.2", "debug": "^3.2.7", "doctrine": "^2.1.0", "eslint-import-resolver-node": "^0.3.9", - "eslint-module-utils": "^2.8.0", - "hasown": "^2.0.0", - "is-core-module": "^2.13.1", + "eslint-module-utils": "^2.12.0", + "hasown": "^2.0.2", + "is-core-module": "^2.15.1", "is-glob": "^4.0.3", "minimatch": "^3.1.2", - "object.fromentries": "^2.0.7", - "object.groupby": "^1.0.1", - "object.values": "^1.1.7", + "object.fromentries": "^2.0.8", + "object.groupby": "^1.0.3", + "object.values": "^1.2.0", "semver": "^6.3.1", + "string.prototype.trimend": "^1.0.8", "tsconfig-paths": "^3.15.0" }, "engines": { "node": ">=4" }, "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9" } }, "node_modules/eslint-plugin-import/node_modules/debug": { @@ -1426,6 +1555,7 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.1" } @@ -1435,6 +1565,7 @@ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", "dev": true, + "license": "Apache-2.0", "dependencies": { "esutils": "^2.0.2" }, @@ -1447,6 +1578,7 @@ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" @@ -1459,12 +1591,13 @@ } }, "node_modules/eslint-visitor-keys": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", - "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, + "license": "Apache-2.0", "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { "url": "https://opencollective.com/eslint" @@ -1475,6 +1608,7 @@ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", "dev": true, + "license": "MIT", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", @@ -1494,31 +1628,21 @@ } }, "node_modules/eslint/node_modules/@eslint/js": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz", + "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", "dev": true, + "license": "MIT", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/eslint/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/eslint/node_modules/espree": { "version": "9.6.1", "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "acorn": "^8.9.0", "acorn-jsx": "^5.3.2", @@ -1536,6 +1660,7 @@ "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, + "license": "MIT", "dependencies": { "type-fest": "^0.20.2" }, @@ -1547,14 +1672,15 @@ } }, "node_modules/espree": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.0.1.tgz", - "integrity": "sha512-MWkrWZbJsL2UwnjxTX3gG8FneachS/Mwg7tdGXce011sJd5b0JG54vat5KHnfSBODZ3Wvzd2WnjxyzsRoVv+ww==", + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.2.0.tgz", + "integrity": "sha512-upbkBJbckcCNBDBDXEbuhjbP68n+scUd3k/U2EkyM9nw+I/jPiL4cLF/Al06CF96wRltFda16sxDFrxsI1v0/g==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "acorn": "^8.11.3", + "acorn": "^8.12.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.0.0" + "eslint-visitor-keys": "^4.1.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1563,11 +1689,25 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.1.0.tgz", + "integrity": "sha512-Q7lok0mqMUSf5a/AdAZkA5a/gHcO6snwQClVNNvFKCAVlxXucdU8pKydU5ZVZjBx5xr37vGbFFWtLQYreLzrZg==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "estraverse": "^5.1.0" }, @@ -1580,6 +1720,7 @@ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "estraverse": "^5.2.0" }, @@ -1592,6 +1733,7 @@ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=4.0" } @@ -1601,6 +1743,7 @@ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=0.10.0" } @@ -1609,25 +1752,29 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/fastq": { "version": "1.17.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", "dev": true, + "license": "ISC", "dependencies": { "reusify": "^1.0.4" } @@ -1637,6 +1784,7 @@ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", "dev": true, + "license": "MIT", "dependencies": { "flat-cache": "^3.0.4" }, @@ -1649,6 +1797,7 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, + "license": "MIT", "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" @@ -1665,6 +1814,7 @@ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", "dev": true, + "license": "MIT", "dependencies": { "flatted": "^3.2.9", "keyv": "^4.5.3", @@ -1678,13 +1828,15 @@ "version": "3.3.1", "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/for-each": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", "dev": true, + "license": "MIT", "dependencies": { "is-callable": "^1.1.3" } @@ -1693,13 +1845,15 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -1709,6 +1863,7 @@ "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.2.0", @@ -1727,6 +1882,7 @@ "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -1736,6 +1892,7 @@ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", "dev": true, + "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2", @@ -1755,6 +1912,7 @@ "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz", "integrity": "sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.5", "es-errors": "^1.3.0", @@ -1771,7 +1929,9 @@ "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, + "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -1792,6 +1952,7 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, + "license": "ISC", "dependencies": { "is-glob": "^4.0.3" }, @@ -1800,10 +1961,11 @@ } }, "node_modules/globals": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.0.0.tgz", - "integrity": "sha512-m/C/yR4mjO6pXDTm9/R/SpYTAIyaUB4EOzcaaMEl7mds7Mshct9GfejiJNQGjHHbdMPey13Kpu4TMbYi9ex1pw==", + "version": "15.11.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.11.0.tgz", + "integrity": "sha512-yeyNSjdbyVaWurlwCpcA6XNBrHTMIeDdj0/hnvX/OLJ9ekOXYbLsLinH/MucQyGvNnXhidTdNhTtJaffL2sMfw==", "dev": true, + "license": "MIT", "engines": { "node": ">=18" }, @@ -1812,12 +1974,14 @@ } }, "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", "dev": true, + "license": "MIT", "dependencies": { - "define-properties": "^1.1.3" + "define-properties": "^1.2.1", + "gopd": "^1.0.1" }, "engines": { "node": ">= 0.4" @@ -1831,6 +1995,7 @@ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", "dev": true, + "license": "MIT", "dependencies": { "get-intrinsic": "^1.1.3" }, @@ -1842,19 +2007,22 @@ "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/graphemer": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/has-bigints": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -1864,6 +2032,7 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -1873,6 +2042,7 @@ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", "dev": true, + "license": "MIT", "dependencies": { "es-define-property": "^1.0.0" }, @@ -1885,6 +2055,7 @@ "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -1897,6 +2068,7 @@ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -1909,6 +2081,7 @@ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", "dev": true, + "license": "MIT", "dependencies": { "has-symbols": "^1.0.3" }, @@ -1924,6 +2097,7 @@ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", "dev": true, + "license": "MIT", "dependencies": { "function-bind": "^1.1.2" }, @@ -1932,18 +2106,20 @@ } }, "node_modules/highlight.js": { - "version": "11.9.0", - "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.9.0.tgz", - "integrity": "sha512-fJ7cW7fQGCYAkgv4CPfwFHrfd/cLS4Hau96JuJ+ZTOWhjnhoeN1ub1tFmALm/+lW5z4WCAuAV9bm05AP0mS6Gw==", + "version": "11.10.0", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.10.0.tgz", + "integrity": "sha512-SYVnVFswQER+zu1laSya563s+F8VDGt7o35d4utbamowvUNLLMovFqwCLSocpZTz3MgaSRA1IbqRWZv97dtErQ==", + "license": "BSD-3-Clause", "engines": { "node": ">=12.0.0" } }, "node_modules/ignore": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", - "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "dev": true, + "license": "MIT", "engines": { "node": ">= 4" } @@ -1953,6 +2129,7 @@ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", "dev": true, + "license": "MIT", "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" @@ -1969,6 +2146,7 @@ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8.19" } @@ -1977,7 +2155,9 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", "dev": true, + "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -1987,13 +2167,15 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/internal-slot": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==", "dev": true, + "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "hasown": "^2.0.0", @@ -2008,6 +2190,7 @@ "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz", "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "get-intrinsic": "^1.2.1" @@ -2024,6 +2207,7 @@ "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", "dev": true, + "license": "MIT", "dependencies": { "has-bigints": "^1.0.1" }, @@ -2036,6 +2220,7 @@ "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -2052,6 +2237,7 @@ "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -2060,12 +2246,16 @@ } }, "node_modules/is-core-module": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", - "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", + "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==", "dev": true, + "license": "MIT", "dependencies": { - "hasown": "^2.0.0" + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -2076,6 +2266,7 @@ "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.1.tgz", "integrity": "sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==", "dev": true, + "license": "MIT", "dependencies": { "is-typed-array": "^1.1.13" }, @@ -2091,6 +2282,7 @@ "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", "dev": true, + "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -2106,6 +2298,7 @@ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -2115,6 +2308,7 @@ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, + "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, @@ -2127,6 +2321,7 @@ "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -2139,6 +2334,7 @@ "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", "dev": true, + "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -2154,6 +2350,7 @@ "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2163,6 +2360,7 @@ "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -2179,6 +2377,7 @@ "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7" }, @@ -2194,6 +2393,7 @@ "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", "dev": true, + "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -2209,6 +2409,7 @@ "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", "dev": true, + "license": "MIT", "dependencies": { "has-symbols": "^1.0.2" }, @@ -2224,6 +2425,7 @@ "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", "dev": true, + "license": "MIT", "dependencies": { "which-typed-array": "^1.1.14" }, @@ -2239,6 +2441,7 @@ "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2" }, @@ -2250,19 +2453,22 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -2275,26 +2481,28 @@ "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.2.tgz", "integrity": "sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==", "dev": true, + "license": "Apache-2.0", "dependencies": { "xmlcreate": "^2.0.4" } }, "node_modules/jsdoc": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-4.0.2.tgz", - "integrity": "sha512-e8cIg2z62InH7azBBi3EsSEqrKx+nUtAS5bBcYTSpZFA+vhNPyhv8PTFZ0WsjOPDj04/dOLlm08EDcQJDqaGQg==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-4.0.4.tgz", + "integrity": "sha512-zeFezwyXeG4syyYHbvh1A967IAqq/67yXtXvuL5wnqCkFZe8I0vKfm+EO+YEvLguo6w9CDUbrAXVtJSHh2E8rw==", "dev": true, + "license": "Apache-2.0", "dependencies": { "@babel/parser": "^7.20.15", "@jsdoc/salty": "^0.2.1", - "@types/markdown-it": "^12.2.3", + "@types/markdown-it": "^14.1.1", "bluebird": "^3.7.2", "catharsis": "^0.9.0", "escape-string-regexp": "^2.0.0", "js2xmlparser": "^4.0.2", "klaw": "^3.0.0", - "markdown-it": "^12.3.2", - "markdown-it-anchor": "^8.4.1", + "markdown-it": "^14.1.0", + "markdown-it-anchor": "^8.6.7", "marked": "^4.0.10", "mkdirp": "^1.0.4", "requizzle": "^0.2.3", @@ -2313,6 +2521,7 @@ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2321,25 +2530,29 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/json5": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dev": true, + "license": "MIT", "dependencies": { "minimist": "^1.2.0" }, @@ -2352,6 +2565,7 @@ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "dev": true, + "license": "MIT", "dependencies": { "json-buffer": "3.0.1" } @@ -2361,6 +2575,7 @@ "resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz", "integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==", "dev": true, + "license": "MIT", "dependencies": { "graceful-fs": "^4.1.9" } @@ -2370,6 +2585,7 @@ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, + "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" @@ -2379,38 +2595,42 @@ } }, "node_modules/linkify-it": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-3.0.3.tgz", - "integrity": "sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", "dev": true, + "license": "MIT", "dependencies": { - "uc.micro": "^1.0.1" + "uc.micro": "^2.0.0" } }, "node_modules/lit": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.3.tgz", - "integrity": "sha512-l4slfspEsnCcHVRTvaP7YnkTZEZggNFywLEIhQaGhYDczG+tu/vlgm/KaWIEjIp+ZyV20r2JnZctMb8LeLCG7Q==", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/lit/-/lit-3.2.1.tgz", + "integrity": "sha512-1BBa1E/z0O9ye5fZprPtdqnc0BFzxIxTTOO/tQFmyC/hj1O3jL4TfmLBw0WEwjAokdLwpclkvGgDJwTIh0/22w==", + "license": "BSD-3-Clause", "dependencies": { "@lit/reactive-element": "^2.0.4", - "lit-element": "^4.0.4", - "lit-html": "^3.1.2" + "lit-element": "^4.1.0", + "lit-html": "^3.2.0" } }, "node_modules/lit-element": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.0.5.tgz", - "integrity": "sha512-iTWskWZEtn9SyEf4aBG6rKT8GABZMrTWop1+jopsEOgEcugcXJGKuX5bEbkq9qfzY+XB4MAgCaSPwnNpdsNQ3Q==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.1.1.tgz", + "integrity": "sha512-HO9Tkkh34QkTeUmEdNYhMT8hzLid7YlMlATSi1q4q17HE5d9mrrEHJ/o8O2D0cMi182zK1F3v7x0PWFjrhXFew==", + "license": "BSD-3-Clause", "dependencies": { "@lit-labs/ssr-dom-shim": "^1.2.0", "@lit/reactive-element": "^2.0.4", - "lit-html": "^3.1.2" + "lit-html": "^3.2.0" } }, "node_modules/lit-html": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.1.3.tgz", - "integrity": "sha512-FwIbqDD8O/8lM4vUZ4KvQZjPPNx7V1VhT7vmRB8RBAO0AU6wuTVdoXiu2CivVjEGdugvcbPNBLtPE1y0ifplHA==", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.2.1.tgz", + "integrity": "sha512-qI/3lziaPMSKsrwlxH/xMgikhQ0EGOX2ICU73Bi/YHFvz2j/yMCIrw4+puF2IpQ4+upd3EWbvnHM9+PnJn48YA==", + "license": "BSD-3-Clause", "dependencies": { "@types/trusted-types": "^2.0.2" } @@ -2420,6 +2640,7 @@ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, + "license": "MIT", "dependencies": { "p-locate": "^5.0.0" }, @@ -2434,28 +2655,32 @@ "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/markdown-it": { - "version": "12.3.2", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz", - "integrity": "sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==", + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", + "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", "dev": true, + "license": "MIT", "dependencies": { "argparse": "^2.0.1", - "entities": "~2.1.0", - "linkify-it": "^3.0.1", - "mdurl": "^1.0.1", - "uc.micro": "^1.0.5" + "entities": "^4.4.0", + "linkify-it": "^5.0.0", + "mdurl": "^2.0.0", + "punycode.js": "^2.3.1", + "uc.micro": "^2.1.0" }, "bin": { - "markdown-it": "bin/markdown-it.js" + "markdown-it": "bin/markdown-it.mjs" } }, "node_modules/markdown-it-anchor": { @@ -2463,6 +2688,7 @@ "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz", "integrity": "sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==", "dev": true, + "license": "Unlicense", "peerDependencies": { "@types/markdown-it": "*", "markdown-it": "*" @@ -2473,6 +2699,7 @@ "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", "dev": true, + "license": "MIT", "bin": { "marked": "bin/marked.js" }, @@ -2481,16 +2708,18 @@ } }, "node_modules/mdurl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", - "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==", - "dev": true + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", + "dev": true, + "license": "MIT" }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, + "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -2503,6 +2732,7 @@ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -2512,6 +2742,7 @@ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", "dev": true, + "license": "MIT", "bin": { "mkdirp": "bin/cmd.js" }, @@ -2520,22 +2751,28 @@ } }, "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/object-inspect": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", - "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz", + "integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==", "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -2545,6 +2782,7 @@ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" } @@ -2554,6 +2792,7 @@ "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.5", "define-properties": "^1.2.1", @@ -2572,6 +2811,7 @@ "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.8.tgz", "integrity": "sha512-cmopxi8VwRIAw/fkijJohSfpef5PdN0pMQJN6VC/ZKvn0LIknWD8KtgY6KlQdEc4tIjcQ3HxSMmnvtzIscdaYQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -2586,6 +2826,7 @@ "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -2604,6 +2845,7 @@ "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -2618,6 +2860,7 @@ "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.0.tgz", "integrity": "sha512-yBYjY9QX2hnRmZHAjG/f13MzmBzxzYgQhFrke06TTyKY5zSTEqkOeukBzIdVA3j3ulu8Qa3MbVFShV7T2RmGtQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -2635,22 +2878,24 @@ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, + "license": "ISC", "dependencies": { "wrappy": "1" } }, "node_modules/optionator": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", - "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", "dev": true, + "license": "MIT", "dependencies": { - "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0" + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" }, "engines": { "node": ">= 0.8.0" @@ -2661,6 +2906,7 @@ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, + "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -2676,6 +2922,7 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, + "license": "MIT", "dependencies": { "p-limit": "^3.0.2" }, @@ -2691,6 +2938,7 @@ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, + "license": "MIT", "dependencies": { "callsites": "^3.0.0" }, @@ -2703,6 +2951,7 @@ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2712,6 +2961,7 @@ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -2721,6 +2971,7 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2729,13 +2980,15 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/possible-typed-array-names": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" } @@ -2745,6 +2998,7 @@ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8.0" } @@ -2754,6 +3008,17 @@ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/punycode.js": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", + "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", + "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -2776,18 +3041,20 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/regexp.prototype.flags": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz", - "integrity": "sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==", + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.3.tgz", + "integrity": "sha512-vqlC04+RQoFalODCbCumG2xIOvapzVMHwsyIGM/SIE8fRhFFsXeH8/QQ+s0T0kDAhKc4k30s73/0ydkHQz6HlQ==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.6", + "call-bind": "^1.0.7", "define-properties": "^1.2.1", "es-errors": "^1.3.0", - "set-function-name": "^2.0.1" + "set-function-name": "^2.0.2" }, "engines": { "node": ">= 0.4" @@ -2801,6 +3068,7 @@ "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.4.tgz", "integrity": "sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw==", "dev": true, + "license": "MIT", "dependencies": { "lodash": "^4.17.21" } @@ -2810,6 +3078,7 @@ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", "dev": true, + "license": "MIT", "dependencies": { "is-core-module": "^2.13.0", "path-parse": "^1.0.7", @@ -2827,6 +3096,7 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -2836,6 +3106,7 @@ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "dev": true, + "license": "MIT", "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -2845,7 +3116,9 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", "dev": true, + "license": "ISC", "dependencies": { "glob": "^7.1.3" }, @@ -2875,6 +3148,7 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "dependencies": { "queue-microtask": "^1.2.2" } @@ -2884,6 +3158,7 @@ "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.2.tgz", "integrity": "sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "get-intrinsic": "^1.2.4", @@ -2902,6 +3177,7 @@ "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz", "integrity": "sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.6", "es-errors": "^1.3.0", @@ -2919,6 +3195,7 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -2928,6 +3205,7 @@ "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", "dev": true, + "license": "MIT", "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", @@ -2945,6 +3223,7 @@ "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", "dev": true, + "license": "MIT", "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", @@ -2960,6 +3239,7 @@ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, + "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -2972,6 +3252,7 @@ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2981,6 +3262,7 @@ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "es-errors": "^1.3.0", @@ -2999,6 +3281,7 @@ "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.9.tgz", "integrity": "sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -3017,6 +3300,7 @@ "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.8.tgz", "integrity": "sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -3031,6 +3315,7 @@ "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -3048,6 +3333,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -3060,6 +3346,7 @@ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -3069,6 +3356,7 @@ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -3081,6 +3369,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -3093,6 +3382,7 @@ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -3104,13 +3394,15 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/tsconfig-paths": { "version": "3.15.0", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", "dev": true, + "license": "MIT", "dependencies": { "@types/json5": "^0.0.29", "json5": "^1.0.2", @@ -3123,6 +3415,7 @@ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, + "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1" }, @@ -3135,6 +3428,7 @@ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true, + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -3147,6 +3441,7 @@ "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz", "integrity": "sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "es-errors": "^1.3.0", @@ -3161,6 +3456,7 @@ "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz", "integrity": "sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "for-each": "^0.3.3", @@ -3180,6 +3476,7 @@ "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz", "integrity": "sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==", "dev": true, + "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.7", @@ -3200,6 +3497,7 @@ "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.6.tgz", "integrity": "sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "for-each": "^0.3.3", @@ -3216,16 +3514,18 @@ } }, "node_modules/uc.micro": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", - "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", - "dev": true + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", + "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", + "dev": true, + "license": "MIT" }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "has-bigints": "^1.0.2", @@ -3237,16 +3537,18 @@ } }, "node_modules/underscore": { - "version": "1.13.6", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz", - "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==", - "dev": true + "version": "1.13.7", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.7.tgz", + "integrity": "sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g==", + "dev": true, + "license": "MIT" }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "punycode": "^2.1.0" } @@ -3256,6 +3558,7 @@ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, + "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -3271,6 +3574,7 @@ "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", "dev": true, + "license": "MIT", "dependencies": { "is-bigint": "^1.0.1", "is-boolean-object": "^1.1.0", @@ -3287,6 +3591,7 @@ "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", "dev": true, + "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.7", @@ -3301,23 +3606,36 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/xmlcreate": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.4.tgz", "integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==", - "dev": true + "dev": true, + "license": "Apache-2.0" }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, diff --git a/src/core/EventType.js b/src/core/EventType.js index a5476be..23bf75d 100644 --- a/src/core/EventType.js +++ b/src/core/EventType.js @@ -10,4 +10,5 @@ export const EventType = { OBJECT: 'js-object', BLOB: 'js-blob', DONE: 'js-done', + CHANGE: 'js-change', }; diff --git a/src/core/Model.js b/src/core/Model.js new file mode 100644 index 0000000..1a6089e --- /dev/null +++ b/src/core/Model.js @@ -0,0 +1,192 @@ +import { EventType } from './EventType'; +import { ProviderElement } from './ProviderElement'; + +/** + * @class Model + * + * This class is a model base class for storing data. It can store + * scalar types and objects, and be subclassed to store more complex + * data. + * + * You can attach a provider to the model to fetch data from a remote + * source, in which case EventType.CHANGE will be dispatched when the + * data is updated. + * + * @example + * var model = new Model(data, provider); + */ +export class Model extends EventTarget { + #provider; + #data; + + static get localName() { + return 'js-model'; + } + + constructor(provider) { + super(); + + // Listen for provider events + this.#provider = provider instanceof ProviderElement ? provider : null; + if (this.#provider) { + this.#provider.addEventListener(EventType.FETCH, () => { + // Data is being fetched from the provider + }); + this.#provider.addEventListener(EventType.DONE, () => { + // Data has been fetched from the provider + }); + this.#provider.addEventListener(EventType.TEXT, (evt) => { + this.data = evt.detail; + }); + this.#provider.addEventListener(EventType.OBJECT, (evt) => { + this.data = evt.detail; + }); + this.#provider.addEventListener(EventType.BLOB, (evt) => { + this.data = evt.detail; + }); + } + } + + static get properties() { + return {}; + } + + get data() { + return this.#data; + } + + set data(data) { + let modified = false; + + if (data === null || data === undefined) { + // Null type + modified = (this.data !== null); + this.#data = null; + } else if (Model.#isScalar(data)) { + // Scalar type + modified = (this.data === data); + this.#data = data; + } else if (data instanceof Model) { + // Model type + console.log('TODO: Model'); + } else if (data instanceof Object) { + var data = this.#newObject(data); + modified = (this.data === data); + this.#data = data; + } else if (data instanceof Array) { + // Array type + console.log('TODO: Array'); + } else { + // Cannot handle this type yet + throw new Error(`Cannot handle data type ${data.localName}`); + } + + // Emit a change event if the data was modified + if (modified) { + this.dispatchEvent(new CustomEvent(EventType.CHANGE, { + detail: this + })); + } + } + + static #isScalar(value) { + if (value === null) { + return true; + } + if (value instanceof String || typeof value === 'string') { + return true; + } + if (value instanceof Number || typeof value === 'number') { + return true; + } + if (value instanceof Boolean || typeof value === 'boolean') { + return true; + } + if (value instanceof Date) { + return true; + } + return false; + } + + static #isSubclassOf(subClass, superClass) { + let prototype = subClass.prototype; + while (prototype) { + if (prototype === superClass.prototype) { + return true; + } + prototype = Object.getPrototypeOf(prototype); + } + return false; + } + + static #isScalarType(type) { + if (this.#isSubclassOf(type, String)) { + return true; + } + if (this.#isSubclassOf(type, Number)) { + return true; + } + if (this.#isSubclassOf(type, Boolean)) { + return true; + } + if (this.#isSubclassOf(type, Date)) { + return true; + } + return false; + } + + #newObject(data) { + const properties = this.constructor.properties; + + // If the Model has no properties, return the data directly + if (!properties || Object.keys(properties).length === 0) { + return data; + } + + // Iterate over the properties and set the data + let obj = {}; + for (const key in properties) { + let value = data[key]; + + // 'data' is the only reserved property name + if (value === undefined || key === 'data') { + continue; + } + + // Create a new value + if (Model.#isSubclassOf(properties[key].type, String)) { + if (value instanceof String) { + // Do nothing + } else if (typeof value === 'string') { + value = new String(value); + } else { + console.error(`Invalid string value for ${key}`); + } + } else if (Model.#isSubclassOf(properties[key].type, Number)) { + // Number type + value = new Number(value); + } else if (Model.#isSubclassOf(properties[key].type, Boolean)) { + value = new Boolean(value); + } else if (Model.#isSubclassOf(properties[key].type, Date)) { + value = new Date(value); + } else if (Model.#isSubclassOf(properties[key].type, Model)) { + const model = new properties[key].type(); + model.data = value; + value = model; + } else if (Model.#isSubclassOf(properties[key].type, Array)) { + // Array type + const array = new(Array); + console.log(`TODO: Create a new array value for ${key} ${value}`); + } + + // Create a new object for the property + obj[key] = value; + } + + return obj; + } + + toString() { + return JSON.stringify(this); + } +} diff --git a/src/core/ModelElement.js b/src/core/ModelElement.js deleted file mode 100644 index f559a04..0000000 --- a/src/core/ModelElement.js +++ /dev/null @@ -1,170 +0,0 @@ -import { LitElement, html } from 'lit'; -import { EventType } from './EventType'; - -/** - * @class ModelElement - * - * This class is a data store for an object. - * - * @property {String} provider - A connnected provider element id - * - * @example - * - */ -export class ModelElement extends LitElement { - #provider; - - static get localName() { - return 'js-model'; - } - - constructor(data) { - super(); - - // Default properties - this.provider = null; - this.data = null; - if (data) { - this._updateData(data); - } - } - - static get properties() { - return { - provider: { type: String }, - data: { type: Object, reflect: true }, - }; - } - - render() { - return html`
${this.asJSON()}
`; - } - - asJSON() { - return JSON.stringify(this.data); - } - - connectedCallback() { - super.connectedCallback(); - this.#connect(); - } - - #connect() { - if (this.provider) { - this.#provider = document.getElementById(this.provider); - } else { - this.#provider = null; - } - if (this.#provider) { - this.#provider.addEventListener(EventType.FETCH, (evt) => { - // Object is being fetched from the provider - }); - this.#provider.addEventListener(EventType.ERROR, (evt) => { - // An error occurred in the provider - console.log('Error event', evt.error); - }); - this.#provider.addEventListener(EventType.DONE, (evt) => { - // Object has been fetched from the provider - }); - this.#provider.addEventListener(EventType.TEXT, (evt) => { - this._updateData(evt.detail); - }); - this.#provider.addEventListener(EventType.OBJECT, (evt) => { - this._updateData(evt.detail); - }); - this.#provider.addEventListener(EventType.BLOB, (evt) => { - this._updateData(evt.detail); - }); - } - } - - _updateData(data) { - // Scalar type - if (ModelElement.#isScalar(data)) { - this.data = data; - return; - } - // Object type - if (data instanceof Object || data instanceof ModelElement) { - const newVal = this.#updateObject(data); - if (newVal) { - // Modified - this.data = newVal; - } - return; - } - // Cannot handle this type yet - throw new Error(`Cannot handle data type ${data.localName}`); - } - - static #isScalar(value) { - if (value === null) { - return true; - } - if (value instanceof String || typeof value === 'string') { - return true; - } - if (value instanceof Number || typeof value === 'number') { - return true; - } - if (value instanceof Boolean || typeof value === 'boolean') { - return true; - } - if (value instanceof Date) { - return true; - } - return false; - } - - #updateObject(data) { - let obj = {}; - let newVal; - let modified = false; - const properties = this.constructor.properties; - for (const key in data) { - if (!properties[key]) { - continue; - } else if (properties[key].type === String) { - newVal = this.#setString(key, data[key]); - if (newVal !== undefined) { - obj[key] = data[key]; - modified = true; - } - } else if (ModelElement.#isSubclassOf(properties[key].type, ModelElement)) { - newVal = this.#setModel(key, data[key]); - if (newVal !== undefined) { - obj[key] = data[key]; - modified = true; - } - } else { - throw new Error(`#updateObject: ${key}: Unknown type}`); - } - } - return modified ? obj : null; - } - - static #isSubclassOf(subClass, superClass) { - let prototype = subClass.prototype; - while (prototype) { - if (prototype === superClass.prototype) { - return true; - } - prototype = Object.getPrototypeOf(prototype); - } - return false; - } - - #setString(key, value) { - // Check if modified - if (this[key] === value) { - return undefined; - } - console.log('SetString:', key, 'Value:', value); - this[key] = value; - return value; - } - - #setModel(key, value) { - console.log('SetModel:', key, 'Value:', value); - } -} diff --git a/src/core/ProviderElement.js b/src/core/ProviderElement.js index 8a0f79b..b429804 100644 --- a/src/core/ProviderElement.js +++ b/src/core/ProviderElement.js @@ -139,6 +139,7 @@ export class ProviderElement extends LitElement { } #fetch(url, request) { + this.message = `FETCH ${url}`; this.dispatchEvent(new CustomEvent(EventType.FETCH, { detail: url })); diff --git a/src/core/core.js b/src/core/core.js index 175f059..40da98b 100644 --- a/src/core/core.js +++ b/src/core/core.js @@ -1,6 +1,4 @@ import { ProviderElement } from './ProviderElement'; -import { ModelElement } from './ModelElement'; // Define Web Components customElements.define(ProviderElement.localName, ProviderElement); // js-provider -customElements.define(ModelElement.localName, ModelElement); // js-model diff --git a/src/element/ButtonElement.js b/src/element/ButtonElement.js new file mode 100644 index 0000000..0b6d5f7 --- /dev/null +++ b/src/element/ButtonElement.js @@ -0,0 +1,59 @@ +import { LitElement, html, nothing } from 'lit'; +import { EventType } from '../core/EventType'; + +/** + * @class ButtonElement + * + * This class provides a button element. + * + * @property {String} name - The name of the button + * @property {String} type - The type of the button if not standard (control, submit) + * @property {String} textTransform - If the button text should be transformed (uppercase, + * lowercase, capitalize) + * @property {Boolean} disabled - Whether the button is disabled + * + * @example + * OK + */ +export class ButtonElement extends LitElement { + static get localName() { + return 'js-button'; + } + + static get properties() { + return { + name: { type: String }, + type: { type: String }, + textTransform: { type: String }, + disabled: { type: Boolean }, + }; + } + + render() { + return html` + + `; + } + + #onClick(event) { + event.preventDefault(); + this.dispatchEvent(new CustomEvent(EventType.CLICK, { bubbles: true, composed: true })); + } + + get classes() { + const classes = []; + if (this.type) { + classes.push(this.type.toLowerCase()); + } + if (this.textTransform) { + classes.push(`text-transform-${this.textTransform.toLowerCase()}`); + } + return classes; + } +} diff --git a/src/element/TableBodyElement.js b/src/element/TableBodyElement.js new file mode 100644 index 0000000..12a9d15 --- /dev/null +++ b/src/element/TableBodyElement.js @@ -0,0 +1,66 @@ +import { LitElement, html } from 'lit'; +import { Model } from '../core/Model'; +import { EventType } from '../core/EventType'; + +/** + * @class TableBodyElement + * + * This class provides a table body element. + * + * @example + * + */ +export class TableBodyElement extends LitElement { + static get localName() { + return 'js-table-body'; + } + + static get properties() { + return { + model: { + type: Model, reflect: true, converter: { + fromAttribute: (value, type) => { + console.log(`TableBodyElement.model.fromAttribute(${value}, ${type})`); + return value; + }, + toAttribute: (value, type) => { + console.log(value); + return value.data; + } + } + } + }; + } + + render() { + console.log(`TableBodyElement.render() ${this.model ? this.model.data : '(not a model)'}`); + return html` + + + A + B + + + `; + } + + updated(changedProperties) { + if (changedProperties.has('model')) { + this.#modelChangedSetListeners(this.model, changedProperties.get('model')); + } + } + + #modelChangedSetListeners(newVal, oldVal) { + if (oldVal) { + oldVal.removeEventListener(EventType.CHANGE, this.#modelChanged.bind(this)); + } + if (newVal) { + newVal.addEventListener(EventType.CHANGE, this.#modelChanged.bind(this)); + } + } + + #modelChanged() { + console.log(`TableBodyElement.#modelChanged`); + this.requestUpdate(); + } +} diff --git a/src/element/element.css b/src/element/element.css new file mode 100644 index 0000000..336759b --- /dev/null +++ b/src/element/element.css @@ -0,0 +1,12 @@ + +.text-transform-uppercase { + text-transform: uppercase; +} + +.text-transform-lowercase { + text-transform: lowercase; +} + +.text-transform-capitalize { + text-transform: capitalize; +} diff --git a/src/element/element.js b/src/element/element.js new file mode 100644 index 0000000..a9f2416 --- /dev/null +++ b/src/element/element.js @@ -0,0 +1,10 @@ +// CSS +import './element.css'; + +// Elements +import { TableBodyElement } from './TableBodyElement'; +import { ButtonElement } from './ButtonElement'; + +// Define Web Components +customElements.define(TableBodyElement.localName, TableBodyElement); // js-table-body +customElements.define(ButtonElement.localName, ButtonElement); // js-button diff --git a/src/geojson/FeatureElement.js b/src/geojson/FeatureModel.js similarity index 62% rename from src/geojson/FeatureElement.js rename to src/geojson/FeatureModel.js index a773238..d3c1a29 100644 --- a/src/geojson/FeatureElement.js +++ b/src/geojson/FeatureModel.js @@ -1,11 +1,11 @@ -import { ModelElement } from '../core/ModelElement'; -import { ShapeElement } from './ShapeElement'; +import { Model } from '../core/Model'; +import { ShapeModel } from './ShapeModel'; /** - * @class FeatureElement + * @class FeatureModel * * This class is a data store for a GeoJSON feature object. - * + * * @property {String} type - Type of feature * @property {String} title - Title of feature * @property {ShapeElement} geometry - Geometry of feature @@ -14,7 +14,7 @@ import { ShapeElement } from './ShapeElement'; * @example * */ -export class FeatureElement extends ModelElement { +export class FeatureModel extends Model { static get localName() { return 'js-geo-feature'; } @@ -23,8 +23,18 @@ export class FeatureElement extends ModelElement { const properties = super.properties; properties.type = { type: String, reflect: true }; properties.title = { type: String, reflect: true }; - properties.geometry = { type: ShapeElement, reflect: true }; + properties.geometry = { type: ShapeModel, reflect: true }; properties.properties = { type: Object, reflect: true }; return properties; } + + constructor(provider) { + super(provider); + + // Set the default properties + this.type = 'Feature'; + this.title = ''; + this.geometry = null; + this.properties = {}; + } } diff --git a/src/geojson/ShapeElement.js b/src/geojson/ShapeModel.js similarity index 70% rename from src/geojson/ShapeElement.js rename to src/geojson/ShapeModel.js index 4f5dfaa..b8d713a 100644 --- a/src/geojson/ShapeElement.js +++ b/src/geojson/ShapeModel.js @@ -1,7 +1,7 @@ -import { ModelElement } from '../core/ModelElement'; +import { Model } from '../core/Model'; /** - * @class ShapeElement + * @class ShapeModel * * This class is a data store for an object. * @@ -10,7 +10,7 @@ import { ModelElement } from '../core/ModelElement'; * @example * */ -export class ShapeElement extends ModelElement { +export class ShapeModel extends Model { static get localName() { return 'js-geo-shape'; } @@ -21,4 +21,10 @@ export class ShapeElement extends ModelElement { properties.coordinates = { type: Array, reflect: true }; return properties; } + + constructor() { + super(); + this.type = 'Polygon'; + this.coordinates = []; + } } diff --git a/src/geojson/geojson.js b/src/geojson/geojson.js index 9740b8c..e69de29 100644 --- a/src/geojson/geojson.js +++ b/src/geojson/geojson.js @@ -1,6 +0,0 @@ -import { FeatureElement } from './FeatureElement'; -import { ShapeElement } from './ShapeElement'; - -// Define Web Components -customElements.define(FeatureElement.localName, FeatureElement); // js-geo-feature -customElements.define(ShapeElement.localName, ShapeElement); // js-geo-shape From 71b5bacbfbfadaf94a24116b2246da25bc06a6fa Mon Sep 17 00:00:00 2001 From: David Thorpe Date: Sat, 26 Oct 2024 18:40:25 +0200 Subject: [PATCH 03/10] Updates --- example/index.html | 14 +++-- example/index.js | 3 + .../assets/font/OpenSans/LICENSE.txt | 0 .../assets/font/OpenSans/OpenSans-Bold.ttf | Bin .../font/OpenSans/OpenSans-BoldItalic.ttf | Bin .../font/OpenSans/OpenSans-ExtraBold.ttf | Bin .../OpenSans/OpenSans-ExtraBoldItalic.ttf | Bin .../assets/font/OpenSans/OpenSans-Italic.ttf | Bin .../assets/font/OpenSans/OpenSans-Light.ttf | Bin .../font/OpenSans/OpenSans-LightItalic.ttf | Bin .../assets/font/OpenSans/OpenSans-Regular.ttf | Bin .../font/OpenSans/OpenSans-SemiBold.ttf | Bin .../font/OpenSans/OpenSans-SemiBoldItalic.ttf | Bin {srcold => src}/assets/font/opensans.css | 0 src/core/core-tokens.css | 53 ++++++++++++++++++ src/core/core.css | 24 ++++++++ src/element/ButtonElement.js | 31 +++++++++- src/element/ContainerElement.js | 40 +++++++++++++ src/element/element.js | 2 + 19 files changed, 160 insertions(+), 7 deletions(-) rename {srcold => src}/assets/font/OpenSans/LICENSE.txt (100%) rename {srcold => src}/assets/font/OpenSans/OpenSans-Bold.ttf (100%) rename {srcold => src}/assets/font/OpenSans/OpenSans-BoldItalic.ttf (100%) rename {srcold => src}/assets/font/OpenSans/OpenSans-ExtraBold.ttf (100%) rename {srcold => src}/assets/font/OpenSans/OpenSans-ExtraBoldItalic.ttf (100%) rename {srcold => src}/assets/font/OpenSans/OpenSans-Italic.ttf (100%) rename {srcold => src}/assets/font/OpenSans/OpenSans-Light.ttf (100%) rename {srcold => src}/assets/font/OpenSans/OpenSans-LightItalic.ttf (100%) rename {srcold => src}/assets/font/OpenSans/OpenSans-Regular.ttf (100%) rename {srcold => src}/assets/font/OpenSans/OpenSans-SemiBold.ttf (100%) rename {srcold => src}/assets/font/OpenSans/OpenSans-SemiBoldItalic.ttf (100%) rename {srcold => src}/assets/font/opensans.css (100%) create mode 100644 src/core/core-tokens.css create mode 100644 src/core/core.css create mode 100644 src/element/ContainerElement.js diff --git a/example/index.html b/example/index.html index d9aa3fe..801a2cd 100644 --- a/example/index.html +++ b/example/index.html @@ -6,18 +6,20 @@ Example + -
+ PROVIDER - Reload -
- - TABLE - + + Reload + + TABLE + + diff --git a/example/index.js b/example/index.js index 65abdd4..ef1849a 100644 --- a/example/index.js +++ b/example/index.js @@ -4,6 +4,9 @@ import '../src/core/core'; import '../src/element/element'; +// Styles +import '../src/core/core.css'; + // Other import './esbuild'; import './load'; diff --git a/srcold/assets/font/OpenSans/LICENSE.txt b/src/assets/font/OpenSans/LICENSE.txt similarity index 100% rename from srcold/assets/font/OpenSans/LICENSE.txt rename to src/assets/font/OpenSans/LICENSE.txt diff --git a/srcold/assets/font/OpenSans/OpenSans-Bold.ttf b/src/assets/font/OpenSans/OpenSans-Bold.ttf similarity index 100% rename from srcold/assets/font/OpenSans/OpenSans-Bold.ttf rename to src/assets/font/OpenSans/OpenSans-Bold.ttf diff --git a/srcold/assets/font/OpenSans/OpenSans-BoldItalic.ttf b/src/assets/font/OpenSans/OpenSans-BoldItalic.ttf similarity index 100% rename from srcold/assets/font/OpenSans/OpenSans-BoldItalic.ttf rename to src/assets/font/OpenSans/OpenSans-BoldItalic.ttf diff --git a/srcold/assets/font/OpenSans/OpenSans-ExtraBold.ttf b/src/assets/font/OpenSans/OpenSans-ExtraBold.ttf similarity index 100% rename from srcold/assets/font/OpenSans/OpenSans-ExtraBold.ttf rename to src/assets/font/OpenSans/OpenSans-ExtraBold.ttf diff --git a/srcold/assets/font/OpenSans/OpenSans-ExtraBoldItalic.ttf b/src/assets/font/OpenSans/OpenSans-ExtraBoldItalic.ttf similarity index 100% rename from srcold/assets/font/OpenSans/OpenSans-ExtraBoldItalic.ttf rename to src/assets/font/OpenSans/OpenSans-ExtraBoldItalic.ttf diff --git a/srcold/assets/font/OpenSans/OpenSans-Italic.ttf b/src/assets/font/OpenSans/OpenSans-Italic.ttf similarity index 100% rename from srcold/assets/font/OpenSans/OpenSans-Italic.ttf rename to src/assets/font/OpenSans/OpenSans-Italic.ttf diff --git a/srcold/assets/font/OpenSans/OpenSans-Light.ttf b/src/assets/font/OpenSans/OpenSans-Light.ttf similarity index 100% rename from srcold/assets/font/OpenSans/OpenSans-Light.ttf rename to src/assets/font/OpenSans/OpenSans-Light.ttf diff --git a/srcold/assets/font/OpenSans/OpenSans-LightItalic.ttf b/src/assets/font/OpenSans/OpenSans-LightItalic.ttf similarity index 100% rename from srcold/assets/font/OpenSans/OpenSans-LightItalic.ttf rename to src/assets/font/OpenSans/OpenSans-LightItalic.ttf diff --git a/srcold/assets/font/OpenSans/OpenSans-Regular.ttf b/src/assets/font/OpenSans/OpenSans-Regular.ttf similarity index 100% rename from srcold/assets/font/OpenSans/OpenSans-Regular.ttf rename to src/assets/font/OpenSans/OpenSans-Regular.ttf diff --git a/srcold/assets/font/OpenSans/OpenSans-SemiBold.ttf b/src/assets/font/OpenSans/OpenSans-SemiBold.ttf similarity index 100% rename from srcold/assets/font/OpenSans/OpenSans-SemiBold.ttf rename to src/assets/font/OpenSans/OpenSans-SemiBold.ttf diff --git a/srcold/assets/font/OpenSans/OpenSans-SemiBoldItalic.ttf b/src/assets/font/OpenSans/OpenSans-SemiBoldItalic.ttf similarity index 100% rename from srcold/assets/font/OpenSans/OpenSans-SemiBoldItalic.ttf rename to src/assets/font/OpenSans/OpenSans-SemiBoldItalic.ttf diff --git a/srcold/assets/font/opensans.css b/src/assets/font/opensans.css similarity index 100% rename from srcold/assets/font/opensans.css rename to src/assets/font/opensans.css diff --git a/src/core/core-tokens.css b/src/core/core-tokens.css new file mode 100644 index 0000000..b7601af --- /dev/null +++ b/src/core/core-tokens.css @@ -0,0 +1,53 @@ +/* fonts */ +:root { + --font-family-base: "Open Sans", "Helvetica Neue", Arial, sans-serif; + --font-size-normal: 0.85rem; + --font-size-small: 0.75rem; + --font-size-large: 1.25rem; + --font-weight-light: 300; + --font-weight-normal: 400; + --font-weight-semibold: 600; + --font-weight-bold: 700; + --font-weight-extrabold: 800; +} + +/* containers */ +:root { + --container-padding: 1rem; +} + +/* colours */ +:root { + --primary-color: #16f; + --secondary-color: #aaa; + --success-color: #285; + --warning-color: #f72; + --error-color: #f55; + --light-color: #eee; + --white-color: #fff; + --dark-color: #333; + --black-color: #000; + --grey-10-color: #EAEAEA; + --grey-20-color: #D0D0D0; + --grey-30-color: #B6B6B6; + --grey-40-color: #9C9C9C; + --grey-50-color: #828282; + --grey-60-color: #6A6A6A; + --grey-70-color: #4E4E4E; + --grey-80-color: #343434; + --grey-90-color: #1A1A1A; +} + +/* buttons */ +:root { + --button-padding: 0.5rem 1rem; + --button-color: var(--light-color); + --button-color-hover: var(--white-color); + --button-color-active: var(--white-color); + --button-color-disabled: var(--grey-50-color); + --button-background-color: var(--primary-color); + --button-border-radius: 2px; + --button-border-width: 1px; + --button-border-color: var(--secondary-color); + --button-border-style: solid; +} diff --git a/src/core/core.css b/src/core/core.css new file mode 100644 index 0000000..8fdcec2 --- /dev/null +++ b/src/core/core.css @@ -0,0 +1,24 @@ +@import url(../assets/font/opensans.css); +@import './core-tokens.css'; + +:root { + color-scheme: light dark; +} + +/* force light theme when this class is present */ +.light-mode { + color-scheme: only light; +} + +/* force dark theme when this class is present */ +.dark-mode { + color-scheme: only dark; +} + +body { + background-color: light-dark(var(--light-color), var(--dark-color)); + color: light-dark(var(--dark-color), var(--light-color)); + margin: 0; + font-family: var(--font-family-base); + font-size: var(--font-size-normal); +} diff --git a/src/element/ButtonElement.js b/src/element/ButtonElement.js index 0b6d5f7..ce403cd 100644 --- a/src/element/ButtonElement.js +++ b/src/element/ButtonElement.js @@ -1,4 +1,4 @@ -import { LitElement, html, nothing } from 'lit'; +import { LitElement, html, css, nothing } from 'lit'; import { EventType } from '../core/EventType'; /** @@ -29,6 +29,35 @@ export class ButtonElement extends LitElement { }; } + static get styles() { + return css` + button { + display: inline-flex; + position: relative; + margin: none; + padding: var(--button-padding); + cursor: pointer; + user-select: none; + color: var(--button-color); + background-color: var(--button-background-color); + border: var(--button-border-width) var(--button-border-style) var(--button-border-color); + border-radius: var(--button-border-radius); + + &:hover { + color: var(--button-color-hover); + } + &:disabled { + color: var(--button-color-disabled); + cursor: default; + } + &:not(:disabled):active { + color: var(--button-color-active); + transform: translate(0.05rem, 0.05rem); + } + } + `; + } + render() { return html`