@esri/solutions-components 0.10.48 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ExpandToggle-44886935.js +115 -0
- package/dist/cjs/FloatingArrow-d7ea2b0f.js +48 -0
- package/dist/cjs/Heading-ee0aa171.js +25 -0
- package/dist/cjs/IdentityManager-d84c82f1.js +2047 -0
- package/dist/cjs/Validation-9515ef0c.js +20 -0
- package/dist/cjs/app-globals-03a6ab9b.js +67 -0
- package/dist/cjs/ar-180cd9b0.js +106 -0
- package/dist/cjs/asyncToGenerator-c7fc3ee4.js +92 -0
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +37 -12
- package/dist/cjs/bg-fd095c86.js +84 -0
- package/dist/cjs/browser-717f77af.js +35 -0
- package/dist/cjs/bs-11fa6f0d.js +53 -0
- package/dist/cjs/buffer-tools_3.cjs.entry.js +6 -6
- package/dist/cjs/ca-0685b1cc.js +73 -0
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-action-bar.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-alert_2.cjs.entry.js +500 -0
- package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
- package/dist/cjs/calcite-block-section.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_5.cjs.entry.js +17 -17
- package/dist/cjs/calcite-button-de2c2e75.js +282 -0
- package/dist/cjs/calcite-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-card-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-card.cjs.entry.js +7 -7
- package/dist/cjs/calcite-carousel_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/calcite-chip-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-chip_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-color-picker.cjs.entry.js +7 -7
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +66 -20
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-dialog-a5c288bb.js +5876 -0
- package/dist/cjs/calcite-dialog.cjs.entry.js +9 -9
- package/dist/cjs/calcite-dropdown_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-fab.cjs.entry.js +4 -4
- package/dist/cjs/calcite-filter_5.cjs.entry.js +7 -7
- package/dist/cjs/calcite-flow-item_5.cjs.entry.js +1752 -0
- package/dist/cjs/calcite-flow_4.cjs.entry.js +12 -12
- package/dist/cjs/calcite-graph_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-icon_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
- package/dist/cjs/calcite-input-945ec162.js +1001 -0
- package/dist/cjs/calcite-input-number.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input-time-picker-3aeef2d4.js +1870 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +8 -8
- package/dist/cjs/calcite-input_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-label-e7b67a86.js +111 -0
- package/dist/cjs/calcite-label.cjs.entry.js +1 -1
- package/dist/cjs/calcite-link.cjs.entry.js +4 -4
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-menu-item.cjs.entry.js +6 -6
- package/dist/cjs/calcite-menu.cjs.entry.js +6 -6
- package/dist/cjs/calcite-meter.cjs.entry.js +6 -6
- package/dist/cjs/calcite-modal_4.cjs.entry.js +972 -0
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +4 -4
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +3 -3
- package/dist/cjs/calcite-navigation.cjs.entry.js +3 -3
- package/dist/cjs/calcite-notice-a48cc9e7.js +261 -0
- package/dist/cjs/calcite-notice.cjs.entry.js +8 -8
- package/dist/cjs/calcite-option-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-option_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-pagination.cjs.entry.js +6 -6
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pick-list.cjs.entry.js +8 -8
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +5 -5
- package/dist/cjs/calcite-radio-button.cjs.entry.js +5 -5
- package/dist/cjs/calcite-rating.cjs.entry.js +8 -8
- package/dist/cjs/calcite-scrim.cjs.entry.js +5 -5
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-sheet.cjs.entry.js +7 -7
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +6 -6
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +24 -24
- package/dist/cjs/calcite-shell.cjs.entry.js +4 -4
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +4 -4
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +7 -7
- package/dist/cjs/calcite-stepper.cjs.entry.js +5 -5
- package/dist/cjs/calcite-switch.cjs.entry.js +5 -5
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-table-row.cjs.entry.js +2 -2
- package/dist/cjs/calcite-table.cjs.entry.js +6 -6
- package/dist/cjs/calcite-text-area.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tile-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile-select.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile.cjs.entry.js +4 -4
- package/dist/cjs/calcite-time-picker.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tip-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tree_2.cjs.entry.js +5 -5
- package/dist/cjs/card-manager_3.cjs.entry.js +194 -51
- package/dist/cjs/common-10d11a29.js +37 -0
- package/dist/cjs/component-69260f95.js +1073 -0
- package/dist/cjs/conditionalSlot-130cce71.js +54 -0
- package/dist/cjs/config-c999f8fc.js +40 -0
- package/dist/cjs/consent-manager.cjs.entry.js +7914 -45
- package/dist/cjs/crowdsource-manager.cjs.entry.js +6 -6
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +3 -3
- package/dist/cjs/cs-70e8ba01.js +149 -0
- package/dist/cjs/da-e8eb9ff4.js +69 -0
- package/dist/cjs/date-40a80298.js +264 -0
- package/dist/cjs/de-4b8310d2.js +93 -0
- package/dist/cjs/de-at-dc8ed8c3.js +92 -0
- package/dist/cjs/de-ch-c5971940.js +92 -0
- package/dist/cjs/deduct-calculator.cjs.entry.js +2 -2
- package/dist/cjs/downloadUtils-b6490537.js +3223 -0
- package/dist/cjs/el-a70d9f12.js +68 -0
- package/dist/cjs/en-au-88ddb80f.js +68 -0
- package/dist/cjs/en-ca-5a29b95b.js +67 -0
- package/dist/cjs/en-gb-3c763a84.js +71 -0
- package/dist/cjs/es-e83e8ff5.js +68 -0
- package/dist/cjs/es-mx-2ea879ef.js +67 -0
- package/dist/cjs/et-7b00c80d.js +94 -0
- package/dist/cjs/feature-list.cjs.entry.js +12 -10
- package/dist/cjs/fi-92ca007b.js +117 -0
- package/dist/cjs/floating-ui-7fa9e006.js +2413 -0
- package/dist/cjs/focusTrapComponent-a7cfa6da.js +1013 -0
- package/dist/cjs/form-dd5380da.js +370 -0
- package/dist/cjs/form-f2a43327.js +381 -0
- package/dist/cjs/fr-a1f5dfd4.js +70 -0
- package/dist/cjs/fr-ch-8a4a9d67.js +68 -0
- package/dist/cjs/he-38b2b883.js +107 -0
- package/dist/cjs/helpers-47465fc2.js +940 -0
- package/dist/cjs/hi-a517b1a8.js +67 -0
- package/dist/cjs/hr-c1e34de1.js +82 -0
- package/dist/cjs/hu-e46e8ae7.js +90 -0
- package/dist/cjs/icon-f45e7fbb.js +979 -0
- package/dist/cjs/id-bfc376d8.js +68 -0
- package/dist/cjs/index-1ab17699.js +201 -0
- package/dist/cjs/index-3bae5121.js +1789 -0
- package/dist/cjs/index-5d8d6ae2.js +2157 -0
- package/dist/cjs/index.es-5fc7bebc.js +11221 -0
- package/dist/cjs/instant-apps-app-guide.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-create.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-export.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-header.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +16 -20
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +13 -13
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-popover.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-splash.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +5 -59
- package/dist/cjs/interactive-b59e6294.js +86 -0
- package/dist/cjs/interactive-e1c3ccf2.js +85 -0
- package/dist/cjs/it-6d8c8360.js +68 -0
- package/dist/cjs/it-ch-2b05812c.js +68 -0
- package/dist/cjs/ja-eb46f963.js +74 -0
- package/dist/cjs/ko-dbe28d19.js +74 -0
- package/dist/cjs/label-7f519bd9.js +186 -0
- package/dist/cjs/languageSwitcher-bca9ab2c.js +52 -0
- package/dist/cjs/loadable-19ab5827.js +98 -0
- package/dist/cjs/loader-97bb6b45.js +176 -0
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/locale-3a817e03.js +1488 -0
- package/dist/cjs/locale-80aff4b9.js +605 -0
- package/dist/cjs/locale-a79da367.js +160 -0
- package/dist/cjs/logger-780b61e8.js +61 -0
- package/dist/cjs/lt-651bfa9c.js +99 -0
- package/dist/cjs/lv-f6fe37a3.js +68 -0
- package/dist/cjs/map-select-tools_3.cjs.entry.js +15 -13
- package/dist/cjs/mk-1f0ffdf6.js +68 -0
- package/dist/cjs/nb-8b7b39ed.js +69 -0
- package/dist/cjs/nl-27515721.js +69 -0
- package/dist/cjs/observers-902ebe13.js +58 -0
- package/dist/cjs/openCloseComponent-039ee139.js +65 -0
- package/dist/cjs/openCloseComponent-e8e50700.js +66 -0
- package/dist/cjs/pci-calculator.cjs.entry.js +2 -2
- package/dist/cjs/pl-d2098514.js +116 -0
- package/dist/cjs/popupUtils-72d48968.js +121 -0
- package/dist/cjs/pt-a3304010.js +69 -0
- package/dist/cjs/pt-br-09d60ba8.js +67 -0
- package/dist/cjs/public-notification.cjs.entry.js +12 -10
- package/dist/cjs/publicNotificationStore-04b6837d.js +47 -0
- package/dist/cjs/request-19fdbaaa.js +21 -0
- package/dist/cjs/restHelpersGet-e4639890.js +507 -0
- package/dist/cjs/ro-2ea54b1c.js +68 -0
- package/dist/cjs/ru-f94ee202.js +128 -0
- package/dist/cjs/shared-list-render-fb08b2af.js +361 -0
- package/dist/cjs/sk-3cdf67d8.js +150 -0
- package/dist/cjs/sl-075daf42.js +170 -0
- package/dist/cjs/solution-configuration.cjs.entry.js +53 -53
- package/dist/cjs/solution-contents_3.cjs.entry.js +11 -11
- package/dist/cjs/solution-item-accordion.cjs.entry.js +3 -3
- package/dist/cjs/solution-item-icon.cjs.entry.js +2 -2
- package/dist/cjs/solution-resource-d0a2f7fe.js +1845 -0
- package/dist/cjs/solution-store-4e602251.js +1105 -0
- package/dist/cjs/solutions-components.cjs.js +6 -6
- package/dist/cjs/spatial-ref.cjs.entry.js +5 -6
- package/dist/cjs/sr-2f08967b.js +103 -0
- package/dist/cjs/store-manager.cjs.entry.js +7 -7
- package/dist/cjs/sv-65f0e21c.js +73 -0
- package/dist/cjs/t9n-0195f685.js +108 -0
- package/dist/cjs/templates-1e84847a.js +407 -0
- package/dist/cjs/th-db63e592.js +67 -0
- package/dist/cjs/time-caa0abbe.js +301 -0
- package/dist/cjs/tr-b6401cac.js +68 -0
- package/dist/cjs/typeof-2a7e2dec.js +28 -0
- package/dist/cjs/uk-d00c351d.js +106 -0
- package/dist/cjs/update-243ea407.js +783 -0
- package/dist/cjs/utils-7eb34f90.js +153 -0
- package/dist/cjs/utils-d2bcba4f.js +79 -0
- package/dist/cjs/vi-efe4ad72.js +72 -0
- package/dist/cjs/zh-cn-63f07390.js +96 -0
- package/dist/cjs/zh-hk-84a86ab9.js +94 -0
- package/dist/cjs/zh-tw-894f1adf.js +94 -0
- package/dist/collection/assets/t9n/consent-manager/resources.json +3 -10
- package/dist/collection/assets/t9n/consent-manager/resources_en.json +3 -10
- package/dist/collection/collection-manifest.json +2 -4
- package/dist/collection/components/basemap-gallery/basemap-gallery.js +1 -1
- package/dist/collection/components/buffer-tools/buffer-tools.js +1 -1
- package/dist/collection/components/card-manager/card-manager.js +1 -1
- package/dist/collection/components/consent-manager/consent-manager.js +113 -37
- package/dist/collection/components/create-feature/create-feature.js +2 -2
- package/dist/collection/components/create-related-feature/create-related-feature.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +4 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +3 -3
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +1 -1
- package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
- package/dist/collection/components/delete-button/delete-button.js +2 -2
- package/dist/collection/components/delete-dialog/delete-dialog.js +1 -1
- package/dist/collection/components/edit-card/edit-card.js +26 -2
- package/dist/collection/components/feature-details/feature-details.js +6 -6
- package/dist/collection/components/feature-list/feature-list.js +3 -3
- package/dist/collection/components/floor-filter/floor-filter.js +1 -1
- package/dist/collection/components/info-card/info-card.js +2 -2
- package/dist/collection/components/json-editor/json-editor.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +224 -47
- package/dist/collection/components/map-card/map-card.js +2 -2
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +121 -5
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.js +53 -4
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +3 -3
- package/dist/collection/components/map-tools/map-tools.js +2 -2
- package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
- package/dist/collection/components/pdf-download/pdf-download.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +2 -2
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
- package/dist/collection/components/solution-contents/solution-contents.js +1 -1
- package/dist/collection/components/solution-item/solution-item.js +1 -1
- package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
- package/dist/collection/components/solution-variables/solution-variables.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
- package/dist/collection/demos/consent-manager.html +56 -0
- package/dist/collection/utils/interfaces.ts +14 -0
- package/dist/components/IdentityManager.js +339 -0
- package/dist/components/asyncToGenerator.js +88 -0
- package/dist/components/basemap-gallery2.js +1 -1
- package/dist/components/buffer-tools2.js +1 -1
- package/dist/components/calcite-button2.js +273 -0
- package/dist/components/calcite-dialog.js +1 -663
- package/dist/components/calcite-dialog2.js +5867 -0
- package/dist/components/calcite-input2.js +992 -0
- package/dist/components/calcite-label2.js +100 -0
- package/dist/components/calcite-notice2.js +251 -0
- package/dist/components/card-manager2.js +10 -10
- package/dist/components/common.js +0 -1
- package/dist/components/component2.js +1048 -0
- package/dist/components/consent-manager.js +8053 -203
- package/dist/components/create-feature2.js +2 -2
- package/dist/components/create-related-feature2.js +1 -1
- package/dist/components/crowdsource-manager.js +37 -37
- package/dist/components/crowdsource-reporter.js +28 -28
- package/dist/components/deduct-calculator2.js +1 -1
- package/dist/components/delete-button2.js +29 -11
- package/dist/components/delete-dialog2.js +33 -9
- package/dist/components/dialog.js +670 -0
- package/dist/components/downloadUtils.js +10 -26
- package/dist/components/edit-card2.js +7 -2
- package/dist/components/feature-details2.js +23 -23
- package/dist/components/feature-list2.js +3 -3
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/form2.js +362 -0
- package/dist/components/icon2.js +960 -0
- package/dist/components/index.es.js +25 -104
- package/dist/components/index2.js +6 -5
- package/dist/components/info-card2.js +9 -9
- package/dist/components/instant-apps-language-switcher.js +6 -10
- package/dist/components/instant-apps-language-translator2.js +2 -809
- package/dist/components/instant-apps-time-filter.js +3 -57
- package/dist/components/interactive2.js +83 -0
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/label3.js +179 -0
- package/dist/components/layer-table2.js +212 -69
- package/dist/components/loader2.js +173 -0
- package/dist/components/locale3.js +1311 -3
- package/dist/components/map-card2.js +2 -2
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +53 -5
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +28 -3
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +3 -3
- package/dist/components/map-tools2.js +2 -2
- package/dist/components/openCloseComponent2.js +64 -0
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/public-notification.js +2 -2
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/request.js +14 -0
- package/dist/components/restHelpersGet.js +74 -557
- package/dist/components/solution-configuration.js +27 -28
- package/dist/components/solution-contents2.js +1 -1
- package/dist/components/solution-item-accordion.js +1 -1
- package/dist/components/solution-item-details2.js +1 -1
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +1 -1
- package/dist/components/solution-item2.js +1 -1
- package/dist/components/solution-organization-variables2.js +1 -1
- package/dist/components/solution-resource-item2.js +1 -2
- package/dist/components/solution-resource.js +1701 -1
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-store.js +36 -285
- package/dist/components/solution-template-data2.js +1 -1
- package/dist/components/solution-variables2.js +1 -1
- package/dist/components/spatial-ref.js +1 -1
- package/dist/components/templates.js +0 -1
- package/dist/components/typeof.js +25 -0
- package/dist/components/update.js +773 -0
- package/dist/esm/ExpandToggle-324f556e.js +108 -0
- package/dist/esm/FloatingArrow-cd37b366.js +46 -0
- package/dist/esm/Heading-b6b7a8a6.js +22 -0
- package/dist/esm/IdentityManager-6880e890.js +2012 -0
- package/dist/esm/Validation-b62abebe.js +18 -0
- package/dist/esm/app-globals-b6ef4076.js +65 -0
- package/dist/esm/ar-aa347a04.js +104 -0
- package/dist/esm/asyncToGenerator-96b2368d.js +88 -0
- package/dist/esm/basemap-gallery_7.entry.js +37 -12
- package/dist/esm/bg-b56e89f6.js +82 -0
- package/dist/esm/browser-e42b9848.js +32 -0
- package/dist/esm/bs-62486009.js +51 -0
- package/dist/esm/buffer-tools_3.entry.js +7 -7
- package/dist/esm/ca-db6a81f3.js +71 -0
- package/dist/esm/calcite-accordion_2.entry.js +6 -6
- package/dist/esm/calcite-action-bar.entry.js +9 -9
- package/dist/esm/calcite-action-group.entry.js +8 -8
- package/dist/esm/calcite-action-menu_2.entry.js +10 -10
- package/dist/esm/calcite-action-pad_2.entry.js +9 -9
- package/dist/esm/calcite-action_2.entry.js +14 -14
- package/dist/esm/calcite-alert_2.entry.js +495 -0
- package/dist/esm/calcite-avatar.entry.js +2 -2
- package/dist/esm/calcite-block-section.entry.js +7 -7
- package/dist/esm/calcite-block_5.entry.js +19 -19
- package/dist/esm/calcite-button-e86d99b3.js +279 -0
- package/dist/esm/calcite-button.entry.js +10 -10
- package/dist/esm/calcite-card-group.entry.js +5 -5
- package/dist/esm/calcite-card.entry.js +8 -8
- package/dist/esm/calcite-carousel_2.entry.js +8 -8
- package/dist/esm/calcite-checkbox.entry.js +7 -7
- package/dist/esm/calcite-chip-group.entry.js +5 -5
- package/dist/esm/calcite-chip_2.entry.js +10 -10
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +4 -4
- package/dist/esm/calcite-color-picker.entry.js +8 -8
- package/dist/esm/calcite-combobox-item-group.entry.js +4 -4
- package/dist/esm/calcite-combobox_3.entry.js +68 -22
- package/dist/esm/calcite-date-picker-day_3.entry.js +9 -9
- package/dist/esm/calcite-dialog-f5f9cfea.js +5873 -0
- package/dist/esm/calcite-dialog.entry.js +10 -10
- package/dist/esm/calcite-dropdown_2.entry.js +8 -8
- package/dist/esm/calcite-fab.entry.js +5 -5
- package/dist/esm/calcite-filter_5.entry.js +8 -8
- package/dist/esm/calcite-flow-item_5.entry.js +1744 -0
- package/dist/esm/calcite-flow_4.entry.js +12 -12
- package/dist/esm/calcite-graph_2.entry.js +9 -9
- package/dist/esm/calcite-icon_2.entry.js +5 -5
- package/dist/esm/calcite-inline-editable.entry.js +9 -9
- package/dist/esm/calcite-input-1f12bce0.js +998 -0
- package/dist/esm/calcite-input-number.entry.js +11 -11
- package/dist/esm/calcite-input-text.entry.js +11 -11
- package/dist/esm/calcite-input-time-picker-07db9ed7.js +1867 -0
- package/dist/esm/calcite-input-time-picker.entry.js +15 -15
- package/dist/esm/calcite-input-time-zone.entry.js +10 -10
- package/dist/esm/calcite-input_2.entry.js +11 -11
- package/dist/esm/calcite-label-d80f6f1c.js +108 -0
- package/dist/esm/calcite-label.entry.js +3 -3
- package/dist/esm/calcite-link.entry.js +5 -5
- package/dist/esm/calcite-list-item-group.entry.js +2 -2
- package/dist/esm/calcite-menu-item.entry.js +7 -7
- package/dist/esm/calcite-menu.entry.js +7 -7
- package/dist/esm/calcite-meter.entry.js +7 -7
- package/dist/esm/calcite-modal_4.entry.js +965 -0
- package/dist/esm/calcite-navigation-logo.entry.js +4 -4
- package/dist/esm/calcite-navigation-user.entry.js +3 -3
- package/dist/esm/calcite-navigation.entry.js +4 -4
- package/dist/esm/calcite-notice-acc12411.js +258 -0
- package/dist/esm/calcite-notice.entry.js +9 -9
- package/dist/esm/calcite-option-group.entry.js +1 -1
- package/dist/esm/calcite-option_2.entry.js +9 -9
- package/dist/esm/calcite-pagination.entry.js +7 -7
- package/dist/esm/calcite-pick-list-group.entry.js +8 -8
- package/dist/esm/calcite-pick-list-item.entry.js +11 -11
- package/dist/esm/calcite-pick-list.entry.js +9 -9
- package/dist/esm/calcite-radio-button-group.entry.js +6 -6
- package/dist/esm/calcite-radio-button.entry.js +7 -7
- package/dist/esm/calcite-rating.entry.js +10 -10
- package/dist/esm/calcite-scrim.entry.js +6 -6
- package/dist/esm/calcite-segmented-control_2.entry.js +8 -8
- package/dist/esm/calcite-sheet.entry.js +8 -8
- package/dist/esm/calcite-shell-center-row.entry.js +7 -7
- package/dist/esm/calcite-shell-panel_14.entry.js +25 -25
- package/dist/esm/calcite-shell.entry.js +5 -5
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +4 -4
- package/dist/esm/calcite-stepper-item.entry.js +8 -8
- package/dist/esm/calcite-stepper.entry.js +6 -6
- package/dist/esm/calcite-switch.entry.js +7 -7
- package/dist/esm/calcite-table-cell_2.entry.js +8 -8
- package/dist/esm/calcite-table-row.entry.js +3 -3
- package/dist/esm/calcite-table.entry.js +7 -7
- package/dist/esm/calcite-text-area.entry.js +11 -11
- package/dist/esm/calcite-tile-group.entry.js +5 -5
- package/dist/esm/calcite-tile-select-group.entry.js +4 -4
- package/dist/esm/calcite-tile-select.entry.js +6 -6
- package/dist/esm/calcite-tile.entry.js +5 -5
- package/dist/esm/calcite-time-picker.entry.js +8 -8
- package/dist/esm/calcite-tip-group.entry.js +3 -3
- package/dist/esm/calcite-tip-manager.entry.js +9 -9
- package/dist/esm/calcite-tip.entry.js +10 -10
- package/dist/esm/calcite-tooltip.entry.js +6 -6
- package/dist/esm/calcite-tree_2.entry.js +6 -6
- package/dist/esm/card-manager_3.entry.js +194 -51
- package/dist/esm/common-c8dc0e85.js +35 -0
- package/dist/esm/component-85f22c99.js +1048 -0
- package/dist/esm/conditionalSlot-2e16b206.js +51 -0
- package/dist/esm/config-e6645458.js +36 -0
- package/dist/esm/consent-manager.entry.js +7910 -41
- package/dist/esm/crowdsource-manager.entry.js +6 -6
- package/dist/esm/crowdsource-reporter.entry.js +3 -3
- package/dist/esm/cs-250e21c6.js +147 -0
- package/dist/esm/da-bab8eb4e.js +67 -0
- package/dist/esm/date-272939fd.js +248 -0
- package/dist/esm/de-808a43dc.js +91 -0
- package/dist/esm/de-at-9c396c81.js +90 -0
- package/dist/esm/de-ch-415303cf.js +90 -0
- package/dist/esm/deduct-calculator.entry.js +2 -2
- package/dist/esm/dom-66c5cd46.js +1165 -0
- package/dist/esm/downloadUtils-8ba094d7.js +3217 -0
- package/dist/esm/el-3d1eaeb8.js +66 -0
- package/dist/esm/en-au-e6b00a93.js +66 -0
- package/dist/esm/en-ca-29b94ea2.js +65 -0
- package/dist/esm/en-gb-09267176.js +69 -0
- package/dist/esm/es-95fef748.js +66 -0
- package/dist/esm/es-mx-9b70cfc9.js +65 -0
- package/dist/esm/et-08cbe214.js +92 -0
- package/dist/esm/feature-list.entry.js +12 -10
- package/dist/esm/fi-e850e58b.js +115 -0
- package/dist/esm/floating-ui-1a431a21.js +2404 -0
- package/dist/esm/focusTrapComponent-e80b8863.js +1008 -0
- package/dist/esm/form-1528db83.js +362 -0
- package/dist/esm/form-99398da6.js +372 -0
- package/dist/esm/fr-c71b6844.js +68 -0
- package/dist/esm/fr-ch-7ac7a7eb.js +66 -0
- package/dist/esm/he-311cb5ba.js +105 -0
- package/dist/esm/helpers-f52a734a.js +913 -0
- package/dist/esm/hi-c41f0938.js +65 -0
- package/dist/esm/hr-f42cc721.js +80 -0
- package/dist/esm/hu-d1d33b21.js +88 -0
- package/dist/esm/icon-18c0eb17.js +959 -0
- package/dist/esm/id-1867967d.js +66 -0
- package/dist/esm/index-38bde943.js +199 -0
- package/dist/esm/index-d233c7a2.js +1753 -0
- package/dist/esm/index-d88c3eb6.js +2155 -0
- package/dist/esm/index.es-d286eecc.js +11134 -0
- package/dist/esm/instant-apps-app-guide.entry.js +2 -2
- package/dist/esm/instant-apps-control-panel.entry.js +1 -1
- package/dist/esm/instant-apps-create.entry.js +2 -2
- package/dist/esm/instant-apps-export-views.entry.js +2 -2
- package/dist/esm/instant-apps-export.entry.js +2 -2
- package/dist/esm/instant-apps-header.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend.entry.js +4 -4
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +2 -2
- package/dist/esm/instant-apps-landing-page.entry.js +1 -1
- package/dist/esm/instant-apps-language-switcher.entry.js +9 -13
- package/dist/esm/instant-apps-language-translator.entry.js +5 -5
- package/dist/esm/instant-apps-measurement.entry.js +2 -2
- package/dist/esm/instant-apps-popover.entry.js +2 -2
- package/dist/esm/instant-apps-popovers.entry.js +1 -1
- package/dist/esm/instant-apps-scoreboard.entry.js +2 -2
- package/dist/esm/instant-apps-sign-in.entry.js +2 -2
- package/dist/esm/instant-apps-splash.entry.js +3 -3
- package/dist/esm/instant-apps-time-filter.entry.js +3 -57
- package/dist/esm/interactive-5139f8d7.js +83 -0
- package/dist/esm/interactive-cad37709.js +82 -0
- package/dist/esm/it-6a7495d8.js +66 -0
- package/dist/esm/it-ch-89fa3c82.js +66 -0
- package/dist/esm/ja-f87a1f44.js +72 -0
- package/dist/esm/ko-0f4c7a11.js +72 -0
- package/dist/esm/label-56002f24.js +179 -0
- package/dist/esm/label-7f52ca53.js +179 -0
- package/dist/esm/languageSwitcher-d0ca5d6f.js +49 -0
- package/dist/esm/loadable-dc3f24a8.js +93 -0
- package/dist/esm/loader-bae2aa52.js +173 -0
- package/dist/esm/loader.js +6 -6
- package/dist/esm/locale-586d9375.js +155 -0
- package/dist/esm/locale-911eca09.js +591 -0
- package/dist/esm/locale-be7fd298.js +1423 -0
- package/dist/esm/logger-ff14b12f.js +59 -0
- package/dist/esm/lt-a4b14416.js +97 -0
- package/dist/esm/lv-3901862d.js +66 -0
- package/dist/esm/map-select-tools_3.entry.js +15 -13
- package/dist/esm/mk-886d280d.js +66 -0
- package/dist/esm/nb-b667a0e1.js +67 -0
- package/dist/esm/nl-d357a092.js +67 -0
- package/dist/esm/observers-ab3d6528.js +56 -0
- package/dist/esm/openCloseComponent-0e1e6768.js +64 -0
- package/dist/esm/openCloseComponent-c3f79463.js +63 -0
- package/dist/esm/pci-calculator.entry.js +2 -2
- package/dist/esm/pl-75d54069.js +114 -0
- package/dist/esm/popupUtils-ddb1f6fa.js +119 -0
- package/dist/esm/pt-32bd5da2.js +67 -0
- package/dist/esm/pt-br-6f32314d.js +65 -0
- package/dist/esm/public-notification.entry.js +12 -10
- package/dist/esm/publicNotificationStore-8b54bf6f.js +45 -0
- package/dist/esm/request-2dbb152a.js +19 -0
- package/dist/esm/restHelpersGet-a7fda344.js +493 -0
- package/dist/esm/ro-d238055e.js +66 -0
- package/dist/esm/ru-ef7165ff.js +126 -0
- package/dist/esm/shared-list-render-5f202c55.js +339 -0
- package/dist/esm/sk-959dbca1.js +148 -0
- package/dist/esm/sl-96436015.js +168 -0
- package/dist/esm/solution-configuration.entry.js +34 -34
- package/dist/esm/solution-contents_3.entry.js +11 -11
- package/dist/esm/solution-item-accordion.entry.js +3 -3
- package/dist/esm/solution-item-icon.entry.js +2 -2
- package/dist/esm/solution-resource-30a29505.js +1842 -0
- package/dist/esm/solution-store-f252cb74.js +1103 -0
- package/dist/esm/solutions-components.js +7 -7
- package/dist/esm/spatial-ref.entry.js +5 -6
- package/dist/esm/sr-73033c89.js +101 -0
- package/dist/esm/store-manager.entry.js +7 -7
- package/dist/esm/sv-b1153aa8.js +71 -0
- package/dist/esm/t9n-1698878e.js +103 -0
- package/dist/esm/templates-60f33938.js +401 -0
- package/dist/esm/th-e1a074e2.js +65 -0
- package/dist/esm/time-bca5f70b.js +286 -0
- package/dist/esm/tr-1350f529.js +66 -0
- package/dist/esm/typeof-ef2a007d.js +25 -0
- package/dist/esm/uk-18ded66c.js +104 -0
- package/dist/esm/update-ad0b88fa.js +773 -0
- package/dist/esm/utils-0da093e1.js +142 -0
- package/dist/esm/utils-30c4c8ca.js +66 -0
- package/dist/esm/vi-cee99413.js +70 -0
- package/dist/esm/zh-cn-6e204128.js +94 -0
- package/dist/esm/zh-hk-ffb02673.js +92 -0
- package/dist/esm/zh-tw-0f52dd8c.js +92 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources.json +3 -10
- package/dist/solutions-components/assets/t9n/consent-manager/resources_en.json +3 -10
- package/dist/solutions-components/demos/consent-manager.html +56 -0
- package/dist/solutions-components/p-0094924f.entry.js +6 -0
- package/dist/solutions-components/p-00ea0ccc.entry.js +11 -0
- package/dist/solutions-components/p-018d1f95.entry.js +6 -0
- package/dist/solutions-components/p-025af0b3.entry.js +21 -0
- package/dist/solutions-components/p-0549a65c.js +6 -0
- package/dist/solutions-components/p-058d0542.js +17 -0
- package/dist/solutions-components/p-0668e30d.js +34 -0
- package/dist/solutions-components/p-066fc169.js +6 -0
- package/dist/solutions-components/p-067e36b2.entry.js +6 -0
- package/dist/solutions-components/p-0681b29b.entry.js +11 -0
- package/dist/solutions-components/p-0691d1af.entry.js +22 -0
- package/dist/solutions-components/p-088a5dca.js +67 -0
- package/dist/solutions-components/p-097b80df.js +6 -0
- package/dist/solutions-components/p-0a0902c4.entry.js +6 -0
- package/dist/solutions-components/p-0a71f549.entry.js +29 -0
- package/dist/solutions-components/p-0ac9cc4a.entry.js +21 -0
- package/dist/solutions-components/p-0b1fb6ae.js +36 -0
- package/dist/solutions-components/p-0d82ed7b.entry.js +11 -0
- package/dist/solutions-components/p-0e307601.entry.js +11 -0
- package/dist/solutions-components/p-0ece17fc.entry.js +6 -0
- package/dist/solutions-components/p-0f58bb3a.entry.js +11 -0
- package/dist/solutions-components/p-0f9f7528.entry.js +11 -0
- package/dist/solutions-components/p-135b2aba.js +16 -0
- package/dist/solutions-components/p-13bdb2c0.js +6 -0
- package/dist/solutions-components/p-14519a8a.entry.js +11 -0
- package/dist/solutions-components/p-1482f3cf.js +20 -0
- package/dist/solutions-components/p-1492bb6d.js +6 -0
- package/dist/solutions-components/p-1664573a.entry.js +6 -0
- package/dist/solutions-components/p-1900f9b1.js +11 -0
- package/dist/solutions-components/p-1984f2c7.entry.js +17 -0
- package/dist/solutions-components/p-1c1842b0.entry.js +6 -0
- package/dist/solutions-components/p-1f9d927b.entry.js +6 -0
- package/dist/solutions-components/p-1fb3756b.js +6 -0
- package/dist/solutions-components/p-208b5cc4.entry.js +6 -0
- package/dist/solutions-components/p-20cda8ef.entry.js +6 -0
- package/dist/solutions-components/p-2130a063.entry.js +17 -0
- package/dist/solutions-components/p-21f90019.js +21 -0
- package/dist/solutions-components/p-230f7315.entry.js +6 -0
- package/dist/solutions-components/p-24b42859.entry.js +47 -0
- package/dist/solutions-components/p-26f9f9c8.js +11 -0
- package/dist/solutions-components/p-270ca219.entry.js +6 -0
- package/dist/solutions-components/p-27a91364.entry.js +17 -0
- package/dist/solutions-components/p-28498868.entry.js +11 -0
- package/dist/solutions-components/p-2a5a5bfd.entry.js +11 -0
- package/dist/solutions-components/p-2ac553f6.js +6 -0
- package/dist/solutions-components/p-2b1e6acb.entry.js +6 -0
- package/dist/solutions-components/p-2bc98cb0.js +30 -0
- package/dist/solutions-components/p-2d96fdb9.js +6 -0
- package/dist/solutions-components/p-2dd8e49c.js +11 -0
- package/dist/solutions-components/p-30a16b7e.entry.js +11 -0
- package/dist/solutions-components/p-3212300b.entry.js +6 -0
- package/dist/solutions-components/p-35245316.entry.js +6 -0
- package/dist/solutions-components/p-3643a87a.entry.js +6 -0
- package/dist/solutions-components/p-3708cbdc.entry.js +6 -0
- package/dist/solutions-components/p-3828e77b.js +11 -0
- package/dist/solutions-components/p-38e0f88b.js +17 -0
- package/dist/solutions-components/p-3b3bfba5.entry.js +6 -0
- package/dist/solutions-components/p-3ba80c7c.js +6 -0
- package/dist/solutions-components/p-3d1f0434.js +21 -0
- package/dist/solutions-components/p-3ffc4738.js +6 -0
- package/dist/solutions-components/p-409401ce.js +11 -0
- package/dist/solutions-components/p-419df1ac.js +11 -0
- package/dist/solutions-components/p-46159285.js +6 -0
- package/dist/solutions-components/p-49a67314.entry.js +6 -0
- package/dist/solutions-components/p-4cbdea35.js +129 -0
- package/dist/solutions-components/p-4dfc2fc4.js +11 -0
- package/dist/solutions-components/p-4f236b5d.js +43 -0
- package/dist/solutions-components/p-4f50385f.js +16 -0
- package/dist/solutions-components/p-4fe489cf.js +6 -0
- package/dist/solutions-components/p-50239e15.entry.js +6 -0
- package/dist/solutions-components/p-531f66c7.entry.js +6 -0
- package/dist/solutions-components/p-570754a4.js +6 -0
- package/dist/solutions-components/p-570b13d9.js +67 -0
- package/dist/solutions-components/p-58d53a46.entry.js +6 -0
- package/dist/solutions-components/p-59970898.js +6 -0
- package/dist/solutions-components/p-59d02697.entry.js +11 -0
- package/dist/solutions-components/p-5b2ae6c4.js +6 -0
- package/dist/solutions-components/p-5b9783e6.entry.js +23 -0
- package/dist/solutions-components/p-5c5cbe3c.js +6 -0
- package/dist/solutions-components/p-5c692ed6.entry.js +11 -0
- package/dist/solutions-components/p-5cfa35f8.js +6 -0
- package/dist/solutions-components/p-5d581b7e.entry.js +6 -0
- package/dist/solutions-components/p-5df09fe4.js +31 -0
- package/dist/solutions-components/p-5ee359f1.entry.js +11 -0
- package/dist/solutions-components/p-5f099cd2.js +6 -0
- package/dist/solutions-components/p-60123545.js +6 -0
- package/dist/solutions-components/p-6148468f.js +11 -0
- package/dist/solutions-components/p-617d2160.js +6 -0
- package/dist/solutions-components/p-619a1ad0.js +6 -0
- package/dist/solutions-components/p-61d2582e.entry.js +6 -0
- package/dist/solutions-components/p-662cf7fa.entry.js +11 -0
- package/dist/solutions-components/p-6708060e.js +11 -0
- package/dist/solutions-components/p-676a2d60.entry.js +6 -0
- package/dist/solutions-components/p-68b5ec37.js +11 -0
- package/dist/solutions-components/p-68cf5134.entry.js +12 -0
- package/dist/solutions-components/p-694cfe4c.js +6 -0
- package/dist/solutions-components/p-6bcde3c4.js +6 -0
- package/dist/solutions-components/p-6c73f067.js +16 -0
- package/dist/solutions-components/p-6d56f75e.js +11 -0
- package/dist/solutions-components/p-6db88e16.entry.js +11 -0
- package/dist/solutions-components/p-6f93ec3e.entry.js +6 -0
- package/dist/solutions-components/p-7053b20e.entry.js +6 -0
- package/dist/solutions-components/p-741151d4.js +6 -0
- package/dist/solutions-components/p-749fe711.js +6 -0
- package/dist/solutions-components/p-7518e92a.js +6 -0
- package/dist/solutions-components/p-7802efa1.entry.js +11 -0
- package/dist/solutions-components/p-782c71a7.js +6 -0
- package/dist/solutions-components/p-78aa10b0.js +6 -0
- package/dist/solutions-components/p-7a8edc01.entry.js +11 -0
- package/dist/solutions-components/p-7a9e773b.js +6 -0
- package/dist/solutions-components/p-7aa5b402.entry.js +11 -0
- package/dist/solutions-components/p-7aafba66.js +11 -0
- package/dist/solutions-components/p-7d619b04.entry.js +11 -0
- package/dist/solutions-components/p-7dc37540.js +11 -0
- package/dist/solutions-components/p-7e3a6a0b.entry.js +11 -0
- package/dist/solutions-components/p-7fd55161.entry.js +6 -0
- package/dist/solutions-components/p-80168ff4.entry.js +11 -0
- package/dist/solutions-components/p-823684a3.js +6 -0
- package/dist/solutions-components/p-825ef4a7.js +6 -0
- package/dist/solutions-components/p-82d93164.js +11 -0
- package/dist/solutions-components/p-82f661c7.entry.js +11 -0
- package/dist/solutions-components/p-8378852e.js +6 -0
- package/dist/solutions-components/p-85bb5908.js +11 -0
- package/dist/solutions-components/p-866a2fad.js +11 -0
- package/dist/solutions-components/p-8744fe2a.entry.js +6 -0
- package/dist/solutions-components/p-8850bd21.js +21 -0
- package/dist/solutions-components/p-896a5fce.entry.js +11 -0
- package/dist/solutions-components/p-8df5939f.js +6 -0
- package/dist/solutions-components/p-8ec56f08.entry.js +11 -0
- package/dist/solutions-components/p-8ff2cba2.entry.js +11 -0
- package/dist/solutions-components/p-8ff4b2aa.js +488 -0
- package/dist/solutions-components/p-926e65eb.js +6 -0
- package/dist/solutions-components/p-94ad391c.js +40 -0
- package/dist/solutions-components/p-958c68c2.js +61 -0
- package/dist/solutions-components/p-95fcb607.js +6 -0
- package/dist/solutions-components/p-97df5300.js +27 -0
- package/dist/solutions-components/p-98079396.js +21 -0
- package/dist/solutions-components/p-98b1c057.entry.js +6 -0
- package/dist/solutions-components/p-9d4f62ca.js +6 -0
- package/dist/solutions-components/p-9d733373.entry.js +17 -0
- package/dist/solutions-components/p-9d9df87f.entry.js +6 -0
- package/dist/solutions-components/p-9e5d59aa.entry.js +11 -0
- package/dist/solutions-components/p-9f89901b.entry.js +6 -0
- package/dist/solutions-components/p-9fa8da35.entry.js +11 -0
- package/dist/solutions-components/p-a28502ac.entry.js +6 -0
- package/dist/solutions-components/p-a5df8093.entry.js +11 -0
- package/dist/solutions-components/p-a757bf75.js +16 -0
- package/dist/solutions-components/p-a7eded8f.entry.js +11 -0
- package/dist/solutions-components/p-a91fc014.entry.js +6 -0
- package/dist/solutions-components/p-aa6656f0.js +6 -0
- package/dist/solutions-components/p-abe60b81.entry.js +6 -0
- package/dist/solutions-components/p-ad66b010.entry.js +11 -0
- package/dist/solutions-components/p-adb57e25.entry.js +6 -0
- package/dist/solutions-components/p-add122e7.js +6 -0
- package/dist/solutions-components/p-ae357552.entry.js +11 -0
- package/dist/solutions-components/p-af4f2d4a.js +11 -0
- package/dist/solutions-components/p-b0d0022c.entry.js +11 -0
- package/dist/solutions-components/p-b14d2423.entry.js +11 -0
- package/dist/solutions-components/p-b1546c15.js +17 -0
- package/dist/solutions-components/p-b1c45ef8.entry.js +6 -0
- package/dist/solutions-components/p-b1f3c713.js +6 -0
- package/dist/solutions-components/p-b22046db.js +11 -0
- package/dist/solutions-components/p-b290affa.js +17 -0
- package/dist/solutions-components/p-b3b70f6b.entry.js +12 -0
- package/dist/solutions-components/p-b4a94ffe.entry.js +6 -0
- package/dist/solutions-components/p-b62871c3.entry.js +11 -0
- package/dist/solutions-components/p-b6a36bfe.js +6 -0
- package/dist/solutions-components/p-b915029b.js +6 -0
- package/dist/solutions-components/p-b98e9479.js +11 -0
- package/dist/solutions-components/p-b9bc3e7b.entry.js +17 -0
- package/dist/solutions-components/p-ba539e5a.entry.js +11 -0
- package/dist/solutions-components/p-bad614c0.entry.js +11 -0
- package/dist/solutions-components/p-bb158785.entry.js +11 -0
- package/dist/solutions-components/p-bc281e3b.js +6 -0
- package/dist/solutions-components/p-bc2b747e.js +6 -0
- package/dist/solutions-components/p-be78bc15.entry.js +6 -0
- package/dist/solutions-components/p-bf154e41.js +6 -0
- package/dist/solutions-components/p-c0f30138.entry.js +11 -0
- package/dist/solutions-components/p-c109e720.js +6 -0
- package/dist/solutions-components/p-c115215d.entry.js +6 -0
- package/dist/solutions-components/p-c433cc38.js +6 -0
- package/dist/solutions-components/p-c43fdf49.entry.js +16 -0
- package/dist/solutions-components/p-c5e0e5ef.js +6 -0
- package/dist/solutions-components/p-c766823c.entry.js +11 -0
- package/dist/solutions-components/p-c8a2c326.entry.js +29 -0
- package/dist/solutions-components/p-c8b26c56.js +6 -0
- package/dist/solutions-components/p-c900e9e8.entry.js +17 -0
- package/dist/solutions-components/p-c9dae6fb.entry.js +6 -0
- package/dist/solutions-components/p-cbf0769a.entry.js +11 -0
- package/dist/solutions-components/p-cc7d784e.entry.js +6 -0
- package/dist/solutions-components/p-ce8a69ef.entry.js +11 -0
- package/dist/solutions-components/p-cea51591.js +16 -0
- package/dist/solutions-components/p-d0b1d33f.js +6 -0
- package/dist/solutions-components/p-d0b36f2e.entry.js +6 -0
- package/dist/solutions-components/p-d2a6e970.js +6 -0
- package/dist/solutions-components/p-d2dc7d65.entry.js +11 -0
- package/dist/solutions-components/p-d60dc1f1.entry.js +11 -0
- package/dist/solutions-components/p-d654b676.entry.js +11 -0
- package/dist/solutions-components/p-d65f8b73.js +6 -0
- package/dist/solutions-components/p-d82ee2f9.entry.js +6 -0
- package/dist/solutions-components/p-d96fe526.entry.js +22 -0
- package/dist/solutions-components/p-da0cb140.entry.js +11 -0
- package/dist/solutions-components/p-da36faca.entry.js +6 -0
- package/dist/solutions-components/p-daf6a012.entry.js +6 -0
- package/dist/solutions-components/p-dba4704c.js +11 -0
- package/dist/solutions-components/p-dd16d94e.js +6 -0
- package/dist/solutions-components/p-dd689226.js +11 -0
- package/dist/solutions-components/p-dd6a34c6.entry.js +17 -0
- package/dist/solutions-components/p-df4bfe45.js +6 -0
- package/dist/solutions-components/p-dfe18931.js +6 -0
- package/dist/solutions-components/p-e2570a80.js +11 -0
- package/dist/solutions-components/p-ea9e0a79.js +6 -0
- package/dist/solutions-components/p-eb88fddc.js +6 -0
- package/dist/solutions-components/p-ed4fb4a1.entry.js +6 -0
- package/dist/solutions-components/p-ef0c43dc.js +6 -0
- package/dist/solutions-components/p-f05bbd82.entry.js +11 -0
- package/dist/solutions-components/p-f0ceb675.entry.js +11 -0
- package/dist/solutions-components/p-f1f356f0.js +7 -0
- package/dist/solutions-components/p-f46f7da7.entry.js +12 -0
- package/dist/solutions-components/p-f6e3d19a.entry.js +11 -0
- package/dist/solutions-components/p-f6e81cf8.js +22 -0
- package/dist/solutions-components/p-f7085e9e.entry.js +17 -0
- package/dist/solutions-components/p-f8ea8e73.js +6 -0
- package/dist/solutions-components/p-fb6ca6dd.entry.js +11 -0
- package/dist/solutions-components/p-fdaf1290.entry.js +11 -0
- package/dist/solutions-components/p-fe719f16.entry.js +6 -0
- package/dist/solutions-components/p-feebdac9.entry.js +17 -0
- package/dist/solutions-components/p-ff15447c.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +14 -0
- package/dist/types/components/consent-manager/consent-manager.d.ts +23 -20
- package/dist/types/components/delete-button/delete-button.d.ts +1 -1
- package/dist/types/components/edit-card/edit-card.d.ts +4 -0
- package/dist/types/components/layer-table/layer-table.d.ts +55 -7
- package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +18 -2
- package/dist/types/components/map-picker/map-picker.d.ts +10 -2
- package/dist/types/components.d.ts +67 -34
- package/dist/types/preact.d.ts +6 -7
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/dist/types/utils/interfaces.d.ts +12 -0
- package/package.json +13 -13
- package/dist/cjs/ExpandToggle-c5e409ce.js +0 -115
- package/dist/cjs/FloatingArrow-c2b50d47.js +0 -48
- package/dist/cjs/Heading-3e2d46fd.js +0 -25
- package/dist/cjs/Validation-c065b988.js +0 -20
- package/dist/cjs/app-globals-09eb9eb5.js +0 -67
- package/dist/cjs/ar-0afb390b.js +0 -106
- package/dist/cjs/arcgis-login.cjs.entry.js +0 -61
- package/dist/cjs/bg-b1be4ef3.js +0 -84
- package/dist/cjs/browser-0bedacf5.js +0 -35
- package/dist/cjs/bs-a314390f.js +0 -53
- package/dist/cjs/ca-b8e89e47.js +0 -73
- package/dist/cjs/calcite-alert_6.cjs.entry.js +0 -2105
- package/dist/cjs/calcite-input-time-picker-42ed419f.js +0 -1870
- package/dist/cjs/calcite-modal.cjs.entry.js +0 -393
- package/dist/cjs/common-eee0c33f.js +0 -38
- package/dist/cjs/conditionalSlot-003e6975.js +0 -54
- package/dist/cjs/config-2282fdac.js +0 -40
- package/dist/cjs/constants-bed33322.js +0 -860
- package/dist/cjs/cs-f14626e8.js +0 -149
- package/dist/cjs/da-2fce32d4.js +0 -69
- package/dist/cjs/date-e763caec.js +0 -264
- package/dist/cjs/de-2c1fce6f.js +0 -93
- package/dist/cjs/de-at-94de293d.js +0 -92
- package/dist/cjs/de-ch-d42f4faf.js +0 -92
- package/dist/cjs/delete-dialog.cjs.entry.js +0 -131
- package/dist/cjs/downloadUtils-76bc7e30.js +0 -3240
- package/dist/cjs/el-8092eeb9.js +0 -68
- package/dist/cjs/en-au-9bc4467f.js +0 -68
- package/dist/cjs/en-ca-d9140239.js +0 -67
- package/dist/cjs/en-gb-f5e2af8e.js +0 -71
- package/dist/cjs/es-4b6327d7.js +0 -68
- package/dist/cjs/es-mx-f729412a.js +0 -67
- package/dist/cjs/et-ec115eb3.js +0 -94
- package/dist/cjs/fi-95701850.js +0 -117
- package/dist/cjs/floating-ui-a8693586.js +0 -2413
- package/dist/cjs/focusTrapComponent-48fdd3f6.js +0 -1013
- package/dist/cjs/form-a36bd0e5.js +0 -381
- package/dist/cjs/fr-ch-a231f229.js +0 -68
- package/dist/cjs/fr-e22a2684.js +0 -70
- package/dist/cjs/he-d0070eb9.js +0 -107
- package/dist/cjs/helpers-0493759d.js +0 -940
- package/dist/cjs/hi-04615e27.js +0 -67
- package/dist/cjs/hr-27fefb6d.js +0 -82
- package/dist/cjs/hu-63da9819.js +0 -90
- package/dist/cjs/id-d4fe65cd.js +0 -68
- package/dist/cjs/index-2b13a4d5.js +0 -201
- package/dist/cjs/index-4b68e4b4.js +0 -1770
- package/dist/cjs/index-f052f656.js +0 -2156
- package/dist/cjs/index.es-8336efed.js +0 -11307
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +0 -590
- package/dist/cjs/interactive-7ccdd728.js +0 -85
- package/dist/cjs/it-418a53bf.js +0 -68
- package/dist/cjs/it-ch-7f4632ab.js +0 -68
- package/dist/cjs/ja-6c5d5c7d.js +0 -74
- package/dist/cjs/ko-e4154b91.js +0 -74
- package/dist/cjs/loadable-f3fe73a2.js +0 -98
- package/dist/cjs/locale-339b55f0.js +0 -160
- package/dist/cjs/locale-4b820602.js +0 -120
- package/dist/cjs/locale-7eb2f603.js +0 -605
- package/dist/cjs/logger-912d7f26.js +0 -61
- package/dist/cjs/lt-d6dae6fd.js +0 -99
- package/dist/cjs/lv-bcf9724a.js +0 -68
- package/dist/cjs/mk-171505d2.js +0 -68
- package/dist/cjs/nb-0dcee19c.js +0 -69
- package/dist/cjs/nl-dace5864.js +0 -69
- package/dist/cjs/observers-affd684f.js +0 -58
- package/dist/cjs/openCloseComponent-044883e4.js +0 -65
- package/dist/cjs/pl-7755a609.js +0 -116
- package/dist/cjs/popupUtils-bc762034.js +0 -121
- package/dist/cjs/pt-3121cc39.js +0 -69
- package/dist/cjs/pt-br-67b16e3a.js +0 -67
- package/dist/cjs/publicNotificationStore-570204c1.js +0 -47
- package/dist/cjs/restHelpersGet-5c2245a3.js +0 -991
- package/dist/cjs/ro-7f726306.js +0 -68
- package/dist/cjs/ru-fc11963d.js +0 -128
- package/dist/cjs/share-item.cjs.entry.js +0 -61
- package/dist/cjs/shared-list-render-3d6ec3ca.js +0 -361
- package/dist/cjs/sk-e85b9c15.js +0 -150
- package/dist/cjs/sl-9eb375c2.js +0 -170
- package/dist/cjs/solution-resource-40e70253.js +0 -145
- package/dist/cjs/solution-store-4de89072.js +0 -1354
- package/dist/cjs/sr-1d2513be.js +0 -103
- package/dist/cjs/sv-f7693c9f.js +0 -73
- package/dist/cjs/t9n-64df74f3.js +0 -108
- package/dist/cjs/templates-0b7f886f.js +0 -408
- package/dist/cjs/th-0d2328bb.js +0 -67
- package/dist/cjs/time-513586eb.js +0 -301
- package/dist/cjs/tr-2c074411.js +0 -68
- package/dist/cjs/uk-5e16db67.js +0 -106
- package/dist/cjs/utils-3f10ea6b.js +0 -153
- package/dist/cjs/utils-d0049d76.js +0 -79
- package/dist/cjs/vi-2a4d8334.js +0 -72
- package/dist/cjs/zh-cn-126bcbc0.js +0 -96
- package/dist/cjs/zh-hk-aeeba861.js +0 -94
- package/dist/cjs/zh-tw-0cfb6e20.js +0 -94
- package/dist/collection/components/arcgis-login/arcgis-login.css +0 -19
- package/dist/collection/components/arcgis-login/arcgis-login.js +0 -80
- package/dist/collection/components/share-item/share-item.css +0 -19
- package/dist/collection/components/share-item/share-item.js +0 -80
- package/dist/components/arcgis-login.d.ts +0 -11
- package/dist/components/arcgis-login.js +0 -76
- package/dist/components/share-item.d.ts +0 -11
- package/dist/components/share-item.js +0 -76
- package/dist/esm/ExpandToggle-d2cde0b5.js +0 -108
- package/dist/esm/FloatingArrow-1ba04e83.js +0 -46
- package/dist/esm/Heading-82d9e017.js +0 -22
- package/dist/esm/Validation-594a63f5.js +0 -18
- package/dist/esm/app-globals-177bd1cd.js +0 -65
- package/dist/esm/ar-a85b5d05.js +0 -104
- package/dist/esm/arcgis-login.entry.js +0 -57
- package/dist/esm/bg-def28c6d.js +0 -82
- package/dist/esm/browser-e3f463e1.js +0 -32
- package/dist/esm/bs-86bb2bcb.js +0 -51
- package/dist/esm/ca-823e6ba8.js +0 -71
- package/dist/esm/calcite-alert_6.entry.js +0 -2096
- package/dist/esm/calcite-input-time-picker-c45e1964.js +0 -1867
- package/dist/esm/calcite-modal.entry.js +0 -389
- package/dist/esm/common-c3bbba83.js +0 -36
- package/dist/esm/conditionalSlot-720a3c33.js +0 -51
- package/dist/esm/config-3af0e436.js +0 -36
- package/dist/esm/constants-637a40f5.js +0 -856
- package/dist/esm/cs-87414fd8.js +0 -147
- package/dist/esm/da-f7060594.js +0 -67
- package/dist/esm/date-8f6c3f50.js +0 -248
- package/dist/esm/de-18aa2195.js +0 -91
- package/dist/esm/de-at-00f0ce55.js +0 -90
- package/dist/esm/de-ch-2bf886c0.js +0 -90
- package/dist/esm/delete-dialog.entry.js +0 -127
- package/dist/esm/dom-6f6759df.js +0 -1165
- package/dist/esm/downloadUtils-bc7a4ba1.js +0 -3233
- package/dist/esm/el-0c5df4ce.js +0 -66
- package/dist/esm/en-au-947d067e.js +0 -66
- package/dist/esm/en-ca-d80eb647.js +0 -65
- package/dist/esm/en-gb-78272f13.js +0 -69
- package/dist/esm/es-6b8b399b.js +0 -66
- package/dist/esm/es-mx-4f12df51.js +0 -65
- package/dist/esm/et-11aeba76.js +0 -92
- package/dist/esm/fi-c44d11d6.js +0 -115
- package/dist/esm/floating-ui-d21020a0.js +0 -2404
- package/dist/esm/focusTrapComponent-1ddc67c5.js +0 -1008
- package/dist/esm/form-e9b1ad9a.js +0 -372
- package/dist/esm/fr-cac28d20.js +0 -68
- package/dist/esm/fr-ch-a324bd02.js +0 -66
- package/dist/esm/he-eab95e66.js +0 -105
- package/dist/esm/helpers-91ca0f44.js +0 -913
- package/dist/esm/hi-cefe2a7e.js +0 -65
- package/dist/esm/hr-f863024d.js +0 -80
- package/dist/esm/hu-2921d1d5.js +0 -88
- package/dist/esm/id-4e25c1e7.js +0 -66
- package/dist/esm/index-39bc2e6d.js +0 -199
- package/dist/esm/index-904bc599.js +0 -1736
- package/dist/esm/index-e14fade9.js +0 -2154
- package/dist/esm/index.es-0d189a34.js +0 -11220
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +0 -584
- package/dist/esm/interactive-949b348f.js +0 -82
- package/dist/esm/it-1f2ce2fc.js +0 -66
- package/dist/esm/it-ch-fa4f6a28.js +0 -66
- package/dist/esm/ja-dd6ac9b5.js +0 -72
- package/dist/esm/ko-3c269b4f.js +0 -72
- package/dist/esm/label-1ef4763d.js +0 -179
- package/dist/esm/loadable-421e634e.js +0 -93
- package/dist/esm/locale-0d06fca0.js +0 -155
- package/dist/esm/locale-77038bee.js +0 -115
- package/dist/esm/locale-a75d14ff.js +0 -591
- package/dist/esm/logger-5c7a2fec.js +0 -59
- package/dist/esm/lt-8f5fd3eb.js +0 -97
- package/dist/esm/lv-d1afc7ed.js +0 -66
- package/dist/esm/mk-794650fc.js +0 -66
- package/dist/esm/nb-800989aa.js +0 -67
- package/dist/esm/nl-634b9b85.js +0 -67
- package/dist/esm/observers-2d4fa9e3.js +0 -56
- package/dist/esm/openCloseComponent-4621d4ae.js +0 -63
- package/dist/esm/pl-45fb968c.js +0 -114
- package/dist/esm/popupUtils-03dc398a.js +0 -119
- package/dist/esm/pt-bd7887a6.js +0 -67
- package/dist/esm/pt-br-d9181dce.js +0 -65
- package/dist/esm/publicNotificationStore-8f6b0f93.js +0 -45
- package/dist/esm/restHelpersGet-48113381.js +0 -976
- package/dist/esm/ro-31fe0dcc.js +0 -66
- package/dist/esm/ru-e73bc075.js +0 -126
- package/dist/esm/share-item.entry.js +0 -57
- package/dist/esm/shared-list-render-83bb7274.js +0 -339
- package/dist/esm/sk-e7e24146.js +0 -148
- package/dist/esm/sl-ad96d047.js +0 -168
- package/dist/esm/solution-resource-f5809979.js +0 -142
- package/dist/esm/solution-store-ff13861b.js +0 -1352
- package/dist/esm/sr-785166a3.js +0 -101
- package/dist/esm/sv-9f422817.js +0 -71
- package/dist/esm/t9n-23649a4a.js +0 -103
- package/dist/esm/templates-0b442208.js +0 -402
- package/dist/esm/th-7e8b3dad.js +0 -65
- package/dist/esm/time-5ca488ba.js +0 -286
- package/dist/esm/tr-1b1dd6db.js +0 -66
- package/dist/esm/uk-13d0afbf.js +0 -104
- package/dist/esm/utils-0a78d3c9.js +0 -142
- package/dist/esm/utils-a564ca55.js +0 -66
- package/dist/esm/vi-82ec876c.js +0 -70
- package/dist/esm/zh-cn-c4181895.js +0 -94
- package/dist/esm/zh-hk-752cc263.js +0 -92
- package/dist/esm/zh-tw-e653ba6c.js +0 -92
- package/dist/solutions-components/p-053effee.entry.js +0 -6
- package/dist/solutions-components/p-05ae2b11.entry.js +0 -6
- package/dist/solutions-components/p-087c3740.entry.js +0 -6
- package/dist/solutions-components/p-08c18450.js +0 -11
- package/dist/solutions-components/p-09543b4e.js +0 -6
- package/dist/solutions-components/p-09d34b2b.entry.js +0 -11
- package/dist/solutions-components/p-0af967af.js +0 -6
- package/dist/solutions-components/p-0f8241d2.entry.js +0 -6
- package/dist/solutions-components/p-10a158fd.entry.js +0 -11
- package/dist/solutions-components/p-115af8e4.entry.js +0 -11
- package/dist/solutions-components/p-11c2426d.entry.js +0 -20
- package/dist/solutions-components/p-1336a071.entry.js +0 -6
- package/dist/solutions-components/p-1588fad8.entry.js +0 -6
- package/dist/solutions-components/p-177b4cbc.js +0 -16
- package/dist/solutions-components/p-184b270d.entry.js +0 -11
- package/dist/solutions-components/p-191f30e1.entry.js +0 -11
- package/dist/solutions-components/p-19e89591.entry.js +0 -12
- package/dist/solutions-components/p-1afc5947.entry.js +0 -11
- package/dist/solutions-components/p-1b1ff60a.entry.js +0 -6
- package/dist/solutions-components/p-1e8af7ed.js +0 -6
- package/dist/solutions-components/p-1f65aed7.js +0 -6
- package/dist/solutions-components/p-1fafdc23.entry.js +0 -11
- package/dist/solutions-components/p-20ed3f7f.entry.js +0 -11
- package/dist/solutions-components/p-2105e658.entry.js +0 -6
- package/dist/solutions-components/p-25f30972.entry.js +0 -11
- package/dist/solutions-components/p-26ba0cc7.js +0 -17
- package/dist/solutions-components/p-2714a658.entry.js +0 -6
- package/dist/solutions-components/p-2714ede8.entry.js +0 -16
- package/dist/solutions-components/p-274aa753.entry.js +0 -6
- package/dist/solutions-components/p-294cd25c.js +0 -6
- package/dist/solutions-components/p-2b9f9f7d.js +0 -16
- package/dist/solutions-components/p-2d9072d8.entry.js +0 -11
- package/dist/solutions-components/p-2e0aea4e.entry.js +0 -11
- package/dist/solutions-components/p-2e42f34c.js +0 -6
- package/dist/solutions-components/p-2f1ef41d.entry.js +0 -6
- package/dist/solutions-components/p-2f784608.entry.js +0 -6
- package/dist/solutions-components/p-351c7cbf.entry.js +0 -6
- package/dist/solutions-components/p-368902f1.entry.js +0 -6
- package/dist/solutions-components/p-39e21b70.js +0 -6
- package/dist/solutions-components/p-3aee989b.js +0 -11
- package/dist/solutions-components/p-3af39767.entry.js +0 -6
- package/dist/solutions-components/p-3ba388b6.entry.js +0 -17
- package/dist/solutions-components/p-3d999f0f.entry.js +0 -6
- package/dist/solutions-components/p-3e44cfab.entry.js +0 -6
- package/dist/solutions-components/p-3e87c19c.js +0 -6
- package/dist/solutions-components/p-3f9ec755.js +0 -6
- package/dist/solutions-components/p-3fe6c230.entry.js +0 -6
- package/dist/solutions-components/p-41503b16.entry.js +0 -6
- package/dist/solutions-components/p-4416d650.entry.js +0 -17
- package/dist/solutions-components/p-443be7fe.js +0 -6
- package/dist/solutions-components/p-44dc3dec.entry.js +0 -6
- package/dist/solutions-components/p-4695cfab.js +0 -6
- package/dist/solutions-components/p-499489c5.entry.js +0 -6
- package/dist/solutions-components/p-49df6eb3.entry.js +0 -11
- package/dist/solutions-components/p-4a665563.js +0 -6
- package/dist/solutions-components/p-4b15f4a4.entry.js +0 -11
- package/dist/solutions-components/p-4b47caf1.entry.js +0 -11
- package/dist/solutions-components/p-4d6e359e.entry.js +0 -11
- package/dist/solutions-components/p-4e3a18b1.js +0 -6
- package/dist/solutions-components/p-4e6eb06e.js +0 -7
- package/dist/solutions-components/p-4ff35ed4.js +0 -6
- package/dist/solutions-components/p-5104cc98.js +0 -6
- package/dist/solutions-components/p-51c6e6fe.js +0 -21
- package/dist/solutions-components/p-545a48dc.entry.js +0 -11
- package/dist/solutions-components/p-55bbfdbc.entry.js +0 -6
- package/dist/solutions-components/p-5804e6e1.entry.js +0 -22
- package/dist/solutions-components/p-58cff07f.entry.js +0 -11
- package/dist/solutions-components/p-592ab45c.js +0 -6
- package/dist/solutions-components/p-592f2000.entry.js +0 -6
- package/dist/solutions-components/p-5b5b78c0.js +0 -6
- package/dist/solutions-components/p-5e71e72a.js +0 -21
- package/dist/solutions-components/p-614a66c4.entry.js +0 -11
- package/dist/solutions-components/p-6166d8b4.js +0 -16
- package/dist/solutions-components/p-61cc2efe.js +0 -6
- package/dist/solutions-components/p-62c10928.entry.js +0 -6
- package/dist/solutions-components/p-63d334b2.entry.js +0 -6
- package/dist/solutions-components/p-677db47a.js +0 -6
- package/dist/solutions-components/p-68375137.js +0 -6
- package/dist/solutions-components/p-6a3f2249.entry.js +0 -6
- package/dist/solutions-components/p-6acd19c5.entry.js +0 -12
- package/dist/solutions-components/p-6b5b52c1.entry.js +0 -21
- package/dist/solutions-components/p-6cad2a22.js +0 -6
- package/dist/solutions-components/p-6f606cdb.js +0 -61
- package/dist/solutions-components/p-7059fc40.js +0 -6
- package/dist/solutions-components/p-70eba636.entry.js +0 -6
- package/dist/solutions-components/p-71f31d39.js +0 -6
- package/dist/solutions-components/p-74720d2b.js +0 -6
- package/dist/solutions-components/p-7530a02f.js +0 -30
- package/dist/solutions-components/p-764ff506.entry.js +0 -11
- package/dist/solutions-components/p-76a1236d.entry.js +0 -6
- package/dist/solutions-components/p-770a5a64.js +0 -11
- package/dist/solutions-components/p-77865541.entry.js +0 -11
- package/dist/solutions-components/p-78b6d3fe.entry.js +0 -6
- package/dist/solutions-components/p-78df7603.entry.js +0 -11
- package/dist/solutions-components/p-78e09c03.js +0 -6
- package/dist/solutions-components/p-7a7951bd.entry.js +0 -11
- package/dist/solutions-components/p-7bcfe068.entry.js +0 -6
- package/dist/solutions-components/p-7cc8e95a.js +0 -11
- package/dist/solutions-components/p-7d5d1b0a.js +0 -11
- package/dist/solutions-components/p-7eee9aa8.js +0 -11
- package/dist/solutions-components/p-7f68e6a4.js +0 -11
- package/dist/solutions-components/p-7fb51464.entry.js +0 -17
- package/dist/solutions-components/p-80ff858b.js +0 -6
- package/dist/solutions-components/p-8304ce4b.js +0 -17
- package/dist/solutions-components/p-85c068fd.js +0 -6
- package/dist/solutions-components/p-85c3237c.js +0 -11
- package/dist/solutions-components/p-860099d5.js +0 -6
- package/dist/solutions-components/p-86a5caf8.js +0 -6
- package/dist/solutions-components/p-86db882f.js +0 -6
- package/dist/solutions-components/p-872986ce.entry.js +0 -11
- package/dist/solutions-components/p-8a2ccb1e.js +0 -6
- package/dist/solutions-components/p-8cb9ecf6.js +0 -6
- package/dist/solutions-components/p-8d811472.js +0 -6
- package/dist/solutions-components/p-8dc9d5b6.entry.js +0 -6
- package/dist/solutions-components/p-8f8c7045.entry.js +0 -6
- package/dist/solutions-components/p-8ff43000.entry.js +0 -11
- package/dist/solutions-components/p-91a83986.entry.js +0 -47
- package/dist/solutions-components/p-928f0b5e.entry.js +0 -6
- package/dist/solutions-components/p-93d03bf0.js +0 -11
- package/dist/solutions-components/p-94e51621.entry.js +0 -6
- package/dist/solutions-components/p-977c099e.js +0 -11
- package/dist/solutions-components/p-9bb44f57.js +0 -65
- package/dist/solutions-components/p-9c25ee2c.entry.js +0 -6
- package/dist/solutions-components/p-9c5d5171.js +0 -11
- package/dist/solutions-components/p-9ce8e34f.js +0 -11
- package/dist/solutions-components/p-9d86dd68.js +0 -6
- package/dist/solutions-components/p-9d9e0e74.entry.js +0 -6
- package/dist/solutions-components/p-9e8d7c1d.entry.js +0 -17
- package/dist/solutions-components/p-9e996faa.js +0 -6
- package/dist/solutions-components/p-a1473254.entry.js +0 -11
- package/dist/solutions-components/p-a1ed15b8.entry.js +0 -11
- package/dist/solutions-components/p-a329f05c.entry.js +0 -6
- package/dist/solutions-components/p-a52fa87b.entry.js +0 -11
- package/dist/solutions-components/p-a5f6a4b9.entry.js +0 -23
- package/dist/solutions-components/p-a6790373.entry.js +0 -11
- package/dist/solutions-components/p-a693aa25.entry.js +0 -17
- package/dist/solutions-components/p-a7d249d9.js +0 -6
- package/dist/solutions-components/p-a7d4b1a4.js +0 -6
- package/dist/solutions-components/p-ac9c4111.entry.js +0 -12
- package/dist/solutions-components/p-acc4d847.entry.js +0 -11
- package/dist/solutions-components/p-adabe68e.entry.js +0 -6
- package/dist/solutions-components/p-ae5ea416.entry.js +0 -6
- package/dist/solutions-components/p-b138a65e.js +0 -11
- package/dist/solutions-components/p-b49e1a78.js +0 -6
- package/dist/solutions-components/p-b5a5da41.entry.js +0 -17
- package/dist/solutions-components/p-b6d50640.entry.js +0 -6
- package/dist/solutions-components/p-b8d1b57a.entry.js +0 -6
- package/dist/solutions-components/p-b90978d2.js +0 -6
- package/dist/solutions-components/p-b95968fa.entry.js +0 -6
- package/dist/solutions-components/p-bab47a85.entry.js +0 -29
- package/dist/solutions-components/p-bd35725f.js +0 -6
- package/dist/solutions-components/p-be6cd650.entry.js +0 -11
- package/dist/solutions-components/p-c0ceb17a.js +0 -6
- package/dist/solutions-components/p-c2ceb29c.js +0 -6
- package/dist/solutions-components/p-c350eacb.js +0 -143
- package/dist/solutions-components/p-c399f2b8.entry.js +0 -6
- package/dist/solutions-components/p-c604728b.js +0 -6
- package/dist/solutions-components/p-c63451e1.entry.js +0 -11
- package/dist/solutions-components/p-c7f86f73.entry.js +0 -6
- package/dist/solutions-components/p-c8e22575.entry.js +0 -22
- package/dist/solutions-components/p-c9422007.js +0 -6
- package/dist/solutions-components/p-c9715704.entry.js +0 -11
- package/dist/solutions-components/p-cb8d90d1.js +0 -11
- package/dist/solutions-components/p-cc6f6e41.entry.js +0 -17
- package/dist/solutions-components/p-cd482a33.js +0 -21
- package/dist/solutions-components/p-cdc63710.entry.js +0 -11
- package/dist/solutions-components/p-ce7b0b1a.entry.js +0 -11
- package/dist/solutions-components/p-cf2947f6.entry.js +0 -11
- package/dist/solutions-components/p-d02fb95c.entry.js +0 -17
- package/dist/solutions-components/p-d031cf50.entry.js +0 -11
- package/dist/solutions-components/p-d0d020a5.js +0 -37
- package/dist/solutions-components/p-d0ebd10d.js +0 -6
- package/dist/solutions-components/p-d154b5a1.entry.js +0 -11
- package/dist/solutions-components/p-d1b2484b.entry.js +0 -17
- package/dist/solutions-components/p-d2c2a105.entry.js +0 -11
- package/dist/solutions-components/p-d2f8d8a8.entry.js +0 -6
- package/dist/solutions-components/p-d37a68f7.entry.js +0 -6
- package/dist/solutions-components/p-d390df76.entry.js +0 -11
- package/dist/solutions-components/p-d3e1cc81.js +0 -6
- package/dist/solutions-components/p-d851b11e.js +0 -6
- package/dist/solutions-components/p-d9d25da8.entry.js +0 -11
- package/dist/solutions-components/p-d9e9fe80.js +0 -16
- package/dist/solutions-components/p-d9f3778e.js +0 -6
- package/dist/solutions-components/p-daae2ae7.js +0 -6
- package/dist/solutions-components/p-db7d5db8.entry.js +0 -6
- package/dist/solutions-components/p-dc9d4be3.js +0 -6
- package/dist/solutions-components/p-ddb37cba.entry.js +0 -11
- package/dist/solutions-components/p-df062602.entry.js +0 -11
- package/dist/solutions-components/p-e29e57db.entry.js +0 -6
- package/dist/solutions-components/p-e2fd2e29.js +0 -6
- package/dist/solutions-components/p-e3111b70.js +0 -6
- package/dist/solutions-components/p-e37e117f.js +0 -11
- package/dist/solutions-components/p-e4be63b6.entry.js +0 -11
- package/dist/solutions-components/p-e4e7add2.js +0 -11
- package/dist/solutions-components/p-e625aa69.entry.js +0 -6
- package/dist/solutions-components/p-e93a531c.entry.js +0 -11
- package/dist/solutions-components/p-e9a0d2f3.entry.js +0 -6
- package/dist/solutions-components/p-e9d3365f.js +0 -22
- package/dist/solutions-components/p-e9fcc194.entry.js +0 -6
- package/dist/solutions-components/p-ee487e75.entry.js +0 -11
- package/dist/solutions-components/p-ef773a13.js +0 -11
- package/dist/solutions-components/p-f09744aa.entry.js +0 -6
- package/dist/solutions-components/p-f3119757.entry.js +0 -11
- package/dist/solutions-components/p-f4aadb3b.js +0 -36
- package/dist/solutions-components/p-f5789e08.entry.js +0 -29
- package/dist/solutions-components/p-f57978f3.entry.js +0 -6
- package/dist/solutions-components/p-f6cc1cf8.entry.js +0 -17
- package/dist/solutions-components/p-f845da58.js +0 -6
- package/dist/solutions-components/p-fbf63d14.entry.js +0 -6
- package/dist/solutions-components/p-fc7c88c8.js +0 -6
- package/dist/solutions-components/p-fd019d15.js +0 -11
- package/dist/solutions-components/p-fd40d066.js +0 -6
- package/dist/solutions-components/p-febf9f75.entry.js +0 -11
- package/dist/solutions-components/p-ff9e28d1.js +0 -488
- package/dist/types/components/arcgis-login/arcgis-login.d.ts +0 -19
- package/dist/types/components/share-item/share-item.d.ts +0 -19
@@ -1,2156 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
'use strict';
|
7
|
-
|
8
|
-
/*!
|
9
|
-
* @esri/arcgis-html-sanitizer - v4.0.3 - Wed Jul 03 2024 17:50:35 GMT-0400 (Eastern Daylight Time)
|
10
|
-
* Copyright (c) 2024 - Environmental Systems Research Institute, Inc.
|
11
|
-
* Apache-2.0
|
12
|
-
*
|
13
|
-
* js-xss
|
14
|
-
* Copyright (c) 2012-2018 Zongmin Lei(雷宗民) <leizongmin@gmail.com>
|
15
|
-
* http://ucdok.com
|
16
|
-
* MIT License, see https://github.com/leizongmin/js-xss/blob/master/LICENSE for details
|
17
|
-
*/
|
18
|
-
/*! *****************************************************************************
|
19
|
-
Copyright (c) Microsoft Corporation.
|
20
|
-
|
21
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
22
|
-
purpose with or without fee is hereby granted.
|
23
|
-
|
24
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
25
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
26
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
27
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
28
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
29
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
30
|
-
PERFORMANCE OF THIS SOFTWARE.
|
31
|
-
***************************************************************************** */
|
32
|
-
/* global Reflect, Promise */
|
33
|
-
|
34
|
-
|
35
|
-
var __assign = function() {
|
36
|
-
__assign = Object.assign || function __assign(t) {
|
37
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
38
|
-
s = arguments[i];
|
39
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
40
|
-
}
|
41
|
-
return t;
|
42
|
-
};
|
43
|
-
return __assign.apply(this, arguments);
|
44
|
-
};
|
45
|
-
|
46
|
-
var lib$1 = {exports: {}};
|
47
|
-
|
48
|
-
var _default$1 = {};
|
49
|
-
|
50
|
-
var lib = {exports: {}};
|
51
|
-
|
52
|
-
var _default = {};
|
53
|
-
|
54
|
-
/**
|
55
|
-
* cssfilter
|
56
|
-
*
|
57
|
-
* @author 老雷<leizongmin@gmail.com>
|
58
|
-
*/
|
59
|
-
|
60
|
-
function getDefaultWhiteList$1 () {
|
61
|
-
// 白名单值说明:
|
62
|
-
// true: 允许该属性
|
63
|
-
// Function: function (val) { } 返回true表示允许该属性,其他值均表示不允许
|
64
|
-
// RegExp: regexp.test(val) 返回true表示允许该属性,其他值均表示不允许
|
65
|
-
// 除上面列出的值外均表示不允许
|
66
|
-
var whiteList = {};
|
67
|
-
|
68
|
-
whiteList['align-content'] = false; // default: auto
|
69
|
-
whiteList['align-items'] = false; // default: auto
|
70
|
-
whiteList['align-self'] = false; // default: auto
|
71
|
-
whiteList['alignment-adjust'] = false; // default: auto
|
72
|
-
whiteList['alignment-baseline'] = false; // default: baseline
|
73
|
-
whiteList['all'] = false; // default: depending on individual properties
|
74
|
-
whiteList['anchor-point'] = false; // default: none
|
75
|
-
whiteList['animation'] = false; // default: depending on individual properties
|
76
|
-
whiteList['animation-delay'] = false; // default: 0
|
77
|
-
whiteList['animation-direction'] = false; // default: normal
|
78
|
-
whiteList['animation-duration'] = false; // default: 0
|
79
|
-
whiteList['animation-fill-mode'] = false; // default: none
|
80
|
-
whiteList['animation-iteration-count'] = false; // default: 1
|
81
|
-
whiteList['animation-name'] = false; // default: none
|
82
|
-
whiteList['animation-play-state'] = false; // default: running
|
83
|
-
whiteList['animation-timing-function'] = false; // default: ease
|
84
|
-
whiteList['azimuth'] = false; // default: center
|
85
|
-
whiteList['backface-visibility'] = false; // default: visible
|
86
|
-
whiteList['background'] = true; // default: depending on individual properties
|
87
|
-
whiteList['background-attachment'] = true; // default: scroll
|
88
|
-
whiteList['background-clip'] = true; // default: border-box
|
89
|
-
whiteList['background-color'] = true; // default: transparent
|
90
|
-
whiteList['background-image'] = true; // default: none
|
91
|
-
whiteList['background-origin'] = true; // default: padding-box
|
92
|
-
whiteList['background-position'] = true; // default: 0% 0%
|
93
|
-
whiteList['background-repeat'] = true; // default: repeat
|
94
|
-
whiteList['background-size'] = true; // default: auto
|
95
|
-
whiteList['baseline-shift'] = false; // default: baseline
|
96
|
-
whiteList['binding'] = false; // default: none
|
97
|
-
whiteList['bleed'] = false; // default: 6pt
|
98
|
-
whiteList['bookmark-label'] = false; // default: content()
|
99
|
-
whiteList['bookmark-level'] = false; // default: none
|
100
|
-
whiteList['bookmark-state'] = false; // default: open
|
101
|
-
whiteList['border'] = true; // default: depending on individual properties
|
102
|
-
whiteList['border-bottom'] = true; // default: depending on individual properties
|
103
|
-
whiteList['border-bottom-color'] = true; // default: current color
|
104
|
-
whiteList['border-bottom-left-radius'] = true; // default: 0
|
105
|
-
whiteList['border-bottom-right-radius'] = true; // default: 0
|
106
|
-
whiteList['border-bottom-style'] = true; // default: none
|
107
|
-
whiteList['border-bottom-width'] = true; // default: medium
|
108
|
-
whiteList['border-collapse'] = true; // default: separate
|
109
|
-
whiteList['border-color'] = true; // default: depending on individual properties
|
110
|
-
whiteList['border-image'] = true; // default: none
|
111
|
-
whiteList['border-image-outset'] = true; // default: 0
|
112
|
-
whiteList['border-image-repeat'] = true; // default: stretch
|
113
|
-
whiteList['border-image-slice'] = true; // default: 100%
|
114
|
-
whiteList['border-image-source'] = true; // default: none
|
115
|
-
whiteList['border-image-width'] = true; // default: 1
|
116
|
-
whiteList['border-left'] = true; // default: depending on individual properties
|
117
|
-
whiteList['border-left-color'] = true; // default: current color
|
118
|
-
whiteList['border-left-style'] = true; // default: none
|
119
|
-
whiteList['border-left-width'] = true; // default: medium
|
120
|
-
whiteList['border-radius'] = true; // default: 0
|
121
|
-
whiteList['border-right'] = true; // default: depending on individual properties
|
122
|
-
whiteList['border-right-color'] = true; // default: current color
|
123
|
-
whiteList['border-right-style'] = true; // default: none
|
124
|
-
whiteList['border-right-width'] = true; // default: medium
|
125
|
-
whiteList['border-spacing'] = true; // default: 0
|
126
|
-
whiteList['border-style'] = true; // default: depending on individual properties
|
127
|
-
whiteList['border-top'] = true; // default: depending on individual properties
|
128
|
-
whiteList['border-top-color'] = true; // default: current color
|
129
|
-
whiteList['border-top-left-radius'] = true; // default: 0
|
130
|
-
whiteList['border-top-right-radius'] = true; // default: 0
|
131
|
-
whiteList['border-top-style'] = true; // default: none
|
132
|
-
whiteList['border-top-width'] = true; // default: medium
|
133
|
-
whiteList['border-width'] = true; // default: depending on individual properties
|
134
|
-
whiteList['bottom'] = false; // default: auto
|
135
|
-
whiteList['box-decoration-break'] = true; // default: slice
|
136
|
-
whiteList['box-shadow'] = true; // default: none
|
137
|
-
whiteList['box-sizing'] = true; // default: content-box
|
138
|
-
whiteList['box-snap'] = true; // default: none
|
139
|
-
whiteList['box-suppress'] = true; // default: show
|
140
|
-
whiteList['break-after'] = true; // default: auto
|
141
|
-
whiteList['break-before'] = true; // default: auto
|
142
|
-
whiteList['break-inside'] = true; // default: auto
|
143
|
-
whiteList['caption-side'] = false; // default: top
|
144
|
-
whiteList['chains'] = false; // default: none
|
145
|
-
whiteList['clear'] = true; // default: none
|
146
|
-
whiteList['clip'] = false; // default: auto
|
147
|
-
whiteList['clip-path'] = false; // default: none
|
148
|
-
whiteList['clip-rule'] = false; // default: nonzero
|
149
|
-
whiteList['color'] = true; // default: implementation dependent
|
150
|
-
whiteList['color-interpolation-filters'] = true; // default: auto
|
151
|
-
whiteList['column-count'] = false; // default: auto
|
152
|
-
whiteList['column-fill'] = false; // default: balance
|
153
|
-
whiteList['column-gap'] = false; // default: normal
|
154
|
-
whiteList['column-rule'] = false; // default: depending on individual properties
|
155
|
-
whiteList['column-rule-color'] = false; // default: current color
|
156
|
-
whiteList['column-rule-style'] = false; // default: medium
|
157
|
-
whiteList['column-rule-width'] = false; // default: medium
|
158
|
-
whiteList['column-span'] = false; // default: none
|
159
|
-
whiteList['column-width'] = false; // default: auto
|
160
|
-
whiteList['columns'] = false; // default: depending on individual properties
|
161
|
-
whiteList['contain'] = false; // default: none
|
162
|
-
whiteList['content'] = false; // default: normal
|
163
|
-
whiteList['counter-increment'] = false; // default: none
|
164
|
-
whiteList['counter-reset'] = false; // default: none
|
165
|
-
whiteList['counter-set'] = false; // default: none
|
166
|
-
whiteList['crop'] = false; // default: auto
|
167
|
-
whiteList['cue'] = false; // default: depending on individual properties
|
168
|
-
whiteList['cue-after'] = false; // default: none
|
169
|
-
whiteList['cue-before'] = false; // default: none
|
170
|
-
whiteList['cursor'] = false; // default: auto
|
171
|
-
whiteList['direction'] = false; // default: ltr
|
172
|
-
whiteList['display'] = true; // default: depending on individual properties
|
173
|
-
whiteList['display-inside'] = true; // default: auto
|
174
|
-
whiteList['display-list'] = true; // default: none
|
175
|
-
whiteList['display-outside'] = true; // default: inline-level
|
176
|
-
whiteList['dominant-baseline'] = false; // default: auto
|
177
|
-
whiteList['elevation'] = false; // default: level
|
178
|
-
whiteList['empty-cells'] = false; // default: show
|
179
|
-
whiteList['filter'] = false; // default: none
|
180
|
-
whiteList['flex'] = false; // default: depending on individual properties
|
181
|
-
whiteList['flex-basis'] = false; // default: auto
|
182
|
-
whiteList['flex-direction'] = false; // default: row
|
183
|
-
whiteList['flex-flow'] = false; // default: depending on individual properties
|
184
|
-
whiteList['flex-grow'] = false; // default: 0
|
185
|
-
whiteList['flex-shrink'] = false; // default: 1
|
186
|
-
whiteList['flex-wrap'] = false; // default: nowrap
|
187
|
-
whiteList['float'] = false; // default: none
|
188
|
-
whiteList['float-offset'] = false; // default: 0 0
|
189
|
-
whiteList['flood-color'] = false; // default: black
|
190
|
-
whiteList['flood-opacity'] = false; // default: 1
|
191
|
-
whiteList['flow-from'] = false; // default: none
|
192
|
-
whiteList['flow-into'] = false; // default: none
|
193
|
-
whiteList['font'] = true; // default: depending on individual properties
|
194
|
-
whiteList['font-family'] = true; // default: implementation dependent
|
195
|
-
whiteList['font-feature-settings'] = true; // default: normal
|
196
|
-
whiteList['font-kerning'] = true; // default: auto
|
197
|
-
whiteList['font-language-override'] = true; // default: normal
|
198
|
-
whiteList['font-size'] = true; // default: medium
|
199
|
-
whiteList['font-size-adjust'] = true; // default: none
|
200
|
-
whiteList['font-stretch'] = true; // default: normal
|
201
|
-
whiteList['font-style'] = true; // default: normal
|
202
|
-
whiteList['font-synthesis'] = true; // default: weight style
|
203
|
-
whiteList['font-variant'] = true; // default: normal
|
204
|
-
whiteList['font-variant-alternates'] = true; // default: normal
|
205
|
-
whiteList['font-variant-caps'] = true; // default: normal
|
206
|
-
whiteList['font-variant-east-asian'] = true; // default: normal
|
207
|
-
whiteList['font-variant-ligatures'] = true; // default: normal
|
208
|
-
whiteList['font-variant-numeric'] = true; // default: normal
|
209
|
-
whiteList['font-variant-position'] = true; // default: normal
|
210
|
-
whiteList['font-weight'] = true; // default: normal
|
211
|
-
whiteList['grid'] = false; // default: depending on individual properties
|
212
|
-
whiteList['grid-area'] = false; // default: depending on individual properties
|
213
|
-
whiteList['grid-auto-columns'] = false; // default: auto
|
214
|
-
whiteList['grid-auto-flow'] = false; // default: none
|
215
|
-
whiteList['grid-auto-rows'] = false; // default: auto
|
216
|
-
whiteList['grid-column'] = false; // default: depending on individual properties
|
217
|
-
whiteList['grid-column-end'] = false; // default: auto
|
218
|
-
whiteList['grid-column-start'] = false; // default: auto
|
219
|
-
whiteList['grid-row'] = false; // default: depending on individual properties
|
220
|
-
whiteList['grid-row-end'] = false; // default: auto
|
221
|
-
whiteList['grid-row-start'] = false; // default: auto
|
222
|
-
whiteList['grid-template'] = false; // default: depending on individual properties
|
223
|
-
whiteList['grid-template-areas'] = false; // default: none
|
224
|
-
whiteList['grid-template-columns'] = false; // default: none
|
225
|
-
whiteList['grid-template-rows'] = false; // default: none
|
226
|
-
whiteList['hanging-punctuation'] = false; // default: none
|
227
|
-
whiteList['height'] = true; // default: auto
|
228
|
-
whiteList['hyphens'] = false; // default: manual
|
229
|
-
whiteList['icon'] = false; // default: auto
|
230
|
-
whiteList['image-orientation'] = false; // default: auto
|
231
|
-
whiteList['image-resolution'] = false; // default: normal
|
232
|
-
whiteList['ime-mode'] = false; // default: auto
|
233
|
-
whiteList['initial-letters'] = false; // default: normal
|
234
|
-
whiteList['inline-box-align'] = false; // default: last
|
235
|
-
whiteList['justify-content'] = false; // default: auto
|
236
|
-
whiteList['justify-items'] = false; // default: auto
|
237
|
-
whiteList['justify-self'] = false; // default: auto
|
238
|
-
whiteList['left'] = false; // default: auto
|
239
|
-
whiteList['letter-spacing'] = true; // default: normal
|
240
|
-
whiteList['lighting-color'] = true; // default: white
|
241
|
-
whiteList['line-box-contain'] = false; // default: block inline replaced
|
242
|
-
whiteList['line-break'] = false; // default: auto
|
243
|
-
whiteList['line-grid'] = false; // default: match-parent
|
244
|
-
whiteList['line-height'] = false; // default: normal
|
245
|
-
whiteList['line-snap'] = false; // default: none
|
246
|
-
whiteList['line-stacking'] = false; // default: depending on individual properties
|
247
|
-
whiteList['line-stacking-ruby'] = false; // default: exclude-ruby
|
248
|
-
whiteList['line-stacking-shift'] = false; // default: consider-shifts
|
249
|
-
whiteList['line-stacking-strategy'] = false; // default: inline-line-height
|
250
|
-
whiteList['list-style'] = true; // default: depending on individual properties
|
251
|
-
whiteList['list-style-image'] = true; // default: none
|
252
|
-
whiteList['list-style-position'] = true; // default: outside
|
253
|
-
whiteList['list-style-type'] = true; // default: disc
|
254
|
-
whiteList['margin'] = true; // default: depending on individual properties
|
255
|
-
whiteList['margin-bottom'] = true; // default: 0
|
256
|
-
whiteList['margin-left'] = true; // default: 0
|
257
|
-
whiteList['margin-right'] = true; // default: 0
|
258
|
-
whiteList['margin-top'] = true; // default: 0
|
259
|
-
whiteList['marker-offset'] = false; // default: auto
|
260
|
-
whiteList['marker-side'] = false; // default: list-item
|
261
|
-
whiteList['marks'] = false; // default: none
|
262
|
-
whiteList['mask'] = false; // default: border-box
|
263
|
-
whiteList['mask-box'] = false; // default: see individual properties
|
264
|
-
whiteList['mask-box-outset'] = false; // default: 0
|
265
|
-
whiteList['mask-box-repeat'] = false; // default: stretch
|
266
|
-
whiteList['mask-box-slice'] = false; // default: 0 fill
|
267
|
-
whiteList['mask-box-source'] = false; // default: none
|
268
|
-
whiteList['mask-box-width'] = false; // default: auto
|
269
|
-
whiteList['mask-clip'] = false; // default: border-box
|
270
|
-
whiteList['mask-image'] = false; // default: none
|
271
|
-
whiteList['mask-origin'] = false; // default: border-box
|
272
|
-
whiteList['mask-position'] = false; // default: center
|
273
|
-
whiteList['mask-repeat'] = false; // default: no-repeat
|
274
|
-
whiteList['mask-size'] = false; // default: border-box
|
275
|
-
whiteList['mask-source-type'] = false; // default: auto
|
276
|
-
whiteList['mask-type'] = false; // default: luminance
|
277
|
-
whiteList['max-height'] = true; // default: none
|
278
|
-
whiteList['max-lines'] = false; // default: none
|
279
|
-
whiteList['max-width'] = true; // default: none
|
280
|
-
whiteList['min-height'] = true; // default: 0
|
281
|
-
whiteList['min-width'] = true; // default: 0
|
282
|
-
whiteList['move-to'] = false; // default: normal
|
283
|
-
whiteList['nav-down'] = false; // default: auto
|
284
|
-
whiteList['nav-index'] = false; // default: auto
|
285
|
-
whiteList['nav-left'] = false; // default: auto
|
286
|
-
whiteList['nav-right'] = false; // default: auto
|
287
|
-
whiteList['nav-up'] = false; // default: auto
|
288
|
-
whiteList['object-fit'] = false; // default: fill
|
289
|
-
whiteList['object-position'] = false; // default: 50% 50%
|
290
|
-
whiteList['opacity'] = false; // default: 1
|
291
|
-
whiteList['order'] = false; // default: 0
|
292
|
-
whiteList['orphans'] = false; // default: 2
|
293
|
-
whiteList['outline'] = false; // default: depending on individual properties
|
294
|
-
whiteList['outline-color'] = false; // default: invert
|
295
|
-
whiteList['outline-offset'] = false; // default: 0
|
296
|
-
whiteList['outline-style'] = false; // default: none
|
297
|
-
whiteList['outline-width'] = false; // default: medium
|
298
|
-
whiteList['overflow'] = false; // default: depending on individual properties
|
299
|
-
whiteList['overflow-wrap'] = false; // default: normal
|
300
|
-
whiteList['overflow-x'] = false; // default: visible
|
301
|
-
whiteList['overflow-y'] = false; // default: visible
|
302
|
-
whiteList['padding'] = true; // default: depending on individual properties
|
303
|
-
whiteList['padding-bottom'] = true; // default: 0
|
304
|
-
whiteList['padding-left'] = true; // default: 0
|
305
|
-
whiteList['padding-right'] = true; // default: 0
|
306
|
-
whiteList['padding-top'] = true; // default: 0
|
307
|
-
whiteList['page'] = false; // default: auto
|
308
|
-
whiteList['page-break-after'] = false; // default: auto
|
309
|
-
whiteList['page-break-before'] = false; // default: auto
|
310
|
-
whiteList['page-break-inside'] = false; // default: auto
|
311
|
-
whiteList['page-policy'] = false; // default: start
|
312
|
-
whiteList['pause'] = false; // default: implementation dependent
|
313
|
-
whiteList['pause-after'] = false; // default: implementation dependent
|
314
|
-
whiteList['pause-before'] = false; // default: implementation dependent
|
315
|
-
whiteList['perspective'] = false; // default: none
|
316
|
-
whiteList['perspective-origin'] = false; // default: 50% 50%
|
317
|
-
whiteList['pitch'] = false; // default: medium
|
318
|
-
whiteList['pitch-range'] = false; // default: 50
|
319
|
-
whiteList['play-during'] = false; // default: auto
|
320
|
-
whiteList['position'] = false; // default: static
|
321
|
-
whiteList['presentation-level'] = false; // default: 0
|
322
|
-
whiteList['quotes'] = false; // default: text
|
323
|
-
whiteList['region-fragment'] = false; // default: auto
|
324
|
-
whiteList['resize'] = false; // default: none
|
325
|
-
whiteList['rest'] = false; // default: depending on individual properties
|
326
|
-
whiteList['rest-after'] = false; // default: none
|
327
|
-
whiteList['rest-before'] = false; // default: none
|
328
|
-
whiteList['richness'] = false; // default: 50
|
329
|
-
whiteList['right'] = false; // default: auto
|
330
|
-
whiteList['rotation'] = false; // default: 0
|
331
|
-
whiteList['rotation-point'] = false; // default: 50% 50%
|
332
|
-
whiteList['ruby-align'] = false; // default: auto
|
333
|
-
whiteList['ruby-merge'] = false; // default: separate
|
334
|
-
whiteList['ruby-position'] = false; // default: before
|
335
|
-
whiteList['shape-image-threshold'] = false; // default: 0.0
|
336
|
-
whiteList['shape-outside'] = false; // default: none
|
337
|
-
whiteList['shape-margin'] = false; // default: 0
|
338
|
-
whiteList['size'] = false; // default: auto
|
339
|
-
whiteList['speak'] = false; // default: auto
|
340
|
-
whiteList['speak-as'] = false; // default: normal
|
341
|
-
whiteList['speak-header'] = false; // default: once
|
342
|
-
whiteList['speak-numeral'] = false; // default: continuous
|
343
|
-
whiteList['speak-punctuation'] = false; // default: none
|
344
|
-
whiteList['speech-rate'] = false; // default: medium
|
345
|
-
whiteList['stress'] = false; // default: 50
|
346
|
-
whiteList['string-set'] = false; // default: none
|
347
|
-
whiteList['tab-size'] = false; // default: 8
|
348
|
-
whiteList['table-layout'] = false; // default: auto
|
349
|
-
whiteList['text-align'] = true; // default: start
|
350
|
-
whiteList['text-align-last'] = true; // default: auto
|
351
|
-
whiteList['text-combine-upright'] = true; // default: none
|
352
|
-
whiteList['text-decoration'] = true; // default: none
|
353
|
-
whiteList['text-decoration-color'] = true; // default: currentColor
|
354
|
-
whiteList['text-decoration-line'] = true; // default: none
|
355
|
-
whiteList['text-decoration-skip'] = true; // default: objects
|
356
|
-
whiteList['text-decoration-style'] = true; // default: solid
|
357
|
-
whiteList['text-emphasis'] = true; // default: depending on individual properties
|
358
|
-
whiteList['text-emphasis-color'] = true; // default: currentColor
|
359
|
-
whiteList['text-emphasis-position'] = true; // default: over right
|
360
|
-
whiteList['text-emphasis-style'] = true; // default: none
|
361
|
-
whiteList['text-height'] = true; // default: auto
|
362
|
-
whiteList['text-indent'] = true; // default: 0
|
363
|
-
whiteList['text-justify'] = true; // default: auto
|
364
|
-
whiteList['text-orientation'] = true; // default: mixed
|
365
|
-
whiteList['text-overflow'] = true; // default: clip
|
366
|
-
whiteList['text-shadow'] = true; // default: none
|
367
|
-
whiteList['text-space-collapse'] = true; // default: collapse
|
368
|
-
whiteList['text-transform'] = true; // default: none
|
369
|
-
whiteList['text-underline-position'] = true; // default: auto
|
370
|
-
whiteList['text-wrap'] = true; // default: normal
|
371
|
-
whiteList['top'] = false; // default: auto
|
372
|
-
whiteList['transform'] = false; // default: none
|
373
|
-
whiteList['transform-origin'] = false; // default: 50% 50% 0
|
374
|
-
whiteList['transform-style'] = false; // default: flat
|
375
|
-
whiteList['transition'] = false; // default: depending on individual properties
|
376
|
-
whiteList['transition-delay'] = false; // default: 0s
|
377
|
-
whiteList['transition-duration'] = false; // default: 0s
|
378
|
-
whiteList['transition-property'] = false; // default: all
|
379
|
-
whiteList['transition-timing-function'] = false; // default: ease
|
380
|
-
whiteList['unicode-bidi'] = false; // default: normal
|
381
|
-
whiteList['vertical-align'] = false; // default: baseline
|
382
|
-
whiteList['visibility'] = false; // default: visible
|
383
|
-
whiteList['voice-balance'] = false; // default: center
|
384
|
-
whiteList['voice-duration'] = false; // default: auto
|
385
|
-
whiteList['voice-family'] = false; // default: implementation dependent
|
386
|
-
whiteList['voice-pitch'] = false; // default: medium
|
387
|
-
whiteList['voice-range'] = false; // default: medium
|
388
|
-
whiteList['voice-rate'] = false; // default: normal
|
389
|
-
whiteList['voice-stress'] = false; // default: normal
|
390
|
-
whiteList['voice-volume'] = false; // default: medium
|
391
|
-
whiteList['volume'] = false; // default: medium
|
392
|
-
whiteList['white-space'] = false; // default: normal
|
393
|
-
whiteList['widows'] = false; // default: 2
|
394
|
-
whiteList['width'] = true; // default: auto
|
395
|
-
whiteList['will-change'] = false; // default: auto
|
396
|
-
whiteList['word-break'] = true; // default: normal
|
397
|
-
whiteList['word-spacing'] = true; // default: normal
|
398
|
-
whiteList['word-wrap'] = true; // default: normal
|
399
|
-
whiteList['wrap-flow'] = false; // default: auto
|
400
|
-
whiteList['wrap-through'] = false; // default: wrap
|
401
|
-
whiteList['writing-mode'] = false; // default: horizontal-tb
|
402
|
-
whiteList['z-index'] = false; // default: auto
|
403
|
-
|
404
|
-
return whiteList;
|
405
|
-
}
|
406
|
-
|
407
|
-
|
408
|
-
/**
|
409
|
-
* 匹配到白名单上的一个属性时
|
410
|
-
*
|
411
|
-
* @param {String} name
|
412
|
-
* @param {String} value
|
413
|
-
* @param {Object} options
|
414
|
-
* @return {String}
|
415
|
-
*/
|
416
|
-
function onAttr (name, value, options) {
|
417
|
-
// do nothing
|
418
|
-
}
|
419
|
-
|
420
|
-
/**
|
421
|
-
* 匹配到不在白名单上的一个属性时
|
422
|
-
*
|
423
|
-
* @param {String} name
|
424
|
-
* @param {String} value
|
425
|
-
* @param {Object} options
|
426
|
-
* @return {String}
|
427
|
-
*/
|
428
|
-
function onIgnoreAttr (name, value, options) {
|
429
|
-
// do nothing
|
430
|
-
}
|
431
|
-
|
432
|
-
var REGEXP_URL_JAVASCRIPT = /javascript\s*\:/img;
|
433
|
-
|
434
|
-
/**
|
435
|
-
* 过滤属性值
|
436
|
-
*
|
437
|
-
* @param {String} name
|
438
|
-
* @param {String} value
|
439
|
-
* @return {String}
|
440
|
-
*/
|
441
|
-
function safeAttrValue$1(name, value) {
|
442
|
-
if (REGEXP_URL_JAVASCRIPT.test(value)) return '';
|
443
|
-
return value;
|
444
|
-
}
|
445
|
-
|
446
|
-
|
447
|
-
_default.whiteList = getDefaultWhiteList$1();
|
448
|
-
_default.getDefaultWhiteList = getDefaultWhiteList$1;
|
449
|
-
_default.onAttr = onAttr;
|
450
|
-
_default.onIgnoreAttr = onIgnoreAttr;
|
451
|
-
_default.safeAttrValue = safeAttrValue$1;
|
452
|
-
|
453
|
-
var util$1 = {
|
454
|
-
indexOf: function (arr, item) {
|
455
|
-
var i, j;
|
456
|
-
if (Array.prototype.indexOf) {
|
457
|
-
return arr.indexOf(item);
|
458
|
-
}
|
459
|
-
for (i = 0, j = arr.length; i < j; i++) {
|
460
|
-
if (arr[i] === item) {
|
461
|
-
return i;
|
462
|
-
}
|
463
|
-
}
|
464
|
-
return -1;
|
465
|
-
},
|
466
|
-
forEach: function (arr, fn, scope) {
|
467
|
-
var i, j;
|
468
|
-
if (Array.prototype.forEach) {
|
469
|
-
return arr.forEach(fn, scope);
|
470
|
-
}
|
471
|
-
for (i = 0, j = arr.length; i < j; i++) {
|
472
|
-
fn.call(scope, arr[i], i, arr);
|
473
|
-
}
|
474
|
-
},
|
475
|
-
trim: function (str) {
|
476
|
-
if (String.prototype.trim) {
|
477
|
-
return str.trim();
|
478
|
-
}
|
479
|
-
return str.replace(/(^\s*)|(\s*$)/g, '');
|
480
|
-
},
|
481
|
-
trimRight: function (str) {
|
482
|
-
if (String.prototype.trimRight) {
|
483
|
-
return str.trimRight();
|
484
|
-
}
|
485
|
-
return str.replace(/(\s*$)/g, '');
|
486
|
-
}
|
487
|
-
};
|
488
|
-
|
489
|
-
/**
|
490
|
-
* cssfilter
|
491
|
-
*
|
492
|
-
* @author 老雷<leizongmin@gmail.com>
|
493
|
-
*/
|
494
|
-
|
495
|
-
var _$3 = util$1;
|
496
|
-
|
497
|
-
|
498
|
-
/**
|
499
|
-
* 解析style
|
500
|
-
*
|
501
|
-
* @param {String} css
|
502
|
-
* @param {Function} onAttr 处理属性的函数
|
503
|
-
* 参数格式: function (sourcePosition, position, name, value, source)
|
504
|
-
* @return {String}
|
505
|
-
*/
|
506
|
-
function parseStyle$1 (css, onAttr) {
|
507
|
-
css = _$3.trimRight(css);
|
508
|
-
if (css[css.length - 1] !== ';') css += ';';
|
509
|
-
var cssLength = css.length;
|
510
|
-
var isParenthesisOpen = false;
|
511
|
-
var lastPos = 0;
|
512
|
-
var i = 0;
|
513
|
-
var retCSS = '';
|
514
|
-
|
515
|
-
function addNewAttr () {
|
516
|
-
// 如果没有正常的闭合圆括号,则直接忽略当前属性
|
517
|
-
if (!isParenthesisOpen) {
|
518
|
-
var source = _$3.trim(css.slice(lastPos, i));
|
519
|
-
var j = source.indexOf(':');
|
520
|
-
if (j !== -1) {
|
521
|
-
var name = _$3.trim(source.slice(0, j));
|
522
|
-
var value = _$3.trim(source.slice(j + 1));
|
523
|
-
// 必须有属性名称
|
524
|
-
if (name) {
|
525
|
-
var ret = onAttr(lastPos, retCSS.length, name, value, source);
|
526
|
-
if (ret) retCSS += ret + '; ';
|
527
|
-
}
|
528
|
-
}
|
529
|
-
}
|
530
|
-
lastPos = i + 1;
|
531
|
-
}
|
532
|
-
|
533
|
-
for (; i < cssLength; i++) {
|
534
|
-
var c = css[i];
|
535
|
-
if (c === '/' && css[i + 1] === '*') {
|
536
|
-
// 备注开始
|
537
|
-
var j = css.indexOf('*/', i + 2);
|
538
|
-
// 如果没有正常的备注结束,则后面的部分全部跳过
|
539
|
-
if (j === -1) break;
|
540
|
-
// 直接将当前位置调到备注结尾,并且初始化状态
|
541
|
-
i = j + 1;
|
542
|
-
lastPos = i + 1;
|
543
|
-
isParenthesisOpen = false;
|
544
|
-
} else if (c === '(') {
|
545
|
-
isParenthesisOpen = true;
|
546
|
-
} else if (c === ')') {
|
547
|
-
isParenthesisOpen = false;
|
548
|
-
} else if (c === ';') {
|
549
|
-
if (isParenthesisOpen) ; else {
|
550
|
-
addNewAttr();
|
551
|
-
}
|
552
|
-
} else if (c === '\n') {
|
553
|
-
addNewAttr();
|
554
|
-
}
|
555
|
-
}
|
556
|
-
|
557
|
-
return _$3.trim(retCSS);
|
558
|
-
}
|
559
|
-
|
560
|
-
var parser$2 = parseStyle$1;
|
561
|
-
|
562
|
-
/**
|
563
|
-
* cssfilter
|
564
|
-
*
|
565
|
-
* @author 老雷<leizongmin@gmail.com>
|
566
|
-
*/
|
567
|
-
|
568
|
-
var DEFAULT$1 = _default;
|
569
|
-
var parseStyle = parser$2;
|
570
|
-
|
571
|
-
|
572
|
-
/**
|
573
|
-
* 返回值是否为空
|
574
|
-
*
|
575
|
-
* @param {Object} obj
|
576
|
-
* @return {Boolean}
|
577
|
-
*/
|
578
|
-
function isNull$1 (obj) {
|
579
|
-
return (obj === undefined || obj === null);
|
580
|
-
}
|
581
|
-
|
582
|
-
/**
|
583
|
-
* 浅拷贝对象
|
584
|
-
*
|
585
|
-
* @param {Object} obj
|
586
|
-
* @return {Object}
|
587
|
-
*/
|
588
|
-
function shallowCopyObject$1 (obj) {
|
589
|
-
var ret = {};
|
590
|
-
for (var i in obj) {
|
591
|
-
ret[i] = obj[i];
|
592
|
-
}
|
593
|
-
return ret;
|
594
|
-
}
|
595
|
-
|
596
|
-
/**
|
597
|
-
* 创建CSS过滤器
|
598
|
-
*
|
599
|
-
* @param {Object} options
|
600
|
-
* - {Object} whiteList
|
601
|
-
* - {Function} onAttr
|
602
|
-
* - {Function} onIgnoreAttr
|
603
|
-
* - {Function} safeAttrValue
|
604
|
-
*/
|
605
|
-
function FilterCSS$2 (options) {
|
606
|
-
options = shallowCopyObject$1(options || {});
|
607
|
-
options.whiteList = options.whiteList || DEFAULT$1.whiteList;
|
608
|
-
options.onAttr = options.onAttr || DEFAULT$1.onAttr;
|
609
|
-
options.onIgnoreAttr = options.onIgnoreAttr || DEFAULT$1.onIgnoreAttr;
|
610
|
-
options.safeAttrValue = options.safeAttrValue || DEFAULT$1.safeAttrValue;
|
611
|
-
this.options = options;
|
612
|
-
}
|
613
|
-
|
614
|
-
FilterCSS$2.prototype.process = function (css) {
|
615
|
-
// 兼容各种奇葩输入
|
616
|
-
css = css || '';
|
617
|
-
css = css.toString();
|
618
|
-
if (!css) return '';
|
619
|
-
|
620
|
-
var me = this;
|
621
|
-
var options = me.options;
|
622
|
-
var whiteList = options.whiteList;
|
623
|
-
var onAttr = options.onAttr;
|
624
|
-
var onIgnoreAttr = options.onIgnoreAttr;
|
625
|
-
var safeAttrValue = options.safeAttrValue;
|
626
|
-
|
627
|
-
var retCSS = parseStyle(css, function (sourcePosition, position, name, value, source) {
|
628
|
-
|
629
|
-
var check = whiteList[name];
|
630
|
-
var isWhite = false;
|
631
|
-
if (check === true) isWhite = check;
|
632
|
-
else if (typeof check === 'function') isWhite = check(value);
|
633
|
-
else if (check instanceof RegExp) isWhite = check.test(value);
|
634
|
-
if (isWhite !== true) isWhite = false;
|
635
|
-
|
636
|
-
// 如果过滤后 value 为空则直接忽略
|
637
|
-
value = safeAttrValue(name, value);
|
638
|
-
if (!value) return;
|
639
|
-
|
640
|
-
var opts = {
|
641
|
-
position: position,
|
642
|
-
sourcePosition: sourcePosition,
|
643
|
-
source: source,
|
644
|
-
isWhite: isWhite
|
645
|
-
};
|
646
|
-
|
647
|
-
if (isWhite) {
|
648
|
-
|
649
|
-
var ret = onAttr(name, value, opts);
|
650
|
-
if (isNull$1(ret)) {
|
651
|
-
return name + ':' + value;
|
652
|
-
} else {
|
653
|
-
return ret;
|
654
|
-
}
|
655
|
-
|
656
|
-
} else {
|
657
|
-
|
658
|
-
var ret = onIgnoreAttr(name, value, opts);
|
659
|
-
if (!isNull$1(ret)) {
|
660
|
-
return ret;
|
661
|
-
}
|
662
|
-
|
663
|
-
}
|
664
|
-
});
|
665
|
-
|
666
|
-
return retCSS;
|
667
|
-
};
|
668
|
-
|
669
|
-
|
670
|
-
var css = FilterCSS$2;
|
671
|
-
|
672
|
-
/**
|
673
|
-
* cssfilter
|
674
|
-
*
|
675
|
-
* @author 老雷<leizongmin@gmail.com>
|
676
|
-
*/
|
677
|
-
|
678
|
-
(function (module, exports) {
|
679
|
-
var DEFAULT = _default;
|
680
|
-
var FilterCSS = css;
|
681
|
-
|
682
|
-
|
683
|
-
/**
|
684
|
-
* XSS过滤
|
685
|
-
*
|
686
|
-
* @param {String} css 要过滤的CSS代码
|
687
|
-
* @param {Object} options 选项:whiteList, onAttr, onIgnoreAttr
|
688
|
-
* @return {String}
|
689
|
-
*/
|
690
|
-
function filterCSS (html, options) {
|
691
|
-
var xss = new FilterCSS(options);
|
692
|
-
return xss.process(html);
|
693
|
-
}
|
694
|
-
|
695
|
-
|
696
|
-
// 输出
|
697
|
-
exports = module.exports = filterCSS;
|
698
|
-
exports.FilterCSS = FilterCSS;
|
699
|
-
for (var i in DEFAULT) exports[i] = DEFAULT[i];
|
700
|
-
} (lib, lib.exports));
|
701
|
-
|
702
|
-
var libExports$1 = lib.exports;
|
703
|
-
|
704
|
-
var util = {
|
705
|
-
indexOf: function (arr, item) {
|
706
|
-
var i, j;
|
707
|
-
if (Array.prototype.indexOf) {
|
708
|
-
return arr.indexOf(item);
|
709
|
-
}
|
710
|
-
for (i = 0, j = arr.length; i < j; i++) {
|
711
|
-
if (arr[i] === item) {
|
712
|
-
return i;
|
713
|
-
}
|
714
|
-
}
|
715
|
-
return -1;
|
716
|
-
},
|
717
|
-
forEach: function (arr, fn, scope) {
|
718
|
-
var i, j;
|
719
|
-
if (Array.prototype.forEach) {
|
720
|
-
return arr.forEach(fn, scope);
|
721
|
-
}
|
722
|
-
for (i = 0, j = arr.length; i < j; i++) {
|
723
|
-
fn.call(scope, arr[i], i, arr);
|
724
|
-
}
|
725
|
-
},
|
726
|
-
trim: function (str) {
|
727
|
-
if (String.prototype.trim) {
|
728
|
-
return str.trim();
|
729
|
-
}
|
730
|
-
return str.replace(/(^\s*)|(\s*$)/g, "");
|
731
|
-
},
|
732
|
-
spaceIndex: function (str) {
|
733
|
-
var reg = /\s|\n|\t/;
|
734
|
-
var match = reg.exec(str);
|
735
|
-
return match ? match.index : -1;
|
736
|
-
},
|
737
|
-
};
|
738
|
-
|
739
|
-
/**
|
740
|
-
* default settings
|
741
|
-
*
|
742
|
-
* @author Zongmin Lei<leizongmin@gmail.com>
|
743
|
-
*/
|
744
|
-
|
745
|
-
var FilterCSS$1 = libExports$1.FilterCSS;
|
746
|
-
var getDefaultCSSWhiteList = libExports$1.getDefaultWhiteList;
|
747
|
-
var _$2 = util;
|
748
|
-
|
749
|
-
function getDefaultWhiteList() {
|
750
|
-
return {
|
751
|
-
a: ["target", "href", "title"],
|
752
|
-
abbr: ["title"],
|
753
|
-
address: [],
|
754
|
-
area: ["shape", "coords", "href", "alt"],
|
755
|
-
article: [],
|
756
|
-
aside: [],
|
757
|
-
audio: [
|
758
|
-
"autoplay",
|
759
|
-
"controls",
|
760
|
-
"crossorigin",
|
761
|
-
"loop",
|
762
|
-
"muted",
|
763
|
-
"preload",
|
764
|
-
"src",
|
765
|
-
],
|
766
|
-
b: [],
|
767
|
-
bdi: ["dir"],
|
768
|
-
bdo: ["dir"],
|
769
|
-
big: [],
|
770
|
-
blockquote: ["cite"],
|
771
|
-
br: [],
|
772
|
-
caption: [],
|
773
|
-
center: [],
|
774
|
-
cite: [],
|
775
|
-
code: [],
|
776
|
-
col: ["align", "valign", "span", "width"],
|
777
|
-
colgroup: ["align", "valign", "span", "width"],
|
778
|
-
dd: [],
|
779
|
-
del: ["datetime"],
|
780
|
-
details: ["open"],
|
781
|
-
div: [],
|
782
|
-
dl: [],
|
783
|
-
dt: [],
|
784
|
-
em: [],
|
785
|
-
figcaption: [],
|
786
|
-
figure: [],
|
787
|
-
font: ["color", "size", "face"],
|
788
|
-
footer: [],
|
789
|
-
h1: [],
|
790
|
-
h2: [],
|
791
|
-
h3: [],
|
792
|
-
h4: [],
|
793
|
-
h5: [],
|
794
|
-
h6: [],
|
795
|
-
header: [],
|
796
|
-
hr: [],
|
797
|
-
i: [],
|
798
|
-
img: ["src", "alt", "title", "width", "height"],
|
799
|
-
ins: ["datetime"],
|
800
|
-
li: [],
|
801
|
-
mark: [],
|
802
|
-
nav: [],
|
803
|
-
ol: [],
|
804
|
-
p: [],
|
805
|
-
pre: [],
|
806
|
-
s: [],
|
807
|
-
section: [],
|
808
|
-
small: [],
|
809
|
-
span: [],
|
810
|
-
sub: [],
|
811
|
-
summary: [],
|
812
|
-
sup: [],
|
813
|
-
strong: [],
|
814
|
-
strike: [],
|
815
|
-
table: ["width", "border", "align", "valign"],
|
816
|
-
tbody: ["align", "valign"],
|
817
|
-
td: ["width", "rowspan", "colspan", "align", "valign"],
|
818
|
-
tfoot: ["align", "valign"],
|
819
|
-
th: ["width", "rowspan", "colspan", "align", "valign"],
|
820
|
-
thead: ["align", "valign"],
|
821
|
-
tr: ["rowspan", "align", "valign"],
|
822
|
-
tt: [],
|
823
|
-
u: [],
|
824
|
-
ul: [],
|
825
|
-
video: [
|
826
|
-
"autoplay",
|
827
|
-
"controls",
|
828
|
-
"crossorigin",
|
829
|
-
"loop",
|
830
|
-
"muted",
|
831
|
-
"playsinline",
|
832
|
-
"poster",
|
833
|
-
"preload",
|
834
|
-
"src",
|
835
|
-
"height",
|
836
|
-
"width",
|
837
|
-
],
|
838
|
-
};
|
839
|
-
}
|
840
|
-
|
841
|
-
var defaultCSSFilter = new FilterCSS$1();
|
842
|
-
|
843
|
-
/**
|
844
|
-
* default onTag function
|
845
|
-
*
|
846
|
-
* @param {String} tag
|
847
|
-
* @param {String} html
|
848
|
-
* @param {Object} options
|
849
|
-
* @return {String}
|
850
|
-
*/
|
851
|
-
function onTag(tag, html, options) {
|
852
|
-
// do nothing
|
853
|
-
}
|
854
|
-
|
855
|
-
/**
|
856
|
-
* default onIgnoreTag function
|
857
|
-
*
|
858
|
-
* @param {String} tag
|
859
|
-
* @param {String} html
|
860
|
-
* @param {Object} options
|
861
|
-
* @return {String}
|
862
|
-
*/
|
863
|
-
function onIgnoreTag(tag, html, options) {
|
864
|
-
// do nothing
|
865
|
-
}
|
866
|
-
|
867
|
-
/**
|
868
|
-
* default onTagAttr function
|
869
|
-
*
|
870
|
-
* @param {String} tag
|
871
|
-
* @param {String} name
|
872
|
-
* @param {String} value
|
873
|
-
* @return {String}
|
874
|
-
*/
|
875
|
-
function onTagAttr(tag, name, value) {
|
876
|
-
// do nothing
|
877
|
-
}
|
878
|
-
|
879
|
-
/**
|
880
|
-
* default onIgnoreTagAttr function
|
881
|
-
*
|
882
|
-
* @param {String} tag
|
883
|
-
* @param {String} name
|
884
|
-
* @param {String} value
|
885
|
-
* @return {String}
|
886
|
-
*/
|
887
|
-
function onIgnoreTagAttr(tag, name, value) {
|
888
|
-
// do nothing
|
889
|
-
}
|
890
|
-
|
891
|
-
/**
|
892
|
-
* default escapeHtml function
|
893
|
-
*
|
894
|
-
* @param {String} html
|
895
|
-
*/
|
896
|
-
function escapeHtml(html) {
|
897
|
-
return html.replace(REGEXP_LT, "<").replace(REGEXP_GT, ">");
|
898
|
-
}
|
899
|
-
|
900
|
-
/**
|
901
|
-
* default safeAttrValue function
|
902
|
-
*
|
903
|
-
* @param {String} tag
|
904
|
-
* @param {String} name
|
905
|
-
* @param {String} value
|
906
|
-
* @param {Object} cssFilter
|
907
|
-
* @return {String}
|
908
|
-
*/
|
909
|
-
function safeAttrValue(tag, name, value, cssFilter) {
|
910
|
-
// unescape attribute value firstly
|
911
|
-
value = friendlyAttrValue(value);
|
912
|
-
|
913
|
-
if (name === "href" || name === "src") {
|
914
|
-
// filter `href` and `src` attribute
|
915
|
-
// only allow the value that starts with `http://` | `https://` | `mailto:` | `/` | `#`
|
916
|
-
value = _$2.trim(value);
|
917
|
-
if (value === "#") return "#";
|
918
|
-
if (
|
919
|
-
!(
|
920
|
-
value.substr(0, 7) === "http://" ||
|
921
|
-
value.substr(0, 8) === "https://" ||
|
922
|
-
value.substr(0, 7) === "mailto:" ||
|
923
|
-
value.substr(0, 4) === "tel:" ||
|
924
|
-
value.substr(0, 11) === "data:image/" ||
|
925
|
-
value.substr(0, 6) === "ftp://" ||
|
926
|
-
value.substr(0, 2) === "./" ||
|
927
|
-
value.substr(0, 3) === "../" ||
|
928
|
-
value[0] === "#" ||
|
929
|
-
value[0] === "/"
|
930
|
-
)
|
931
|
-
) {
|
932
|
-
return "";
|
933
|
-
}
|
934
|
-
} else if (name === "background") {
|
935
|
-
// filter `background` attribute (maybe no use)
|
936
|
-
// `javascript:`
|
937
|
-
REGEXP_DEFAULT_ON_TAG_ATTR_4.lastIndex = 0;
|
938
|
-
if (REGEXP_DEFAULT_ON_TAG_ATTR_4.test(value)) {
|
939
|
-
return "";
|
940
|
-
}
|
941
|
-
} else if (name === "style") {
|
942
|
-
// `expression()`
|
943
|
-
REGEXP_DEFAULT_ON_TAG_ATTR_7.lastIndex = 0;
|
944
|
-
if (REGEXP_DEFAULT_ON_TAG_ATTR_7.test(value)) {
|
945
|
-
return "";
|
946
|
-
}
|
947
|
-
// `url()`
|
948
|
-
REGEXP_DEFAULT_ON_TAG_ATTR_8.lastIndex = 0;
|
949
|
-
if (REGEXP_DEFAULT_ON_TAG_ATTR_8.test(value)) {
|
950
|
-
REGEXP_DEFAULT_ON_TAG_ATTR_4.lastIndex = 0;
|
951
|
-
if (REGEXP_DEFAULT_ON_TAG_ATTR_4.test(value)) {
|
952
|
-
return "";
|
953
|
-
}
|
954
|
-
}
|
955
|
-
if (cssFilter !== false) {
|
956
|
-
cssFilter = cssFilter || defaultCSSFilter;
|
957
|
-
value = cssFilter.process(value);
|
958
|
-
}
|
959
|
-
}
|
960
|
-
|
961
|
-
// escape `<>"` before returns
|
962
|
-
value = escapeAttrValue(value);
|
963
|
-
return value;
|
964
|
-
}
|
965
|
-
|
966
|
-
// RegExp list
|
967
|
-
var REGEXP_LT = /</g;
|
968
|
-
var REGEXP_GT = />/g;
|
969
|
-
var REGEXP_QUOTE = /"/g;
|
970
|
-
var REGEXP_QUOTE_2 = /"/g;
|
971
|
-
var REGEXP_ATTR_VALUE_1 = /&#([a-zA-Z0-9]*);?/gim;
|
972
|
-
var REGEXP_ATTR_VALUE_COLON = /:?/gim;
|
973
|
-
var REGEXP_ATTR_VALUE_NEWLINE = /&newline;?/gim;
|
974
|
-
// var REGEXP_DEFAULT_ON_TAG_ATTR_3 = /\/\*|\*\//gm;
|
975
|
-
var REGEXP_DEFAULT_ON_TAG_ATTR_4 =
|
976
|
-
/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi;
|
977
|
-
// var REGEXP_DEFAULT_ON_TAG_ATTR_5 = /^[\s"'`]*(d\s*a\s*t\s*a\s*)\:/gi;
|
978
|
-
// var REGEXP_DEFAULT_ON_TAG_ATTR_6 = /^[\s"'`]*(d\s*a\s*t\s*a\s*)\:\s*image\//gi;
|
979
|
-
var REGEXP_DEFAULT_ON_TAG_ATTR_7 =
|
980
|
-
/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi;
|
981
|
-
var REGEXP_DEFAULT_ON_TAG_ATTR_8 = /u\s*r\s*l\s*\(.*/gi;
|
982
|
-
|
983
|
-
/**
|
984
|
-
* escape double quote
|
985
|
-
*
|
986
|
-
* @param {String} str
|
987
|
-
* @return {String} str
|
988
|
-
*/
|
989
|
-
function escapeQuote(str) {
|
990
|
-
return str.replace(REGEXP_QUOTE, """);
|
991
|
-
}
|
992
|
-
|
993
|
-
/**
|
994
|
-
* unescape double quote
|
995
|
-
*
|
996
|
-
* @param {String} str
|
997
|
-
* @return {String} str
|
998
|
-
*/
|
999
|
-
function unescapeQuote(str) {
|
1000
|
-
return str.replace(REGEXP_QUOTE_2, '"');
|
1001
|
-
}
|
1002
|
-
|
1003
|
-
/**
|
1004
|
-
* escape html entities
|
1005
|
-
*
|
1006
|
-
* @param {String} str
|
1007
|
-
* @return {String}
|
1008
|
-
*/
|
1009
|
-
function escapeHtmlEntities(str) {
|
1010
|
-
return str.replace(REGEXP_ATTR_VALUE_1, function replaceUnicode(str, code) {
|
1011
|
-
return code[0] === "x" || code[0] === "X"
|
1012
|
-
? String.fromCharCode(parseInt(code.substr(1), 16))
|
1013
|
-
: String.fromCharCode(parseInt(code, 10));
|
1014
|
-
});
|
1015
|
-
}
|
1016
|
-
|
1017
|
-
/**
|
1018
|
-
* escape html5 new danger entities
|
1019
|
-
*
|
1020
|
-
* @param {String} str
|
1021
|
-
* @return {String}
|
1022
|
-
*/
|
1023
|
-
function escapeDangerHtml5Entities(str) {
|
1024
|
-
return str
|
1025
|
-
.replace(REGEXP_ATTR_VALUE_COLON, ":")
|
1026
|
-
.replace(REGEXP_ATTR_VALUE_NEWLINE, " ");
|
1027
|
-
}
|
1028
|
-
|
1029
|
-
/**
|
1030
|
-
* clear nonprintable characters
|
1031
|
-
*
|
1032
|
-
* @param {String} str
|
1033
|
-
* @return {String}
|
1034
|
-
*/
|
1035
|
-
function clearNonPrintableCharacter(str) {
|
1036
|
-
var str2 = "";
|
1037
|
-
for (var i = 0, len = str.length; i < len; i++) {
|
1038
|
-
str2 += str.charCodeAt(i) < 32 ? " " : str.charAt(i);
|
1039
|
-
}
|
1040
|
-
return _$2.trim(str2);
|
1041
|
-
}
|
1042
|
-
|
1043
|
-
/**
|
1044
|
-
* get friendly attribute value
|
1045
|
-
*
|
1046
|
-
* @param {String} str
|
1047
|
-
* @return {String}
|
1048
|
-
*/
|
1049
|
-
function friendlyAttrValue(str) {
|
1050
|
-
str = unescapeQuote(str);
|
1051
|
-
str = escapeHtmlEntities(str);
|
1052
|
-
str = escapeDangerHtml5Entities(str);
|
1053
|
-
str = clearNonPrintableCharacter(str);
|
1054
|
-
return str;
|
1055
|
-
}
|
1056
|
-
|
1057
|
-
/**
|
1058
|
-
* unescape attribute value
|
1059
|
-
*
|
1060
|
-
* @param {String} str
|
1061
|
-
* @return {String}
|
1062
|
-
*/
|
1063
|
-
function escapeAttrValue(str) {
|
1064
|
-
str = escapeQuote(str);
|
1065
|
-
str = escapeHtml(str);
|
1066
|
-
return str;
|
1067
|
-
}
|
1068
|
-
|
1069
|
-
/**
|
1070
|
-
* `onIgnoreTag` function for removing all the tags that are not in whitelist
|
1071
|
-
*/
|
1072
|
-
function onIgnoreTagStripAll() {
|
1073
|
-
return "";
|
1074
|
-
}
|
1075
|
-
|
1076
|
-
/**
|
1077
|
-
* remove tag body
|
1078
|
-
* specify a `tags` list, if the tag is not in the `tags` list then process by the specify function (optional)
|
1079
|
-
*
|
1080
|
-
* @param {array} tags
|
1081
|
-
* @param {function} next
|
1082
|
-
*/
|
1083
|
-
function StripTagBody(tags, next) {
|
1084
|
-
if (typeof next !== "function") {
|
1085
|
-
next = function () {};
|
1086
|
-
}
|
1087
|
-
|
1088
|
-
var isRemoveAllTag = !Array.isArray(tags);
|
1089
|
-
function isRemoveTag(tag) {
|
1090
|
-
if (isRemoveAllTag) return true;
|
1091
|
-
return _$2.indexOf(tags, tag) !== -1;
|
1092
|
-
}
|
1093
|
-
|
1094
|
-
var removeList = [];
|
1095
|
-
var posStart = false;
|
1096
|
-
|
1097
|
-
return {
|
1098
|
-
onIgnoreTag: function (tag, html, options) {
|
1099
|
-
if (isRemoveTag(tag)) {
|
1100
|
-
if (options.isClosing) {
|
1101
|
-
var ret = "[/removed]";
|
1102
|
-
var end = options.position + ret.length;
|
1103
|
-
removeList.push([
|
1104
|
-
posStart !== false ? posStart : options.position,
|
1105
|
-
end,
|
1106
|
-
]);
|
1107
|
-
posStart = false;
|
1108
|
-
return ret;
|
1109
|
-
} else {
|
1110
|
-
if (!posStart) {
|
1111
|
-
posStart = options.position;
|
1112
|
-
}
|
1113
|
-
return "[removed]";
|
1114
|
-
}
|
1115
|
-
} else {
|
1116
|
-
return next(tag, html, options);
|
1117
|
-
}
|
1118
|
-
},
|
1119
|
-
remove: function (html) {
|
1120
|
-
var rethtml = "";
|
1121
|
-
var lastPos = 0;
|
1122
|
-
_$2.forEach(removeList, function (pos) {
|
1123
|
-
rethtml += html.slice(lastPos, pos[0]);
|
1124
|
-
lastPos = pos[1];
|
1125
|
-
});
|
1126
|
-
rethtml += html.slice(lastPos);
|
1127
|
-
return rethtml;
|
1128
|
-
},
|
1129
|
-
};
|
1130
|
-
}
|
1131
|
-
|
1132
|
-
/**
|
1133
|
-
* remove html comments
|
1134
|
-
*
|
1135
|
-
* @param {String} html
|
1136
|
-
* @return {String}
|
1137
|
-
*/
|
1138
|
-
function stripCommentTag(html) {
|
1139
|
-
var retHtml = "";
|
1140
|
-
var lastPos = 0;
|
1141
|
-
while (lastPos < html.length) {
|
1142
|
-
var i = html.indexOf("<!--", lastPos);
|
1143
|
-
if (i === -1) {
|
1144
|
-
retHtml += html.slice(lastPos);
|
1145
|
-
break;
|
1146
|
-
}
|
1147
|
-
retHtml += html.slice(lastPos, i);
|
1148
|
-
var j = html.indexOf("-->", i);
|
1149
|
-
if (j === -1) {
|
1150
|
-
break;
|
1151
|
-
}
|
1152
|
-
lastPos = j + 3;
|
1153
|
-
}
|
1154
|
-
return retHtml;
|
1155
|
-
}
|
1156
|
-
|
1157
|
-
/**
|
1158
|
-
* remove invisible characters
|
1159
|
-
*
|
1160
|
-
* @param {String} html
|
1161
|
-
* @return {String}
|
1162
|
-
*/
|
1163
|
-
function stripBlankChar(html) {
|
1164
|
-
var chars = html.split("");
|
1165
|
-
chars = chars.filter(function (char) {
|
1166
|
-
var c = char.charCodeAt(0);
|
1167
|
-
if (c === 127) return false;
|
1168
|
-
if (c <= 31) {
|
1169
|
-
if (c === 10 || c === 13) return true;
|
1170
|
-
return false;
|
1171
|
-
}
|
1172
|
-
return true;
|
1173
|
-
});
|
1174
|
-
return chars.join("");
|
1175
|
-
}
|
1176
|
-
|
1177
|
-
_default$1.whiteList = getDefaultWhiteList();
|
1178
|
-
_default$1.getDefaultWhiteList = getDefaultWhiteList;
|
1179
|
-
_default$1.onTag = onTag;
|
1180
|
-
_default$1.onIgnoreTag = onIgnoreTag;
|
1181
|
-
_default$1.onTagAttr = onTagAttr;
|
1182
|
-
_default$1.onIgnoreTagAttr = onIgnoreTagAttr;
|
1183
|
-
_default$1.safeAttrValue = safeAttrValue;
|
1184
|
-
_default$1.escapeHtml = escapeHtml;
|
1185
|
-
_default$1.escapeQuote = escapeQuote;
|
1186
|
-
_default$1.unescapeQuote = unescapeQuote;
|
1187
|
-
_default$1.escapeHtmlEntities = escapeHtmlEntities;
|
1188
|
-
_default$1.escapeDangerHtml5Entities = escapeDangerHtml5Entities;
|
1189
|
-
_default$1.clearNonPrintableCharacter = clearNonPrintableCharacter;
|
1190
|
-
_default$1.friendlyAttrValue = friendlyAttrValue;
|
1191
|
-
_default$1.escapeAttrValue = escapeAttrValue;
|
1192
|
-
_default$1.onIgnoreTagStripAll = onIgnoreTagStripAll;
|
1193
|
-
_default$1.StripTagBody = StripTagBody;
|
1194
|
-
_default$1.stripCommentTag = stripCommentTag;
|
1195
|
-
_default$1.stripBlankChar = stripBlankChar;
|
1196
|
-
_default$1.cssFilter = defaultCSSFilter;
|
1197
|
-
_default$1.getDefaultCSSWhiteList = getDefaultCSSWhiteList;
|
1198
|
-
|
1199
|
-
var parser$1 = {};
|
1200
|
-
|
1201
|
-
/**
|
1202
|
-
* Simple HTML Parser
|
1203
|
-
*
|
1204
|
-
* @author Zongmin Lei<leizongmin@gmail.com>
|
1205
|
-
*/
|
1206
|
-
|
1207
|
-
var _$1 = util;
|
1208
|
-
|
1209
|
-
/**
|
1210
|
-
* get tag name
|
1211
|
-
*
|
1212
|
-
* @param {String} html e.g. '<a hef="#">'
|
1213
|
-
* @return {String}
|
1214
|
-
*/
|
1215
|
-
function getTagName(html) {
|
1216
|
-
var i = _$1.spaceIndex(html);
|
1217
|
-
var tagName;
|
1218
|
-
if (i === -1) {
|
1219
|
-
tagName = html.slice(1, -1);
|
1220
|
-
} else {
|
1221
|
-
tagName = html.slice(1, i + 1);
|
1222
|
-
}
|
1223
|
-
tagName = _$1.trim(tagName).toLowerCase();
|
1224
|
-
if (tagName.slice(0, 1) === "/") tagName = tagName.slice(1);
|
1225
|
-
if (tagName.slice(-1) === "/") tagName = tagName.slice(0, -1);
|
1226
|
-
return tagName;
|
1227
|
-
}
|
1228
|
-
|
1229
|
-
/**
|
1230
|
-
* is close tag?
|
1231
|
-
*
|
1232
|
-
* @param {String} html 如:'<a hef="#">'
|
1233
|
-
* @return {Boolean}
|
1234
|
-
*/
|
1235
|
-
function isClosing(html) {
|
1236
|
-
return html.slice(0, 2) === "</";
|
1237
|
-
}
|
1238
|
-
|
1239
|
-
/**
|
1240
|
-
* parse input html and returns processed html
|
1241
|
-
*
|
1242
|
-
* @param {String} html
|
1243
|
-
* @param {Function} onTag e.g. function (sourcePosition, position, tag, html, isClosing)
|
1244
|
-
* @param {Function} escapeHtml
|
1245
|
-
* @return {String}
|
1246
|
-
*/
|
1247
|
-
function parseTag$1(html, onTag, escapeHtml) {
|
1248
|
-
|
1249
|
-
var rethtml = "";
|
1250
|
-
var lastPos = 0;
|
1251
|
-
var tagStart = false;
|
1252
|
-
var quoteStart = false;
|
1253
|
-
var currentPos = 0;
|
1254
|
-
var len = html.length;
|
1255
|
-
var currentTagName = "";
|
1256
|
-
var currentHtml = "";
|
1257
|
-
|
1258
|
-
chariterator: for (currentPos = 0; currentPos < len; currentPos++) {
|
1259
|
-
var c = html.charAt(currentPos);
|
1260
|
-
if (tagStart === false) {
|
1261
|
-
if (c === "<") {
|
1262
|
-
tagStart = currentPos;
|
1263
|
-
continue;
|
1264
|
-
}
|
1265
|
-
} else {
|
1266
|
-
if (quoteStart === false) {
|
1267
|
-
if (c === "<") {
|
1268
|
-
rethtml += escapeHtml(html.slice(lastPos, currentPos));
|
1269
|
-
tagStart = currentPos;
|
1270
|
-
lastPos = currentPos;
|
1271
|
-
continue;
|
1272
|
-
}
|
1273
|
-
if (c === ">") {
|
1274
|
-
rethtml += escapeHtml(html.slice(lastPos, tagStart));
|
1275
|
-
currentHtml = html.slice(tagStart, currentPos + 1);
|
1276
|
-
currentTagName = getTagName(currentHtml);
|
1277
|
-
rethtml += onTag(
|
1278
|
-
tagStart,
|
1279
|
-
rethtml.length,
|
1280
|
-
currentTagName,
|
1281
|
-
currentHtml,
|
1282
|
-
isClosing(currentHtml)
|
1283
|
-
);
|
1284
|
-
lastPos = currentPos + 1;
|
1285
|
-
tagStart = false;
|
1286
|
-
continue;
|
1287
|
-
}
|
1288
|
-
if (c === '"' || c === "'") {
|
1289
|
-
var i = 1;
|
1290
|
-
var ic = html.charAt(currentPos - i);
|
1291
|
-
|
1292
|
-
while (ic.trim() === "" || ic === "=") {
|
1293
|
-
if (ic === "=") {
|
1294
|
-
quoteStart = c;
|
1295
|
-
continue chariterator;
|
1296
|
-
}
|
1297
|
-
ic = html.charAt(currentPos - ++i);
|
1298
|
-
}
|
1299
|
-
}
|
1300
|
-
} else {
|
1301
|
-
if (c === quoteStart) {
|
1302
|
-
quoteStart = false;
|
1303
|
-
continue;
|
1304
|
-
}
|
1305
|
-
}
|
1306
|
-
}
|
1307
|
-
}
|
1308
|
-
if (lastPos < html.length) {
|
1309
|
-
rethtml += escapeHtml(html.substr(lastPos));
|
1310
|
-
}
|
1311
|
-
|
1312
|
-
return rethtml;
|
1313
|
-
}
|
1314
|
-
|
1315
|
-
var REGEXP_ILLEGAL_ATTR_NAME = /[^a-zA-Z0-9\\_:.-]/gim;
|
1316
|
-
|
1317
|
-
/**
|
1318
|
-
* parse input attributes and returns processed attributes
|
1319
|
-
*
|
1320
|
-
* @param {String} html e.g. `href="#" target="_blank"`
|
1321
|
-
* @param {Function} onAttr e.g. `function (name, value)`
|
1322
|
-
* @return {String}
|
1323
|
-
*/
|
1324
|
-
function parseAttr$1(html, onAttr) {
|
1325
|
-
|
1326
|
-
var lastPos = 0;
|
1327
|
-
var lastMarkPos = 0;
|
1328
|
-
var retAttrs = [];
|
1329
|
-
var tmpName = false;
|
1330
|
-
var len = html.length;
|
1331
|
-
|
1332
|
-
function addAttr(name, value) {
|
1333
|
-
name = _$1.trim(name);
|
1334
|
-
name = name.replace(REGEXP_ILLEGAL_ATTR_NAME, "").toLowerCase();
|
1335
|
-
if (name.length < 1) return;
|
1336
|
-
var ret = onAttr(name, value || "");
|
1337
|
-
if (ret) retAttrs.push(ret);
|
1338
|
-
}
|
1339
|
-
|
1340
|
-
// 逐个分析字符
|
1341
|
-
for (var i = 0; i < len; i++) {
|
1342
|
-
var c = html.charAt(i);
|
1343
|
-
var v, j;
|
1344
|
-
if (tmpName === false && c === "=") {
|
1345
|
-
tmpName = html.slice(lastPos, i);
|
1346
|
-
lastPos = i + 1;
|
1347
|
-
lastMarkPos = html.charAt(lastPos) === '"' || html.charAt(lastPos) === "'" ? lastPos : findNextQuotationMark(html, i + 1);
|
1348
|
-
continue;
|
1349
|
-
}
|
1350
|
-
if (tmpName !== false) {
|
1351
|
-
if (
|
1352
|
-
i === lastMarkPos
|
1353
|
-
) {
|
1354
|
-
j = html.indexOf(c, i + 1);
|
1355
|
-
if (j === -1) {
|
1356
|
-
break;
|
1357
|
-
} else {
|
1358
|
-
v = _$1.trim(html.slice(lastMarkPos + 1, j));
|
1359
|
-
addAttr(tmpName, v);
|
1360
|
-
tmpName = false;
|
1361
|
-
i = j;
|
1362
|
-
lastPos = i + 1;
|
1363
|
-
continue;
|
1364
|
-
}
|
1365
|
-
}
|
1366
|
-
}
|
1367
|
-
if (/\s|\n|\t/.test(c)) {
|
1368
|
-
html = html.replace(/\s|\n|\t/g, " ");
|
1369
|
-
if (tmpName === false) {
|
1370
|
-
j = findNextEqual(html, i);
|
1371
|
-
if (j === -1) {
|
1372
|
-
v = _$1.trim(html.slice(lastPos, i));
|
1373
|
-
addAttr(v);
|
1374
|
-
tmpName = false;
|
1375
|
-
lastPos = i + 1;
|
1376
|
-
continue;
|
1377
|
-
} else {
|
1378
|
-
i = j - 1;
|
1379
|
-
continue;
|
1380
|
-
}
|
1381
|
-
} else {
|
1382
|
-
j = findBeforeEqual(html, i - 1);
|
1383
|
-
if (j === -1) {
|
1384
|
-
v = _$1.trim(html.slice(lastPos, i));
|
1385
|
-
v = stripQuoteWrap(v);
|
1386
|
-
addAttr(tmpName, v);
|
1387
|
-
tmpName = false;
|
1388
|
-
lastPos = i + 1;
|
1389
|
-
continue;
|
1390
|
-
} else {
|
1391
|
-
continue;
|
1392
|
-
}
|
1393
|
-
}
|
1394
|
-
}
|
1395
|
-
}
|
1396
|
-
|
1397
|
-
if (lastPos < html.length) {
|
1398
|
-
if (tmpName === false) {
|
1399
|
-
addAttr(html.slice(lastPos));
|
1400
|
-
} else {
|
1401
|
-
addAttr(tmpName, stripQuoteWrap(_$1.trim(html.slice(lastPos))));
|
1402
|
-
}
|
1403
|
-
}
|
1404
|
-
|
1405
|
-
return _$1.trim(retAttrs.join(" "));
|
1406
|
-
}
|
1407
|
-
|
1408
|
-
function findNextEqual(str, i) {
|
1409
|
-
for (; i < str.length; i++) {
|
1410
|
-
var c = str[i];
|
1411
|
-
if (c === " ") continue;
|
1412
|
-
if (c === "=") return i;
|
1413
|
-
return -1;
|
1414
|
-
}
|
1415
|
-
}
|
1416
|
-
|
1417
|
-
function findNextQuotationMark(str, i) {
|
1418
|
-
for (; i < str.length; i++) {
|
1419
|
-
var c = str[i];
|
1420
|
-
if (c === " ") continue;
|
1421
|
-
if (c === "'" || c === '"') return i;
|
1422
|
-
return -1;
|
1423
|
-
}
|
1424
|
-
}
|
1425
|
-
|
1426
|
-
function findBeforeEqual(str, i) {
|
1427
|
-
for (; i > 0; i--) {
|
1428
|
-
var c = str[i];
|
1429
|
-
if (c === " ") continue;
|
1430
|
-
if (c === "=") return i;
|
1431
|
-
return -1;
|
1432
|
-
}
|
1433
|
-
}
|
1434
|
-
|
1435
|
-
function isQuoteWrapString(text) {
|
1436
|
-
if (
|
1437
|
-
(text[0] === '"' && text[text.length - 1] === '"') ||
|
1438
|
-
(text[0] === "'" && text[text.length - 1] === "'")
|
1439
|
-
) {
|
1440
|
-
return true;
|
1441
|
-
} else {
|
1442
|
-
return false;
|
1443
|
-
}
|
1444
|
-
}
|
1445
|
-
|
1446
|
-
function stripQuoteWrap(text) {
|
1447
|
-
if (isQuoteWrapString(text)) {
|
1448
|
-
return text.substr(1, text.length - 2);
|
1449
|
-
} else {
|
1450
|
-
return text;
|
1451
|
-
}
|
1452
|
-
}
|
1453
|
-
|
1454
|
-
parser$1.parseTag = parseTag$1;
|
1455
|
-
parser$1.parseAttr = parseAttr$1;
|
1456
|
-
|
1457
|
-
/**
|
1458
|
-
* filter xss
|
1459
|
-
*
|
1460
|
-
* @author Zongmin Lei<leizongmin@gmail.com>
|
1461
|
-
*/
|
1462
|
-
|
1463
|
-
var FilterCSS = libExports$1.FilterCSS;
|
1464
|
-
var DEFAULT = _default$1;
|
1465
|
-
var parser = parser$1;
|
1466
|
-
var parseTag = parser.parseTag;
|
1467
|
-
var parseAttr = parser.parseAttr;
|
1468
|
-
var _ = util;
|
1469
|
-
|
1470
|
-
/**
|
1471
|
-
* returns `true` if the input value is `undefined` or `null`
|
1472
|
-
*
|
1473
|
-
* @param {Object} obj
|
1474
|
-
* @return {Boolean}
|
1475
|
-
*/
|
1476
|
-
function isNull(obj) {
|
1477
|
-
return obj === undefined || obj === null;
|
1478
|
-
}
|
1479
|
-
|
1480
|
-
/**
|
1481
|
-
* get attributes for a tag
|
1482
|
-
*
|
1483
|
-
* @param {String} html
|
1484
|
-
* @return {Object}
|
1485
|
-
* - {String} html
|
1486
|
-
* - {Boolean} closing
|
1487
|
-
*/
|
1488
|
-
function getAttrs(html) {
|
1489
|
-
var i = _.spaceIndex(html);
|
1490
|
-
if (i === -1) {
|
1491
|
-
return {
|
1492
|
-
html: "",
|
1493
|
-
closing: html[html.length - 2] === "/",
|
1494
|
-
};
|
1495
|
-
}
|
1496
|
-
html = _.trim(html.slice(i + 1, -1));
|
1497
|
-
var isClosing = html[html.length - 1] === "/";
|
1498
|
-
if (isClosing) html = _.trim(html.slice(0, -1));
|
1499
|
-
return {
|
1500
|
-
html: html,
|
1501
|
-
closing: isClosing,
|
1502
|
-
};
|
1503
|
-
}
|
1504
|
-
|
1505
|
-
/**
|
1506
|
-
* shallow copy
|
1507
|
-
*
|
1508
|
-
* @param {Object} obj
|
1509
|
-
* @return {Object}
|
1510
|
-
*/
|
1511
|
-
function shallowCopyObject(obj) {
|
1512
|
-
var ret = {};
|
1513
|
-
for (var i in obj) {
|
1514
|
-
ret[i] = obj[i];
|
1515
|
-
}
|
1516
|
-
return ret;
|
1517
|
-
}
|
1518
|
-
|
1519
|
-
function keysToLowerCase(obj) {
|
1520
|
-
var ret = {};
|
1521
|
-
for (var i in obj) {
|
1522
|
-
if (Array.isArray(obj[i])) {
|
1523
|
-
ret[i.toLowerCase()] = obj[i].map(function (item) {
|
1524
|
-
return item.toLowerCase();
|
1525
|
-
});
|
1526
|
-
} else {
|
1527
|
-
ret[i.toLowerCase()] = obj[i];
|
1528
|
-
}
|
1529
|
-
}
|
1530
|
-
return ret;
|
1531
|
-
}
|
1532
|
-
|
1533
|
-
/**
|
1534
|
-
* FilterXSS class
|
1535
|
-
*
|
1536
|
-
* @param {Object} options
|
1537
|
-
* whiteList (or allowList), onTag, onTagAttr, onIgnoreTag,
|
1538
|
-
* onIgnoreTagAttr, safeAttrValue, escapeHtml
|
1539
|
-
* stripIgnoreTagBody, allowCommentTag, stripBlankChar
|
1540
|
-
* css{whiteList, onAttr, onIgnoreAttr} `css=false` means don't use `cssfilter`
|
1541
|
-
*/
|
1542
|
-
function FilterXSS(options) {
|
1543
|
-
options = shallowCopyObject(options || {});
|
1544
|
-
|
1545
|
-
if (options.stripIgnoreTag) {
|
1546
|
-
if (options.onIgnoreTag) {
|
1547
|
-
console.error(
|
1548
|
-
'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
|
1549
|
-
);
|
1550
|
-
}
|
1551
|
-
options.onIgnoreTag = DEFAULT.onIgnoreTagStripAll;
|
1552
|
-
}
|
1553
|
-
if (options.whiteList || options.allowList) {
|
1554
|
-
options.whiteList = keysToLowerCase(options.whiteList || options.allowList);
|
1555
|
-
} else {
|
1556
|
-
options.whiteList = DEFAULT.whiteList;
|
1557
|
-
}
|
1558
|
-
|
1559
|
-
options.onTag = options.onTag || DEFAULT.onTag;
|
1560
|
-
options.onTagAttr = options.onTagAttr || DEFAULT.onTagAttr;
|
1561
|
-
options.onIgnoreTag = options.onIgnoreTag || DEFAULT.onIgnoreTag;
|
1562
|
-
options.onIgnoreTagAttr = options.onIgnoreTagAttr || DEFAULT.onIgnoreTagAttr;
|
1563
|
-
options.safeAttrValue = options.safeAttrValue || DEFAULT.safeAttrValue;
|
1564
|
-
options.escapeHtml = options.escapeHtml || DEFAULT.escapeHtml;
|
1565
|
-
this.options = options;
|
1566
|
-
|
1567
|
-
if (options.css === false) {
|
1568
|
-
this.cssFilter = false;
|
1569
|
-
} else {
|
1570
|
-
options.css = options.css || {};
|
1571
|
-
this.cssFilter = new FilterCSS(options.css);
|
1572
|
-
}
|
1573
|
-
}
|
1574
|
-
|
1575
|
-
/**
|
1576
|
-
* start process and returns result
|
1577
|
-
*
|
1578
|
-
* @param {String} html
|
1579
|
-
* @return {String}
|
1580
|
-
*/
|
1581
|
-
FilterXSS.prototype.process = function (html) {
|
1582
|
-
// compatible with the input
|
1583
|
-
html = html || "";
|
1584
|
-
html = html.toString();
|
1585
|
-
if (!html) return "";
|
1586
|
-
|
1587
|
-
var me = this;
|
1588
|
-
var options = me.options;
|
1589
|
-
var whiteList = options.whiteList;
|
1590
|
-
var onTag = options.onTag;
|
1591
|
-
var onIgnoreTag = options.onIgnoreTag;
|
1592
|
-
var onTagAttr = options.onTagAttr;
|
1593
|
-
var onIgnoreTagAttr = options.onIgnoreTagAttr;
|
1594
|
-
var safeAttrValue = options.safeAttrValue;
|
1595
|
-
var escapeHtml = options.escapeHtml;
|
1596
|
-
var cssFilter = me.cssFilter;
|
1597
|
-
|
1598
|
-
// remove invisible characters
|
1599
|
-
if (options.stripBlankChar) {
|
1600
|
-
html = DEFAULT.stripBlankChar(html);
|
1601
|
-
}
|
1602
|
-
|
1603
|
-
// remove html comments
|
1604
|
-
if (!options.allowCommentTag) {
|
1605
|
-
html = DEFAULT.stripCommentTag(html);
|
1606
|
-
}
|
1607
|
-
|
1608
|
-
// if enable stripIgnoreTagBody
|
1609
|
-
var stripIgnoreTagBody = false;
|
1610
|
-
if (options.stripIgnoreTagBody) {
|
1611
|
-
stripIgnoreTagBody = DEFAULT.StripTagBody(
|
1612
|
-
options.stripIgnoreTagBody,
|
1613
|
-
onIgnoreTag
|
1614
|
-
);
|
1615
|
-
onIgnoreTag = stripIgnoreTagBody.onIgnoreTag;
|
1616
|
-
}
|
1617
|
-
|
1618
|
-
var retHtml = parseTag(
|
1619
|
-
html,
|
1620
|
-
function (sourcePosition, position, tag, html, isClosing) {
|
1621
|
-
var info = {
|
1622
|
-
sourcePosition: sourcePosition,
|
1623
|
-
position: position,
|
1624
|
-
isClosing: isClosing,
|
1625
|
-
isWhite: Object.prototype.hasOwnProperty.call(whiteList, tag),
|
1626
|
-
};
|
1627
|
-
|
1628
|
-
// call `onTag()`
|
1629
|
-
var ret = onTag(tag, html, info);
|
1630
|
-
if (!isNull(ret)) return ret;
|
1631
|
-
|
1632
|
-
if (info.isWhite) {
|
1633
|
-
if (info.isClosing) {
|
1634
|
-
return "</" + tag + ">";
|
1635
|
-
}
|
1636
|
-
|
1637
|
-
var attrs = getAttrs(html);
|
1638
|
-
var whiteAttrList = whiteList[tag];
|
1639
|
-
var attrsHtml = parseAttr(attrs.html, function (name, value) {
|
1640
|
-
// call `onTagAttr()`
|
1641
|
-
var isWhiteAttr = _.indexOf(whiteAttrList, name) !== -1;
|
1642
|
-
var ret = onTagAttr(tag, name, value, isWhiteAttr);
|
1643
|
-
if (!isNull(ret)) return ret;
|
1644
|
-
|
1645
|
-
if (isWhiteAttr) {
|
1646
|
-
// call `safeAttrValue()`
|
1647
|
-
value = safeAttrValue(tag, name, value, cssFilter);
|
1648
|
-
if (value) {
|
1649
|
-
return name + '="' + value + '"';
|
1650
|
-
} else {
|
1651
|
-
return name;
|
1652
|
-
}
|
1653
|
-
} else {
|
1654
|
-
// call `onIgnoreTagAttr()`
|
1655
|
-
ret = onIgnoreTagAttr(tag, name, value, isWhiteAttr);
|
1656
|
-
if (!isNull(ret)) return ret;
|
1657
|
-
return;
|
1658
|
-
}
|
1659
|
-
});
|
1660
|
-
|
1661
|
-
// build new tag html
|
1662
|
-
html = "<" + tag;
|
1663
|
-
if (attrsHtml) html += " " + attrsHtml;
|
1664
|
-
if (attrs.closing) html += " /";
|
1665
|
-
html += ">";
|
1666
|
-
return html;
|
1667
|
-
} else {
|
1668
|
-
// call `onIgnoreTag()`
|
1669
|
-
ret = onIgnoreTag(tag, html, info);
|
1670
|
-
if (!isNull(ret)) return ret;
|
1671
|
-
return escapeHtml(html);
|
1672
|
-
}
|
1673
|
-
},
|
1674
|
-
escapeHtml
|
1675
|
-
);
|
1676
|
-
|
1677
|
-
// if enable stripIgnoreTagBody
|
1678
|
-
if (stripIgnoreTagBody) {
|
1679
|
-
retHtml = stripIgnoreTagBody.remove(retHtml);
|
1680
|
-
}
|
1681
|
-
|
1682
|
-
return retHtml;
|
1683
|
-
};
|
1684
|
-
|
1685
|
-
var xss = FilterXSS;
|
1686
|
-
|
1687
|
-
/**
|
1688
|
-
* xss
|
1689
|
-
*
|
1690
|
-
* @author Zongmin Lei<leizongmin@gmail.com>
|
1691
|
-
*/
|
1692
|
-
|
1693
|
-
(function (module, exports) {
|
1694
|
-
var DEFAULT = _default$1;
|
1695
|
-
var parser = parser$1;
|
1696
|
-
var FilterXSS = xss;
|
1697
|
-
|
1698
|
-
/**
|
1699
|
-
* filter xss function
|
1700
|
-
*
|
1701
|
-
* @param {String} html
|
1702
|
-
* @param {Object} options { whiteList, onTag, onTagAttr, onIgnoreTag, onIgnoreTagAttr, safeAttrValue, escapeHtml }
|
1703
|
-
* @return {String}
|
1704
|
-
*/
|
1705
|
-
function filterXSS(html, options) {
|
1706
|
-
var xss = new FilterXSS(options);
|
1707
|
-
return xss.process(html);
|
1708
|
-
}
|
1709
|
-
|
1710
|
-
exports = module.exports = filterXSS;
|
1711
|
-
exports.filterXSS = filterXSS;
|
1712
|
-
exports.FilterXSS = FilterXSS;
|
1713
|
-
|
1714
|
-
(function () {
|
1715
|
-
for (var i in DEFAULT) {
|
1716
|
-
exports[i] = DEFAULT[i];
|
1717
|
-
}
|
1718
|
-
for (var j in parser) {
|
1719
|
-
exports[j] = parser[j];
|
1720
|
-
}
|
1721
|
-
})();
|
1722
|
-
|
1723
|
-
// using `xss` on the WebWorker, output `filterXSS` to the globals
|
1724
|
-
function isWorkerEnv() {
|
1725
|
-
return (
|
1726
|
-
typeof self !== "undefined" &&
|
1727
|
-
typeof DedicatedWorkerGlobalScope !== "undefined" &&
|
1728
|
-
self instanceof DedicatedWorkerGlobalScope
|
1729
|
-
);
|
1730
|
-
}
|
1731
|
-
if (isWorkerEnv()) {
|
1732
|
-
self.filterXSS = module.exports;
|
1733
|
-
}
|
1734
|
-
} (lib$1, lib$1.exports));
|
1735
|
-
|
1736
|
-
var libExports = lib$1.exports;
|
1737
|
-
|
1738
|
-
/**
|
1739
|
-
* Determine if the value is a plain object.
|
1740
|
-
* @param {*} value The value to check.
|
1741
|
-
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
1742
|
-
*/
|
1743
|
-
var isPlainObject = function (value) {
|
1744
|
-
if (typeof value !== "object" || value === null) {
|
1745
|
-
return false;
|
1746
|
-
}
|
1747
|
-
if (Object.prototype.toString.call(value) !== "[object Object]") {
|
1748
|
-
return false;
|
1749
|
-
}
|
1750
|
-
var proto = Object.getPrototypeOf(value);
|
1751
|
-
if (proto === null) {
|
1752
|
-
return true;
|
1753
|
-
}
|
1754
|
-
while (Object.getPrototypeOf(proto) !== null) {
|
1755
|
-
proto = Object.getPrototypeOf(proto);
|
1756
|
-
}
|
1757
|
-
return Object.getPrototypeOf(value) === proto;
|
1758
|
-
};
|
1759
|
-
|
1760
|
-
/**
|
1761
|
-
* The Sanitizer Class
|
1762
|
-
*
|
1763
|
-
* @export
|
1764
|
-
* @class Sanitizer
|
1765
|
-
*/
|
1766
|
-
var Sanitizer = /** @class */ (function () {
|
1767
|
-
function Sanitizer(filterOptions, extendDefaults) {
|
1768
|
-
var _this = this;
|
1769
|
-
// Supported HTML Spec: https://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm
|
1770
|
-
this.arcgisWhiteList = {
|
1771
|
-
a: ["href", "style", "target"],
|
1772
|
-
abbr: ["title"],
|
1773
|
-
article: ["style"],
|
1774
|
-
aside: ["style"],
|
1775
|
-
audio: ["autoplay", "controls", "loop", "muted", "preload"],
|
1776
|
-
b: [],
|
1777
|
-
blockquote: ["style"],
|
1778
|
-
br: [],
|
1779
|
-
code: ["style"],
|
1780
|
-
dd: ["style"],
|
1781
|
-
details: ["style"],
|
1782
|
-
div: ["align", "style", "aria-label", "aria-hidden"],
|
1783
|
-
dl: ["style"],
|
1784
|
-
dt: ["style"],
|
1785
|
-
em: [],
|
1786
|
-
figcaption: ["style"],
|
1787
|
-
figure: ["style"],
|
1788
|
-
font: ["color", "face", "size", "style"],
|
1789
|
-
footer: ["style"],
|
1790
|
-
h1: ["style"],
|
1791
|
-
h2: ["style"],
|
1792
|
-
h3: ["style"],
|
1793
|
-
h4: ["style"],
|
1794
|
-
h5: ["style"],
|
1795
|
-
h6: ["style"],
|
1796
|
-
header: ["style"],
|
1797
|
-
hr: [],
|
1798
|
-
i: [],
|
1799
|
-
img: ["alt", "border", "height", "src", "style", "width"],
|
1800
|
-
li: [],
|
1801
|
-
main: ["style"],
|
1802
|
-
mark: ["style"],
|
1803
|
-
nav: ["style"],
|
1804
|
-
ol: [],
|
1805
|
-
p: ["style"],
|
1806
|
-
pre: ["style"],
|
1807
|
-
section: ["style"],
|
1808
|
-
source: ["media", "src", "type"],
|
1809
|
-
span: ["style"],
|
1810
|
-
strong: [],
|
1811
|
-
sub: ["style"],
|
1812
|
-
summary: ["style"],
|
1813
|
-
sup: ["style"],
|
1814
|
-
table: ["border", "cellpadding", "cellspacing", "height", "style", "width"],
|
1815
|
-
tbody: [],
|
1816
|
-
tr: ["align", "height", "style", "valign"],
|
1817
|
-
td: [
|
1818
|
-
"align",
|
1819
|
-
"colspan",
|
1820
|
-
"height",
|
1821
|
-
"nowrap",
|
1822
|
-
"rowspan",
|
1823
|
-
"style",
|
1824
|
-
"valign",
|
1825
|
-
"width",
|
1826
|
-
],
|
1827
|
-
th: [
|
1828
|
-
"align",
|
1829
|
-
"colspan",
|
1830
|
-
"height",
|
1831
|
-
"nowrap",
|
1832
|
-
"rowspan",
|
1833
|
-
"style",
|
1834
|
-
"valign",
|
1835
|
-
"width",
|
1836
|
-
],
|
1837
|
-
time: ["style"],
|
1838
|
-
u: [],
|
1839
|
-
ul: [],
|
1840
|
-
video: [
|
1841
|
-
"autoplay",
|
1842
|
-
"controls",
|
1843
|
-
"height",
|
1844
|
-
"loop",
|
1845
|
-
"muted",
|
1846
|
-
"poster",
|
1847
|
-
"preload",
|
1848
|
-
"width",
|
1849
|
-
],
|
1850
|
-
};
|
1851
|
-
this.arcgisCSSWhiteList = __assign(__assign({}, libExports.getDefaultCSSWhiteList()), { "flex": true, "flex-basis": true, "flex-direction": true, "flex-flow": true, "flex-grow": true, "flex-shrink": true, "flex-wrap": true, "line-height": true, "justify-content": true, "overflow": true });
|
1852
|
-
this.allowedProtocols = [
|
1853
|
-
"http",
|
1854
|
-
"https",
|
1855
|
-
"mailto",
|
1856
|
-
"iform",
|
1857
|
-
"tel",
|
1858
|
-
"flow",
|
1859
|
-
"lfmobile",
|
1860
|
-
"arcgis-navigator",
|
1861
|
-
"arcgis-appstudio-player",
|
1862
|
-
"arcgis-survey123",
|
1863
|
-
"arcgis-collector",
|
1864
|
-
"arcgis-workforce",
|
1865
|
-
"arcgis-explorer",
|
1866
|
-
"arcgis-trek2there",
|
1867
|
-
"arcgis-quickcapture",
|
1868
|
-
"mspbi",
|
1869
|
-
"comgooglemaps",
|
1870
|
-
"pdfefile",
|
1871
|
-
"pdfehttp",
|
1872
|
-
"pdfehttps",
|
1873
|
-
"boxapp",
|
1874
|
-
"boxemm",
|
1875
|
-
"awb",
|
1876
|
-
"awbs",
|
1877
|
-
"gropen",
|
1878
|
-
"radarscope",
|
1879
|
-
];
|
1880
|
-
this.arcgisFilterOptions = {
|
1881
|
-
allowCommentTag: true,
|
1882
|
-
safeAttrValue: function (tag, name, value, cssFilter) {
|
1883
|
-
// Take over safe attribute filtering for `a` `href`, `img` `src`,
|
1884
|
-
// and `source` `src` attributes, otherwise pass onto the
|
1885
|
-
// default `XSS.safeAttrValue` method.
|
1886
|
-
if ((tag === "a" && name === "href") ||
|
1887
|
-
((tag === "img" || tag === "source") && name === "src")) {
|
1888
|
-
return _this.sanitizeUrl(value);
|
1889
|
-
}
|
1890
|
-
return libExports.safeAttrValue(tag, name, value, cssFilter);
|
1891
|
-
},
|
1892
|
-
};
|
1893
|
-
this._entityMap = {
|
1894
|
-
"&": "8",
|
1895
|
-
"<": "<",
|
1896
|
-
">": ">",
|
1897
|
-
'"': """,
|
1898
|
-
"'": "'",
|
1899
|
-
"/": "/",
|
1900
|
-
};
|
1901
|
-
var xssFilterOptions;
|
1902
|
-
if (filterOptions && !extendDefaults) {
|
1903
|
-
// Override the defaults
|
1904
|
-
xssFilterOptions = filterOptions;
|
1905
|
-
}
|
1906
|
-
else if (filterOptions && extendDefaults) {
|
1907
|
-
// Extend the defaults
|
1908
|
-
xssFilterOptions = Object.create(this.arcgisFilterOptions);
|
1909
|
-
xssFilterOptions.css = { whiteList: this.arcgisCSSWhiteList };
|
1910
|
-
Object.keys(filterOptions).forEach(function (key) {
|
1911
|
-
if (key === "whiteList") {
|
1912
|
-
// Extend the whitelist by concatenating arrays
|
1913
|
-
xssFilterOptions.whiteList = _this._extendObjectOfArrays([
|
1914
|
-
_this.arcgisWhiteList,
|
1915
|
-
filterOptions.whiteList || {},
|
1916
|
-
]);
|
1917
|
-
}
|
1918
|
-
else if (key === "css") {
|
1919
|
-
var cssExtensions_1 = filterOptions.css.whiteList;
|
1920
|
-
if (cssExtensions_1 != null && filterOptions.css instanceof Object) {
|
1921
|
-
Object.keys(cssExtensions_1).forEach(function (attr) {
|
1922
|
-
return (xssFilterOptions.css.whiteList[attr] =
|
1923
|
-
cssExtensions_1[attr]);
|
1924
|
-
});
|
1925
|
-
}
|
1926
|
-
}
|
1927
|
-
else {
|
1928
|
-
xssFilterOptions[key] = filterOptions[key];
|
1929
|
-
}
|
1930
|
-
});
|
1931
|
-
}
|
1932
|
-
else {
|
1933
|
-
// Only use the defaults
|
1934
|
-
xssFilterOptions = Object.create(this.arcgisFilterOptions);
|
1935
|
-
xssFilterOptions.whiteList = this.arcgisWhiteList;
|
1936
|
-
xssFilterOptions.css = { whiteList: this.arcgisCSSWhiteList };
|
1937
|
-
}
|
1938
|
-
this.xssFilterOptions = xssFilterOptions;
|
1939
|
-
// Make this readable to tests
|
1940
|
-
this._xssFilter = new libExports.FilterXSS(xssFilterOptions);
|
1941
|
-
}
|
1942
|
-
/**
|
1943
|
-
* Sanitizes value to remove invalid HTML tags.
|
1944
|
-
*
|
1945
|
-
* Note: If the value passed does not contain a valid JSON data type (String,
|
1946
|
-
* Number, JSON Object, Array, Boolean, or null), the value will be nullified.
|
1947
|
-
*
|
1948
|
-
* @param {any} value The value to sanitize.
|
1949
|
-
* @returns {any} The sanitized value.
|
1950
|
-
* @memberof Sanitizer
|
1951
|
-
*/
|
1952
|
-
Sanitizer.prototype.sanitize = function (value, options) {
|
1953
|
-
if (options === void 0) { options = {}; }
|
1954
|
-
switch (typeof value) {
|
1955
|
-
case "number":
|
1956
|
-
if (isNaN(value) || !isFinite(value)) {
|
1957
|
-
return null;
|
1958
|
-
}
|
1959
|
-
return value;
|
1960
|
-
case "boolean":
|
1961
|
-
return value;
|
1962
|
-
case "string":
|
1963
|
-
return this._xssFilter.process(value);
|
1964
|
-
case "object":
|
1965
|
-
return this._iterateOverObject(value, options);
|
1966
|
-
default:
|
1967
|
-
if (options.allowUndefined && typeof value === "undefined") {
|
1968
|
-
return;
|
1969
|
-
}
|
1970
|
-
return null;
|
1971
|
-
}
|
1972
|
-
};
|
1973
|
-
/**
|
1974
|
-
* Sanitizes a URL string following the allowed protocols and sanitization rules.
|
1975
|
-
*
|
1976
|
-
* @param {string} value The URL to sanitize.
|
1977
|
-
* @param {{ isProtocolRequired: boolean }} options Configuration options for URL checking.
|
1978
|
-
* @returns {string} The sanitized URL if it's valid, or an empty string if the URL is invalid.
|
1979
|
-
*/
|
1980
|
-
Sanitizer.prototype.sanitizeUrl = function (value, options) {
|
1981
|
-
var _a = (options !== null && options !== void 0 ? options : {}).isProtocolRequired, isProtocolRequired = _a === void 0 ? true : _a;
|
1982
|
-
var protocol = this._trim(value.substring(0, value.indexOf(":")));
|
1983
|
-
var isRootUrl = value === "/";
|
1984
|
-
var isUrlFragment = /^#/.test(value);
|
1985
|
-
var isValidProtocol = protocol && this.allowedProtocols.indexOf(protocol.toLowerCase()) > -1;
|
1986
|
-
if (isRootUrl || isUrlFragment || isValidProtocol) {
|
1987
|
-
return libExports.escapeAttrValue(value);
|
1988
|
-
}
|
1989
|
-
if (!protocol && !isProtocolRequired) {
|
1990
|
-
return libExports.escapeAttrValue("https://".concat(value));
|
1991
|
-
}
|
1992
|
-
return "";
|
1993
|
-
};
|
1994
|
-
/**
|
1995
|
-
* Sanitizes an HTML attribute value.
|
1996
|
-
*
|
1997
|
-
* @param {string} tag The tagname of the HTML element.
|
1998
|
-
* @param {string} attribute The attribute name of the HTML element.
|
1999
|
-
* @param {string} value The raw value to be used for the HTML attribute value.
|
2000
|
-
* @param {XSS.ICSSFilter} [cssFilter] The CSS filter to be used.
|
2001
|
-
* @returns {string} The sanitized attribute value.
|
2002
|
-
* @memberof Sanitizer
|
2003
|
-
*/
|
2004
|
-
Sanitizer.prototype.sanitizeHTMLAttribute = function (tag, attribute, value, cssFilter) {
|
2005
|
-
// use the custom safeAttrValue function if provided
|
2006
|
-
if (typeof this.xssFilterOptions.safeAttrValue === "function") {
|
2007
|
-
return this.xssFilterOptions.safeAttrValue(tag, attribute, value,
|
2008
|
-
// @ts-expect-error safeAttrValue does handle undefined cssFilter
|
2009
|
-
cssFilter);
|
2010
|
-
}
|
2011
|
-
// otherwise use the default
|
2012
|
-
// @ts-ignore safeAttrValue does handle undefined cssFilter
|
2013
|
-
return libExports.safeAttrValue(tag, attribute, value, cssFilter);
|
2014
|
-
};
|
2015
|
-
/**
|
2016
|
-
* Checks if a value only contains valid HTML.
|
2017
|
-
*
|
2018
|
-
* @param {any} value The value to validate.
|
2019
|
-
* @returns {boolean}
|
2020
|
-
* @memberof Sanitizer
|
2021
|
-
*/
|
2022
|
-
Sanitizer.prototype.validate = function (value, options) {
|
2023
|
-
if (options === void 0) { options = {}; }
|
2024
|
-
var sanitized = this.sanitize(value, options);
|
2025
|
-
return {
|
2026
|
-
isValid: value === sanitized,
|
2027
|
-
sanitized: sanitized,
|
2028
|
-
};
|
2029
|
-
};
|
2030
|
-
/**
|
2031
|
-
* Encodes the following characters, `& < > \" ' /` to their hexadecimal HTML entity code.
|
2032
|
-
* Example: "·" => "8middot;"
|
2033
|
-
*
|
2034
|
-
* @param {string} value The value to encode.
|
2035
|
-
* @returns {string} The encoded string value.
|
2036
|
-
* @memberof Sanitizer
|
2037
|
-
*/
|
2038
|
-
Sanitizer.prototype.encodeHTML = function (value) {
|
2039
|
-
var _this = this;
|
2040
|
-
return String(value).replace(/[&<>"'\/]/g, function (s) {
|
2041
|
-
return _this._entityMap[s];
|
2042
|
-
});
|
2043
|
-
};
|
2044
|
-
/**
|
2045
|
-
* Encodes all non-alphanumeric ASCII characters to their hexadecimal HTML entity codes.
|
2046
|
-
* Example: "alert(document.cookie)" => "alert(document.cookie)"
|
2047
|
-
*
|
2048
|
-
* @param {string} value The value to encode.
|
2049
|
-
* @returns {string} The encoded string value.
|
2050
|
-
* @memberof Sanitizer
|
2051
|
-
*/
|
2052
|
-
Sanitizer.prototype.encodeAttrValue = function (value) {
|
2053
|
-
var alphanumericRE = /^[a-zA-Z0-9]$/;
|
2054
|
-
return String(value).replace(/[\x00-\xFF]/g, function (c, idx) {
|
2055
|
-
return !alphanumericRE.test(c)
|
2056
|
-
? "&#x".concat(Number(value.charCodeAt(idx)).toString(16), ";")
|
2057
|
-
: c;
|
2058
|
-
});
|
2059
|
-
};
|
2060
|
-
/**
|
2061
|
-
* Extends an object of arrays by by concatenating arrays of the same object
|
2062
|
-
* keys. If the if the previous key's value is not an array, the next key's
|
2063
|
-
* value will replace the previous key. This method is used for extending the
|
2064
|
-
* whiteList in the XSS filter options.
|
2065
|
-
*
|
2066
|
-
* @private
|
2067
|
-
* @param {Array<{}>} objects An array of objects.
|
2068
|
-
* @returns {{}} The extended object.
|
2069
|
-
* @memberof Sanitizer
|
2070
|
-
*/
|
2071
|
-
Sanitizer.prototype._extendObjectOfArrays = function (objects) {
|
2072
|
-
var finalObj = {};
|
2073
|
-
objects.forEach(function (obj) {
|
2074
|
-
Object.keys(obj).forEach(function (key) {
|
2075
|
-
if (Array.isArray(obj[key]) && Array.isArray(finalObj[key])) {
|
2076
|
-
finalObj[key] = finalObj[key].concat(obj[key]);
|
2077
|
-
}
|
2078
|
-
else {
|
2079
|
-
finalObj[key] = obj[key];
|
2080
|
-
}
|
2081
|
-
});
|
2082
|
-
});
|
2083
|
-
return finalObj;
|
2084
|
-
};
|
2085
|
-
/**
|
2086
|
-
* Iterate over a plain object or array to deeply sanitize each value.
|
2087
|
-
*
|
2088
|
-
* @private
|
2089
|
-
* @param {object} obj The object to iterate over.
|
2090
|
-
* @returns {(object | null)} The sanitized object.
|
2091
|
-
* @memberof Sanitizer
|
2092
|
-
*/
|
2093
|
-
Sanitizer.prototype._iterateOverObject = function (obj, options) {
|
2094
|
-
var _this = this;
|
2095
|
-
if (options === void 0) { options = {}; }
|
2096
|
-
try {
|
2097
|
-
var hasChanged_1 = false;
|
2098
|
-
var changedObj = void 0;
|
2099
|
-
if (Array.isArray(obj)) {
|
2100
|
-
changedObj = obj.reduce(function (prev, value) {
|
2101
|
-
var validation = _this.validate(value, options);
|
2102
|
-
if (validation.isValid) {
|
2103
|
-
return prev.concat([value]);
|
2104
|
-
}
|
2105
|
-
else {
|
2106
|
-
hasChanged_1 = true;
|
2107
|
-
return prev.concat([validation.sanitized]);
|
2108
|
-
}
|
2109
|
-
}, []);
|
2110
|
-
}
|
2111
|
-
else if (!isPlainObject(obj)) {
|
2112
|
-
if (options.allowUndefined && typeof obj === "undefined") {
|
2113
|
-
return;
|
2114
|
-
}
|
2115
|
-
return null;
|
2116
|
-
}
|
2117
|
-
else {
|
2118
|
-
var keys = Object.keys(obj);
|
2119
|
-
changedObj = keys.reduce(function (prev, key) {
|
2120
|
-
var value = obj[key];
|
2121
|
-
var validation = _this.validate(value, options);
|
2122
|
-
if (validation.isValid) {
|
2123
|
-
prev[key] = value;
|
2124
|
-
}
|
2125
|
-
else {
|
2126
|
-
hasChanged_1 = true;
|
2127
|
-
prev[key] = validation.sanitized;
|
2128
|
-
}
|
2129
|
-
return prev;
|
2130
|
-
}, {});
|
2131
|
-
}
|
2132
|
-
if (hasChanged_1) {
|
2133
|
-
return changedObj;
|
2134
|
-
}
|
2135
|
-
return obj;
|
2136
|
-
}
|
2137
|
-
catch (err) {
|
2138
|
-
return null;
|
2139
|
-
}
|
2140
|
-
};
|
2141
|
-
/**
|
2142
|
-
* Trim whitespace from the start and ends of a string.
|
2143
|
-
* @param {string} val The string to trim.
|
2144
|
-
* @returns {string} The trimmed string.
|
2145
|
-
*/
|
2146
|
-
Sanitizer.prototype._trim = function (val) {
|
2147
|
-
// @ts-ignore This is used by Jest,
|
2148
|
-
// but TypeScript errors since it assumes `trim` is always available.
|
2149
|
-
return String.prototype.trim
|
2150
|
-
? val.trim()
|
2151
|
-
: val.replace(/(^\s*)|(\s*$)/g, "");
|
2152
|
-
};
|
2153
|
-
return Sanitizer;
|
2154
|
-
}());
|
2155
|
-
|
2156
|
-
exports.Sanitizer = Sanitizer;
|