@things-factory/reference-app 4.0.1 → 4.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attachments/69808491-8e6b-45e2-9bf8-dccea1c5b52e.png +0 -0
- package/attachments/7927fe8e-2246-453d-9869-7072b983437c.png +0 -0
- package/attachments/7d150574-01b8-4439-96a0-d57299f3ffcf.png +0 -0
- package/attachments/a1cf142c-f3c2-442c-b8d5-a7f9cc6a59b3.png +0 -0
- package/attachments/cb3ac834-ece0-4802-bef0-dfdc0fcd93bd.png +0 -0
- package/client/bootstrap.js +30 -0
- package/client/components/camera-capturer.js +29 -2
- package/client/components/ocr-viewpart.js +79 -0
- package/client/menu.js +1 -1
- package/client/pages/grist-mode-page.js +1 -3
- package/client/pages/label-scan-page.js +189 -0
- package/client/pages/ocr-page.js +4 -3
- package/client/route.js +4 -0
- package/config/config.development.js +5 -1
- package/db.sqlite +0 -0
- package/dist-server/service/reference/lambda-call.js +68 -0
- package/dist-server/service/reference/lambda-call.js.map +1 -0
- package/dist-server/service/reference/reference-query.js +26 -4
- package/dist-server/service/reference/reference-query.js.map +1 -1
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +8 -3
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +12 -37
- package/logs/application-2021-11-04-14.log +4 -0
- package/logs/application-2021-11-05-18.log +6 -0
- package/{dist-client/helps/scene/component/image-view.md → logs/connections-2021-11-02-11.log} +0 -0
- package/logs/{connections-2021-11-02-12.log → connections-2021-11-03-11.log} +0 -0
- package/logs/{connections-2021-11-02-13.log → connections-2021-11-04-14.log} +0 -0
- package/logs/{connections-2021-11-02-14.log → connections-2021-11-05-18.log} +0 -0
- package/package.json +41 -40
- package/server/service/reference/lambda-call.ts +69 -0
- package/server/service/reference/reference-query.ts +35 -7
- package/things-factory.config.js +4 -0
- package/attachments/05284c84-1330-4b54-a698-bcd3020d9d90.png +0 -0
- package/attachments/3a328a7f-b7fd-4ea1-9c4c-005e24e1e897.png +0 -0
- package/attachments/4412432a-b79b-49b8-81b2-af6b927703b4.png +0 -0
- package/attachments/60ca3d2a-cfa4-4f14-b952-a96be9f64f96.png +0 -0
- package/attachments/90ea058c-ed47-4802-a694-bce0e86c217f.png +0 -0
- package/attachments/9c92e78d-afcb-4d62-b51e-f73f15211314.png +0 -0
- package/attachments/b27517ec-f2ac-4735-9d8a-353af2fa5f67.png +0 -0
- package/attachments/cc7892b9-fca6-49f9-a10b-3febeef83fd2.png +0 -0
- package/attachments/dbf0459a-4f1a-44c6-a4fc-d73adc3e4cfa.png +0 -0
- package/dist-client/17.js +0 -6
- package/dist-client/18.js +0 -15
- package/dist-client/19.js +0 -15
- package/dist-client/20.js +0 -15
- package/dist-client/21.js +0 -15
- package/dist-client/22.js +0 -1
- package/dist-client/23.js +0 -1
- package/dist-client/24.js +0 -1
- package/dist-client/25.js +0 -1
- package/dist-client/26.js +0 -1
- package/dist-client/27.js +0 -1
- package/dist-client/28.js +0 -1
- package/dist-client/29.js +0 -1
- package/dist-client/30.js +0 -12
- package/dist-client/31.js +0 -1
- package/dist-client/32.js +0 -17
- package/dist-client/33.js +0 -1
- package/dist-client/34.js +0 -1
- package/dist-client/35.js +0 -1
- package/dist-client/36.js +0 -1
- package/dist-client/37.js +0 -1
- package/dist-client/38.js +0 -1
- package/dist-client/39.js +0 -1
- package/dist-client/40.js +0 -1
- package/dist-client/41.js +0 -1
- package/dist-client/42.js +0 -1
- package/dist-client/43.js +0 -1
- package/dist-client/44.js +0 -1
- package/dist-client/45.js +0 -1
- package/dist-client/46.js +0 -1
- package/dist-client/47.js +0 -1
- package/dist-client/48.js +0 -1
- package/dist-client/49.js +0 -1
- package/dist-client/50.js +0 -1
- package/dist-client/51.js +0 -1
- package/dist-client/52.js +0 -1
- package/dist-client/53.js +0 -1
- package/dist-client/54.js +0 -1
- package/dist-client/55.js +0 -1
- package/dist-client/56.js +0 -1
- package/dist-client/57.js +0 -1
- package/dist-client/58.js +0 -1
- package/dist-client/59.js +0 -1
- package/dist-client/60.js +0 -1
- package/dist-client/61.js +0 -1
- package/dist-client/assets/bar-chart.png +0 -0
- package/dist-client/assets/beacon.png +0 -0
- package/dist-client/assets/button.png +0 -0
- package/dist-client/assets/clock-analog.png +0 -0
- package/dist-client/assets/clock-digital.png +0 -0
- package/dist-client/assets/doughnut-chart.png +0 -0
- package/dist-client/assets/favicon.ico +0 -0
- package/dist-client/assets/fieldset.png +0 -0
- package/dist-client/assets/form.png +0 -0
- package/dist-client/assets/gauge-circle.png +0 -0
- package/dist-client/assets/gauge-horizontal.png +0 -0
- package/dist-client/assets/gauge-vertical.png +0 -0
- package/dist-client/assets/half-round-rect.png +0 -0
- package/dist-client/assets/helps/index.md +0 -1
- package/dist-client/assets/horizontal-bar-chart.png +0 -0
- package/dist-client/assets/icon-embed.png +0 -0
- package/dist-client/assets/icon-news-ticker.png +0 -0
- package/dist-client/assets/icon-radio-group.png +0 -0
- package/dist-client/assets/icon-simple-switch.png +0 -0
- package/dist-client/assets/icon-video.png +0 -0
- package/dist-client/assets/iframe.png +0 -0
- package/dist-client/assets/images/3d.ico +0 -0
- package/dist-client/assets/images/background-animation.json +0 -1
- package/dist-client/assets/images/barcode.ico +0 -0
- package/dist-client/assets/images/barcode.png +0 -0
- package/dist-client/assets/images/bg-auth-ui.png +0 -0
- package/dist-client/assets/images/bg-blue.png +0 -0
- package/dist-client/assets/images/bg-green.png +0 -0
- package/dist-client/assets/images/bg-input-select.png +0 -0
- package/dist-client/assets/images/bg-rail.png +0 -0
- package/dist-client/assets/images/chart.ico +0 -0
- package/dist-client/assets/images/cj.ico +0 -0
- package/dist-client/assets/images/components/audio.png +0 -0
- package/dist-client/assets/images/components/both-arrow.png +0 -0
- package/dist-client/assets/images/components/color-image.png +0 -0
- package/dist-client/assets/images/components/container.png +0 -0
- package/dist-client/assets/images/components/dash.png +0 -0
- package/dist-client/assets/images/components/donut.png +0 -0
- package/dist-client/assets/images/components/ellipse.png +0 -0
- package/dist-client/assets/images/components/forklift.png +0 -0
- package/dist-client/assets/images/components/gif-image.png +0 -0
- package/dist-client/assets/images/components/global-reference.png +0 -0
- package/dist-client/assets/images/components/gray-image.png +0 -0
- package/dist-client/assets/images/components/humidity-sensor.png +0 -0
- package/dist-client/assets/images/components/info-window.png +0 -0
- package/dist-client/assets/images/components/line.png +0 -0
- package/dist-client/assets/images/components/local-reference.png +0 -0
- package/dist-client/assets/images/components/no-image.png +0 -0
- package/dist-client/assets/images/components/person.png +0 -0
- package/dist-client/assets/images/components/polygon.png +0 -0
- package/dist-client/assets/images/components/polyline.png +0 -0
- package/dist-client/assets/images/components/rect.png +0 -0
- package/dist-client/assets/images/components/single-arrow.png +0 -0
- package/dist-client/assets/images/components/star.png +0 -0
- package/dist-client/assets/images/components/text.png +0 -0
- package/dist-client/assets/images/components/triangle.png +0 -0
- package/dist-client/assets/images/ellipse.ico +0 -0
- package/dist-client/assets/images/etc.ico +0 -0
- package/dist-client/assets/images/forklift.png +0 -0
- package/dist-client/assets/images/gauge.ico +0 -0
- package/dist-client/assets/images/hatiolab-logo.bac71281.png +0 -0
- package/dist-client/assets/images/hatiolab-logo.png +0 -0
- package/dist-client/assets/images/home.png +0 -0
- package/dist-client/assets/images/icon-activate.png +0 -0
- package/dist-client/assets/images/icon-backinfo.png +0 -0
- package/dist-client/assets/images/icon-brand.png +0 -0
- package/dist-client/assets/images/icon-close.png +0 -0
- package/dist-client/assets/images/icon-collapse-active.png +0 -0
- package/dist-client/assets/images/icon-collapse.png +0 -0
- package/dist-client/assets/images/icon-congratulations.png +0 -0
- package/dist-client/assets/images/icon-domain.png +0 -0
- package/dist-client/assets/images/icon-editor-gradient-direction.png +0 -0
- package/dist-client/assets/images/icon-fullscreen.png +0 -0
- package/dist-client/assets/images/icon-htoolbar.png +0 -0
- package/dist-client/assets/images/icon-mobile-brand.png +0 -0
- package/dist-client/assets/images/icon-nametag.png +0 -0
- package/dist-client/assets/images/icon-pallet-barcode.png +0 -0
- package/dist-client/assets/images/icon-profile.png +0 -0
- package/dist-client/assets/images/icon-properties-arrow-type.png +0 -0
- package/dist-client/assets/images/icon-properties-gradient-direction.png +0 -0
- package/dist-client/assets/images/icon-properties-ipattern.png +0 -0
- package/dist-client/assets/images/icon-properties-label.png +0 -0
- package/dist-client/assets/images/icon-properties-line-type.png +0 -0
- package/dist-client/assets/images/icon-properties-padding.png +0 -0
- package/dist-client/assets/images/icon-properties-ratio.png +0 -0
- package/dist-client/assets/images/icon-properties-table.png +0 -0
- package/dist-client/assets/images/icon-properties.png +0 -0
- package/dist-client/assets/images/icon-resource-select.png +0 -0
- package/dist-client/assets/images/icon-result.png +0 -0
- package/dist-client/assets/images/icon-setting.png +0 -0
- package/dist-client/assets/images/icon-shell-inspector.png +0 -0
- package/dist-client/assets/images/icon-vtoolbar-objects.png +0 -0
- package/dist-client/assets/images/icon-vtoolbar.png +0 -0
- package/dist-client/assets/images/invitation.png +0 -0
- package/dist-client/assets/images/line.ico +0 -0
- package/dist-client/assets/images/media.ico +0 -0
- package/dist-client/assets/images/person.png +0 -0
- package/dist-client/assets/images/poly.ico +0 -0
- package/dist-client/assets/images/profile.png +0 -0
- package/dist-client/assets/images/rect.ico +0 -0
- package/dist-client/assets/images/shape.ico +0 -0
- package/dist-client/assets/images/spinner.png +0 -0
- package/dist-client/assets/images/table.ico +0 -0
- package/dist-client/assets/images/text.ico +0 -0
- package/dist-client/assets/images/warehouse.ico +0 -0
- package/dist-client/assets/img.png +0 -0
- package/dist-client/assets/indoor-map.png +0 -0
- package/dist-client/assets/input-checkbox.png +0 -0
- package/dist-client/assets/input-color.png +0 -0
- package/dist-client/assets/input-date.png +0 -0
- package/dist-client/assets/input-email.png +0 -0
- package/dist-client/assets/input-file.png +0 -0
- package/dist-client/assets/input-number.png +0 -0
- package/dist-client/assets/input-password.png +0 -0
- package/dist-client/assets/input-radio.png +0 -0
- package/dist-client/assets/input-range.png +0 -0
- package/dist-client/assets/input-reset.png +0 -0
- package/dist-client/assets/input-search.png +0 -0
- package/dist-client/assets/input-submit.png +0 -0
- package/dist-client/assets/input-text.png +0 -0
- package/dist-client/assets/line-chart.png +0 -0
- package/dist-client/assets/link.png +0 -0
- package/dist-client/assets/manifest/apple-1024.png +0 -0
- package/dist-client/assets/manifest/apple-120.png +0 -0
- package/dist-client/assets/manifest/apple-152.png +0 -0
- package/dist-client/assets/manifest/apple-167.png +0 -0
- package/dist-client/assets/manifest/apple-180.png +0 -0
- package/dist-client/assets/manifest/apple-touch-icon.png +0 -0
- package/dist-client/assets/manifest/badge-128x128.png +0 -0
- package/dist-client/assets/manifest/chrome-splashscreen-icon-384x384.png +0 -0
- package/dist-client/assets/manifest/chrome-touch-icon-192x192.png +0 -0
- package/dist-client/assets/manifest/icon-128x128.png +0 -0
- package/dist-client/assets/manifest/icon-192x192.png +0 -0
- package/dist-client/assets/manifest/icon-512x512.png +0 -0
- package/dist-client/assets/manifest/icon-72x72.png +0 -0
- package/dist-client/assets/manifest/icon-96x96.png +0 -0
- package/dist-client/assets/manifest/image-metaog.png +0 -0
- package/dist-client/assets/manifest/maskable_icon.png +0 -0
- package/dist-client/assets/manifest/ms-icon-144x144.png +0 -0
- package/dist-client/assets/manifest/ms-touch-icon-144x144-precomposed.png +0 -0
- package/dist-client/assets/manifest.json +0 -27
- package/dist-client/assets/mixed-chart.png +0 -0
- package/dist-client/assets/no-image.png +0 -0
- package/dist-client/assets/pie-chart.png +0 -0
- package/dist-client/assets/polar-area-chart.png +0 -0
- package/dist-client/assets/progress-circle.png +0 -0
- package/dist-client/assets/progress-horizontal.png +0 -0
- package/dist-client/assets/progress-vertical.png +0 -0
- package/dist-client/assets/rack.png +0 -0
- package/dist-client/assets/radar-chart.png +0 -0
- package/dist-client/assets/random.png +0 -0
- package/dist-client/assets/scripts/markdown-webworker.js +0 -30
- package/dist-client/assets/select.png +0 -0
- package/dist-client/assets/tab.png +0 -0
- package/dist-client/assets/textarea.png +0 -0
- package/dist-client/auth/activate.js +0 -362
- package/dist-client/auth/checkin.js +0 -310
- package/dist-client/auth/forgot-password.js +0 -467
- package/dist-client/auth/reset-password.js +0 -467
- package/dist-client/auth/result.js +0 -379
- package/dist-client/auth/signin.js +0 -450
- package/dist-client/auth/signup.js +0 -450
- package/dist-client/auth/unlock-user.js +0 -467
- package/dist-client/headless-scene-components.js +0 -401
- package/dist-client/helps/about/components.md +0 -3
- package/dist-client/helps/about/framework/redirection.md +0 -45
- package/dist-client/helps/about/framework/typegraphql.md +0 -74
- package/dist-client/helps/about/framework.md +0 -10
- package/dist-client/helps/about/modules.md +0 -7
- package/dist-client/helps/about/things-factory.en.md +0 -255
- package/dist-client/helps/about/things-factory.ko.md +0 -258
- package/dist-client/helps/auth/appliance.en.md +0 -22
- package/dist-client/helps/auth/appliance.ko.md +0 -40
- package/dist-client/helps/auth/application.en.md +0 -33
- package/dist-client/helps/auth/images/app-binding.png +0 -0
- package/dist-client/helps/auth/images/appliance-generate-key.png +0 -0
- package/dist-client/helps/auth/images/appliance-sandbox-auth-1.png +0 -0
- package/dist-client/helps/auth/images/appliance-sandbox-auth-2.png +0 -0
- package/dist-client/helps/auth/images/appliance-sandbox-auth-3.png +0 -0
- package/dist-client/helps/auth/images/application-hub.png +0 -0
- package/dist-client/helps/auth/images/authorization-postman.png +0 -0
- package/dist-client/helps/auth/images/create-button2.png +0 -0
- package/dist-client/helps/auth/images/create-role.png +0 -0
- package/dist-client/helps/auth/images/flowchart-appliance-registration.jpg +0 -0
- package/dist-client/helps/auth/images/flowchart-role-management.jpg +0 -0
- package/dist-client/helps/auth/images/flowchart-user-account.jpg +0 -0
- package/dist-client/helps/auth/images/invite-user.png +0 -0
- package/dist-client/helps/auth/images/owner-transfer-confirm.png +0 -0
- package/dist-client/helps/auth/images/owner-transfer.png +0 -0
- package/dist-client/helps/auth/images/postman.png +0 -0
- package/dist-client/helps/auth/images/register-appliance-new.png +0 -0
- package/dist-client/helps/auth/images/register-appliance.png +0 -0
- package/dist-client/helps/auth/images/register-application.png +0 -0
- package/dist-client/helps/auth/images/registered-role.png +0 -0
- package/dist-client/helps/auth/images/role-list.png +0 -0
- package/dist-client/helps/auth/images/role-privilage.png +0 -0
- package/dist-client/helps/auth/images/role-privileges.png +0 -0
- package/dist-client/helps/auth/images/save-button2.png +0 -0
- package/dist-client/helps/auth/images/save-button3.png +0 -0
- package/dist-client/helps/auth/images/transfer-owner.png +0 -0
- package/dist-client/helps/auth/images/update-roles.png +0 -0
- package/dist-client/helps/auth/images/user-delete.png +0 -0
- package/dist-client/helps/auth/images/user-error.png +0 -0
- package/dist-client/helps/auth/images/user-invite.png +0 -0
- package/dist-client/helps/auth/images/user-roles.png +0 -0
- package/dist-client/helps/auth/roles.en.md +0 -59
- package/dist-client/helps/auth/roles.ko.md +0 -42
- package/dist-client/helps/auth/users.en.md +0 -33
- package/dist-client/helps/auth/users.ko.md +0 -54
- package/dist-client/helps/board-modeller/data-binding.ko.md +0 -86
- package/dist-client/helps/board-modeller/data-binding.md +0 -83
- package/dist-client/helps/board-modeller/data-binding.zh.md +0 -86
- package/dist-client/helps/board-modeller/effects/animation.ko.md +0 -46
- package/dist-client/helps/board-modeller/effects/animation.md +0 -47
- package/dist-client/helps/board-modeller/effects/animation.zh.md +0 -47
- package/dist-client/helps/board-modeller/effects/hover-event.ko.md +0 -55
- package/dist-client/helps/board-modeller/effects/hover-event.md +0 -57
- package/dist-client/helps/board-modeller/effects/hover-event.zh.md +0 -55
- package/dist-client/helps/board-modeller/effects/retention.ko.md +0 -4
- package/dist-client/helps/board-modeller/effects/retention.md +0 -4
- package/dist-client/helps/board-modeller/effects/retention.zh.md +0 -4
- package/dist-client/helps/board-modeller/effects/shadow.ko.md +0 -18
- package/dist-client/helps/board-modeller/effects/shadow.md +0 -21
- package/dist-client/helps/board-modeller/effects/shadow.zh.md +0 -19
- package/dist-client/helps/board-modeller/effects/tap-event.ko.md +0 -74
- package/dist-client/helps/board-modeller/effects/tap-event.md +0 -74
- package/dist-client/helps/board-modeller/effects/tap-event.zh.md +0 -74
- package/dist-client/helps/board-modeller/images/animation-01.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-02.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-03.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-04.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-05.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-06.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-07.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-08.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-09.gif +0 -0
- package/dist-client/helps/board-modeller/images/animation-10.gif +0 -0
- package/dist-client/helps/board-modeller/images/common-property-text-align-horizontal.png +0 -0
- package/dist-client/helps/board-modeller/images/common-property-text-align-vertical.png +0 -0
- package/dist-client/helps/board-modeller/images/common-property-text-margin.png +0 -0
- package/dist-client/helps/board-modeller/images/component-3D.png +0 -0
- package/dist-client/helps/board-modeller/images/component-arrow.png +0 -0
- package/dist-client/helps/board-modeller/images/component-chart-gauge.png +0 -0
- package/dist-client/helps/board-modeller/images/component-container.png +0 -0
- package/dist-client/helps/board-modeller/images/component-datasource.png +0 -0
- package/dist-client/helps/board-modeller/images/component-etc.png +0 -0
- package/dist-client/helps/board-modeller/images/component-form.png +0 -0
- package/dist-client/helps/board-modeller/images/component-gauge.png +0 -0
- package/dist-client/helps/board-modeller/images/component-image.png +0 -0
- package/dist-client/helps/board-modeller/images/component-iot.png +0 -0
- package/dist-client/helps/board-modeller/images/component-line.png +0 -0
- package/dist-client/helps/board-modeller/images/component-shape.png +0 -0
- package/dist-client/helps/board-modeller/images/component-table.png +0 -0
- package/dist-client/helps/board-modeller/images/component-text-media.png +0 -0
- package/dist-client/helps/board-modeller/images/component-toolbar.png +0 -0
- package/dist-client/helps/board-modeller/images/component-warehouse.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-02.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-03.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-04.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-05.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-06.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-07.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-08.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-09.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-10.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-11.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-12.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-13.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-14.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-15.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-16.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-17.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-18.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-19.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-20.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-21.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-22.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-23.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-24.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-25.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-26.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-27.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-28.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-29.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-30.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-31.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar-32.png +0 -0
- package/dist-client/helps/board-modeller/images/control-toolbar.png +0 -0
- package/dist-client/helps/board-modeller/images/effect-property.png +0 -0
- package/dist-client/helps/board-modeller/images/hover-01.png +0 -0
- package/dist-client/helps/board-modeller/images/join-type-bevel.png +0 -0
- package/dist-client/helps/board-modeller/images/join-type-miter.png +0 -0
- package/dist-client/helps/board-modeller/images/join-type-round.png +0 -0
- package/dist-client/helps/board-modeller/images/modeler-layout-01.png +0 -0
- package/dist-client/helps/board-modeller/images/property-window.png +0 -0
- package/dist-client/helps/board-modeller/images/shadow-02.png +0 -0
- package/dist-client/helps/board-modeller/images/shadow-03.png +0 -0
- package/dist-client/helps/board-modeller/images/shadow-04.png +0 -0
- package/dist-client/helps/board-modeller/images/shadow-05.png +0 -0
- package/dist-client/helps/board-modeller/images/shape-property.png +0 -0
- package/dist-client/helps/board-modeller/images/specific-property.png +0 -0
- package/dist-client/helps/board-modeller/images/style-property.png +0 -0
- package/dist-client/helps/board-modeller/images/target-property.png +0 -0
- package/dist-client/helps/board-modeller/images/variable-property.png +0 -0
- package/dist-client/helps/board-modeller/modeller.ko.md +0 -244
- package/dist-client/helps/board-modeller/modeller.md +0 -206
- package/dist-client/helps/board-modeller/modeller.zh.md +0 -241
- package/dist-client/helps/board-modeller/shapes/3dish.ko.md +0 -3
- package/dist-client/helps/board-modeller/shapes/3dish.md +0 -3
- package/dist-client/helps/board-modeller/shapes/3dish.zh.md +0 -3
- package/dist-client/helps/board-modeller/shapes/print-option.ko.md +0 -3
- package/dist-client/helps/board-modeller/shapes/print-option.md +0 -3
- package/dist-client/helps/board-modeller/shapes/print-option.zh.md +0 -3
- package/dist-client/helps/board-modeller/shapes/shapes.ko.md +0 -15
- package/dist-client/helps/board-modeller/shapes/shapes.md +0 -18
- package/dist-client/helps/board-modeller/shapes/shapes.zh.md +0 -16
- package/dist-client/helps/board-modeller/shapes/size.ko.md +0 -5
- package/dist-client/helps/board-modeller/shapes/size.md +0 -5
- package/dist-client/helps/board-modeller/shapes/size.zh.md +0 -5
- package/dist-client/helps/board-modeller/shapes/text-box.ko.md +0 -19
- package/dist-client/helps/board-modeller/shapes/text-box.md +0 -18
- package/dist-client/helps/board-modeller/shapes/text-box.zh.md +0 -18
- package/dist-client/helps/board-modeller/shapes/viewer-option.ko.md +0 -8
- package/dist-client/helps/board-modeller/shapes/viewer-option.md +0 -8
- package/dist-client/helps/board-modeller/shapes/viewer-option.zh.md +0 -8
- package/dist-client/helps/board-modeller/styles/fill-style.ko.md +0 -17
- package/dist-client/helps/board-modeller/styles/fill-style.md +0 -17
- package/dist-client/helps/board-modeller/styles/fill-style.zh.md +0 -17
- package/dist-client/helps/board-modeller/styles/line-style.ko.md +0 -19
- package/dist-client/helps/board-modeller/styles/line-style.md +0 -23
- package/dist-client/helps/board-modeller/styles/line-style.zh.md +0 -19
- package/dist-client/helps/board-modeller/styles/opacity.ko.md +0 -3
- package/dist-client/helps/board-modeller/styles/opacity.md +0 -3
- package/dist-client/helps/board-modeller/styles/opacity.zh.md +0 -3
- package/dist-client/helps/board-modeller/styles/text-style.ko.md +0 -8
- package/dist-client/helps/board-modeller/styles/text-style.md +0 -8
- package/dist-client/helps/board-modeller/styles/text-style.zh.md +0 -8
- package/dist-client/helps/components/oops-progress.md +0 -73
- package/dist-client/helps/index.md +0 -1
- package/dist-client/helps/integration/concept/connection.md +0 -27
- package/dist-client/helps/integration/concept/context.md +0 -83
- package/dist-client/helps/integration/concept/data-accessor.md +0 -9
- package/dist-client/helps/integration/concept/pending-queue.md +0 -32
- package/dist-client/helps/integration/concept/scenario-engine.md +0 -10
- package/dist-client/helps/integration/concept/scenario.md +0 -4
- package/dist-client/helps/integration/concept/task.md +0 -25
- package/dist-client/helps/integration/connector/mqtt-connector.md +0 -17
- package/dist-client/helps/integration/connector/mssql-connector.md +0 -34
- package/dist-client/helps/integration/connector/oracle-connector.md +0 -66
- package/dist-client/helps/integration/connector/postgresql-connector.md +0 -34
- package/dist-client/helps/integration/connector/sqlite-connector.md +0 -17
- package/dist-client/helps/integration/index.md +0 -37
- package/dist-client/helps/integration/task/book-up-scenario.md +0 -24
- package/dist-client/helps/integration/task/end.md +0 -3
- package/dist-client/helps/integration/task/floating-point.md +0 -34
- package/dist-client/helps/integration/task/goto.md +0 -8
- package/dist-client/helps/integration/task/local-graphql-mutate.md +0 -21
- package/dist-client/helps/integration/task/local-graphql-query.md +0 -21
- package/dist-client/helps/integration/task/log.md +0 -14
- package/dist-client/helps/integration/task/mqtt-publish.md +0 -10
- package/dist-client/helps/integration/task/mqtt-subscribe.md +0 -15
- package/dist-client/helps/integration/task/pick-pending-scenario.md +0 -13
- package/dist-client/helps/integration/task/publish.md +0 -16
- package/dist-client/helps/integration/task/script.md +0 -39
- package/dist-client/helps/integration/task/sleep.md +0 -8
- package/dist-client/helps/integration/task/throw.md +0 -12
- package/dist-client/helps/integration/task/variables.md +0 -37
- package/dist-client/helps/integration/ui/connection.md +0 -16
- package/dist-client/helps/integration/ui/crontab-editor.md +0 -9
- package/dist-client/helps/integration/ui/integration-monitor.md +0 -29
- package/dist-client/helps/integration/ui/scenario-detail.md +0 -35
- package/dist-client/helps/integration/ui/scenario.md +0 -35
- package/dist-client/helps/module/api.md +0 -117
- package/dist-client/helps/module/dashboard.md +0 -27
- package/dist-client/helps/module/help.md +0 -40
- package/dist-client/helps/module/lite-menu.md +0 -112
- package/dist-client/helps/module/notification-images/config-app-1.png +0 -0
- package/dist-client/helps/module/notification-images/config-app-2.png +0 -0
- package/dist-client/helps/module/notification-images/config-server-key.png +0 -0
- package/dist-client/helps/module/notification-images/config-service-account.png +0 -0
- package/dist-client/helps/module/notification-images/config-vapidkey-1.png +0 -0
- package/dist-client/helps/module/notification-images/config-vapidkey-2-get-public-key.png +0 -0
- package/dist-client/helps/module/notification-images/config-vapidkey-3-get-private-key.png +0 -0
- package/dist-client/helps/module/notification-images/element-notification-badge.png +0 -0
- package/dist-client/helps/module/notification-images/element-notification-list.png +0 -0
- package/dist-client/helps/module/notification-images/element-notification-setting-let.png +0 -0
- package/dist-client/helps/module/notification-images/push-test-on-chrome-1.png +0 -0
- package/dist-client/helps/module/notification-images/push-test-on-chrome-2.png +0 -0
- package/dist-client/helps/module/notification-images/push-test-on-firebase-1.png +0 -0
- package/dist-client/helps/module/notification-images/push-test-on-firebase-2.png +0 -0
- package/dist-client/helps/module/notification-images/push-test-on-firebase-3.png +0 -0
- package/dist-client/helps/module/notification-images/push-test-on-firebase-4.png +0 -0
- package/dist-client/helps/module/notification.md +0 -161
- package/dist-client/helps/oauth2-client/code-verifier.md +0 -5
- package/dist-client/helps/oauth2-client/credentials.md +0 -160
- package/dist-client/helps/oauth2-client/grant-type.md +0 -33
- package/dist-client/helps/scene/component/analog-clock.ko.md +0 -6
- package/dist-client/helps/scene/component/analog-clock.md +0 -8
- package/dist-client/helps/scene/component/analog-clock.zh.md +0 -6
- package/dist-client/helps/scene/component/arrow.ko.md +0 -9
- package/dist-client/helps/scene/component/arrow.md +0 -9
- package/dist-client/helps/scene/component/arrow.zh.md +0 -9
- package/dist-client/helps/scene/component/audio.ko.md +0 -1
- package/dist-client/helps/scene/component/audio.md +0 -1
- package/dist-client/helps/scene/component/audio.zh.md +0 -1
- package/dist-client/helps/scene/component/both-arrow.ko.md +0 -9
- package/dist-client/helps/scene/component/both-arrow.md +0 -9
- package/dist-client/helps/scene/component/both-arrow.zh.md +0 -9
- package/dist-client/helps/scene/component/chartjs.ko.md +0 -332
- package/dist-client/helps/scene/component/chartjs.md +0 -333
- package/dist-client/helps/scene/component/chartjs.zh.md +0 -331
- package/dist-client/helps/scene/component/color-image.ko.md +0 -9
- package/dist-client/helps/scene/component/color-image.md +0 -9
- package/dist-client/helps/scene/component/color-image.zh.md +0 -9
- package/dist-client/helps/scene/component/container.ko.md +0 -7
- package/dist-client/helps/scene/component/container.md +0 -9
- package/dist-client/helps/scene/component/container.zh.md +0 -8
- package/dist-client/helps/scene/component/donut.ko.md +0 -14
- package/dist-client/helps/scene/component/donut.md +0 -17
- package/dist-client/helps/scene/component/donut.zh.md +0 -18
- package/dist-client/helps/scene/component/dotted-line.ko.md +0 -7
- package/dist-client/helps/scene/component/dotted-line.md +0 -9
- package/dist-client/helps/scene/component/dotted-line.zh.md +0 -7
- package/dist-client/helps/scene/component/ellipse.ko.md +0 -11
- package/dist-client/helps/scene/component/ellipse.md +0 -11
- package/dist-client/helps/scene/component/ellipse.zh.md +0 -10
- package/dist-client/helps/scene/component/gauge-circle.ko.md +0 -168
- package/dist-client/helps/scene/component/gauge-circle.md +0 -167
- package/dist-client/helps/scene/component/gauge-circle.zh.md +0 -164
- package/dist-client/helps/scene/component/gauge-horizon.ko.md +0 -145
- package/dist-client/helps/scene/component/gauge-horizon.md +0 -145
- package/dist-client/helps/scene/component/gauge-horizon.zh.md +0 -145
- package/dist-client/helps/scene/component/gauge-vertical.ko.md +0 -12
- package/dist-client/helps/scene/component/gauge-vertical.md +0 -9
- package/dist-client/helps/scene/component/gauge-vertical.zh.md +0 -10
- package/dist-client/helps/scene/component/gif-view.ko.md +0 -10
- package/dist-client/helps/scene/component/gif-view.md +0 -10
- package/dist-client/helps/scene/component/gif-view.zh.md +0 -10
- package/dist-client/helps/scene/component/global-ref.ko.md +0 -1
- package/dist-client/helps/scene/component/global-ref.md +0 -1
- package/dist-client/helps/scene/component/global-ref.zh.md +0 -1
- package/dist-client/helps/scene/component/gray-image.ko.md +0 -9
- package/dist-client/helps/scene/component/gray-image.md +0 -9
- package/dist-client/helps/scene/component/gray-image.zh.md +0 -8
- package/dist-client/helps/scene/component/indoor-map.ko.md +0 -65
- package/dist-client/helps/scene/component/indoor-map.md +0 -65
- package/dist-client/helps/scene/component/indoor-map.zh.md +0 -65
- package/dist-client/helps/scene/component/info-window.ko.md +0 -1
- package/dist-client/helps/scene/component/info-window.md +0 -1
- package/dist-client/helps/scene/component/info-window.zh.md +0 -1
- package/dist-client/helps/scene/component/input.ko.md +0 -59
- package/dist-client/helps/scene/component/input.md +0 -59
- package/dist-client/helps/scene/component/input.zh.md +0 -58
- package/dist-client/helps/scene/component/line.ko.md +0 -9
- package/dist-client/helps/scene/component/line.md +0 -9
- package/dist-client/helps/scene/component/line.zh.md +0 -7
- package/dist-client/helps/scene/component/local-ref.ko.md +0 -1
- package/dist-client/helps/scene/component/local-ref.md +0 -1
- package/dist-client/helps/scene/component/local-ref.zh.md +0 -1
- package/dist-client/helps/scene/component/marker.ko.md +0 -15
- package/dist-client/helps/scene/component/marker.md +0 -15
- package/dist-client/helps/scene/component/marker.zh.md +0 -15
- package/dist-client/helps/scene/component/news-ticker.ko.md +0 -27
- package/dist-client/helps/scene/component/news-ticker.md +0 -27
- package/dist-client/helps/scene/component/news-ticker.zh.md +0 -27
- package/dist-client/helps/scene/component/polygon.ko.md +0 -9
- package/dist-client/helps/scene/component/polygon.md +0 -9
- package/dist-client/helps/scene/component/polygon.zh.md +0 -9
- package/dist-client/helps/scene/component/polyline.ko.md +0 -10
- package/dist-client/helps/scene/component/polyline.md +0 -10
- package/dist-client/helps/scene/component/polyline.zh.md +0 -10
- package/dist-client/helps/scene/component/progress-circle.ko.md +0 -41
- package/dist-client/helps/scene/component/progress-circle.md +0 -42
- package/dist-client/helps/scene/component/progress-circle.zh.md +0 -39
- package/dist-client/helps/scene/component/progress-horizontal.ko.md +0 -37
- package/dist-client/helps/scene/component/progress-horizontal.md +0 -31
- package/dist-client/helps/scene/component/progress-horizontal.zh.md +0 -31
- package/dist-client/helps/scene/component/progress-vertical.ko.md +0 -23
- package/dist-client/helps/scene/component/progress-vertical.md +0 -24
- package/dist-client/helps/scene/component/progress-vertical.zh.md +0 -23
- package/dist-client/helps/scene/component/rack.ko.md +0 -17
- package/dist-client/helps/scene/component/rack.md +0 -15
- package/dist-client/helps/scene/component/rack.zh.md +0 -16
- package/dist-client/helps/scene/component/random.ko.md +0 -12
- package/dist-client/helps/scene/component/random.md +0 -11
- package/dist-client/helps/scene/component/random.zh.md +0 -11
- package/dist-client/helps/scene/component/rect.ko.md +0 -17
- package/dist-client/helps/scene/component/rect.md +0 -16
- package/dist-client/helps/scene/component/rect.zh.md +0 -16
- package/dist-client/helps/scene/component/simple-switch.ko.md +0 -20
- package/dist-client/helps/scene/component/simple-switch.md +0 -19
- package/dist-client/helps/scene/component/simple-switch.zh.md +0 -19
- package/dist-client/helps/scene/component/star.ko.md +0 -19
- package/dist-client/helps/scene/component/star.md +0 -19
- package/dist-client/helps/scene/component/star.zh.md +0 -19
- package/dist-client/helps/scene/component/tab.ko.md +0 -14
- package/dist-client/helps/scene/component/tab.md +0 -13
- package/dist-client/helps/scene/component/tab.zh.md +0 -13
- package/dist-client/helps/scene/component/text-clock.ko.md +0 -25
- package/dist-client/helps/scene/component/text-clock.md +0 -22
- package/dist-client/helps/scene/component/text-clock.zh.md +0 -22
- package/dist-client/helps/scene/component/text.ko.md +0 -9
- package/dist-client/helps/scene/component/text.md +0 -9
- package/dist-client/helps/scene/component/text.zh.md +0 -9
- package/dist-client/helps/scene/component/top-rounded-ractangle.ko.md +0 -15
- package/dist-client/helps/scene/component/top-rounded-ractangle.md +0 -15
- package/dist-client/helps/scene/component/top-rounded-ractangle.zh.md +0 -15
- package/dist-client/helps/scene/component/triangle.ko.md +0 -9
- package/dist-client/helps/scene/component/triangle.md +0 -9
- package/dist-client/helps/scene/component/triangle.zh.md +0 -9
- package/dist-client/helps/scene/images/both-arrow-01.png +0 -0
- package/dist-client/helps/scene/images/button-evnet-mapping-01.png +0 -0
- package/dist-client/helps/scene/images/button-evnet-mapping-02.png +0 -0
- package/dist-client/helps/scene/images/button-evnet-mapping-03.png +0 -0
- package/dist-client/helps/scene/images/chart-bar-01.png +0 -0
- package/dist-client/helps/scene/images/chart-bar-02.png +0 -0
- package/dist-client/helps/scene/images/chart-bar-03.png +0 -0
- package/dist-client/helps/scene/images/chart-bar-08.png +0 -0
- package/dist-client/helps/scene/images/chart-bar-12.png +0 -0
- package/dist-client/helps/scene/images/chart-data-01.png +0 -0
- package/dist-client/helps/scene/images/chart-data-04.png +0 -0
- package/dist-client/helps/scene/images/chart-doughnut-01.png +0 -0
- package/dist-client/helps/scene/images/chart-horizontal-bar-01.png +0 -0
- package/dist-client/helps/scene/images/chart-line-01.png +0 -0
- package/dist-client/helps/scene/images/chart-mix-01.png +0 -0
- package/dist-client/helps/scene/images/chart-mix-02.png +0 -0
- package/dist-client/helps/scene/images/chart-pie-01.png +0 -0
- package/dist-client/helps/scene/images/chart-polar-01.png +0 -0
- package/dist-client/helps/scene/images/chart-radar-01.png +0 -0
- package/dist-client/helps/scene/images/clock-analog-01.png +0 -0
- package/dist-client/helps/scene/images/clock-text-01.png +0 -0
- package/dist-client/helps/scene/images/clock-text-02.png +0 -0
- package/dist-client/helps/scene/images/clock-text-03.png +0 -0
- package/dist-client/helps/scene/images/clock-text-04.png +0 -0
- package/dist-client/helps/scene/images/container-01.png +0 -0
- package/dist-client/helps/scene/images/container-03.png +0 -0
- package/dist-client/helps/scene/images/container-04.png +0 -0
- package/dist-client/helps/scene/images/dash-01.png +0 -0
- package/dist-client/helps/scene/images/donut-01.png +0 -0
- package/dist-client/helps/scene/images/donut-02.png +0 -0
- package/dist-client/helps/scene/images/ellipse-01.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-01.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-02.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-03.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-04.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-05.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-06.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-07.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-08.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-09.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-10.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-11.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-12.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-13.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-14.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-15.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-16.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-17.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-18.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-19.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-20.png +0 -0
- package/dist-client/helps/scene/images/gauge-circle-21.png +0 -0
- package/dist-client/helps/scene/images/gauge-horizontal-01.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-01.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-02.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-03.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-04.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-05.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-06.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-07.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-08.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-09.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-10.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-11.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-12.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-13.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-14.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-15.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-16.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-17.png +0 -0
- package/dist-client/helps/scene/images/gauge-vertical-18.png +0 -0
- package/dist-client/helps/scene/images/half-round-rect-01.png +0 -0
- package/dist-client/helps/scene/images/half-round-rect-02.png +0 -0
- package/dist-client/helps/scene/images/indoor-button-finish-01.gif +0 -0
- package/dist-client/helps/scene/images/indoor-create-01.png +0 -0
- package/dist-client/helps/scene/images/indoor-create-02.png +0 -0
- package/dist-client/helps/scene/images/indoor-create-03.png +0 -0
- package/dist-client/helps/scene/images/indoor-setting-01.png +0 -0
- package/dist-client/helps/scene/images/line-01.png +0 -0
- package/dist-client/helps/scene/images/marker-01.png +0 -0
- package/dist-client/helps/scene/images/marker-02.png +0 -0
- package/dist-client/helps/scene/images/media-01.png +0 -0
- package/dist-client/helps/scene/images/media-02.png +0 -0
- package/dist-client/helps/scene/images/news_ticker_1.png +0 -0
- package/dist-client/helps/scene/images/news_ticker_2.png +0 -0
- package/dist-client/helps/scene/images/news_ticker_3.png +0 -0
- package/dist-client/helps/scene/images/news_ticker_video_1.gif +0 -0
- package/dist-client/helps/scene/images/news_ticker_video_2.gif +0 -0
- package/dist-client/helps/scene/images/polygon-01.png +0 -0
- package/dist-client/helps/scene/images/polyline-01.png +0 -0
- package/dist-client/helps/scene/images/progress-circle-01.png +0 -0
- package/dist-client/helps/scene/images/progress-circle-02.png +0 -0
- package/dist-client/helps/scene/images/progress-circle-03.png +0 -0
- package/dist-client/helps/scene/images/progress-circle-04.png +0 -0
- package/dist-client/helps/scene/images/progress-circle-05.png +0 -0
- package/dist-client/helps/scene/images/progress-horizontal-01.png +0 -0
- package/dist-client/helps/scene/images/progress-horizontal-02.png +0 -0
- package/dist-client/helps/scene/images/progress-horizontal-03.png +0 -0
- package/dist-client/helps/scene/images/progress-horizontal-04.png +0 -0
- package/dist-client/helps/scene/images/progress-vertical-01.png +0 -0
- package/dist-client/helps/scene/images/progress-vertical-02.png +0 -0
- package/dist-client/helps/scene/images/progress-vertical-03.png +0 -0
- package/dist-client/helps/scene/images/rect-01.png +0 -0
- package/dist-client/helps/scene/images/rect-02.png +0 -0
- package/dist-client/helps/scene/images/single-arrow-01.png +0 -0
- package/dist-client/helps/scene/images/star-01.png +0 -0
- package/dist-client/helps/scene/images/star-02.png +0 -0
- package/dist-client/helps/scene/images/star-03.png +0 -0
- package/dist-client/helps/scene/images/text-01.png +0 -0
- package/dist-client/helps/scene/images/triangle-01.png +0 -0
- package/dist-client/helps/setting/images/confirm-button.PNG +0 -0
- package/dist-client/helps/setting/images/delete-button.png +0 -0
- package/dist-client/helps/setting/images/error-setting.png +0 -0
- package/dist-client/helps/setting/images/export-button.png +0 -0
- package/dist-client/helps/setting/images/flowchart-setting-management.jpg +0 -0
- package/dist-client/helps/setting/images/partner-setting.png +0 -0
- package/dist-client/helps/setting/images/partners-list.PNG +0 -0
- package/dist-client/helps/setting/images/save-button.png +0 -0
- package/dist-client/helps/setting/images/select-button.PNG +0 -0
- package/dist-client/helps/setting/images/setting-board.png +0 -0
- package/dist-client/helps/setting/images/upload-button.png +0 -0
- package/dist-client/helps/setting/partner-setting.en.md +0 -19
- package/dist-client/helps/setting/settings.en.md +0 -26
- package/dist-client/helps/setting/settings.ko.md +0 -4
- package/dist-client/index.html +0 -14
- package/dist-client/main.js +0 -228
- package/dist-client/modules.js +0 -171
- package/dist-client/node_modules/@hatiolab/things-scene/package.json +0 -81
- package/dist-client/node_modules/@hatiolab/things-scene/rollup.config.js +0 -40
- package/dist-client/node_modules/@hatiolab/things-scene/things-board.js +0 -9
- package/dist-client/node_modules/@hatiolab/things-scene/things-scene-ie.js +0 -1
- package/dist-client/node_modules/@hatiolab/things-scene/things-scene-min.js +0 -1
- package/dist-client/node_modules/@lottiefiles/lottie-player/dist/lottie-player.js +0 -44
- package/dist-client/node_modules/@lottiefiles/lottie-player/dist/lottie-player.js.map +0 -1
- package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js +0 -206
- package/dist-client/node_modules/marked/marked.min.js +0 -6
- package/dist-client/node_modules/marked/package.json +0 -88
- package/dist-client/node_modules/web-animations-js/web-animations-next.min.js +0 -16
- package/dist-client/node_modules/web-animations-js/web-animations-next.min.js.map +0 -1
- package/dist-client/oauth2/oauth2-decision-error-page.js +0 -299
- package/dist-client/oauth2/oauth2-decision-page.js +0 -362
- package/dist-client/openapi/unstable/scenario.yaml +0 -240
- package/dist-client/openapi/unstable.yaml +0 -41
- package/dist-client/profile.js +0 -1
- package/dist-client/public/home.js +0 -332
- package/dist-client/service-worker.js +0 -1
- package/dist-client/theme.css +0 -33
- package/dist-client/theme.js +0 -1
- package/dist-client/translations/en.json +0 -1083
- package/dist-client/translations/ko.json +0 -1083
- package/dist-client/translations/ms.json +0 -1073
- package/dist-client/translations/zh.json +0 -1061
- package/dist-client/vendors~modules.js +0 -2423
- package/dist-client/views/auth-page.html +0 -93
- package/dist-client/views/dependencies-view-graphviz.html +0 -75
- package/dist-client/views/dependencies-view.html +0 -139
- package/dist-client/views/internal-board-service-view.html +0 -65
- package/dist-client/views/internal-label-command-view.html +0 -301
- package/dist-client/views/oauth2-page.html +0 -90
- package/dist-client/views/public/home.html +0 -83
- package/dist-client/views/scenario-view.html +0 -64
- package/dist-client/views/template.html +0 -21
- package/logs/application-2021-11-08-10.log +0 -4
- package/logs/connections-2021-11-02-18.log +0 -0
- package/logs/connections-2021-11-03-09.log +0 -0
- package/logs/connections-2021-11-04-12.log +0 -0
- package/logs/connections-2021-11-04-13.log +0 -0
- package/logs/connections-2021-11-04-20.log +0 -0
- package/logs/connections-2021-11-08-10.log +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.scene=e():t.scene=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=566)}([function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(2),i=n(16).f,a=n(17),u=n(18),c=n(110),s=n(152),f=n(64);t.exports=function(t,e){var n,l,h,p,y,d=t.target,v=t.global,g=t.stat;if(n=v?o:g?o[d]||c(d,{}):(o[d]||{}).prototype)for(l in e){if(p=e[l],h=t.noTargetGet?(y=i(n,l))&&y.value:n[l],!f(v?l:d+(g?".":"#")+l,t.forced)&&void 0!==h){if(r(p)===r(h))continue;s(p,h)}(t.sham||h&&h.sham)&&a(p,"sham",!0),u(n,l,p,t)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){(function(e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==("undefined"==typeof globalThis?"undefined":n(globalThis))&&globalThis)||r("object"==("undefined"==typeof window?"undefined":n(window))&&window)||r("object"==("undefined"==typeof self?"undefined":n(self))&&self)||r("object"==(void 0===e?"undefined":n(e))&&e)||function(){return this}()||Function("return this")()}).call(this,n(147))},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return"object"===n(t)?null!==t:"function"==typeof t}},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(2),o=n(78),i=n(12),a=n(61),u=n(108),c=n(148),s=o("wks"),f=r.Symbol,l=c?f:f&&f.withoutSetter||a;t.exports=function(t){return i(s,t)&&(u||"string"==typeof s[t])||(u&&i(f,t)?s[t]=f[t]:s[t]=l("Symbol."+t)),s[t]}},function(t,e,n){var r=n(1);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(21),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){"use strict";var r,o,i,a=n(125),u=n(6),c=n(2),s=n(3),f=n(12),l=n(69),h=n(17),p=n(18),y=n(10).f,d=n(27),v=n(33),g=n(5),m=n(61),b=c.Int8Array,w=b&&b.prototype,x=c.Uint8ClampedArray,_=x&&x.prototype,k=b&&d(b),A=w&&d(w),S=Object.prototype,O=S.isPrototypeOf,E=g("toStringTag"),P=m("TYPED_ARRAY_TAG"),j=m("TYPED_ARRAY_CONSTRUCTOR"),R=a&&!!v&&"Opera"!==l(c.opera),T=!1,M={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},I={BigInt64Array:8,BigUint64Array:8},C=function(t){if(!s(t))return!1;var e=l(t);return f(M,e)||f(I,e)};for(r in M)(i=(o=c[r])&&o.prototype)?h(i,j,o):R=!1;for(r in I)(i=(o=c[r])&&o.prototype)&&h(i,j,o);if((!R||"function"!=typeof k||k===Function.prototype)&&(k=function(){throw TypeError("Incorrect invocation")},R))for(r in M)c[r]&&v(c[r],k);if((!R||!A||A===S)&&(A=k.prototype,R))for(r in M)c[r]&&v(c[r].prototype,A);if(R&&d(_)!==A&&v(_,A),u&&!f(A,E))for(r in T=!0,y(A,E,{get:function(){return s(this)?this[P]:void 0}}),M)c[r]&&h(c[r],P,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:R,TYPED_ARRAY_CONSTRUCTOR:j,TYPED_ARRAY_TAG:T&&P,aTypedArray:function(t){if(C(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(v&&!O.call(k,t))throw TypeError("Target is not a typed array constructor");return t},exportTypedArrayMethod:function(t,e,n){if(u){if(n)for(var r in M){var o=c[r];if(o&&f(o.prototype,t))try{delete o.prototype[t]}catch(t){}}A[t]&&!n||p(A,t,n?e:R&&w[t]||e)}},exportTypedArrayStaticMethod:function(t,e,n){var r,o;if(u){if(v){if(n)for(r in M)if((o=c[r])&&f(o,t))try{delete o[t]}catch(t){}if(k[t]&&!n)return;try{return p(k,t,n?e:R&&k[t]||e)}catch(t){}}for(r in M)!(o=c[r])||o[t]&&!n||p(o,t,e)}},isView:function(t){if(!s(t))return!1;var e=l(t);return"DataView"===e||f(M,e)||f(I,e)},isTypedArray:C,TypedArray:k,TypedArrayPrototype:A}},function(t,e,n){var r=n(52);t.exports=function(t){if(r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},function(t,e,n){var r=n(6),o=n(150),i=n(4),a=n(38),u=Object.defineProperty;e.f=r?u:function(t,e,n){if(i(t),e=a(e),i(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(13);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(11),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(r(t),e)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r,o,i,a=n(151),u=n(2),c=n(3),s=n(17),f=n(12),l=n(109),h=n(79),p=n(62),y=u.WeakMap;if(a||l.state){var d=l.state||(l.state=new y),v=d.get,g=d.has,m=d.set;r=function(t,e){if(g.call(d,t))throw new TypeError("Object already initialized");return e.facade=t,m.call(d,t,e),e},o=function(t){return v.call(d,t)||{}},i=function(t){return g.call(d,t)}}else{var b=h("state");p[b]=!0,r=function(t,e){if(f(t,b))throw new TypeError("Object already initialized");return e.facade=t,s(t,b,e),e},o=function(t){return f(t,b)?t[b]:{}},i=function(t){return f(t,b)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(43),o=n(60),i=n(11),a=n(7),u=n(66),c=[].push,s=function(t){var e=1==t,n=2==t,s=3==t,f=4==t,l=6==t,h=7==t,p=5==t||l;return function(y,d,v,g){for(var m,b,w=i(y),x=o(w),_=r(d,v,3),k=a(x.length),A=0,S=g||u,O=e?S(y,k):n||h?S(y,0):void 0;k>A;A++)if((p||A in x)&&(b=_(m=x[A],A,w),t))if(e)O[A]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return A;case 2:c.call(O,m)}else switch(t){case 4:return!1;case 7:c.call(O,m)}return l?-1:s||f?f:O}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},function(t,e,n){var r=n(6),o=n(77),i=n(31),a=n(23),u=n(38),c=n(12),s=n(150),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=u(e),s)try{return f(t,e)}catch(t){}if(c(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){var r=n(6),o=n(10),i=n(31);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(2),o=n(17),i=n(12),a=n(110),u=n(112),c=n(14),s=c.get,f=c.enforce,l=String(String).split("String");(t.exports=function(t,e,n,u){var c,s=!!u&&!!u.unsafe,h=!!u&&!!u.enumerable,p=!!u&&!!u.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),(c=f(n)).source||(c.source=l.join("string"==typeof e?e:""))),t!==r?(s?!p&&t[e]&&(h=!0):delete t[e],h?t[e]=n:o(t,e,n)):h?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||u(this)}))},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var r=n(2),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(156),o=n(12),i=n(155),a=n(10).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(60),o=n(13);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(13),o=n(9),i=/"/g;t.exports=function(t,e,n,a){var u=o(r(t)),c="<"+e;return""!==n&&(c+=" "+n+'="'+o(a).replace(i,""")+'"'),c+">"+u+"</"+e+">"}},function(t,e,n){var r=n(1);t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},function(t,e){t.exports=!1},function(t,e,n){var r=n(12),o=n(11),i=n(79),a=n(118),u=i("IE_PROTO"),c=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),r(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,e,n){var r,o=n(4),i=n(116),a=n(114),u=n(62),c=n(154),s=n(111),f=n(79),l=f("IE_PROTO"),h=function(){},p=function(t){return"<script>"+t+"<\/script>"},y=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}d=document.domain&&r?y(r):function(){var t,e=s("iframe");if(e.style)return e.style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F}()||y(r);for(var t=a.length;t--;)delete d.prototype[a[t]];return d()};u[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h.prototype=o(t),n=new h,h.prototype=null,n[l]=t):n=d(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(10).f,o=n(12),i=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(194),i="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=o||i||Function("return this")();t.exports=a},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(4),o=n(157);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){"use strict";var r=n(1);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){"use strict";var r=n(0),o=n(2),i=n(6),a=n(137),u=n(8),c=n(83),s=n(46),f=n(31),l=n(17),h=n(129),p=n(7),y=n(168),d=n(186),v=n(38),g=n(12),m=n(69),b=n(3),w=n(52),x=n(28),_=n(33),k=n(41).f,A=n(187),S=n(15).forEach,O=n(54),E=n(10),P=n(16),j=n(14),R=n(85),T=j.get,M=j.set,I=E.f,C=P.f,B=Math.round,L=o.RangeError,F=c.ArrayBuffer,N=c.DataView,D=u.NATIVE_ARRAY_BUFFER_VIEWS,U=u.TYPED_ARRAY_CONSTRUCTOR,z=u.TYPED_ARRAY_TAG,Y=u.TypedArray,W=u.TypedArrayPrototype,G=u.aTypedArrayConstructor,H=u.isTypedArray,q=function(t,e){for(var n=0,r=e.length,o=new(G(t))(r);r>n;)o[n]=e[n++];return o},V=function(t,e){I(t,e,{get:function(){return T(this)[e]}})},X=function(t){var e;return t instanceof F||"ArrayBuffer"==(e=m(t))||"SharedArrayBuffer"==e},K=function(t,e){return H(t)&&!w(e)&&e in t&&h(+e)&&e>=0},Q=function(t,e){return e=v(e),K(t,e)?f(2,t[e]):C(t,e)},J=function(t,e,n){return e=v(e),!(K(t,e)&&b(n)&&g(n,"value"))||g(n,"get")||g(n,"set")||n.configurable||g(n,"writable")&&!n.writable||g(n,"enumerable")&&!n.enumerable?I(t,e,n):(t[e]=n.value,t)};i?(D||(P.f=Q,E.f=J,V(W,"buffer"),V(W,"byteOffset"),V(W,"byteLength"),V(W,"length")),r({target:"Object",stat:!0,forced:!D},{getOwnPropertyDescriptor:Q,defineProperty:J}),t.exports=function(t,e,n){var i=t.match(/\d+$/)[0]/8,u=t+(n?"Clamped":"")+"Array",c="get"+t,f="set"+t,h=o[u],v=h,g=v&&v.prototype,m={},w=function(t,e){I(t,e,{get:function(){return function(t,e){var n=T(t);return n.view[c](e*i+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var o=T(t);n&&(r=(r=B(r))<0?0:r>255?255:255&r),o.view[f](e*i+o.byteOffset,r,!0)}(this,e,t)},enumerable:!0})};D?a&&(v=e((function(t,e,n,r){return s(t,v,u),R(b(e)?X(e)?void 0!==r?new h(e,d(n,i),r):void 0!==n?new h(e,d(n,i)):new h(e):H(e)?q(v,e):A.call(v,e):new h(y(e)),t,v)})),_&&_(v,Y),S(k(h),(function(t){t in v||l(v,t,h[t])})),v.prototype=g):(v=e((function(t,e,n,r){s(t,v,u);var o,a,c,f=0,l=0;if(b(e)){if(!X(e))return H(e)?q(v,e):A.call(v,e);o=e,l=d(n,i);var h=e.byteLength;if(void 0===r){if(h%i)throw L("Wrong length");if((a=h-l)<0)throw L("Wrong length")}else if((a=p(r)*i)+l>h)throw L("Wrong length");c=a/i}else c=y(e),o=new F(a=c*i);for(M(t,{buffer:o,byteOffset:l,byteLength:a,length:c,view:new N(o)});f<c;)w(t,f++)})),_&&_(v,Y),g=v.prototype=x(W)),g.constructor!==v&&l(g,"constructor",v),l(g,U,v),z&&l(g,z,u),m[u]=v,r({global:!0,forced:v!=h,sham:!D},m),"BYTES_PER_ELEMENT"in v||l(v,"BYTES_PER_ELEMENT",i),"BYTES_PER_ELEMENT"in g||l(g,"BYTES_PER_ELEMENT",i),O(u)}):t.exports=function(){}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=n(t);return null!=t&&("object"==e||"function"==e)}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return null!=t&&"object"==n(t)}},function(t,e,n){var r=n(107),o=n(52);t.exports=function(t){var e=r(t,"string");return o(e)?e:String(e)}},function(t,e,n){var r,o,i=n(2),a=n(40),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,f=s&&s.v8;f?o=(r=f.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},function(t,e,n){var r=n(20);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(153),o=n(114).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(21),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(4),i=n(119),a=n(7),u=n(43),c=n(68),s=n(158),f=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var l,h,p,y,d,v,g,m=n&&n.that,b=!(!n||!n.AS_ENTRIES),w=!(!n||!n.IS_ITERATOR),x=!(!n||!n.INTERRUPTED),_=u(e,m,1+b+x),k=function(t){return l&&s(l),new f(!0,t)},A=function(t){return b?(o(t),x?_(t[0],t[1],k):_(t[0],t[1])):x?_(t,k):_(t)};if(w)l=t;else{if("function"!=typeof(h=c(t)))throw TypeError("Target is not iterable");if(i(h)){for(p=0,y=a(t.length);y>p;p++)if((d=A(t[p]))&&d instanceof f)return d;return new f(!1)}l=h.call(t)}for(v=l.next;!(g=v.call(l)).done;){try{d=A(g.value)}catch(t){throw s(l),t}if("object"==r(d)&&d&&d instanceof f)return d}return new f(!1)}},function(t,e,n){var r=n(5),o=n(28),i=n(10),a=r("unscopables"),u=Array.prototype;null==u[a]&&i.f(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){var r=n(32);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(38),o=n(10),i=n(31);t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(0),i=n(62),a=n(3),u=n(12),c=n(10).f,s=n(41),f=n(117),l=n(61),h=n(71),p=!1,y=l("meta"),d=0,v=Object.isExtensible||function(){return!0},g=function(t){c(t,y,{value:{objectID:"O"+d++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},p=!0;var t=s.f,e=[].splice,n={};n[y]=1,t(n).length&&(s.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===y){e.call(r,o,1);break}return r},o({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!a(t))return"symbol"==r(t)?t:("string"==typeof t?"S":"P")+t;if(!u(t,y)){if(!v(t))return"F";if(!e)return"E";g(t)}return t[y].objectID},getWeakData:function(t,e){if(!u(t,y)){if(!v(t))return!0;if(!e)return!1;g(t)}return t[y].weakData},onFreeze:function(t){return h&&p&&v(t)&&!u(t,y)&&g(t),t}};i[y]=!0},function(t,e,n){var r=n(481),o=n(486);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(74),o=n(482),i=n(483),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(20),i=n(148);t.exports=i?function(t){return"symbol"==r(t)}:function(t){var e=o("Symbol");return"function"==typeof e&&Object(t)instanceof e}},function(t,e,n){var r=n(32),o=n(2);t.exports="process"==r(o.process)},function(t,e,n){"use strict";var r=n(20),o=n(10),i=n(5),a=n(6),u=i("species");t.exports=function(t){var e=r(t),n=o.f;a&&e&&!e[u]&&n(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(18);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(4),o=n(19),i=n(5)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r=n(13),o=n(9),i="["+n(87)+"]",a=RegExp("^"+i+i+"*"),u=RegExp(i+i+"*$"),c=function(t){return function(e){var n=o(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(u,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},function(t,e,n){"use strict";var r=n(4);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(1),o=n(32),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e){t.exports={}},function(t,e,n){var r=n(23),o=n(7),i=n(42),a=function(t){return function(e,n,a){var u,c=r(e),s=o(c.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,n){var r=n(1),o=/#|\.prototype\./,i=function(t,e){var n=u[a(t)];return n==s||n!=c&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},c=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(153),o=n(114);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(231);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e){t.exports={}},function(t,e,n){var r=n(69),o=n(67),i=n(5)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(120),o=n(32),i=n(5)("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r=n(1),o=n(5),i=n(39),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(1);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){var r=n(3),o=n(32),i=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(30).Symbol;t.exports=r},function(t,e,n){var r=n(514),o=n(138),i=n(515),a=n(516),u=n(517),c=n(51),s=n(195),f=s(r),l=s(o),h=s(i),p=s(a),y=s(u),d=c;(r&&"[object DataView]"!=d(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=d(new o)||i&&"[object Promise]"!=d(i.resolve())||a&&"[object Set]"!=d(new a)||u&&"[object WeakMap]"!=d(new u))&&(d=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?s(n):"";if(r)switch(r){case f:return"[object DataView]";case l:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case y:return"[object WeakMap]"}return e}),t.exports=d},function(t,e,n){var r=n(209),o=n(210);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var u=-1,c=e.length;++u<c;){var s=e[u],f=i?i(n[s],t[s],s,n,t):void 0;void 0===f&&(f=t[s]),a?o(n,s,f):r(n,s,f)}return n}},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(26),o=n(109);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(78),o=n(61),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(23),o=n(45),i=n(67),a=n(14),u=n(122),c=a.set,s=a.getterFor("Array Iterator");t.exports=u(Array,"Array",(function(t,e){c(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){var r=n(19),o=n(11),i=n(60),a=n(7),u=function(t){return function(e,n,u,c){r(n);var s=o(e),f=i(s),l=a(s.length),h=t?l-1:0,p=t?-1:1;if(u<2)for(;;){if(h in f){c=f[h],h+=p;break}if(h+=p,t?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;t?h>=0:l>h;h+=p)h in f&&(c=n(c,f[h],h,s));return c}};t.exports={left:u(!1),right:u(!0)}},function(t,e,n){"use strict";var r=n(2),o=n(6),i=n(125),a=n(17),u=n(55),c=n(1),s=n(46),f=n(21),l=n(7),h=n(168),p=n(277),y=n(27),d=n(33),v=n(41).f,g=n(10).f,m=n(121),b=n(29),w=n(14),x=w.get,_=w.set,k=r.ArrayBuffer,A=k,S=r.DataView,O=S&&S.prototype,E=Object.prototype,P=r.RangeError,j=p.pack,R=p.unpack,T=function(t){return[255&t]},M=function(t){return[255&t,t>>8&255]},I=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},C=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},B=function(t){return j(t,23,4)},L=function(t){return j(t,52,8)},F=function(t,e){g(t.prototype,e,{get:function(){return x(this)[e]}})},N=function(t,e,n,r){var o=h(n),i=x(t);if(o+e>i.byteLength)throw P("Wrong index");var a=x(i.buffer).bytes,u=o+i.byteOffset,c=a.slice(u,u+e);return r?c:c.reverse()},D=function(t,e,n,r,o,i){var a=h(n),u=x(t);if(a+e>u.byteLength)throw P("Wrong index");for(var c=x(u.buffer).bytes,s=a+u.byteOffset,f=r(+o),l=0;l<e;l++)c[s+l]=f[i?l:e-l-1]};if(i){if(!c((function(){k(1)}))||!c((function(){new k(-1)}))||c((function(){return new k,new k(1.5),new k(NaN),"ArrayBuffer"!=k.name}))){for(var U,z=(A=function(t){return s(this,A),new k(h(t))}).prototype=k.prototype,Y=v(k),W=0;Y.length>W;)(U=Y[W++])in A||a(A,U,k[U]);z.constructor=A}d&&y(O)!==E&&d(O,E);var G=new S(new A(2)),H=O.setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||u(O,{setInt8:function(t,e){H.call(this,t,e<<24>>24)},setUint8:function(t,e){H.call(this,t,e<<24>>24)}},{unsafe:!0})}else A=function(t){s(this,A,"ArrayBuffer");var e=h(t);_(this,{bytes:m.call(new Array(e),0),byteLength:e}),o||(this.byteLength=e)},S=function(t,e,n){s(this,S,"DataView"),s(t,A,"DataView");var r=x(t).byteLength,i=f(e);if(i<0||i>r)throw P("Wrong offset");if(i+(n=void 0===n?r-i:l(n))>r)throw P("Wrong length");_(this,{buffer:t,byteLength:n,byteOffset:i}),o||(this.buffer=t,this.byteLength=n,this.byteOffset=i)},o&&(F(A,"byteLength"),F(S,"buffer"),F(S,"byteLength"),F(S,"byteOffset")),u(S.prototype,{getInt8:function(t){return N(this,1,t)[0]<<24>>24},getUint8:function(t){return N(this,1,t)[0]},getInt16:function(t){var e=N(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=N(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return C(N(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return C(N(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return R(N(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return R(N(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){D(this,1,t,T,e)},setUint8:function(t,e){D(this,1,t,T,e)},setInt16:function(t,e){D(this,2,t,M,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){D(this,2,t,M,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){D(this,4,t,I,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){D(this,4,t,I,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){D(this,4,t,B,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){D(this,8,t,L,e,arguments.length>2?arguments[2]:void 0)}});b(A,"ArrayBuffer"),b(S,"DataView"),t.exports={ArrayBuffer:A,DataView:S}},function(t,e,n){"use strict";var r=n(0),o=n(2),i=n(64),a=n(18),u=n(49),c=n(44),s=n(46),f=n(3),l=n(1),h=n(80),p=n(29),y=n(85);t.exports=function(t,e,n){var d=-1!==t.indexOf("Map"),v=-1!==t.indexOf("Weak"),g=d?"set":"add",m=o[t],b=m&&m.prototype,w=m,x={},_=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(v&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!f(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(v&&!f(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(i(t,"function"!=typeof m||!(v||b.forEach&&!l((function(){(new m).entries().next()})))))w=n.getConstructor(e,t,d,g),u.enable();else if(i(t,!0)){var k=new w,A=k[g](v?{}:-0,1)!=k,S=l((function(){k.has(1)})),O=h((function(t){new m(t)})),E=!v&&l((function(){for(var t=new m,e=5;e--;)t[g](e,e);return!t.has(-0)}));O||((w=e((function(e,n){s(e,w,t);var r=y(new m,e,w);return null!=n&&c(n,r[g],{that:r,AS_ENTRIES:d}),r}))).prototype=b,b.constructor=w),(S||E)&&(_("delete"),_("has"),d&&_("get")),(E||A)&&_(g),v&&b.clear&&delete b.clear}return x[t]=w,r({global:!0,forced:w!=m},x),p(w,t),v||n.setStrong(w,t,d),w}},function(t,e,n){var r=n(3),o=n(33);t.exports=function(t,e,n){var i,a;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(t,a),t}},function(t,e){var n=Math.expm1,r=Math.exp;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:r(t)-1}:n},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){"use strict";var r=n(26),o=n(2),i=n(1),a=n(124);t.exports=r||!i((function(){if(!(a&&a<535)){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete o[t]}}))},function(t,e,n){"use strict";var r=n(19),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(1),o=function(t,e){return RegExp(t,e)};e.UNSUPPORTED_Y=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},function(t,e,n){"use strict";var r,o,i=n(9),a=n(58),u=n(90),c=n(78),s=n(28),f=n(14).get,l=n(132),h=n(182),p=RegExp.prototype.exec,y=c("native-string-replace",String.prototype.replace),d=p,v=(r=/a/,o=/b*/g,p.call(r,"a"),p.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),g=u.UNSUPPORTED_Y||u.BROKEN_CARET,m=void 0!==/()??/.exec("")[1];(v||m||g||l||h)&&(d=function(t){var e,n,r,o,u,c,l,h=this,b=f(h),w=i(t),x=b.raw;if(x)return x.lastIndex=h.lastIndex,e=d.call(x,w),h.lastIndex=x.lastIndex,e;var _=b.groups,k=g&&h.sticky,A=a.call(h),S=h.source,O=0,E=w;if(k&&(-1===(A=A.replace("y","")).indexOf("g")&&(A+="g"),E=w.slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==w.charAt(h.lastIndex-1))&&(S="(?: "+S+")",E=" "+E,O++),n=new RegExp("^(?:"+S+")",A)),m&&(n=new RegExp("^"+S+"$(?!\\s)",A)),v&&(r=h.lastIndex),o=p.call(k?n:h,E),k?o?(o.input=o.input.slice(O),o[0]=o[0].slice(O),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:v&&o&&(h.lastIndex=h.global?o.index+o[0].length:r),m&&o&&o.length>1&&y.call(o[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&_)for(o.groups=c=s(null),u=0;u<_.length;u++)c[(l=_[u])[0]]=o[l[1]];return o}),t.exports=d},function(t,e,n){var r=n(21),o=n(9),i=n(13),a=function(t){return function(e,n){var a,u,c=o(i(e)),s=r(n),f=c.length;return s<0||s>=f?t?"":void 0:(a=c.charCodeAt(s))<55296||a>56319||s+1===f||(u=c.charCodeAt(s+1))<56320||u>57343?t?c.charAt(s):a:t?c.slice(s,s+2):u-56320+(a-55296<<10)+65536}};t.exports={codeAt:a(!1),charAt:a(!0)}},function(t,e,n){"use strict";n(133);var r=n(18),o=n(91),i=n(1),a=n(5),u=n(17),c=a("species"),s=RegExp.prototype;t.exports=function(t,e,n,f){var l=a(t),h=!i((function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})),p=h&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[l]=/./[l]),n.exec=function(){return e=!0,null},n[l](""),!e}));if(!h||!p||n){var y=/./[l],d=e(l,""[t],(function(t,e,n,r,i){var a=e.exec;return a===o||a===s.exec?h&&!i?{done:!0,value:y.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}));r(String.prototype,t,d[0]),r(s,l,d[1])}f&&u(s[l],"sham",!0)}},function(t,e,n){"use strict";var r=n(92).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(32),i=n(91);t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!==r(a))throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==o(t))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},function(t,e,n){var r=n(8),o=n(56),i=r.TYPED_ARRAY_CONSTRUCTOR,a=r.aTypedArrayConstructor;t.exports=function(t){return a(o(t,t[i]))}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(471),o=n(472),i=n(473),a=n(474),u=n(475);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(73);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(50)(Object,"create");t.exports=r},function(t,e,n){var r=n(495);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(203),o=n(207),i=n(105);t.exports=function(t){return i(t)?r(t):o(t)}},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(30),i=n(511),a="object"==r(e)&&e&&!e.nodeType&&e,u=a&&"object"==r(t)&&t&&!t.nodeType&&t,c=u&&u.exports===a?o.Buffer:void 0,s=(c?c.isBuffer:void 0)||i;t.exports=s}).call(this,n(97)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(193),o=n(206);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,e,n){var r=n(203),o=n(525),i=n(105);t.exports=function(t){return i(t)?r(t,!0):o(t)}},function(t,e,n){var r=n(3),o=n(52),i=n(149),a=n(5)("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,u=t[a];if(void 0!==u){if(void 0===e&&(e="default"),n=u.call(t,e),!r(n)||o(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),i(t,e)}},function(t,e,n){var r=n(39),o=n(1);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r=n(2),o=n(110),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(2);t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(2),o=n(3),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e,n){var r=n(109),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,e,n){var r=n(20),o=n(41),i=n(115),a=n(4);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(6),o=n(10),i=n(4),a=n(65);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),u=r.length,c=0;u>c;)o.f(t,n=r[c++],e[n]);return t}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(23),i=n(41).f,a={}.toString,u="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==a.call(t)?function(t){try{return i(t)}catch(t){return u.slice()}}(t):i(o(t))}},function(t,e,n){var r=n(1);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(5),o=n(67),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},function(t,e,n){var r={};r[n(5)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){"use strict";var r=n(11),o=n(42),i=n(7);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,s=void 0===c?n:o(c,n);s>u;)e[u++]=t;return e}},function(t,e,n){"use strict";var r=n(0),o=n(123),i=n(27),a=n(33),u=n(29),c=n(17),s=n(18),f=n(5),l=n(26),h=n(67),p=n(163),y=p.IteratorPrototype,d=p.BUGGY_SAFARI_ITERATORS,v=f("iterator"),g=function(){return this};t.exports=function(t,e,n,f,p,m,b){o(n,e,f);var w,x,_,k=function(t){if(t===p&&P)return P;if(!d&&t in O)return O[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},A=e+" Iterator",S=!1,O=t.prototype,E=O[v]||O["@@iterator"]||p&&O[p],P=!d&&E||k(p),j="Array"==e&&O.entries||E;if(j&&(w=i(j.call(new t)),y!==Object.prototype&&w.next&&(l||i(w)===y||(a?a(w,y):"function"!=typeof w[v]&&c(w,v,g)),u(w,A,!0,!0),l&&(h[A]=g))),"values"==p&&E&&"values"!==E.name&&(S=!0,P=function(){return E.call(this)}),l&&!b||O[v]===P||c(O,v,P),h[e]=P,p)if(x={values:k("values"),keys:m?P:k("keys"),entries:k("entries")},b)for(_ in x)(d||S||!(_ in O))&&s(O,_,x[_]);else r({target:e,proto:!0,forced:d||S},x);return x}},function(t,e,n){"use strict";var r=n(163).IteratorPrototype,o=n(28),i=n(31),a=n(29),u=n(67),c=function(){return this};t.exports=function(t,e,n){var s=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),a(t,s,!1,!0),u[s]=c,t}},function(t,e,n){var r=n(40).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,n){var r=n(7),o=n(9),i=n(127),a=n(13),u=Math.ceil,c=function(t){return function(e,n,c){var s,f,l=o(a(e)),h=l.length,p=void 0===c?" ":o(c),y=r(n);return y<=h||""==p?l:(s=y-h,(f=i.call(p,u(s/p.length))).length>s&&(f=f.slice(0,s)),t?l+f:f+l)}};t.exports={start:c(!1),end:c(!0)}},function(t,e,n){"use strict";var r=n(21),o=n(9),i=n(13);t.exports=function(t){var e=o(i(this)),n="",a=r(t);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){var r=n(3),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e,n){var r,o,i,a,u=n(2),c=n(1),s=n(43),f=n(154),l=n(111),h=n(179),p=n(53),y=u.setImmediate,d=u.clearImmediate,v=u.process,g=u.MessageChannel,m=u.Dispatch,b=0,w={};try{r=u.location}catch(t){}var x=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},_=function(t){return function(){x(t)}},k=function(t){x(t.data)},A=function(t){u.postMessage(String(t),r.protocol+"//"+r.host)};y&&d||(y=function(t){for(var e=[],n=arguments.length,r=1;n>r;)e.push(arguments[r++]);return w[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},o(b),b},d=function(t){delete w[t]},p?o=function(t){v.nextTick(_(t))}:m&&m.now?o=function(t){m.now(_(t))}:g&&!h?(a=(i=new g).port2,i.port1.onmessage=k,o=s(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts&&r&&"file:"!==r.protocol&&!c(A)?(o=A,u.addEventListener("message",k,!1)):o="onreadystatechange"in l("script")?function(t){f.appendChild(l("script")).onreadystatechange=function(){f.removeChild(this),x(t)}}:function(t){setTimeout(_(t),0)}),t.exports={set:y,clear:d}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(1);t.exports=o((function(){var t=RegExp(".",r("").charAt(0));return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){"use strict";var r=n(0),o=n(91);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e,n){var r=n(72);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,n){var r=n(1),o=n(87);t.exports=function(t){return r((function(){return!!o[t]()||"
"!="
"[t]()||o[t].name!==t}))}},function(t,e,n){var r=n(2),o=n(1),i=n(80),a=n(8).NATIVE_ARRAY_BUFFER_VIEWS,u=r.ArrayBuffer,c=r.Int8Array;t.exports=!a||!o((function(){c(1)}))||!o((function(){new c(-1)}))||!i((function(t){new c,new c(null),new c(1.5),new c(t)}),!0)||o((function(){return 1!==new c(new u(2),1,void 0).length}))},function(t,e,n){var r=n(50)(n(30),"Map");t.exports=r},function(t,e,n){var r=n(508),o=n(202),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=u},function(t,e,n){var r=n(512),o=n(141),i=n(142),a=i&&i.isTypedArray,u=a?o(a):r;t.exports=u},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(194),i="object"==r(e)&&e&&!e.nodeType&&e,a=i&&"object"==r(t)&&t&&!t.nodeType&&t,u=a&&a.exports===i&&o.process,c=function(){try{var t=a&&a.require&&a.require("util").types;return t||u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=c}).call(this,n(97)(t))},function(t,e,n){var r=n(208)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(198);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e,n){var r=n(36),o=n(560),i=n(223),a=Math.max,u=Math.min;t.exports=function(t,e,n){var c,s,f,l,h,p,y=0,d=!1,v=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=c,r=s;return c=s=void 0,y=e,l=t.apply(r,n)}function b(t){return y=t,h=setTimeout(x,e),d?m(t):l}function w(t){var n=t-p;return void 0===p||n>=e||n<0||v&&t-y>=f}function x(){var t=o();if(w(t))return _(t);h=setTimeout(x,function(t){var n=e-(t-p);return v?u(n,f-(t-y)):n}(t))}function _(t){return h=void 0,g&&c?m(t):(c=s=void 0,l)}function k(){var t=o(),n=w(t);if(c=arguments,s=this,p=t,n){if(void 0===h)return b(p);if(v)return clearTimeout(h),h=setTimeout(x,e),m(p)}return void 0===h&&(h=setTimeout(x,e)),l}return e=i(e)||0,r(n)&&(d=!!n.leading,f=(v="maxWait"in n)?a(i(n.maxWait)||0,e):f,g="trailing"in n?!!n.trailing:g),k.cancel=function(){void 0!==h&&clearTimeout(h),y=0,c=p=s=h=void 0},k.flush=function(){return void 0===h?l:_(o())},k}},function(t,e,n){var r=n(469);t.exports=function(t,e){return r(t,e)}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}t.exports=r},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(108);t.exports=o&&!Symbol.sham&&"symbol"==r(Symbol.iterator)},function(t,e,n){var r=n(3);t.exports=function(t,e){var n,o;if("string"===e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if("string"!==e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(6),o=n(1),i=n(111);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(2),o=n(112),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,n){var r=n(12),o=n(113),i=n(16),a=n(10);t.exports=function(t,e){for(var n=o(e),u=a.f,c=i.f,s=0;s<n.length;s++){var f=n[s];r(t,f)||u(t,f,c(e,f))}}},function(t,e,n){var r=n(12),o=n(23),i=n(63).indexOf,a=n(62);t.exports=function(t,e){var n,u=o(t),c=0,s=[];for(n in u)!r(a,n)&&r(u,n)&&s.push(n);for(;e.length>c;)r(u,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(20);t.exports=r("document","documentElement")},function(t,e,n){var r=n(5);e.f=r},function(t,e,n){var r=n(2);t.exports=r},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){var r=n(4);t.exports=function(t){var e=t.return;if(void 0!==e)return r(e.call(t)).value}},function(t,e,n){"use strict";var r=n(11),o=n(42),i=n(7),a=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),u=i(n.length),c=o(t,u),s=o(e,u),f=arguments.length>2?arguments[2]:void 0,l=a((void 0===f?u:o(f,u))-s,u-c),h=1;for(s<c&&c<s+l&&(h=-1,s+=l-1,c+=l-1);l-- >0;)s in n?n[c]=n[s]:delete n[c],c+=h,s+=h;return n}},function(t,e,n){"use strict";var r=n(47),o=n(7),i=n(43);t.exports=function t(e,n,a,u,c,s,f,l){for(var h,p=c,y=0,d=!!f&&i(f,l,3);y<u;){if(y in a){if(h=d?d(a[y],y,n):a[y],s>0&&r(h))p=t(e,n,h,o(h.length),p,s-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=h}p++}y++}return p}},function(t,e,n){"use strict";var r=n(15).forEach,o=n(34)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){"use strict";var r=n(43),o=n(11),i=n(258),a=n(119),u=n(7),c=n(48),s=n(68);t.exports=function(t){var e,n,f,l,h,p,y=o(t),d="function"==typeof this?this:Array,v=arguments.length,g=v>1?arguments[1]:void 0,m=void 0!==g,b=s(y),w=0;if(m&&(g=r(g,v>2?arguments[2]:void 0,2)),null==b||d==Array&&a(b))for(n=new d(e=u(y.length));e>w;w++)p=m?g(y[w],w):y[w],c(n,w,p);else for(h=(l=b.call(y)).next,n=new d;!(f=h.call(l)).done;w++)p=m?i(l,g,[f.value,w],!0):f.value,c(n,w,p);return n.length=w,n}},function(t,e,n){"use strict";var r,o,i,a=n(1),u=n(27),c=n(17),s=n(12),f=n(5),l=n(26),h=f("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):p=!0);var y=null==r||a((function(){var t={};return r[h].call(t)!==t}));y&&(r={}),l&&!y||s(r,h)||c(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(t,e,n){"use strict";var r=n(23),o=n(21),i=n(7),a=n(34),u=Math.min,c=[].lastIndexOf,s=!!c&&1/[1].lastIndexOf(1,-0)<0,f=a("lastIndexOf"),l=s||!f;t.exports=l?function(t){if(s)return c.apply(this,arguments)||0;var e=r(this),n=i(e.length),a=n-1;for(arguments.length>1&&(a=u(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:c},function(t,e){var n=Math.floor,r=function(t,e){for(var n,r,o=t.length,i=1;i<o;){for(r=i,n=t[i];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==i++&&(t[r]=n)}return t},o=function(t,e,n){for(var r=t.length,o=e.length,i=0,a=0,u=[];i<r||a<o;)i<r&&a<o?u.push(n(t[i],e[a])<=0?t[i++]:e[a++]):u.push(i<r?t[i++]:e[a++]);return u};t.exports=function t(e,i){var a=e.length,u=n(a/2);return a<8?r(e,i):o(t(e.slice(0,u),i),t(e.slice(u),i),i)}},function(t,e,n){var r=n(40).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},function(t,e,n){var r=n(40);t.exports=/MSIE|Trident/.test(r)},function(t,e,n){var r=n(21),o=n(7);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length or index");return n}},function(t,e,n){"use strict";var r=n(19),o=n(3),i=[].slice,a={},u=function(t,e,n){if(!(e in a)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";a[e]=Function("C,a","return new C("+r.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),a=function(){var r=n.concat(i.call(arguments));return this instanceof a?u(e,r.length,r):e.apply(t,r)};return o(e.prototype)&&(a.prototype=e.prototype),a}},function(t,e,n){"use strict";var r=n(10).f,o=n(28),i=n(55),a=n(43),u=n(46),c=n(44),s=n(122),f=n(54),l=n(6),h=n(49).fastKey,p=n(14),y=p.set,d=p.getterFor;t.exports={getConstructor:function(t,e,n,s){var f=t((function(t,r){u(t,f,e),y(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&c(r,t[s],{that:t,AS_ENTRIES:n})})),p=d(e),v=function(t,e,n){var r,o,i=p(t),a=g(t,e);return a?a.value=n:(i.last=a={index:o=h(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),l?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},g=function(t,e){var n,r=p(t),o=h(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(f.prototype,{clear:function(){for(var t=p(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=p(this),n=g(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),l?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=p(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),i(f.prototype,n?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return v(this,0===t?0:t,e)}}:{add:function(t){return v(this,t=0===t?0:t,t)}}),l&&r(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=d(e),i=d(r);s(t,e,(function(t,e){y(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),f(e)}}},function(t,e){var n=Math.log;t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:n(1+t)}},function(t,e,n){var r=n(2),o=n(9),i=n(57).trim,a=n(87),u=r.parseFloat,c=1/u(a+"-0")!=-1/0;t.exports=c?function(t){var e=i(o(t)),n=u(e);return 0===n&&"-"==e.charAt(0)?-0:n}:u},function(t,e,n){var r=n(2),o=n(9),i=n(57).trim,a=n(87),u=r.parseInt,c=/^[+-]?0[Xx]/,s=8!==u(a+"08")||22!==u(a+"0x16");t.exports=s?function(t,e){var n=i(o(t));return u(n,e>>>0||(c.test(n)?16:10))}:u},function(t,e,n){var r=n(32);t.exports=function(t){if("number"!=typeof t&&"Number"!=r(t))throw TypeError("Incorrect invocation");return+t}},function(t,e,n){"use strict";var r=n(6),o=n(1),i=n(65),a=n(115),u=n(77),c=n(11),s=n(60),f=Object.assign,l=Object.defineProperty;t.exports=!f||o((function(){if(r&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||"abcdefghijklmnopqrst"!=i(f({},e)).join("")}))?function(t,e){for(var n=c(t),o=arguments.length,f=1,l=a.f,h=u.f;o>f;)for(var p,y=s(arguments[f++]),d=l?i(y).concat(l(y)):i(y),v=d.length,g=0;v>g;)p=d[g++],r&&!h.call(y,p)||(n[p]=y[p]);return n}:f},function(t,e,n){var r=n(6),o=n(65),i=n(23),a=n(77).f,u=function(t){return function(e){for(var n,u=i(e),c=o(u),s=c.length,f=0,l=[];s>f;)n=c[f++],r&&!a.call(u,n)||l.push(t?[n,u[n]]:u[n]);return l}};t.exports={entries:u(!0),values:u(!1)}},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(2);t.exports=r.Promise},function(t,e,n){var r=n(40);t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},function(t,e,n){var r,o,i,a,u,c,s,f,l=n(2),h=n(16).f,p=n(130).set,y=n(179),d=n(360),v=n(53),g=l.MutationObserver||l.WebKitMutationObserver,m=l.document,b=l.process,w=l.Promise,x=h(l,"queueMicrotask"),_=x&&x.value;_||(r=function(){var t,e;for(v&&(t=b.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?a():i=void 0,t}}i=void 0,t&&t.enter()},y||v||d||!g||!m?w&&w.resolve?((s=w.resolve(void 0)).constructor=w,f=s.then,a=function(){f.call(s,r)}):a=v?function(){b.nextTick(r)}:function(){p.call(l,r)}:(u=!0,c=m.createTextNode(""),new g(r).observe(c,{characterData:!0}),a=function(){c.data=u=!u})),t.exports=_||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},function(t,e,n){var r=n(4),o=n(3),i=n(89);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(1);t.exports=o((function(){var t=RegExp("(?<a>b)",r("").charAt(5));return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e,n){"use strict";var r=n(92).charAt,o=n(9),i=n(14),a=n(122),u=i.set,c=i.getterFor("String Iterator");a(String,"String",(function(t){u(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=c(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(40);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(t,e,n){var r=n(11),o=Math.floor,i="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,c,s,f){var l=n+t.length,h=c.length,p=u;return void 0!==s&&(s=r(s),p=a),i.call(f,p,(function(r,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":a=s[i.slice(1,-1)];break;default:var u=+i;if(0===u)return r;if(u>h){var f=o(u/10);return 0===f?r:f<=h?void 0===c[f-1]?i.charAt(1):c[f-1]+i.charAt(1):r}a=c[u-1]}return void 0===a?"":a}))}},function(t,e,n){var r=n(420);t.exports=function(t,e){var n=r(t);if(n%e)throw RangeError("Wrong offset");return n}},function(t,e,n){var r=n(11),o=n(7),i=n(68),a=n(119),u=n(43),c=n(8).aTypedArrayConstructor;t.exports=function(t){var e,n,s,f,l,h,p=r(t),y=arguments.length,d=y>1?arguments[1]:void 0,v=void 0!==d,g=i(p);if(null!=g&&!a(g))for(h=(l=g.call(p)).next,p=[];!(f=h.call(l)).done;)p.push(f.value);for(v&&y>2&&(d=u(d,arguments[2],2)),n=o(p.length),s=new(c(this))(n),e=0;n>e;e++)s[e]=v?d(p[e],e):p[e];return s}},function(t,e,n){"use strict";var r=n(55),o=n(49).getWeakData,i=n(4),a=n(3),u=n(46),c=n(44),s=n(15),f=n(12),l=n(14),h=l.set,p=l.getterFor,y=s.find,d=s.findIndex,v=0,g=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,e){return y(t.entries,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=d(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,s){var l=t((function(t,r){u(t,l,e),h(t,{type:e,id:v++,frozen:void 0}),null!=r&&c(r,t[s],{that:t,AS_ENTRIES:n})})),y=p(e),d=function(t,e,n){var r=y(t),a=o(i(e),!0);return!0===a?g(r).set(e,n):a[r.id]=n,t};return r(l.prototype,{delete:function(t){var e=y(this);if(!a(t))return!1;var n=o(t);return!0===n?g(e).delete(t):n&&f(n,e.id)&&delete n[e.id]},has:function(t){var e=y(this);if(!a(t))return!1;var n=o(t);return!0===n?g(e).has(t):n&&f(n,e.id)}}),r(l.prototype,n?{get:function(t){var e=y(this);if(a(t)){var n=o(t);return!0===n?g(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return d(this,t,e)}}:{add:function(t){return d(this,t,!0)}}),l}}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(1),o=n(5),i=n(26),a=o("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),i&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},function(t,e,n){"use strict";n(81);var r=n(0),o=n(20),i=n(190),a=n(18),u=n(55),c=n(29),s=n(123),f=n(14),l=n(46),h=n(12),p=n(43),y=n(69),d=n(4),v=n(3),g=n(9),m=n(28),b=n(31),w=n(466),x=n(68),_=n(5),k=o("fetch"),A=o("Request"),S=A&&A.prototype,O=o("Headers"),E=_("iterator"),P=f.set,j=f.getterFor("URLSearchParams"),R=f.getterFor("URLSearchParamsIterator"),T=/\+/g,M=Array(4),I=function(t){return M[t-1]||(M[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},C=function(t){try{return decodeURIComponent(t)}catch(e){return t}},B=function(t){var e=t.replace(T," "),n=4;try{return decodeURIComponent(e)}catch(t){for(;n;)e=e.replace(I(n--),C);return e}},L=/[!'()~]|%20/g,F={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},N=function(t){return F[t]},D=function(t){return encodeURIComponent(t).replace(L,N)},U=function(t,e){if(e)for(var n,r,o=e.split("&"),i=0;i<o.length;)(n=o[i++]).length&&(r=n.split("="),t.push({key:B(r.shift()),value:B(r.join("="))}))},z=function(t){this.entries.length=0,U(this.entries,t)},Y=function(t,e){if(t<e)throw TypeError("Not enough arguments")},W=s((function(t,e){P(this,{type:"URLSearchParamsIterator",iterator:w(j(t).entries),kind:e})}),"Iterator",(function(){var t=R(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n})),G=function(){l(this,G,"URLSearchParams");var t,e,n,r,o,i,a,u,c,s=arguments.length>0?arguments[0]:void 0,f=this,p=[];if(P(f,{type:"URLSearchParams",entries:p,updateURL:function(){},updateSearchParams:z}),void 0!==s)if(v(s))if("function"==typeof(t=x(s)))for(n=(e=t.call(s)).next;!(r=n.call(e)).done;){if((a=(i=(o=w(d(r.value))).next).call(o)).done||(u=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");p.push({key:g(a.value),value:g(u.value)})}else for(c in s)h(s,c)&&p.push({key:c,value:g(s[c])});else U(p,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:g(s))},H=G.prototype;if(u(H,{append:function(t,e){Y(arguments.length,2);var n=j(this);n.entries.push({key:g(t),value:g(e)}),n.updateURL()},delete:function(t){Y(arguments.length,1);for(var e=j(this),n=e.entries,r=g(t),o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;e.updateURL()},get:function(t){Y(arguments.length,1);for(var e=j(this).entries,n=g(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){Y(arguments.length,1);for(var e=j(this).entries,n=g(t),r=[],o=0;o<e.length;o++)e[o].key===n&&r.push(e[o].value);return r},has:function(t){Y(arguments.length,1);for(var e=j(this).entries,n=g(t),r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){Y(arguments.length,1);for(var n,r=j(this),o=r.entries,i=!1,a=g(t),u=g(e),c=0;c<o.length;c++)(n=o[c]).key===a&&(i?o.splice(c--,1):(i=!0,n.value=u));i||o.push({key:a,value:u}),r.updateURL()},sort:function(){var t,e,n,r=j(this),o=r.entries,i=o.slice();for(o.length=0,n=0;n<i.length;n++){for(t=i[n],e=0;e<n;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===n&&o.push(t)}r.updateURL()},forEach:function(t){for(var e,n=j(this).entries,r=p(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((e=n[o++]).value,e.key,this)},keys:function(){return new W(this,"keys")},values:function(){return new W(this,"values")},entries:function(){return new W(this,"entries")}},{enumerable:!0}),a(H,E,H.entries),a(H,"toString",(function(){for(var t,e=j(this).entries,n=[],r=0;r<e.length;)t=e[r++],n.push(D(t.key)+"="+D(t.value));return n.join("&")}),{enumerable:!0}),c(G,"URLSearchParams"),r({global:!0,forced:!i},{URLSearchParams:G}),!i&&"function"==typeof O){var q=function(t){if(v(t)){var e,n=t.body;if("URLSearchParams"===y(n))return(e=t.headers?new O(t.headers):new O).has("content-type")||e.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),m(t,{body:b(0,String(n)),headers:b(0,e)})}return t};if("function"==typeof k&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return k(t,arguments.length>1?q(arguments[1]):{})}}),"function"==typeof A){var V=function(t){return l(this,V,"Request"),new A(t,arguments.length>1?q(arguments[1]):{})};S.constructor=V,V.prototype=S,r({global:!0,forced:!0},{Request:V})}}t.exports={URLSearchParams:G,getState:j}},function(t,e,n){var r=n(98),o=n(476),i=n(477),a=n(478),u=n(479),c=n(480);function s(t){var e=this.__data__=new r(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=c,t.exports=s},function(t,e,n){var r=n(51),o=n(36);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){(function(e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r="object"==(void 0===e?"undefined":n(e))&&e&&e.Object===Object&&e;t.exports=r}).call(this,n(147))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(487),o=n(494),i=n(496),a=n(497),u=n(498);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(499),o=n(502),i=n(503);t.exports=function(t,e,n,a,u,c){var s=1&n,f=t.length,l=e.length;if(f!=l&&!(s&&l>f))return!1;var h=c.get(t),p=c.get(e);if(h&&p)return h==e&&p==t;var y=-1,d=!0,v=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++y<f;){var g=t[y],m=e[y];if(a)var b=s?a(m,g,y,e,t,c):a(g,m,y,t,e,c);if(void 0!==b){if(b)continue;d=!1;break}if(v){if(!o(e,(function(t,e){if(!i(v,e)&&(g===t||u(g,t,n,a,c)))return v.push(e)}))){d=!1;break}}else if(g!==m&&!u(g,m,n,a,c)){d=!1;break}}return c.delete(t),c.delete(e),d}},function(t,e,n){var r=n(30).Uint8Array;t.exports=r},function(t,e,n){var r=n(200),o=n(139),i=n(102);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(201),o=n(59);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(509),o=n(204),i=n(59),a=n(103),u=n(205),c=n(140),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),f=!n&&o(t),l=!n&&!f&&a(t),h=!n&&!f&&!l&&c(t),p=n||f||l||h,y=p?r(t.length,String):[],d=y.length;for(var v in t)!e&&!s.call(t,v)||p&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,d))||y.push(v);return y}},function(t,e,n){var r=n(510),o=n(37),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=n(t);return!!(e=null==e?9007199254740991:e)&&("number"==o||"symbol"!=o&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(104),o=n(513),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(210),o=n(73),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(211);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(50),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,n){var r=n(213),o=n(520),i=n(521);t.exports=function(t,e){return i(o(t,e,r),t+"")}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(73),i=n(105),a=n(205),u=n(36);t.exports=function(t,e,n){if(!u(n))return!1;var c=r(e);return!!("number"==c?i(n)&&a(e,n.length):"string"==c&&e in n)&&o(n[e],t)}},function(t,e,n){var r=n(51),o=n(37),i=n(528);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!i(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},function(t,e){t.exports=/<%=([\s\S]+?)%>/g},function(t,e,n){var r=n(536);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(51),i=n(37);t.exports=function(t){return"symbol"==r(t)||i(t)&&"[object Symbol]"==o(t)}},function(t,e,n){var r=n(539);t.exports=function(t){return r(t,4)}},function(t,e,n){var r=n(201),o=n(143),i=n(139),a=n(202),u=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:a;t.exports=u},function(t,e,n){var r=n(561),o=n(36),i=n(220),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||c.test(t)?s(t.slice(2),n?2:8):a.test(t)?NaN:+t}},function(t,e,n){var r=n(145),o=n(36);t.exports=function(t,e,n){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:i,maxWait:e,trailing:a})}},function(t,e,n){var r=n(563);t.exports=function(t){return r(2,t)}},function(t,e,n){var r=n(207),o=n(75),i=n(204),a=n(59),u=n(105),c=n(103),s=n(104),f=n(140),l=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||f(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(s(t))return!r(t).length;for(var n in t)if(l.call(t,n))return!1;return!0}},function(t,e,n){var r=n(518),o=n(527),i=n(529),a=n(530),u=n(531),c=n(216),s=n(215),f=n(102),l=n(218),h=n(532),p=n(219),y=/\b__p \+= '';/g,d=/\b(__p \+=) '' \+/g,v=/(__e\(.*?\)|\b__t\)) \+\n'';/g,g=/[()=,{}\[\]\/\s]/,m=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,b=/($^)/,w=/['\n\r\u2028\u2029\\]/g,x=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var _=h.imports._.templateSettings||h;n&&s(t,e,n)&&(e=void 0),t=p(t),e=r({},e,_,a);var k,A,S=r({},e.imports,_.imports,a),O=f(S),E=i(S,O),P=0,j=e.interpolate||b,R="__p += '",T=RegExp((e.escape||b).source+"|"+j.source+"|"+(j===l?m:b).source+"|"+(e.evaluate||b).source+"|$","g"),M=x.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(T,(function(e,n,r,o,i,a){return r||(r=o),R+=t.slice(P,a).replace(w,u),n&&(k=!0,R+="' +\n__e("+n+") +\n'"),i&&(A=!0,R+="';\n"+i+";\n__p += '"),r&&(R+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),P=a+e.length,e})),R+="';\n";var I=x.call(e,"variable")&&e.variable;if(I){if(g.test(I))throw new Error("Invalid `variable` option passed into `_.template`")}else R="with (obj) {\n"+R+"\n}\n";R=(A?R.replace(y,""):R).replace(d,"$1").replace(v,"$1;"),R="function("+(I||"obj")+") {\n"+(I?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(k?", __e = _.escape":"")+(A?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+R+"return __p\n}";var C=o((function(){return Function(O,M+"return "+R).apply(void 0,E)}));if(C.source=R,c(C))throw C;return C}},function(t,e,n){var r,o,i;o=[],void 0===(i="function"==typeof(r=function(){var t=function(t){return t.reduce((function(t,e){return 2*t+e}),0)},e=function(t){for(var e=[],n=7;n>=0;n--)e.push(!!(t&1<<n));return e},n=function(t){this.data=t,this.len=this.data.length,this.pos=0,this.readByte=function(){if(this.pos>=this.data.length)throw new Error("Attempted to read past end of stream.");return t instanceof Uint8Array?t[this.pos++]:255&t.charCodeAt(this.pos++)},this.readBytes=function(t){for(var e=[],n=0;n<t;n++)e.push(this.readByte());return e},this.read=function(t){for(var e="",n=0;n<t;n++)e+=String.fromCharCode(this.readByte());return e},this.readUnsigned=function(){var t=this.readBytes(2);return(t[1]<<8)+t[0]}},r=function(n,r){r||(r={});var o=function(t){for(var e=[],r=0;r<t;r++)e.push(n.readBytes(3));return e},i=function(){var t,e;e="";do{t=n.readByte(),e+=n.read(t)}while(0!==t);return e},a=function(a){a.leftPos=n.readUnsigned(),a.topPos=n.readUnsigned(),a.width=n.readUnsigned(),a.height=n.readUnsigned();var u=e(n.readByte());a.lctFlag=u.shift(),a.interlaced=u.shift(),a.sorted=u.shift(),a.reserved=u.splice(0,2),a.lctSize=t(u.splice(0,3)),a.lctFlag&&(a.lct=o(1<<a.lctSize+1)),a.lzwMinCodeSize=n.readByte();var c=i();a.pixels=function(t,e){for(var n,r,o=0,i=function(t){for(var n=0,r=0;r<t;r++)e.charCodeAt(o>>3)&1<<(7&o)&&(n|=1<<r),o++;return n},a=[],u=1<<t,c=u+1,s=t+1,f=[],l=function(){f=[],s=t+1;for(var e=0;e<u;e++)f[e]=[e];f[u]=[],f[c]=null};;)if(r=n,(n=i(s))!==u){if(n===c)break;if(n<f.length)r!==u&&f.push(f[r].concat(f[n][0]));else{if(n!==f.length)throw new Error("Invalid LZW code.");f.push(f[r].concat(f[r][0]))}a.push.apply(a,f[n]),f.length===1<<s&&s<12&&s++}else l();return a}(a.lzwMinCodeSize,c),a.interlaced&&(a.pixels=function(t,e){for(var n=new Array(t.length),r=t.length/e,o=function(r,o){var i=t.slice(o*e,(o+1)*e);n.splice.apply(n,[r*e,e].concat(i))},i=[0,4,2,1],a=[8,8,4,2],u=0,c=0;c<4;c++)for(var s=i[c];s<r;s+=a[c])o(s,u),u++;return n}(a.pixels,a.width)),r.img&&r.img(a)},u=function o(){var u={};switch(u.sentinel=n.readByte(),String.fromCharCode(u.sentinel)){case"!":u.type="ext",function(o){switch(o.label=n.readByte(),o.label){case 249:o.extType="gce",function(o){n.readByte();var i=e(n.readByte());o.reserved=i.splice(0,3),o.disposalMethod=t(i.splice(0,3)),o.userInput=i.shift(),o.transparencyGiven=i.shift(),o.delayTime=n.readUnsigned(),o.transparencyIndex=n.readByte(),o.terminator=n.readByte(),r.gce&&r.gce(o)}(o);break;case 254:o.extType="com",function(t){t.comment=i(),r.com&&r.com(t)}(o);break;case 1:o.extType="pte",function(t){n.readByte(),t.ptHeader=n.readBytes(12),t.ptData=i(),r.pte&&r.pte(t)}(o);break;case 255:o.extType="app",function(t){switch(n.readByte(),t.identifier=n.read(8),t.authCode=n.read(3),t.identifier){case"NETSCAPE":!function(t){n.readByte(),t.unknown=n.readByte(),t.iterations=n.readUnsigned(),t.terminator=n.readByte(),r.app&&r.app.NETSCAPE&&r.app.NETSCAPE(t)}(t);break;default:!function(t){t.appData=i(),r.app&&r.app[t.identifier]&&r.app[t.identifier](t)}(t)}}(o);break;default:o.extType="unknown",function(t){t.data=i(),r.unknown&&r.unknown(t)}(o)}}(u);break;case",":u.type="img",a(u);break;case";":u.type="eof",r.eof&&r.eof(u);break;default:throw new Error("Unknown block: 0x"+u.sentinel.toString(16))}"eof"!==u.type&&requestAnimationFrame(o)};!function(){var i={};if(i.sig=n.read(3),i.ver=n.read(3),"GIF"!==i.sig)throw new Error("Not a GIF file.");i.width=n.readUnsigned(),i.height=n.readUnsigned();var a=e(n.readByte());i.gctFlag=a.shift(),i.colorRes=t(a.splice(0,3)),i.sorted=a.shift(),i.gctSize=t(a.splice(0,3)),i.bgColor=n.readByte(),i.pixelAspectRatio=n.readByte(),i.gctFlag&&(i.gct=o(1<<i.gctSize+1)),r.hdr&&r.hdr(i)}(),requestAnimationFrame(u)};return function(t){var e,o,i={vp_l:0,vp_t:0,vp_w:null,vp_h:null,c_w:null,c_h:null};for(var a in t)i[a]=t[a];i.vp_w&&i.vp_h&&(i.is_vp=!0);var u=null,c=!1,s=null,f=null,l=null,h=null,p=null,y=null,d=null,v=!0,g=!1,m=[],b=[],w=i.gif;void 0===i.auto_play&&(i.auto_play=!w.getAttribute("rel:auto_play")||"1"==w.getAttribute("rel:auto_play"));var x,_,k,A,S=i.hasOwnProperty("on_end")?i.on_end:null,O=i.hasOwnProperty("loop_delay")?i.loop_delay:0,E=i.hasOwnProperty("loop_mode")?i.loop_mode:"auto",P=!i.hasOwnProperty("draw_while_loading")||i.draw_while_loading,j=!!P&&(!i.hasOwnProperty("show_progress_bar")||i.show_progress_bar),R=i.hasOwnProperty("progressbar_height")?i.progressbar_height:25,T=i.hasOwnProperty("progressbar_background_color")?i.progressbar_background_color:"rgba(255,255,255,0.4)",M=i.hasOwnProperty("progressbar_foreground_color")?i.progressbar_foreground_color:"rgba(255,0,22,.8)",I=function(){s=null,f=null,p=l,l=null,y=null},C=function(){try{r(e,W)}catch(t){F("parse")}},B=function(t,e){x.width=t*H(),x.height=e*H(),k.style.minWidth=t*H()+"px",A.width=t,A.height=e,A.style.width=t+"px",A.style.height=e+"px",A.getContext("2d").setTransform(1,0,0,1,0,0)},L=function(t,e,n){if(n&&j){var r,o,a,u=R;i.is_vp?g?(o=(i.vp_t+i.vp_h-u)/H(),u/=H(),r=i.vp_l/H()+t/e*(i.vp_w/H()),a=x.width/H()):(o=i.vp_t+i.vp_h-u,u=u,r=i.vp_l+t/e*i.vp_w,a=x.width):(o=(x.height-u)/(g?H():1),r=t/e*x.width/(g?H():1),a=x.width/(g?H():1),u/=g?H():1),_.fillStyle=T,_.fillRect(r,o,a-r,u),_.fillStyle=M,_.fillRect(0,o,r,u)}},F=function(t){u=t,o={width:w.width,height:w.height},m=[],_.fillStyle="black",_.fillRect(0,0,i.c_w?i.c_w:o.width,i.c_h?i.c_h:o.height),_.strokeStyle="red",_.lineWidth=3,_.moveTo(0,0),_.lineTo(i.c_w?i.c_w:o.width,i.c_h?i.c_h:o.height),_.moveTo(0,i.c_h?i.c_h:o.height),_.lineTo(i.c_w?i.c_w:o.width,0),_.stroke()},N=function(){y&&(m.push({data:y.getImageData(0,0,o.width,o.height),delay:f}),b.push({x:0,y:0}))},D=function(){var t,e,n,r=-1,o=0,a=function(t){r+=t,s()},c=(t=!1,e=function(){null!==S&&S(w),o++,!1!==E||o<0?n():(t=!1,v=!1)},n=function n(){if(t=v){a(1);var o=10*m[r].delay;o||(o=100),0==(r+1+m.length)%m.length?(o+=O,setTimeout(e,o)):setTimeout(n,o)}},function(){t||requestAnimationFrame(n)}),s=function(){var t;(r=parseInt(r,10))>m.length-1&&(r=0),r<0&&(r=0),t=b[r],A.getContext("2d").putImageData(m[r].data,t.x,t.y),_.globalCompositeOperation="copy",_.drawImage(A,0,0)};return{init:function(){u||(i.c_w&&i.c_h||_.scale(H(),H()),i.auto_play?c():(r=0,s()))},step:c,play:function(){v=!0,c()},pause:function(){v=!1},playing:v,move_relative:a,current_frame:function(){return r},length:function(){return m.length},move_to:function(t){r=t,s()}}}(),U=function(t){L(e.pos,e.data.length,t)},z=function(){},Y=function(t,e){return function(n){t(n),U(e)}},W={hdr:Y((function(t){B((o=t).width,o.height)})),gce:Y((function(t){N(),I(),s=t.transparencyGiven?t.transparencyIndex:null,f=t.delayTime,l=t.disposalMethod})),com:Y(z),app:{NETSCAPE:Y(z)},img:Y((function(t){y||(y=A.getContext("2d"));var e=m.length,n=t.lctFlag?t.lct:o.gct;e>0&&(3===p?null!==h?y.putImageData(m[h].data,0,0):y.clearRect(d.leftPos,d.topPos,d.width,d.height):h=e-1,2===p&&y.clearRect(d.leftPos,d.topPos,d.width,d.height));var r=y.getImageData(t.leftPos,t.topPos,t.width,t.height);t.pixels.forEach((function(t,e){t!==s&&(r.data[4*e+0]=n[t][0],r.data[4*e+1]=n[t][1],r.data[4*e+2]=n[t][2],r.data[4*e+3]=255)})),y.putImageData(r,t.leftPos,t.topPos),g||(_.scale(H(),H()),g=!0),P&&(_.drawImage(A,0,0),P=i.auto_play),d=t}),!0),eof:function(t){N(),U(!1),i.c_w&&i.c_h||(x.width=o.width*H(),x.height=o.height*H()),D.init(),c=!1,V&&V(w)}},G=function(){var t=w.parentNode,e=document.createElement("div");(x=document.createElement("canvas")).style.width="100%",x.style.height="100%",_=x.getContext("2d"),k=document.createElement("div"),A=document.createElement("canvas"),e.width=x.width=w.width,e.height=x.height=w.height,k.style.minWidth=w.width+"px",e.className="jsgif",e.style.width="100%",e.style.height="100%",k.className="jsgif_toolbar",e.appendChild(x),e.appendChild(k),t.insertBefore(e,w),t.removeChild(w),i.c_w&&i.c_h&&B(i.c_w,i.c_h),q=!0},H=function(){return i.max_width&&o&&o.width>i.max_width?i.max_width/o.width:1},q=!1,V=!1,X=function(t){return!c&&(V=t||!1,c=!0,m=[],I(),h=null,p=null,y=null,d=null,!0)};return{play:D.play,pause:D.pause,move_relative:D.move_relative,move_to:D.move_to,get_playing:function(){return v},get_canvas:function(){return x},get_canvas_scale:function(){return H()},get_loading:function(){return c},get_auto_play:function(){return i.auto_play},get_length:function(){return D.length()},get_current_frame:function(){return D.current_frame()},load_url:function(t,r){if(X(r)){var o=new XMLHttpRequest;o.open("GET",t,!0),"overrideMimeType"in o?o.overrideMimeType("text/plain; charset=x-user-defined"):"responseType"in o?o.responseType="arraybuffer":o.setRequestHeader("Accept-Charset","x-user-defined"),o.onloadstart=function(){q||G()},o.onload=function(t){200!=this.status&&F("xhr - response"),"response"in this||(this.response=new VBArray(this.responseText).toArray().map(String.fromCharCode).join(""));var r=this.response;r.toString().indexOf("ArrayBuffer")>0&&(r=new Uint8Array(r)),e=new n(r),requestAnimationFrame(C)},o.onprogress=function(t){t.lengthComputable&&L(t.loaded,t.total,!0)},o.onerror=function(){F("xhr")},o.send()}},load:function(t){this.load_url(w.getAttribute("rel:animated_src")||w.src,t)},load_raw:function(t,r){X(r)&&(q||G(),e=new n(t),requestAnimationFrame(C))},set_frame_offset:function(t,e){b[t]?(void 0!==e.x&&(b[t].x=e.x),void 0!==e.y&&(b[t].y=e.y)):b[t]=e}}}})?r.apply(e,o):r)||(t.exports=i)},function(t,e,n){n(230),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(259),n(260),n(261),n(81),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(287),n(288),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(356),n(357),n(358),n(359),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(381),n(133),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(389),n(390),n(183),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(421),n(422),n(423),n(424),n(425),n(426),n(427),n(428),n(429),n(430),n(431),n(432),n(435),n(436),n(437),n(438),n(439),n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(467),n(191),t.exports=n(156)},function(t,e,n){"use strict";var r=n(0),o=n(2),i=n(20),a=n(26),u=n(6),c=n(108),s=n(1),f=n(12),l=n(47),h=n(3),p=n(52),y=n(4),d=n(11),v=n(23),g=n(38),m=n(9),b=n(31),w=n(28),x=n(65),_=n(41),k=n(117),A=n(115),S=n(16),O=n(10),E=n(77),P=n(17),j=n(18),R=n(78),T=n(79),M=n(62),I=n(61),C=n(5),B=n(155),L=n(22),F=n(29),N=n(14),D=n(15).forEach,U=T("hidden"),z=C("toPrimitive"),Y=N.set,W=N.getterFor("Symbol"),G=Object.prototype,H=o.Symbol,q=i("JSON","stringify"),V=S.f,X=O.f,K=k.f,Q=E.f,J=R("symbols"),Z=R("op-symbols"),$=R("string-to-symbol-registry"),tt=R("symbol-to-string-registry"),et=R("wks"),nt=o.QObject,rt=!nt||!nt.prototype||!nt.prototype.findChild,ot=u&&s((function(){return 7!=w(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=V(G,e);r&&delete G[e],X(t,e,n),r&&t!==G&&X(G,e,r)}:X,it=function(t,e){var n=J[t]=w(H.prototype);return Y(n,{type:"Symbol",tag:t,description:e}),u||(n.description=e),n},at=function(t,e,n){t===G&&at(Z,e,n),y(t);var r=g(e);return y(n),f(J,r)?(n.enumerable?(f(t,U)&&t[U][r]&&(t[U][r]=!1),n=w(n,{enumerable:b(0,!1)})):(f(t,U)||X(t,U,b(1,{})),t[U][r]=!0),ot(t,r,n)):X(t,r,n)},ut=function(t,e){y(t);var n=v(e),r=x(n).concat(lt(n));return D(r,(function(e){u&&!ct.call(n,e)||at(t,e,n[e])})),t},ct=function(t){var e=g(t),n=Q.call(this,e);return!(this===G&&f(J,e)&&!f(Z,e))&&(!(n||!f(this,e)||!f(J,e)||f(this,U)&&this[U][e])||n)},st=function(t,e){var n=v(t),r=g(e);if(n!==G||!f(J,r)||f(Z,r)){var o=V(n,r);return!o||!f(J,r)||f(n,U)&&n[U][r]||(o.enumerable=!0),o}},ft=function(t){var e=K(v(t)),n=[];return D(e,(function(t){f(J,t)||f(M,t)||n.push(t)})),n},lt=function(t){var e=t===G,n=K(e?Z:v(t)),r=[];return D(n,(function(t){!f(J,t)||e&&!f(G,t)||r.push(J[t])})),r};(c||(j((H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=I(t),n=function t(n){this===G&&t.call(Z,n),f(this,U)&&f(this[U],e)&&(this[U][e]=!1),ot(this,e,b(1,n))};return u&&rt&&ot(G,e,{configurable:!0,set:n}),it(e,t)}).prototype,"toString",(function(){return W(this).tag})),j(H,"withoutSetter",(function(t){return it(I(t),t)})),E.f=ct,O.f=at,S.f=st,_.f=k.f=ft,A.f=lt,B.f=function(t){return it(C(t),t)},u&&(X(H.prototype,"description",{configurable:!0,get:function(){return W(this).description}}),a||j(G,"propertyIsEnumerable",ct,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),D(x(et),(function(t){L(t)})),r({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=m(t);if(f($,e))return $[e];var n=H(e);return $[e]=n,tt[n]=e,n},keyFor:function(t){if(!p(t))throw TypeError(t+" is not a symbol");if(f(tt,t))return tt[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?w(t):ut(w(t),e)},defineProperty:at,defineProperties:ut,getOwnPropertyDescriptor:st}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ft,getOwnPropertySymbols:lt}),r({target:"Object",stat:!0,forced:s((function(){A.f(1)}))},{getOwnPropertySymbols:function(t){return A.f(d(t))}}),q)&&r({target:"JSON",stat:!0,forced:!c||s((function(){var t=H();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(h(e)||void 0!==t)&&!p(t))return l(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!p(e))return e}),o[1]=e,q.apply(null,o)}});H.prototype[z]||P(H.prototype,z,H.prototype.valueOf),F(H,"Symbol"),M[U]=!0},function(t,e,n){var r=n(3),o=n(47),i=n(5)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)?r(e)&&null===(e=e[i])&&(e=void 0):e=void 0),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),o=n(6),i=n(2),a=n(12),u=n(3),c=n(10).f,s=n(152),f=i.Symbol;if(o&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new f(t):void 0===t?f():f(t);return""===t&&(l[e]=!0),e};s(h,f);var p=h.prototype=f.prototype;p.constructor=h;var y=p.toString,d="Symbol(test)"==String(f("test")),v=/^Symbol\((.*)\)[^)]+$/;c(p,"description",{configurable:!0,get:function(){var t=u(this)?this.valueOf():this,e=y.call(t);if(a(l,t))return"";var n=d?e.slice(7,-1):e.replace(v,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:h})}},function(t,e,n){n(22)("asyncIterator")},function(t,e,n){n(22)("hasInstance")},function(t,e,n){n(22)("isConcatSpreadable")},function(t,e,n){n(22)("iterator")},function(t,e,n){n(22)("match")},function(t,e,n){n(22)("matchAll")},function(t,e,n){n(22)("replace")},function(t,e,n){n(22)("search")},function(t,e,n){n(22)("species")},function(t,e,n){n(22)("split")},function(t,e,n){n(22)("toPrimitive")},function(t,e,n){n(22)("toStringTag")},function(t,e,n){n(22)("unscopables")},function(t,e,n){"use strict";var r=n(0),o=n(27),i=n(33),a=n(28),u=n(17),c=n(31),s=n(44),f=n(9),l=function(t,e){var n=this;if(!(n instanceof l))return new l(t,e);i&&(n=i(new Error(void 0),o(n))),void 0!==e&&u(n,"message",f(e));var r=[];return s(t,r.push,{that:r}),u(n,"errors",r),n};l.prototype=a(Error.prototype,{constructor:c(5,l),message:c(5,""),name:c(5,"AggregateError")}),r({global:!0},{AggregateError:l})},function(t,e,n){"use strict";var r=n(0),o=n(1),i=n(47),a=n(3),u=n(11),c=n(7),s=n(48),f=n(66),l=n(70),h=n(5),p=n(39),y=h("isConcatSpreadable"),d=p>=51||!o((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),v=l("concat"),g=function(t){if(!a(t))return!1;var e=t[y];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!d||!v},{concat:function(t){var e,n,r,o,i,a=u(this),l=f(a,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(g(i=-1===e?a:arguments[e])){if(h+(o=c(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,h++)n in i&&s(l,h,i[n])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(l,h++,i)}return l.length=h,l}})},function(t,e,n){var r=n(0),o=n(159),i=n(45);r({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},function(t,e,n){"use strict";var r=n(0),o=n(15).every;r({target:"Array",proto:!0,forced:!n(34)("every")},{every:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0),o=n(121),i=n(45);r({target:"Array",proto:!0},{fill:o}),i("fill")},function(t,e,n){"use strict";var r=n(0),o=n(15).filter;r({target:"Array",proto:!0,forced:!n(70)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(0),o=n(15).find,i=n(45),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(t,e,n){"use strict";var r=n(0),o=n(15).findIndex,i=n(45),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},function(t,e,n){"use strict";var r=n(0),o=n(160),i=n(11),a=n(7),u=n(21),c=n(66);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=i(this),n=a(e.length),r=c(e,0);return r.length=o(r,e,e,n,0,void 0===t?1:u(t)),r}})},function(t,e,n){"use strict";var r=n(0),o=n(160),i=n(11),a=n(7),u=n(19),c=n(66);r({target:"Array",proto:!0},{flatMap:function(t){var e,n=i(this),r=a(n.length);return u(t),(e=c(n,0)).length=o(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},function(t,e,n){"use strict";var r=n(0),o=n(161);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(162);r({target:"Array",stat:!0,forced:!n(80)((function(t){Array.from(t)}))},{from:o})},function(t,e,n){var r=n(4),o=n(158);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){throw o(t),e}}},function(t,e,n){"use strict";var r=n(0),o=n(63).includes,i=n(45);r({target:"Array",proto:!0},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(t,e,n){"use strict";var r=n(0),o=n(63).indexOf,i=n(34),a=[].indexOf,u=!!a&&1/[1].indexOf(1,-0)<0,c=i("indexOf");r({target:"Array",proto:!0,forced:u||!c},{indexOf:function(t){return u?a.apply(this,arguments)||0:o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){n(0)({target:"Array",stat:!0},{isArray:n(47)})},function(t,e,n){"use strict";var r=n(0),o=n(60),i=n(23),a=n(34),u=[].join,c=o!=Object,s=a("join",",");r({target:"Array",proto:!0,forced:c||!s},{join:function(t){return u.call(i(this),void 0===t?",":t)}})},function(t,e,n){var r=n(0),o=n(164);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(t,e,n){"use strict";var r=n(0),o=n(15).map;r({target:"Array",proto:!0,forced:!n(70)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(0),o=n(1),i=n(48);r({target:"Array",stat:!0,forced:o((function(){function t(){}return!(Array.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(82).left,i=n(34),a=n(39),u=n(53);r({target:"Array",proto:!0,forced:!i("reduce")||!u&&a>79&&a<83},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(0),o=n(82).right,i=n(34),a=n(39),u=n(53);r({target:"Array",proto:!0,forced:!i("reduceRight")||!u&&a>79&&a<83},{reduceRight:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(0),o=n(47),i=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(47),a=n(42),u=n(7),c=n(23),s=n(48),f=n(5),l=n(70)("slice"),h=f("species"),p=[].slice,y=Math.max;r({target:"Array",proto:!0,forced:!l},{slice:function(t,e){var n,r,f,l=c(this),d=u(l.length),v=a(t,d),g=a(void 0===e?d:e,d);if(i(l)&&("function"!=typeof(n=l.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[h])&&(n=void 0):n=void 0,n===Array||void 0===n))return p.call(l,v,g);for(r=new(void 0===n?Array:n)(y(g-v,0)),f=0;v<g;v++,f++)v in l&&s(r,f,l[v]);return r.length=f,r}})},function(t,e,n){"use strict";var r=n(0),o=n(15).some;r({target:"Array",proto:!0,forced:!n(34)("some")},{some:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(0),o=n(19),i=n(11),a=n(7),u=n(9),c=n(1),s=n(165),f=n(34),l=n(166),h=n(167),p=n(39),y=n(124),d=[],v=d.sort,g=c((function(){d.sort(void 0)})),m=c((function(){d.sort(null)})),b=f("sort"),w=!c((function(){if(p)return p<70;if(!(l&&l>3)){if(h)return!0;if(y)return y<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)d.push({k:e+r,v:n})}for(d.sort((function(t,e){return e.v-t.v})),r=0;r<d.length;r++)e=d[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:g||!m||!b||!w},{sort:function(t){void 0!==t&&o(t);var e=i(this);if(w)return void 0===t?v.call(e):v.call(e,t);var n,r,c=[],f=a(e.length);for(r=0;r<f;r++)r in e&&c.push(e[r]);for(n=(c=s(c,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:u(e)>u(n)?1:-1}}(t))).length,r=0;r<n;)e[r]=c[r++];for(;r<f;)delete e[r++];return e}})},function(t,e,n){n(54)("Array")},function(t,e,n){"use strict";var r=n(0),o=n(42),i=n(21),a=n(7),u=n(11),c=n(66),s=n(48),f=n(70)("splice"),l=Math.max,h=Math.min;r({target:"Array",proto:!0,forced:!f},{splice:function(t,e){var n,r,f,p,y,d,v=u(this),g=a(v.length),m=o(t,g),b=arguments.length;if(0===b?n=r=0:1===b?(n=0,r=g-m):(n=b-2,r=h(l(i(e),0),g-m)),g+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(f=c(v,r),p=0;p<r;p++)(y=m+p)in v&&s(f,p,v[y]);if(f.length=r,n<r){for(p=m;p<g-r;p++)d=p+n,(y=p+r)in v?v[d]=v[y]:delete v[d];for(p=g;p>g-r+n;p--)delete v[p-1]}else if(n>r)for(p=g-r;p>m;p--)d=p+n-1,(y=p+r-1)in v?v[d]=v[y]:delete v[d];for(p=0;p<n;p++)v[p+m]=arguments[p+2];return v.length=g-r+n,f}})},function(t,e,n){n(45)("flat")},function(t,e,n){n(45)("flatMap")},function(t,e,n){"use strict";var r=n(0),o=n(2),i=n(83),a=n(54),u=i.ArrayBuffer;r({global:!0,forced:o.ArrayBuffer!==u},{ArrayBuffer:u}),a("ArrayBuffer")},function(t,e){var n=Math.abs,r=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2;t.exports={pack:function(t,e,u){var c,s,f,l=new Array(u),h=8*u-e-1,p=(1<<h)-1,y=p>>1,d=23===e?r(2,-24)-r(2,-77):0,v=t<0||0===t&&1/t<0?1:0,g=0;for((t=n(t))!=t||t===1/0?(s=t!=t?1:0,c=p):(c=o(i(t)/a),t*(f=r(2,-c))<1&&(c--,f*=2),(t+=c+y>=1?d/f:d*r(2,1-y))*f>=2&&(c++,f/=2),c+y>=p?(s=0,c=p):c+y>=1?(s=(t*f-1)*r(2,e),c+=y):(s=t*r(2,y-1)*r(2,e),c=0));e>=8;l[g++]=255&s,s/=256,e-=8);for(c=c<<e|s,h+=e;h>0;l[g++]=255&c,c/=256,h-=8);return l[--g]|=128*v,l},unpack:function(t,e){var n,o=t.length,i=8*o-e-1,a=(1<<i)-1,u=a>>1,c=i-7,s=o-1,f=t[s--],l=127&f;for(f>>=7;c>0;l=256*l+t[s],s--,c-=8);for(n=l&(1<<-c)-1,l>>=-c,c+=e;c>0;n=256*n+t[s],s--,c-=8);if(0===l)l=1-u;else{if(l===a)return n?NaN:f?-1/0:1/0;n+=r(2,e),l-=u}return(f?-1:1)*n*r(2,l-e)}}},function(t,e,n){var r=n(0),o=n(8);r({target:"ArrayBuffer",stat:!0,forced:!o.NATIVE_ARRAY_BUFFER_VIEWS},{isView:o.isView})},function(t,e,n){"use strict";var r=n(0),o=n(1),i=n(83),a=n(4),u=n(42),c=n(7),s=n(56),f=i.ArrayBuffer,l=i.DataView,h=f.prototype.slice;r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(void 0!==h&&void 0===e)return h.call(a(this),t);for(var n=a(this).byteLength,r=u(t,n),o=u(void 0===e?n:e,n),i=new(s(this,f))(c(o-r)),p=new l(this),y=new l(i),d=0;r<o;)y.setUint8(d++,p.getUint8(r++));return i}})},function(t,e,n){var r=n(0),o=n(83);r({global:!0,forced:!n(125)},{DataView:o.DataView})},function(t,e,n){"use strict";var r=n(0),o=n(1)((function(){return 120!==new Date(16e11).getYear()})),i=Date.prototype.getFullYear;r({target:"Date",proto:!0,forced:o},{getYear:function(){return i.call(this)-1900}})},function(t,e,n){n(0)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(21),i=Date.prototype.getTime,a=Date.prototype.setFullYear;r({target:"Date",proto:!0},{setYear:function(t){i.call(this);var e=o(t),n=0<=e&&e<=99?e+1900:e;return a.call(this,n)}})},function(t,e,n){n(0)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(t,e,n){var r=n(0),o=n(286);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==o},{toISOString:o})},function(t,e,n){"use strict";var r=n(1),o=n(126).start,i=Math.abs,a=Date.prototype,u=a.getTime,c=a.toISOString;t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=c.call(new Date(-50000000000001))}))||!r((function(){c.call(new Date(NaN))}))?function(){if(!isFinite(u.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+o(i(t),n?6:4,0)+"-"+o(this.getUTCMonth()+1,2,0)+"-"+o(this.getUTCDate(),2,0)+"T"+o(this.getUTCHours(),2,0)+":"+o(this.getUTCMinutes(),2,0)+":"+o(this.getUTCSeconds(),2,0)+"."+o(e,3,0)+"Z"}:c},function(t,e,n){"use strict";var r=n(0),o=n(1),i=n(11),a=n(107);r({target:"Date",proto:!0,forced:o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=i(this),n=a(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(17),o=n(289),i=n(5)("toPrimitive"),a=Date.prototype;i in a||r(a,i,o)},function(t,e,n){"use strict";var r=n(4),o=n(149);t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw TypeError("Incorrect hint");return o(this,t)}},function(t,e,n){var r=n(18),o=Date.prototype,i=o.toString,a=o.getTime;"Invalid Date"!=String(new Date(NaN))&&r(o,"toString",(function(){var t=a.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,e,n){"use strict";var r=n(0),o=n(9),i=/[\w*+\-./@]/,a=function(t,e){for(var n=t.toString(16);n.length<e;)n="0"+n;return n};r({global:!0},{escape:function(t){for(var e,n,r=o(t),u="",c=r.length,s=0;s<c;)e=r.charAt(s++),i.test(e)?u+=e:u+=(n=e.charCodeAt(0))<256?"%"+a(n,2):"%u"+a(n,4).toUpperCase();return u}})},function(t,e,n){n(0)({target:"Function",proto:!0},{bind:n(169)})},function(t,e,n){"use strict";var r=n(3),o=n(10),i=n(27),a=n(5)("hasInstance"),u=Function.prototype;a in u||o.f(u,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(6),o=n(10).f,i=Function.prototype,a=i.toString,u=/^\s*function ([^ (]*)/;r&&!("name"in i)&&o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(u)[1]}catch(t){return""}}})},function(t,e,n){n(0)({global:!0},{globalThis:n(2)})},function(t,e,n){var r=n(0),o=n(20),i=n(1),a=o("JSON","stringify"),u=/[\uD800-\uDFFF]/g,c=/^[\uD800-\uDBFF]$/,s=/^[\uDC00-\uDFFF]$/,f=function(t,e,n){var r=n.charAt(e-1),o=n.charAt(e+1);return c.test(t)&&!s.test(o)||s.test(t)&&!c.test(r)?"\\u"+t.charCodeAt(0).toString(16):t},l=i((function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")}));a&&r({target:"JSON",stat:!0,forced:l},{stringify:function(t,e,n){var r=a.apply(null,arguments);return"string"==typeof r?r.replace(u,f):r}})},function(t,e,n){var r=n(2);n(29)(r.JSON,"JSON",!0)},function(t,e,n){"use strict";var r=n(84),o=n(170);t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},function(t,e,n){var r=n(0),o=n(171),i=Math.acosh,a=Math.log,u=Math.sqrt,c=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?a(t)+c:o(t-1+u(t-1)*u(t+1))}})},function(t,e,n){var r=n(0),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):i(e+a(e*e+1)):e}})},function(t,e,n){var r=n(0),o=Math.atanh,i=Math.log;r({target:"Math",stat:!0,forced:!(o&&1/o(-0)<0)},{atanh:function(t){return 0==(t=+t)?t:i((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(128),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){return o(t=+t)*a(i(t),1/3)}})},function(t,e,n){var r=n(0),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-o(i(t+.5)*a):32}})},function(t,e,n){var r=n(0),o=n(86),i=Math.cosh,a=Math.abs,u=Math.E;r({target:"Math",stat:!0,forced:!i||i(710)===1/0},{cosh:function(t){var e=o(a(t)-1)+1;return(e+1/(e*u*u))*(u/2)}})},function(t,e,n){var r=n(0),o=n(86);r({target:"Math",stat:!0,forced:o!=Math.expm1},{expm1:o})},function(t,e,n){n(0)({target:"Math",stat:!0},{fround:n(307)})},function(t,e,n){var r=n(128),o=Math.abs,i=Math.pow,a=i(2,-52),u=i(2,-23),c=i(2,127)*(2-u),s=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=o(t),f=r(t);return i<s?f*(i/s/u+1/a-1/a)*s*u:(n=(e=(1+u/a)*i)-(e-i))>c||n!=n?f*(1/0):f*n}},function(t,e,n){var r=n(0),o=Math.hypot,i=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,r,o=0,u=0,c=arguments.length,s=0;u<c;)s<(n=i(arguments[u++]))?(o=o*(r=s/n)*r+1,s=n):o+=n>0?(r=n/s)*r:n;return s===1/0?1/0:s*a(o)}})},function(t,e,n){var r=n(0),o=n(1),i=Math.imul;r({target:"Math",stat:!0,forced:o((function(){return-5!=i(4294967295,5)||2!=i.length}))},{imul:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0),o=Math.log,i=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(t){return o(t)*i}})},function(t,e,n){n(0)({target:"Math",stat:!0},{log1p:n(171)})},function(t,e,n){var r=n(0),o=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return o(t)/i}})},function(t,e,n){n(0)({target:"Math",stat:!0},{sign:n(128)})},function(t,e,n){var r=n(0),o=n(1),i=n(86),a=Math.abs,u=Math.exp,c=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){return a(t=+t)<1?(i(t)-i(-t))/2:(u(t-1)-u(-t-1))*(c/2)}})},function(t,e,n){var r=n(0),o=n(86),i=Math.exp;r({target:"Math",stat:!0},{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},function(t,e,n){n(29)(Math,"Math",!0)},function(t,e,n){var r=n(0),o=Math.ceil,i=Math.floor;r({target:"Math",stat:!0},{trunc:function(t){return(t>0?i:o)(t)}})},function(t,e,n){"use strict";var r=n(6),o=n(2),i=n(64),a=n(18),u=n(12),c=n(32),s=n(85),f=n(52),l=n(107),h=n(1),p=n(28),y=n(41).f,d=n(16).f,v=n(10).f,g=n(57).trim,m=o.Number,b=m.prototype,w="Number"==c(p(b)),x=function(t){if(f(t))throw TypeError("Cannot convert a Symbol value to a number");var e,n,r,o,i,a,u,c,s=l(t,"number");if("string"==typeof s&&s.length>2)if(43===(e=(s=g(s)).charCodeAt(0))||45===e){if(88===(n=s.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(a=(i=s.slice(2)).length,u=0;u<a;u++)if((c=i.charCodeAt(u))<48||c>o)return NaN;return parseInt(i,r)}return+s};if(i("Number",!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var _,k=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof k&&(w?h((function(){b.valueOf.call(n)})):"Number"!=c(n))?s(new m(x(e)),n,k):x(e)},A=r?y(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),S=0;A.length>S;S++)u(m,_=A[S])&&!u(k,_)&&v(k,_,d(m,_));k.prototype=b,b.constructor=k,a(o,"Number",k)}},function(t,e,n){n(0)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(t,e,n){n(0)({target:"Number",stat:!0},{isFinite:n(321)})},function(t,e,n){var r=n(2).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},function(t,e,n){n(0)({target:"Number",stat:!0},{isInteger:n(129)})},function(t,e,n){n(0)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(129),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,e,n){n(0)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){n(0)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(172);r({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},function(t,e,n){var r=n(0),o=n(173);r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},function(t,e,n){"use strict";var r=n(0),o=n(21),i=n(174),a=n(127),u=n(1),c=1..toFixed,s=Math.floor,f=function t(e,n,r){return 0===n?r:n%2==1?t(e,n-1,r*e):t(e*e,n/2,r)},l=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=s(o/1e7)},h=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=s(r/e),r=r%e*1e7},p=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=String(t[e]);n=""===n?r:n+a.call("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!u((function(){c.call({})}))},{toFixed:function(t){var e,n,r,u,c=i(this),s=o(t),y=[0,0,0,0,0,0],d="",v="0";if(s<0||s>20)throw RangeError("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(d="-",c=-c),c>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(c*f(2,69,1))-69)<0?c*f(2,-e,1):c/f(2,e,1),n*=4503599627370496,(e=52-e)>0){for(l(y,0,n),r=s;r>=7;)l(y,1e7,0),r-=7;for(l(y,f(10,r,1),0),r=e-1;r>=23;)h(y,1<<23),r-=23;h(y,1<<r),l(y,1,1),h(y,2),v=p(y)}else l(y,0,n),l(y,1<<-e,0),v=p(y)+a.call("0",s);return v=s>0?d+((u=v.length)<=s?"0."+a.call("0",s-u)+v:v.slice(0,u-s)+"."+v.slice(u-s)):d+v}})},function(t,e,n){"use strict";var r=n(0),o=n(1),i=n(174),a=1..toPrecision;r({target:"Number",proto:!0,forced:o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))},{toPrecision:function(t){return void 0===t?a.call(i(this)):a.call(i(this),t)}})},function(t,e,n){var r=n(0),o=n(175);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,n){n(0)({target:"Object",stat:!0,sham:!n(6)},{create:n(28)})},function(t,e,n){"use strict";var r=n(0),o=n(6),i=n(88),a=n(11),u=n(19),c=n(10);o&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(t,e){c.f(a(this),t,{get:u(e),enumerable:!0,configurable:!0})}})},function(t,e,n){var r=n(0),o=n(6);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(116)})},function(t,e,n){var r=n(0),o=n(6);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(10).f})},function(t,e,n){"use strict";var r=n(0),o=n(6),i=n(88),a=n(11),u=n(19),c=n(10);o&&r({target:"Object",proto:!0,forced:i},{__defineSetter__:function(t,e){c.f(a(this),t,{set:u(e),enumerable:!0,configurable:!0})}})},function(t,e,n){var r=n(0),o=n(176).entries;r({target:"Object",stat:!0},{entries:function(t){return o(t)}})},function(t,e,n){var r=n(0),o=n(71),i=n(1),a=n(3),u=n(49).onFreeze,c=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){c(1)})),sham:!o},{freeze:function(t){return c&&a(t)?c(u(t)):t}})},function(t,e,n){var r=n(0),o=n(44),i=n(48);r({target:"Object",stat:!0},{fromEntries:function(t){var e={};return o(t,(function(t,n){i(e,t,n)}),{AS_ENTRIES:!0}),e}})},function(t,e,n){var r=n(0),o=n(1),i=n(23),a=n(16).f,u=n(6),c=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!u||c,sham:!u},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},function(t,e,n){var r=n(0),o=n(6),i=n(113),a=n(23),u=n(16),c=n(48);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),o=u.f,s=i(r),f={},l=0;s.length>l;)void 0!==(n=o(r,e=s[l++]))&&c(f,e,n);return f}})},function(t,e,n){var r=n(0),o=n(1),i=n(117).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(t,e,n){var r=n(0),o=n(1),i=n(11),a=n(27),u=n(118);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!u},{getPrototypeOf:function(t){return a(i(t))}})},function(t,e,n){n(0)({target:"Object",stat:!0},{is:n(177)})},function(t,e,n){var r=n(0),o=n(1),i=n(3),a=Object.isExtensible;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isExtensible:function(t){return!!i(t)&&(!a||a(t))}})},function(t,e,n){var r=n(0),o=n(1),i=n(3),a=Object.isFrozen;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isFrozen:function(t){return!i(t)||!!a&&a(t)}})},function(t,e,n){var r=n(0),o=n(1),i=n(3),a=Object.isSealed;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isSealed:function(t){return!i(t)||!!a&&a(t)}})},function(t,e,n){var r=n(0),o=n(11),i=n(65);r({target:"Object",stat:!0,forced:n(1)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(6),i=n(88),a=n(11),u=n(38),c=n(27),s=n(16).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(t){var e,n=a(this),r=u(t);do{if(e=s(n,r))return e.get}while(n=c(n))}})},function(t,e,n){"use strict";var r=n(0),o=n(6),i=n(88),a=n(11),u=n(38),c=n(27),s=n(16).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(t){var e,n=a(this),r=u(t);do{if(e=s(n,r))return e.set}while(n=c(n))}})},function(t,e,n){var r=n(0),o=n(3),i=n(49).onFreeze,a=n(71),u=n(1),c=Object.preventExtensions;r({target:"Object",stat:!0,forced:u((function(){c(1)})),sham:!a},{preventExtensions:function(t){return c&&o(t)?c(i(t)):t}})},function(t,e,n){var r=n(0),o=n(3),i=n(49).onFreeze,a=n(71),u=n(1),c=Object.seal;r({target:"Object",stat:!0,forced:u((function(){c(1)})),sham:!a},{seal:function(t){return c&&o(t)?c(i(t)):t}})},function(t,e,n){n(0)({target:"Object",stat:!0},{setPrototypeOf:n(33)})},function(t,e,n){var r=n(120),o=n(18),i=n(355);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){"use strict";var r=n(120),o=n(69);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(0),o=n(176).values;r({target:"Object",stat:!0},{values:function(t){return o(t)}})},function(t,e,n){var r=n(0),o=n(172);r({global:!0,forced:parseFloat!=o},{parseFloat:o})},function(t,e,n){var r=n(0),o=n(173);r({global:!0,forced:parseInt!=o},{parseInt:o})},function(t,e,n){"use strict";var r,o,i,a,u=n(0),c=n(26),s=n(2),f=n(20),l=n(178),h=n(18),p=n(55),y=n(33),d=n(29),v=n(54),g=n(3),m=n(19),b=n(46),w=n(112),x=n(44),_=n(80),k=n(56),A=n(130).set,S=n(180),O=n(181),E=n(361),P=n(89),j=n(131),R=n(14),T=n(64),M=n(5),I=n(362),C=n(53),B=n(39),L=M("species"),F="Promise",N=R.get,D=R.set,U=R.getterFor(F),z=l&&l.prototype,Y=l,W=z,G=s.TypeError,H=s.document,q=s.process,V=P.f,X=V,K=!!(H&&H.createEvent&&s.dispatchEvent),Q="function"==typeof PromiseRejectionEvent,J=!1,Z=T(F,(function(){var t=w(Y),e=t!==String(Y);if(!e&&66===B)return!0;if(c&&!W.finally)return!0;if(B>=51&&/native code/.test(t))return!1;var n=new Y((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[L]=r,!(J=n.then((function(){}))instanceof r)||!e&&I&&!Q})),$=Z||!_((function(t){Y.all(t).catch((function(){}))})),tt=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},et=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;S((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var a,u,c,s=n[i++],f=o?s.ok:s.fail,l=s.resolve,h=s.reject,p=s.domain;try{f?(o||(2===t.rejection&&it(t),t.rejection=1),!0===f?a=r:(p&&p.enter(),a=f(r),p&&(p.exit(),c=!0)),a===s.promise?h(G("Promise-chain cycle")):(u=tt(a))?u.call(a,l,h):l(a)):h(r)}catch(t){p&&!c&&p.exit(),h(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&rt(t)}))}},nt=function(t,e,n){var r,o;K?((r=H.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!Q&&(o=s["on"+t])?o(r):"unhandledrejection"===t&&E("Unhandled promise rejection",n)},rt=function(t){A.call(s,(function(){var e,n=t.facade,r=t.value;if(ot(t)&&(e=j((function(){C?q.emit("unhandledRejection",r,n):nt("unhandledrejection",n,r)})),t.rejection=C||ot(t)?2:1,e.error))throw e.value}))},ot=function(t){return 1!==t.rejection&&!t.parent},it=function(t){A.call(s,(function(){var e=t.facade;C?q.emit("rejectionHandled",e):nt("rejectionhandled",e,t.value)}))},at=function(t,e,n){return function(r){t(e,r,n)}},ut=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,et(t,!0))},ct=function t(e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===n)throw G("Promise can't be resolved itself");var o=tt(n);o?S((function(){var r={done:!1};try{o.call(n,at(t,r,e),at(ut,r,e))}catch(t){ut(r,t,e)}})):(e.value=n,e.state=1,et(e,!1))}catch(t){ut({done:!1},t,e)}}};if(Z&&(W=(Y=function(t){b(this,Y,F),m(t),r.call(this);var e=N(this);try{t(at(ct,e),at(ut,e))}catch(t){ut(e,t)}}).prototype,(r=function(t){D(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(W,{then:function(t,e){var n=U(this),r=V(k(this,Y));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=C?q.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&et(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=N(t);this.promise=t,this.resolve=at(ct,e),this.reject=at(ut,e)},P.f=V=function(t){return t===Y||t===i?new o(t):X(t)},!c&&"function"==typeof l&&z!==Object.prototype)){a=z.then,J||(h(z,"then",(function(t,e){var n=this;return new Y((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),h(z,"catch",W.catch,{unsafe:!0}));try{delete z.constructor}catch(t){}y&&y(z,W)}u({global:!0,wrap:!0,forced:Z},{Promise:Y}),d(Y,F,!1,!0),v(F),i=f(F),u({target:F,stat:!0,forced:Z},{reject:function(t){var e=V(this);return e.reject.call(void 0,t),e.promise}}),u({target:F,stat:!0,forced:c||Z},{resolve:function(t){return O(c&&this===i?Y:this,t)}}),u({target:F,stat:!0,forced:$},{all:function(t){var e=this,n=V(e),r=n.resolve,o=n.reject,i=j((function(){var n=m(e.resolve),i=[],a=0,u=1;x(t,(function(t){var c=a++,s=!1;i.push(void 0),u++,n.call(e,t).then((function(t){s||(s=!0,i[c]=t,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=V(e),r=n.reject,o=j((function(){var o=m(e.resolve);x(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(t,e,n){var r=n(40);t.exports=/web0s(?!.*chrome)/i.test(r)},function(t,e,n){var r=n(2);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports="object"==("undefined"==typeof window?"undefined":n(window))},function(t,e,n){"use strict";var r=n(0),o=n(19),i=n(89),a=n(131),u=n(44);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=i.f(e),r=n.resolve,c=n.reject,s=a((function(){var n=o(e.resolve),i=[],a=0,c=1;u(t,(function(t){var o=a++,u=!1;i.push(void 0),c++,n.call(e,t).then((function(t){u||(u=!0,i[o]={status:"fulfilled",value:t},--c||r(i))}),(function(t){u||(u=!0,i[o]={status:"rejected",reason:t},--c||r(i))}))})),--c||r(i)}));return s.error&&c(s.value),n.promise}})},function(t,e,n){"use strict";var r=n(0),o=n(19),i=n(20),a=n(89),u=n(131),c=n(44);r({target:"Promise",stat:!0},{any:function(t){var e=this,n=a.f(e),r=n.resolve,s=n.reject,f=u((function(){var n=o(e.resolve),a=[],u=0,f=1,l=!1;c(t,(function(t){var o=u++,c=!1;a.push(void 0),f++,n.call(e,t).then((function(t){c||l||(l=!0,r(t))}),(function(t){c||l||(c=!0,a[o]=t,--f||s(new(i("AggregateError"))(a,"No one promise resolved")))}))})),--f||s(new(i("AggregateError"))(a,"No one promise resolved"))}));return f.error&&s(f.value),n.promise}})},function(t,e,n){"use strict";var r=n(0),o=n(26),i=n(178),a=n(1),u=n(20),c=n(56),s=n(181),f=n(18);if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=c(this,u("Promise")),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}}),!o&&"function"==typeof i){var l=u("Promise").prototype.finally;i.prototype.finally!==l&&f(i.prototype,"finally",l,{unsafe:!0})}},function(t,e,n){var r=n(0),o=n(20),i=n(19),a=n(4),u=n(1),c=o("Reflect","apply"),s=Function.apply;r({target:"Reflect",stat:!0,forced:!u((function(){c((function(){}))}))},{apply:function(t,e,n){return i(t),a(n),c?c(t,e,n):s.call(t,e,n)}})},function(t,e,n){var r=n(0),o=n(20),i=n(19),a=n(4),u=n(3),c=n(28),s=n(169),f=n(1),l=o("Reflect","construct"),h=f((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),p=!f((function(){l((function(){}))})),y=h||p;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(t,e){i(t),a(e);var n=arguments.length<3?t:i(arguments[2]);if(p&&!h)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(s.apply(t,r))}var o=n.prototype,f=c(u(o)?o:Object.prototype),y=Function.apply.call(t,f,e);return u(y)?y:f}})},function(t,e,n){var r=n(0),o=n(6),i=n(4),a=n(38),u=n(10);r({target:"Reflect",stat:!0,forced:n(1)((function(){Reflect.defineProperty(u.f({},1,{value:1}),1,{value:2})})),sham:!o},{defineProperty:function(t,e,n){i(t);var r=a(e);i(n);try{return u.f(t,r,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(4),i=n(16).f;r({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var n=i(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){var r=n(0),o=n(3),i=n(4),a=n(12),u=n(16),c=n(27);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,s,f=arguments.length<3?e:arguments[2];return i(e)===f?e[n]:(r=u.f(e,n))?a(r,"value")?r.value:void 0===r.get?void 0:r.get.call(f):o(s=c(e))?t(s,n,f):void 0}})},function(t,e,n){var r=n(0),o=n(6),i=n(4),a=n(16);r({target:"Reflect",stat:!0,sham:!o},{getOwnPropertyDescriptor:function(t,e){return a.f(i(t),e)}})},function(t,e,n){var r=n(0),o=n(4),i=n(27);r({target:"Reflect",stat:!0,sham:!n(118)},{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,n){n(0)({target:"Reflect",stat:!0},{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(4),i=Object.isExtensible;r({target:"Reflect",stat:!0},{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,e,n){n(0)({target:"Reflect",stat:!0},{ownKeys:n(113)})},function(t,e,n){var r=n(0),o=n(20),i=n(4);r({target:"Reflect",stat:!0,sham:!n(71)},{preventExtensions:function(t){i(t);try{var e=o("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(4),i=n(3),a=n(12),u=n(1),c=n(10),s=n(16),f=n(27),l=n(31);r({target:"Reflect",stat:!0,forced:u((function(){var t=function(){},e=c.f(new t,"a",{configurable:!0});return!1!==Reflect.set(t.prototype,"a",1,e)}))},{set:function t(e,n,r){var u,h,p=arguments.length<4?e:arguments[3],y=s.f(o(e),n);if(!y){if(i(h=f(e)))return t(h,n,r,p);y=l(0)}if(a(y,"value")){if(!1===y.writable||!i(p))return!1;if(u=s.f(p,n)){if(u.get||u.set||!1===u.writable)return!1;u.value=r,c.f(p,n,u)}else c.f(p,n,l(0,r));return!0}return void 0!==y.set&&(y.set.call(p,r),!0)}})},function(t,e,n){var r=n(0),o=n(4),i=n(157),a=n(33);a&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){o(t),i(e);try{return a(t,e),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(2),i=n(29);r({global:!0},{Reflect:{}}),i(o.Reflect,"Reflect",!0)},function(t,e,n){var r=n(6),o=n(2),i=n(64),a=n(85),u=n(17),c=n(10).f,s=n(41).f,f=n(72),l=n(9),h=n(58),p=n(90),y=n(18),d=n(1),v=n(12),g=n(14).enforce,m=n(54),b=n(5),w=n(132),x=n(182),_=b("match"),k=o.RegExp,A=k.prototype,S=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,O=/a/g,E=/a/g,P=new k(O)!==O,j=p.UNSUPPORTED_Y,R=r&&(!P||j||w||x||d((function(){return E[_]=!1,k(O)!=O||k(E)==E||"/a/i"!=k(O,"i")})));if(i("RegExp",R)){for(var T=function(t,e){var n,r,o,i,c,s,p=this instanceof T,y=f(t),d=void 0===e,m=[],b=t;if(!p&&y&&d&&t.constructor===T)return t;if((y||t instanceof T)&&(t=t.source,d&&(e="flags"in b?b.flags:h.call(b))),t=void 0===t?"":l(t),e=void 0===e?"":l(e),b=t,w&&"dotAll"in O&&(r=!!e&&e.indexOf("s")>-1)&&(e=e.replace(/s/g,"")),n=e,j&&"sticky"in O&&(o=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,"")),x&&(t=(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a={},u=!1,c=!1,s=0,f="";r<=n;r++){if("\\"===(e=t.charAt(r)))e+=t.charAt(++r);else if("]"===e)u=!1;else if(!u)switch(!0){case"["===e:u=!0;break;case"("===e:S.test(t.slice(r+1))&&(r+=2,c=!0),o+=e,s++;continue;case">"===e&&c:if(""===f||v(a,f))throw new SyntaxError("Invalid capture group name");a[f]=!0,i.push([f,s]),c=!1,f="";continue}c?f+=e:o+=e}return[o,i]}(t))[0],m=i[1]),c=a(k(t,e),p?this:A,T),(r||o||m.length)&&(s=g(c),r&&(s.dotAll=!0,s.raw=T(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=t.charAt(r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+t.charAt(++r);return o}(t),n)),o&&(s.sticky=!0),m.length&&(s.groups=m)),t!==b)try{u(c,"source",""===b?"(?:)":b)}catch(t){}return c},M=function(t){t in T||c(T,t,{configurable:!0,get:function(){return k[t]},set:function(e){k[t]=e}})},I=s(k),C=0;I.length>C;)M(I[C++]);A.constructor=T,T.prototype=A,y(o,"RegExp",T)}m("RegExp")},function(t,e,n){var r=n(6),o=n(132),i=n(10).f,a=n(14).get,u=RegExp.prototype;r&&o&&i(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if(this instanceof RegExp)return!!a(this).dotAll;throw TypeError("Incompatible receiver, RegExp required")}}})},function(t,e,n){var r=n(6),o=n(10),i=n(58),a=n(1);r&&a((function(){return"sy"!==Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get.call({dotAll:!0,sticky:!0})}))&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},function(t,e,n){var r=n(6),o=n(90).UNSUPPORTED_Y,i=n(10).f,a=n(14).get,u=RegExp.prototype;r&&o&&i(u,"sticky",{configurable:!0,get:function(){if(this!==u){if(this instanceof RegExp)return!!a(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";n(133);var r,o,i=n(0),a=n(3),u=(r=!1,(o=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===o.test("abc")&&r),c=/./.test;i({target:"RegExp",proto:!0,forced:!u},{test:function(t){if("function"!=typeof this.exec)return c.call(this,t);var e=this.exec(t);if(null!==e&&!a(e))throw new Error("RegExp exec method returned something other than an Object or null");return!!e}})},function(t,e,n){"use strict";var r=n(18),o=n(4),i=n(9),a=n(1),u=n(58),c=RegExp.prototype,s=c.toString,f=a((function(){return"/a/b"!=s.call({source:"a",flags:"b"})})),l="toString"!=s.name;(f||l)&&r(RegExp.prototype,"toString",(function(){var t=o(this),e=i(t.source),n=t.flags;return"/"+e+"/"+i(void 0===n&&t instanceof RegExp&&!("flags"in c)?u.call(t):n)}),{unsafe:!0})},function(t,e,n){"use strict";var r=n(84),o=n(170);t.exports=r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},function(t,e,n){"use strict";var r=n(0),o=n(92).codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r,o=n(0),i=n(16).f,a=n(7),u=n(9),c=n(134),s=n(13),f=n(135),l=n(26),h="".endsWith,p=Math.min,y=f("endsWith");o({target:"String",proto:!0,forced:!!(l||y||(r=i(String.prototype,"endsWith"),!r||r.writable))&&!y},{endsWith:function(t){var e=u(s(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=a(e.length),o=void 0===n?r:p(a(n),r),i=u(t);return h?h.call(e,i,o):e.slice(o-i.length,o)===i}})},function(t,e,n){var r=n(0),o=n(42),i=String.fromCharCode,a=String.fromCodePoint;r({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){"use strict";var r=n(0),o=n(134),i=n(13),a=n(9);r({target:"String",proto:!0,forced:!n(135)("includes")},{includes:function(t){return!!~a(i(this)).indexOf(a(o(t)),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(93),o=n(4),i=n(7),a=n(9),u=n(13),c=n(94),s=n(95);r("match",(function(t,e,n){return[function(e){var n=u(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](a(n))},function(t){var r=o(this),u=a(t),f=n(e,r,u);if(f.done)return f.value;if(!r.global)return s(r,u);var l=r.unicode;r.lastIndex=0;for(var h,p=[],y=0;null!==(h=s(r,u));){var d=a(h[0]);p[y]=d,""===d&&(r.lastIndex=c(u,i(r.lastIndex),l)),y++}return 0===y?null:p}]}))},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(0),i=n(123),a=n(13),u=n(7),c=n(9),s=n(19),f=n(4),l=n(32),h=n(72),p=n(58),y=n(17),d=n(1),v=n(5),g=n(56),m=n(94),b=n(14),w=n(26),x=v("matchAll"),_=b.set,k=b.getterFor("RegExp String Iterator"),A=RegExp.prototype,S=A.exec,O="".matchAll,E=!!O&&!d((function(){"a".matchAll(/./)})),P=i((function(t,e,n,r){_(this,{type:"RegExp String Iterator",regexp:t,string:e,global:n,unicode:r,done:!1})}),"RegExp String",(function(){var t=k(this);if(t.done)return{value:void 0,done:!0};var e=t.regexp,n=t.string,o=function(t,e){var n,o=t.exec;if("function"==typeof o){if("object"!=r(n=o.call(t,e)))throw TypeError("Incorrect exec result");return n}return S.call(t,e)}(e,n);return null===o?{value:void 0,done:t.done=!0}:t.global?(""===c(o[0])&&(e.lastIndex=m(n,u(e.lastIndex),t.unicode)),{value:o,done:!1}):(t.done=!0,{value:o,done:!1})})),j=function(t){var e,n,r,o,i,a,s=f(this),l=c(t);return e=g(s,RegExp),void 0===(n=s.flags)&&s instanceof RegExp&&!("flags"in A)&&(n=p.call(s)),r=void 0===n?"":c(n),o=new e(e===RegExp?s.source:s,r),i=!!~r.indexOf("g"),a=!!~r.indexOf("u"),o.lastIndex=u(s.lastIndex),new P(o,l,i,a)};o({target:"String",proto:!0,forced:E},{matchAll:function(t){var e,n,r,o=a(this);if(null!=t){if(h(t)&&!~c(a("flags"in A?t.flags:p.call(t))).indexOf("g"))throw TypeError("`.matchAll` does not allow non-global regexes");if(E)return O.apply(o,arguments);if(void 0===(n=t[x])&&w&&"RegExp"==l(t)&&(n=j),null!=n)return s(n).call(t,o)}else if(E)return O.apply(o,arguments);return e=c(o),r=new RegExp(t,"g"),w?j.call(r,e):r[x](e)}}),w||x in A||y(A,x,j)},function(t,e,n){"use strict";var r=n(0),o=n(126).end;r({target:"String",proto:!0,forced:n(184)},{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(0),o=n(126).start;r({target:"String",proto:!0,forced:n(184)},{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0),o=n(23),i=n(7),a=n(9);r({target:"String",stat:!0},{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,u=[],c=0;n>c;)u.push(a(e[c++])),c<r&&u.push(a(arguments[c]));return u.join("")}})},function(t,e,n){n(0)({target:"String",proto:!0},{repeat:n(127)})},function(t,e,n){"use strict";var r=n(93),o=n(1),i=n(4),a=n(21),u=n(7),c=n(9),s=n(13),f=n(94),l=n(185),h=n(95),p=n(5)("replace"),y=Math.max,d=Math.min,v="$0"==="a".replace(/./,"$0"),g=!!/./[p]&&""===/./[p]("a","$0");r("replace",(function(t,e,n){var r=g?"$":"$0";return[function(t,n){var r=s(this),o=null==t?void 0:t[p];return void 0!==o?o.call(t,r,n):e.call(c(r),t,n)},function(t,o){var s=i(this),p=c(t);if("string"==typeof o&&-1===o.indexOf(r)&&-1===o.indexOf("$<")){var v=n(e,s,p,o);if(v.done)return v.value}var g="function"==typeof o;g||(o=c(o));var m=s.global;if(m){var b=s.unicode;s.lastIndex=0}for(var w=[];;){var x=h(s,p);if(null===x)break;if(w.push(x),!m)break;""===c(x[0])&&(s.lastIndex=f(p,u(s.lastIndex),b))}for(var _,k="",A=0,S=0;S<w.length;S++){x=w[S];for(var O=c(x[0]),E=y(d(a(x.index),p.length),0),P=[],j=1;j<x.length;j++)P.push(void 0===(_=x[j])?_:String(_));var R=x.groups;if(g){var T=[O].concat(P,E,p);void 0!==R&&T.push(R);var M=c(o.apply(void 0,T))}else M=l(O,p,E,P,R,o);E>=A&&(k+=p.slice(A,E)+M,A=E+O.length)}return k+p.slice(A)}]}),!!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!v||g)},function(t,e,n){"use strict";var r=n(0),o=n(13),i=n(72),a=n(9),u=n(58),c=n(185),s=n(5),f=n(26),l=s("replace"),h=RegExp.prototype,p=Math.max,y=function(t,e,n){return n>t.length?-1:""===e?n:t.indexOf(e,n)};r({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,s,d,v,g,m,b,w=o(this),x=0,_=0,k="";if(null!=t){if((n=i(t))&&!~a(o("flags"in h?t.flags:u.call(t))).indexOf("g"))throw TypeError("`.replaceAll` does not allow non-global regexes");if(void 0!==(r=t[l]))return r.call(t,w,e);if(f&&n)return a(w).replace(t,e)}for(s=a(w),d=a(t),(v="function"==typeof e)||(e=a(e)),g=d.length,m=p(1,g),x=y(s,d,0);-1!==x;)b=v?a(e(d,x,s)):c(d,s,x,[],void 0,e),k+=s.slice(_,x)+b,_=x+g,x=y(s,d,x+m);return _<s.length&&(k+=s.slice(_)),k}})},function(t,e,n){"use strict";var r=n(93),o=n(4),i=n(13),a=n(177),u=n(9),c=n(95);r("search",(function(t,e,n){return[function(e){var n=i(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](u(n))},function(t){var r=o(this),i=u(t),s=n(e,r,i);if(s.done)return s.value;var f=r.lastIndex;a(f,0)||(r.lastIndex=0);var l=c(r,i);return a(r.lastIndex,f)||(r.lastIndex=f),null===l?-1:l.index}]}))},function(t,e,n){"use strict";var r=n(93),o=n(72),i=n(4),a=n(13),u=n(56),c=n(94),s=n(7),f=n(9),l=n(95),h=n(91),p=n(90),y=n(1),d=p.UNSUPPORTED_Y,v=[].push,g=Math.min;r("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=f(a(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!o(t))return e.call(r,t,i);for(var u,c,s,l=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),y=0,d=new RegExp(t.source,p+"g");(u=h.call(d,r))&&!((c=d.lastIndex)>y&&(l.push(r.slice(y,u.index)),u.length>1&&u.index<r.length&&v.apply(l,u.slice(1)),s=u[0].length,y=c,l.length>=i));)d.lastIndex===u.index&&d.lastIndex++;return y===r.length?!s&&d.test("")||l.push(""):l.push(r.slice(y)),l.length>i?l.slice(0,i):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=a(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(f(o),e,n)},function(t,o){var a=i(this),h=f(t),p=n(r,a,h,o,r!==e);if(p.done)return p.value;var y=u(a,RegExp),v=a.unicode,m=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(d?"g":"y"),b=new y(d?"^(?:"+a.source+")":a,m),w=void 0===o?4294967295:o>>>0;if(0===w)return[];if(0===h.length)return null===l(b,h)?[h]:[];for(var x=0,_=0,k=[];_<h.length;){b.lastIndex=d?0:_;var A,S=l(b,d?h.slice(_):h);if(null===S||(A=g(s(b.lastIndex+(d?_:0)),h.length))===x)_=c(h,_,v);else{if(k.push(h.slice(x,_)),k.length===w)return k;for(var O=1;O<=S.length-1;O++)if(k.push(S[O]),k.length===w)return k;_=x=A}}return k.push(h.slice(x)),k}]}),!!y((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),d)},function(t,e,n){"use strict";var r,o=n(0),i=n(16).f,a=n(7),u=n(9),c=n(134),s=n(13),f=n(135),l=n(26),h="".startsWith,p=Math.min,y=f("startsWith");o({target:"String",proto:!0,forced:!!(l||y||(r=i(String.prototype,"startsWith"),!r||r.writable))&&!y},{startsWith:function(t){var e=u(s(this));c(t);var n=a(p(arguments.length>1?arguments[1]:void 0,e.length)),r=u(t);return h?h.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";var r=n(0),o=n(13),i=n(21),a=n(9),u="".slice,c=Math.max,s=Math.min;r({target:"String",proto:!0},{substr:function(t,e){var n,r,f=a(o(this)),l=f.length,h=i(t);return h===1/0&&(h=0),h<0&&(h=c(l+h,0)),(n=void 0===e?l:i(e))<=0||n===1/0||h>=(r=s(h+n,l))?"":u.call(f,h,r)}})},function(t,e,n){"use strict";var r=n(0),o=n(57).trim;r({target:"String",proto:!0,forced:n(136)("trim")},{trim:function(){return o(this)}})},function(t,e,n){"use strict";var r=n(0),o=n(57).end,i=n(136)("trimEnd"),a=i?function(){return o(this)}:"".trimEnd;r({target:"String",proto:!0,forced:i},{trimEnd:a,trimRight:a})},function(t,e,n){"use strict";var r=n(0),o=n(57).start,i=n(136)("trimStart"),a=i?function(){return o(this)}:"".trimStart;r({target:"String",proto:!0,forced:i},{trimStart:a,trimLeft:a})},function(t,e,n){"use strict";var r=n(0),o=n(24);r({target:"String",proto:!0,forced:n(25)("anchor")},{anchor:function(t){return o(this,"a","name",t)}})},function(t,e,n){"use strict";var r=n(0),o=n(24);r({target:"String",proto:!0,forced:n(25)("big")},{big:function(){return o(this,"big","","")}})},function(t,e,n){"use strict";var r=n(0),o=n(24);r({target:"String",proto:!0,forced:n(25)("blink")},{blink:function(){return o(this,"blink","","")}})},function(t,e,n){"use strict";var r=n(0),o=n(24);r({target:"String",proto:!0,forced:n(25)("bold")},{bold:function(){return o(this,"b","","")}})},function(t,e,n){"use strict";var r=n(0),o=n(24);r({target:"String",proto:!0,forced:n(25)("fixed")},{fixed:function(){return o(this,"tt","","")}})},function(t,e,n){"use strict";var r=n(0),o=n(24);r({target:"String",proto:!0,forced:n(25)("fontcolor")},{fontcolor:function(t){return o(this,"font","color",t)}})},function(t,e,n){"use strict";var r=n(0),o=n(24);r({target:"String",proto:!0,forced:n(25)("fontsize")},{fontsize:function(t){return o(this,"font","size",t)}})},function(t,e,n){"use strict";var r=n(0),o=n(24);r({target:"String",proto:!0,forced:n(25)("italics")},{italics:function(){return o(this,"i","","")}})},function(t,e,n){"use strict";var r=n(0),o=n(24);r({target:"String",proto:!0,forced:n(25)("link")},{link:function(t){return o(this,"a","href",t)}})},function(t,e,n){"use strict";var r=n(0),o=n(24);r({target:"String",proto:!0,forced:n(25)("small")},{small:function(){return o(this,"small","","")}})},function(t,e,n){"use strict";var r=n(0),o=n(24);r({target:"String",proto:!0,forced:n(25)("strike")},{strike:function(){return o(this,"strike","","")}})},function(t,e,n){"use strict";var r=n(0),o=n(24);r({target:"String",proto:!0,forced:n(25)("sub")},{sub:function(){return o(this,"sub","","")}})},function(t,e,n){"use strict";var r=n(0),o=n(24);r({target:"String",proto:!0,forced:n(25)("sup")},{sup:function(){return o(this,"sup","","")}})},function(t,e,n){n(35)("Float32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){var r=n(21);t.exports=function(t){var e=r(t);if(e<0)throw RangeError("The argument can't be less than 0");return e}},function(t,e,n){n(35)("Float64",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(35)("Int8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(35)("Int16",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(35)("Int32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(35)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(35)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(35)("Uint16",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(35)("Uint32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){"use strict";var r=n(8),o=n(159),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(t,e){return o.call(i(this),t,e,arguments.length>2?arguments[2]:void 0)}))},function(t,e,n){"use strict";var r=n(8),o=n(15).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(8),o=n(121),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",(function(t){return o.apply(i(this),arguments)}))},function(t,e,n){"use strict";var r=n(8),o=n(15).filter,i=n(433),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(t){var e=o(a(this),t,arguments.length>1?arguments[1]:void 0);return i(this,e)}))},function(t,e,n){var r=n(434),o=n(96);t.exports=function(t,e){return r(o(t),e)}},function(t,e){t.exports=function(t,e){for(var n=0,r=e.length,o=new t(r);r>n;)o[n]=e[n++];return o}},function(t,e,n){"use strict";var r=n(8),o=n(15).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(8),o=n(15).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(8),o=n(15).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(t){o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(137);(0,n(8).exportTypedArrayStaticMethod)("from",n(187),r)},function(t,e,n){"use strict";var r=n(8),o=n(63).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(8),o=n(63).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(2),o=n(8),i=n(81),a=n(5)("iterator"),u=r.Uint8Array,c=i.values,s=i.keys,f=i.entries,l=o.aTypedArray,h=o.exportTypedArrayMethod,p=u&&u.prototype[a],y=!!p&&("values"==p.name||null==p.name),d=function(){return c.call(l(this))};h("entries",(function(){return f.call(l(this))})),h("keys",(function(){return s.call(l(this))})),h("values",d,!y),h(a,d,!y)},function(t,e,n){"use strict";var r=n(8),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].join;i("join",(function(t){return a.apply(o(this),arguments)}))},function(t,e,n){"use strict";var r=n(8),o=n(164),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(t){return o.apply(i(this),arguments)}))},function(t,e,n){"use strict";var r=n(8),o=n(15).map,i=n(96),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(t){return o(a(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(i(t))(e)}))}))},function(t,e,n){"use strict";var r=n(8),o=n(137),i=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var t=0,e=arguments.length,n=new(i(this))(e);e>t;)n[t]=arguments[t++];return n}),o)},function(t,e,n){"use strict";var r=n(8),o=n(82).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(t){return o(i(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(8),o=n(82).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(t){return o(i(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(8),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var t,e=o(this).length,n=a(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this}))},function(t,e,n){"use strict";var r=n(8),o=n(7),i=n(186),a=n(11),u=n(1),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("set",(function(t){c(this);var e=i(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=a(t),u=o(r.length),s=0;if(u+e>n)throw RangeError("Wrong length");for(;s<u;)this[e+s]=r[s++]}),u((function(){new Int8Array(1).set({})})))},function(t,e,n){"use strict";var r=n(8),o=n(96),i=n(1),a=r.aTypedArray,u=r.exportTypedArrayMethod,c=[].slice;u("slice",(function(t,e){for(var n=c.call(a(this),t,e),r=o(this),i=0,u=n.length,s=new r(u);u>i;)s[i]=n[i++];return s}),i((function(){new Int8Array(1).slice()})))},function(t,e,n){"use strict";var r=n(8),o=n(15).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(8),o=n(2),i=n(1),a=n(19),u=n(7),c=n(165),s=n(166),f=n(167),l=n(39),h=n(124),p=r.aTypedArray,y=r.exportTypedArrayMethod,d=o.Uint16Array,v=d&&d.prototype.sort,g=!!v&&!i((function(){var t=new d(2);t.sort(null),t.sort({})})),m=!!v&&!i((function(){if(l)return l<74;if(s)return s<67;if(f)return!0;if(h)return h<602;var t,e,n=new d(516),r=Array(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,r[t]=t-2*e+3;for(n.sort((function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==r[t])return!0}));y("sort",(function(t){if(void 0!==t&&a(t),m)return v.call(this,t);p(this);var e,n=u(this.length),r=Array(n);for(e=0;e<n;e++)r[e]=this[e];for(r=c(this,function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!=n?-1:e!=e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(t)),e=0;e<n;e++)this[e]=r[e];return this}),!m||g)},function(t,e,n){"use strict";var r=n(8),o=n(7),i=n(42),a=n(96),u=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(t,e){var n=u(this),r=n.length,c=i(t,r);return new(a(n))(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,o((void 0===e?r:i(e,r))-c))}))},function(t,e,n){"use strict";var r=n(2),o=n(8),i=n(1),a=r.Int8Array,u=o.aTypedArray,c=o.exportTypedArrayMethod,s=[].toLocaleString,f=[].slice,l=!!a&&i((function(){s.call(new a(1))}));c("toLocaleString",(function(){return s.apply(l?f.call(u(this)):u(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!i((function(){a.prototype.toLocaleString.call([1,2])})))},function(t,e,n){"use strict";var r=n(8).exportTypedArrayMethod,o=n(1),i=n(2).Uint8Array,a=i&&i.prototype||{},u=[].toString,c=[].join;o((function(){u.call({})}))&&(u=function(){return c.call(this)});var s=a.toString!=u;r("toString",u,s)},function(t,e,n){"use strict";var r=n(0),o=n(9),i=String.fromCharCode,a=/^[\da-f]{2}$/i,u=/^[\da-f]{4}$/i;r({global:!0},{unescape:function(t){for(var e,n,r=o(t),c="",s=r.length,f=0;f<s;){if("%"===(e=r.charAt(f++)))if("u"===r.charAt(f)){if(n=r.slice(f+1,f+5),u.test(n)){c+=i(parseInt(n,16)),f+=5;continue}}else if(n=r.slice(f,f+2),a.test(n)){c+=i(parseInt(n,16)),f+=2;continue}c+=e}return c}})},function(t,e,n){"use strict";var r,o=n(2),i=n(55),a=n(49),u=n(84),c=n(188),s=n(3),f=n(14).enforce,l=n(151),h=!o.ActiveXObject&&"ActiveXObject"in o,p=Object.isExtensible,y=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},d=t.exports=u("WeakMap",y,c);if(l&&h){r=c.getConstructor(y,"WeakMap",!0),a.enable();var v=d.prototype,g=v.delete,m=v.has,b=v.get,w=v.set;i(v,{delete:function(t){if(s(t)&&!p(t)){var e=f(this);return e.frozen||(e.frozen=new r),g.call(this,t)||e.frozen.delete(t)}return g.call(this,t)},has:function(t){if(s(t)&&!p(t)){var e=f(this);return e.frozen||(e.frozen=new r),m.call(this,t)||e.frozen.has(t)}return m.call(this,t)},get:function(t){if(s(t)&&!p(t)){var e=f(this);return e.frozen||(e.frozen=new r),m.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(s(t)&&!p(t)){var n=f(this);n.frozen||(n.frozen=new r),m.call(this,t)?w.call(this,t,e):n.frozen.set(t,e)}else w.call(this,t,e);return this}})}},function(t,e,n){"use strict";n(84)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(188))},function(t,e,n){var r=n(2),o=n(189),i=n(161),a=n(17);for(var u in o){var c=r[u],s=c&&c.prototype;if(s&&s.forEach!==i)try{a(s,"forEach",i)}catch(t){s.forEach=i}}},function(t,e,n){var r=n(2),o=n(189),i=n(81),a=n(17),u=n(5),c=u("iterator"),s=u("toStringTag"),f=i.values;for(var l in o){var h=r[l],p=h&&h.prototype;if(p){if(p[c]!==f)try{a(p,c,f)}catch(t){p[c]=f}if(p[s]||a(p,s,l),o[l])for(var y in i)if(p[y]!==i[y])try{a(p,y,i[y])}catch(t){p[y]=i[y]}}}},function(t,e,n){var r=n(0),o=n(2),i=n(130);r({global:!0,bind:!0,enumerable:!0,forced:!o.setImmediate||!o.clearImmediate},{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){var r=n(0),o=n(2),i=n(180),a=n(53),u=o.process;r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(t){var e=a&&u.domain;i(e?e.bind(t):t)}})},function(t,e,n){var r=n(0),o=n(2),i=n(40),a=[].slice,u=function(t){return function(e,n){var r=arguments.length>2,o=r?a.call(arguments,2):void 0;return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:u(o.setTimeout),setInterval:u(o.setInterval)})},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n(183);var o,i=n(0),a=n(6),u=n(190),c=n(2),s=n(116),f=n(18),l=n(46),h=n(12),p=n(175),y=n(162),d=n(92).codeAt,v=n(465),g=n(9),m=n(29),b=n(191),w=n(14),x=c.URL,_=b.URLSearchParams,k=b.getState,A=w.set,S=w.getterFor("URL"),O=Math.floor,E=Math.pow,P=/[A-Za-z]/,j=/[\d+-.A-Za-z]/,R=/\d/,T=/^0x/i,M=/^[0-7]+$/,I=/^\d+$/,C=/^[\dA-Fa-f]+$/,B=/[\0\t\n\r #%/:<>?@[\\\]^|]/,L=/[\0\t\n\r #/:<>?@[\\\]^|]/,F=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,N=/[\t\n\r]/g,D=function(t,e){var n,r,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(n=z(e.slice(1,-1))))return"Invalid host";t.host=n}else if(K(t)){if(e=v(e),B.test(e))return"Invalid host";if(null===(n=U(e)))return"Invalid host";t.host=n}else{if(L.test(e))return"Invalid host";for(n="",r=y(e),o=0;o<r.length;o++)n+=V(r[o],W);t.host=n}},U=function(t){var e,n,r,o,i,a,u,c=t.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(e=c.length)>4)return t;for(n=[],r=0;r<e;r++){if(""==(o=c[r]))return t;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=T.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?I:8==i?M:C).test(o))return t;a=parseInt(o,i)}n.push(a)}for(r=0;r<e;r++)if(a=n[r],r==e-1){if(a>=E(256,5-e))return null}else if(a>255)return null;for(u=n.pop(),r=0;r<n.length;r++)u+=n[r]*E(256,3-r);return u},z=function(t){var e,n,r,o,i,a,u,c=[0,0,0,0,0,0,0,0],s=0,f=null,l=0,h=function(){return t.charAt(l)};if(":"==h()){if(":"!=t.charAt(1))return;l+=2,f=++s}for(;h();){if(8==s)return;if(":"!=h()){for(e=n=0;n<4&&C.test(h());)e=16*e+parseInt(h(),16),l++,n++;if("."==h()){if(0==n)return;if(l-=n,s>6)return;for(r=0;h();){if(o=null,r>0){if(!("."==h()&&r<4))return;l++}if(!R.test(h()))return;for(;R.test(h());){if(i=parseInt(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}c[s]=256*c[s]+o,2!=++r&&4!=r||s++}if(4!=r)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;c[s++]=e}else{if(null!==f)return;l++,f=++s}}if(null!==f)for(a=s-f,s=7;0!=s&&a>0;)u=c[s],c[s--]=c[f+a-1],c[f+--a]=u;else if(8!=s)return;return c},Y=function(t){var e,n,o,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=O(t/256);return e.join(".")}if("object"==r(t)){for(e="",o=function(t){for(var e=null,n=1,r=null,o=0,i=0;i<8;i++)0!==t[i]?(o>n&&(e=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(e=r,n=o),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),o===n?(e+=n?":":"::",i=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},W={},G=p({},W,{" ":1,'"':1,"<":1,">":1,"`":1}),H=p({},G,{"#":1,"?":1,"{":1,"}":1}),q=p({},H,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),V=function(t,e){var n=d(t,0);return n>32&&n<127&&!h(e,t)?t:encodeURIComponent(t)},X={ftp:21,file:null,http:80,https:443,ws:80,wss:443},K=function(t){return h(X,t.scheme)},Q=function(t){return""!=t.username||""!=t.password},J=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},Z=function(t,e){var n;return 2==t.length&&P.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},$=function(t){var e;return t.length>1&&Z(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},tt=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&Z(e[0],!0)||e.pop()},et=function(t){return"."===t||"%2e"===t.toLowerCase()},nt={},rt={},ot={},it={},at={},ut={},ct={},st={},ft={},lt={},ht={},pt={},yt={},dt={},vt={},gt={},mt={},bt={},wt={},xt={},_t={},kt=function(t,e,n,r){var i,a,u,c,s,f=n||nt,l=0,p="",d=!1,v=!1,g=!1;for(n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(F,"")),e=e.replace(N,""),i=y(e);l<=i.length;){switch(a=i[l],f){case nt:if(!a||!P.test(a)){if(n)return"Invalid scheme";f=ot;continue}p+=a.toLowerCase(),f=rt;break;case rt:if(a&&(j.test(a)||"+"==a||"-"==a||"."==a))p+=a.toLowerCase();else{if(":"!=a){if(n)return"Invalid scheme";p="",f=ot,l=0;continue}if(n&&(K(t)!=h(X,p)||"file"==p&&(Q(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=p,n)return void(K(t)&&X[t.scheme]==t.port&&(t.port=null));p="","file"==t.scheme?f=dt:K(t)&&r&&r.scheme==t.scheme?f=it:K(t)?f=st:"/"==i[l+1]?(f=at,l++):(t.cannotBeABaseURL=!0,t.path.push(""),f=wt)}break;case ot:if(!r||r.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==a){t.scheme=r.scheme,t.path=r.path.slice(),t.query=r.query,t.fragment="",t.cannotBeABaseURL=!0,f=_t;break}f="file"==r.scheme?dt:ut;continue;case it:if("/"!=a||"/"!=i[l+1]){f=ut;continue}f=ft,l++;break;case at:if("/"==a){f=lt;break}f=bt;continue;case ut:if(t.scheme=r.scheme,a==o)t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.query=r.query;else if("/"==a||"\\"==a&&K(t))f=ct;else if("?"==a)t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.query="",f=xt;else{if("#"!=a){t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.path.pop(),f=bt;continue}t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.query=r.query,t.fragment="",f=_t}break;case ct:if(!K(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,f=bt;continue}f=lt}else f=ft;break;case st:if(f=ft,"/"!=a||"/"!=p.charAt(l+1))continue;l++;break;case ft:if("/"!=a&&"\\"!=a){f=lt;continue}break;case lt:if("@"==a){d&&(p="%40"+p),d=!0,u=y(p);for(var m=0;m<u.length;m++){var b=u[m];if(":"!=b||g){var w=V(b,q);g?t.password+=w:t.username+=w}else g=!0}p=""}else if(a==o||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)){if(d&&""==p)return"Invalid authority";l-=y(p).length+1,p="",f=ht}else p+=a;break;case ht:case pt:if(n&&"file"==t.scheme){f=gt;continue}if(":"!=a||v){if(a==o||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)){if(K(t)&&""==p)return"Invalid host";if(n&&""==p&&(Q(t)||null!==t.port))return;if(c=D(t,p))return c;if(p="",f=mt,n)return;continue}"["==a?v=!0:"]"==a&&(v=!1),p+=a}else{if(""==p)return"Invalid host";if(c=D(t,p))return c;if(p="",f=yt,n==pt)return}break;case yt:if(!R.test(a)){if(a==o||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)||n){if(""!=p){var x=parseInt(p,10);if(x>65535)return"Invalid port";t.port=K(t)&&x===X[t.scheme]?null:x,p=""}if(n)return;f=mt;continue}return"Invalid port"}p+=a;break;case dt:if(t.scheme="file","/"==a||"\\"==a)f=vt;else{if(!r||"file"!=r.scheme){f=bt;continue}if(a==o)t.host=r.host,t.path=r.path.slice(),t.query=r.query;else if("?"==a)t.host=r.host,t.path=r.path.slice(),t.query="",f=xt;else{if("#"!=a){$(i.slice(l).join(""))||(t.host=r.host,t.path=r.path.slice(),tt(t)),f=bt;continue}t.host=r.host,t.path=r.path.slice(),t.query=r.query,t.fragment="",f=_t}}break;case vt:if("/"==a||"\\"==a){f=gt;break}r&&"file"==r.scheme&&!$(i.slice(l).join(""))&&(Z(r.path[0],!0)?t.path.push(r.path[0]):t.host=r.host),f=bt;continue;case gt:if(a==o||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&Z(p))f=bt;else if(""==p){if(t.host="",n)return;f=mt}else{if(c=D(t,p))return c;if("localhost"==t.host&&(t.host=""),n)return;p="",f=mt}continue}p+=a;break;case mt:if(K(t)){if(f=bt,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=o&&(f=bt,"/"!=a))continue}else t.fragment="",f=_t;else t.query="",f=xt;break;case bt:if(a==o||"/"==a||"\\"==a&&K(t)||!n&&("?"==a||"#"==a)){if(".."===(s=(s=p).toLowerCase())||"%2e."===s||".%2e"===s||"%2e%2e"===s?(tt(t),"/"==a||"\\"==a&&K(t)||t.path.push("")):et(p)?"/"==a||"\\"==a&&K(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&Z(p)&&(t.host&&(t.host=""),p=p.charAt(0)+":"),t.path.push(p)),p="","file"==t.scheme&&(a==o||"?"==a||"#"==a))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==a?(t.query="",f=xt):"#"==a&&(t.fragment="",f=_t)}else p+=V(a,H);break;case wt:"?"==a?(t.query="",f=xt):"#"==a?(t.fragment="",f=_t):a!=o&&(t.path[0]+=V(a,W));break;case xt:n||"#"!=a?a!=o&&("'"==a&&K(t)?t.query+="%27":t.query+="#"==a?"%23":V(a,W)):(t.fragment="",f=_t);break;case _t:a!=o&&(t.fragment+=V(a,G))}l++}},At=function(t){var e,n,r=l(this,At,"URL"),o=arguments.length>1?arguments[1]:void 0,i=g(t),u=A(r,{type:"URL"});if(void 0!==o)if(o instanceof At)e=S(o);else if(n=kt(e={},g(o)))throw TypeError(n);if(n=kt(u,i,null,e))throw TypeError(n);var c=u.searchParams=new _,s=k(c);s.updateSearchParams(u.query),s.updateURL=function(){u.query=String(c)||null},a||(r.href=Ot.call(r),r.origin=Et.call(r),r.protocol=Pt.call(r),r.username=jt.call(r),r.password=Rt.call(r),r.host=Tt.call(r),r.hostname=Mt.call(r),r.port=It.call(r),r.pathname=Ct.call(r),r.search=Bt.call(r),r.searchParams=Lt.call(r),r.hash=Ft.call(r))},St=At.prototype,Ot=function(){var t=S(this),e=t.scheme,n=t.username,r=t.password,o=t.host,i=t.port,a=t.path,u=t.query,c=t.fragment,s=e+":";return null!==o?(s+="//",Q(t)&&(s+=n+(r?":"+r:"")+"@"),s+=Y(o),null!==i&&(s+=":"+i)):"file"==e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==u&&(s+="?"+u),null!==c&&(s+="#"+c),s},Et=function(){var t=S(this),e=t.scheme,n=t.port;if("blob"==e)try{return new At(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&K(t)?e+"://"+Y(t.host)+(null!==n?":"+n:""):"null"},Pt=function(){return S(this).scheme+":"},jt=function(){return S(this).username},Rt=function(){return S(this).password},Tt=function(){var t=S(this),e=t.host,n=t.port;return null===e?"":null===n?Y(e):Y(e)+":"+n},Mt=function(){var t=S(this).host;return null===t?"":Y(t)},It=function(){var t=S(this).port;return null===t?"":String(t)},Ct=function(){var t=S(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Bt=function(){var t=S(this).query;return t?"?"+t:""},Lt=function(){return S(this).searchParams},Ft=function(){var t=S(this).fragment;return t?"#"+t:""},Nt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(a&&s(St,{href:Nt(Ot,(function(t){var e=S(this),n=g(t),r=kt(e,n);if(r)throw TypeError(r);k(e.searchParams).updateSearchParams(e.query)})),origin:Nt(Et),protocol:Nt(Pt,(function(t){var e=S(this);kt(e,g(t)+":",nt)})),username:Nt(jt,(function(t){var e=S(this),n=y(g(t));if(!J(e)){e.username="";for(var r=0;r<n.length;r++)e.username+=V(n[r],q)}})),password:Nt(Rt,(function(t){var e=S(this),n=y(g(t));if(!J(e)){e.password="";for(var r=0;r<n.length;r++)e.password+=V(n[r],q)}})),host:Nt(Tt,(function(t){var e=S(this);e.cannotBeABaseURL||kt(e,g(t),ht)})),hostname:Nt(Mt,(function(t){var e=S(this);e.cannotBeABaseURL||kt(e,g(t),pt)})),port:Nt(It,(function(t){var e=S(this);J(e)||(""==(t=g(t))?e.port=null:kt(e,t,yt))})),pathname:Nt(Ct,(function(t){var e=S(this);e.cannotBeABaseURL||(e.path=[],kt(e,g(t),mt))})),search:Nt(Bt,(function(t){var e=S(this);""==(t=g(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",kt(e,t,xt)),k(e.searchParams).updateSearchParams(e.query)})),searchParams:Nt(Lt),hash:Nt(Ft,(function(t){var e=S(this);""!=(t=g(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",kt(e,t,_t)):e.fragment=null}))}),f(St,"toJSON",(function(){return Ot.call(this)}),{enumerable:!0}),f(St,"toString",(function(){return Ot.call(this)}),{enumerable:!0}),x){var Dt=x.createObjectURL,Ut=x.revokeObjectURL;Dt&&f(At,"createObjectURL",(function(t){return Dt.apply(x,arguments)})),Ut&&f(At,"revokeObjectURL",(function(t){return Ut.apply(x,arguments)}))}m(At,"URL"),i({global:!0,forced:!u,sham:!a},{URL:At})},function(t,e,n){"use strict";var r=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",a=Math.floor,u=String.fromCharCode,c=function(t){return t+22+75*(t<26)},s=function(t,e,n){var r=0;for(t=n?a(t/700):t>>1,t+=a(t/e);t>455;r+=36)t=a(t/35);return a(r+36*t/(t+38))},f=function(t){var e,n,r=[],o=(t=function(t){for(var e=[],n=0,r=t.length;n<r;){var o=t.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=t.charCodeAt(n++);56320==(64512&i)?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),n--)}else e.push(o)}return e}(t)).length,f=128,l=0,h=72;for(e=0;e<t.length;e++)(n=t[e])<128&&r.push(u(n));var p=r.length,y=p;for(p&&r.push("-");y<o;){var d=2147483647;for(e=0;e<t.length;e++)(n=t[e])>=f&&n<d&&(d=n);var v=y+1;if(d-f>a((2147483647-l)/v))throw RangeError(i);for(l+=(d-f)*v,f=d,e=0;e<t.length;e++){if((n=t[e])<f&&++l>2147483647)throw RangeError(i);if(n==f){for(var g=l,m=36;;m+=36){var b=m<=h?1:m>=h+26?26:m-h;if(g<b)break;var w=g-b,x=36-b;r.push(u(c(b+w%x))),g=a(w/x)}r.push(u(c(g))),h=s(l,v,y==p),l=0,++y}}++l,++f}return r.join("")};t.exports=function(t){var e,n,i=[],a=t.toLowerCase().replace(o,".").split(".");for(e=0;e<a.length;e++)n=a[e],i.push(r.test(n)?"xn--"+f(n):n);return i.join(".")}},function(t,e,n){var r=n(4),o=n(68);t.exports=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}},function(t,e,n){"use strict";n(0)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(t,e,n){(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=function(t){"use strict";var n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new A(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=x(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l={};function h(){}function p(){}function y(){}var d={};c(d,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==n&&r.call(g,i)&&(d=g);var m=y.prototype=h.prototype=Object.create(d);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,n){var o;this._invoke=function(i,a){function u(){return new n((function(o,u){!function o(i,a,u,c){var s=f(t[i],t,a);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"===e(h)&&r.call(h,"__await")?n.resolve(h.__await).then((function(t){o("next",t,u,c)}),(function(t){o("throw",t,u,c)})):n.resolve(h).then((function(t){l.value=t,u(l)}),(function(t){return o("throw",t,u,c)}))}c(s.arg)}(i,a,o,u)}))}return o=o?o.then(u,u):u()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=y,c(m,"constructor",y),c(y,"constructor",p),p.displayName=c(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),c(m,u,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=S,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=n}catch(t){"object"===("undefined"==typeof globalThis?"undefined":e(globalThis))?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}).call(this,n(97)(t))},function(t,e,n){var r=n(470),o=n(37);t.exports=function t(e,n,i,a,u){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,a,t,u))}},function(t,e,n){var r=n(192),o=n(197),i=n(504),a=n(507),u=n(75),c=n(59),s=n(103),f=n(140),l="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,p,y,d){var v=c(t),g=c(e),m=v?"[object Array]":u(t),b=g?"[object Array]":u(e),w=(m="[object Arguments]"==m?l:m)==l,x=(b="[object Arguments]"==b?l:b)==l,_=m==b;if(_&&s(t)){if(!s(e))return!1;v=!0,w=!1}if(_&&!w)return d||(d=new r),v||f(t)?o(t,e,n,p,y,d):i(t,e,m,n,p,y,d);if(!(1&n)){var k=w&&h.call(t,"__wrapped__"),A=x&&h.call(e,"__wrapped__");if(k||A){var S=k?t.value():t,O=A?e.value():e;return d||(d=new r),y(S,O,n,p,d)}}return!!_&&(d||(d=new r),a(t,e,n,p,y,d))}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(99),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(99);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(99);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(99);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(98);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(98),o=n(138),i=n(196);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(193),o=n(484),i=n(36),a=n(195),u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,f=c.toString,l=s.hasOwnProperty,h=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?h:u).test(a(t))}},function(t,e,n){var r=n(74),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[u]=n:delete t[u]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r,o=n(485),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},function(t,e,n){var r=n(30)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(488),o=n(98),i=n(138);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){var r=n(489),o=n(490),i=n(491),a=n(492),u=n(493);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(100);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(100),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(100),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(100);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var r=n(101);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=n(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(101);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(101);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(101);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e,n){var r=n(196),o=n(500),i=n(501);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(74),o=n(198),i=n(73),a=n(197),u=n(505),c=n(506),s=r?r.prototype:void 0,f=s?s.valueOf:void 0;t.exports=function(t,e,n,r,s,l,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!l(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=u;case"[object Set]":var y=1&r;if(p||(p=c),t.size!=e.size&&!y)return!1;var d=h.get(t);if(d)return d==e;r|=2,h.set(t,e);var v=a(p(t),p(e),r,s,l,h);return h.delete(t),v;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(199),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,a,u){var c=1&n,s=r(t),f=s.length;if(f!=r(e).length&&!c)return!1;for(var l=f;l--;){var h=s[l];if(!(c?h in e:o.call(e,h)))return!1}var p=u.get(t),y=u.get(e);if(p&&y)return p==e&&y==t;var d=!0;u.set(t,e),u.set(e,t);for(var v=c;++l<f;){var g=t[h=s[l]],m=e[h];if(i)var b=c?i(m,g,h,e,t,u):i(g,m,h,t,e,u);if(!(void 0===b?g===m||a(g,m,n,i,u):b)){d=!1;break}v||(v="constructor"==h)}if(d&&!v){var w=t.constructor,x=e.constructor;w==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(d=!1)}return u.delete(t),u.delete(e),d}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(51),o=n(37);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(51),o=n(206),i=n(37),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},function(t,e,n){var r=n(208)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(50)(n(30),"DataView");t.exports=r},function(t,e,n){var r=n(50)(n(30),"Promise");t.exports=r},function(t,e,n){var r=n(50)(n(30),"Set");t.exports=r},function(t,e,n){var r=n(50)(n(30),"WeakMap");t.exports=r},function(t,e,n){var r=n(76),o=n(519),i=n(106),a=o((function(t,e,n,o){r(e,i(e),t,o)}));t.exports=a},function(t,e,n){var r=n(212),o=n(215);t.exports=function(t){return r((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(n[0],n[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var c=n[r];c&&t(e,c,r,a)}return e}))}},function(t,e,n){var r=n(214),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=i[a];return s[e]=n(c),r(t,this,s)}}},function(t,e,n){var r=n(522),o=n(524)(r);t.exports=o},function(t,e,n){var r=n(523),o=n(211),i=n(213),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(36),o=n(104),i=n(526),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var u in t)("constructor"!=u||!e&&a.call(t,u))&&n.push(u);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(214),o=n(212),i=n(216),a=o((function(t,e){try{return r(t,void 0,e)}catch(t){return i(t)?t:new Error(t)}}));t.exports=a},function(t,e,n){var r=n(51),o=n(143),i=n(37),a=Function.prototype,u=Object.prototype,c=a.toString,s=u.hasOwnProperty,f=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}},function(t,e,n){var r=n(217);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},function(t,e,n){var r=n(73),o=Object.prototype,i=o.hasOwnProperty;t.exports=function(t,e,n,a){return void 0===t||r(t,o[n])&&!i.call(a,n)?e:t}},function(t,e){var n={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};t.exports=function(t){return"\\"+n[t]}},function(t,e,n){var r=n(533),o={escape:n(537),evaluate:n(538),interpolate:n(218),variable:"",imports:{_:{escape:r}}};t.exports=o},function(t,e,n){var r=n(534),o=n(219),i=/[&<>"']/g,a=RegExp(i.source);t.exports=function(t){return(t=o(t))&&a.test(t)?t.replace(i,r):t}},function(t,e,n){var r=n(535)({"&":"&","<":"<",">":">",'"':""","'":"'"});t.exports=r},function(t,e){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},function(t,e,n){var r=n(74),o=n(217),i=n(59),a=n(220),u=r?r.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e){t.exports=/<%-([\s\S]+?)%>/g},function(t,e){t.exports=/<%([\s\S]+?)%>/g},function(t,e,n){var r=n(192),o=n(540),i=n(209),a=n(541),u=n(542),c=n(543),s=n(544),f=n(545),l=n(546),h=n(199),p=n(547),y=n(75),d=n(548),v=n(549),g=n(554),m=n(59),b=n(103),w=n(556),x=n(36),_=n(558),k=n(102),A=n(106),S={};S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S["[object Function]"]=S["[object WeakMap]"]=!1,t.exports=function t(e,n,O,E,P,j){var R,T=1&n,M=2&n,I=4&n;if(O&&(R=P?O(e,E,P,j):O(e)),void 0!==R)return R;if(!x(e))return e;var C=m(e);if(C){if(R=d(e),!T)return s(e,R)}else{var B=y(e),L="[object Function]"==B||"[object GeneratorFunction]"==B;if(b(e))return c(e,T);if("[object Object]"==B||"[object Arguments]"==B||L&&!P){if(R=M||L?{}:g(e),!T)return M?l(e,u(R,e)):f(e,a(R,e))}else{if(!S[B])return P?e:{};R=v(e,B,T)}}j||(j=new r);var F=j.get(e);if(F)return F;j.set(e,R),_(e)?e.forEach((function(r){R.add(t(r,n,O,r,e,j))})):w(e)&&e.forEach((function(r,o){R.set(o,t(r,n,O,o,e,j))}));var N=C?void 0:(I?M?p:h:M?A:k)(e);return o(N||e,(function(r,o){N&&(r=e[o=r]),i(R,o,t(r,n,O,o,e,j))})),R}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(76),o=n(102);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(76),o=n(106);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(30),i="object"==r(e)&&e&&!e.nodeType&&e,a=i&&"object"==r(t)&&t&&!t.nodeType&&t,u=a&&a.exports===i?o.Buffer:void 0,c=u?u.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=c?c(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(97)(t))},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){var r=n(76),o=n(139);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e,n){var r=n(76),o=n(222);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e,n){var r=n(200),o=n(222),i=n(106);t.exports=function(t){return r(t,i,o)}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(144),o=n(550),i=n(551),a=n(552),u=n(553);t.exports=function(t,e,n){var c=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return o(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return u(t,n);case"[object Map]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return i(t);case"[object Set]":return new c;case"[object Symbol]":return a(t)}}},function(t,e,n){var r=n(144);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(74),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,e,n){var r=n(144);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(555),o=n(143),i=n(104);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},function(t,e,n){var r=n(36),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t,e,n){var r=n(557),o=n(141),i=n(142),a=i&&i.isMap,u=a?o(a):r;t.exports=u},function(t,e,n){var r=n(75),o=n(37);t.exports=function(t){return o(t)&&"[object Map]"==r(t)}},function(t,e,n){var r=n(559),o=n(141),i=n(142),a=i&&i.isSet,u=a?o(a):r;t.exports=u},function(t,e,n){var r=n(75),o=n(37);t.exports=function(t){return o(t)&&"[object Set]"==r(t)}},function(t,e,n){var r=n(30);t.exports=function(){return r.Date.now()}},function(t,e,n){var r=n(562),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},function(t,e){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},function(t,e,n){var r=n(564);t.exports=function(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=r(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}},function(t,e,n){var r=n(565);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(223);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,n){"use strict";n.r(e),n.d(e,"polyfill",(function(){return c})),n.d(e,"create",(function(){return Sc})),n.d(e,"Model",(function(){return ch})),n.d(e,"Layer",(function(){return mr})),n.d(e,"EventMap",(function(){return fu})),n.d(e,"NOTHING",(function(){return Jt})),n.d(e,"MODE_VIEW",(function(){return Zt})),n.d(e,"MODE_EDIT",(function(){return $t})),n.d(e,"MODE_SHIFT",(function(){return te})),n.d(e,"MAX_UNDO_SIZE",(function(){return ee})),n.d(e,"DPPX",(function(){return ne})),n.d(e,"GESTURES",(function(){return re})),n.d(e,"KEYEVENTS",(function(){return oe})),n.d(e,"DEFAULT",(function(){return ie})),n.d(e,"Component",(function(){return mn})),n.d(e,"ContainerAbstract",(function(){return fr})),n.d(e,"Container",(function(){return hi})),n.d(e,"RootContainer",(function(){return _u})),n.d(e,"Shape",(function(){return Er})),n.d(e,"Line",(function(){return Uc})),n.d(e,"Ellipse",(function(){return Xc})),n.d(e,"Rect",(function(){return So})),n.d(e,"Polygon",(function(){return rs})),n.d(e,"Polyline",(function(){return hs})),n.d(e,"Ruler",(function(){return po})),n.d(e,"ImageView",(function(){return _s})),n.d(e,"GifView",(function(){return Ys})),n.d(e,"AudioPlayer",(function(){return Zs})),n.d(e,"Text",(function(){return uf})),n.d(e,"Group",(function(){return Si})),n.d(e,"LocalRef",(function(){return gf})),n.d(e,"GlobalRef",(function(){return Lf})),n.d(e,"InfoWindow",(function(){return Nr})),n.d(e,"HTMLOverlayElement",(function(){return js})),n.d(e,"HTMLOverlayContainer",(function(){return Sf})),n.d(e,"Path",(function(){return Gf})),n.d(e,"Triangle",(function(){return Zf})),n.d(e,"Donut",(function(){return cl})),n.d(e,"Star",(function(){return ml})),n.d(e,"Variable",(function(){return El})),n.d(e,"RectPath",(function(){return Hn})),n.d(e,"ValueHolder",(function(){return Ll})),n.d(e,"DataSource",(function(){return Gl})),n.d(e,"MoveHandle",(function(){return er})),n.d(e,"Layout",(function(){return _n})),n.d(e,"AbsoluteLayout",(function(){return An})),n.d(e,"CardLayout",(function(){return En})),n.d(e,"LinearHorizontalLayout",(function(){return Rn})),n.d(e,"LinearVerticalLayout",(function(){return In})),n.d(e,"TableLayout",(function(){return Bn})),n.d(e,"HTMLAbsoluteLayout",(function(){return Fn})),n.d(e,"ReferenceMap",(function(){return Xl})),n.d(e,"ScriptLoader",(function(){return nh})),n.d(e,"error",(function(){return pe})),n.d(e,"warn",(function(){return ye})),n.d(e,"debug",(function(){return de})),n.d(e,"Scene",(function(){return Ac})),n.d(e,"version",(function(){return rh})),n.d(e,"FPS",(function(){return uh})),n.d(e,"license",(function(){return sh}));var r={};n.r(r),n.d(r,"insertAt",(function(){return T})),n.d(r,"append",(function(){return M})),n.d(r,"prepend",(function(){return I})),n.d(r,"remove",(function(){return C})),n.d(r,"getAt",(function(){return B})),n.d(r,"forEach",(function(){return L})),n.d(r,"indexOf",(function(){return F})),n.d(r,"size",(function(){return N})),n.d(r,"clear",(function(){return D})),n.d(r,"moveForward",(function(){return U})),n.d(r,"moveBackward",(function(){return z})),n.d(r,"moveToHead",(function(){return Y})),n.d(r,"moveToTail",(function(){return W}));var o={};n.r(o),n.d(o,"push",(function(){return G})),n.d(o,"pop",(function(){return H}));var i={};n.r(i),n.d(i,"intercept",(function(){return ve})),n.d(i,"reset",(function(){return ge})),n.d(i,"clear",(function(){return me}));var a={};n.r(a),n.d(a,"hide",(function(){return Gr})),n.d(a,"show",(function(){return Hr}));var u={};n.r(u),n.d(u,"compile",(function(){return ra})),n.d(u,"duplicate",(function(){return za})),n.d(u,"select",(function(){return g})),n.d(u,"match",(function(){return d}));n(229),n(468);var c="done";"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var o in r)r.hasOwnProperty(o)&&(e[o]=r[o])}return e}),"function"!=typeof Object.values&&(Object.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e}),"function"!=typeof Object.keys&&(Object.values=function(t){var e=[];for(var n in t)e.push(n);return e}),"undefined"!=typeof CanvasRenderingContext2D&&null==CanvasRenderingContext2D.prototype.ellipse&&(CanvasRenderingContext2D.prototype.ellipse=function(t,e,n,r,o,i,a,u){this.save(),this.translate(t,e),this.rotate(o),this.translate(-n,-r),this.scale(n,r),this.arc(1,1,1,i,a,u),this.restore()}),function(){for(var t=0,e=["ms","moz","webkit","o"],n=0;n<e.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[e[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[n]+"CancelAnimationFrame"]||window[e[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(console.warn("requestAnimationFrame not supported"),window.requestAnimationFrame=function(e,n){var r=performance.now(),o=Math.max(0,33-(r-t)),i=window.setTimeout((function(){e(r+o)}),o);return t=r+o,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}(),String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t});var s=n(146),f=n.n(s),l=n(227),h=n.n(l);function p(t,e,n,r){var o=e.get("class");return!!o&&(o.split(" ")||[]).indexOf(t.substr(1))>=0}function y(t,e,n,r){return t==e.get("type")}function d(t,e,n,r){if("(all)"==t)return!0;switch(t.charAt(0)){case"#":return function(t,e,n,r){return t.substr(1)==e.get("id")}(t,e);case".":return p(t,e);case"(":return function(t,e,n,r){switch(t){case"(all)":return!0;case"(self)":return r===e;case"(root)":return!r.parent&&r===e;case"(descendant)":return r!==e;case"(child)":return r===e.parent;default:return!1}}(t,e,0,r);default:return y(t,e)}}function v(t,e,n,r){switch(t){case"(all)":return!0;case"(parent)":return n&&n.parent===e;case"(child)":case"(children)":return n&&n===e.parent;case"(sibling)":case"(siblings)":return n&&n.parent===e.parent&&n!==e;default:return!1}}function g(t,e,n){if("(root)"==t)return[e];if("(self)"==t)return n?[n]:[];var r;switch(t.charAt(0)){case"#":var o=e.root.findById(t.substr(1));return o?[o]:[];case".":r=p;break;case"(":r=v;break;default:r=y}return function t(e,n,r,o,i,a){return e(n,r,o,i)&&a.push(r),r.components&&r.components.forEach((function(r){t(e,n,r,o,i,a)})),a}(r,t,e,n,e,[])}var m=n(221),b=n.n(m),w=n(145),x=n.n(w),_=n(224),k=n.n(_),A=n(225),S=n.n(A),O=n(226),E=n.n(O);function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var j=0;function R(t){for(;t&&"object"===P(t);){var e=t;for(var n in t){t=t[n];break}if(t===e){t=void 0;break}}return t}function T(t,e){return this.__collection__?(-1==(t=this.__collection__.indexOf(e))&&this.__collection__.splice(t,0,e),this):this}function M(t){return this.__collection__||(this.__collection__=[]),-1==this.__collection__.indexOf(t)&&this.__collection__.push(t),this}function I(t){return this.__collection__||(this.__collection__=[]),-1==this.__collection__.indexOf(t)&&this.__collection__.unshift(t),this}function C(t){if(!this.__collection__)return this;var e=this.__collection__.indexOf(t);return e>=0&&this.__collection__.splice(e,1),this}function B(t){if(this.__collection__)return this.__collection__[t]}function L(t,e){this.__collection__&&this.__collection__.forEach(t,e)}function F(t){if(this.__collection__)return this.__collection__.indexOf(t)}function N(){return this.__collection__?this.__collection__.length:0}function D(){this.__collection__=[]}function U(t){var e=this.indexOf(t);-1!=e&&0!=e&&(this.__collection__[e]=this.__collection__[e-1],this.__collection__[e-1]=t)}function z(t){var e=this.indexOf(t);-1!=e&&e!=this.size()-1&&(this.__collection__[e]=this.__collection__[e+1],this.__collection__[e+1]=t)}function Y(t){var e=this.indexOf(t);if(-1!=e&&0!=e){var n=this.__collection__.splice(0,e),r=this.__collection__.splice(1);this.__collection__=this.__collection__.concat(n,r)}}function W(t){var e=this.indexOf(t);if(-1!=e&&e!=this.size()-1){var n=this.__collection__.splice(0,e),r=this.__collection__.splice(1);this.__collection__=n.concat(r,this.__collection__)}}function G(t){throw new Error("Not Implemented Yet")}function H(t){throw new Error("Not Implemented Yet")}function q(){}function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}q.prototype=r;var X=/\s+/;function K(t,e,n,r){if(!n)return!0;if("object"==V(n)){for(var o in n){var i=n[o];t[e].apply(t,[o,i])}return!1}return!X.test(n)||(n.split(X).forEach((function(n){return t[e].apply(t,[n].concat(r))})),!1)}var Q=["on","off","once","delegate_on","delegate_off","trigger","listenTo"],J={withEvent:function(){var t=this;Q.forEach((function(e){return t[e]=J[e]}))},on:function(t,e,n){return K(this,"on",t,[e,n])&&e?(this._listeners||(this._listeners={}),(this._listeners[t]||(this._listeners[t]=[])).push({callback:e,context:n,ctx:n||this}),this):this},once:function(t,e,n){if(!K(this,"once",t,[e,n])||!e)return this;var r=this,o=S.a((function(){r.off(t,o),e.apply(r,arguments)}));o._callback=e,this.on(t,o,n)},off:function(t,e,n){if(!this._listeners||!K(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return this._listeners=void 0,this;var r;r=t?[t]:Object.keys(this._listeners);for(var o=0;o<r.length;o++){var i=r[o],a=this._listeners[i];if(a){var u=[];if(this._listeners[i]=u,e||n)for(var c=0;c<a.length;c++){var s=a[c];(e&&e!==s.callback&&e!==s.callback._callback||n&&n!==s.context)&&u.push(s)}u.length||delete this._listeners[i]}}return this},delegate_on:function(t){return this._delegators||(this._delegators=new q),this._delegators.append(t),this},delegate_off:function(t){return this._delegators?(this._delegators.remove(t),this):this},delegate:function(){if(this._delegators&&this._delegators.size()>0&&$(this._delegators,arguments),!this._listeners)return this;var t=arguments.length-1,e=arguments[t];arguments[t]={origin:e.origin,name:e.name,deliverer:this};var n=this._listeners[e.name],r=this._listeners["(all)"];return n&&Z(n,arguments),r&&Z(r,arguments),this},trigger:function(t){var e=[].slice.call(arguments,1);if(e.push({origin:this,name:t,deliverer:this}),this._delegators&&this._delegators.size()>0&&$(this._delegators,e),!this._listeners)return this;if(!K(this,"trigger",t,e))return this;var n=this._listeners[t],r=this._listeners["(all)"];return n&&Z(n,e),r&&Z(r,e),this},stopListening:function(t,e,n){var r=this._listeningTo;if(!r)return this;var o=!e&&!n;for(var i in n||"object"!=V(e)||(n=this),t&&((r={})[t._listenId]=t),r){var a=r[i];a.off(e,n,this),(o||E.a(a._events))&&delete this._listeningTo[i]}return this}};function Z(t,e){t.forEach((function(t){return t.callback.apply(t.ctx,e)}))}function $(t,e){t.forEach((function(t){return J.delegate.apply(t,e)}))}var tt={listenTo:"on",listenToOnce:"once"};for(var et in tt){var nt=tt[et];J[et]=function(t,e,n){this._listeningTo||(this._listeningTo={});var r=this._listeningTo;return t._listenId||(t._listenId="".concat("l"||"").concat(++j)),r[t._listenId]=t,n||"object"!=V(e)||(n=this),t[nt](e,n,this),this}}var rt=J;function ot(t,e){if(e instanceof Array)e.forEach((function(e){return ot(t,e)}));else{if(t.mixedIn=t.hasOwnProperty("mixedIn")?t.mixedIn:[],t.mixingIn=t.hasOwnProperty("mixingIn")?t.mixingIn:[],t.mixedIn.indexOf(e)>=0)return t;if(t.mixingIn.indexOf(e)>=0)throw new Error("found cyclic dependencies between ".concat(t.mixingIn));t.mixingIn.push(e),e.call(t),t.mixingIn.pop(),t.mixedIn.push(e)}return t}var it={linear:function(t){return t},quad:function(t){return Math.pow(t,2)},circ:function(t){return 1-Math.sin(Math.acos(t))},back:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{x:1.5};return Math.pow(t,2)*((e.x+1)*t-e.x)},bounce:function(t){for(var e=0,n=1;;e+=n,n/=2)if(t>=(7-4*e)/11)return-Math.pow((11-6*e-11*t)/4,2)+Math.pow(n,2)},elastic:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{x:1.5};return Math.pow(2,10*(t-1))*Math.cos(20*Math.PI*e.x/3*t)}};function at(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ut=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.client=e,this.config=n,this._started=!1;var r=this.config,o=r.delta,i=void 0===o?"linear":o,a=r.options,u=r.ease;"string"==typeof i&&(i=it[i]),this.delta="out"==u?function(t,e){return function(n){return 1-t(1-n,e)}}(i,a):"inout"==u?function(t,e){return function(n){return n<.5?t(2*n,e)/2:(2-t(2*(1-n),e))/2}}(i,a):i,this.init()}var e,n,r;return e=t,(n=[{key:"dispose",value:function(){this.stop(),delete this.client}},{key:"init",value:function(){}},{key:"start",value:function(){var t=this;if(!this._started){var e=this.config,n=e.duration,r=void 0===n?2e3:n,o=e.delay,i=void 0===o?0:o,a=e.repeat,u=void 0!==a&&a;this._started=!0;var c=0,s=r+i;this._raf=requestAnimationFrame((function e(){if(t._started){0==c&&(c=performance.now(),t.client.touch());var n=performance.now()-c,o=Math.max(n%s-i,0)/r;t.step(t.delta(o)),t.client&&t.client.invalidate(),!(n>=s)||u&&t._started||(t.step(1),t.stop(),c=0),t._started&&(t._raf=requestAnimationFrame(e))}}))}}},{key:"stop",value:function(){this._raf&&cancelAnimationFrame(this._raf),this._raf=null,this._started=!1}},{key:"started",get:function(){return this._started},set:function(t){this.started!=!!t&&(t?this.start():this.stop())}}])&&at(e.prototype,n),r&&at(e,r),t}();function ct(t){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function st(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lt(t,e){return(lt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ht(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=yt(t);if(e){var o=yt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pt(this,n)}}function pt(t,e){return!e||"object"!==ct(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function yt(t){return(yt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function dt(t){return(dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mt(t,e){return(mt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=xt(t);if(e){var o=xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wt(this,n)}}function wt(t,e){return!e||"object"!==dt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function xt(t){return(xt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _t(t){return(_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function At(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function St(t,e){return(St=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ot(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Pt(t);if(e){var o=Pt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Et(this,n)}}function Et(t,e){return!e||"object"!==_t(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Pt(t){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function jt(t){return(jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Rt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mt(t,e){return(Mt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function It(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Bt(t);if(e){var o=Bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ct(this,n)}}function Ct(t,e){return!e||"object"!==jt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Bt(t){return(Bt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Lt(t){return(Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Dt(t,e){return(Dt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ut(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Yt(t);if(e){var o=Yt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zt(this,n)}}function zt(t,e){return!e||"object"!==Lt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Yt(t){return(Yt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Wt(t){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ht(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qt(t,e){return(qt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Vt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Kt(t);if(e){var o=Kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xt(this,n)}}function Xt(t,e){return!e||"object"!==Wt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Kt(t){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Qt={rotation:function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&<(t,e)}(i,t);var e,n,r,o=ht(i);function i(){return st(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"step",value:function(t){var e=this.config.theta,n=void 0===e?6.28:e;this.client.delta("theta",t*n)}}])&&ft(e.prototype,n),r&&ft(e,r),i}(ut),vibration:function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&mt(t,e)}(i,t);var e,n,r,o=bt(i);function i(){return vt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"step",value:function(t){var e=this.config.theta,n=void 0===e?.2617993877991494:e,r=4*n,o=t*r;t<1/4?o*=-1:t<3/4?o-=2*n:o=r-o,this.client.delta("theta",o)}}])&>(e.prototype,n),r&>(e,r),i}(ut),heartbeat:function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&St(t,e)}(i,t);var e,n,r,o=Ot(i);function i(){return kt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"step",value:function(t){var e,n=this.config.scale,r=2*((void 0===n?1.3:n)-1);e=t<.5?1+r*t:1+(1-t)*r,this.client.delta("sx",e),this.client.delta("sy",e)}}])&&At(e.prototype,n),r&&At(e,r),i}(ut),moving:function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mt(t,e)}(i,t);var e,n,r,o=It(i);function i(){return Rt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"step",value:function(t){var e=this.config,n=e.x,r=void 0===n?0:n,o=e.y,i=void 0===o?0:o;this.client.delta("tx",t*r),this.client.delta("ty",t*i)}}])&&Tt(e.prototype,n),r&&Tt(e,r),i}(ut),outline:function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Dt(t,e)}(i,t);var e,n,r,o=Ut(i);function i(){return Ft(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"step",value:function(t){var e=this.config.rideOn,n=this.client;if(e&&n&&n.root){var r=n.center,o=n.root.findById(e);if(o){var i=o.outline(t);r=n.transcoordS2T(r.x,r.y),o&&(n.delta("tx",i.x-r.x),n.delta("ty",i.y-r.y))}}}}])&&Nt(e.prototype,n),r&&Nt(e,r),i}(ut),fade:function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qt(t,e)}(i,t);var e,n,r,o=Vt(i);function i(){return Gt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"step",value:function(t){var e,n=this.config,r=n.startAlpha,o=void 0===r?1:r,i=n.endAlpha,a=void 0===i?0:i,u=Math.max(Math.min(o,a,1),0),c=2*(Math.min(Math.max(o,a,1),1)-u);e=t<.5?c*t:(1-t)*c,this.client.delta("fade",e)}}])&&Ht(e.prototype,n),r&&Ht(e,r),i}(ut)};var Jt={},Zt=0,$t=1,te=2,ee=30,ne="undefined"==typeof window?1:window.devicePixelRatio||(window.matchMedia&&window.matchMedia("(min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 1.5),(-moz-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5)").matches?2:1)||1,re=["mousemove","mouseup","mousedown","mouseout","wheel","click","touchstart","touchmove","touchend","dblclick"],oe=["keydown","keyup"],ie={ALPHA:1,FONT_SIZE:15,FONT_FAMILY:"serif",FONT_COLOR:"black",TEXT_ALIGN:"center",TEXT_BASELINE:"middle",TEXT_WRAP:!1,BOLD:!1,ITALIC:!1,STROKE_STYLE:"#999",LINE_DASH:"solid"},ae={x:1,y:1};function ue(t,e,n){var r=e.left,o=void 0===r?0:r,i=e.top,a=void 0===i?0:i,u=e.blurSize,c=void 0===u?0:u,s=e.color,f=void 0===s?"transparent":s,l=n.rootModel.get("scale")||ae;t.shadowOffsetX=o*l.x*ne,t.shadowOffsetY=a*l.y*ne,t.shadowBlur=c*l.x*ne,t.shadowColor=f}var ce={gradation:function(t,e,n){n.type;var r=n.subType,o=n.from,i=n.to,a=n.colors;switch(r){case"linear":var u=e.createLinearGradient(o.x,o.y,i.x,i.y);break;case"radial":u=e.createRadialGradient(o.x,o.y,o.r,i.x,i.y,i.r);break;default:u=e.createLinearGradient(o.x,o.y,i.x,i.y)}a&&(a.forEach((function(t){u.addColorStop(t.endPoint,t.color)})),e.fillStyle=u,e.fill())},shadow:ue};"undefined"==typeof window||window;var se,fe="[ERROR]",le="[WARN]",he="[DEBUG]",pe=function(){for(var t,e=[],n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];r.forEach((function(t){return t&&t.stack&&e.push(t.stack)})),(t=console).error.apply(t,[fe].concat(r,[e.join(" ")]))},ye=function(){for(var t,e=[],n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];r.forEach((function(t){return t&&t.stack&&e.push(t.stack)})),(t=console).warn.apply(t,[le].concat(r,[e.join(" ")]))},de=function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=console).log.apply(t,[he].concat(n))};function ve(t,e,n){var r=t.__lookupGetter__(e);r?n?t.__defineGetter__(e,(function(){return void 0===this.__cache__[e]&&(this.__cache__[e]=r.call(this)),b.a(this.__cache__[e])})):t.__defineGetter__(e,(function(){return void 0===this.__cache__[e]&&(this.__cache__[e]=r.call(this)),this.__cache__[e]})):pe("".concat(e," is not defined in ").concat(t.constructor.name))}function ge(t){t.__cache__={}}function me(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];0==n.length?t.__cache__={}:n.forEach((function(e){return delete t.__cache__[e]}))}function be(t){var e=t.duration,n=void 0===e?1e3:e,r=(t.delay,t.step),o=t.delta,i=t.ease,a=t.options,u=t.repeat,c=void 0!==u&&u;"string"==typeof o&&(o=it[o]),"out"==i?o=function(t,e){return function(n){return 1-t(1-n,e)}}(o,a):"inout"==i&&(o=function(t,e){return function(n){return n<.5?t(2*n,e)/2:(2-t(2*(1-n),e))/2}}(o,a));var s=!1;return{start:function(){var t=this;if(s)return this;s=!0;var e=0;return requestAnimationFrame((function i(){if(s){0==e&&(e=performance.now());var u=(performance.now()-e)/n,f=c?u%1:Math.min(u,1);r(o(f,a)),!(u>=1)||c&&s||(t.stop(),e=0),s&&requestAnimationFrame(i)}})),this},stop:function(){return s=!1,this}}}function we(t){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xe(t,e,n,r,o){var i=r.alpha,a=void 0===i?1:i,u=o.fillStyle;if(t.globalAlpha*=a,u)if("string"==typeof u)t.fillStyle=u,t.fill();else if("object"==we(u))if("gradient"==u.type){t.translate(n.x,n.y);var c,s=e.width,f=e.height;if("linear"==u.gradientType){var l=3.141592653589793,h=u.rotation;if(h>=.436332&&h<=1.13446||h>=2.00713&&h<=2.70526||h>=3.57792&&h<=4.27606||h>=5.14872&&h<=5.84685){var p=Math.sqrt(Math.pow((s-4)/2,2)+Math.pow((f-4)/2,2));p-=p-(s+f)/3,c=t.createLinearGradient(p*Math.cos(h+l),p*Math.sin(h+l),p*Math.cos(h),p*Math.sin(h))}else c=t.createLinearGradient((s-4)/2*Math.cos(h+l),(f-4)/2*Math.sin(h+l),(s-4)/2*Math.cos(h),(f-4)/2*Math.sin(h))}else if("radial"==u.gradientType){var y=.95*Math.sqrt(Math.pow((s-4)/2,2)+Math.pow((f-4)/2,2));switch(u.center){case"center":c=t.createRadialGradient(0,0,0,0,0,y);break;case"left-top":c=t.createRadialGradient(-s/2,-f/2,0,-s/2,-f/2,2*y);break;case"right-top":c=t.createRadialGradient(s/2,-f/2,0,s/2,-f/2,2*y);break;case"left-bottom":c=t.createRadialGradient(-s/2,f/2,0,-s/2,f/2,2*y);break;case"right-bottom":c=t.createRadialGradient(s/2,f/2,0,s/2,f/2,2*y);break;default:c=t.createRadialGradient(0,0,0,0,0,y)}}u.colorStops.forEach((function(t){if(t.position>=0&&t.position<=1)try{c.addColorStop(t.position,t.color)}catch(e){ye("Invalid Color for colorstop : ",t.color),c.addColorStop(t.position,"#fff")}})),t.fillStyle=c,t.fill(),t.translate(-n.x,-n.y)}else if("pattern"==u.type&&u.image){o.prepareFillIf(!o._pattern_image_origin);var d=o._pattern_image;if(!d)return;var v=0,g=0,m=0,b=0,w=e.left,x=e.top;if(!u.fitPattern){switch(v=u.offsetX,g=u.offsetY,u.align){case"center":m=e.width/2-(u.width?u.width/2:0),b=e.height/2+(u.height?u.height/2:0);break;case"left-top":break;case"left-bottom":b=u.height?e.height%u.height:e.height;break;case"right-top":m=u.width?e.width%u.width:e.width;break;case"right-bottom":m=u.width?e.width%u.width:e.width,b=u.height?e.height%u.height:e.height;break;case"left":b=e.height/2+(u.height?u.height/2:0);break;case"right":m=u.width?e.width%u.width:e.width,b=e.height/2+(u.height?u.height/2:0);break;case"top":m=e.width/2-(u.width?u.width/2:0);break;case"bottom":m=e.width/2-(u.width?u.width/2:0),b=u.height?e.height%u.height:e.height}w+=v+m,x+=g+b}t.translate(w,x),u.fitPattern?Math.abs((d.width-e.width)*(d.height-e.height))>1?(delete o._pattern_image,delete o._pattern_image_origin):t.fillStyle=t.createPattern(d,"no-repeat"):t.fillStyle=t.createPattern(d,"repeat"),t.fill(),t.translate(-w,-x)}}function _e(t,e,n){var r=e.strokeStyle,o=e.lineDash,i=e.lineWidth,a=e.lineCap,u=e.lineJoin,c=e.alpha;if(r&&0!=i){if(a&&(t.lineCap=a),o){var s="round"==a;switch(o){case"solid":o=[0,0];break;case"round-dot":o=s?[0,2*i]:[i,i];break;case"square-dot":o=s?[i,2*i]:[2*i,i];break;case"dash":o=s?[3*i,2.5*i]:[4*i,1.5*i];break;case"dash-dot":o=s?[3*i,3*i,0,3*i]:[4*i,2*i,i,2*i];break;case"long-dash":o=s?[5*i,4*i]:[6*i,3*i];break;case"long-dash-dot":o=s?[5*i,3*i,0,3*i]:[6*i,2*i,i,2*i];break;case"long-dash-dot-dot":o=s?[5*i,2*i,0,2*i,0,2*i]:[6*i,i,i,i,i,i]}t.setLineDash(o)}t.globalAlpha*=c,t.strokeStyle=r,t.lineWidth=i,t.lineJoin=u,t.stroke()}}function ke(t,e,n){if(e.length<2)return e;for(var r=2;r<e.length;r++){var o=e.substring(0,r);if(!(t.measureText(o).width<n))break}return e.substring(0,r-1)}function Ae(t,e,n,r){var o=String(e).split("\n");return r?[].concat.apply([],o.map((function(e){return function(t,e,n){var r,o,i=e.split(" "),a=[],u=[];for(r=0,o=1;o<=i.length;o++)if(u=i.slice(r,o),t.measureText(u.join(" ")).width>n){if(o-r==1){var c=ke(t,u[0],n);a.push([c]),i.splice(r,1,c,u[0].substring(c.length))}else{for(;""==i[o-1];)o++;a.push(i.slice(r,--o))}r=o}return o-r>1&&a.push(u),0==a.length&&a.push([""]),a}(t,e,n)}))):o.map((function(t){return t.split(" ")}))}function Se(t,e,n,r,o){if(!r)return[];t.save(),t.font=n;var i=Ae(t,r,e,!!o);return t.restore(),i}function Oe(t){var e=t.fontFamily,n=void 0===e?ie.FONT_FAMILY:e,r=t.bold,o=void 0===r?ie.BOLD:r,i=t.italic,a=void 0===i?ie.ITALIC:i,u=t.fontSize,c=void 0===u?ie.FONT_SIZE:u,s=[];return o&&s.push("bold"),a&&s.push("italic"),s.push(c+"px"),s.push(n),s.join(" ")}function Ee(t,e,n,r){var o=r.alpha,i=void 0===o?ie.FONT_COLOR:o,a=r.fontColor,u=void 0===a?ie.FONT_COLOR:a,c=r.textAlign,s=void 0===c?ie.TEXT_ALIGN:c,f=r.textBaseline,l=void 0===f?ie.TEXT_BASELINE:f,h=r.fontSize,p=void 0===h?ie.FONT_SIZE:h,y=r.lineHeight,d=void 0===y?1.2*p:y;t.save(),t.beginPath();var v=e.left,g=e.top,m=e.width,b=e.height;t.font=Oe(r);var w,x,_=n.length*d;switch(l){case"top":w=g,t.textBaseline="top";break;case"bottom":w=g+b-_+d,t.textBaseline="bottom";break;case"middle":default:w=g+b/2-_/2+d/2,t.textBaseline="middle"}switch(s){case"left":x=v,t.textAlign="left";break;case"right":x=v+m,t.textAlign="right";break;case"justify":x=v,t.textAlign="left";break;case"center":default:x=v+m/2,t.textAlign="center"}t.globalAlpha*=i,t.fillStyle=u,"justify"!=s?n.forEach((function(e,n){t.fillText(e.join(" "),x,w+n*d)})):n.forEach((function(e,n){var r=w+n*d;if(1==e.length)t.fillText(e[0],x,r);else{var o=e.map((function(e){return t.measureText(e).width})),i=o.reduce((function(t,e){return t+e}),0),a=(m-i)/(e.length-1),u=x;e.forEach((function(e,n){t.fillText(e,u,r),u+=o[n]+a}))}})),t.restore()}function Pe(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{x:0,y:0},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{x:1,y:1};return t-=n.x,e-=n.y,{x:(t*Math.cos(-r)-e*Math.sin(-r)+n.x)/o.x,y:(t*Math.sin(-r)+e*Math.cos(-r)+n.y)/o.y}}function je(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{x:0,y:0},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{x:1,y:1};return t-=n.x,e-=n.y,{x:(t*Math.cos(r)-e*Math.sin(r)+n.x)*o.x,y:(t*Math.sin(r)+e*Math.cos(r)+n.y)*o.y}}se="undefined"==typeof document?function(t,e){return new Canvas(t,e)}:function(t,e){var n=document.createElement("canvas");return n.width=t,n.height=e,n};var Re=function(t){return t};function Te(t){var e=t.indexOf("||"),n="",r="";-1!=e&&(n=t,r=t.substring(e+2,t.length-1).trim(),t=t.replace(t.substring(e,t.length-1),"").trim());var o=t.substr(2,t.length-3).trim().replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".").filter((function(t){return!!t.trim()})),i=o.slice(1);return{defaultValue:r,match:t,originText:n||t,target:o[0],accessor:i.length>0?function(t){return i.reduce((function(t,e){return t?t[e]:void 0}),t)}:Re}}function Me(t,e,n){if(t){var r=n||R,o=String(t),i=(o.match(/#{[^}]*}/gi)||[]).map((function(t){return Te(t)})),a=(o.match(/\${[^}]*}/gi)||[]).map((function(t){return Te(t)}));if(0!=i.length||0!=a.length)return function(){var t=o;return i.forEach((function(n){var o=r(n.accessor(e.getState(n.target)));t=t.replace(n.originText,void 0===o?n.defaultValue||"":o)})),a.forEach((function(n){var o=e.root.findById(n.target),i=r(n.accessor(o&&o.data));t=t.replace(n.originText,void 0===i?n.defaultValue||"":i)})),t}}}function Ie(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ce(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ce(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ce(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Be(t){var e=R(t);return null==e?"":String(e)}function Le(t){return Number(R(t))}function Fe(t){return t}function Ne(t){return Be(t)}function De(t){return Le(t)}function Ue(t){if(this.param)return t=Be(t),this.param.hasOwnProperty(t)?this.param[t]:this.param.default}function ze(t){var e=this.param;if(e){for(var n in e){var r=Ie(n.split("~"),2),o=r[0],i=r[1],a=!!o,u=!!i;if(o=parseFloat(o),i=parseFloat(i),t=Le(t),a&&!u&&t>=o)return e[n];if(!a&&u&&t<o)return e[n];if(t>=o&&t<i)return e[n]}return e.default}}function Ye(t){return Le(t)*Math.PI/180}function We(){}function Ge(t,e,n,r,o){switch(n){case"value":return"text"===o||"string"===o?Ne.bind(t):"number"===o?De.bind(t):Fe.bind(e);case"map":return Ue.bind(t);case"range":return ze.bind(t);case"radian":return Ye.bind(t);case"eval":return function(t){try{return new Function("value","targets",t)}catch(t){return pe(t),We}}(r).bind(e);default:return Fe.bind(e)}}var He=function(t){return t};function qe(t){if(!t)return He;var e=String(t).trim().replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".").filter((function(t){return!!t.trim()}));return e.length>0?function(t){return e.reduce((function(t,e){return t?t[e]:void 0}),t)}:He}function Ve(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Xe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xe(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ke(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Qe=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.owner=n,this.model=e}var e,n,r;return e=t,(n=[{key:"dispose",value:function(){delete this._model,delete this.owner,delete this.evaluator,delete this.accessor}},{key:"model",get:function(){return this._model},set:function(t){var e=t.target,n=t.property,r=t.rule,o=t.param,i=t.accessor;this._model=t,this.evaluator=Ge(this,this.owner,r,o,function(t){switch(t){case"ref":case"fillStyle":case"strokeStyle":return"string";default:return}}(n)),this.accessor=qe(i);var a=e.match(/\[(.*?)\]/);if(a){var u=Ve(a[1].split(":"),2),c=u[0],s=u[1];this.propAccessor=qe(c),this.partAccessor=qe(s)}}},{key:"target",get:function(){return this.model.target}},{key:"property",get:function(){return this.model.property}},{key:"param",get:function(){return this.model.param}}])&&Ke(e.prototype,n),r&&Ke(e,r),t}();function Je(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(e||void 0!==this.data)&&this.mappings&&this.mappings.forEach((function(e){try{var n=e.target,r=e.property,o=e.accessor,i=e.propAccessor,a=e.partAccessor,u=o(t.data);if("(root)"==(n=n.trim())||"(key)"==n){if(null==u)return;var c=Object.keys(u||{}).map((function(e){return t.root.findOrCreate(e)})).filter((function(t){return!!t}));c.length>0&&c.forEach((function(t){return t[r]=e.evaluator(u[t.get("id")],[t])}))}else if(n.startsWith("[")){if(null==u)return;if(u instanceof Array)u.forEach((function(n){var o=i(n);if(o){var u=t.root.findOrCreate(o);u&&(u[r]=e.evaluator(a(n),[u]))}}));else{if(!(u instanceof Object))throw String("mapping data should be an object to target property-id.("+u+")");var s=i(u);if(s){var f=t.root.findOrCreate(s);f&&(f[r]=e.evaluator(a(u),[f]))}}}else{var l=t.root.findAll(n,t);if(l.length>0){var h=e.evaluator(u,l);l.forEach((function(t){return t[r]=h}))}}}catch(n){pe(n,t,e)}}))}function Ze(t){var e=t.element,n=t.fillStyle,r=e.style;if(r.background="",n)if("string"==typeof n)r.backgroundColor=n;else switch(n.type){case"pattern":r.backgroundImage="url("+n.image+")",n.fitPattern?r.backgroundSize="100% 100%":n.width||n.height?r.backgroundSize="".concat(n.width?n.width+"px":"auto"," ").concat(n.height?n.height+"px":"auto"):r.backgroundSize="contain";break;case"gradient":r.background=function(t,e){var n=e.colorStops,r=e.gradientType;if(n instanceof Array&&n.length>0)switch(r){case"radial":var o=e.center||"center";return"radial-gradient(farthest-corner at "+function(t,e){var n=t.bounds,r=n.width,o=n.height;switch(e){case"center":return[r/2,o/2];case"left-top":return[0,0];case"right-top":return[r,0];case"left-bottom":return[0,o];default:return[r,o]}}(t,o).map((function(t){return t+"px"})).join(" ")+","+n.map((function(t){return"".concat(t.color," ").concat(100*t.position,"%")})).join(",")+")";case"linear":return"linear-gradient("+(180*(e.rotation||0)/3.141592653589793+90+"deg")+", "+n.map((function(t){return"".concat(t.color," ").concat(100*t.position,"%")})).join(",")+")"}return""}(t,n)}}var $e={x:1,y:1},tn={boxSizing:"border-box",margin:"0px",position:"absolute",outline:"none"};function en(t){var e=t.state,n=e.id,r=e.scale,o=void 0===r?$e:r,i=(e.translate,e.bold),a=e.italic,u=e.fontFamily,c=void 0===u?"":u,s=e.textAlign,f=e.textBaseline,l=e.paddingTop,h=void 0===l?0:l,p=e.paddingBottom,y=void 0===p?0:p,d=e.paddingLeft,v=void 0===d?0:d,g=e.paddingRight,m=void 0===g?0:g,b=e.fontSize,w=void 0===b?ie.FONT_SIZE:b,x=e.lineWidth,_=void 0===x?0:x,k=e.lineDash,A=t.state.class,S=(t.text,t.strokeStyle),O=(t.fillStyle,t.rotation),E=void 0===O?0:O,P=t.fontColor,j=t.hidden,R=t.bounds,T=R.left,M=R.top,I=R.width,C=R.height,B=t.element;B.hidden=j,n&&(B.id=n),A&&(B.className=A),Object.assign(B.style,tn,{fontFamily:c,fontSize:w+"px",left:T+"px",top:M+"px",width:I+"px",height:C+"px",paddingTop:h+"px",paddingRight:m+"px",paddingBottom:y+"px",paddingLeft:v+"px",border:_+"px",borderColor:S,borderStyle:_>0?k||ie.LINE_DASH:"",color:P,fontWeight:i?"bold":"",fontStyle:a?"italic":"",textAlign:"end"==s?"right":"start"==s?"left":"",verticalAlign:f}),Ze(t),function(t){if(t.isShadowable()&&t.state.shadow){var e=t.element,n=t.state.shadow,r=n.left,o=void 0===r?0:r,i=n.top,a=void 0===i?0:i,u=n.blurSize,c=void 0===u?0:u,s=n.color,f=void 0===s?"transparent":s;e.style.boxShadow="".concat(o,"px ").concat(a,"px ").concat(c,"px ").concat(f)}}(t);var L=t.delta(),F=(o&&o.x||1)*L.sx,N=(o&&o.y||1)*L.sy,D=(E||0)+L.theta,U=L.tx||0,z=L.ty||0;["-webkit-","-moz-","-ms-","-o-",""].forEach((function(t){B.style[t+"transform"]="rotate(".concat(D,"rad) translate(").concat(U,"px, ").concat(z,"px) scale(").concat(F,", ").concat(N,") perspective(1px)")}))}function nn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var rn,on=[];function an(){rn=null;var t=performance.now(),e=(on=on.filter((function(t){return un(t)}))).reduce((function(e,n){var r=t-n.updatedAt;return r>=n.retention?e.kills.push(n):e.next=0==e.next?n.retention-r:Math.min(e.next,n.retention-r),e}),{next:0,kills:[]});e.kills.forEach((function(t){var e=on.indexOf(t);-1!=e?(on.splice(e,1),t.removeSelf(!0)):pe("Should not be here. Maybe reentrance problem.")})),e.next>0&&(rn=setTimeout(cn,Math.max(e.next,500)))}function un(t){return!t.disposed&&t.retention>0&&!t.isTemplate()&&t.app&&t.app.isViewMode}var cn=k()((function(){requestAnimationFrame(an)}),500),sn=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"add",value:function(t){un(t)&&-1==on.indexOf(t)&&(on.push(t),t.touch()),this.touch()}},{key:"remove",value:function(t){var e=on.indexOf(t);e>0&&on.splice(e,1),this.touch()}},{key:"touch",value:function(){null!==rn&&(clearTimeout(rn),rn=null),cn()}},{key:"length",get:function(){return on.length}}])&&nn(e.prototype,n),r&&nn(e,r),t}());function fn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ln(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var hn={},pn={mutable:!1,resizable:!0,rotatable:!0,properties:[],"value-property":"text",sample:{xx:0}},yn=[],dn={theta:0,tx:0,ty:0,sx:1,sy:1,fade:0},vn=new WeakMap,gn=0,mn=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._app=n,this._model=e||{},this._state={},this._delta=b.a(dn),n&&this.animation&&(this.animation.started=!0),this.clearCache(),sn.add(this),vn.set(this,gn++)}var e,n,r;return e=t,r=[{key:"nature",get:function(){return pn}},{key:"buildSample",value:function(t,e){var n=this.register(t);if(n){var r=n.nature.sample||{};return Object.assign({type:t},r,e)}console.error("Class not registered.",t)}},{key:"register",value:function(t,e){if(!e)return hn[t];hn[t]=e}},{key:"residents",get:function(){return vn}}],(n=[{key:"created",value:function(){}},{key:"added",value:function(t){}},{key:"removed",value:function(t){}},{key:"ready",value:function(){}},{key:"touch",value:function(){this.updatedAt=performance.now()}},{key:"clearCache",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];me.apply(i,[this].concat(e))}},{key:"removeSelf",value:function(t){t?this.dispose():this.parent&&this.parent.removeComponent(this)}},{key:"dispose",value:function(){this._animation&&(this._animation.dispose(),delete this._animation),this.disposeMappings(),this.parent&&this.parent.removeComponent(this),delete this._text_substitutor,delete this._value_substitutor,this._disposed=!0,this.retention&&sn.touch(),this.clearCache(),delete this._app}},{key:"nature",get:function(){return this.constructor.nature}},{key:"disposed",get:function(){return!!this._disposed}},{key:"isLayer",value:function(){return!1}},{key:"isGroup",value:function(){return!1}},{key:"isContainer",value:function(){return!1}},{key:"isLine",value:function(){return!1}},{key:"isRoot",value:function(){return!1}},{key:"isRootModel",value:function(){return!1}},{key:"is3dish",value:function(){return!1}},{key:"isTemplate",value:function(){return!!this.get("templatePrefix")}},{key:"isHTMLElement",value:function(){return!1}},{key:"retention",get:function(){return Number(this.get("retention"))||0}},{key:"hasTextProperty",get:function(){return!0}},{key:"app",get:function(){return!this._app&&this.parent&&(this._app=this.parent.app),this._app}},{key:"model",get:function(){return this._model}},{key:"state",get:function(){return Object.assign({},this._model,this._state)}},{key:"hierarchy",get:function(){var t=b.a(this._model);return this.volatile.forEach((function(e){delete t[e]})),t}},{key:"volatile",get:function(){return yn}},{key:"textHidden",get:function(){return!!this._textHidden},set:function(t){this._textHidden=!!t,this.invalidate()}},{key:"get",value:function(t){return this._model[t]}},{key:"set",value:function(t,e){if("string"==typeof t)return this.set(fn({},t,e));var n={},r={},o=!1,i=(t=b.a(t),this);return Object.getOwnPropertyNames(t).forEach((function(e){var a=i._model[e],u=t[e];f()(a,u)||(r[e]=a,n[e]=u,i._model[e]=u,delete i._state[e],o=!0)})),o&&(this.clearCache(),n.hasOwnProperty("text")&&delete this._text_substitutor,n.hasOwnProperty("retention")&&sn.add(this),n.hasOwnProperty("fillStyle")&&this.onchangeFill(n,r),n.hasOwnProperty("mappings")&&this.onchangeMappings(n,r),n.hasOwnProperty("data")&&this.onchangeData(n,r),this.onchange&&this.onchange(n,r),this.trigger("change",n,r)),this}},{key:"getState",value:function(t){return this._state.hasOwnProperty(t)?this._state[t]:this.get(t)}},{key:"setState",value:function(t,e){if("string"==typeof t)return this.setState(fn({},t,e));var n={},r={},o=!1,i=(t=b.a(t),this),a=this.getState("sensitive");return Object.getOwnPropertyNames(t).forEach((function(e){var u=i.getState(e),c=t[e];!a&&f()(u,c)||(r[e]=u,n[e]=c,i._state[e]=c,o=!0)})),o&&(this.clearCache(),n.hasOwnProperty("text")&&delete this._text_substitutor,n.hasOwnProperty("fillStyle")&&this.onchangeFill(n,r),n.hasOwnProperty("data")&&this.onchangeData(n,r),this.onchange&&this.onchange(n,r),this.trigger("change",n,r)),this}},{key:"root",get:function(){return this.isRoot()?this:this.parent&&this.parent.root}},{key:"rootModel",get:function(){return this.isRootModel()?this:this.parent&&this.parent.rootModel}},{key:"parent",get:function(){return this._parent},set:function(t){this._parent=t}},{key:"isDescendible",value:function(t){return!0}},{key:"getContext",value:function(){return this._parent.getContext()}},{key:"center",get:function(){var t=this.bounds;return{x:t.left+t.width/2,y:t.top+t.height/2}},set:function(t){if(t&&!isNaN(t.x)&&!isNaN(t.y)){var e=this.center;if(Math.round(100*t.x)/100!=Math.round(100*e.x)/100||Math.round(100*t.y)/100!=Math.round(100*e.y)/100){var n=t.x-e.x,r=t.y-e.y;this.path=this.path.map((function(t){return{x:t.x+n,y:t.y+r}}))}}}},{key:"location",get:function(){return this.center},set:function(t){this.center=t}},{key:"dimension",get:function(){return this.get("dimension")},set:function(t){this.set("dimension",t)}},{key:"bounds",get:function(){var t,e,n,r,o=this.path;t=e=o[0].x,n=r=o[0].y;for(var i=1;i<o.length;i++){var a=o[i];a.x<t?t=a.x:a.x>e&&(e=a.x),a.y<n?n=a.y:a.y>r&&(r=a.y)}return{left:t,top:n,width:e-t,height:r-n}},set:function(t){var e=this.bounds;if(Math.round(100*t.width)/100!=Math.round(100*e.width)/100||Math.round(100*t.height)/100!=Math.round(100*e.height)/100||Math.round(100*t.left)/100!=Math.round(100*e.left)/100||Math.round(100*t.top)/100!=Math.round(100*e.top)/100){var n=0==e.width?1:t.width/e.width,r=0==e.height?1:t.height/e.height;this.path=this.path.map((function(o){return{x:t.left+(o.x-e.left)*n,y:t.top+(o.y-e.top)*r}}))}}},{key:"path",get:function(){return pe("이 컴포넌트에 get path 가 구현되어있지 않음.",this),[]},set:function(t){pe("이 컴포넌트에 get path 가 구현되어있지 않음.",this)}},{key:"outline",value:function(t){return function(t,e){var n=t.path.slice();if(n&&n.length){var r=1,o=[];if(t.isLine()||n.push(n[0]),e<=0)return t.transcoordS2T(n[0].x,n[0].y);if(e>=1)return t.transcoordS2T(n[n.length-1].x,n[n.length-1].y);for(;n[r];){var i=n[r-1],a=n[r],u=a.x-i.x,c=a.y-i.y;o.push(Math.sqrt(u*u+c*c)),r++}var s=o.reduce((function(t,e){return t+e}),0);r=0;var f=0;do{f+=o[r++]}while(f/s<e);e=(e-(f-=o[--r])/s)*(s/o[r]);var l=n[r%n.length],h=n[(r+1)%n.length],p=l.x+Math.round((h.x-l.x)*e),y=l.y+Math.round((h.y-l.y)*e);return t.transcoordS2T(p,y)}pe("path should not be empty")}(this,t||0)}},{key:"anchors",get:function(){return[]}},{key:"strokeStyle",get:function(){return this.get("strokeStyle")},set:function(t){this.set("strokeStyle",t)}},{key:"fillStyle",get:function(){return this.getState("fillStyle")},set:function(t){this.setState("fillStyle",t)}},{key:"fontColor",get:function(){return this.get("fontColor")},set:function(t){this.set("fontColor",String(R(t)))}},{key:"rotation",get:function(){return this.getState("rotation")},set:function(t){this.setState("rotation",Number(R(t)))}},{key:"contains",value:function(t,e){return!1}},{key:"mutable",get:function(){return pn.mutable}},{key:"resizable",get:function(){return pn.resizable&&!this.stuck}},{key:"adjustResize",value:function(t,e,n){if(n){var r=this.bounds,o=r.height/r.width,i=t.width-r.width,a=t.height-r.height;i*o>a?a=i*o:i=a/o;var u=t.left-r.left,c=t.top-r.top;return 0!=u&&0!=c?(c=-a,u=-i):0!=u?u=-i:0!=c&&(c=-a),{left:r.left+u,top:r.top+c,width:r.width+i,height:r.height+a}}return t}},{key:"rotatable",get:function(){return pn.rotatable&&!this.stuck}},{key:"adjustRotation",value:function(t,e){if(e||this.app.rotateStepForced){var n=this.app.rotateStep;return Math.floor((t+n/2)/n)*n}return t}},{key:"capturable",get:function(){return!1!==this.get("capturable")&&(this.app.isEditMode||!this.hidden)}},{key:"stuck",get:function(){return!!(this.parent&&this.parent.layout.isStuck(this)||this.get("locked"))}},{key:"findFirst",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(t.apply(void 0,[this].concat(n)))return this}},{key:"findAll",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return"string"==typeof t?g(t,this,n[0]||this):"function"==typeof t&&t.apply(void 0,[this].concat(n))?[this]:void 0}},{key:"capture",value:function(t,e){if(!this.capturable)return!1;var n=this.transcoordP2S(t,e);return this.contains(n.x,n.y)?this:void 0}},{key:"prepare",value:function(t,e){t(this)}},{key:"prepareIf",value:function(t){var e=this;t&&this.prepare&&this.prepare((function(t){e.invalidate()}),(function(t){pe(t)}))}},{key:"tag",get:function(){return this.get("id")?"#".concat(this.get("id")):""}},{key:"hidden",get:function(){return this.getState("hidden")||this.getState("ndns")&&void 0===this.data||this.isTemplate()},set:function(t){this.setState("hidden",t)}},{key:"draw",value:function(t){t.save(),this.__proto__.hasOwnProperty("_pre_draw")?this._pre_draw(t):this.prerender(t),this.__proto__.hasOwnProperty("_draw")?this._draw(t):this.render(t),this.__proto__.hasOwnProperty("_post_draw")?this._post_draw(t):this.postrender(t),t.restore()}},{key:"delta",value:function(t,e){if(void 0===e)return t?this._delta[t]:this._delta;this._delta[t]=e}},{key:"prerender",value:function(t){var e=this.rotatePoint,n=this.model,r=n.scale,o=n.rotation,i=n.shadow,a=n.alpha,u=(r&&r.x||1)*this._delta.sx,c=(r&&r.y||1)*this._delta.sy,s=(o||0)+this._delta.theta,f=this._delta,l=f.tx,h=void 0===l?0:l,p=f.ty,y=void 0===p?0:p,d=(a||1)-this._delta.fade;(h||y)&&t.translate(h,y),(1!=u||1!=c||s)&&(t.translate(e.x,e.y),1==u&&1==c||t.scale(u,c),s&&t.rotate(s),t.translate(-e.x,-e.y)),d&&(t.globalAlpha=d),i&&ue(t,i,this),this.app.isEditMode&&this.hidden&&(t.globalAlpha*=.5)}},{key:"render",value:function(t){}},{key:"postrender",value:function(t){this.drawText(t)}},{key:"drawText",value:function(t){!this.textHidden&&this.text&&this.hasTextProperty&&Ee(t,this.textBounds,this.textLines(t),this.model)}},{key:"drawStroke",value:function(t){_e(t,this.model)}},{key:"drawFill",value:function(t){this.fillStyle&&"transparent"!=this.fillStyle&&(xe(t,this.bounds,this.center,this.model,this),function(t){t.shadowColor="transparent"}(t))}},{key:"animate",value:function(t){return this._animate&&this._animate.stop(),this._animate=be(t),this._animate}},{key:"move",value:function(t){var e=t.x,n=t.y,r=this.path,o=e,i=n;this.path=r.map((function(t){return{x:t.x+o,y:t.y+i}}))}},{key:"symmetryX",value:function(t){"number"!=typeof t&&(t=this.center.x);var e=this.model.rotation,n=this.fillStyle;if(this.set("rotation",2*Math.PI-e),n&&"gradient"===n.type&&"linear"===n.gradientType){var r=b.a(n);r.rotation=(Math.PI-parseFloat(n.rotation||0))%(2*Math.PI),this.set("fillStyle",r)}this.path=this.path.map((function(e){return{x:2*t-e.x,y:e.y}}))}},{key:"symmetryY",value:function(t){this.symmetryX(),this.set("rotation",(Math.PI+this.model.rotation)%(2*Math.PI)),t&&this.move({x:0,y:2*(t-this.center.y)})}},{key:"animation",get:function(){if(this.app.isViewMode&&!this.isTemplate()){if(!this._animation){var t=this.model.animation;t&&t.oncreate&&(this._animation=(e=this,n=t.oncreate,(r=Qt[n.type])?new r(e,n):null))}var e,n,r;return this._animation}}},{key:"effect",value:function(t,e){return function(t,e,n){var r=ce[n.type];r&&r(t,e,n)}(this,t,e)}},{key:"started",set:function(t){this.animation&&(this.animation.started=t)}},{key:"invalidate",value:function(){this.parent&&this.parent.invalidate()}},{key:"font",get:function(){return Oe(this.model)}},{key:"lineHeight",get:function(){var t=this.get("lineHeight");return t||1.2*this.fontSize}},{key:"defaultTextSubstitutor",value:function(){var t=this.getState("text");return null==t?"":String(t)}},{key:"textSubstitutor",get:function(){return this._text_substitutor||(this._text_substitutor=Me(this.getState("text"),this)||this.defaultTextSubstitutor),this._text_substitutor}},{key:"text",get:function(){var t=this.get("textFormat");return t?function(t,e){if(!t||isNaN(+e))return e;var n,r,o,i,a,u,c,s,f,l=t.length,h=t.search(/[0-9\-\+#]/),p=h>0?t.substring(0,h):"",y=t.split("").reverse().join(""),d=y.search(/[0-9\-\+#]/),v=l-d,g=t.substring(v,v+1),m=v+("."===g||","===g?1:0),b=d>0?t.substring(m,l):"";if(n=(e="-"===(t=t.substring(h,m)).charAt(0)?-e:+e)<0?e=-e:0,o=(r=t.match(/[^\d\-\+#]/g))&&r[1]&&r[0]||",",t=t.split("."),e=+(e=e.toFixed(t[1]&&t[1].length))+"",a=t[1]&&t[1].lastIndexOf("0"),(!(c=e.split("."))[1]||c[1]&&c[1].length<=a)&&(e=(+e).toFixed(a+1)),s=t[0].split(o),t[0]=s.join(""),(i=t[0]&&t[0].indexOf("0"))>-1)for(;c[0].length<t[0].length-i;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((e=e.split("."))[0]=c[0],u=s[1]&&s[s.length-1].length){for(y="",v=(f=e[0]).length%u,l=f.length,m=0;m<l;m++)y+=f.charAt(m),!((m-v+1)%u)&&m<l-u&&(y+=o);e[0]=y}return e[1]=t[1]&&e[1]?"."+e[1]:"","0"!==(r=e.join(""))&&""!==r||(n=!1),p+("+"==t[0].substring(0,1)?n?"-":"+":n?"-":"")+r+b}(t,this.textSubstitutor()):this.textSubstitutor()},set:function(t){delete this._text_substitutor;var e=R(t);this.setState("text",null==e?"":String(e))}},{key:"textLines",value:function(t){return Se(t||this.getContext(),this.textBounds.width,this.font,this.text,this.get("textWrap"))}},{key:"textBounds",get:function(){var t=this.model,e=t.paddingTop,n=void 0===e?0:e,r=t.paddingLeft,o=void 0===r?0:r,i=t.paddingRight,a=void 0===i?0:i,u=t.paddingBottom,c=void 0===u?0:u,s=this.bounds,f=s.left,l=s.top,h=s.width,p=s.height;return{left:f+o,top:l+n,width:Math.max(h-o-a,0),height:Math.max(p-n-c,0)}}},{key:"rotatePoint",get:function(){return this.center}},{key:"trim",value:function(){delete this._model[""],"chartjs"!==this._model.type&&delete this._model.chart}},{key:"value",get:function(){var t=this.nature["value-property"]||"text";return"value"==t?this.getState("value"):this[t]},set:function(t){var e=this.nature["value-property"]||"text";"value"==e?this.setState("value",t):this[e]=t}},{key:"data",get:function(){return this.getState("data")},set:function(t){this.setState("data",t),this.touch()}},{key:"mappings",get:function(){return!this._mappings&&this.parent&&this.buildMappings(),this._mappings}},{key:"serialize",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return JSON.stringify.apply(JSON,[this.hierarchy].concat(e))}},{key:"controls",get:function(){}}])&&ln(e.prototype,n),r&&ln(e,r),t}();function bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}mn.union=function(t){var e,n,r,o;return t.forEach((function(t){void 0===e?(e=t.left,n=t.top,r=t.left+t.width,o=t.top+t.height):(e=Math.min(t.left,e),n=Math.min(t.top,n),r=Math.max(t.left+t.width,r),o=Math.max(t.top+t.height,o))})),{left:e,top:n,width:r-e,height:o-n}},mn.transcoordR=Pe,mn.transcoordRR=je,mn.createCanvas=se,mn.memoize=ve,mn.mixin=ot,mn.drawText=Ee,mn.font=Oe,mn.textLines=Se,mn.drawStroke=_e,mn.drawFill=xe,mn.reposition=en,mn.RetentionManager=sn,mn.template=h.a,mn.buildSubstitutor=Me,Object.assign(mn.prototype,{drawEffect:function(t){var e=this;this._model.effects&&this._model.effects.forEach((function(n){e.effect(t,n)}))},prepareFill:function(t,e){var n=this.fillStyle;if(n&&"pattern"==n.type&&n.image){if("string"!=typeof n.image)return this._pattern_image_origin=this._pattern_image=n.image,void t(this);this._pattern_image=null,this._pattern_image_origin=new Image;var r=this;this._pattern_image_origin.onload=function(){if(!n.fitPattern&&!n.width&&!n.height)return r._pattern_image=r._pattern_image_origin,void t(this);var e=n.width||this.width,o=n.height||this.height;n.fitPattern&&(e=r.bounds.width,o=r.bounds.height);var i=se(e,o);i.getContext("2d").drawImage(this,0,0,this.width,this.height,0,0,e,o),r._pattern_image=i,t(this)},this._pattern_image_origin.onerror=function(t){e(t)};try{"data"!==String(n.image).substring(0,4)?this._pattern_image_origin.crossOrigin="use-credentials":this._pattern_image_origin.crossOrigin=null,this._pattern_image_origin.src=this.app.url(n.image)}catch(t){e(t)}}else t(this)},prepareFillIf:function(t){var e=this;t&&this.prepareFill((function(t){e.invalidate()}),(function(t){pe(t)}))},onchangeFill:function(t,e){var n=this.fillStyle;n&&"pattern"!==n.type?this._pattern_image&&(this._pattern_image=null,this._pattern_image_origin=null):(null==n?void 0:n.image)&&this.prepareFillIf(n.image)},drawImage:function(t,e,n,r,o,i){var a=this;e.complete?t.drawImage(e,n,r,o,i):e.addEventListener("load",(function(){a.invalidate()}))},mutateBounds:function(t,e){var n=this.bounds,r=this.rotatePoint,o=this.get("rotation"),i=this.get("scale");if(t){var a=t.call(e,n);a&&(n=a)}var u=n,c=u.left,s=u.top,f=[{x:c,y:s},{x:c+u.width,y:s+u.height}],l=(f=f.map((function(t){return je(t.x,t.y,r,o,i)})))[0],h=f[1];r={x:(l.x+h.x)/2,y:(l.y+h.y)/2},l=(f=f.map((function(t){return Pe(t.x,t.y,r,o,i)})))[0],h=f[1],this.bounds={left:l.x,top:l.y,width:h.x-l.x,height:h.y-l.y}},mutatePath:function(t,e,n){var r=this,o=this.path,i=this.rotatePoint;this.get("rotation"),this.get("scale"),t&&(o=t.call(n,o));var a=o.map((function(t){return r.transcoordS2P(t.x,t.y)}));e&&(o=e.call(n,a))&&(a=o);var u,c,s,f,l={x:0,y:0};u=c=(o=a.map((function(t){return r.transcoordP2S(t.x,t.y,l)})))[0].x,s=f=o[0].y;for(var h=1;h<o.length;h++){var p=o[h];p.x<u?u=p.x:p.x>c&&(c=p.x),p.y<s?s=p.y:p.y>f&&(f=p.y)}i={x:(u+c)/2,y:(s+f)/2},i=this.transcoordS2P(i.x,i.y,l),this.path=a.map((function(t){return r.transcoordP2S(t.x,t.y,i)}))},access:function(t){if(t){var e=String(t),n=(e.match(/#{(\S*)}/)||[]).map((function(t){return Te(t)}))[0];if(n)return n.accessor(this.getState(n.target));var r=(e.match(/\${[^}]*}/)||[]).map((function(t){return Te(t)}))[0];if(r){var o=this.root.findById(r.target);return r.accessor(this.getState(o))}return t}},substitute:function(t,e){var n=this;if(t){var r=String(t),o=e||R,i=(r.match(/#{(\S*)}/gi)||[]).map((function(t){return Te(t)})),a=(r.match(/\${[^}]*}/gi)||[]).map((function(t){return Te(t)}));if(0==i.length&&0==a.length)return r;var u=r;return i.forEach((function(t){var e=o(t.accessor(n.getState(t.target)));u=u.replace(t.match,void 0===e?"":e)})),a.forEach((function(t){var e=n.root.findById(t.target),r=o(t.accessor(e&&e.data));u=u.replace(t.match,void 0===r?"":r)})),u}},onchangeMappings:function(t,e){this.disposeMappings(),Je.call(this)},onchangeData:function(t,e){Je.call(this,[!0])},buildMappings:function(){var t=this;if(this._model.mappings)return!this._model.mappings instanceof Array?(pe("Mappings model is invalid (should be a Array) ..",this._model.mappings),void(this._mappings=[])):void(this._mappings=(this._model.mappings||[]).map((function(e){return new Qe(e,t)})));this._mappings=[]},executeMappings:Je,disposeMappings:function(){this._mappings&&this._mappings.forEach((function(t){return t.dispose()})),delete this._mappings},ondropfile:function(t,e){for(var n=0;n<t.length;n++)if(t[n].type.startsWith("image/"))return void this.set("fillStyle",{type:"pattern",image:e[n],fitPattern:!0})},transcoordS2P:function(t,e,n){if(!this.parent)return{x:t,y:e};var r=this.model,o=r.rotation,i=void 0===o?0:o,a=r.scale,u=void 0===a?{x:1,y:1}:a;if(this.isLayer()){var c=this.model.translate,s=je(t,e,void 0,i,u);return c&&(s.x+=c.x,s.y+=c.y),s}var f=je(t,e,n=n||this.rotatePoint,i,u);return{x:f.x-(n.x-n.x/u.x),y:f.y-(n.y-n.y/u.y)}},transcoordP2S:function(t,e,n){if(!this.parent)return{x:t,y:e};var r=this.model,o=r.rotation,i=void 0===o?0:o,a=r.scale,u=void 0===a?{x:1,y:1}:a;if(this.isLayer()){var c=this.model.translate,s=Pe(t,e,c,i,u);return c&&(s.x-=c.x/(u?u.x:1),s.y-=c.y/(u?u.y:1)),s}var f=Pe(t,e,n=n||this.rotatePoint,i,u);return{x:f.x+(n.x-n.x/u.x),y:f.y+(n.y-n.y/u.y)}},transcoordS2T:function(t,e,n){n=n||this.rootModel;for(var r=[],o=this.parent;o&&o!==n;o=o.parent)r.push(o);var i=this.transcoordS2P(t,e);return r.forEach((function(t){var e=t.model.scale,n=t.bounds;if(e){var r=t.rotatePoint;i.x+=(r.x-n.left)*e.x,i.y+=(r.y-n.top)*e.y}else i.x+=n.left,i.y+=n.top;i=t.transcoordS2P(i.x,i.y)})),i},transcoordT2S:function(t,e,n){n=n||this.rootModel;for(var r=[],o=this.parent;o&&o!==n;o=o.parent)r.splice(0,0,o);var i={x:t,y:e};return r.forEach((function(t){var e=t.model.scale;i=t.transcoordP2S(i.x,i.y);var n=t.bounds;if(e){var r=t.rotatePoint;i.x-=(r.x-n.left)/e.x,i.y-=(r.y-n.top)/e.y}else i.x-=n.left,i.y-=n.top})),this.transcoordP2S(i.x,i.y)},transcoordS2TR:function(t,e,n){n=n||this.rootModel;var r=this.transcoordS2T(t,e,n);return je(r.x,r.y,void 0,n.get("rotation")||0)},transcoordS2O:function(t,e,n){var r=this.rootModel,o=this.transcoordS2T(t,e,r);return n.transcoordT2S(o.x,o.y,r)},transcoordC2S:function(t,e,n){if(!n)for(n=this;n&&!n.isLayer();)n=n.parent;var r=n.model,o=r.translate,i=r.scale,a=Pe(t,e,o,r.rotation,i);return o&&(a.x-=o.x/(i?i.x:1),a.y-=o.y/(i?i.y:1)),n===this?a:this.transcoordT2S(a.x,a.y,n)},transcoordS2C:function(t,e,n){if(!n)for(n=this;n&&!n.isLayer();)n=n.parent;if(n!==this)var r=this.transcoordS2T(t,e,n);else r={x:t,y:e};var o=n.model,i=o.translate,a=o.rotation,u=o.scale;return r=je(r.x,r.y,void 0,a,u),i&&(r.x+=i.x,r.y+=i.y),r},_pre_draw:mn.prototype.prerender,_draw:mn.prototype.render,_post_draw:mn.prototype.postrender}),["rotatePoint","font","lineHeight","retention"].forEach((function(t){return mn.memoize(mn.prototype,t,!1)})),["bounds","center","textBounds"].forEach((function(t){return mn.memoize(mn.prototype,t,!0)})),mn.mixin(mn.prototype,rt.withEvent);var xn={};var _n={list:function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bn(Object(n),!0).forEach((function(e){wn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},xn)},register:function(t,e){xn[t]=e},unregister:function(t){delete xn[t]},get:function(t){if(t){var e=xn[t];return e||pe("Layout Not Found - ",t),e}}},kn={reflow:function(t,e){},capturables:function(t){return t.components},drawables:function(t){return t.app.isViewMode?t.components.filter((function(t){return!t.hidden})):t.components},isStuck:function(t){return!1},ABSOLUTE:!0};_n.register("absolute",kn);var An=kn;function Sn(t){var e=t.components.filter((function(t){return!t.hidden})),n=t.get("layoutConfig")||{},r=e[n&&n.activeIndex||0];return r&&[r]||[]}var On={reflow:function(t){var e=t.bounds,n=t.get("layoutConfig")||{},r={left:0,top:0,width:e.width,height:e.height};t.forEach((function(t,e){var o=e!=n.activeIndex;t.bounds=r,t.set("rotation",0),t.element&&(t.element.style.display=o?"none":"block")}))},capturables:function(t){return Sn(t)},drawables:function(t){return Sn(t)},isStuck:function(t){return!0}};_n.register("card",On);var En=On;function Pn(t){var e=t.get("layoutConfig");return e&&e.weight||1}var jn={reflow:function(t){var e=this.drawables(t),n=t.get("padding")||{},r=e.reduce((function(t,e){return t+Pn(e)}),0),o=t.bounds,i=r>0?(o.width-((n.left||0)+(n.right||0)))/r:o.width,a=o.height-((n.top||0)+(n.bottom||0)),u=0;e.forEach((function(t){var e=Pn(t),r=t.get("margin")||{};t.bounds={left:i*u+(n.left||0)+(r.left||0),top:0+(n.top||0)+(r.top||0),width:e*i-((r.left||0)+(r.right||0)),height:a-((r.top||0)+(r.bottom||0))},t.set("rotation",0),u+=e}))},capturables:function(t){return t.components},drawables:function(t){return t.app.isViewMode?t.components.filter((function(t){return!t.hidden})):t.components},isStuck:function(t){return!0}};_n.register("linear-horizontal",jn);var Rn=jn;function Tn(t){var e=t.get("layoutConfig");return e&&e.weight||1}var Mn={reflow:function(t){var e=this.drawables(t),n=t.get("padding")||{},r=e.reduce((function(t,e){return t+Tn(e)}),0),o=t.bounds,i=r>0?(o.height-((n.top||0)+(n.bottom||0)))/r:o.height,a=o.width-((n.left||0)+(n.right||0)),u=0;e.forEach((function(t){var e=Tn(t),r=t.get("margin")||{};t.bounds={left:0+(n.left||0)+(r.left||0),top:i*u+(n.top||0)+(r.top||0),width:a-((r.left||0)+(r.right||0)),height:e*i-((r.top||0)+(r.bottom||0))},t.set("rotation",0),u+=e}))},capturables:function(t){return t.components},drawables:function(t){return t.app.isViewMode?t.components.filter((function(t){return!t.hidden})):t.components},isStuck:function(t){return!0}};_n.register("linear-vertical",Mn);var In=Mn,Cn={reflow:function(t){var e=t.get("layoutConfig"),n=e&&e.columns||t.get("columns"),r=e&&e.rows||t.get("rows"),o=e&&e.widths||t.get("widths"),i=e&&e.heights||t.get("heights"),a=o?o.filter((function(t,e){return e<n})).reduce((function(t,e){return t+e}),0):n,u=i?i.filter((function(t,e){return e<r})).reduce((function(t,e){return t+e}),0):r,c=t.textBounds,s=t.get("paddingLeft")||0,f=t.get("paddingTop")||0,l=c.width/a,h=c.height/u,p=0,y=0;t.components.forEach((function(t,e){for(var r=o?o[e%n]:1,a=i?i[Math.floor(e/n)]:1,u=t.colspan||1,c=0;--u>0;)c+=o?o[(e+u)%n]:1;for(var d=t.rowspan||1,v=0;--d>0;)v+=i?i[Math.floor(e/n)+d]:1;t.bounds={left:s+p,top:f+y,width:l*(r+c),height:h*(a+v)},t.set("rotation",0),e%n==n-1?(p=0,y+=a*h):p+=r*l}))},capturables:function(t){return t.components.filter((function(t){return!t.merged}))},drawables:function(t){return t.components.filter((function(t){return!t.merged&&!t.hidden}))},isStuck:function(t){return!0},keyNavigate:function(t,e,n){var r=t.get("layoutConfig"),o=r&&r.columns||t.get("columns"),i=r&&r.rows||t.get("rows"),a=t.getRowColumn(e),u=a.row,c=a.column;switch(n.code){case"ArrowUp":if(u>0)return t.getAt((u-1)*o+c);break;case"ArrowDown":if(u<i-1)return t.getAt((u+1)*o+c);break;case"ArrowRight":if(c<o-1)return t.getAt(u*o+c+1);break;case"ArrowLeft":if(c>0)return t.getAt(u*o+c-1);break;default:return e}},joinType:!0};_n.register("table",Cn);var Bn=Cn,Ln={reflow:function(t,e){this.drawables(t).filter((function(t){return t.isHTMLElement()})).forEach((function(t){return t.reposition()}))},capturables:function(t){return t.components},drawables:function(t){return t.app&&!t.app.isViewMode?t.components:t.components.filter((function(t){return!t.hidden}))},isStuck:function(t){return!1},ABSOLUTE:!0};_n.register("html-absolute",Ln);var Fn=Ln;function Nn(t){return(Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Un(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zn(t,e){return(zn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Yn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Gn(t);if(e){var o=Gn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wn(this,n)}}function Wn(t,e){return!e||"object"!==Nn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Gn(t){return(Gn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Hn=function(t){var e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&zn(t,e)}(i,t);var e,n,r,o=Yn(i);function i(){return Dn(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"contains",value:function(t,e){var n=this.model,r=n.left,o=n.top,i=n.width,a=n.height,u=n.lineWidth,c=(void 0===u?0:u)/2;return t<Math.max(r+i,r)+c&&t>Math.min(r+i,r)-c&&e<Math.max(o+a,o)+c&&e>Math.min(o+a,o)-c}},{key:"path",get:function(){var t=this.model,e=t.left,n=void 0===e?0:e,r=t.top,o=void 0===r?0:r,i=t.width,a=void 0===i?0:i,u=t.height,c=void 0===u?0:u;return[{x:n,y:o},{x:n+a,y:o},{x:n+a,y:o+c},{x:n,y:o+c}]},set:function(t){var e=t[0],n=t[2],r=this.model;r.width,r.height,this.set({left:e.x,top:e.y,width:n.x-e.x,height:n.y-e.y})}}])&&Un(e.prototype,n),r&&Un(e,r),i}(t);return ve(e.prototype,"path",!1),e};function qn(t){return(qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Kn(t,e,n){return(Kn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=$n(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Qn(t,e){return(Qn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Jn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$n(t);if(e){var o=$n(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zn(this,n)}}function Zn(t,e){return!e||"object"!==qn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $n(t){return($n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var tr=new Image;tr.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAclBMVEVHcEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC0BbqFAAAAJXRSTlMAgAP3VSI6/g9fBk5FavJsMrariSjzPnO1enRRL5SMhmOOWB9keFTE0wAAANxJREFUOMutk9kWgyAMRLFuiLjUtdp9yf//YglVsQXz1HniMPcEMgHGvpX2O0Ypi+EgCL+IAShC+wB7QfubRDT7AFcnUPoLMLiP4PyJbsb55i05AgnR5iaQDsICgtH0cotBWoAP1c7kC6kFxEseCfZfB6gEgbNeBrira2QmH1uVYCXlA3is8UmgUCPIyQJKEmu8QtQJN0e9DPXVpzG2G216c1CqRmcBOdxXk07sWUSPv07zo0amCNQycv+NzmR6cRcwmfbuI7p2nZ/z4be0P83Foz6vIkhfZXr82XgDlZsspIq4peUAAAAASUVORK5CYII=";var er=function(t){return function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qn(t,e)}(i,t);var e,n,r,o=Jn(i);function i(){return Vn(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"postrender",value:function(t){Kn($n(i.prototype),"postrender",this).call(this,t),this.app.isEditMode&&this._focused&&this.showMoveHandle&&this._draw_move_handle(t)}},{key:"_draw_move_handle",value:function(t){var e=this.bounds,n=e.left,r=e.top,o=e.width;t.save(),t.beginPath(),t.rect(n+o,r,25,25),t.fillStyle="rgba(".concat(235,", ").concat(235,", ").concat(235,", 1)"),t.strokeStyle="#333",t.fill(),t.stroke(),t.drawImage(tr,n+o+3.75,r+3.75,17.5,17.5),t.closePath(),t.restore()}},{key:"contains",value:function(t,e){var n=Kn($n(i.prototype),"contains",this).call(this,t,e);if(this.app.isViewMode)return n;var r=this.bounds,o=r.left,a=r.top,u=r.width,c=(r.height,o+u);return this.showMoveHandle&&(n=n||t<Math.max(c+25,c)&&t>Math.min(c+25,c)&&e<Math.max(a+25,a)&&e>Math.min(a+25,a)),this._focused=!!n,this.invalidate(),n}}])&&Xn(e.prototype,n),r&&Xn(e,r),i}(t)};function nr(t){return(nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function or(t,e,n){return(or="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=cr(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function ir(t,e){return(ir=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ar(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=cr(t);if(e){var o=cr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ur(this,n)}}function ur(t,e){return!e||"object"!==nr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function cr(t){return(cr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var sr=[],fr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ir(t,e)}(i,t);var e,n,r,o=ar(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e))._components=[],n}return e=i,(n=[{key:"showMoveHandle",get:function(){return!0}},{key:"dispose",value:function(){this.components.slice().forEach((function(t){return t.dispose()})),or(cr(i.prototype),"dispose",this).call(this)}},{key:"isContainer",value:function(){return!0}},{key:"containable",value:function(t){return t.isDescendible(this)&&"variable"!==t.get("type")}},{key:"hasTextProperty",get:function(){return!1}},{key:"components",get:function(){return this._components}},{key:"focusible",get:function(){return!0}},{key:"layout",get:function(){return _n.get(this.get("layout"))||An}},{key:"reflow",value:function(){this.layout.reflow(this),this.components&&this.components.forEach((function(t){t.isContainer()&&t.reflow()}))}},{key:"hierarchy",get:function(){var t=or(cr(i.prototype),"hierarchy",this);return this.components&&(t.components=this.components.map((function(t){return t.hierarchy}))),t}},{key:"addComponent",value:function(t){var e=t.parent;if(e){if(this===e)return;e.removeComponent(t)}var n=this._components.push(t)-1;t.parent=this,t.added(this),this.trigger("add",this,t,n),t.delegate_on(this),t.trigger("added",this,t,n),this.root&&this.root.isReady&&t.ready()}},{key:"removeComponent",value:function(t){var e=this._components.indexOf(t);-1!=e&&(this._components.splice(e,1),t.parent=null,t.removed(this),this.trigger("remove",this,t),t.trigger("removed",this,t),t.delegate_off(this))}},{key:"insertComponentAt",value:function(t,e){var n=t.parent;n&&n.removeComponent(t);var r=this._components.splice(0,e);this._components=r.concat(t,this._components),e=this._components.indexOf(t),t.parent=this,t.added(this),this.trigger("add",this,t,e),t.delegate_on(this),t.trigger("added",this,t,e)}},{key:"add",value:function(t){var e=this;return t instanceof Array?(t.forEach((function(t){-1==e._components.indexOf(t)&&e.addComponent(t)})),this):this.add.call(this,[t])}},{key:"remove",value:function(t){var e=this;return t instanceof Array?this._components?(t.forEach((function(t){e.removeComponent(t)})),this):this:this.remove.call(this,[t])}},{key:"getAt",value:function(t){if(this._components)return this._components[t]}},{key:"forEach",value:function(t,e){this._components&&this._components.forEach(t,e)}},{key:"traverse",value:function(t,e){t.call(e,this),this._components&&this._components.forEach((function(n){n.isContainer()?n.traverse(t,e):t.call(e,n)}))}},{key:"indexOf",value:function(t){return(this._components||sr).indexOf(t)}},{key:"size",value:function(){return(this._components||sr).length}},{key:"moveChildAt",value:function(t,e){var n=this.indexOf(e);if(-1!=n){var r=this._components.splice(0,n),o=this._components.splice(1);this._components=r.concat(o),t=Math.max(0,t),t=Math.min(t,this._components.length),r=this._components.splice(0,t),this._components=r.concat(e,this._components)}}},{key:"moveChildForward",value:function(t){var e=this.indexOf(t);-1!=e&&e!=this.size()-1&&(this._components[e]=this._components[e+1],this._components[e+1]=t)}},{key:"moveChildBackward",value:function(t){var e=this.indexOf(t);-1!=e&&0!=e&&(this._components[e]=this._components[e-1],this._components[e-1]=t)}},{key:"moveChildToFront",value:function(t){var e=this.indexOf(t);if(-1!=e&&e!=this.size()-1){var n=this._components.splice(0,e),r=this._components.splice(1);this._components=n.concat(r,this._components)}}},{key:"moveChildToBack",value:function(t){var e=this.indexOf(t);if(-1!=e&&0!=e){var n=this._components.splice(0,e),r=this._components.splice(0);this._components=this._components.concat(n,r)}}},{key:"symmetryX",value:function(t){or(cr(i.prototype),"symmetryX",this).call(this,t),this.components.map((function(t){t.symmetryX(0)}))}},{key:"findAll",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if("string"==typeof t)return g(t,this,n[0]||this);if("function"==typeof t){for(var o=[],i=this.components.length-1;i>=0;i--){var a,u=(a=this.components[i]).findAll.apply(a,[t].concat(n));u&&(o=o.concat(u))}return t.apply(void 0,[this].concat(n))&&o.push(this),o}}},{key:"findFirst",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if("string"==typeof t)return g(t,this,n[0])[0];if("function"==typeof t){for(var o=this.components.length-1;o>=0;o--){var i,a=(i=this.components[o]).findFirst.apply(i,[t].concat(n));if(null!=a)return a}return t.apply(void 0,[this].concat(n))?this:null}}},{key:"findById",value:function(t){return this.root.findById(t)}},{key:"contains",value:function(t,e){var n=or(cr(i.prototype),"contains",this).call(this,t,e);if(!n){var r=this.model,o=r.left,a=r.top,u=r.width,c=r.height,s=r.lineWidth,f=void 0===s?0:s,l=this.stuck?0:10+f/2;n=t<Math.max(o+u,o)+l&&t>Math.min(o+u,o)-l&&e<Math.max(a+c,a)+l&&e>Math.min(a+c,a)-l}return n}},{key:"capture",value:function(t,e){var n=this.transcoordP2S(t,e);if(!this.contains(n.x,n.y))return!1;var r=this.bounds;n.x-=r.left,n.y-=r.top;for(var o=this.layout.capturables(this),i=o.length-1;i>=0;i--){var a=o[i].capture(n.x,n.y);if(a)return a}return this.capturable&&this}},{key:"capturePath",value:function(t,e){if(e){if(e.indexOf(this)>-1)return!1;for(var n=0;n<e.length;n++)if(!this.containable(e[n]))return!1}for(var r=[],o=this.bounds,i=o.left,a=o.top,u=o.width,c=o.height,s=0;s<t.length;s++){var f=this.transcoordP2S(t[s].x,t[s].y);if(f.x<i||f.x>i+u||f.y<a||f.y>a+c)return!1;f.x-=i,f.y-=a,r.push(f)}for(var l=this.layout.capturables(this),h=l.length-1;h>=0;h--){var p=l[h];if(p.isContainer()){var y=p.capturePath(r,e);if(y)return y}}return this.focusible&&this}},{key:"render",value:function(t){var e=this.bounds,n=e.left,r=void 0===n?0:n,o=e.top,i=void 0===o?0:o,a=e.width,u=e.height;t.beginPath(),t.rect(r,i,a,u),this.drawFill(t),this.drawStroke(t)}},{key:"postrender",value:function(t){or(cr(i.prototype),"postrender",this).call(this,t);var e=this.model,n=e.top,r=e.left;e.scale,t.translate(r,n),this.layout.drawables(this).forEach((function(e){e.draw(t)})),t.translate(-r,-n),this.drawText(t)}},{key:"trim",value:function(){this.components.forEach((function(t){t.trim()})),or(cr(i.prototype),"trim",this).call(this)}}])&&rr(e.prototype,n),r&&rr(e,r),i}(er(Hn(mn)));function lr(t){return(lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pr(t,e,n){return(pr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=gr(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function yr(t,e){return(yr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function dr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=gr(t);if(e){var o=gr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vr(this,n)}}function vr(t,e){return!e||"object"!==lr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function gr(t){return(gr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}["layout"].forEach((function(t){return mn.memoize(fr.prototype,t,!1)}));var mr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yr(t,e)}(i,t);var e,n,r,o=dr(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),n=o.call(this,t,e),t.translate=t.translate||{x:0,y:0},n._draw_reserved=!1,n.__draw__=function(){n._draw_reserved=!1,n.trigger("redraw"),n.reflow(),n.draw()},n.throttle_render=function(){n._draw_reserved||requestAnimationFrame(n.__draw__),n._draw_reserved=!0},n}return e=i,(n=[{key:"fitSize",value:function(t,e,n,r){if(this.target){if(e){var o=getComputedStyle(this.target);n=n||(o?parseFloat(o.getPropertyValue("width")):this.target.offsetWidth),r=r||(o?parseFloat(o.getPropertyValue("height")):this.target.offsetHeight)}else n=this.model.width,r=this.model.height;"CANVAS"==t.tagName&&(t.setAttribute("width",n*ne),t.setAttribute("height",r*ne)),t.style.width=n+"px",t.style.height=r+"px"}}},{key:"resize",value:function(){var t=this.root.fitMode||this.model.fitMode||"ratio";this.fitSize(this.element,"none"!==t)}},{key:"isLayer",value:function(){return!0}},{key:"createElement",value:function(){var t=mn.createCanvas(1,1);return t.style.position="absolute",t}},{key:"target",get:function(){return this._target},set:function(t){this._target&&this.element&&this._target.removeChild(this.element),this._target=t,t&&(this.element||(this.element=this.createElement()),this.resize(),t.appendChild(this.element))}},{key:"canvas",get:function(){return this.element}},{key:"dispose",value:function(){pr(gr(i.prototype),"dispose",this).call(this),this.target=null,this.element=null}},{key:"selected",get:function(){return this.root.selected},set:function(t){this.root.selected=t}},{key:"focused",get:function(){return this.root.focused},set:function(t){this.root.focused=t}},{key:"getContext",value:function(){return this._context2D||(this._context2D=this.canvas&&this.canvas.getContext("2d")),this._context2D}},{key:"draw",value:function(t){this.canvas&&(t=t||this.getContext())&&pr(gr(i.prototype),"draw",this).call(this,t)}},{key:"prerender",value:function(t){var e=this.model,n=e.translate,r=e.scale,o=void 0===r?{x:1,y:1}:r,i=e.rotation;t.clearRect(0,0,t.canvas.width,t.canvas.height),n&&t.translate(n.x*ne,n.y*ne),t.scale(o.x*ne,o.y*ne),i&&t.rotate(i)}},{key:"rotatePoint",get:function(){return{x:0,y:0}}},{key:"contains",value:function(t,e){return!1}},{key:"invalidate",value:function(){this.throttle_render()}},{key:"move",value:function(t){var e=this.get("translate")||{x:0,y:0};this.set({translate:{x:e.x+t.x,y:e.y+t.y}})}}])&&hr(e.prototype,n),r&&hr(e,r),i}(fr);function br(t){return(br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _r(t,e,n){return(_r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Or(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function kr(t,e){return(kr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ar(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Or(t);if(e){var o=Or(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sr(this,n)}}function Sr(t,e){return!e||"object"!==br(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Or(t){return(Or=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Er=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kr(t,e)}(i,t);var e,n,r,o=Ar(i);function i(){return wr(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"rotationX",get:function(){return this.getState("rotationX")},set:function(t){this.setState("rotationX",t)}},{key:"rotationY",get:function(){return this.getState("rotationY")},set:function(t){this.setState("rotationY",t)}},{key:"rotationZ",get:function(){return this.getState("rotation")},set:function(t){this.setState("rotation",t)}},{key:"zPos",get:function(){return this.getState("zPos")},set:function(t){this.setState("zPos",t)}},{key:"depth",get:function(){return this.getState("depth")},set:function(t){this.setState("depth",t)}},{key:"postrender",value:function(t){this.drawFill(t),this.drawStroke(t),_r(Or(i.prototype),"postrender",this).call(this,t)}}])&&xr(e.prototype,n),r&&xr(e,r),i}(mn);function Pr(t){return(Pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Tr(t,e,n){return(Tr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Br(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Mr(t,e){return(Mr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ir(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Br(t);if(e){var o=Br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cr(this,n)}}function Cr(t,e){return!e||"object"!==Pr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Br(t){return(Br=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Lr={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"textarea",label:"front-side-template",name:"frontSideTemplate",property:{language:"html"}},{type:"textarea",label:"back-side-template",name:"backSideTemplate",property:{language:"html"}},{type:"textarea",label:"style",name:"style",property:{language:"css"}}],help:"scene/component/info-window"};function Fr(t,e){var n=t.split(/\s+/),r=n.indexOf(e);return-1!=r?n.splice(r,1):n.splice(-1,0,e),n.join(" ")}var Nr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mr(t,e)}(i,t);var e,n,r,o=Ir(i);function i(){return jr(this,i),o.apply(this,arguments)}return e=i,r=[{key:"image",get:function(){return i._image||(i._image=new Image,i._image.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAAY1BMVEVHcEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADIAbxiAAAAIHRSTlMA+gPshCwwWFzYCeLRm7QRG6rLeDZI9JOJJDtjb1HAf1sAT80AAAQQSURBVHhe7MCBAAAAAMKw/KkzOMG2BAAAAKeu3lUohIEggO7jQi5qHqpgwML5/6+0F0y02z31FlvMMLKt86QMQ1ined2Evih1hFFjLfRWjgzDOGZ6JSiM00B9EuHALtQxJLiQBmqSBCeSUEuEGzs1BDjSaHxWOKK5Eyz/4SoMV/hp4+vtcPkdwZD/udwevNg7t1xXYRiKmkB7C+ENlPLq8fxHeX+RGjWQ1D45ldcIulBIvCvYJGBEadyTzxAcfY57NBjpLScOO/bzugcTHe7IMwiSLMcdHZhocMcMgTLjjgZM7F1bCJZ2v27ARGzYDwIk2Z+JYGJ/iiwQLMv+JAEThjkmRG64Q0Q+gIiIiIiIiIiIyFy0KRFt0bOJZAWSUigmkQaJaXhENiRnYBEpkZySRSRGcmIWEaQnYhHRSI5mESmQnIJFZIqQmGhiEYEbEnPjGlEGjYTogW/WUkOXENENSqZfEXmDiIiIiIiIiIiIiIiIiIiImq5ETIpRpBpjJCMeKy6Ri0ZS9MQjkmkkJs1YRDokp2MRyZGclkUkQnIiEQltaX3Lzb6yiGTpl2y/avqSAxGgelCOKI+Kc2isL0TUSsZ4EREREREREREREREREREREfnIQzXrNWSRTeNxnlOwIgueIr6AAyE+CpiqMEUK71IDO4E+LluEKYKnKcMUifEsTZgiJZ5lDVNkwJPcqzBFoPF/HplfxL/w6b4EPGv1h18Weya1TL8iIiIeiIiIiIiIiEjkPefxV+5YA9PPHylB+u5aqgZ39H+jKOxrqtu+pkzvr9YbzoZ6w2OFkzcrA3yE4WZlSSyFk54VoA/wR43+FaD+r9w32QdWvgvjp2ty2xq8qHPHmtyPFxfrK3hw1ejERlAlfR/Ame2OTow05d4rOLLSlHtDVhI0uRO01JeZ405op6zgNNXT+bIRfpIgn+AkU4pOxBscohojdCHu4RRzjC5EYwVHqRONDkSnEvK/CB3QSU32IRW3ZPnj9iEVoGCNTLVrh8ia1x+6wq8xvB5mz8pxu7oPwIn9lcR0AiuX1+1KX+BXqdvXzWsAC0NsGjzZsS/2Bd6yRA5RgIHkXNhSD3whASZ8rrB9mItuEAizac0fDlHxDMEwpQfD1tW4y3Hjfy5s9nOHH3uwWA+EqEJBWCjoTL/S5toBB/7hu6zer74NgqSP39zJU+qQX3ix763mHTqvIVRUVprCljlElRkEjBqNYevH8veBJ2xhiyhE8YctmhDFH7ZoQhR/2KIJUfxhiyRE8YctmhDFH7ZoQhR/2OIJUfxhC9Ppf/t1jgJACERRsHGyYRZB0Ujvf0xD8w6kP7y6RZmgf/oTFTtbbzJVxZWo2Nlqw6TVy5GowNl6ssm7v50obamfSxQAAAAAAAsKLM15fb3vpQAAAABJRU5ErkJggg=="),i._image}},{key:"toggle",value:function(t,e,n,r){if(e){var o=t.root.findById(e);o?o._findInfoWindowByComponent(t)?i.hide(t,e):i.show(t,e,n,r):console.warn("InfoWindow Not Found.",e)}else console.warn("InfoWindow not defined.")}},{key:"hide",value:function(t,e){if(e){var n=t.root.findById(e);n?n._removeInfoWindow(t):console.warn("InfoWindow Not Found.",e)}}},{key:"show",value:function(t,e,n,r){if(e){var o=t.root.findById(e);if(o){if(!o._findInfoWindowByComponent(t)){var a=o.model,u=a.frontSideTemplate,c=void 0===u?"":u,s=a.backSideTemplate,f=[c,void 0===s?"":s].filter((function(t){return String(t).trim()}));if(0!=(f=f.map((function(t){return mn.template(function(t,e,n){return(e||n?['<div class="info-window-btns">',e?'<button class="closable">X</button>':"",n?'<button class="flipable">⇌</button>':"","</div>"]:[]).concat(['<div class="info-window-content">',t,"</div>"]).join("")}(t,!n,2==f.length))}))).length){var l='\n.flip {\n backface-visibility: hidden;\n -moz-backface-visibility: hidden;\n -ms-backface-visibility: hidden;\n -o-backface-visibility: hidden;\n -webkit-backface-visibility: hidden;\n border-radius: 7px;\n height: auto;\n font: normal 14px helvetica, arial, san serif;\n position: absolute;\n opacity:.9;\n transform-origin: 50% 50% 0px;\n -moz-transform-origin: 50% 50% 0px;\n -ms-transform-origin: 50% 50% 0px;\n -o-transform-origin: 50% 50% 0px;\n -webkit-transform-origin: 50% 50% 0px;\n transition: all 2s;\n -moz-transition: all 2s;\n -ms-transition: all 2s;\n -o-transition: all 2s;\n -webkit-transition: all 2s;\n min-width: 100px;min-height:50px;\n background-color:#3e424e;\n box-shadow: 2px 3px 2px 0px rgba(0,0,0,0.15);\n}\n\n#side-1 {\n transform: rotateY( 0deg );\n -moz-transform: rotateY( 0deg );\n -ms-transform: rotateY( 0deg );\n -o-transform: rotateY( 0deg );\n -webkit-transform: rotateY( 0deg );\n}\n.flip:after{\n content:"";\n display:block;\n position: absolute;\n opacity:.9;\n width: 0;\n height: 0;\n}\n.flip.arrow-top:after{\n left:45%;\n top:-17px;\n border-left:10px solid transparent;\n border-bottom:18px solid #323b44;\n border-right:10px solid transparent;\n}\n.flip.arrow-right:after{\n left:100%;\n top:48%;\n border-top:10px solid transparent;\n border-left:18px solid #323b44;\n border-bottom:10px solid transparent;\n}\n.flip.arrow-bottom:after{\n left:45%;\n top:100%;\n border-left:10px solid transparent;\n border-top:18px solid #323b44;\n border-right:10px solid transparent;\n}\n.flip.arrow-left:after{\n right:100%;\n top:48%;\n border-top:10px solid transparent;\n border-right:18px solid #323b44;\n border-bottom:10px solid transparent;\n}\n\n#side-2 {\n transform: rotateY( 180deg );\n -moz-transform: rotateY( 180deg );\n -ms-transform: rotateY( 180deg );\n -o-transform: rotateY( 180deg );\n -webkit-transform: rotateY( 180deg );\n}\n\n.flip-side-1 {\n transform: rotateY( 0deg ) !important;\n -moz-transform: rotateY( 0deg ) !important;\n -ms-transform: rotateY( 0deg ) !important;\n -o-transform: rotateY( 0deg ) !important;\n -webkit-transform: rotateY( 0deg ) !important;\n}\n\n.flip-side-2 {\n transform: rotateY( 180deg ) !important;\n -moz-transform: rotateY( 180deg ) !important;\n -ms-transform: rotateY( 180deg ) !important;\n -o-transform: rotateY( 180deg ) !important;\n -webkit-transform: rotateY( 180deg ) !important;\n}\n\n.info-window-btns{\n position:absolute;\n top:-18px;\n right:5px;\n overflow:hidden;\n}\n.info-window-content{\n padding:10px;\n color:#efefef;\n font-size:13px;\n line-height:1.4;\n}\n.info-window-btns button{\n width:40px;height:40px;\n float:right;\n border:0;\n border-radius:50%;\n background-color:#2a7da1;\n margin-right:3px;\n text-align:center;\n cursor:pointer;\n font-size:35px;\n color:#fff;\n line-height:0;\n}\n.info-window-btns button:hover{\n background-color:#60bb23;\n}\n'+o.get("style"),h=t.bounds,p=h.left,y=h.top,d=r?t.rootModel.transcoordC2S(r.x,r.y):t.transcoordS2T(p,y);p=d.x,y=d.y;var v=document.createElement("span");v.style.position="absolute";var g=document.createElement("style");if(g.type="text/css",g.styleSheet?g.styleSheet.cssText=l:g.appendChild(document.createTextNode(l)),v.appendChild(g),f[0]){var m=document.createElement("div");m.id="side-1",m.className="flip",m.style.display="inline-block",m.innerHTML=f[0](t)}if(f[1]){var b=document.createElement("div");b.id="side-2",b.className="flip",b.style.display="inline-block",b.innerHTML=f[1](t)}re.forEach((function(t){v.addEventListener(t,(function(t){t.stopPropagation()}))})),oe.forEach((function(t){v.addEventListener(t,(function(t){t.stopPropagation()}))}));var w=t.root.model_layer.overlay;if(m&&v.appendChild(m),b&&v.appendChild(b),w.appendChild(v),o._addInfoWindow(t,v,g),m){var x=m.querySelector(".info-window-btns > .flipable");x&&x.addEventListener("click",(function(t){t.preventDefault(),b.className=Fr(b.className,"flip-side-1"),m.className=Fr(m.className,"flip-side-2")}),!1);var _=m.querySelector(".info-window-btns > .closable");_&&_.addEventListener("click",(function(n){n.preventDefault(),i.hide(t,e)}),!1)}if(b){var k=b.querySelector(".info-window-btns > .flipable");k&&k.addEventListener("click",(function(t){t.preventDefault(),b.className=Fr(b.className,"flip-side-1"),m.className=Fr(m.className,"flip-side-2")}),!1);var A=b.querySelector(".info-window-btns > .closable");A&&A.addEventListener("click",(function(n){n.preventDefault(),i.hide(t,e)}),!1)}var S=m.offsetWidth,O=m.offsetHeight,E=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,t.rootModel.target.getBoundingClientRect()),P=[];m&&P.push(m),b&&P.push(b);var j={x:p,y:y},R=t.transcoordS2C(j.x,j.y);if(R.x+S/2+E.left<E.right&&R.x-S/2>E.left){if(O+20<R.y)return v.style.marginLeft=j.x-S/2+"px",v.style.marginTop=j.y-O-20+"px",void P.forEach((function(t){return t.className+=" arrow-bottom"}));if(R=t.transcoordS2C(j.x,j.y+O+20),E.bottom>R.y+E.top)return v.style.marginLeft=j.x-S/2+"px",v.style.marginTop=j.y+20+"px",void P.forEach((function(t){return t.className+=" arrow-top"}))}if((R=t.transcoordS2C(j.x,j.y)).x-(S+20)>E.left)return v.style.marginLeft=j.x-S-20+"px",v.style.marginTop=j.y-O/2+"px",void P.forEach((function(t){return t.className+=" arrow-right"}));v.style.marginLeft=j.x+20+"px",v.style.marginTop=j.y-O/2+"px",P.forEach((function(t){return t.className+=" arrow-left"}))}}}else console.warn("InfoWindow Not Found.",e)}else console.warn("InfoWindow not defined.")}}],(n=[{key:"dispose",value:function(){var t=this;this.infoWindows.map((function(t){return t.component})).forEach((function(e){return t._removeInfoWindow(e)})),Tr(Br(i.prototype),"dispose",this).call(this)}},{key:"infoWindows",get:function(){return this._windows||(this._windows=[]),this._windows}},{key:"_findInfoWindowByComponent",value:function(t){return this.infoWindows.find((function(e){return e.component===t}))}},{key:"_addInfoWindow",value:function(t,e,n){this._findInfoWindowByComponent(t)||this._windows.push({component:t,window:e,styleElement:n})}},{key:"_removeInfoWindow",value:function(t){var e=this._findInfoWindowByComponent(t);if(e){var n=e.window;n&&n.parentNode.removeChild(n);var r=this.infoWindows.lastIndexOf(e);this.infoWindows.splice(r,1)}}},{key:"render",value:function(t){var e=this.bounds,n=e.left,r=e.top,o=e.width,a=e.height;t.beginPath(),this.drawImage(t,i.image,n,r,o,a)}},{key:"hasTextProperty",get:function(){return!1}},{key:"nature",get:function(){return Lr}}])&&Rr(e.prototype,n),r&&Rr(e,r),i}(Hn(Er));mn.register("info-window",Nr);var Dr='\n<div class="popup-content">\n</div>\n<button class="closable">X</button>\n',Ur="\nbutton.closable {\n width: 20px;\n height: 20px;\n right: 0px;\n top: 0px;\n padding: 0;\n margin: 0;\n border: 0px;\n text-align: center;\n cursor: pointer;\n font-size: 12px;\n color: black;\n position: absolute;\n background-color: transparent;\n}\n\nbutton.closable:hover {\n background-color:#60bb23;\n}\n",zr=new WeakMap;function Yr(t,e,n){Wr(t),zr.set(t,{div:e,scene:n})}function Wr(t){var e=zr.get(t);if(e){var n=e.div.parentNode;n&&n.removeChild(e.div);var r=e.scene;r.target=null,r.release(),zr.delete(t)}}function Gr(t){Wr(t)}function Hr(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.data,o=n.location,i=void 0===o?"center":o,a=n.modal,u=void 0!==a&&a,c=t.app.refProvider;c&&c.get(e,!0).then((function(e){var n=document.createElement("div"),o=n.style;if(u){var a=t.rootModel.bounds,c=a.width,s=a.height;o.position="fixed",o.zIndex=1,o.left=0,o.top=0,o.width=c+"px",o.height=s+"px",o.overflow="auto",o.backgroundColor="rgba(0,0,0,0.3)"}else o.position="absolute",o.display="inline-block";n.innerHTML=u?'\n<div class="popup-content">\n</div>\n':Dr;var f=n.querySelector(".popup-content"),l=e.root.model;c=l.width,s=l.height;f.style.width=c+"px",f.style.height=s+"px";var h=document.createElement("style");h.type="text/css",h.styleSheet?h.styleSheet.cssText=Ur:h.appendChild(document.createTextNode(Ur)),n.appendChild(h);var p=n.querySelector(".popup-content");re.forEach((function(t){p.addEventListener(t,(function(t){t.stopPropagation()}))})),oe.forEach((function(t){p.addEventListener(t,(function(t){t.stopPropagation()}))})),n.addEventListener("click",(function(e){return Gr(t.root)})),t.root.model_layer.overlay.appendChild(n),Yr(t.root,n,e),u||n.querySelector(".closable").addEventListener("click",(function(e){e.preventDefault(),Gr(t.root)}),!1),n.addEventListener("close-scene",(function(e){e.preventDefault(),Gr(t.root),t.data=e.detail}),!1),e.target=f,e.data=r||t.data,e.fit("both");var y=qr(t.rootModel,e.root,t.center,i);u?(f.style.left=y.x+"px",f.style.top=y.y+"px",f.style.width=c+"px",f.style.height=s+"px"):(n.style.left=y.x+"px",n.style.top=y.y+"px",n.style.width=c+"px",n.style.height=s+"px")}),(function(t){console.error("cannot fetch board: "+e,t)}))}function qr(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"center",o=t.bounds,i=e.bounds,a=Math.max(o.width/4-i.width/2,20),u=Math.min(3*o.width/4+i.width/2,o.width-20)-i.width,c=Math.max(o.height/4-i.height/2,20),s=Math.min(3*o.height/4+i.height/2,o.height-20)-i.height;switch(r){case"auto":return{x:n.x<o.width/2?u:a,y:n.y<o.height/2?s:c};case"left-top":return{x:a,y:c};case"right-top":return{x:u,y:c};case"left-bottom":return{x:a,y:s};case"right-bottom":return{x:u,y:s};case"center":default:return{x:(o.width-i.width)/2,y:(o.height-i.height)/2}}}function Vr(t){t.hasOwnProperty("_backupStrokeStyle")||(t._backupStrokeStyle=t.model.strokeStyle,t.set("strokeStyle","#f26522"),t.hasOwnProperty("_backupLineWidth")||(t._backupLineWidth=t.model.lineWidth,t.set("lineWidth",t.model.lineWidth+5)))}function Xr(t){t.hasOwnProperty("_backupStrokeStyle")&&(t.set("strokeStyle",t._backupStrokeStyle),delete t._backupStrokeStyle,t.hasOwnProperty("_backupLineWidth")&&(t.set("lineWidth",t._backupLineWidth),delete t._backupLineWidth))}function Kr(t){return(Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jr(t,e,n){return(Jr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=eo(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Zr(t,e){return(Zr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $r(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=eo(t);if(e){var o=eo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return to(this,n)}}function to(t,e){return!e||"object"!==Kr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function eo(t){return(eo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var no={x:1,y:1},ro={x:0,y:0},oo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zr(t,e)}(i,t);var e,n,r,o=$r(i);function i(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,e)}return e=i,(n=[{key:"dispose",value:function(){Jr(eo(i.prototype),"dispose",this).call(this),delete this._canvas,delete this._overlay}},{key:"contains",value:function(t,e){return!0}},{key:"isRootModel",value:function(){return!0}},{key:"stuck",get:function(){return!0}},{key:"layout",get:function(){return Fn}},{key:"overlay",get:function(){if(!this._overlay){var t=document.createElement("div");t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="initial",t.style["user-select"]="none",t.style["transform-origin"]="top left",this.element&&this.element.appendChild(t),this._overlay=t,this._repositionOverlay()}return this._overlay}},{key:"createElement",value:function(){var t=document.createElement("div");return t.style.position="absolute",t.style["user-select"]="none",t.style.overflow="hidden",this._canvas=mn.createCanvas(1,1),this._canvas.style.position="absolute",t.appendChild(this._canvas),this._overlay&&t.appendChild(this._overlay),t}},{key:"resize",value:function(){var t=this.model,e=t.width,n=t.height,r=t.fitMode;this.root.fitMode?r=this.root.fitMode:r||(r="ratio");var o,i,a=getComputedStyle(this.target);switch(r){case"both":case"ratio":o=a?parseFloat(a.getPropertyValue("width")):this.target.offsetWidth,i=a?parseFloat(a.getPropertyValue("height")):this.target.offsetHeight;break;case"width":i=n*(o=a?parseFloat(a.getPropertyValue("width")):this.target.offsetWidth)/e;break;case"height":o=e*(i=a?parseFloat(a.getPropertyValue("height")):this.target.offsetHeight)/n;break;default:o=e,i=n}switch(this.fitSize(this.canvas,"none"!==r,o,i),r){case"ratio":case"both":break;case"width":this.element.style.overflowX="hidden",this.element.style.overflowY="auto";break;case"height":this.element.style.overflowX="auto",this.element.style.overflowY="hidden";break;default:this.element.style.overflowX="auto",this.element.style.overflowY="auto"}this.fitSize(this.element,!0)}},{key:"canvas",get:function(){return this._canvas}},{key:"MPP",get:function(){var t=this.model,e=t.scale,n=void 0===e?{x:1,y:1}:e;switch(t.unit){case"mm":case"cm":return 1/this.app.PPM/n.x;case"in":return 1/this.app.PPI/n.x;case"px":default:return 1/n.x}}},{key:"capturePath",value:function(t,e){for(var n=this.layout.capturables(this),r=n.length-1;r>=0;r--){var o=n[r];if(o.isContainer()){var i=o.capturePath(t,e);if(i)return i}}return!1}},{key:"eventMap",get:function(){return{"(self)":{"(all)":{change:this._onchanged_all,mouseenter:this._onmouseenter_all,mouseleave:this._onmouseleave_all,click:this._onclick,mousedown:this._onmousedownup,mouseup:this._onmousedownup,touchstart:this._onmousedownup,touchend:this._onmousedownup}}}}},{key:"_repositionOverlay",value:function(){var t=this._overlay;if(t){var e=this.model,n=e.translate,r=void 0===n?ro:n,o=e.scale,i=void 0===o?no:o,a=e.rotation,u=void 0===a?0:a,c=this.bounds,s=c.left,f=c.top;c.width,c.height,t.style.left=s+"px",t.style.top=f+"px";var l="rotate(".concat(u,"rad) scale(").concat(i.x,", ").concat(i.y,") perspective(1px)");t.style["margin-left"]=r.x+"px",t.style["margin-top"]=r.y+"px",["-webkit-","-moz-","-ms-","-o-",""].forEach((function(e){t.style[e+"transform"]=l}))}}},{key:"onchange",value:function(t){var e=this._model;delete e.id,delete e.text,delete e.class,this._repositionOverlay()}},{key:"_onchanged_all",value:function(t,e,n){this.invalidate()}},{key:"_onmouseenter_all",value:function(t,e){if(t.stopPropagation(),this.app&&!this.app.isEditMode&&e){var n=e.origin;if(!(n instanceof i)&&n.model.event&&n.model.event.hover&&!n.hidden){var r=n.model.event.hover;r&&this._doEventAction(r,n,!0,!0,t)}}}},{key:"_onmouseleave_all",value:function(t,e){if(t.stopPropagation(),this.app&&!this.app.isEditMode&&e){var n=e.origin,r=n.model.event&&n.model.event.hover;r&&this._doEventAction(r,n,!1,!0,t)}}},{key:"_onclick",value:function(t,e){if(t.stopPropagation(),!this.app.isEditMode&&e){var n=e.origin,r=n.model.event&&n.model.event.tap;r&&this._doEventAction(r,n,!0,!1,t)}}},{key:"_onmousedownup",value:function(t,e){if(t.stopPropagation(),!this.app.isEditMode&&e){var n=e.origin,r=n.model.event&&n.model.event.tap;r&&r.pressed&&this._doMouseDownUpEventAction_1_1(r,n,"mousedown"==t.type||"touchstart"==t.type,t)}}},{key:"_doEventAction",value:function(t,e,n,r,o){t.action?this._doEventAction_1_1(t,e,n,o):this._doEventAction_1_0(t,e,n,r,o)}},{key:"_doEventAction_1_0",value:function(t,e,n,r,o){var i=t.infoWindow,a=t.emphasize,u=t.target,c=t.value;if(a&&(n?Vr(e):r&&Xr(e)),i&&!e.hidden&&(n?Nr.show(e,i,!1,{x:o.offsetX,y:o.offsetY}):r&&Nr.hide(e,i)),u)if(/^\$/.test(u)){if(!("value"in t))return;n?(r&&(e._lastValue=this.root.variable(u.substring(1))),this.root.variable(u.substring(1),e.access(c))):(this.root.variable(u,e._lastValue),delete e._lastValue)}else"popup"==u?Hr(e,c):"modal-popup"==u?Hr(e,c,{modal:!0}):"close-scene"==u?(this.overlay.dispatchEvent(new CustomEvent("close-scene",{bubbles:!0,composed:!0,detail:e.data})),this.trigger("close-scene",this)):"infoWindow"==u||"info-window"==u?"click"==o.type&&Nr.show(e,c,r,{x:o.offsetX,y:o.offsetY}):"toggle-info-window"==u?Nr.toggle(e,c,!1,{x:o.offsetX,y:o.offsetY}):this.trigger(u,e.access(c),e)}},{key:"_doMouseDownUpEventAction_1_1",value:function(t,e,n,r){var o=t.pressed;void 0!==o&&o&&(n?function(t){if(!t.hasOwnProperty("_backupShadow")){var e=t.get("shadow");t._backupShadow=e;var n=e||{},r=n.left,o=void 0===r?0:r,i=n.top,a=void 0===i?0:i;t.delta("tx",o),t.delta("ty",a),t.set("shadow",{})}}(e):function(t){t.hasOwnProperty("_backupShadow")&&(t.delta("tx",0),t.delta("ty",0),t.set("shadow",t._backupShadow),delete t._backupShadow)}(e))}},{key:"_doEventAction_1_1",value:function(t,e,n,r){var o=t.action,i=t.target,a=t.value,u=t.emphasize,c=void 0!==u&&u,s=t.restore,f=void 0!==s&&s;if(t.pressed,i&&(i=e.access(i)),a&&(a=e.access(a)),c&&(n?Vr(e):f&&Xr(e)),o)switch(o){case"data-toggle":if(!i)return;(n||f)&&this.root.findAll(i,e).forEach((function(t){t.data=!t.data}));break;case"data-tristate":if(!i)return;(n||f)&&this.root.findAll(i,e).forEach((function(t){var e=Math.round(Math.max(Number(t.data)||0,0));t.data=(e+(n?1:2))%3}));break;case"data-set":if(!i)return;if(n){var l=a;this.root.findAll(i,e).forEach((function(t){t.data=l}))}break;case"value-set":if(!i)return;n&&(l=a,this.root.findAll(i,e).forEach((function(t){t.value=l})));break;case"infoWindow":case"info-window":if(!i)return;"click"==r.type||n?Nr.show(e,i,f,{x:r.offsetX,y:r.offsetY}):f&&Nr.hide(e,i);break;case"toggle-info-window":if(!i)return;Nr.toggle(e,i,!1,{x:r.offsetX,y:r.offsetY});break;case"popup":if(!i)return;Hr(e,i);break;case"modal-popup":if(!i)return;Hr(e,i,{modal:!0});break;case"close-scene":this.overlay.dispatchEvent(new CustomEvent("close-scene",{bubbles:!0,composed:!0,detail:e.data}));break;default:this.trigger(o,i,a,e)}}}])&&Qr(e.prototype,n),r&&Qr(e,r),i}(mr);function io(t){return(io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ao(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function co(t,e){return(co=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function so(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=lo(t);if(e){var o=lo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fo(this,n)}}function fo(t,e){return!e||"object"!==io(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function lo(t){return(lo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}oo.Popup=a,mn.register("model-layer",oo);var ho=[1,2,10,20,50,50,50,50,50,50],po=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&co(t,e)}(i,t);var e,n,r,o=so(i);function i(){return ao(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"render",value:function(t){var e=this.model,n=e.lineWidth,r=void 0===n?1:n,o=e.fillStyle,i=void 0===o?"lightgray":o,a=e.font,u=void 0===a?"15px Arial":a,c=e.left,s=e.top,f=(e.rotation,e.origin),l=(e.margin,e.width),h=e.height,p=e.side,y=void 0===p?"bottom":p,d=e.strokeStyle,v=void 0===d?"#000000":d,g=e.scale,m=void 0===g?1:g;t.translate(c,s),t.beginPath();var b=Math.round(r/2);t.rect(-b,-b,l+2*b,h+2*b),t.clip(),t.beginPath(),t.rect(0,0,l,h),i&&(t.fillStyle=i,t.fill()),t.lineWidth=r,t.strokeStyle=v,t.stroke(),t.beginPath(),t.font=u;var w="bottom"!==y,x=w?0:h,_=4*h/5,k=2*h/3,A=1*h/2,S=3*h/5;w&&(_=h-_,k=h-k,A=h-A,S=h-1.5*h/5);var O=m*this.app.PPM/this.root.unitScale,E=Math.ceil(f/O),P=this.app.PPM/O,j=P<=1.1?1:ho[Math.round(P)]||100;1!=j&&(E+=(j-E%j)%j);var R=Math.ceil(E*O),T=f+l;for(t.fillStyle=v;R<T;){if(E%10==0){t.moveTo(R-f,A),t.lineTo(R-f,x);var M=(E/10).toString(),I=t.measureText(M);t.fillText(M,R-f-I.width-6,S)}else E%5==0?(t.moveTo(R-f,k),t.lineTo(R-f,x)):(t.moveTo(R-f,_),t.lineTo(R-f,x));E+=j,R=Math.ceil(E*O)}}}])&&uo(e.prototype,n),r&&uo(e,r),i}(Hn(Er));function yo(t){return(yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function go(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mo(t,e){return(mo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=xo(t);if(e){var o=xo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wo(this,n)}}function wo(t,e){return!e||"object"!==yo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function xo(t){return(xo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.register("ruler",po);var _o={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"number",label:"round",name:"round",property:"round"}],help:"scene/component/rect"},ko={ondragmove:function(t,e,n){var r=n.model,o=r.left,i=(r.top,r.width),a=r.height,u=(n.transcoordP2S(t.x,t.y).x-o)/(i/2)*100;u=Ao(u,i,a),n.set({round:u})}};function Ao(t,e,n){var r=e>n?n/e*100:100;return t>=r?t=r:t<=0&&(t=0),t}var So=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&mo(t,e)}(i,t);var e,n,r,o=bo(i);function i(){return vo(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"is3dish",value:function(){return!0}},{key:"render",value:function(t){var e=this.model.round,n=void 0===e?0:e,r=this.bounds,o=r.left,i=r.top,a=r.width,u=r.height;t.translate(o,i),t.beginPath();var c=(n=Ao(n,a,u))/100*(a/2);t.moveTo(c,0),t.arcTo(a,0,a,u,c),t.arcTo(a,u,0,u,c),t.arcTo(0,u,0,0,c),t.arcTo(0,0,a,0,c),t.translate(-o,-i)}},{key:"controls",get:function(){var t=this.model,e=t.left,n=t.top,r=t.width,o=t.round,i=t.height;return[{x:e+r/2*((o=null==o?0:Ao(o,r,i))/100),y:n,handler:ko}]}},{key:"nature",get:function(){return _o}}])&&go(e.prototype,n),r&&go(e,r),i}(Hn(Er));function Oo(t){return(Oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Eo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Po(t,e,n){return(Po="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Mo(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function jo(t,e){return(jo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ro(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Mo(t);if(e){var o=Mo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return To(this,n)}}function To(t,e){return!e||"object"!==Oo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Mo(t){return(Mo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.register("rect",So);var Io=90*Math.PI/180;function Co(t,e,n){return{left:-t.x,top:-t.y,width:20,height:20}}function Bo(t,e,n,r){return{left:20-t.x,top:0-t.y,origin:20-t.x,width:e-20,height:20}}function Lo(t,e,n,r){var o={x:0-t.x+10,y:20-t.y+(n-20)/2},i=mn.transcoordRR(0-t.x,20-t.y,o,Io);return{left:i.x-(n-20),top:i.y,origin:20-t.y,width:n-20,height:20}}function Fo(t){var e=t.get("translate");return{left:-e.x,top:-e.y,width:t.canvas.width/ne,height:t.canvas.height/ne}}var No=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jo(t,e)}(i,t);var e,n,r,o=Ro(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).appScale={x:1,y:1},"disabled"!==t.ruler&&(n.hruler=new po({left:20,top:0,origin:20,margin:0,height:20,unit:"m",rotation:0,font:"9px Verdana",fillStyle:"#f4f4f4",strokeStyle:"#999",capturable:!1}),n.vruler=new po({left:0,top:0,origin:20,margin:0,height:20,unit:"m",rotation:Io,font:"9px Verdana",side:"top",fillStyle:"#f4f4f4",strokeStyle:"#999",capturable:!1}),n.origin_rect=new So({left:-20,top:-20,width:20,height:20,fillStyle:"#f4f4f4",strokeStyle:"#999",lineWidth:1}),n.addComponent(n.hruler),n.addComponent(n.vruler),n.addComponent(n.origin_rect)),n.invalidate(),n}return e=i,(n=[{key:"capturable",get:function(){return!1}},{key:"ready",value:function(){if(this.hruler){var t=this.rootModel,e=Object.assign({},t.get("translate"));e.x<20&&(e.x+=20),e.y<20&&(e.y+=20);var n=t.get("scale")||{x:1,y:1};this.appScale=n,this.hruler.set("scale",n.x),this.vruler.set("scale",n.y),t.set("translate",e),this.set("translate",e),this.screen_coord=Fo(this);var r=this.screen_coord,o=r.width,i=r.height;this.hruler.set(Bo(e,o,0,this.hruler)),this.vruler.set(Lo(e,0,i,this.vruler)),this.origin_rect.set(Co(e))}else this.screen_coord=Fo(this)}},{key:"resize",value:function(){Po(Mo(i.prototype),"resize",this).call(this),this.screen_coord=Fo(this);var t=this.screen_coord,e=t.width,n=t.height;this.hruler&&(this.hruler.set(Bo(this.model.translate,e,0,this.hruler)),this.vruler.set(Lo(this.model.translate,0,n,this.vruler)),this.origin_rect.set(Co(this.model.translate)))}},{key:"render",value:function(t){if(this.guide){t.save();var e=this.guide,n=e.x,r=e.y,o=this.screen_coord,i=o.top,a=o.left,u=o.width,c=o.height;t.beginPath(),t.moveTo(n,i),t.lineTo(n,i+c),t.moveTo(a,r),t.lineTo(a+u,r),t.lineWidth=1,t.strokeStyle="tomato",t.setLineDash([2,3]),t.font="10px tahoma",t.fillStyle="#333";var s=this.transcoordS2C(n,r,this.rootModel);t.textBaseline=s.y>200?"bottom":"top",t.textAlign=s.x>200?"right":"left";var f=s.y>200?-5:5,l=s.x>200?-5:5,h=Math.round(n/this.appScale.x),p=Math.round(r/this.appScale.y);t.fillText(" ".concat(h,", ").concat(p," "),n+l,r+f),t.stroke(),t.restore()}}},{key:"guide",get:function(){return this._guide},set:function(t){this._guide=t,this.invalidate()}},{key:"contains",value:function(t,e){return!0}},{key:"eventMap",get:function(){return{"(root)":{"(descendant)":{mousemove:this.onmousemove_child,mouseout:this.onmouseout_child,dragmove:this.onmousemove_child},"model-layer":{change:this.onchange_root_model}},"(self)":{"(descendant)":{mousedown:this.onmousedown_origin}}}}},{key:"onmousedown_origin",value:function(t,e){this.rootModel.set("translate",{x:20,y:20})}},{key:"onchange_root_model",value:function(t,e,n){if(t.scale&&(this.appScale=t.scale,this.hruler&&(this.hruler.set("scale",t.scale.x),this.vruler.set("scale",t.scale.y))),t.translate&&this.set({translate:{x:t.translate.x,y:t.translate.y}}),t.scale||t.translate){if(this.screen_coord=Fo(this),this.hruler){var r=this.model.translate,o=this.screen_coord,i=o.width,a=o.height;this.hruler.set(Bo(r,i,0,this.hruler)),this.vruler.set(Lo(r,0,a,this.vruler)),this.origin_rect.set(Co(r))}this._guide=null}this.invalidate()}},{key:"onmouseout_child",value:function(t){this._guide=null,this.invalidate()}},{key:"onmousemove_child",value:function(t,e){t.target&&"CANVAS"!==t.target.tagName?this.guide=null:this.guide=this.transcoordC2S(t.offsetX,t.offsetY)}}])&&Eo(e.prototype,n),r&&Eo(e,r),i}(mr);function Do(t){return(Do="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Uo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yo(t,e){return(Yo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Wo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ho(t);if(e){var o=Ho(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Go(this,n)}}function Go(t,e){return!e||"object"!==Do(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ho(t){return(Ho=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.register("guide-layer",No);var qo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Yo(t,e)}(i,t);var e,n,r,o=Wo(i);function i(){return Uo(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"ready",value:function(){var t=this.rootModel.get("translate");this.set("translate",t)}},{key:"render",value:function(t){}},{key:"contains",value:function(t,e){return!(this.app.mode!=te)}},{key:"eventMap",get:function(){return{"(root)":{"(self)":{keydown:this.onkeydown,keyup:this.onkeyup}}}}},{key:"onkeydown",value:function(t){32==t.keyCode&&void 0===this.before_mode&&(this.before_mode=this.app.mode,this.app.mode=te)}},{key:"onkeyup",value:function(t){32==t.keyCode&&(null!=this.before_mode&&(this.app.mode=this.before_mode),delete this.before_mode)}},{key:"ondragstart",value:function(t){this.last_position=this.transcoordC2S(t.offsetX,t.offsetY)}},{key:"ondragmove",value:function(t){var e=this.transcoordC2S(t.offsetX,t.offsetY),n=e.x,r=e.y;this.rootModel.move({x:n-this.last_position.x,y:r-this.last_position.y}),this.last_position=this.transcoordC2S(t.offsetX,t.offsetY)}}])&&zo(e.prototype,n),r&&zo(e,r),i}(mr);function Vo(t){return(Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ko(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qo(t,e,n){return(Qo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ti(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Jo(t,e){return(Jo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Zo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ti(t);if(e){var o=ti(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $o(this,n)}}function $o(t,e){return!e||"object"!==Vo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ti(t){return(ti=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.register("shift-layer",qo);var ei=function(t){return function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Jo(t,e)}(i,t);var e,n,r,o=Zo(i);function i(){return Xo(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"isHTMLElement",value:function(){return!0}},{key:"isShadowable",value:function(){return!0}},{key:"element",get:function(){return this._element},set:function(t){this._element=t}},{key:"tagName",get:function(){return this.get("type")}},{key:"setElementProperties",value:function(t){throw new Error("Not Implemented Yet")}},{key:"createElement",value:function(){var t=this;this.element=document.createElement(this.tagName),this.element&&(this.parent.isHTMLElement()?this.parent.element.appendChild(this.element):this.root.model_layer.overlay.appendChild(this.element),re.forEach((function(e){t.element.addEventListener(e,t.userInputEventHandler.bind(t))})),oe.forEach((function(e){t.element.addEventListener(e,t.userInputEventHandler.bind(t))})),this.oncreate_element&&this.oncreate_element(this.element))}},{key:"userInputEventHandler",value:function(t){t.stopPropagation()}},{key:"reposition",value:function(){this.element&&en(this)}},{key:"disposeElement",value:function(){var t=this.element;t&&t.parentElement&&t.parentElement.removeChild(t),delete this.element}},{key:"ready",value:function(){!this.element&&this.createElement(),this.parent.isHTMLElement()?this.parent.element.appendChild(this.element):this.root.model_layer.overlay.appendChild(this.element),this.setElementProperties(this.element),this.reposition()}},{key:"dispose",value:function(){this.disposeElement(this),Qo(ti(i.prototype),"dispose",this).call(this)}},{key:"hasTextProperty",get:function(){return!0}},{key:"textHidden",get:function(){return!0}},{key:"onchange",value:function(t,e){this.element&&this.setElementProperties(this.element),this.reposition()}},{key:"isDescendible",value:function(t){return t.isHTMLElement()}}])&&Ko(e.prototype,n),r&&Ko(e,r),i}(t)};function ni(t){return(ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ri(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ii(t,e){return(ii=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ai(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ci(t);if(e){var o=ci(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}function ui(t,e){return!e||"object"!==ni(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ci(t){return(ci=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var si={x:1,y:1},fi={boxSizing:"border-box",margin:"0px",position:"absolute",outline:"none"},li={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"layout",label:"layout",name:"layoutOption"}],help:"scene/component/container"},hi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ii(t,e)}(i,t);var e,n,r,o=ai(i);function i(){return ri(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"tagName",get:function(){return"div"}},{key:"nature",get:function(){return li}},{key:"setElementProperties",value:function(t){}},{key:"layout",get:function(){return _n.get(this.get("layout"))||Fn}},{key:"reposition",value:function(){if(this.element){var t=this.state,e=t.id,n=t.class,r=t.scale,o=void 0===r?si:r,i=this.rotation,a=void 0===i?0:i,u=this.hidden,c=this.bounds,s=c.left,f=c.top,l=c.width,h=c.height,p=l/2,y=h/2,d=this.element;d.hidden=u,e&&(d.id=e),n&&(d.className=n),Object.assign(d.style,fi,{left:s+"px",top:f+"px",width:"0px",height:"0px",backgroundColor:"transparent"});var v=this.delta(),g=(o&&o.x||1)*v.sx,m=(o&&o.y||1)*v.sy,b=(a||0)+v.theta,w=v.tx||0,x=v.ty||0;["-webkit-","-moz-","-ms-","-o-",""].forEach((function(t){d.style[t+"transform"]="translate(".concat(w+p,"px, ").concat(x+y,"px) rotate(").concat(b,"rad) translate(").concat(-p,"px, ").concat(-y,"px) scale(").concat(g,", ").concat(m,") perspective(1px)")}))}}}])&&oi(e.prototype,n),r&&oi(e,r),i}(ei(fr));function pi(t){return(pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function di(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vi(t,e,n,r){return(vi="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,n,r){var o,i=bi(t,e);if(i){if((o=Object.getOwnPropertyDescriptor(i,e)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,e)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,e,o)}else gi(r,e,n);return!0})(t,e,n,r)}function gi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mi(t,e,n){return(mi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=bi(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function bi(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ki(t)););return t}function wi(t,e){return(wi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ki(t);if(e){var o=ki(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _i(this,n)}}function _i(t,e){return!e||"object"!==pi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ki(t){return(ki=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.register("container",hi);var Ai=["left","top","width","height","rotation","animation"],Si=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wi(t,e)}(i,t);var e,n,r,o=xi(i);function i(){return yi(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"isGroup",value:function(){return!0}},{key:"get",value:function(t){return this._model[t]}},{key:"set",value:function(t,e){if("string"==typeof t)return this.set(gi({},t,e));var n=Ai.reduce((function(e,n){return t.hasOwnProperty(n)&&(e[n]=t[n]),e}),{});return mi(ki(i.prototype),"set",this).call(this,n)}},{key:"capture",value:function(t,e){var n=mi(ki(i.prototype),"capture",this).call(this,t,e);if(n!==this)return n}},{key:"bounds",get:function(){return mi(ki(i.prototype),"bounds",this)},set:function(t){if(this.__MUTATING__)!function(t,e,n,r,o){if(!vi(t,e,n,r||t)&&o)throw new Error("failed to set property")}(ki(i.prototype),"bounds",t,this,!0);else{var e=this.bounds,n=t.width/e.width,r=t.height/e.height;this.path=this.path.map((function(o){return{x:t.left+(o.x-e.left)*n,y:t.top+(o.y-e.top)*r}})),this.components&&this.components.forEach((function(t){if(t.mutable)t.mutatePath(null,(function(t){return t.map((function(t){return{x:t.x*n,y:t.y*r}}))}));else{var e=t.bounds,o=t.center,i={x:o.x*(1-n),y:o.y*(1-r)},a=e.width*(1-n),u=e.height*(1-r),c=-(i.x-a/2),s=-(i.y-u/2);t.bounds={left:e.left+c,top:e.top+s,width:e.width*n,height:e.height*r}}}))}}},{key:"focusible",get:function(){return!1}},{key:"hasTextProperty",get:function(){return!1}},{key:"calculateBounds",value:function(){this.clearCache(),this.__MUTATING__=!0,this.mutateBounds((function(t){var e=mn.union(this.components.map((function(t){return t.bounds})));return this.components.forEach((function(t){var n=t.bounds;t.bounds={left:n.left-e.left,top:n.top-e.top,width:n.width,height:n.height}})),{left:t.left+e.left,top:t.top+e.top,width:e.width,height:e.height}}),this),this.__MUTATING__=!1,this.parent.isGroup()&&this.parent.calculateBounds()}},{key:"render",value:function(t){}},{key:"postrender",value:function(t){var e=this.model,n=e.top,r=e.left;e.scale,t.translate(r,n),this.layout.drawables(this).forEach((function(e){e.draw(t)})),t.translate(-r,-n)}}])&&di(e.prototype,n),r&&di(e,r),i}(hi);function Oi(t){return(Oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ei(t){return function(t){if(Array.isArray(t))return Pi(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Pi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pi(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ji(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ri(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ti(t,e){return(Ti=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Mi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ci(t);if(e){var o=Ci(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ii(this,n)}}function Ii(t,e){return!e||"object"!==Oi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ci(t){return(Ci=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Bi(t,e,n,r){var o=t.selected,i=r?o.slice(0):[];r&&i.length>0?e=i[0].parent:e.isContainer()||(e=e.parent);var a=e.layout.capturables(e),u=!!e.layout.joinType;if(r&&n.selected.forEach((function(t){i.splice(i.indexOf(t),1)})),n.selected=[],a.forEach((function(t){t.capturable&&function(t,e,n){var r,o,i,a,u=e.sx,c=e.sy,s=e.ex,f=e.ey;if(u>s?(r=s,o=u):(r=u,o=s),c>f?(i=f,a=c):(i=c,a=f),n){var l=t.bounds,h=t.transcoordS2TR(l.left,l.top),p=t.transcoordS2TR(l.left+l.width,l.top+l.height),y=h.x,d=p.x,v=h.y,g=p.y,m=Math.min(r,y,o,d),b=Math.max(r,y,o,d),w=Math.min(i,v,a,g),x=Math.max(i,v,a,g);return!(b-m>Math.abs(o-r)+Math.abs(d-y))&&!(x-w>Math.abs(a-i)+Math.abs(g-v))}var _=t.path;if(!_)return pe("컴포넌트에 get path가 잘못 구현되어있음.",t),!1;for(var k=0;k<_.length;k++){var A=t.transcoordS2TR(_[k].x,_[k].y);if(r>A.x||o<A.x||i>A.y||a<A.y)return!1}return!0}(t,n,u)&&-1==i.indexOf(t)&&n.selected.push(t)})),i=i.concat(n.selected),o.length!==i.length)t.selected=i;else for(var c=0;c<i.length;c++)if(o[c]!=i[c]){t.selected=i;break}}function Li(t,e,n,r,o){o||Bi(t,e,n,r)}mn.register("group",Si);var Fi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ti(t,e)}(i,t);var e,n,r,o=Mi(i);function i(){return ji(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"ready",value:function(){var t=this.rootModel,e=t.get("translate"),n=t.get("scale");this.set("translate",e),this.set("scale",n)}},{key:"contains",value:function(t,e){return!1}},{key:"render",value:function(t){var e=this.selbox;if(e){var n=e.sx,r=e.sy,o=e.ex,i=e.ey,a=this.get("scale")||{x:1,y:1};t.beginPath(),t.rect(n,r,o-n,i-r),t.setLineDash([2/a.x,4/a.y]),t.lineWidth=1/a.x,t.strokeStyle="black",t.stroke()}}},{key:"eventMap",get:function(){return{"(root)":{"(self)":{keydown:this.onkeydown}},"model-layer":{"(self)":{change:this.onchange_root_model},"(all)":{dragstart:this.ondragstart_selbox,dragmove:this.ondragmove_selbox,dragend:this.ondragend_selbox,mousedown:this.onmousedown_comp,mouseup:this.onmouseup_comp}}}}},{key:"onkeydown",value:function(t,e){e.origin;var n=e.deliverer,r=n.selected;if(1!=r.length)return!1;var o=r[0],i=o.parent;if(!i||i===n)return!1;if("Tab"==t.code){if("Tab"!=t.code)return!1;var a=i.layout.capturables(i),u=a.indexOf(o);if(-1==u){if(!i.indexOf(o))return ye("Container not contains [",o,"] as a component"),!1;u=0}var c=a.length;t.shiftKey?u--:u++,o=a[(u+c)%c]}else{if(!i.layout.keyNavigate)return!1;o=i.layout.keyNavigate(i,o,t)||o}n.selected=[o],t.preventDefault()}},{key:"onchange_root_model",value:function(t,e,n){t.translate&&this.set("translate",t.translate),t.scale&&this.set("scale",t.scale)}},{key:"_pendingDecision",value:function(t){this.downpoint={x:t.offsetX,y:t.offsetY}}},{key:"_selectGroupItem",value:function(t,e){for(var n=this.selected.indexOf(t),r=t.parent;r.parent.isGroup();)r=r.parent;var o=[],i=!1,a=!1;if(this.selected.forEach((function(t){var e=t.parent;if(t!==r){for(;e.parent&&e.parent.isGroup();)e=e.parent;e===r&&(o.push(t),i=!0)}else a=!0})),i)if(e.shiftKey){if(-1!=n)return void this._pendingDecision(e);o.push(t)}else{if(-1!=n)return void this._pendingDecision(e);o=[t]}else{if(a)return void this._pendingDecision(e);if(e.shiftKey)if(this.selected.length>0){if(-1!=this.selected.indexOf(r)||this.selected[0].parent!==r.parent)return;o=[].concat(Ei(this.selected),[r])}else o=[r];else o=[r]}this.selected=o}},{key:"onmousedown_comp",value:function(t,e){var n=e.origin;if(this.downpoint=null,t.shiftKey){if(n.parent.isGroup())return void this._selectGroupItem(n,t);if(-1!=this.selected.indexOf(n))return void this._pendingDecision(t);var r=this.selected.filter((function(t){return!t.isRootModel()&&!!t.parent})),o=r.length>0&&r[0].parent;if(o&&o!==n.parent)return void(n.parent.isGroup()&&this._pendingDecision(t));r.push(n),this.selected=r}else{if(n.parent.isGroup())return void this._selectGroupItem(n,t);if(-1!=this.selected.indexOf(n))return;this.selected=[n]}}},{key:"onmouseup_comp",value:function(t,e){if(this.downpoint&&this.downpoint.x===t.offsetX&&this.downpoint.y===t.offsetY){var n=e.origin,r=this.selected.indexOf(n);if(-1==r&&n.parent.isGroup()&&(r=this.selected.indexOf(n.parent)),-1!==r&&t.shiftKey){var o=this.selected.slice();return r>-1&&o.splice(r,1),void(this.selected=o)}n.parent.isGroup()&&(this.selected=[n])}}},{key:"ondragstart_selbox",value:function(t,e){if(e.origin.stuck){var n=this.transcoordC2S(t.offsetX,t.offsetY),r=n.x,o=n.y;this.selbox={sx:r,sy:o,selected:[]}}}},{key:"ondragmove_selbox",value:function(t,e){var n=e.origin;if(n.stuck){var r=this.transcoordC2S(t.offsetX,t.offsetY),o=r.x,i=r.y;e.deliverer,this.selbox&&(this.selbox.ex=o,this.selbox.ey=i,Li(this,n,this.selbox,t.shiftKey),this.invalidate())}}},{key:"ondragend_selbox",value:function(t,e){e.origin.stuck&&(this.last_pos=null,this.selbox=null,Li(this,null,null,!1,!0),this.invalidate())}}])&&Ri(e.prototype,n),r&&Ri(e,r),i}(mr);function Ni(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}mn.register("selection-layer",Fi);var Di=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.params=Object.assign({},e)}var e,n,r;return e=t,(n=[{key:"excute",value:function(){}}])&&Ni(e.prototype,n),r&&Ni(e,r),t}();function Ui(t){return(Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wi(t,e){return(Wi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Gi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=qi(t);if(e){var o=qi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hi(this,n)}}function Hi(t,e){return!e||"object"!==Ui(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qi(t){return(qi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Vi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wi(t,e)}(i,t);var e,n,r,o=Gi(i);function i(){return zi(this,i),o.apply(this,arguments)}return e=i,r=[{key:"before",value:function(t){return t.map((function(t){return{component:t}}))}},{key:"after",value:function(t,e){e.execute(null,!1)}},{key:"around",value:function(t,e,n){e.call(n),t.execute(null,!1)}}],(n=[{key:"execute",value:function(){this.params.changes.forEach((function(t){return t.component.set(t.after)}))}}])&&Yi(e.prototype,n),r&&Yi(e,r),i}(Di);function Xi(t){return(Xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ki(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ji(t,e){return(Ji=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Zi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ta(t);if(e){var o=ta(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $i(this,n)}}function $i(t,e){return!e||"object"!==Xi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ta(t){return(ta=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ea(t){for(var e=0;t&&!t.isRootModel();)e+=t.get("rotation")||0,t=t.parent;return e%(2*Math.PI)}var na=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ji(t,e)}(i,t);var e,n,r,o=Zi(i);function i(){return Ki(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"execute",value:function(){this.params.changes.forEach((function(t){var e=t.component,n=t.to_container,r=t.to_index,o=t.to_left,i=t.to_top,a=(t.hint,function(t){if(t.isRootModel())return t.bounds;var e=t.bounds,n=t.rotatePoint,r=n;return{left:(r=t.transcoordS2T(r.x,r.y)).x-(n.x-e.left),top:r.y-(n.y-e.top),width:e.width,height:e.height}}(e)),u=ea(e);if(e.removeSelf(!n),e.bounds=a,e.set("rotation",u),n){e.set("rotation",function(t,e){return((t.get("rotation")||0)-ea(e))%(2*Math.PI)}(e,n));var c=function(t,e){if(e.isRootModel())return t.bounds;var n=t.bounds,r=t.rotatePoint,o=e.transcoordT2S(r.x,r.y),i=e.bounds;return{left:o.x-(r.x-n.left)-i.left,top:o.y-(r.y-n.top)-i.top,width:n.width,height:n.height}}(e,n);t.to_left=void 0!==o?o:c.left,t.to_top=void 0!==i?i:c.top,e.bounds={left:t.to_left,top:t.to_top,width:c.width,height:c.height},void 0===r?n.addComponent(e):n.insertComponentAt(e,r)}}))}}])&&Qi(e.prototype,n),r&&Qi(e,r),i}(Di);function ra(t,e){var n=mn.register(t.type);if(!n)return ye("Class not found",t.type),null;var r=new n(t,e);return t.components&&r.isContainer()&&(t.components.forEach((function(t){var n=ra(t,e);n&&r.addComponent(n)})),delete t.components),r.created(),r}function oa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ia=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.layer=e}var e,n,r;return e=t,(n=[{key:"draw",value:function(t,e,n){var r=e.bounds;0!=r.width&&0!=r.height&&(t.beginPath(),t.rect(r.left,r.top,r.width,r.height),t.clip(),t.beginPath(),t.strokeStyle="#f26522",t.lineWidth=4,t.shadowBlur=10,t.shadowColor="black",t.shadowOffsetX=0,t.shadowOffsetY=0,t.rect(r.left,r.top,r.width,r.height),t.stroke(),t.closePath())}}])&&oa(e.prototype,n),r&&oa(e,r),t}();function aa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ua=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.layer=e}var e,n,r;return e=t,(n=[{key:"draw",value:function(t,e,n){var r=e.bounds;t.beginPath(),t.rect(r.left,r.top,r.width,r.height),t.setLineDash([3/n.x,4/n.y]),t.lineWidth=1/n.x,t.strokeStyle="black",t.stroke(),t.setLineDash([]),t.closePath()}}])&&aa(e.prototype,n),r&&aa(e,r),t}();function ca(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var sa=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.layer=e}var e,n,r;return e=t,(n=[{key:"reset",value:function(){this.active=null}},{key:"selected",get:function(){return this.layer.selected}},{key:"contains",value:function(t,e,n,r){var o=this,i=n.controls;return!!i&&(i.every((function(i,a){return Math.abs(t-i.x)<=4/r.x&&Math.abs(e-i.y)<=4/r.y&&(o.active={component:n,index:a,handler:i.handler}),!o.active})),!!this.active)}},{key:"draw",value:function(t,e,n){var r=e.controls;r&&r.forEach((function(e,r){t.beginPath(),t.lineWidth=1/n.x,t.ellipse(e.x,e.y,4/n.x,4/n.y,0,0,2*Math.PI,!0),t.fillStyle="#ff5d72",t.fill(),t.strokeStyle="#fff",t.stroke()}))}},{key:"onevent",value:function(t,e){var n=this.active,r=n.handler,o=n.component,i=n.index,a=o.transcoordC2S(e.offsetX,e.offsetY);a=o.transcoordS2P(a.x,a.y),r&&"function"==typeof r[t]&&r[t](a,i,o)}},{key:"onmousedown",value:function(t){this.onevent("onmousedown",t)}},{key:"ondragstart",value:function(t){var e=this.active;e.changes=Vi.before([e.component]),this.onevent("ondragstart",t)}},{key:"ondragmove",value:function(t){this.onevent("ondragmove",t)}},{key:"ondragend",value:function(t){this.onevent("ondragend",t);var e=this.active,n=e.component,r=e.changes;Vi.after(r,n.app.commander),n.parent&&n.parent.calculateBounds&&n.parent.calculateBounds()}}])&&ca(e.prototype,n),r&&ca(e,r),t}();function fa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function la(t,e){return Math.atan2(e.y-t.y,e.x-t.x)}var ha=15*Math.PI/180,pa=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.layer=e}var e,n,r;return e=t,(n=[{key:"reset",value:function(){this.active=null}},{key:"selected",get:function(){return this.layer.selected}},{key:"contains",value:function(t,e,n,r){var o=this;return!!n.mutable&&(n.path.every((function(i,a){return Math.abs(t-i.x)<=4/r.x&&Math.abs(e-i.y)<=4/r.y&&(o.active={component:n,index:a}),!o.active})),!!this.active)}},{key:"draw",value:function(t,e,n){if(e.mutable&&!e.stuck){var r=e.path,o=this.active;r.forEach((function(r,i){t.beginPath(),t.ellipse(r.x,r.y,4/n.x,4/n.y,0,0,2*Math.PI,!0),t.lineWidth=1/n.x,t.strokeStyle="#656565",t.fillStyle="#fff",o&&o.component===e&&o.index===i&&(t.strokeStyle="#fa7703",o.toFill&&(t.fillStyle="#ffb80c")),t.fill(),t.stroke()}))}}},{key:"ondblclick",value:function(t){var e=this.active.component;if(e.pathExtendable){var n=e.path.slice();n.length<4||(n.splice(this.active.index,1),e.path=n)}}},{key:"onmousedown",value:function(t){this.active.toFill=!0}},{key:"ondragstart",value:function(t){var e=this.active;e.changes=Vi.before([e.component])}},{key:"ondragmove",value:function(t){var e,n,r=this.active,o=r.component,i=r.index,a=o.transcoordC2S(t.offsetX,t.offsetY);if(a=o.transcoordS2P(a.x,a.y),t.shiftKey){var u=o.path.length,c=o.isLine()&&0==i?o.path[1]:o.path[(i-1+u)%u];c=o.transcoordS2P(c.x,c.y);var s,f=0;u>2&&(o.isLine()?0==i?s=o.path[2]:1!=i&&(s=o.path[i-2]):s=o.path[(i-2+u)%u],s&&(f=la(s=o.transcoordS2P(s.x,s.y),c)));var l=Math.round((la(c,a)-f)/ha)*ha+f;a=function(t,e,n){return{x:Math.cos(e)*n+t.x,y:Math.sin(e)*n+t.y}}(c,l,(e=c,n=a,Math.sqrt((n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y))))}o.mutatePath(null,(function(t){t[i]=a}))}},{key:"ondragend",value:function(t){var e=this.active,n=e.component,r=e.changes;Vi.after(r,n.app.commander),n.parent&&n.parent.calculateBounds&&n.parent.calculateBounds()}}])&&fa(e.prototype,n),r&&fa(e,r),t}();function ya(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function da(t,e,n){var r,o,i=t.bounds,a=i.left,u=i.top,c=i.width,s=i.height;switch(e){case 0:r=a,o=u;break;case 1:r=a+c/2,o=u;break;case 2:r=a+c,o=u;break;case 3:r=a+c,o=u+s/2;break;case 4:r=a+c,o=u+s;break;case 5:r=a+c/2,o=u+s;break;case 6:r=a,o=u+s;break;case 7:r=a,o=u+s/2}var f=r,l=o,h=t.transcoordT2S(n.x,n.y);return{dx:h.x-f,dy:h.y-l}}function va(t,e,n,r,o,i){var a=t.bounds,u=a.left,c=a.top,s=a.width,f=a.height,l={left:u,top:c,width:s,height:f};switch(e){case 0:u+=r,c+=o,s-=r,f-=o;break;case 1:c+=o,f-=o;break;case 2:c+=o,s+=r,f-=o;break;case 3:s+=r;break;case 4:s+=r,f+=o;break;case 5:f+=o;break;case 6:u+=r,s-=r,f+=o;break;case 7:u+=r,s-=r}if(t.mutateBounds((function(e){return Math.abs(s)<=.001&&(s=.001),Math.abs(f)<=.001&&(f=.001),t.adjustResize({left:u,top:c,width:s,height:f},l,n)}),this),t.isContainer()&&t.layout.ABSOLUTE&&!t.isGroup()){var h=l.left-u,p=l.top-c;i?t.components.forEach((function(t){t.delta("tx",0),t.delta("ty",0),t.move({x:h,y:p})})):t.components.forEach((function(t){t.delta("tx",h),t.delta("ty",p)}))}else{var y=i&&t.parent;y&&y.isGroup()&&y.calculateBounds()}}function ga(t){var e=t.left,n=t.top,r=t.width,o=t.height,i=e+r/2,a=n+o/2,u=e+r,c=n+o;return[{x:e,y:n},{x:i,y:n},{x:u,y:n},{x:u,y:a},{x:u,y:c},{x:i,y:c},{x:e,y:c},{x:e,y:a}]}var ma=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.layer=e}var e,n,r;return e=t,(n=[{key:"reset",value:function(){this.active=null}},{key:"selected",get:function(){return this.layer.selected}},{key:"contains",value:function(t,e,n,r){var o=this;return!!n.resizable&&(ga(n.bounds).every((function(i,a){return Math.abs(t-i.x)<=4/r.x&&Math.abs(e-i.y)<=4/r.y&&(o.active={component:n,index:a}),!o.active})),!!this.active)}},{key:"draw",value:function(t,e,n){if(!e.isLine()){var r=e.bounds;if(t.beginPath(),t.rect(r.left,r.top,r.width,r.height),t.setLineDash([3/n.x,4/n.y]),t.lineWidth=1/n.x,t.strokeStyle="black",t.stroke(),t.setLineDash([]),e.resizable){var o=this.active;ga(r).forEach((function(r,i){t.beginPath(),t.rect(r.x-4/n.x,r.y-4/n.y,8/n.x,8/n.y),t.setLineDash([0,0]),t.strokeStyle="#656565",t.stroke(),t.fillStyle="#fff",o&&o.component===e&&o.index===i&&(t.strokeStyle="#fa7703",o.focus&&(t.fillStyle="#ffb80c")),t.fill(),t.stroke()}))}}}},{key:"onmousedown",value:function(t){this.active.focus=!0}},{key:"ondragstart",value:function(t){var e=this.active.component;this.active.bounds=e.bounds,this.active.boundsList=this.layer.selected.filter((function(t){return t.resizable})).map((function(t){return t.bounds}))}},{key:"ondragmove",value:function(t){var e=this.active,n=e.component,r=e.index,o=e.boundsList,i=e.bounds,a=this.layer.transcoordC2S(t.offsetX,t.offsetY);n.bounds=i;var u=da(n,r,a);this.layer.selected.filter((function(t){return t.resizable})).forEach((function(e,n){e.bounds=o[n],va(e,r,t.shiftKey,u.dx,u.dy,!1)}))}},{key:"ondragend",value:function(t){var e=this.active,n=e.component,r=e.index,o=e.boundsList,i=e.bounds,a=this.layer.transcoordC2S(t.offsetX,t.offsetY);n.bounds=i;var u=da(n,r,a);this.layer.selected.filter((function(t){return t.resizable})).forEach((function(e,n){e.bounds=o[n],va(e,r,t.shiftKey,u.dx,u.dy,!0)})),this.active.component.app.commander.execute(null,!1)}}])&&ya(e.prototype,n),r&&ya(e,r),t}();function ba(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var wa=2*Math.PI,xa=Math.PI/2;function _a(t,e){var n=t.bounds;return{x:n.left+n.width/2,y:n.top-20/e.y}}var ka=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.layer=e}var e,n,r;return e=t,(n=[{key:"reset",value:function(){this.active=null}},{key:"selected",get:function(){return this.layer.selected}},{key:"contains",value:function(t,e,n,r){if(!n.rotatable)return!1;var o=_a(n,r);return Math.abs(t-o.x)<=4/r.x&&Math.abs(e-o.y)<=4/r.y&&(this.active={component:n},!0)}},{key:"draw",value:function(t,e,n){if(e.rotatable){t.beginPath();var r=_a(e,n);t.lineWidth=1.5/n.x,t.moveTo(r.x,r.y+20/n.y),t.lineTo(r.x,r.y),t.strokeStyle="#656565",t.stroke(),t.beginPath(),t.ellipse(r.x,r.y,4/n.x,4/n.y,0,0,wa,!0),t.stroke(),t.fillStyle="#fff",t.fill();var o=this.active;o&&o.component===e&&(t.strokeStyle="#fa7703",t.stroke(),o.toFill&&(t.fillStyle="#ffb80c",t.fill()))}}},{key:"onmousedown",value:function(t){this.active.toFill=!0}},{key:"ondragstart",value:function(t){var e=this.active;e.component,e.start_rotation=e.component.get("rotation"),e.rotations=this.layer.selected.filter((function(t){return t.rotatable})).map((function(t){return t.get("rotation")}))}},{key:"ondragmove",value:function(t){var e=this.active.component,n=e.transcoordC2S(t.offsetX,t.offsetY);n=e.transcoordS2P(n.x,n.y);var r=e.rotatePoint,o=e.get("rotation")||0,i=Math.atan((r.y-n.y)/(r.x-n.x)),a=(i=r.x>=n.x?i-xa:xa+i)-o;this.layer.selected.filter((function(t){return t.rotatable})).forEach((function(e,n){var r=((e.get("rotation")||0)+a)%wa;e.set("rotation",e.adjustRotation(r,t.shiftKey))}))}},{key:"ondragend",value:function(t){var e=this.active,n=e.component;e.rotations,n.app.commander.execute(null,!1)}}])&&ba(e.prototype,n),r&&ba(e,r),t}();function Aa(t){return(Aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Oa(t,e){return(Oa=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ea(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ra(t);if(e){var o=Ra(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pa(this,n)}}function Pa(t,e){return!e||"object"!==Aa(e)&&"function"!=typeof e?ja(t):e}function ja(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ra(t){return(Ra=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ta=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Oa(t,e)}(i,t);var e,n,r,o=Ea(i);function i(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),n=o.call(this,t,e);var r=new pa(ja(n)),a=new sa(ja(n)),u=new ma(ja(n)),c=new ka(ja(n));return n._modelers=[r,a,u,c],n._control_mode_modelers=[a,r,u,c],n.focusOutline=new ia(ja(n)),n.groupOutline=new ua(ja(n)),n._reversed_modelers=n._modelers.slice().reverse(),n._control_mode_reverse_modelers=n._control_mode_modelers.slice().reverse(),n}return e=i,(n=[{key:"modelers",get:function(){return this._control_mode?this._control_mode_modelers:this._modelers}},{key:"reversedModelers",get:function(){return this._control_mode?this._control_mode_reverse_modelers:this._reversed_modelers}},{key:"ready",value:function(){var t=this.rootModel,e=t.get("translate"),n=t.get("scale");this.set("translate",e),this.set("scale",n)}},{key:"contains",value:function(t,e){if(this._state_dragging)return!0;this.modelers.forEach((function(t){return t.reset()}));for(var n=this.selected.filter((function(t){return!!t.parent})),r=this.get("scale")||{x:1,y:1},o=0;o<n.length;o++)for(var i=n[o],a=i.transcoordT2S(t,e),u=0;u<this.modelers.length;u++){var c=this.modelers[u];if(c.contains(a.x,a.y,i,r))return this.currentModeler=c,!0}return!1}},{key:"_componentDrawer",value:function(t,e,n,r){var o=[],i=e.parent;if(e.isRootModel())return t.save(),r(t,e,n),void t.restore();for(;i&&!i.isRootModel();)o.push(i),i=i.parent;t.save(),o.reverse().forEach((function(e){var n=e.rotatePoint;t.translate(n.x,n.y);var r=e.get("scale");r&&t.scale(r.x,r.y),t.rotate(e.get("rotation")),t.translate(-n.x,-n.y);var o=e.bounds;t.translate(o.left,o.top)}));var a=e.rotatePoint;t.translate(a.x,a.y);var u=e.get("scale");u&&t.scale(u.x,u.y),t.rotate(e.get("rotation")),t.translate(-a.x,-a.y),r(t,e,n),t.restore()}},{key:"prerender",value:function(t){var e=this.model,n=e.translate,r=e.scale,o=void 0===r?{x:1,y:1}:r,i=e.rotation;t.save(),t.beginPath(),t.clearRect(0,0,t.canvas.width,t.canvas.height),t.rect(0,0,t.canvas.width,t.canvas.height),t.fillStyle="black",t.globalAlpha=.5,t.fill(),t.restore(),n&&t.translate(n.x*ne,n.y*ne),t.scale(o.x*ne,o.y*ne),i&&t.rotate(i),t.clearRect(0,0,this.rootModel.get("width"),this.rootModel.get("height"))}},{key:"render",value:function(t){var e=this;t.beginPath();var n=this.get("scale")||{x:1,y:1},r=this.selected.filter((function(t){return!!t.parent}));if(this.focused&&this._componentDrawer(t,this.focused,n,(function(t,n,r){e.focusOutline.draw(t,n,r)})),r.length>0&&r[0].parent.isGroup()){for(var o=r[0].parent;o.parent.isGroup();)o=o.parent;this._componentDrawer(t,o,n,(function(t,n,r){e.groupOutline.draw(t,n,r)}))}r.forEach((function(r){e._componentDrawer(t,r,n,(function(t,n,r){e.reversedModelers.forEach((function(e){return e.draw(t,n,r)}))}))}))}},{key:"eventMap",get:function(){return{"model-layer":{"(all)":{change:this.onchange_model,wheel:this.onwheel_scale,drop:this.ondrop}},"(root)":{"(self)":{selected:this.onselected,keydown:this.onkeydown,keyup:this.onkeyup}}}}},{key:"onkeydown",value:function(t){"Alt"==t.key&&(this._control_mode=!0,this.invalidate())}},{key:"onkeyup",value:function(t){"Alt"==t.key&&(this._control_mode=!1,this.invalidate())}},{key:"onselected",value:function(t,e){this.invalidate()}},{key:"onchange_model",value:function(t,e,n){n.origin===n.deliverer&&(t.translate&&this.set("translate",t.translate),void 0!==t.rotation&&this.set("rotation",t.rotation),t.scale&&this.set("scale",t.scale)),this.invalidate()}},{key:"ondblclick",value:function(t){"function"==typeof this.currentModeler.ondblclick&&this.currentModeler.ondblclick(t),this.invalidate()}},{key:"onmousedown",value:function(t){this.currentModeler.onmousedown(t),this.invalidate()}},{key:"onmouseup",value:function(t){"function"==typeof this.currentModeler.onmouseup&&this.currentModeler.onmouseup(t),this.invalidate()}},{key:"onmouseenter",value:function(t,e){this.invalidate()}},{key:"onmouseleave",value:function(t,e){this.invalidate()}},{key:"ondragstart",value:function(t){this.currentModeler.ondragstart(t),this._state_dragging=!0}},{key:"ondragmove",value:function(t){this.currentModeler.ondragmove(t),this.invalidate()}},{key:"ondragend",value:function(t){this._state_dragging=!1,this.currentModeler.ondragend(t),this.invalidate()}},{key:"ondrop",value:function(t,e){var n=this,r=e.origin,o=t.dataTransfer.files;if(!(o.length<1)){var i=this.rootModel.transcoordC2S(t.offsetX,t.offsetY),a=this.rootModel;Promise.all(Array.from(o).map((function(t){return new Promise((function(e,n){var r=new FileReader;r.addEventListener("loadend",(function(t){e(r.result)})),["error","abort"].forEach((function(t){return r.addEventListener(t,(function(t){n(t)}))})),r.readAsDataURL(t)}))}))).then((function(e){if(t.altKey)return Vi.around(n.app.commander,(function(){r.ondropfile(o,e)})),void(n.selected=[r]);var u=[],c=e.map((function(t,e){var n,r=o[e].type,c=o[e].name;return r.startsWith("image/")?(n=ra({type:r.startsWith("image/gif")?"gif-view":"image-view",top:0,left:0,width:200,height:200,src:t},a.app),u.push(new Promise((function(e,r){var o=new Image;o.src=t,o.onload=function(){n.set({width:o.width,height:o.height}),e()},o.onerror=function(t){r(t)}})))):r.startsWith("audio/")?n=ra({type:"audio",top:0,left:0,width:100,height:100,src:t},a.app):r.startsWith("vnd.ms-excel/")||/\.xlsx?$/.test(c)?n=ra({type:"excel",top:0,left:0,width:100,height:100,src:t},a.app):console.log("droped file",o[e]),n&&(n.center=i,i.x+=50,i.y+=50),n})).filter((function(t){return t})).map((function(t){return{component:t,to_container:a}}));c.length>0&&Promise.all(u).then((function(){n.app.commander.execute(new na({changes:c})),n.selected=c.map((function(t){return t.component}))}),(function(t){console.error(t)}))}),(function(t){console.error(t)}))}}},{key:"onwheel_scale",value:function(t,e){if(0!=t.deltaY||0!=t.deltaX){var n=e.deliverer;if(t.shiftKey){if(-1!=navigator.userAgent.indexOf("Win"))var r=t.deltaY<0?1:-1;else r=t.deltaX<0?1:-1;Vi.around(this.app.commander,(function(){n.selected.forEach((function(t){var e=t.get("fontSize")||ie.FONT_SIZE;e<1&&(e=1),e+=r,t.set("fontSize",e)}))}))}else{r=t.deltaY<0?1:-1;var o=n.get("scale")||{x:1,y:1},i=n.get("translate"),a=t.offsetX,u=t.offsetY,c=n.transcoordC2S(a,u),s=.1*r,f={x:o.x+s,y:o.y+s};if(r<0&&o.x<.2||r>0&&o.x>10)return;n.set("scale",f);var l=n.transcoordC2S(a,u);n.set("translate",{x:i.x+(l.x-c.x)*f.x,y:i.y+(l.y-c.y)*f.y})}}}}])&&Sa(e.prototype,n),r&&Sa(e,r),i}(mr);function Ma(t){return(Ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ia(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ca(t,e){return(Ca=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ba(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Fa(t);if(e){var o=Fa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return La(this,n)}}function La(t,e){return!e||"object"!==Ma(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Fa(t){return(Fa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.register("modeling-layer",Ta);var Na=225*Math.PI/180,Da=135*Math.PI/180,Ua=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ca(t,e)}(i,t);var e,n,r,o=Ba(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e))._anim_alpha=1,n}return e=i,(n=[{key:"_drawArrow",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,o=n.x-e.x,i=n.y-e.y,a=Math.atan2(i,o),u=n.x+r*Math.cos(a+Na),c=n.y+r*Math.sin(a+Na),s=n.x+r*Math.cos(a+Da),f=n.y+r*Math.sin(a+Da);t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(n.x,n.y),t.moveTo(n.x,n.y),t.lineTo(u,c),t.moveTo(n.x,n.y),t.lineTo(s,f),t.stroke()}},{key:"animOnTargetChange",value:function(t){var e=this;t!==this._lastTargets&&(this._lastTargets=t,this._anim_alpha=1,this.animate({step:function(t){e._anim_alpha=1-t*t,e.invalidate()},duration:5e3,delta:"linear",options:{x:1},ease:"out"}).start())}},{key:"render",value:function(t){var e=this,n=this.targets&&this.targets.filter((function(t){return t.rootModel}));if(!n||0==n.length)return this._animate&&this._animate.stop(),void delete this._animate;var r=!1;n.forEach((function(n){var o=n.tag;if(t.globalAlpha*=e._anim_alpha,o){var i=o,a=n.bounds,u=a.left,c=a.top,s=n.transcoordS2C(u,c,n.rootModel),f=s.x,l=s.y;f=Math.max(f,0),l=Math.max(l-18,0),t.font="12px Arial";var h=t.measureText(i);t.fillStyle="#FF0000",t.fillRect(f,l,h.width+6,16),t.fillStyle="white",t.fillText(i,f+3,l+13),r=!0}t.lineWidth=2,t.strokeStyle="orange",n.mappings&&n.mappings.forEach((function(o){var i=e.root.findAll(o.target,n);i&&i.forEach((function(r){var o=n.center,i=r.center;o=n.transcoordS2C(o.x,o.y,n.rootModel),i=r.transcoordS2C(i.x,i.y,r.rootModel),e._drawArrow(t,o,i)})),r=!0}))})),r&&this.animOnTargetChange(this.targets)}},{key:"targets",get:function(){return this._targets},set:function(t){this._targets=t&&t.filter((function(t){return!t.isLayer()})),this.invalidate()}},{key:"_ontag",value:function(t){this.targets&&-1!==this.targets.lastIndexOf(t)||(this.targets=(this.targets||[]).concat(t))}},{key:"_offtag",value:function(t){if(this.targets){var e=this.targets.slice();e.splice(this.targets.lastIndexOf(t),1),this.targets=e}}},{key:"_resettag",value:function(){this.targets=[]}},{key:"ontagreset",value:function(t,e){this._resettag()}},{key:"ontag",value:function(t,e){this._ontag(e.origin)}},{key:"offtag",value:function(t,e){this._offtag(e.origin)}},{key:"onmouseenter",value:function(t,e){this._resettag(),this._ontag(e.origin)}},{key:"onmouseleave",value:function(t,e){this._resettag()}},{key:"eventMap",get:function(){return{"model-layer":{"(descendant)":{tag:this.ontag,tagreset:this.ontagreset,mouseenter:this.onmouseenter,mouseleave:this.onmouseleave}}}}}])&&Ia(e.prototype,n),r&&Ia(e,r),i}(mr);function za(t){var e=b()(t.hierarchy);return void 0!==e.id&&delete e.id,ra(e,t.app)}function Ya(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wa(t,e,n,r,o){for(var i in n){var a=n[i];if(d(i,r.origin,0,t))for(var u in a){var c=a[u];u==r.name&&(r.listener=e,c.apply(e,o))}}}function Ga(){var t=arguments,e=t[t.length-1],n=this.event_pump;n.listeners.forEach((function(r){Wa(n.deliverer,r.listener,r.cloned_handlers,e,t)}))}mn.register("tag-layer",Ua);var Ha=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),void 0===e.on)throw new Error("Deliverer should be a event handlable object.");this.deliverer=e,this.listeners=[]}var e,n,r;return e=t,(n=[{key:"start",value:function(){this.deliverer.on("(all)",Ga,{event_pump:this})}},{key:"stop",value:function(){this.deliverer.off("(all)",Ga)}},{key:"on",value:function(t,e){var n=Object.assign({},e);Object.keys(n).forEach((function(e){if(0==e.indexOf("?")){var r=n[e],o=e.substr(1),i=t.get(o);delete n[e],i?n[i]=r:ye("EventPump#on","variable #{selector} is not evaluated on listener")}})),this.listeners.push({listener:t,handlers:e,cloned_handlers:n})}},{key:"off",value:function(t,e){for(var n=0;n<this.listeners.length;n++){var r=this.listeners[n];r.listener!==t||e&&r.handlers!==e||this.listeners.splice(n,1)}}},{key:"clear",value:function(){this.listeners=[]}},{key:"dispose",value:function(){this.stop(),this.clear()}}])&&Ya(e.prototype,n),r&&Ya(e,r),t}();function qa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Va=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.eventMaps=[],this.root=e,e.eventMap&&this.add(e,e.eventMap)}var e,n,r;return e=t,(n=[{key:"root",get:function(){return this._root},set:function(t){this._root=t}},{key:"stop",value:function(){this.eventMaps.forEach((function(t){return t.eventPump.stop()}))}},{key:"add",value:function(t,e){var n=this;if(this.root){var r=function(r){var o=e[r];if("(self)"===r&&void 0===t.on)throw new Error("(self) selector not available when deliverer is not a event handlable object.");g(r,n.root,t).forEach((function(r){var i=new Ha(r);i.on(t,o),i.start(),n.eventMaps.push({eventPump:i,listener:t,handlerMap:e,deliverer:r})}))};for(var o in e)r(o)}}},{key:"remove",value:function(t,e){for(var n=this.eventMaps.slice(0),r=0;r<n.length;r++){var o=n[r];o.listener!==t||e&&o.handlerMap!==e||(this.eventMaps.splice(r,1),o.eventPump.dispose())}}},{key:"clear",value:function(){this.eventMaps.slice(0).forEach((function(t){return t.eventPump.dispose()})),this.eventMaps=[]}},{key:"dispose",value:function(){this.stop(),this.clear()}}])&&qa(e.prototype,n),r&&qa(e,r),t}();function Xa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ka(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qa(t,e,n){return e&&Ka(t.prototype,e),n&&Ka(t,n),t}var Ja=0,Za=1,$a=2,tu=0,eu=1,nu=2,ru={},ou=0;var iu=function(){function t(e){Xa(this,t),this._type=e.type,this._ctrlKey=e.ctrlKey,this._altKey=e.altKey,this._shiftKey=e.shiftKey,this._metaKey=e.metaKey;var n=function(t){if(t.touches){var e=t.touches[0];if(!e)return ru;var n=e.target.getBoundingClientRect();return ru={x:t.offsetX||e.clientX-(n.x||n.left),y:t.offsetY||e.clientY-(n.y||n.top)}}return{x:t.offsetX,y:t.offsetY}}(e);if(this._offsetX=n.x,this._offsetY=n.y,"wheel"==e.type)this.deltaX=e.deltaX,this.deltaY=e.deltaY,this.deltaZ=e.deltaZ;else if("drop"==e.type)this.dataTransfer=e.dataTransfer;else if(e.type.match(/^touch/)&&(this._scale=e.scale,this._touches=e.touches,this._changedTouches=e.changedTouches,null==this._scale)){var r=function(t){var e,n,r=0,o=0,i=0;if(1===t.touches.length)return i;Array.from(t.touches).forEach((function(t){e=null!=e?Math.min(t.screenX,e):t.screenX,r=Math.max(t.screenX,r),n=null!=n?Math.min(t.screenY,n):t.screenY,o=Math.max(t.screenY,o)}));var a=r-e||0,u=o-n||0;return i=Math.sqrt(Math.pow(a,2)+Math.pow(u,2))||0}(e);ou>0&&(this._scale=r/ou),ou=r}}return Qa(t,[{key:"type",get:function(){return this._type},set:function(t){this._type=t}},{key:"offsetX",get:function(){return this._offsetX}},{key:"offsetY",get:function(){return this._offsetY}},{key:"altKey",get:function(){return this._altKey}},{key:"ctrlKey",get:function(){return this._ctrlKey}},{key:"shiftKey",get:function(){return this._shiftKey}},{key:"metaKey",get:function(){return this._metaKey}},{key:"touches",get:function(){return this._touches}},{key:"changedTouches",get:function(){return this._changedTouches}},{key:"scale",get:function(){return this._scale}},{key:"stopPropagation",value:function(){this._stop_=!0}},{key:"isPropagationStopped",value:function(){return this._stop_}}]),t}();function au(t,e){return t.capture(e.offsetX,e.offsetY)}function uu(t,e,n){if(t&&t.app&&(!t.app.isViewMode||!t.hidden)){(n=new iu(n)).type=e;var r="on"+e;t[r]&&t[r](n),n.isPropagationStopped()||t.trigger(e,n)}}var cu=function(){function t(e,n){var r=this;Xa(this,t),this.container=e,this.html_element=n,this.status=Ja,this.last_target=null,this.gesture_handlers=re.map((function(t){return r.gestureHandlerBuilder(t)})),this.keyevent_handlers=oe.map((function(t){return r.keyeventHandlerBuilder(t)})),re.forEach((function(t,e){return n.addEventListener(t,r.gesture_handlers[e])})),oe.forEach((function(t,e){return n.addEventListener(t,r.keyevent_handlers[e])})),n.ondragover=this.gestureHandlerBuilder("dragover"),n.ondrop=this.gestureHandlerBuilder("drop"),n.tabIndex=1}return Qa(t,[{key:"dispose",value:function(){var t=this;this.last_enter_target&&uu(this.last_enter_target,"mouseleave",new CustomEvent("mouseleave")),re.forEach((function(e,n){return t.html_element.removeEventListener(e,t.gesture_handlers[n])})),oe.forEach((function(e,n){return t.html_element.removeEventListener(e,t.keyevent_handlers[n])})),delete this.gesture_handlers,delete this.keyevent_handlers,delete this.last_target}},{key:"gestureHandlerBuilder",value:function(t){var e=this["on".concat(t)].bind(this);return function(t){return e(new iu(t))&&t.preventDefault(),!1}}},{key:"keyeventHandlerBuilder",value:function(t){return this["on".concat(t)].bind(this)}},{key:"ondragover",value:function(t){return uu(au(this.container,t),t.type,t),!1}},{key:"ondrop",value:function(t){return uu(au(this.container,t),t.type,t),!1}},{key:"onclick",value:function(t){return uu(au(this.container,t),t.type,t),this.last_target=null,!1}},{key:"ondblclick",value:function(t){return uu(au(this.container,t),t.type,t),this.last_target=null,!1}},{key:"onkeydown",value:function(t){return this.container.trigger(t.type,t),!1}},{key:"onkeyup",value:function(t){return this.container.trigger(t.type,t),!1}},{key:"onmousemove",value:function(t){switch(this.status){case Za:var e=t.offsetX-this.__dragstart_e.offsetX,n=t.offsetY-this.__dragstart_e.offsetY;if(e*e+n*n<16)break;this.status=$a,uu(this.last_target,"dragstart",this.__dragstart_e),this.__dragmove_e=t,uu(this.last_target,"dragmove",t);break;case $a:this.__dragmove_e=t,uu(this.last_target,"dragmove",t);break;default:var r=au(this.container,t);this.last_enter_target!==r&&(this.last_enter_target&&uu(this.last_enter_target,"mouseleave",t),r&&uu(r,"mouseenter",t),this.last_enter_target=r),uu(r,t.type,t),this.last_target=r}return!1}},{key:"onmousedown",value:function(t){switch(this.status){case $a:uu(this.last_target,"dragend",t),this.last_target=null,this.status=Ja;break;default:var e=au(this.container,t);this.last_target=e,this.status=Za,this.__dragstart_e=t,uu(e,t.type,t)}return!1}},{key:"onmouseup",value:function(t){switch(this.status){case $a:uu(this.last_target,"dragend",t);break;default:uu(au(this.container,t),t.type,t)}return this.last_target=null,this.status=Ja,!1}},{key:"onmouseout",value:function(t){var e=au(this.container,t);switch(this.status){case $a:uu(this.last_target,"dragend",t);break;default:if(this.last_target&&this.last_target===e)return;this.last_enter_target&&(uu(this.last_enter_target,"mouseleave",t),delete this.last_enter_target)}return this.last_target=null,this.status=Ja,!1}},{key:"ontouchstart",value:function(t){var e=this,n=au(this.container,t);return this.last_target=n,this.status=eu,this.touchPoints||(this.touchPoints=[]),this.touchPoints.push(t.changedTouches[0]),this.holdTimer=setTimeout((function(){e.status=tu,uu(e.last_target,"hold",t),delete e.holdTimer}),500),uu(n,t.type,t),!1}},{key:"ontouchmove",value:function(t){var e=this;if(!t.touches||!t.changedTouches)return uu(this.last_target,"dragstart",t),uu(this.last_target,"dragmove",t),!1;var n=au(this.container,t);switch(this.status){case eu:Array.from(t.changedTouches).forEach((function(t){var n=e.touchPoints.find((function(e){return e.identifier===t.identifier}));if(n){var r=n.clientX-t.clientX,o=n.clientY-t.clientY;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))>=16?(e.status=nu,void(e.holdTimer&&(clearTimeout(e.holdTimer),delete e.holdTimer))):void 0}}));break;case nu:if(this.holdTimer&&(clearTimeout(this.holdTimer),delete this.holdTimer),2===t.changedTouches.length&&null!=t.scale&&1!==t.scale&&(t.scale<.9||t.scale>1.1))return uu(this.last_target,"pinch",t),!1;uu(this.last_target,"pan",t),n=this.last_target;break;default:this.last_enter_target!==n&&(this.last_enter_target&&uu(this.last_enter_target,"mouseleave",t),n&&uu(n,"mouseenter",t),this.last_enter_target=n),this.last_target=n}return uu(n,"touchmove",t),!1}},{key:"ontouchend",value:function(t){var e=au(this.container,t);switch(this.status){case nu:e=this.last_target;break;case eu:var n=performance.now(),r=n-this.touchedAt;this.holdTimer&&(clearTimeout(this.holdTimer),delete this.holdTimer,uu(e,r<500?"doubletap":"tap",t),this.touchedAt=n)}uu(e,"touchend",t);var o=this.touchPoints.findIndex((function(e){return e.identifier===t.changedTouches[0].identifier}));return this.touchPoints.splice(o,1),this.last_target=null,this.status=tu,!1}},{key:"onwheel",value:function(t){return uu(au(this.container,t),t.type,t),!1}}]),t}(),su={};var fu={register:function(t,e){su[t]=e},unregister:function(t){delete su[t]},get:function(t){return su[t]}};function lu(t){if(t.hasTextProperty&&!t.textHidden){var e=t.model,n=e.text,r=void 0===n?"":n,o=e.rotation,i=e.bold,a=void 0===i?ie.BOLD:i,u=e.italic,c=void 0===u?ie.ITALIC:u,s=e.textWrap,f=void 0===s?ie.TEXT_WRAP:s,l=e.fontFamily,h=void 0===l?ie.FONT_FAMILY:l,p=e.fontColor,y=void 0===p?ie.FONT_COLOR:p,d=e.textAlign,v=void 0===d?ie.TEXT_ALIGN:d,g=e.textBaseline,m=void 0===g?ie.TEXT_BASELINE:g,b=e.paddingTop,w=void 0===b?0:b,x=e.paddingBottom,_=void 0===x?0:x,k=e.paddingLeft,A=void 0===k?0:k,S=e.paddingRight,O=void 0===S?0:S,E=e.fontSize,P=void 0===E?ie.FONT_SIZE:E,j=e.lineHeight,R=void 0===j?1.2*P:j,T=t.bounds,M=T.left,I=T.top,C=T.width,B=T.height;t.textHidden=!0;var L=document.createElement("textarea");re.forEach((function(t){L.addEventListener(t,(function(t){t.stopPropagation()}),!0)})),oe.forEach((function(t){L.addEventListener(t,(function(t){t.stopPropagation()}),!0)}));var F=t.transcoordS2C(M,I),N=function(t){for(var e=0,n=1,r=t;r;){e+=r.get("rotation")||0;var o=r.get("scale")||{x:1,y:1},i=o.x,a=o.y;n*=Math.max(i,a)||1,r=r.parent}return{rotation:e,scale:n}}(t),D=N.rotation,U=N.scale,z=C-A-O,Y=z,W=B-w-_;switch(L.style.position="absolute",L.style.width=Y+"px",L.style.height=W+"px",L.style.paddingLeft=Math.max(A,0)+"px",L.style.paddingRight=O+"px",L.style.paddingTop=Math.max(w,0)+"px",L.style.paddingBottom=_+"px",L.value=r,L.style.fontFamily=h,L.style.fontSize=P+"px",L.style.lineHeight=R+"px",L.style.overflow="hidden",L.style.resize="none",L.style.outline="none",L.style.border=0,L.style.backgroundColor="transparent",L.style.display="inline-block",L.style.color=y,a&&(L.style.fontWeight="bold"),c&&(L.style.fontStyle="italic"),v){case"right":case"end":L.style.textAlign="right";break;case"justify":L.style.textAlign="justify";break;case"left":case"start":L.style.textAlign="left";break;case"center":default:L.style.textAlign="center"}var G=[a,c,P+"px",h].filter((function(t){return!!t})).join(" ");K(r);var H=t.root.target_element;H.appendChild(L),L.select();var q,V=!1;L.onkeydown=function(t){"Escape"!=t.code&&(t.shiftKey||"Enter"!=t.code&&"NumpadEnter"!=t.code)?setTimeout((function(){K(L.value)})):(V=q.skipUpdate="Escape"==t.code,document.createEvent?L.dispatchEvent(q):L.fireEvent(q.eventType,q))},document.createEvent?(q=document.createEvent("HTMLEvents")).initEvent("blur",!0,!1):(q=document.createEventObject()).eventType="blur";var X=t.root.selected;L.addEventListener("blur",(function e(n){t.root.selected=X,t.textHidden=!1,L.removeEventListener("blur",e,!1),L.parentElement&&L.parentElement.removeChild(L),H.focus(),n.skipUpdate||V||t.app.commander.execute(new Vi({changes:[{component:t,before:{text:r},after:{text:L.value}}]}))}),!1)}function K(e){var n={left:0,top:0},r=R*function(t,e,n,r){var o,i=t.getContext();return i.save(),i.font=n,o=Ae(i,e,r,t.get("textWrap")).length,i.restore(),o}(t,e,G,z);switch(L.style.height=r+"px",m){case"top":case"hanging":break;case"bottom":case"alphabetic":n.top=W-r;break;case"middle":default:n.top=W/2-r/2}if(!f){var o=function(t,e,n,r){var o=e.split("\n"),i=r,a=t.getContext();return a.save(),a.font=n,o.forEach((function(t){var e=a.measureText(t).width;e>i&&(i=e)})),a.restore(),i}(t,e,G,z);switch(L.style.width=o+"px",v){case"right":case"end":n.left=z-o;break;case"left":case"start":break;case"center":case"justify":default:n.left=(z-o)/2}}L.style.marginLeft=n.left+"px",L.style.marginTop=n.top+"px";var i="translate(".concat(F.x,"px, ").concat(F.y,"px) scale(").concat(U,") rotate(").concat(D,"rad) perspective(1px)");["-webkit-","-moz-","-ms-","-o-",""].forEach((function(t){L.style[t+"transform"]=i,L.style[t+"transform-origin"]="".concat(-n.left,"px ").concat(-n.top,"px")}))}}fu.register("text-editor",{"(root)":{"(self)":{keydown:function(t,e){e.origin;var n=e.deliverer.selected;return!(1!==n.length||!n[0].hasTextProperty)&&(("Enter"==t.code||"NumpadEnter"==t.code)&&(lu(n[0]),t.preventDefault(),!0))}}},"model-layer":{"(descendant)":{dblclick:function(t,e){lu(e.origin)}}}});var hu=x()((function(t,e,n){if(n)t.focused=null;else{var r=[];e[0].parent.isGroup()?t.focused=e[0].parent:(e.forEach((function(t){t.path.forEach((function(e){r.push(t.transcoordS2T(e.x,e.y))}))})),t.focused=t.capturePath(r,e))}}),300);function pu(t){return(pu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function du(t,e,n){return(du="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=wu(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function vu(t,e){return(vu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function gu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=wu(t);if(e){var o=wu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mu(this,n)}}function mu(t,e){return!e||"object"!==pu(e)&&"function"!=typeof e?bu(t):e}function bu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wu(t){return(wu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}fu.register("move-handler",{"model-layer":{"(descendant)":{dragstart:function(t,e){var n=e.origin,r=e.deliverer;if(!n.stuck){var o=r.selected,i=r.selected.filter((function(t){return!t.stuck}));if(o.length!==i.length&&(o=r.selected=i),0!=o.length){var a=o[0].transcoordC2S(t.offsetX,t.offsetY);a=o[0].transcoordS2P(a.x,a.y),this.last_pos=a,this.direction=0,r.focused=o[0].parent,t.altKey?(r.selected=o.map((function(t){var e=za(t);return t.parent.addComponent(e),e})),this.duplicates=r.selected.map((function(t){return{component:t}}))):this.changes=Vi.before(o)}}},dragmove:function(t,e){var n=e.origin,r=e.deliverer;if(!n.stuck){var o=r.selected;if(0!=o.length){var i=o[0].transcoordC2S(t.offsetX,t.offsetY),a=i.x,u=i.y,c=o[0].transcoordS2P(a,u);t.shiftKey?2==this.direction&&(this.direction=0):this.direction=2;var s=c.x-this.last_pos.x,f=c.y-this.last_pos.y;if(0==this.direction){if(s*s+f*f<25)return;Math.abs(s)>Math.abs(f)?this.direction=3:this.direction=4}3==this.direction?f=0:4==this.direction&&(s=0),o.forEach((function(t){t.move({x:s,y:f})})),this.last_pos=c,hu(r,o)}}},dragend:function(t,e){var n=e.origin,r=e.deliverer;if(!n.stuck){var o=r.selected;if(0!=o.length){var i=n.parent,a=r.focused||e.deliverer;if(this.changes&&!a.isGroup())if(a&&a!==i){var u=this.changes.map((function(t){var e=t.component;t.before;return{component:e,to_container:a}}));r.app.commander.execute(new na({changes:u}))}else Vi.after(this.changes,r.app.commander);else if(this.duplicates){this.duplicates=this.duplicates.map((function(t){return t.to_container=a,t}));var c=new na({changes:this.duplicates});r.app.commander.execute(c)}o.forEach((function(t){t.parent&&t.parent.calculateBounds&&t.parent.calculateBounds()})),this.last_pos=null,this.changes=null,this.duplicates=null,hu(r,o,!0)}}}}},"(root)":{"(self)":{keydown:function(t,e){var n=e.origin,r=e.deliverer,o={},i=t.shiftKey?n.rootModel.MPP:1;switch(t.which){case 37:o.x=-i,o.y=0;break;case 38:o.x=0,o.y=-i;break;case 39:o.x=i,o.y=0;break;case 40:o.x=0,o.y=i;break;default:return}var a=r.selected;Vi.around(r.app.commander,(function(){a.forEach((function(t){!t.stuck&&t.move(o)}))}))}}}});var xu=[];"undefined"!=typeof window&&window.addEventListener("resize",(function(){xu.forEach((function(t){t.resize()}))}));var _u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vu(t,e)}(i,t);var e,n,r,o=gu(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),n=o.call(this,Object.assign({type:"root",scale:{x:1,y:1}},t||{}),e),t=t||{},n.fitMode=t.model&&t.model.fitMode,n._app=e,n.target_element=t.target_element,n.rebuildContentModel(n.model.model),xu.push(bu(n)),n}return e=i,(n=[{key:"dispose",value:function(){this._app&&this._app.dispose(),du(wu(i.prototype),"dispose",this).call(this),this._disposeAllResources(),this.target_element=null,delete this._refresh_mapping_debouncer,Gr(this);var t=xu.indexOf(this);t>=0&&xu.splice(t,1)}},{key:"isRoot",value:function(){return!0}},{key:"app",get:function(){return this._app}},{key:"target_element",get:function(){return this._target_element},set:function(t){this._ua_event_handler&&(this._ua_event_handler.dispose(),delete this._ua_event_handler),t&&(t.style.position="absolute",t.style.cursor="default",t.style.overflow="hidden",this._ua_event_handler=new cu(this,t)),this.forEach((function(e){return e.target=t})),this._target_element=t}},{key:"variable",value:function(t,e){var n=this.findById(t);if(!n){var r=this.findTemplateFor(t);if(!r)return;n=ra(Object.assign(b.a(r.hierarchy),{id:t,templatePrefix:""}),this.app),this.model_layer.addComponent(n)}if(void 0===e)return n.data;n.data=e,n.touch()}},{key:"buildVariables",value:function(t){var e=this;!t||t instanceof Array||(t=Object.keys(t).map((function(e){var n=t[e];return n.key=e,n}))),t&&t.forEach((function(t,n){var r=e.indexMap[t.key];if(r)r.set({data:t.value,mappings:t.mappings&&t.mappings.slice(),dataType:t.dataType});else{var o=ra({type:"variable",id:t.key,left:-120,top:0+20*n,strokeStyle:"black",width:100,height:20,dataType:t.type,data:t.value,mappings:t.mappings&&t.mappings.slice()},e.app);e.model_layer.addComponent(o)}}))}},{key:"unitScale",get:function(){switch(this.model_layer&&this.model_layer.get("unit")){case"mm":case"cm":case"in":return this.app.PPM/10;case"px":default:return 1}}},{key:"addTemplate",value:function(t,e){var n=this.templateMap[t];n&&pe("Template replaced (duplicated)",t,e,n),this.templateMap[t]=e,delete this.templatePrefixes}},{key:"removeTemplate",value:function(t,e){var n=this.templateMap[t];n!==e?ye("Removing template failed (different)",t,e,n):delete this.templateMap[t],delete this.templatePrefixes}},{key:"findTemplateFor",value:function(t){this.templatePrefixes||(this.templatePrefixes=Object.keys(this.templateMap).sort().reverse());var e=this.templatePrefixes.find((function(e){return t.startsWith(e)}));if(e)return this.templateMap[e]}},{key:"addIndex",value:function(t,e){var n=this.indexMap[t];n&&pe("Index replaced (duplicated)",t,e,n),this.indexMap[t]=e}},{key:"removeIndex",value:function(t,e){var n=this.indexMap[t];n!==e?ye("Removing index failed (different)",t,e,n):delete this.indexMap[t]}},{key:"findById",value:function(t){return this.indexMap[t]}},{key:"findOrCreate",value:function(t){var e=this.indexMap[t];if(!e){var n=this.findTemplateFor(t);n&&(e=ra(Object.assign(b.a(n.hierarchy),{id:t,templatePrefix:""}),this.app),this.model_layer.addComponent(e))}return e}},{key:"resize",value:function(){this.components.forEach((function(t){t.resize&&t.resize()})),this.invalidate()}},{key:"_disposeAllResources",value:function(){var t=this;this.selected=[],this._focused=null,this._ready=!1,this.eventEngine&&(this.assist_handlers&&this.assist_handlers.forEach((function(e){t.eventEngine.remove(e)})),this.eventEngine.dispose(),delete this.eventEngine),this.assist_layers&&this.assist_layers.forEach((function(e){e.dispose(),t.removeComponent(e)})),delete this.assist_layers,this.model_layer&&this.model_layer.dispose(),this.model_layer&&this.removeComponent(this.model_layer),delete this.model_layer,this.indexMap={},this.templateMap={}}},{key:"rebuildContentModel",value:function(t){var e=this;this._disposeAllResources(),this.eventEngine=new Va(this),(t=t||{}).type="model-layer";var n=t.variables;delete t.variables,this.model_layer=ra(t,this.app),this.addComponent(this.model_layer),this.model_layer.target=this.target_element,n&&this.buildVariables(n),this.assist_layers=(this.model.layers||[]).map((function(t){var n=ra(t,e.app);return e.addComponent(n),n.target=e.target_element,n})),this.assist_handlers=(this.model.handlers||[]).map((function(t){var n={};return e.eventEngine.add(n,fu.get(t)),n})),this._ready=!0,this.traverse((function(t){return t.ready()}))}},{key:"root",get:function(){return this}},{key:"isReady",get:function(){return this._ready}},{key:"rootModel",get:function(){return this.model_layer}},{key:"stuck",get:function(){return!0}},{key:"data",get:function(){return Object.values(this.indexMap).reduce((function(t,e){return t[e.model.id]=e.data,t}),{})},set:function(t){for(var e in t){var n=this.findOrCreate(e);n&&(n.data=t[e])}}},{key:"selected",get:function(){return(this._selected||[]).filter((function(t){return t.parent}))},set:function(t){var e=this._selected;this._selected=t,this.trigger("selected",t,e)}},{key:"focused",get:function(){return this._focused},set:function(t){this._focused!==t&&(this._focused=t,this.invalidate())}},{key:"style",get:function(){return this._style},set:function(t){this._style=t,this._compiled_style=t}},{key:"hasTextProperty",get:function(){return!1}},{key:"render",value:function(){this.components.forEach((function(t){return t.draw()}))}},{key:"contains",value:function(t,e){return!0}},{key:"capturePath",value:function(t,e){return this.model_layer.capturePath(t,e)}},{key:"invalidate",value:function(){this.components.forEach((function(t){return t.invalidate()}))}},{key:"eventMap",get:function(){return{"(root)":{"(descendant)":{added:this.onadded,removed:this.onremoved,change:this.onchanged}}}}},{key:"refreshMappings",value:function(){if(!this._refresh_mapping_debouncer){if(this.disposed)return;this._refresh_mapping_debouncer=x.a((function t(e){e.executeMappings(),e.components&&e.components.forEach((function(e){return t(e)}))}),1e3)}this._refresh_mapping_debouncer(this.model_layer)}},{key:"_addTraverse",value:function(t){var e=this;t.components&&t.components.forEach((function(t){return e._addTraverse(t)}));var n=t.model,r=n.id,o=n.templatePrefix;r&&this.addIndex(r,t),o&&this.addTemplate(o,t);var i=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"object"!=P(e)&&(e={});for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((function(n){var r=function(r){"object"!=P(n[r])?e[r]=n[r]:n[r].length>0?e[r]=n[r].map((function(e){return"object"!=P(n[r])?e:t({},e)})):e[r]=t(e[r],n[r])};for(var o in n)r(o)})),e}({},t.eventMap,t.model.eventMap);this.eventEngine.add(t,i)}},{key:"_removeTraverse",value:function(t){var e=this;t.components&&t.components.forEach((function(t){return e._removeTraverse(t)}));var n=t.model,r=n.id,o=n.templatePrefix;r&&this.removeIndex(r,t),o&&this.removeTemplate(o,t),this.eventEngine.remove(t)}},{key:"onadded",value:function(t,e){this._addTraverse(e),this.refreshMappings(),this.invalidate()}},{key:"onremoved",value:function(t,e){this._removeTraverse(e),this.invalidate()}},{key:"onchanged",value:function(t,e,n){e.templatePrefix&&this.removeTemplate(e.templatePrefix,n.origin),t.templatePrefix&&this.addTemplate(t.templatePrefix,n.origin),e.id&&this.removeIndex(e.id,n.origin),t.id&&this.addIndex(t.id,n.origin),e.id==t.id&&e.class==t.class||this.refreshMappings()}}])&&yu(e.prototype,n),r&&yu(e,r),i}(fr);Object.assign(_u.prototype,{fit:function(t){var e=this.model_layer.model,n=e.width,r=e.height,o=e.fitMode,i=this.target_element,a=this.model_layer;if(this.fitMode=t||this.fitMode||o||"ratio",n&&r&&i&&i.offsetWidth&&i.offsetHeight){switch(this.fitMode){case"center":!function(t,e,n){var r=t.unitScale,o=e.model,i=o.width,a=o.height;e.set("scale",{x:r,y:r}),e.set("translate",{x:Math.max((n.offsetWidth-i*r)/2,0),y:Math.max((n.offsetHeight-a*r)/2,0)})}(this,a,i);break;case"both":!function(t,e,n){var r=e.model,o=r.width,i=r.height,a=n.offsetWidth,u=n.offsetHeight;e.set("scale",{x:a/o,y:u/i}),e.set("translate",{x:0,y:0})}(0,a,i);break;case"width":!function(t,e,n){var r=n.offsetWidth/e.get("width");e.set("scale",{x:r,y:r}),e.set("translate",{x:0,y:0})}(0,a,i);break;case"height":!function(t,e,n){var r=n.offsetHeight/e.get("height");e.set("scale",{x:r,y:r}),e.set("translate",{x:0,y:0})}(0,a,i);break;case"ratio":!function(t,e,n){var r=e.model,o=r.width,i=r.height,a=n.offsetWidth,u=n.offsetHeight,c=a/o,s=u/i,f=Math.min(c,s);e.set("scale",{x:f,y:f}),e.set("translate",{x:(a-o*f)/2,y:(u-i*f)/2})}(0,a,i);break;case"none":default:!function(t,e,n){var r=t.unitScale;e.set("scale",{x:r,y:r}),e.set("translate",{x:0,y:0})}(this,a)}this.resize()}}}),mn.memoize(_u.prototype,"unitScale",!1);var ku=13.3,Au=function(t){return void 0!==t&&(ku=t),ku};function Su(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ou=Math.PI/12,Eu=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._mode=e,this.screen=Au(),this._baseUrl="undefined"!=typeof window?window.location.origin:null,this._refProvider=n,this.isEditMode&&(this._rotateStep=Ou,this._rotateStepForced=!1)}var e,n,r;return e=t,(n=[{key:"dispose",value:function(){}},{key:"_calcScreen",value:function(){var t={width:screen.width,height:screen.height};this._PPI=function(t,e,n,r){t>0||(t=1),e>0||(e=1),r||(r="d");var o=("d"==r?Math.sqrt(t*t+e*e):"w"==r?t:e)/n;return o>0?Math.round(o):0}(t.width,t.height,this.screen),this._PPM=this._PPI/25.4}},{key:"refProvider",get:function(){return this._refProvider}},{key:"commander",get:function(){return this._commander},set:function(t){this._commander=t}},{key:"screen",get:function(){return this._screen},set:function(t){this._screen=t,this._calcScreen()}},{key:"DPPX",get:function(){return ne}},{key:"PPI",get:function(){return this._PPI}},{key:"PPM",get:function(){return this._PPM}},{key:"mode",get:function(){return this._mode},set:function(t){var e=this._mode;e!==t&&(this._mode=t,this.trigger("mode",t,e))}},{key:"isViewMode",get:function(){return this._mode==Zt}},{key:"isEditMode",get:function(){return this._mode==$t}},{key:"baseUrl",get:function(){return this._baseUrl},set:function(t){t&&this._baseUrl!=t&&(this._baseUrl=t)}},{key:"url",value:function(t){try{return(t.includes("$base_url")?new URL(t.replace("$base_url",this.baseUrl),this.baseUrl):new URL(t,location.origin)).href}catch(e){ye(e,t)}}},{key:"rotateStep",get:function(){return this._rotateStep},set:function(t){this._rotateStep=Number(t)||Ou}},{key:"rotateStepForced",get:function(){return this._rotateStepForced},set:function(t){this._rotateStepForced=!!t}}])&&Su(e.prototype,n),r&&Su(e,r),t}();ot(Eu.prototype,rt.withEvent);var Pu=["left","right","center","top","middle","bottom"];function ju(t){if(-1!=Pu.indexOf(t)){var e=this.selected.filter((function(t){return!t.stuck}));if(!(e.length<=1)){var n=this.app.commander;Vi.around(n,(function(){!function(t,e){for(var n=JSON.parse(JSON.stringify(e[0].bounds)),r=n.left+n.width,o=n.top+n.height,i=0;i<e.length;i++){var a=e[i].bounds;n.left=a.left>n.left?n.left:a.left,n.top=a.top>n.top?n.top:a.top,r=a.left+a.width>r?a.left+a.width:r,o=a.top+a.height>o?a.top+a.height:o}switch(n.width=r-n.left,n.height=o-n.top,t){case"left":for(var u=0;u<e.length;u++){var c=e[u].bounds;e[u].bounds={left:n.left,top:c.top,width:c.width,height:c.height}}break;case"center":for(var s=0;s<e.length;s++){var f=e[s].bounds;e[s].bounds={left:n.left+n.width/2-f.width/2,top:f.top,width:f.width,height:f.height}}break;case"right":for(var l=0;l<e.length;l++){var h=e[l].bounds;e[l].bounds={left:r-h.width,top:h.top,width:h.width,height:h.height}}break;case"top":for(var p=0;p<e.length;p++){var y=e[p].bounds;e[p].bounds={left:y.left,top:n.top,width:y.width,height:y.height}}break;case"middle":for(var d=0;d<e.length;d++){var v=e[d].bounds;e[d].bounds={left:v.left,top:n.top+n.height/2-v.height/2,width:v.width,height:v.height}}break;case"bottom":for(var g=0;g<e.length;g++){var m=e[g].bounds;e[g].bounds={left:m.left,top:o-m.height,width:m.width,height:m.height}}break;default:;}}(t,e)}))}}}var Ru=["VERTICAL","HORIZONTAL"];function Tu(t){if(-1!=Ru.indexOf(t)){var e=this.selected;if(!(e.length<=1)){var n=this.app.commander;Vi.around(n,(function(){!function(t,e){var n=e.filter((function(t){return!t.stuck})).slice(0);n.sort((function(e,n){var r=e.center,o=n.center;return"VERTICAL"===t?r.y-o.y:r.x-o.x}));for(var r=n.reduce((function(e,n){return e+("VERTICAL"===t?n.bounds.height:n.bounds.width)}),0),o=n[0].bounds,i=n[n.length-1].bounds,a=(("VERTICAL"===t?i.top+i.height-o.top:i.left+i.width-o.left)-r)/(n.length-1),u="VERTICAL"===t?o.top+o.height:o.left+o.width,c=1;c<n.length-1;c++){var s=n[c],f=s.bounds;u+=a,"VERTICAL"===t?(f.top=u,u+=f.height):(f.left=u,u+=f.width),s.bounds=f}}(t,e)}))}}}function Mu(t,e,n){this.app.commander.execute(new na({changes:[{component:t,to_container:e,to_index:n}]}))}function Iu(t){var e=this.selected.filter((function(t){return!t.stuck}));if(!(0==e.length||e[0].isRootModel()||e.length>1&&("forward"==t||"backward"==t))){var n,r=e[0].parent;if("forward"==t){var o=r.indexOf(e[0]);n=[{component:e[0],from_container:r,to_container:r,from_index:o,to_index:o+1}]}else if("backward"==t){var i=r.indexOf(e[0]);n=[{component:e[0],from_container:r,to_container:r,from_index:i,to_index:i-1}]}else n=e.filter((function(t){return t.parent===r})).sort((function(e,n){var o=r.indexOf(e)<r.indexOf(n);return"front"==t?o:!o})).map((function(e,n){r.indexOf(e);return{component:e,to_container:r,to_index:"front"==t?r.components.length-n-1:n}}));var a=new na({changes:n});this.app.commander.execute(a)}}function Cu(t,e,n){t instanceof Array||(t=[t]),n||(n=this.model_layer);var r=[];this.selected=t.map((function(t){try{return ra(t,n.app)}catch(t){return console.warn(t),!1}})).filter((function(t){return!!t})).map((function(t){var o=e.left,i=e.top,a=e.width,u=e.height,c=e.x,s=e.y,f=e.cx,l=e.cy;return isNaN(o)||isNaN(i)||isNaN(a)||isNaN(u)||(t.bounds={left:o,top:i,width:a,height:u}),isNaN(c)||isNaN(s)||t.move({x:c,y:s}),isNaN(f)||isNaN(l)||(t.center={x:f,y:l}),r.push({component:t,to_container:n}),t})),this.app.commander.execute(new na({changes:r}))}function Bu(){var t=[];if(this.selected=this.selected.filter((function(t){return!t.isRootModel()})).map((function(e){var n=za(e);return n.move({x:20,y:20}),t.push({component:n,to_container:e.parent}),n})),0!=t.length){var e=new na({changes:t});this.app.commander.execute(e)}}function Lu(){var t=this.selected;this.selected=[];for(var e=null,n=t.filter((function(t){return!t.isRootModel()&&(t.parent.focusible||t.parent.isGroup())})).map((function(t){return e||(e=t.parent),{component:t,to_container:null}})),r=function(){var t=[];if(e.components.filter((function(t){return!n.find((function(e){return e.component===t}))})).forEach((function(e){return t.push(e)})),t.length>1)return"break";var r=e.parent;t.forEach((function(t){return n.push({component:t,to_container:r})})),n.push({component:e,to_container:null}),e=r};e&&e.isGroup();){if("break"===r())break}n.length>0&&this.app.commander.execute(new na({changes:n})),e&&e.calculateBounds&&e.calculateBounds()}function Fu(t,e,n){switch(t){case"execute":case"redo":case"undo":case"command-reset":this.app.commander.on(t,e,n);break;case"selected":this.on(t,e,n);break;case"mode":this.app.on(t,e,n);break;default:this.on(t,e,n)}}function Nu(t,e,n){switch(t){case"execute":case"redo":case"undo":case"command-reset":this.app.commander.once(t,e,n);break;case"selected":this.once(t,e,n);break;case"mode":this.app.once(t,e,n);break;default:this.once(t,e,n)}}function Du(t,e,n){switch(t){case"execute":case"redo":case"undo":case"command-reset":this.app?this.app.commander.off(t,e,n):this.off(t,e,n);break;case"selected":this.off(t,e,n);break;case"mode":this.app.off(t,e,n);break;default:this.off(t,e,n)}}function Uu(t){var e=this.target_element,n=t||this.fitMode,r=this;function o(t){r.fit(n),document.fullscreen||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement||["fullscreenchange","mozfullscreenchange","webkitfullscreenchange","MSFullscreenChange"].forEach((function(t){return document.removeEventListener(t,o)}))}["fullscreenchange","mozfullscreenchange","webkitfullscreenchange","MSFullscreenChange"].forEach((function(t){return document.addEventListener(t,o)})),e.requestFullScreen?e.requestFullScreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}var zu=0;function Yu(){var t=this.selected.filter((function(t){return!t.isRootModel()})).map((function(t){return t.hierarchy}));if(0!=t.length)return zu=0,JSON.stringify(t,null,2)}function Wu(){zu=0;var t=Yu.call(this);return Lu.call(this),t}function Gu(t){if(t)try{JSON.parse(t);zu++,Cu.call(this,JSON.parse(t),{x:15*zu,y:15*zu})}catch(e){pe(e,t)}}var Hu=function(){return{escape:function(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:e,mimeType:function(t){var n=e(t).toLowerCase();return(r="application/font-woff",{woff:r,woff2:r,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"})[n]||"";var r},dataAsUrl:function(t,e){return"data:"+e+";base64,"+t},isDataUrl:function(t){return-1!==t.search(/^(data:)/)},canvasToBlob:function(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):function(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),r=n.length,o=new Uint8Array(r),i=0;i<r;i++)o[i]=n.charCodeAt(i);e(new Blob([o],{type:"image/png"}))}))}(t)},resolveUrl:function(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var o=n.createElement("a");return n.body.appendChild(o),r.href=e,o.href=t,o.href},getAndEncode:function(t){$u.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());return new Promise((function(e){var n,r=new XMLHttpRequest;if(r.onreadystatechange=function(){if(4!==r.readyState)return;if(200!==r.status)return void(n?e(n):i("cannot fetch resource: "+t+", status: "+r.status));var o=new FileReader;o.onloadend=function(){var t=o.result.split(/,/)[1];e(t)},o.readAsDataURL(r.response)},r.ontimeout=function(){n?e(n):i("timeout of 30000ms occured while fetching resource: "+t)},r.responseType="blob",r.timeout=3e4,r.open("GET",t,!0),r.send(),$u.impl.options.imagePlaceholder){var o=$u.impl.options.imagePlaceholder.split(/,/);o&&o[1]&&(n=o[1])}function i(t){console.error(t),e("")}}))},uid:(t=0,function(){return"u"+("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)+t++}),delay:function(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}},asArray:function(t){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e},escapeXhtml:function(t){return t.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src=t}))},width:function(t){var e=n(t,"border-left-width"),r=n(t,"border-right-width");return t.scrollWidth+e+r},height:function(t){var e=n(t,"border-top-width"),r=n(t,"border-bottom-width");return t.scrollHeight+e+r}};var t;function e(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function n(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}(),qu=function(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(t,o,i){return function(){return!e(t)}()?Promise.resolve(t):Promise.resolve(t).then(n).then((function(e){var n=Promise.resolve(t);return e.forEach((function(t){n=n.then((function(e){return r(e,t,o,i)}))})),n}))},shouldProcess:e,impl:{readUrls:n,inline:r}};function e(e){return-1!==e.search(t)}function n(e){for(var n,r=[];null!==(n=t.exec(e));)r.push(n[1]);return r.filter((function(t){return!Hu.isDataUrl(t)}))}function r(t,e,n,r){return Promise.resolve(e).then((function(t){return n?Hu.resolveUrl(t,n):t})).then(r||Hu.getAndEncode).then((function(t){return Hu.dataAsUrl(t,Hu.mimeType(e))})).then((function(n){return t.replace(function(t){return new RegExp("(url\\(['\"]?)("+Hu.escape(t)+")(['\"]?\\))","g")}(e),"$1"+n+"$3")}))}}(),Vu=function(){return{resolveAll:function(){return t(document).then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))},impl:{readAll:t}};function t(){return Promise.resolve(Hu.asArray(document.styleSheets)).then((function(t){var e=[];return t.forEach((function(t){try{Hu.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(e){console.log("Error while reading CSS rules from "+t.href,e.toString())}})),e})).then((function(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return qu.shouldProcess(t.style.getPropertyValue("src"))}))})).then((function(e){return e.map(t)}));function t(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return qu.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}(),Xu=function(){return{inlineAll:function e(n){return n instanceof Element?function(t){var e=t.style.getPropertyValue("background");return e?qu.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}(n).then((function(){return n instanceof HTMLImageElement?t(n).inline():Promise.all(Hu.asArray(n.childNodes).map((function(t){return e(t)})))})):Promise.resolve(n)},impl:{newImage:t}};function t(t){return{inline:function(e){return Hu.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||Hu.getAndEncode).then((function(e){return Hu.dataAsUrl(e,Hu.mimeType(t.src))})).then((function(e){return new Promise((function(n,r){t.onload=n,t.onerror=r,t.src=e}))}))}}}}(),Ku={imagePlaceholder:void 0,cacheBust:!1};function Qu(t,e){return function(t){void 0===t.imagePlaceholder?$u.impl.options.imagePlaceholder=Ku.imagePlaceholder:$u.impl.options.imagePlaceholder=t.imagePlaceholder;void 0===t.cacheBust?$u.impl.options.cacheBust=Ku.cacheBust:$u.impl.options.cacheBust=t.cacheBust}(e=e||{}),Promise.resolve(t).then((function(t){return function t(e,n,r){return r||!n||n(e)?Promise.resolve(e).then((function(t){if(t instanceof HTMLCanvasElement)try{return Hu.makeImage(t.toDataURL())}catch(t){ye(t)}return t.cloneNode(!1)})).then((function(t){return o(e,t,n)})).then((function(t){return function(t,e){return e instanceof Element?Promise.resolve().then(n).then(r).then(o).then(i).then((function(){return e})):e;function n(){var n,r;n=window.getComputedStyle(t),r=e.style,n.cssText?r.cssText=n.cssText:function(t,e){Hu.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}(n,r)}function r(){[":before",":after"].forEach((function(n){!function(n){var r=window.getComputedStyle(t,n),o=r.getPropertyValue("content");if(""===o||"none"===o)return;var i=Hu.uid();e.className=e.className+" "+i;var a=document.createElement("style");a.appendChild(function(t,e,n){var r="."+t+":"+e,o=n.cssText?function(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}(n):function(t){return Hu.asArray(t).map((function(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")})).join("; ")+";"}(n);return document.createTextNode(r+"{"+o+"}")}(i,n,r)),e.appendChild(a)}(n)}))}function o(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function i(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))}}(e,t)})):Promise.resolve();function o(e,n,r){var o=e.childNodes;return 0===o.length?Promise.resolve(n):i(n,Hu.asArray(o),r).then((function(){return n}));function i(e,n,r){var o=Promise.resolve();return n.forEach((function(n){o=o.then((function(){return t(n,r)})).then((function(t){t&&e.appendChild(t)}))})),o}}}(t,e.filter,!0)})).then(Zu).then((function(t){var n=e,r=n.bgcolor,o=n.width,i=n.height,a=n.style,u=n.sx,c=void 0===u?1:u,s=n.sy,f=void 0===s?1:s,l=t.style;r&&(l.backgroundColor=r);o&&(l.width=o+"px");i&&(l.height=i+"px");l["margin-left"]="0px",l["margin-top"]="0px",["-webkit-","-moz-","-ms-","-o-",""].forEach((function(t){l[t+"transform"]="rotate(0rad) translate(0px, 0px) scale(".concat(c,", ").concat(f,") perspective(1px)")})),a&&Object.keys(a).forEach((function(t){l[t]=a[t]}));return t})).then((function(n){return function(t,e,n){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(Hu.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+n+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}(n,e.width||Hu.width(t),e.height||Hu.height(t))}))}function Ju(t,e){return Qu(t,e).then(Hu.makeImage).then(Hu.delay(100)).then((function(n){var r=function(t){var n=document.createElement("canvas");e.width,e.height;if(n.width=e.width||Hu.width(t),n.height=e.height||Hu.height(t),e.bgcolor){var r=n.getContext("2d");r.fillStyle=e.bgcolor,r.fillRect(0,0,n.width,n.height)}return n}(t);return r.getContext("2d").drawImage(n,0,0),r}))}function Zu(t){return Xu.inlineAll(t).then((function(){return t}))}var $u={toSvg:Qu,toPng:function(t,e){return Ju(t,e||{}).then((function(t){return t.toDataURL()}))},toJpeg:function(t,e){return Ju(t,e=e||{}).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))},toBlob:function(t,e){return Ju(t,e||{}).then(Hu.canvasToBlob)},toPixelData:function(t,e){return Ju(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,Hu.width(t),Hu.height(t)).data}))},impl:{fontFaces:Vu,images:Xu,util:Hu,inliner:qu,options:{}}},tc=$u;function ec(t,e,n,r){var o=this.model_layer,i=o._overlay;return new Promise((function(a,u){if(o){var c=o.get("width"),s=o.get("height");n=n||c,r=r||s;var f=o.get("translate"),l=o.get("scale"),h=Math.min(n/c,r/s);n=c*h,r=s*h,o.set("translate",{x:0,y:0}),o.set("scale",{x:h/ne,y:h/ne});var p=mn.createCanvas(n,r),y=p.getContext("2d");if(o.draw(y),o.set("translate",f),o.set("scale",l),!i)return a(p.toDataURL(t,e)),void(p=null);tc.toPng(i,{sx:h,sy:h,width:n,height:r}).then((function(o){var i=new Image;i.onload=function(){y.drawImage(i,0,0,n,r),a(p.toDataURL(t,e)),p=null},i.src=o}),(function(n){pe(n),a(p.toDataURL(t,e)),p=null}))}else u("No target model")}))}function nc(){var t=this.selected.filter((function(t){return!!t.parent&&!t.stuck}));if(!(t.length<2)){var e=t[0].parent,n=[],r=t.sort((function(t,n){return e.components.indexOf(t)-e.components.indexOf(n)}));r.forEach((function(t){n.push(t.bounds)}));var o=mn.union(n),i=t[0].transcoordP2S(o.left,o.top),a=ra({type:"group",left:(i=t[0].transcoordS2T(i.x,i.y)).x,top:i.y,width:o.width,height:o.height}),u=[{component:a,to_container:e}];r.forEach((function(t){u.push({component:t,to_container:a})})),this.app.commander.execute(new na({changes:u})),this.selected=[a]}}function rc(){if(0!==this.selected.length){var t=[],e=[];this.selected.forEach((function(n){if(n.isGroup()){var r=n.parent;n.components.forEach((function(n){t.push(n),e.push({component:n,to_container:r})})),e.push({component:n,to_container:null})}})),this.app.commander.execute(new na({changes:e})),this.selected=t}}function oc(){var t=this.selected;if(0!=t.length){var e=t.map((function(t){return t.bounds})),n=mn.union(e),r=n.left+n.width/2;t.map((function(t){t.symmetryX(r)}))}}function ic(){var t=this.selected;if(0!=t.length){var e=t.map((function(t){return t.bounds})),n=mn.union(e),r=n.top+n.height/2;t.map((function(t){t.symmetryY(r)}))}}function ac(){Vi.around(this.app.commander,oc,this)}function uc(){Vi.around(this.app.commander,ic,this)}function cc(t,e,n){var r=this.findAll(t,n);return r.forEach((function(t){t.set(e)})),r}function sc(t){Vi.around(this.app.commander,t)}function fc(){return Object.values(this.indexMap).map((function(t){var e=t.model;return{key:e.id,value:e.data}})).sort((function(t,e){return t.key>e.key?1:-1}))}function lc(){return Object.values(this.indexMap).filter((function(t){return"variable"===t.get("type")})).map((function(t){var e=t.model,n=e.id,r=e.data;e.dataType;return{key:n,value:r}})).sort((function(t,e){return t.key>e.key?1:-1}))}function hc(t){var e=Object.values(this.indexMap).filter((function(t){return"variable"===t.get("type")})).reduce((function(t,e){return t[e.get("id")]=e,t}),{}),n=[];t.forEach((function(t){var r=e[t.key];r?(r.set("data",t.value),delete e[t.key]):n.push({type:"variable",id:t.key,left:0,top:0,width:100,height:20,data:t.value})})),Cu.call(this,n,{x:-100,y:0}),this.selected=Object.values(e),Lu.call(this)}function pc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var yc=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!(e=Number(e))||e<=0?(pe("TimeCapsule maxsize should be greater than 0.",e),this.maxsize=10):this.maxsize=e,this.reset(),n&&this.snapshot(n)}var e,n,r;return e=t,(n=[{key:"dispose",value:function(){this.reset()}},{key:"snapshot",value:function(t){this.q.splice(this.pos+1,this.q.length-this.pos+1,t),this.q.length>this.maxsize&&this.q.splice(0,this.q.length-this.maxsize),this.pos=this.q.length-1}},{key:"forward",value:function(){if(this.snapshot_taker&&this.snapshot_taker.take(),this.forwardable)return this.q[++this.pos];ye("Not forwardable.")}},{key:"backward",value:function(){if(this.snapshot_taker&&this.snapshot_taker.take(),this.backwardable)return this.q[--this.pos];ye("Not backwardable.")}},{key:"current",get:function(){if(-1!==this.pos)return this.q[this.pos];ye("Non state has been recorded.")}},{key:"length",get:function(){return this.q.length}},{key:"forwardable",get:function(){return this.pos<this.q.length-1}},{key:"backwardable",get:function(){return this.pos>0}},{key:"snapshot_taker",get:function(){return this._snapshot_taker},set:function(t){this._snapshot_taker=t}},{key:"reset",value:function(){this.q=[],this.pos=-1}}])&&pc(e.prototype,n),r&&pc(e,r),t}();function dc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var vc=x()((function(t){t.brake||t.take()}),1e3,{leading:!0,trailing:!1});function gc(t){!t.brake&&t.dirty&&vc(t)}var mc=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.brake=!1,this.dirty=!1,this.state_holder=e,this.timecapsule=n,this.timecapsule.snapshot_taker=this}var e,n,r;return e=t,(n=[{key:"dispose",value:function(){delete this.state_holder,delete this.timecapsule}},{key:"touch",value:function(){this.dirty=!0,gc(this)}},{key:"take",value:function(t){(this.dirty||t)&&(this.timecapsule.snapshot(this.state_holder.state),this.dirty=!1)}},{key:"brake",get:function(){return this._brake},set:function(t){this._brake=!!t,gc(this)}}])&&dc(e.prototype,n),r&&dc(e,r),t}();function bc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wc(t,e){var n=e.model_layer.get("scale"),r=e.model_layer.get("translate");if(t){var o=JSON.parse(t);o.scale=n,o.translate=r,e.rebuildContentModel(o)}}var xc=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e,this.timecapsule=new yc(20);var n=this;this.snapshot_taker=new mc({get state(){var t=n.container.model_layer.hierarchy;return JSON.stringify(t)}},this.timecapsule),this.snapshot_taker.take(!0)}var e,n,r;return e=t,(n=[{key:"dispose",value:function(){this.reset(),this.timecapsule&&this.timecapsule.dispose(),this.snapshot_taker&&this.snapshot_taker.dispose(),delete this.container,delete this.timecapsule,delete this.snapshot_taker}},{key:"execute",value:function(t,e){!1!==e&&t&&t.execute(),this.snapshot_taker.touch(),this.trigger("execute",t,!0,!1)}},{key:"undo",value:function(){this.timecapsule.backwardable&&(wc(this.timecapsule.backward(),this.container),this.trigger("undo",this.undoable(),this.redoable()))}},{key:"redo",value:function(){this.timecapsule.forwardable&&(wc(this.timecapsule.forward(),this.container),this.trigger("redo",this.undoable(),this.redoable()))}},{key:"undoable",value:function(){return this.timecapsule.backwardable}},{key:"redoable",value:function(){return this.timecapsule.forwardable}},{key:"reset",value:function(){this.timecapsule&&this.timecapsule.reset(),this.trigger("command-reset")}}])&&bc(e.prototype,n),r&&bc(e,r),t}();function _c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}ot(xc.prototype,rt.withEvent);var kc=new WeakSet,Ac=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._container=e,this.app=e.app,this._commander=new xc(this._container),this.app.commander=this._commander,kc.add(this)}var e,n,r;return e=t,r=[{key:"residents",get:function(){return kc}}],(n=[{key:"add",value:function(){return Cu.apply(this._container,arguments)}},{key:"duplicate",value:function(){return Bu.apply(this._container,arguments)}},{key:"remove",value:function(){return Lu.apply(this._container,arguments)}},{key:"animate",value:function(){return be.apply(this,arguments)}},{key:"fullscreen",value:function(){return Uu.apply(this._container,arguments)}},{key:"variable",value:function(t,e){return this._container.variable.apply(this._container,arguments)}},{key:"target",get:function(){return this._container.target_element},set:function(t){var e;if("string"==typeof t){if(!(e=document.getElementById(t)))throw"target element '".concat(t,"' is not exist");if(e.firstChild)throw"target element '".concat(t,"' already has children")}else e=t;e&&e.style&&(e.style.cursor="default"),this._container.target_element=e,this._container.invalidate()}},{key:"scale",get:function(){return this.root.get("scale")},set:function(t){this.root.set("scale",t)}},{key:"translate",get:function(){return this.root.get("translate")},set:function(t){this.root.set("translate",t)}},{key:"unit",get:function(){return this.root.get("unit")||"px"}},{key:"PPM",get:function(){return this.app.PPM}},{key:"PPI",get:function(){return this.app.PPI}},{key:"DPPX",get:function(){return this.app.DPPX}},{key:"unitScale",get:function(){return this._container.unitScale}},{key:"screen",get:function(){return this.app.screen},set:function(t){this.app.screen=t,this._container.resize()}},{key:"resize",value:function(){this._container.resize()}},{key:"dispose",value:function(){this._commander&&this._commander.dispose(),this._container&&this._container.dispose()}},{key:"selected",get:function(){return this._container.selected.slice()},set:function(t){this._container.selected=t}},{key:"select",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return this._container.selected=(e=this.root).findAll.apply(e,[t].concat(r)),this.selected}},{key:"commander",get:function(){return this._commander}},{key:"undo",value:function(){this.commander.undo()}},{key:"redo",value:function(){this.commander.redo()}},{key:"cut",value:function(){return Wu.apply(this._container,arguments)}},{key:"copy",value:function(){return Yu.apply(this._container,arguments)}},{key:"paste",value:function(){return Gu.apply(this._container,arguments)}},{key:"undoableChange",value:function(){return sc.apply(this._container,arguments)}},{key:"change",value:function(){return cc.apply(this.root,arguments)}},{key:"model",get:function(){return this.root.hierarchy},set:function(t){this._container.rebuildContentModel(t)}},{key:"root",get:function(){return this._container.model_layer}},{key:"findAll",value:function(){return this.root.findAll.apply(this.root,arguments)}},{key:"findFirst",value:function(){return this.root.findFirst.apply(this.root,arguments)}},{key:"findById",value:function(){return this._container.findById.apply(this._container,arguments)}},{key:"serialize",value:function(){return this.root.trim(),this.root.serialize.apply(this.root,arguments)}},{key:"align",value:function(){return ju.apply(this._container,arguments)}},{key:"distribute",value:function(){return Tu.apply(this._container,arguments)}},{key:"move",value:function(){return Mu.apply(this._container,arguments)}},{key:"zorder",value:function(){return Iu.apply(this._container,arguments)}},{key:"symmetryX",value:function(){return ac.apply(this._container,arguments)}},{key:"symmetryY",value:function(){return uc.apply(this._container,arguments)}},{key:"on",value:function(){return Fu.apply(this._container,arguments)}},{key:"once",value:function(){return Nu.apply(this._container,arguments)}},{key:"off",value:function(){return Du.apply(this._container,arguments)}},{key:"mode",get:function(){return this.app.mode},set:function(t){void 0!==t&&(this.app.mode=t)}},{key:"toDataURL",value:function(){return ec.apply(this._container,arguments)}},{key:"group",value:function(){return nc.apply(this._container,arguments)}},{key:"ungroup",value:function(){return rc.apply(this._container,arguments)}},{key:"fit",value:function(t){var e=this;this._container.once("redraw",(function(){return e._container.fit(t)})),this._container.invalidate()}},{key:"fitMode",get:function(){return this._container.fitMode}},{key:"ids",get:function(){return fc.apply(this._container)}},{key:"data",get:function(){return this._container.data},set:function(t){this._container.data=t}},{key:"variables",get:function(){return lc.apply(this._container)},set:function(t){hc.apply(this._container,[t])}},{key:"baseUrl",get:function(){return this.app.baseUrl},set:function(t){this.app.baseUrl=t}}])&&_c(e.prototype,n),r&&_c(e,r),t}();function Sc(t){var e=t.target,n=t.model,r=t.style,o=t.layers,i=void 0===o?[]:o,a=t.handlers,u=void 0===a?[]:a,c=t.mode,s=void 0===c?Zt:c,f=t.refProvider,l=t.baseUrl,h=t.fitMode,p=null;if("string"==typeof e){if(!(p=document.getElementById(e)))throw"target element '".concat(e,"' is not exist");if(p.firstChild)throw"target element '".concat(e,"' is not empty")}else p=e;p&&p.style&&(p.style.position="absolute",p.style.cursor="default",p.style.overflow="hidden");var y=new Eu(s,f);return y.baseUrl=l,new Ac(new _u({target_element:p,model:n,style:r,layers:i,handlers:u,fitMode:h},y))}var Oc=Math.sqrt(3);function Ec(t,e,n,r,o){var i,a,u,c,s=5+o,f=n.x,l=n.y,h=r.x,p=r.y;if(Math.abs(f-h)>s&&Math.abs(l-p)>s){var y=(p-l)/(h-f),d=l-y*f;if(Math.abs(e-(y*t+d))>s)return!1}return f>h?(a=f,i=h):(a=h,i=f),l>p?(c=l,u=p):(c=p,u=l),!(a+5<t)&&(!(i-5>t)&&(!(c+5<e)&&!(u-5>e)))}function Pc(t,e,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,o=0;o<n.length-1;o++)if(Ec(t,e,n[o],n[o+1],r))return!0;return!1}function jc(t,e,n,r){if("arrow"!=t.slice(-5))return n;n.x,n.y;var o=Math.atan2(r.y-n.y,r.x-n.x),i=1.5*e;return{x:n.x+Math.cos(o)*i,y:n.y+Math.sin(o)*i}}function Rc(t,e,n){var r=n.lineWidth,o=void 0===r?2:r,i=n.strokeStyle,a=void 0===i?"#000000":i,u=n.lineCap,c=void 0!==u&&u,s=n.alpha,f=void 0===s?1:s,l=n.begin,h=void 0===l?"none":l,p=n.end,y=void 0===p?"none":p,d=n.beginSize,v=void 0===d?"size5":d,g=n.endSize,m=void 0===g?"size5":g;if(("none"!=h||"none"!=y)&&(o=Number(o)||2,t.lineCap=c,t.lineWidth=o,t.strokeStyle=a,t.fillStyle=a,t.globalAlpha*=f,"none"!=h&&Tc(t,e[0],e[1],o,h,Mc(v,o)),"none"!=y)){var b=e.length;Tc(t,e[b-1],e[b-2],o,y,Mc(m,o))}}function Tc(t,e,n,r,o,i){var a=e.x,u=e.y,c=Math.atan2(n.y-u,n.x-a);switch(t.beginPath(),t.translate(a,u),t.rotate(c),o){case"oval":t.ellipse(0,0,i.X,i.Y,0,0,2*Math.PI),t.fill();break;case"diamond":t.moveTo(-i.X,0),t.lineTo(0,-i.Y),t.lineTo(i.X,0),t.lineTo(0,i.Y),t.fill();break;case"arrow":t.moveTo(0,0),t.lineTo(Oc*i.X,-i.Y),t.lineTo(Oc*i.X,i.Y),t.fill();break;case"sharp-arrow":t.moveTo(0,0),t.lineTo(Oc*i.X,-i.Y),t.lineTo(-i.X/1.5+Oc*i.X,0),t.lineTo(Oc*i.X,i.Y),t.fill();break;case"open-arrow":t.moveTo(Oc*i.X+r,-i.Y),t.lineTo(r,0),t.lineTo(Oc*i.X+r,i.Y),t.stroke()}t.rotate(-c),t.translate(-a,-u),t.closePath()}function Mc(t,e){var n={};switch(e*=1.2,t){case"size1":n.X=e,n.Y=e;break;case"size2":n.X=1.5*e,n.Y=e;break;case"size3":n.X=2*e,n.Y=e;break;case"size4":n.X=e,n.Y=1.5*e;break;case"size5":n.X=1.5*e,n.Y=1.5*e;break;case"size6":n.X=2*e,n.Y=1.5*e;break;case"size7":n.X=e,n.Y=2*e;break;case"size8":n.X=1.5*e,n.Y=2*e;break;case"size9":n.X=2*e,n.Y=2*e;break;default:n.X=1.5*e,n.Y=1.5*e}return n}function Ic(t){return(Ic="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Cc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Lc(t,e){return(Lc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Fc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Dc(t);if(e){var o=Dc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Nc(this,n)}}function Nc(t,e){return!e||"object"!==Ic(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Dc(t){return(Dc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Uc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Lc(t,e)}(i,t);var e,n,r,o=Fc(i);function i(){return Cc(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"isLine",value:function(){return!0}},{key:"drawPath",get:function(){return this.path}},{key:"render",value:function(t){var e=this.model,n=e.begin,r=void 0===n?"none":n,o=e.end,i=void 0===o?"none":o,a=e.lineWidth,u=this.drawPath;Rc(t,u,this.model),t.beginPath();var c=jc(r,a,u[0],u[1]),s=jc(i,a,u[u.length-1],u[u.length-2]);t.moveTo(c.x,c.y);for(var f=1;f<u.length-1;f++)t.lineTo(u[f].x,u[f].y);t.lineTo(s.x,s.y),this.drawStroke(t)}},{key:"contains",value:function(t,e){var n=this.model.lineWidth;return Pc(t,e,this.drawPath,n)}},{key:"resizable",get:function(){return!1}},{key:"mutable",get:function(){return!0}},{key:"rotatable",get:function(){return!1}},{key:"path",get:function(){var t=this.model;return[{x:t.x1,y:t.y1},{x:t.x2,y:t.y2}]},set:function(t){var e=t[0],n=t[1];this.set({x1:e.x,y1:e.y,x2:n.x,y2:n.y})}}])&&Bc(e.prototype,n),r&&Bc(e,r),i}(mn);function zc(t){return(zc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gc(t,e){return(Gc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Hc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Vc(t);if(e){var o=Vc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qc(this,n)}}function qc(t,e){return!e||"object"!==zc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vc(t){return(Vc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Uc.getTipNeckPos=jc,Uc.containedInPath=Pc,Uc.drawEndTips=Rc,mn.memoize(Uc.prototype,"path",!1),mn.register("line",Uc);var Xc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gc(t,e)}(i,t);var e,n,r,o=Hc(i);function i(){return Yc(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"is3dish",value:function(){return!0}},{key:"render",value:function(t){var e=this.model,n=e.cx,r=e.cy,o=e.rx,i=e.ry,a=e.startAngle,u=e.endAngle,c=e.anticlockwise;t.beginPath(),t.ellipse(n,r,Math.abs(o),Math.abs(i),0,a||0,u||2*Math.PI,c)}},{key:"path",get:function(){var t=this.model,e=t.cx,n=t.cy,r=t.rx,o=t.ry;return[{x:e-r,y:n-o},{x:e+r,y:n-o},{x:e+r,y:n+o},{x:e-r,y:n+o}]},set:function(t){var e=t[0],n=t[2];this.set({cx:e.x+(n.x-e.x)/2,cy:e.y+(n.y-e.y)/2,rx:(n.x-e.x)/2,ry:(n.y-e.y)/2})}},{key:"contains",value:function(t,e){var n=this.model,r=n.cx,o=n.cy,i=(t-r)/(2*n.rx-.5),a=(e-o)/(2*n.ry-.5);return i*i+a*a<.25}},{key:"outline",value:function(t){return function(t,e){var n=t.model,r=n.cx,o=n.cy,i=n.rx,a=n.ry,u=2*Math.PI*e,c=r+i*Math.cos(u),s=o+a*Math.sin(u);return t.transcoordS2T(c,s)}(this,t)}}])&&Wc(e.prototype,n),r&&Wc(e,r),i}(Er);function Kc(t){return(Kc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zc(t,e){return(Zc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=es(t);if(e){var o=es(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ts(this,n)}}function ts(t,e){return!e||"object"!==Kc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function es(t){return(es=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.memoize(Xc.prototype,"path",!1),mn.register("ellipse",Xc);var ns={ondragstart:function(t,e,n){n.mutatePath(null,(function(n){n.splice(e+1,0,t)}))},ondragmove:function(t,e,n){n.mutatePath(null,(function(n){n[e+1]=t}))},ondragend:function(t,e,n){}},rs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zc(t,e)}(i,t);var e,n,r,o=$c(i);function i(){return Qc(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"is3dish",value:function(){return!0}},{key:"render",value:function(t){var e=this.model.path,n=void 0===e?[]:e;if(!(n.length<=1)){t.beginPath(),t.moveTo(n[0].x,n[0].y);for(var r=1;r<n.length;r++)t.lineTo(n[r].x,n[r].y);t.closePath()}}},{key:"mutable",get:function(){return!0}},{key:"pathExtendable",get:function(){return!0}},{key:"path",get:function(){return this.model.path},set:function(t){this.set("path",t)}},{key:"contains",value:function(t,e){var n=this.model.path,r=!1;return n.forEach((function(o,i){var a=(i+n.length+1)%n.length,u=o.x,c=o.y,s=n[a].x,f=n[a].y;c>e!=f>e&&t<(s-u)*(e-c)/(f-c)+u&&(r=!r)})),r}},{key:"controls",get:function(){var t=this.path;return t.map((function(e,n){var r=t[n+1>=t.length?0:n+1];return{x:(e.x+r.x)/2,y:(e.y+r.y)/2,handler:ns}}))}}])&&Jc(e.prototype,n),r&&Jc(e,r),i}(Er);function os(t){return(os="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function is(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function as(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function us(t,e){return(us=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function cs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=fs(t);if(e){var o=fs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ss(this,n)}}function ss(t,e){return!e||"object"!==os(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fs(t){return(fs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.memoize(rs.prototype,"controls",!1),mn.register("polygon",rs);var ls={ondragstart:function(t,e,n){n.mutatePath(null,(function(n){n.splice(e,0,t)}))},ondragmove:function(t,e,n){n.mutatePath(null,(function(n){n[e]=t}))},ondragend:function(t,e,n){}},hs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&us(t,e)}(i,t);var e,n,r,o=cs(i);function i(){return is(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"pathExtendable",get:function(){return!0}},{key:"path",get:function(){return this.model.path},set:function(t){this.set("path",t)}},{key:"controls",get:function(){for(var t=this.path,e=[],n=0;n<t.length-1;n++){var r=t[n],o=t[n+1];0==n&&e.push({x:r.x,y:r.y,handler:ls}),e.push({x:(r.x+o.x)/2,y:(r.y+o.y)/2,handler:ls}),n==t.length-2&&e.push({x:o.x,y:o.y,handler:ls})}return e}}])&&as(e.prototype,n),r&&as(e,r),i}(Uc);function ps(t){return(ps="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ys(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ds(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vs(t,e,n){return(vs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ws(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function gs(t,e){return(gs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ms(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ws(t);if(e){var o=ws(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bs(this,n)}}function bs(t,e){return!e||"object"!==ps(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ws(t){return(ws=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.memoize(hs.prototype,"controls",!1),mn.register("polyline",hs);var xs={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"image-selector",label:"image-src",name:"src",property:{displayField:"id",displayFullUrl:!0,baseUrlAlias:"$base_url",defaultStorage:"scene-image",storageFilters:{type:Array,value:[{name:"category",value:"image"}]},useUpload:!0}},{type:"select",label:"cross-origin",name:"crossOrigin",property:{options:["","anonymous","use-credentials"]}}],"value-property":"src",help:"scene/component/image-view"},_s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gs(t,e)}(i,t);var e,n,r,o=ms(i);function i(){return ys(this,i),o.apply(this,arguments)}return e=i,r=[{key:"noimage",get:function(){return i.NOIMAGE||(i.NOIMAGE=new Image,i.NOIMAGE.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABIBAMAAAD7Se1QAAAAIVBMVEUAAABHcEwBAQEREREBAQEEBAQGBgYLCwsDAwMDAwMICAi6HF9tAAAAC3RSTlNNAEAERiMYCS41Eac10lYAAAEgSURBVHhe7dY9asQwEAXgh7DNertNiJy48pIitY3SB7bYdk0ukL1BDDmA9gZecoH4pmFQ3MQayUMguPBrNPD4wD9TCMvJmt3M/AtYwXOlXiWgqADVCUBD46MAnGhMBaCiUQmAm8VA/Eh/eWl9Fn5WcxD+OLuRrUYJDKLluwH2InACUgkoACSdADxQc50Bytadb9RkM0CT13TcvlCT1HFg8UTHvasuUVACCa3El6u2UdD8LFTlKhUFFgA+d3dj10aABkUN72N3jAADCrJq7PIIsPidcxBoTHIIAjMFmyCwmGYIAA1P9gFgfCANAOsDSccCDW+uLDB+kLGg94OkZoAGkwsDDAe2DOg5oPxAg03rBR88OHpBz4N8UVeHFSwma74BTW6Ge4rIRa4AAAAASUVORK5CYII="),i.NOIMAGE}}],(n=[{key:"dispose",value:function(){vs(ws(i.prototype),"dispose",this).call(this),this._offcanvas=null,this._image=null}},{key:"render",value:function(t){var e=this.state,n=e.left,r=e.top,o=e.width,a=e.height,u=e.isGray,c=void 0!==u&&u,s=e.alpha,f=void 0===s?1:s,l=e.src;if(this.prepareIf(!this._image&&l),t.beginPath(),t.globalAlpha*=f,this._image&&this._image.complete)if(c&&this._offcanvas)t.drawImage(this._offcanvas,n,r,o,a);else try{t.drawImage(this._image,n,r,o,a)}catch(e){t.drawImage(i.noimage,n,r,o,a)}else!this.app.isViewMode&&t.drawImage(i.noimage,n,r,o,a)}},{key:"nature",get:function(){return xs}},{key:"hasTextProperty",get:function(){return!1}},{key:"ready",value:function(){this.prepareIf(!this._image&&this.state.src)}},{key:"prepare",value:function(t,e){var n=this,r=this.state,o=r.src,i=r.crossOrigin;if(o){this._image=new Image;try{i&&(this._image.crossOrigin=i),this._image.src=this.app.url(o)||""}catch(t){return void e(t)}this._image.onload=function(){if(n.get("isGray")){var e=n._image.width,r=n._image.height;n._offcanvas=mn.createCanvas(e,r);var o=n._offcanvas.getContext("2d");o.drawImage(n._image,0,0);var i=function(t,e,n){try{var r=t.getImageData(0,0,e,n)}catch(t){return pe("Get Image Data Error: "+t.message),null}for(var o=r.data,i=0;i<e*n*4;i+=4){var a=o[i],u=o[i+1],c=o[i+2],s=parseInt((a+u+c)/3);r.data[i]=s,r.data[i+1]=s,r.data[i+2]=s}return r}(o,e,r);o.putImageData(i,0,0)}t(n)},this._image.onerror=function(t){n._image&&!n._image.currentSrc&&(n._image=null),e(t)}}else t(this)}},{key:"src",get:function(){return this.get("src")},set:function(t){this.set("src",t)}},{key:"onchange",value:function(t,e){(t.hasOwnProperty("src")||t.hasOwnProperty("isGray"))&&(this._offcanvas=null,this._image=null,this.prepareIf(t.src))}},{key:"ondropfile",value:function(t,e){for(var n=0;n<t.length;n++)if(t[n].type.startsWith("image/"))return void(this.src=e[n])}}])&&ds(e.prototype,n),r&&ds(e,r),i}(Hn(Er));function ks(t){return(ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function As(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ss(t,e){return(Ss=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Os(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ps(t);if(e){var o=Ps(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Es(this,n)}}function Es(t,e){return!e||"object"!==ks(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ps(t){return(Ps=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.register("image-view",_s);var js=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ss(t,e)}(n,t);var e=Os(n);function n(){return As(this,n),e.apply(this,arguments)}return n}(ei(Hn(mn))),Rs=n(228),Ts=n.n(Rs);function Ms(t){return(Ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Is(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function Cs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ls(t,e,n){return(Ls="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Us(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Fs(t,e){return(Fs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ns(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Us(t);if(e){var o=Us(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ds(this,n)}}function Ds(t,e){return!e||"object"!==Ms(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Us(t){return(Us=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var zs={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"src",name:"src"},{type:"checkbox",label:"play",name:"play"}],"value-property":"src",help:"scene/component/gif-view"},Ys=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fs(t,e)}(u,t);var e,n,r,o,i,a=Ns(u);function u(){return Cs(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"oncreate_element",value:(o=regeneratorRuntime.mark((function t(e){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=this.state,r=n.src,o=n.play,this.onchangesrc(r),this.onchangeplay(o);case 3:case"end":return t.stop()}}),t,this)})),i=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function a(t){Is(i,n,r,a,u,"next",t)}function u(t){Is(i,n,r,a,u,"throw",t)}a(void 0)}))},function(t){return i.apply(this,arguments)})},{key:"buildImg",value:function(){var t=this.element;t.innerHTML="";var e=document.createElement("img");return e.style.width="100%",e.style.height="100%",t.appendChild(e),e}},{key:"onchange",value:function(t,e){Ls(Us(u.prototype),"onchange",this).call(this,t,e),"src"in t&&this.onchangesrc(t.src),"play"in t&&this.onchangeplay(t.play)}},{key:"setElementProperties",value:function(t){}},{key:"onchangeplay",value:function(t){var e=this._superGif;e&&!e.get_loading()&&(t?e.play():e.pause())}},{key:"onchangesrc",value:function(t){var e=this,n=this.buildImg();t||(t="data:image/gif;base64,R0lGODlhYABIAPcAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICAkJCQoKCgsLCwwMDA0NDQ4ODg8PDxAQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZGRoaGhsbGxwcHB0dHR4eHh8fHyAgICEhISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BAQEFBQUJCQkNDQ0REREVFRUZGRkdHR0hISElJSUpKSktLS0xMTE1NTU5OTk9PT1BQUFFRUVJSUlNTU1RUVFVVVVZWVldXV1hYWFlZWVpaWltbW1xcXF1dXV5eXl9fX2BgYGFhYWJiYmNjY2RkZGVlZWZmZmdnZ2hoaGlpaWpqamtra2xsbG1tbW5ubm9vb3BwcHFxcXJycnNzc3R0dHV1dXZ2dnd3d3h4eHl5eXp6ent7e3x8fH19fX5+fn9/f4CAgIGBgYKCgoODg4SEhIWFhYaGhoeHh4iIiImJiYqKio+Pj5iYmKCgoKampqurq66urrCwsLGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrOzs7S0tLa2tre3t7m5ubu7u7+/v8DAwMHBwcPDw8XFxcfHx8vLy8/Pz9LS0tXV1dfX193d3eTk5Onp6fj4+Pz8/P7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v///////////////////////////////////////////////////////////////////////////////yH5BAkAAPUAIf47R2VuZXJhdGVkIGJ5IGpzZ2lmIChodHRwczovL2dpdGh1Yi5jb20vYW50aW1hdHRlcjE1L2pzZ2lmLykALAAAAABgAEgAAAj+AGcJHEiwoMGDCBMqXMiwocOHECNKnEixosWLGDNq3Mixo8ePIEOKHEmypMmR9VKqXMmypcuXMGPKnJkSIs2bOHPqZGlzp8+fQOv1DEq0KMyhRpMmRaq0KVCmTqPmhCq1qkyqLrFRSyYwGTVsVo1iZXmNa8Fk18ISHasSm1mDycCq/ck2JTWF1ObSfTjz7cFken3WFbow8M7BDA3rHOwXruKpfGXeTZg3qDVrUge7RRg3KLZjx+Q2HVyvLNy0QaMJjBaVdD2tZr2K/mmNIObRkR+n9AsYt0Pddg1WXppb8bWDx1CLLW74GcJnSl3TtDY8Zu2Et4tKl7n52eyWnxXvhl7+26jqrspbnlfIWjtz2gWPZV95neH8veU9NxZYfbfD3kFt99J6Bnmn0mQO9XfYezrVxxlmx0GUXIAM4hSeffsxBN1TFd5E4Ef3QZbfTg6CNJ5gHXJ3TEntLThiTh+KFCJNAqZU4kgAitjQTheepOBMNcZI0oQ6JpbTjSZtiNN2PZ400IxHpdiSc07G911M0iFZZYtAStnWilUeBGVLrlEZpmM0elmPlmfO8iOZXl4DZpsGEYmll2bSWWCXLwJXVY1+urhjoGEBSuiSah6K36CKtpZoo4s9CimielZq6aWYZqrpppx26umnoIZ6UkAAOw=="),n.setAttribute("rel:animated_src",t),n.setAttribute("rel:auto_play",0),this._superGif=new Ts.a({gif:n,progressbar_height:2}),this._superGif.load((function(){e._superGif.move_to(0),e.play&&e._superGif.play()}))}},{key:"ondropfile",value:function(t,e){for(var n=0;n<t.length;n++)if(/\.gif$/.test(t[n].name))return void(this.src=e[n])}},{key:"src",get:function(){return this.getState("src")},set:function(t){this.set("src",t)}},{key:"play",get:function(){return this.getState("play")},set:function(t){this.setState("play",t)}},{key:"nature",get:function(){return zs}},{key:"tagName",get:function(){return"div"}}])&&Bs(e.prototype,n),r&&Bs(e,r),u}(js);function Ws(t){return(Ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qs(t,e,n){return(qs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Qs(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Vs(t,e){return(Vs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Qs(t);if(e){var o=Qs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ks(this,n)}}function Ks(t,e){return!e||"object"!==Ws(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Qs(t){return(Qs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.register("gif-view",Ys);var Js={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"src",name:"src"},{type:"checkbox",label:"started",name:"started"},{type:"checkbox",label:"loop",name:"loop"}],"value-property":"src",help:"scene/component/audio"},Zs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vs(t,e)}(i,t);var e,n,r,o=Xs(i);function i(){return Gs(this,i),o.apply(this,arguments)}return e=i,r=[{key:"image",get:function(){return i.IMAGE||(i.IMAGE=new Image,i.IMAGE.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAAAP1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACzJYIvAAAAFHRSTlMA8BAwgNBgQKB/wCBwUJDg37CvXyUlBK8AABFYSURBVHja7NsBkqIwFIThTiAQgyBq3/+sm6p1tnamZkaTMhJJf1f4S/JeEIiIiIiIiIiIiIiIiEhD7Hg4BH84TpAKjJ4f3NFCtjVd+InXz2RTs+FXlxGylYHfcVfIJmb+YFWSLUyGVJKKBJJKUo+Rd6w63l/qzLuCkryO5fe0l2xk5mMWbe+v0fNBRqf7S3je6CipQ2ACr+dWcYEpzBFS1plpguatsnomMgdIQSOTuQ5SjmE6/UgK8szgdJIUM/FG41YlFmYJ2kkKsY5ZzAwBurHDk3WGeRY0bvYrGa1+rqNI22f7dS32ZnUK1GMr0eSK3mEc9dhKMxp+ZTo8kT2emOXS5LQ1kCxbJBocSd2k5PaIjMVzjWcdJPk9ooBnmzx1t5XbIxqBKpJ4NGTgzwKiGpK4do72gb+ZUMIYtCPm9WCPMsYTE5k2hq2ZvzujlCE1iRmwf3dvmRyKsT0T7b9I7HEPCpqCiqT2IIqaT1pI0noQZdlFC8l/PbYPAnRORT56VBEE6FXkb49agmByKhJ71BME6FsvEntUFQTdqekisUdlQWCXhovEHtUFAWbTapHYo8YgmFybO3vsUWcQYGmxSOxRbRAMprkisUfFQVKmrX18sxt7VB0ENjT1xir2qDxIwkFi3v89e+xRfxAMzfzzIfZ4hyAYDR9zwVuLPd4jCDrTwoLYGb5LEFi3/+E3rweR6urX20c/Fvls2Pvwm9mDSGIPhv8YPyGf3/eo9Ye7O8B2FIShAAooakEttex/rbODad5/yTHIAjqn505IQPv+Xz06dz+4VXORHEZcgAcB8updM8F6e25jBzwIkE07l+x8amMnPDp6nsNJ+BoZ7Q6F8egqAda9VEuRNlZjBzwYkMskdXR73okd8GBAJiKYjBcZKKqG9OiKDbgdfxJ5VhsBPDiQZhaouD3p4hfw4EAmwxisz3MSHwAPEmQ1TB1N+SmXWoAHC7JbZsWl/IxLLcCDBplNo3lrfMLsmwAPGmShAxX5/1vOEzjEz3iyfQ/hI36W4TctsUesOAifPdrQg8M++KYl95iCBkjI1r8634betBAPHZDTPFAmD3zLiHgogVTziMsahz0eIh5aIGHGRSJ2mFtHPR4iHhQIP2UvWGMf8wk74qEIEib7rLjPiBfxiAcCwp8V+Nae3uMdRhAPDIR/J5f/Q2DTcC+hIB7qIGEq3Ti9bx+sryMeAAgS70OK8G2kBD8L8QBAoLWU3g3vUVIc6D0txAMAsY+4jBWowXHO64gHBGKfYJ2T5qY1BxcL98BB+PQ+XiS9xxh9EQ8ChA6C5UXWIUoE9MBB8LVHQoS7ib8/dRn3sAcJ6bQRSdH96RDxIEH4QEX+AHF4LxHEAwUh12xyr1V8lwjiQYDYF8kuf1jluUQQDwrEvkhW8Wc6LhHUgwfhi4QPlHm7LRHawx4kpE191Dq8lgjhAYDQa1cftYrPEiE8OJDb40uqyzdQCA8WhAzL4G/PT4c3WrgHD2IfllGl53V37zsgHg5ApPNvVvq4Fn4spx4oiH1W3CwtEV+PDhEPJyBSkVX4aa7emkM83ICEKWpGM7wdvYCCeDgCEYpcwhLxczhEPFyBCEUWnRL5T6X59SBASBF+9l28TL5F7uEORCZyCUvEx+S7yT0cgoRVb9JaXLR1qUdfgksQ0fTbgmhFB20d8HAKEha14+F8f1sHPNyCiL6EqK+n20/rgIdjkFC0Ho1s6Gndvcc9ICkr/ey8/rHO6vp9KawL8DAFOV6l9Fyub7IbflsCag1qRfVsXWvxHjxIejU+BHZV6uvHD1XiEb++Bw8i+dNd+Wv0eCQmhcPhRPwUUt2DB5G1sfa1aeyzAuyJj9x2HjyIdKzIKw5SI14ieFtvo3kIQERj3lVhkUOnRD7AnjV5369QkAOJZeCH+Jh41xOLs73dQwAifY6dpxCCbjTDzLf1Bm1Y93tAIDOWXcLPvrHyr2hVoEAceEAgDQzB4jetk0/c2OXRHB48EJCpa4dgpYh2ETxtrshz7zx4ICCzfuTSDn8p/EOS9OTjwgMB+cABP3yWYuOPIofs33LigYCULlpZNXJppVU30Vf14kGAUCLijf1D71lN9FW9eFiA9KgZ8FPpPUsSnufGA+8hvAg2Kpz0nrX//qp+PIgpC3i6xJRITOye9fn1VT15ICCrVlQG5rywo0H8x965bVkNwmCYQ2kR6Gmb939WXV65dFnI/tPdjPBfO7XMN4EkTUJtqZp4sCJ1+8jwkhMu0KpMxFXFA8hlVfQSMxGH5mDK1VKV8QCyvTVtUiYyo7V358VStfGoAEFMhGYhEwloxZy9WKo2Hjwg5iSOvFDXeUYd33+PuVfHgwnEBWLocDJp+IIa2fyvperjwQRiXCKGosyXqoA+YfsIELuYu4HAt+msMknfDK4jfQJIzOZ2IPAQWJtFOhQKivR2IDZ6Awis7V0iLxqBI7uEZo19dakTogLSwKvf8yk8Jq6CGK0GKvWlatG7b7kkUU/Lo1gdXWn7/4E0j0qeJDpqN/ABqQcgJgdqURb4chjQktIugDS6wFFiz3JgaJj7AGJmholAe9YKhoZLJ0Ca6smjwJ4VwVN96gVIE5GM71kHaGKxGyAtRDaB2NBhLVmpHyANRKzDO28W7FS3HQFpaIWa8TrfCXQwegJSL5k+8M9UJ+pm9QTEnCIZrR0MDQeQ9ua0iCcYQaBTV0CqNXQW/yiyYG7W1heQanPaCkciBXuH1BkQJzHcDQxmpgGkPatl4WkbCXO/bW9AqlNg4H0PPMi6A1IxkQmOZ8D0ousNSMVEEuyreTAQ6Q7IRJeCX2YZQHhv6SrBOmpkM+YUzN0BqSRQCupmTeCP9wdkhiOREwtEzgGEsWcF9BhK9R8fQDiN7A8DiR0CKXQlj/q9IM8OgXjIzcKBlAHkD6FulgNzJwPIHwpo8mQAkX3LiPq9dKUMAQk9AqmcqmjuBAJCPQIpA4guIAsKJA0gnwNy3A4kDyBIHCEPxAwgf8gPILqA5AFEF5CxZX0lIHYc6rqADLf380BmFMgxgIzUyf8MJKLTRelKHgKy9wgkjfS7LiA0gKgC8vQn3HUA4RQ5LKPIAQciWbqIEg0YkLNDIHYUyqkCsmKN5vg3+W0AYTRATaPY+uu1IwS6UMGAlO6AFPjSCQMStaNh53cdcPG7Hx1Uupo+rx+Bltn1BuTAj5BptEV/bHAAwbnJMICwRmtUDOSEA8s4Rmtw3nITGD6TwUNoG0Ca7xi2YKSPj2eKXQFxQWKA2QbGMWEMMGseOb7C7T47uJS1JyAzVbTjqZdU3zbHzMXWS+qp4Fgn8Ahy/QCRGqQcwU1vGnN7fylboWn8Bzg//hyjxltvdcl45bwFfYKzFyBy11UU9BnjuoqfWizVlQXulpzBTNbaB5Aid+VRrkBFB630AMS9BC8FK2ggE7u/FGy1kvfcB9TKQufX5uUXNWl3EjvWCi4k/u9A3Ddq1CpTIQGe6VN1qd8ArcvDQNw3S41Kn6qQmOq5e7pRr+8fAYLiIJtFrrvYRMYL0q06vj8EZLXUriJzRY8H1xEagOCK7gkghRg6RQYO0I6aWPwIEAru80AiMWSdzAeuDXUKyr+WqpAID8hMHC1Ct8F4mUsQ6W8pJMICki0JHCBczAFdBl38G3VE6ErQhhWlih4LWrCSLpaqjggHiGe9mVjRY0YPoelyqcqIcIDEe97rqJFFH7FcLlUZEQ6Qg5plvZiBFNhtri1VFREGEC/Eg4nZoU5vqi1VFREGkIXDQ8xAIhzoT/WlKiLCAFIYPOQMxOPdjfWlKiLCADJRm3YGj+pDE2xktmmpaogwgMz8d8GrumZ4xzpbvinqISJ+hiTWm7wEqoJdI9JEV9JChAEkS3xCZzKecLcgN6YwlRBhAGmweTsblg6qKMM7Vmh321UQ4QAp1VfwhqVJIh+Wm03W0qV0EOEAybXtivkCmWrKeH2EZ/xBaSBCV2L9Re+LYSqJJIxDu1ew07U0EGEBcTtmHty4JuPtQhvLh1BAhK7Uvvq0GK484QZST0GvvFDqeSJ1IA0r2mfDljvqBoJ//rVsq7yZCA6kXgVkJ2f4ijIGMjOfMVsCBBORB2Jy+sM6ijNvaBUqmw/cStZ8EiKciHwp6Rp++88qmxXQeTUxDiJWJ9wSISvBicgXW+dypn1PqWTznlwgwdZdfiLHr5OELEAEASKvJFRE5JCPKbh8OxHdQKJU0crEzRXrJ/IEkFms6tGyrUw9kQeALFRXvK2iSzsRAAi6BLxM+60xdsqJAEBuXMAMxDLVp+gmAgC57/UT4qvVj3TVRCAgSAYL91aXtyNLzUQAIFhAiP8m0/NHOp+ILiBtPFKrs6bgSOcT0QTEB8nO3QR1yKslggKRf+m11UB0HOl8IlqAeCvauXuo8HnfIqIDyCw6G8XMcGiplMingMzCnbuHFp/3LSLPA4nUpqm5YkWNzwsQeQxIDsKjH5wVSU5qJPIJIIt4jjpqNBAekQeBfJOeHWS81FQoo4/I7UDcS3wUh0liTzLqiEgDqddx4ZHDrNZAACIAEMw88HPYWb0GAhABgEDmgf9Vb5oNBCByOxD3uqWYbCHVBgIQuRlIsbfwMEG5gQBE7gSyHMDsOayrxJvHBRC5B0hOxJH1nK4SlUE6QOR+IG6ju3iYQEqDdIDIzUDyZu/jMRHpS/OiRG4FkiPRfTw8kbrvIAJEACAIDpyHC1/GQHhEbgKSXwTyqIeEur6kixEBgABHOTr7YSX1MSFAhA0E307wUU76Y0KACAsI/tvCRzkF+iIuL0AEAYLbR2QOfvhKJ/obRESBxNt5rPSFXN4f7dyNdqMgEIbhAXWwJErT/e7/Wreb5HTT07QVgWSAeW5g7b4n8qOSUCRPEId4HP93SXp5dDNGRJFcQTxihSH+NW1Bb1cXKpIryJAwnG/zhl8ZcSP6jiKZghwRaaWLnP/AkcSKKJIniEcUs8QfjFLdEmRvkSxB4lfn0QN6DY+lshQpHiT96Dlr6r5hxRUpHST9ZEY71X7DOmOZQVZLsd5Q8wzrPxYYJDiKNqOBG1ZCkZKzrNXu6lHvkjChSFqQsdTPg45ApXtYaUXKr9TNuPcvqO2pVMkitFXAL2a79/qr3HQvVSTXUtofCl79RDXh5CDpw3pwu6+9kRlvtiI5VtPhmHLltT4EKVQkfb8pcOHrXqk6nBAksUjgpKtuYsskaxGKYT0+84uYgziE4YQgMdx0m8PRfis2MbL33PMXoVjD6PEunI4HSjDjStiJP08vQk9hZzQ7oH/geoLYCUBDW4rf4FqCDFt7THUO6B+4jiDn2XNTW7zf4hqCMND4BOsGyw+yAmh0x+QeFh7EeqD5Ce8nLDrI8NpbDyIWHIQNruo4GyAPlhrEzuixBxHLDDJMnfYgYolBricHNfjIdgMWF+Qyu+pkgX4HCwuymL57ELGkIHZG7z2IWE6Q5VV7vGMhQewbtMcZiwhyHj26ne9+xs8PcvDQHnFFqCD7Au0RW4TK+fOKqw4eoOcqYqgU53HR3/5uShFPCfKey9hFDyJO/vAi7RDZnp7X5igyUH72xSDW1E2Pn4tMRCQgR8vLwbgii4gcmLvqQcSPGtIPX3M08wn6I4qYQ94cM/Yw9Xxhmw+X/59wHrtMlX1AmIkzdyaaAnLg1Nnw8WGYSk40X/BOh4+El6LMSBnN2Cd0tPq4w/LJXGrMbCX06PZ2dcM65yzlNertShSHf3SzRAyPM332IcSAHUKPi8EHmXU0l8Uglmni0yipDoi16s+jJKejhywLooz68yiMEcHr2qM4h81CJ++VPJfTu5UwBpv4Pp9DJSi6MJx0bvUwiw4ewgT8zNR0LHUL+OccOpY/3ElzyGKD5pBlMJpDlsOkMythRoNbXh95PJsdA67MrMtAEYbjeDqNo+7oKqWUUkoppZRSSimllFJKFfMXp4vmSjB8n6sAAAAASUVORK5CYII="),i.IMAGE}}],(n=[{key:"dispose",value:function(){qs(Qs(i.prototype),"dispose",this).call(this),this.started=!1,delete this._audio}},{key:"ready",value:function(){var t=this;qs(Qs(i.prototype),"ready",this).call(this),this._audio=new Audio,this._audio.addEventListener("canplay",(function(){t.started&&t._audio.play()}));var e=this.state,n=e.src,r=void 0===n?"":n,o=e.loop,a=void 0!==o&&o,u=e.started,c=void 0!==u&&u;this.onchangeSrc(r),this.onchangeLoop(a),this.onchangeStarted(c)}},{key:"render",value:function(t){var e=this.model,n=e.left,r=e.top,o=e.width,a=e.height;e.src,t.beginPath(),this.drawImage(t,i.image,n,r,o,a)}},{key:"nature",get:function(){return Js}},{key:"hasTextProperty",get:function(){return!1}},{key:"src",get:function(){return this.get("src")},set:function(t){this.set("src",t)}},{key:"started",get:function(){return!!this.get("started")},set:function(t){this.set("started",t)}},{key:"start",value:function(){this._audio&&(this._audio.classList.add("active"),this._audio.play())}},{key:"pause",value:function(){this._audio&&(this._audio.classList.remove("active"),this._audio.pause())}},{key:"onchangeSrc",value:function(t){try{"data"!==String(t).substring(0,4)?this._audio.crossOrigin="use-credentials":this._audio.crossOrigin=null,this._audio.src="string"==typeof t?this.app.url(t):t}catch(t){return void console.error(t)}}},{key:"onchangeStarted",value:function(t){var e=this._audio;t?4==e.readyState&&e.play():e.pause()}},{key:"onchangeLoop",value:function(t){this._audio.loop=t}},{key:"onchange",value:function(t,e){"src"in t&&this.onchangeSrc(t.src),"started"in t&&this.onchangeStarted(t.started),"loop"in t&&this.onchangeLoop(t.loop)}},{key:"ondblclick",value:function(t){this.started=!this.started}},{key:"ondropfile",value:function(t,e){for(var n=0;n<t.length;n++)if(t[n].type.startsWith("audio/"))return void(this.src=e[n])}}])&&Hs(e.prototype,n),r&&Hs(e,r),i}(Hn(Er));function $s(t){return($s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ef(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nf(t,e){return(nf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function rf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=af(t);if(e){var o=af(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return of(this,n)}}function of(t,e){return!e||"object"!==$s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function af(t){return(af=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.register("audio",Zs);var uf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nf(t,e)}(i,t);var e,n,r,o=rf(i);function i(){return tf(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"is3dish",value:function(){return!0}}])&&ef(e.prototype,n),r&&ef(e,r),i}(Hn(mn));function cf(t){return(cf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ff(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lf(t,e,n){return(lf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=df(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function hf(t,e){return(hf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=df(t);if(e){var o=df(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yf(this,n)}}function yf(t,e){return!e||"object"!==cf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function df(t){return(df=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.register("text",uf);var vf={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"id-input",label:"ref",name:"ref"},{type:"select",label:"fit",name:"fit",property:{options:["both","ratio"]}}],"value-property":"ref",help:"scene/component/local-ref"},gf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&hf(t,e)}(i,t);var e,n,r,o=pf(i);function i(){return sf(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"ref",get:function(){var t=this.getState("ref");return t&&"string"==typeof t?this.root.findById(t):null},set:function(t){this.setState("ref",t)}},{key:"refScale",get:function(){var t=this.ref.bounds,e=this.bounds,n=e.width/t.width,r=e.height/t.height;switch(this.model.fit){case"both":return{x:n,y:r};case"ratio":default:return{x:Math.min(n,r),y:Math.min(n,r)}}}},{key:"draw",value:function(t){this._drawing||(this._drawing=!0,lf(df(i.prototype),"draw",this).call(this,t),this._drawing=!1)}},{key:"prerender",value:function(t){if(lf(df(i.prototype),"prerender",this).call(this,t),this.ref){var e=this.ref.center,n=this.center,r=this.refScale;t.translate(n.x,n.y),t.scale(r.x,r.y),t.translate(-e.x,-e.y)}}},{key:"postrender",value:function(t){if(this.ref)return this.ref.postrender(t);lf(df(i.prototype),"postrender",this).call(this,t)}},{key:"render",value:function(t){if(this.ref)return this.ref.render(t);this.model.round;var e=this.bounds,n=e.left,r=e.top,o=e.width,i=e.height;t.beginPath(),t.rect(n,r,o,i)}},{key:"nature",get:function(){return vf}},{key:"hasTextProperty",get:function(){return!1}}])&&ff(e.prototype,n),r&&ff(e,r),i}(Hn(Er));function mf(t){return(mf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xf(t,e){return(xf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Af(t);if(e){var o=Af(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kf(this,n)}}function kf(t,e){return!e||"object"!==mf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Af(t){return(Af=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.memoize(gf.prototype,"ref",!1),mn.memoize(gf.prototype,"refScale",!1),mn.register("local-ref",gf);var Sf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&xf(t,e)}(i,t);var e,n,r,o=_f(i);function i(){return bf(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"render",value:function(t){}},{key:"layout",get:function(){return _n.get(this.get("layout"))||Fn}}])&&wf(e.prototype,n),r&&wf(e,r),i}(ei(fr));function Of(t){return(Of="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ef(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function Pf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Rf(t,e,n){return(Rf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Cf(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Tf(t,e){return(Tf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Mf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Cf(t);if(e){var o=Cf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return If(this,n)}}function If(t,e){return!e||"object"!==Of(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Cf(t){return(Cf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Bf={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"board-selector",label:"scene-number",name:"ref",placeholder:"SCENE-1"},{type:"select",label:"fit",name:"fit",property:{options:["both","ratio"]}},{type:"select",label:"mode",name:"mode",property:{options:["view","interaction"]}}],"value-property":"ref",help:"scene/component/global-ref"},Lf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Tf(t,e)}(u,t);var e,n,r,o,i,a=Mf(u);function u(){return Pf(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"dispose",value:function(){this._releaseRef(),Rf(Cf(u.prototype),"dispose",this).call(this)}},{key:"nature",get:function(){return Bf}},{key:"hasTextProperty",get:function(){return!1}},{key:"tagName",get:function(){return"div"}},{key:"setElementProperties",value:function(t){var e=this.state.mode,n=void 0===e?"view":e;t.style.pointerEvents="view"==n?"none":"inherit"}},{key:"ready",value:function(){Rf(Cf(u.prototype),"ready",this).call(this),this.fetchRef()}},{key:"reposition",value:function(){if(this.element){Rf(Cf(u.prototype),"reposition",this).call(this);var t=this._element_bounds,e=this.element,n=e.offsetWidth,r=e.offsetHeight;if(this._element_bounds={offsetWidth:n,offsetHeight:r},(!t||t.offsetWidth!=n||t.offsetHeight!=r)&&this.ref&&this.root.target_element){var o=this.state.fit,i=void 0===o?"ratio":o;this.ref.fit(i)}}}},{key:"fetchRef",value:(o=regeneratorRuntime.mark((function t(){var e,n,r,o,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._releaseRef(),e=this.state,n=e.ref,r=e.fit,o=void 0===r?"ratio":r,n){t.next=4;break}return t.abrupt("return");case 4:if(!(i=this.app.refProvider)||!n){t.next=18;break}return t.prev=6,t.next=9,i.get(n,!0);case 9:this.__ref=t.sent,this.__ref.target=this.element,this.__ref.fit(o),this.__ref.data=this.data,t.next=18;break;case 15:t.prev=15,t.t0=t.catch(6),pe(t.t0);case 18:case"end":return t.stop()}}),t,this,[[6,15]])})),i=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function a(t){Ef(i,n,r,a,u,"next",t)}function u(t){Ef(i,n,r,a,u,"throw",t)}a(void 0)}))},function(){return i.apply(this,arguments)})},{key:"ref",get:function(){return this.__ref},set:function(t){this.setState("ref",t)}},{key:"_releaseRef",value:function(){this.__ref&&this.__ref.release&&this.__ref.release(),delete this.__ref}},{key:"onchange",value:function(t,e,n){var r=this;Rf(Cf(u.prototype),"onchange",this).call(this,t,e,n),"ref"in t&&this.fetchRef(),"fit"in t&&this.ref&&requestAnimationFrame((function(){var t=r.state.fit;r.ref.fit(t)})),"data"in t&&this.ref&&requestAnimationFrame((function(){r.ref.data=t.data}))}}])&&jf(e.prototype,n),r&&jf(e,r),u}(Sf);function Ff(t){return(Ff="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Df(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Uf(t,e){return(Uf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function zf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wf(t);if(e){var o=Wf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yf(this,n)}}function Yf(t,e){return!e||"object"!==Ff(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Wf(t){return(Wf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.register("global-ref",Lf);var Gf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Uf(t,e)}(i,t);var e,n,r,o=zf(i);function i(){return Nf(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"render",value:function(t){var e=this.model.path,n=void 0===e?[]:e;if(!(n.length<=1)){t.beginPath(),t.moveTo(n[0].x,n[0].y);for(var r=1;r<n.length;r++)t.lineTo(n[r].x,n[r].y);t.closePath(),this.drawStroke(t)}}},{key:"path",get:function(){return this.model.path},set:function(t){this.set("path",t)}},{key:"contains",value:function(t,e){var n=this.model.path,r=!1;return n.forEach((function(o,i){var a=(i+n.length+1)%n.length,u=o.x,c=o.y,s=n[a].x,f=n[a].y;c>e!=f>e&&t<(s-u)*(e-c)/(f-c)+u&&(r=!r)})),r}}])&&Df(e.prototype,n),r&&Df(e,r),i}(mn);function Hf(t){return(Hf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xf(t,e){return(Xf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Kf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Jf(t);if(e){var o=Jf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qf(this,n)}}function Qf(t,e){return!e||"object"!==Hf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Jf(t){return(Jf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.register("path",Gf);var Zf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xf(t,e)}(i,t);var e,n,r,o=Kf(i);function i(){return qf(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"render",value:function(t){var e=this.model,n=e.x1,r=e.y1,o=e.x2,i=e.y2,a=e.x3,u=e.y3;t.beginPath(),t.moveTo(n,r),t.lineTo(o,i),t.lineTo(a,u),t.closePath()}},{key:"contains",value:function(t,e){for(var n=this.model,r=[n.x1,n.y1,n.x2,n.y2,n.x3,n.y3],o=!1,i=0;i<r.length;i+=2){var a=(i+2)%r.length,u=r[i],c=r[i+1],s=r[a+1];c>e!=s>e&&t<(r[a]-u)*(e-c)/(s-c)+u&&(o=!o)}return o}},{key:"mutable",get:function(){return!0}},{key:"path",get:function(){var t=this.model;return[{x:t.x1,y:t.y1},{x:t.x2,y:t.y2},{x:t.x3,y:t.y3}]},set:function(t){this.set({x1:t[0].x,y1:t[0].y,x2:t[1].x,y2:t[1].y,x3:t[2].x,y3:t[2].y})}}])&&Vf(e.prototype,n),r&&Vf(e,r),i}(Er);function $f(t){return($f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function el(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nl(t,e){return(nl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function rl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=il(t);if(e){var o=il(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ol(this,n)}}function ol(t,e){return!e||"object"!==$f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function il(t){return(il=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.memoize(Zf.prototype,"path",!1),mn.register("triangle",Zf);var al={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"number",label:"ratio",name:"ratio",property:"ratio"}],help:"scene/component/donut"},ul={ondragmove:function(t,e,n){n.controls;var r=n.model,o=r.cx,i=r.rx;i=Math.abs(i);var a=(n.transcoordP2S(t.x,t.y).x-o)/i*100;a=a>=100||a<=-100?100:Math.abs(a),n.set({ratio:a})}},cl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nl(t,e)}(i,t);var e,n,r,o=rl(i);function i(){return tl(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"is3dish",value:function(){return!1}},{key:"render",value:function(t){var e=this.model,n=e.ratio,r=void 0===n?50:n,o=e.cx,i=e.cy,a=e.rx,u=e.ry,c=e.startAngle,s=e.endAngle,f=e.anticlockwise;a=Math.abs(a),u=Math.abs(u),t.beginPath(),t.ellipse(o,i,a,u,0,c||0,s||2*Math.PI,f),t.moveTo(o+a/100*r,i),t.ellipse(o,i,a/100*r,u/100*r,0,c||0,s||2*Math.PI,!0)}},{key:"contains",value:function(t,e){var n=this.model,r=n.cx,o=n.cy,i=n.rx,a=n.ry,u=n.ratio,c=(t-r)/(2*(i=Math.abs(i))-.5),s=(e-o)/(2*(a=Math.abs(a))-.5),f=(t-r)/(i/100*u*2-.5),l=(e-o)/(a/100*u*2-.5),h=!1;return c*c+s*s<.25&&f*f+l*l>.25&&(h=!h),h}},{key:"controls",get:function(){var t=this.model,e=t.cx,n=t.cy,r=t.rx,o=t.ratio;return[{x:e+(r=Math.abs(r))/100*o,y:n,handler:ul}]}},{key:"nature",get:function(){return al}}])&&el(e.prototype,n),r&&el(e,r),i}(Xc);function sl(t){return(sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ll(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function hl(t,e){return(hl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=dl(t);if(e){var o=dl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yl(this,n)}}function yl(t,e){return!e||"object"!==sl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function dl(t){return(dl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.memoize(cl.prototype,"controls",!1),mn.register("donut",cl);var vl={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"number",label:"ratio",name:"ratio",property:"ratio"},{type:"number",label:"wing",name:"wing",property:"wing"}],help:"scene/component/star"},gl={ondragmove:function(t,e,n){n.controls;var r=n.model,o=r.cy,i=r.ry,a=(n.transcoordP2S(t.x,t.y).y-o)/i*100+100;a>=100?a=100:a<=0&&(a=0),n.set({ratio:a})}},ml=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&hl(t,e)}(i,t);var e,n,r,o=pl(i);function i(){return fl(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"is3dish",value:function(){return!1}},{key:"render",value:function(t){var e=this.model,n=e.ratio,r=void 0===n?30:n,o=e.wing,i=void 0===o?5:o,a=e.cx,u=e.cy,c=e.rx,s=e.ry;if(e.startAngle,e.endAngle,e.anticlockwise,!(i<3)){var f=1.5707963267948966,l=2*Math.PI/i,h=c-r/100*c,p=s-r/100*s;t.save(),t.beginPath(),t.translate(a,u),t.moveTo(c*Math.cos(-f),s*Math.sin(-f)),t.lineTo((c-h)*(Math.cos(l-f)+Math.cos(0-f))/2,(s-p)*(Math.sin(l-f)+Math.sin(0-f))/2);for(var y=1;y<i;y++)t.lineTo(c*Math.cos(l*y-f),s*Math.sin(l*y-f)),t.lineTo((c-h)*(Math.cos(l*(y+1)-f)+Math.cos(l*y-f))/2,(s-p)*(Math.sin(l*(y+1)-f)+Math.sin(l*y-f))/2);t.closePath(),t.restore()}}},{key:"controls",get:function(){var t=this.model,e=t.cx,n=t.cy,r=t.ry;return[{x:e,y:n-r+r*(t.ratio/100),handler:gl}]}},{key:"nature",get:function(){return vl}}])&&ll(e.prototype,n),r&&ll(e,r),i}(Xc);function bl(t){return(bl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _l(t,e){return(_l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function kl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Sl(t);if(e){var o=Sl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Al(this,n)}}function Al(t,e){return!e||"object"!==bl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Sl(t){return(Sl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.memoize(ml.prototype,"controls",!1),mn.register("star",ml);var Ol={mutable:!1,resizable:!0,rotatable:!1,properties:[]},El=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_l(t,e)}(i,t);var e,n,r,o=kl(i);function i(){return wl(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"render",value:function(t){var e=this.bounds,n=e.left,r=e.top,o=e.width,i=e.height;t.beginPath(),t.rect(n,r,o,i)}},{key:"text",get:function(){return this.get("id")},set:function(t){}},{key:"rotatable",get:function(){return!1}},{key:"nature",get:function(){return Ol}}])&&xl(e.prototype,n),r&&xl(e,r),i}(Hn(Er));function Pl(t){return(Pl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Tl(t,e,n){return(Tl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Bl(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Ml(t,e){return(Ml=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Il(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Bl(t);if(e){var o=Bl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cl(this,n)}}function Cl(t,e){return!e||"object"!==Pl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Bl(t){return(Bl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}mn.register("variable",El);var Ll=function(t){return function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ml(t,e)}(i,t);var e,n,r,o=Il(i);function i(){return jl(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"animOnValueChange",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0;if(t!=this._lastValue){if(n)var o=t-(Number(r)||0);else o=t-(this._lastValue||0);this._lastValue=t,this._anim_alpha=-o,this.animate({step:function(t){e._anim_alpha=o*(t-1),e.invalidate()},duration:1e3,delta:"circ",options:{x:1},ease:"out"}).start()}}},{key:"dispose",value:function(){Tl(Bl(i.prototype),"dispose",this).call(this),delete this._value_substitutor}},{key:"onchange",value:function(t,e){t.hasOwnProperty("value")&&delete this._value_substitutor}},{key:"animAlpha",get:function(){return this._anim_alpha||0}},{key:"animValue",get:function(){return(this._lastValue||0)+(this._anim_alpha||0)}},{key:"defaultValueSubstitutor",value:function(){return this.getState("value")}},{key:"valueSubstitutor",get:function(){return this._value_substitutor||(this._value_substitutor=Me(this.getState("value"),this)||this.defaultValueSubstitutor),this._value_substitutor}},{key:"value",get:function(){return Number(this.valueSubstitutor())||0},set:function(t){delete this._value_substitutor,this.setState("value",Number(R(t)))}}])&&Rl(e.prototype,n),r&&Rl(e,r),i}(t)};function Fl(t){return(Fl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ul(t,e){return(Ul=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function zl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wl(t);if(e){var o=Wl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yl(this,n)}}function Yl(t,e){return!e||"object"!==Fl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Wl(t){return(Wl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Gl=function(t){return function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ul(t,e)}(i,t);var e,n,r,o=zl(i);function i(){return Nl(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"_convertDataFormat",value:function(t,e){var n;switch(e){case"json":n=JSON.parse(t);break;default:n=t}return n}},{key:"isDataSource",value:function(){return!0}}])&&Dl(e.prototype,n),r&&Dl(e,r),i}(t)};function Hl(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function ql(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Vl=new WeakSet,Xl=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.counters={},this.references={},this.creator=e,this.disposer=n,Vl.add(this)}var e,n,r;return e=t,n=[{key:"dispose",value:function(){if(this.disposer)for(var t in this.references)this.disposer.call(null,t,this.references[t]);delete this.references,delete this.counters}},{key:"ids",get:function(){return Object.keys(this.references)}},{key:"add",value:function(t,e){var n=this,r=new Promise((function(r,o){var i=n.references[t];if(i)i===e?o(Error("Reference ID and target duplicate")):e?o(Error("Reference ID duplicate")):r(i);else{function a(e){e=ot(e,(function(){var t=this;this.release=function(){return n.release(t)}})),n.references[t]=e,n.counters[t]=1,r(e)}if(e)a(e);else{if(!n.creator)return void o(Error("Reference id("+t+") is not allowed. Reference creator should be defined."));n.creator.call(null,t,(function(t){a(t)}),(function(t){o(t)}))}}}));return this.references[t]||(this.references[t]=r),r}},{key:"get",value:function(){var t,e=(t=regeneratorRuntime.mark((function t(e,n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=this.references[e])){t.next=13;break}if(r instanceof Promise){t.next=7;break}if(e in this.counters){t.next=5;break}throw new Error("No Reference Count");case 5:return this.counters[e]++,t.abrupt("return",r);case 7:if(!n){t.next=13;break}return t.next=10,r;case 10:return r=t.sent,this.counters[e]++,t.abrupt("return",r);case 13:if(!n){t.next=17;break}return t.next=16,this.add(e);case 16:return t.abrupt("return",t.sent);case 17:throw new Error("No References for "+e);case 18:case"end":return t.stop()}}),t,this)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Hl(i,r,o,a,u,"next",t)}function u(t){Hl(i,r,o,a,u,"throw",t)}a(void 0)}))});return function(t,n){return e.apply(this,arguments)}}()},{key:"_id",value:function(t){for(var e in this.references)if(this.references[e]===t)return e;return-1}},{key:"release",value:function(t){var e=this._id(t),n=this.references[e];n?(this.counters[e]--,0==this.counters[e]&&(this.disposer&&this.disposer.call(null,e,n),delete this.references[e],delete this.counters[e],de("RELEASED",e))):pe("No Referenced ID")}}],r=[{key:"residents",get:function(){return Vl}}],n&&ql(e.prototype,n),r&&ql(e,r),t}();function Kl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ql={},Jl={},Zl=[];function $l(t){var e="SCRIPT"==t.target.tagName?Ql:Jl,n=t.target.src||t.target.href;e[n]=!0,Zl.forEach((function(t,r){var o=t.resolve,i=t.scripts,a=t.styles;if(e==Ql){var u=i.indexOf(n);u>-1&&u<i.length-1&&eh(i[u+1])}for(var c=0;c<i.length;c++)if(!Ql[i[c]])return;if(a)for(var s=0;s<a.length;s++)if(!Jl[a[s]])return;o(),Zl[r]=null})),Zl=Zl.filter((function(t){return t}))}function th(t){var e=t.target.src,n="SCRIPT"==t.target.tagName?Ql:Jl;Zl.forEach((function(r,o){var i=r.reject,a=r.scripts,u=r.styles,c=!1;if(n===Ql){for(var s=0;s<a.length;s++)if(a[s]==e){c=!0;break}}else if(u)for(var f=0;f<u.length;f++)if(u[f]==e){c=!0;break}c&&(i(t),Zl[o]=null)})),Zl=Zl.filter((function(t){return t})),delete n[e],document.head.removeChild(t.target)}function eh(t){Ql[t]=!1;var e=document.createElement("script");e.onload=$l,e.onerror=th,e.type="text/javascript",e.src=t,document.head.appendChild(e)}var nh=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"load",value:function(t,e){return"string"==typeof t&&(t=[t]),"string"==typeof e&&(e=[e]),new Promise((function(n,r){if((!t||t instanceof Array)&&(!e||e instanceof Array)){var o,i=!0;if(e&&e.forEach((function(t){Jl.hasOwnProperty(t)||function(t){Jl[t]=!1;var e=document.createElement("link");e.onload=$l,e.onerror=th,e.type="text/css",e.rel="stylesheet",e.media="screen,print",e.href=t,document.head.appendChild(e)}(t),Jl[t]||(i=!1)})),t&&t.length>0&&t.forEach((function(t){Ql.hasOwnProperty(t)?Ql[t]||(i=!1):o=o||t})),o)eh(o);else if(i)return void n();Zl.push({resolve:n,reject:r,scripts:t,styles:e})}else r("invalid sources for load")}))}}],(n=null)&&Kl(e.prototype,n),r&&Kl(e,r),t}(),rh="0.0.0",oh=0,ih=performance.now(),ah=0;function uh(){return oh}requestAnimationFrame((function t(){requestAnimationFrame(t),ah++;var e=performance.now(),n=e-ih;n<1e3||(oh=Math.round(1e3*ah/n),ih=e,ah=0)}));var ch=u;function sh(){}}])}));
|