UNPKG

@dspacev-bundle/vue-cesium

Version:
1 lines 3.47 MB
{"version":3,"file":"index.full.min.mjs","sources":["../../../packages/vue-cesium/version.ts","../../../packages/utils/config.ts","../../../node_modules/@vue/shared/dist/shared.esm-bundler.js","../../../packages/utils/util.ts","../../../packages/utils/objects.ts","../../../packages/composables/use-global-config/index.ts","../../../packages/composables/private/use-log.ts","../../../packages/vue-cesium/make-installer.ts","../../../packages/utils/merge-descriptors.ts","../../../packages/utils/private/vm.ts","../../../node_modules/compare-versions/lib/esm/utils.js","../../../node_modules/compare-versions/lib/esm/compareVersions.js","../../../node_modules/compare-versions/lib/esm/compare.js","../../../packages/shared/shaders/materials/VcCircleWaveMaterial.ts","../../../packages/shared/shaders/materials/VcLineFlowMaterial.ts","../../../packages/shared/extends/materials/MaterialExtend.ts","../../../packages/shared/extends/materials/VcBaseMaterialProperty.ts","../../../packages/shared/extends/materials/VcCircleWaveMaterialProperty.ts","../../../packages/shared/extends/materials/VcLineFlowMaterialProperty.ts","../../../packages/utils/cesium-helpers.ts","../../../packages/utils/cesium-props.ts","../../../packages/locale/lang/zh-hans.ts","../../../packages/composables/use-locale/index.ts","../../../packages/composables/use-events/index.ts","../../../packages/composables/private/use-timeout.ts","../../../packages/composables/use-common/index.ts","../../../packages/composables/use-datasources/index.ts","../../../packages/composables/use-geometries/index.ts","../../../packages/composables/use-graphics/index.ts","../../../packages/utils/private/create.ts","../../../packages/utils/private/dom.ts","../../../packages/utils/private/event.ts","../../../packages/utils/private/key-composition.ts","../../../packages/utils/private/throttle.ts","../../../packages/directives/ripple/index.ts","../../../packages/utils/platform.ts","../../../packages/utils/private/selection.ts","../../../packages/directives/touch-hold/index.ts","../../../packages/directives/touch-repeat/index.ts","../../../packages/utils/private/touch.ts","../../../packages/directives/touch-pan/index.ts","../../../packages/utils/defer.ts","../../../packages/composables/use-handler/index.ts","../../../packages/composables/use-primitive-collection-items/index.ts","../../../packages/composables/use-primitive-collections/index.ts","../../../packages/composables/use-primitives/index.ts","../../../packages/utils/coordtransform.ts","../../../packages/composables/use-providers/index.ts","../../../packages/composables/use-vue-cesium/index.ts","../../../packages/components/viewer/src/defaultProps.ts","../../../packages/components/viewer/src/loadUtil.ts","../../../packages/shared/src/VisibilityState.ts","../../../packages/shared/src/DrawStatus.ts","../../../packages/shared/src/MeasureUnits.ts","../../../packages/shared/src/PolygonPrimitive.ts","../../../packages/shared/src/DynamicOverlay.ts","../../../packages/shared/src/DebugCameraPrimitive.ts","../../../node_modules/kdbush/src/sort.js","../../../node_modules/kdbush/src/range.js","../../../node_modules/kdbush/src/within.js","../../../node_modules/kdbush/src/index.js","../../../packages/shared/src/PrimitiveCluster.ts","../../../packages/shared/extends/core/RectangleExtend.ts","../../../packages/shared/extends/scene/ShadowMapShaderExtend.ts","../../../packages/shared/analyses/Viewshed.ts","../../../packages/shared/widgets/TimelineHighlightRange.ts","../../../packages/shared/widgets/TimelineTrack.ts","../../../packages/shared/widgets/Timeline.ts","../../../packages/composables/private/use-vc-extension.ts","../../../packages/components/viewer/src/useViewer.ts","../../../packages/components/viewer/src/events.ts","../../../packages/composables/private/use-size.ts","../../../packages/utils/private/render.ts","../../../packages/components/ui/icon/index.ts","../../../packages/components/ui/spinner/use-spinner.ts","../../../packages/components/ui/spinner/spinner-ball.ts","../../../packages/components/ui/spinner/spinner-bars.ts","../../../packages/components/ui/spinner/spinner-dots.ts","../../../packages/components/ui/spinner/spinner-gears.ts","../../../packages/components/ui/spinner/spinner-hourglass.ts","../../../packages/components/ui/spinner/spinner-ios.ts","../../../packages/components/ui/spinner/spinner-orbit.ts","../../../packages/components/ui/spinner/spinner-oval.ts","../../../packages/components/ui/spinner/spinner-puff.ts","../../../packages/components/ui/spinner/spinner-rings.ts","../../../packages/components/ui/spinner/spinner-tail.ts","../../../packages/components/ui/spinner/spinner.ts","../../../packages/composables/private/use-align.ts","../../../packages/components/ui/btn/use-btn.ts","../../../packages/components/ui/btn/index.ts","../../../packages/composables/private/use-anchor.ts","../../../packages/composables/private/use-scroll-target.ts","../../../packages/composables/private/use-model-toggle.ts","../../../packages/utils/private/global-nodes.ts","../../../packages/utils/private/portal.ts","../../../packages/composables/private/use-portal.ts","../../../packages/composables/private/use-transition.ts","../../../packages/composables/private/use-tick.ts","../../../packages/utils/private/scroll.ts","../../../packages/utils/private/position-engine.ts","../../../packages/components/ui/tooltip/index.ts","../../../packages/utils/private/format.ts","../../../packages/components/ui/ajax-bar/index.ts","../../../packages/composables/private/use-dark.ts","../../../packages/components/ui/skeleton/index.ts","../../../packages/components/ui/fab/use-fab.ts","../../../packages/components/ui/fab/defaultProps.ts","../../../packages/components/ui/fab/fab.ts","../../../packages/components/ui/fab/defaultPropsAction.ts","../../../packages/components/ui/fab/fab-action.ts","../../../packages/composables/private/use-form.ts","../../../packages/components/ui/slider/use-slider.ts","../../../packages/components/ui/slider/index.ts","../../../packages/components/ui/index.ts","../../../packages/utils/emits.ts","../../../packages/components/viewer/src/index.ts","../../../packages/components/viewer/index.ts","../../../packages/composables/private/use-position.ts","../../../packages/components/controls/compass/defaultProps.ts","../../../packages/components/controls/compass/CameraFlightPath.ts","../../../packages/components/controls/compass/use-compass.ts","../../../packages/components/controls/compass/index.ts","../../../packages/components/controls/zoom-control/defaultProps.ts","../../../packages/components/controls/zoom-control/use-zoom-control.ts","../../../packages/components/controls/zoom-control/index.ts","../../../packages/components/controls/print/print-view.ts","../../../packages/components/controls/print/createPrintView.ts","../../../packages/components/controls/print/defaultProps.ts","../../../packages/components/controls/print/printWindow.ts","../../../packages/components/controls/print/index.ts","../../../node_modules/@amap/amap-jsapi-loader/dist/index.js","../../../packages/components/controls/my-location/defaultProps.ts","../../../packages/components/controls/my-location/index.ts","../../../packages/components/controls/status-bar/prettifyCoordinates.ts","../../../node_modules/proj4/lib/global.js","../../../node_modules/proj4/lib/constants/values.js","../../../node_modules/proj4/lib/constants/PrimeMeridian.js","../../../node_modules/proj4/lib/constants/units.js","../../../node_modules/proj4/lib/match.js","../../../node_modules/proj4/lib/projString.js","../../../node_modules/wkt-parser/parser.js","../../../node_modules/wkt-parser/process.js","../../../node_modules/wkt-parser/index.js","../../../node_modules/proj4/lib/defs.js","../../../node_modules/proj4/lib/parseCode.js","../../../node_modules/proj4/lib/extend.js","../../../node_modules/proj4/lib/common/msfnz.js","../../../node_modules/proj4/lib/common/sign.js","../../../node_modules/proj4/lib/common/adjust_lon.js","../../../node_modules/proj4/lib/common/tsfnz.js","../../../node_modules/proj4/lib/common/phi2z.js","../../../node_modules/proj4/lib/projections/merc.js","../../../node_modules/proj4/lib/projections/longlat.js","../../../node_modules/proj4/lib/projections.js","../../../node_modules/proj4/lib/constants/Ellipsoid.js","../../../node_modules/proj4/lib/deriveConstants.js","../../../node_modules/proj4/lib/constants/Datum.js","../../../node_modules/proj4/lib/datum.js","../../../node_modules/proj4/lib/nadgrid.js","../../../node_modules/proj4/lib/Proj.js","../../../node_modules/proj4/lib/datumUtils.js","../../../node_modules/proj4/lib/datum_transform.js","../../../node_modules/proj4/lib/adjust_axis.js","../../../node_modules/proj4/lib/common/toPoint.js","../../../node_modules/proj4/lib/checkSanity.js","../../../node_modules/proj4/lib/transform.js","../../../node_modules/proj4/lib/core.js","../../../node_modules/mgrs/mgrs.js","../../../node_modules/proj4/lib/Point.js","../../../node_modules/proj4/lib/common/pj_enfn.js","../../../node_modules/proj4/lib/common/pj_mlfn.js","../../../node_modules/proj4/lib/common/pj_inv_mlfn.js","../../../node_modules/proj4/lib/projections/tmerc.js","../../../node_modules/proj4/lib/common/sinh.js","../../../node_modules/proj4/lib/common/hypot.js","../../../node_modules/proj4/lib/common/log1py.js","../../../node_modules/proj4/lib/common/asinhy.js","../../../node_modules/proj4/lib/common/gatg.js","../../../node_modules/proj4/lib/common/clens.js","../../../node_modules/proj4/lib/common/cosh.js","../../../node_modules/proj4/lib/common/clens_cmplx.js","../../../node_modules/proj4/lib/projections/etmerc.js","../../../node_modules/proj4/lib/common/adjust_zone.js","../../../node_modules/proj4/lib/projections/utm.js","../../../node_modules/proj4/lib/common/srat.js","../../../node_modules/proj4/lib/projections/gauss.js","../../../node_modules/proj4/lib/projections/sterea.js","../../../node_modules/proj4/lib/projections/stere.js","../../../node_modules/proj4/lib/projections/somerc.js","../../../node_modules/proj4/lib/projections/omerc.js","../../../node_modules/proj4/lib/projections/lcc.js","../../../node_modules/proj4/lib/projections/krovak.js","../../../node_modules/proj4/lib/common/mlfn.js","../../../node_modules/proj4/lib/common/e0fn.js","../../../node_modules/proj4/lib/common/e1fn.js","../../../node_modules/proj4/lib/common/e2fn.js","../../../node_modules/proj4/lib/common/e3fn.js","../../../node_modules/proj4/lib/common/gN.js","../../../node_modules/proj4/lib/common/adjust_lat.js","../../../node_modules/proj4/lib/common/imlfn.js","../../../node_modules/proj4/lib/projections/cass.js","../../../node_modules/proj4/lib/common/qsfnz.js","../../../node_modules/proj4/lib/projections/laea.js","../../../node_modules/proj4/lib/common/asinz.js","../../../node_modules/proj4/lib/projections/aea.js","../../../node_modules/proj4/lib/projections/gnom.js","../../../node_modules/proj4/lib/common/iqsfnz.js","../../../node_modules/proj4/lib/projections/cea.js","../../../node_modules/proj4/lib/projections/eqc.js","../../../node_modules/proj4/lib/projections/poly.js","../../../node_modules/proj4/lib/projections/nzmg.js","../../../node_modules/proj4/lib/projections/mill.js","../../../node_modules/proj4/lib/projections/sinu.js","../../../node_modules/proj4/lib/projections/moll.js","../../../node_modules/proj4/lib/projections/eqdc.js","../../../node_modules/proj4/lib/projections/vandg.js","../../../node_modules/proj4/lib/projections/aeqd.js","../../../node_modules/proj4/lib/projections/ortho.js","../../../node_modules/proj4/lib/projections/qsc.js","../../../node_modules/proj4/lib/projections/robin.js","../../../node_modules/proj4/lib/projections/geocent.js","../../../node_modules/proj4/lib/projections/tpers.js","../../../node_modules/proj4/lib/projections/geos.js","../../../node_modules/proj4/projs.js","../../../node_modules/proj4/lib/index.js","../../../packages/components/controls/status-bar/prettifyProjection.ts","../../../packages/components/controls/status-bar/EarthGravityModel1996.ts","../../../packages/components/controls/status-bar/MouseCoords.ts","../../../packages/components/controls/status-bar/defaultProps.ts","../../../packages/components/controls/status-bar/index.ts","../../../packages/components/controls/distance-legend/defaultProps.ts","../../../packages/components/controls/distance-legend/index.ts","../../../packages/components/controls/navigation/defaultProps.ts","../../../packages/components/controls/navigation/index.ts","../../../packages/components/controls/navigation-sm/use-compass.ts","../../../packages/components/controls/navigation-sm/compass-sm.ts","../../../packages/components/controls/navigation-sm/use-zoom-control.ts","../../../packages/components/controls/navigation-sm/zoom-control-sm.ts","../../../packages/components/controls/navigation-sm/index.ts","../../../packages/components/controls/vc-overview-map/index.ts","../../../packages/components/controls/selection-indicator/Feature.ts","../../../packages/components/controls/selection-indicator/PickedFeatures.ts","../../../packages/components/controls/selection-indicator/util.ts","../../../packages/components/controls/selection-indicator/use-selection-indicatior.ts","../../../packages/components/controls/selection-indicator/index.ts","../../../packages/components/controls/index.ts","../../../packages/composables/use-drawing/defaultOpts.ts","../../../packages/composables/use-drawing/props.ts","../../../packages/components/measurements/src/defaultProps.ts","../../../packages/components/overlays/html/index.ts","../../../node_modules/@zouyaoji/heatmap.js/build/heatmap.js","../../../packages/components/entity/src/index.ts","../../../packages/components/entity/index.ts","../../../packages/components/imagery-layer/src/defaultProps.ts","../../../packages/components/imagery-layer/src/index.ts","../../../packages/components/imagery-layer/index.ts","../../../packages/components/primitives/classification/index.ts","../../../packages/components/primitives/ground/index.ts","../../../packages/components/primitives/ground-polyline/index.ts","../../../packages/components/primitives/model/index.ts","../../../packages/components/primitives/primitive/index.ts","../../../packages/components/primitives/tileset/index.ts","../../../packages/components/primitives/osm-buildings/index.ts","../../../packages/components/primitives/particle/index.ts","../../../packages/shared/shaders/Viewshed.ts","../../../packages/components/primitives/viewshed/index.ts","../../../packages/components/primitives/time-dynamic-point-cloud/index.ts","../../../packages/components/primitives/i3s/index.ts","../../../packages/components/primitives/voxel/index.ts","../../../packages/components/primitives/primitive-cluster/index.ts","../../../packages/components/primitives/index.ts","../../../packages/components/overlays/heatmap/index.ts","../../../packages/components/overlays/echarts/index.ts","../../../packages/components/overlays/wind/util.ts","../../../packages/components/overlays/wind/glsl/calculateSpeed.frag.ts","../../../packages/components/overlays/wind/glsl/updatePosition.frag.ts","../../../packages/components/overlays/wind/glsl/postProcessingPosition.frag.ts","../../../packages/components/overlays/wind/customPrimitive.ts","../../../packages/components/overlays/wind/particlesComputing.ts","../../../packages/components/overlays/wind/glsl/segmentDraw.vert.ts","../../../packages/components/overlays/wind/glsl/segmentDraw.frag.ts","../../../packages/components/overlays/wind/glsl/fullscreen.vert.ts","../../../packages/components/overlays/wind/glsl/trailDraw.frag.ts","../../../packages/components/overlays/wind/glsl/screenDraw.frag.ts","../../../packages/components/overlays/wind/particlesRendering.ts","../../../packages/components/overlays/wind/particleSystem.ts","../../../packages/components/overlays/wind/grid/math.ts","../../../packages/components/overlays/wind/grid/regular.ts","../../../packages/components/overlays/wind/index.ts","../../../packages/components/overlays/dynamic/index.ts","../../../packages/components/primitive-collections/billboard-collection/index.ts","../../../packages/components/primitive-collections/billboard/index.ts","../../../packages/components/primitive-collections/cloud/index.ts","../../../packages/components/primitive-collections/cloud-collection/index.ts","../../../packages/components/primitive-collections/label-collection/index.ts","../../../packages/components/primitive-collections/label/index.ts","../../../packages/components/primitive-collections/point-collection/index.ts","../../../packages/components/primitive-collections/point/index.ts","../../../packages/components/primitive-collections/polyline-collection/index.ts","../../../packages/components/primitive-collections/polyline/index.ts","../../../packages/components/primitive-collections/primitive-collection/index.ts","../../../packages/components/primitive-collections/polygon/index.ts","../../../packages/components/primitive-collections/index.ts","../../../packages/components/geometry-instance/src/index.ts","../../../packages/components/geometry-instance/index.ts","../../../packages/components/geometries/box/index.ts","../../../packages/components/geometries/box-outline/index.ts","../../../packages/components/geometries/circle/index.ts","../../../packages/components/geometries/circle-outline/index.ts","../../../packages/components/geometries/coplanar-polygon/index.ts","../../../packages/components/geometries/coplanar-polygon-outline/index.ts","../../../packages/components/geometries/corridor/index.ts","../../../packages/components/geometries/corridor-outline/index.ts","../../../packages/components/geometries/cylinder/index.ts","../../../packages/components/geometries/cylinder-outline/index.ts","../../../packages/components/geometries/ellipse/index.ts","../../../packages/components/geometries/ellipse-outline/index.ts","../../../packages/components/geometries/ellipsoid/index.ts","../../../packages/components/geometries/ellipsoid-outline/index.ts","../../../packages/components/geometries/frustum/index.ts","../../../packages/components/geometries/frustum-outline/index.ts","../../../packages/components/geometries/ground-polyline/index.ts","../../../packages/components/geometries/plane/index.ts","../../../packages/components/geometries/plane-outline/index.ts","../../../packages/components/geometries/polygon/index.ts","../../../packages/components/geometries/polygon-outline/index.ts","../../../packages/components/geometries/polyline/index.ts","../../../packages/components/geometries/polyline-volume/index.ts","../../../packages/components/geometries/polyline-volume-outline/index.ts","../../../packages/components/geometries/rectangle/index.ts","../../../packages/components/geometries/rectangle-outline/index.ts","../../../packages/components/geometries/simple-polyline/index.ts","../../../packages/components/geometries/sphere/index.ts","../../../packages/components/geometries/sphere-outline/index.ts","../../../packages/components/geometries/wall/index.ts","../../../packages/components/geometries/wall-outline/index.ts","../../../packages/components/geometries/index.ts","../../../node_modules/@turf/helpers/dist/es/index.js","../../../node_modules/@turf/invariant/dist/es/index.js","../../../node_modules/@turf/destination/dist/es/index.js","../../../node_modules/@turf/circle/dist/es/index.js","../../../packages/components/overlays/typhoon/index.ts","../../../packages/components/overlays/index.ts","../../../packages/composables/use-drawing/use-drawing-action.ts","../../../packages/composables/use-drawing/use-drawing-segment.ts","../../../packages/components/measurements/src/distance/index.ts","../../../packages/composables/use-drawing/use-drawing-polyline.ts","../../../packages/components/measurements/src/polyline/index.ts","../../../packages/components/measurements/src/horizontal/index.ts","../../../packages/components/measurements/src/vertical/index.ts","../../../packages/components/measurements/src/height/index.ts","../../../packages/composables/use-drawing/use-drawing-point.ts","../../../packages/components/measurements/src/point/index.ts","../../../packages/components/measurements/src/area/index.ts","../../../packages/components/measurements/src/rectangle/index.ts","../../../packages/components/measurements/src/regular/index.ts","../../../packages/composables/use-drawing/use-drawing-fab.ts","../../../packages/components/measurements/src/index.ts","../../../packages/components/measurements/index.ts","../../../packages/components/drawings/src/defaultProps.ts","../../../packages/components/drawings/src/pin/index.ts","../../../packages/components/drawings/src/point/index.ts","../../../packages/components/drawings/src/polyline/index.ts","../../../packages/components/drawings/src/polygon/index.ts","../../../packages/components/drawings/src/regular/index.ts","../../../packages/components/drawings/src/rectangle/index.ts","../../../packages/components/drawings/src/index.ts","../../../packages/components/drawings/index.ts","../../../packages/components/providers/amap/AMapImageryProvider.ts","../../../packages/components/providers/amap/index.ts","../../../packages/components/providers/arcgis/imagery.ts","../../../packages/components/providers/baidu/Point.ts","../../../packages/components/providers/baidu/Pixel.ts","../../../packages/components/providers/baidu/BaiduMapMercatorProjection.ts","../../../packages/components/providers/baidu/BaiduMapTilingScheme.ts","../../../packages/components/providers/baidu/BaiduMapImageryProvider.ts","../../../packages/components/providers/baidu/index.ts","../../../packages/components/providers/bingmaps/index.ts","../../../packages/components/providers/google-earth/index.ts","../../../packages/components/providers/grid/index.ts","../../../packages/components/providers/ion/index.ts","../../../packages/components/providers/mapbox-style/index.ts","../../../packages/components/providers/osm/index.ts","../../../packages/components/providers/single-tile/index.ts","../../../packages/components/providers/supermap/IndexedDBScheduler.ts","../../../packages/components/providers/supermap/SuperMapImageryProvider.ts","../../../packages/components/providers/supermap/index.ts","../../../packages/components/providers/tencent/TencentImageryProvider.ts","../../../packages/components/providers/tencent/index.ts","../../../packages/components/providers/tianditu/TiandituMapsStyle.ts","../../../node_modules/urijs/src/punycode.js","../../../node_modules/urijs/src/IPv6.js","../../../node_modules/urijs/src/SecondLevelDomains.js","../../../node_modules/urijs/src/URI.js","../../../packages/components/providers/tianditu/TiandituImageryProvider.ts","../../../packages/components/providers/tianditu/imagery.ts","../../../packages/components/providers/tile-coordinates/index.ts","../../../packages/components/providers/tile-map-service/index.ts","../../../packages/components/providers/tiled-cache/index.ts","../../../packages/components/providers/url-template/index.ts","../../../packages/components/providers/wms/index.ts","../../../packages/components/providers/wmts/index.ts","../../../packages/components/providers/cesium-terrain/index.ts","../../../packages/components/providers/arcgis/terrain.ts","../../../packages/components/providers/vr-theworld/index.ts","../../../packages/components/providers/tianditu/terrain.ts","../../../packages/components/providers/index.ts","../../../packages/components/datasources/custom/index.ts","../../../packages/components/datasources/czml/index.ts","../../../packages/components/datasources/geojson/index.ts","../../../packages/components/datasources/kml/index.ts","../../../packages/components/datasources/index.ts","../../../packages/components/graphics/billboard/index.ts","../../../packages/components/graphics/box/index.ts","../../../packages/components/graphics/corridor/index.ts","../../../packages/components/graphics/cylinder/index.ts","../../../packages/components/graphics/ellipse/index.ts","../../../packages/components/graphics/ellipsoid/index.ts","../../../packages/components/graphics/label/index.ts","../../../packages/components/graphics/model/index.ts","../../../packages/components/graphics/path/index.ts","../../../packages/components/graphics/plane/index.ts","../../../packages/components/graphics/point/index.ts","../../../packages/components/graphics/polygon/index.ts","../../../packages/components/graphics/polyline/index.ts","../../../packages/components/graphics/polylineVolume/index.ts","../../../packages/components/graphics/rectangle/index.ts","../../../packages/components/graphics/tileset/index.ts","../../../packages/components/graphics/wall/index.ts","../../../packages/components/graphics/index.ts","../../../packages/components/post-processes/post-process-stage/defaultProps.ts","../../../packages/components/post-processes/post-process-stage/index.ts","../../../packages/shared/shaders/RadarScan.ts","../../../packages/components/post-processes/post-process-stage-scan/use-radar-scan.ts","../../../packages/shared/shaders/CircleScan.ts","../../../packages/components/post-processes/post-process-stage-scan/use-circle-scan.ts","../../../packages/components/post-processes/post-process-stage-scan/index.ts","../../../packages/components/post-processes/post-process-stage-collection/index.ts","../../../packages/components/post-processes/index.ts","../../../packages/components/config-provider/src/index.ts","../../../packages/components/config-provider/index.ts","../../../packages/components/analyses/flood/index.ts","../../../packages/components/analyses/src/defaultProps.ts","../../../packages/components/analyses/src/sightline/index.ts","../../../packages/components/analyses/src/viewshed/index.ts","../../../packages/components/analyses/src/index.ts","../../../packages/components/analyses/index.ts","../../../packages/vue-cesium/component.ts","../../../packages/vue-cesium/defaults.ts","../../../packages/vue-cesium/index.ts"],"sourcesContent":["export const version = '3.1.5'\n","/*\n * @Author: zouyaoji@https://github.com/zouyaoji\n * @Date: 2021-10-27 15:54:11\n * @LastEditTime: 2022-09-06 01:10:05\n * @LastEditors: zouyaoji\n * @Description:\n * @FilePath: \\vue-cesium@next\\packages\\utils\\config.ts\n */\nimport type { Language } from '@vue-cesium/locale'\nimport type { InjectionKey, Ref } from 'vue'\nimport type { Mars3dConfig } from './types'\n\nconst hasSymbol = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'\nexport interface ConfigProviderContext {\n cesiumPath?: string\n accessToken?: string\n locale?: Language\n mars3dConfig?: Mars3dConfig // for mars3d\n reloadMode?: 'once' | 'all'\n __scriptPromise?: Promise<unknown>\n __viewerUnloadingPromise?: Promise<boolean>\n [propName: string]: any\n}\n\nconst vcKey = hasSymbol ? Symbol('VueCesium') : 'VueCesium'\n\nconst fabKey = hasSymbol ? Symbol('_vc_f_') : '_vc_f_'\n\nconst measurementKey = hasSymbol ? Symbol('_vc_measurement_') : '_vc_measurement_'\n\nexport { vcKey, fabKey, measurementKey }\n\nexport const configProviderContextKey: InjectionKey<Ref<ConfigProviderContext>> = Symbol()\n","/**\n * Make a map and return a function for checking if a key\n * is in that map.\n * IMPORTANT: all calls of this function must be prefixed with\n * \\/\\*#\\_\\_PURE\\_\\_\\*\\/\n * So that rollup can tree-shake them if necessary.\n */\nfunction makeMap(str, expectsLowerCase) {\n const map = Object.create(null);\n const list = str.split(',');\n for (let i = 0; i < list.length; i++) {\n map[list[i]] = true;\n }\n return expectsLowerCase ? val => !!map[val.toLowerCase()] : val => !!map[val];\n}\n\n/**\n * dev only flag -> name mapping\n */\nconst PatchFlagNames = {\n [1 /* PatchFlags.TEXT */]: `TEXT`,\n [2 /* PatchFlags.CLASS */]: `CLASS`,\n [4 /* PatchFlags.STYLE */]: `STYLE`,\n [8 /* PatchFlags.PROPS */]: `PROPS`,\n [16 /* PatchFlags.FULL_PROPS */]: `FULL_PROPS`,\n [32 /* PatchFlags.HYDRATE_EVENTS */]: `HYDRATE_EVENTS`,\n [64 /* PatchFlags.STABLE_FRAGMENT */]: `STABLE_FRAGMENT`,\n [128 /* PatchFlags.KEYED_FRAGMENT */]: `KEYED_FRAGMENT`,\n [256 /* PatchFlags.UNKEYED_FRAGMENT */]: `UNKEYED_FRAGMENT`,\n [512 /* PatchFlags.NEED_PATCH */]: `NEED_PATCH`,\n [1024 /* PatchFlags.DYNAMIC_SLOTS */]: `DYNAMIC_SLOTS`,\n [2048 /* PatchFlags.DEV_ROOT_FRAGMENT */]: `DEV_ROOT_FRAGMENT`,\n [-1 /* PatchFlags.HOISTED */]: `HOISTED`,\n [-2 /* PatchFlags.BAIL */]: `BAIL`\n};\n\n/**\n * Dev only\n */\nconst slotFlagsText = {\n [1 /* SlotFlags.STABLE */]: 'STABLE',\n [2 /* SlotFlags.DYNAMIC */]: 'DYNAMIC',\n [3 /* SlotFlags.FORWARDED */]: 'FORWARDED'\n};\n\nconst GLOBALS_WHITE_LISTED = 'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' +\n 'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +\n 'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt';\nconst isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED);\n\nconst range = 2;\nfunction generateCodeFrame(source, start = 0, end = source.length) {\n // Split the content into individual lines but capture the newline sequence\n // that separated each line. This is important because the actual sequence is\n // needed to properly take into account the full line length for offset\n // comparison\n let lines = source.split(/(\\r?\\n)/);\n // Separate the lines and newline sequences into separate arrays for easier referencing\n const newlineSequences = lines.filter((_, idx) => idx % 2 === 1);\n lines = lines.filter((_, idx) => idx % 2 === 0);\n let count = 0;\n const res = [];\n for (let i = 0; i < lines.length; i++) {\n count +=\n lines[i].length +\n ((newlineSequences[i] && newlineSequences[i].length) || 0);\n if (count >= start) {\n for (let j = i - range; j <= i + range || end > count; j++) {\n if (j < 0 || j >= lines.length)\n continue;\n const line = j + 1;\n res.push(`${line}${' '.repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`);\n const lineLength = lines[j].length;\n const newLineSeqLength = (newlineSequences[j] && newlineSequences[j].length) || 0;\n if (j === i) {\n // push underline\n const pad = start - (count - (lineLength + newLineSeqLength));\n const length = Math.max(1, end > count ? lineLength - pad : end - start);\n res.push(` | ` + ' '.repeat(pad) + '^'.repeat(length));\n }\n else if (j > i) {\n if (end > count) {\n const length = Math.max(Math.min(end - count, lineLength), 1);\n res.push(` | ` + '^'.repeat(length));\n }\n count += lineLength + newLineSeqLength;\n }\n }\n break;\n }\n }\n return res.join('\\n');\n}\n\nfunction normalizeStyle(value) {\n if (isArray(value)) {\n const res = {};\n for (let i = 0; i < value.length; i++) {\n const item = value[i];\n const normalized = isString(item)\n ? parseStringStyle(item)\n : normalizeStyle(item);\n if (normalized) {\n for (const key in normalized) {\n res[key] = normalized[key];\n }\n }\n }\n return res;\n }\n else if (isString(value)) {\n return value;\n }\n else if (isObject(value)) {\n return value;\n }\n}\nconst listDelimiterRE = /;(?![^(]*\\))/g;\nconst propertyDelimiterRE = /:([^]+)/;\nconst styleCommentRE = /\\/\\*.*?\\*\\//gs;\nfunction parseStringStyle(cssText) {\n const ret = {};\n cssText\n .replace(styleCommentRE, '')\n .split(listDelimiterRE)\n .forEach(item => {\n if (item) {\n const tmp = item.split(propertyDelimiterRE);\n tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());\n }\n });\n return ret;\n}\nfunction stringifyStyle(styles) {\n let ret = '';\n if (!styles || isString(styles)) {\n return ret;\n }\n for (const key in styles) {\n const value = styles[key];\n const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);\n if (isString(value) || typeof value === 'number') {\n // only render valid values\n ret += `${normalizedKey}:${value};`;\n }\n }\n return ret;\n}\nfunction normalizeClass(value) {\n let res = '';\n if (isString(value)) {\n res = value;\n }\n else if (isArray(value)) {\n for (let i = 0; i < value.length; i++) {\n const normalized = normalizeClass(value[i]);\n if (normalized) {\n res += normalized + ' ';\n }\n }\n }\n else if (isObject(value)) {\n for (const name in value) {\n if (value[name]) {\n res += name + ' ';\n }\n }\n }\n return res.trim();\n}\nfunction normalizeProps(props) {\n if (!props)\n return null;\n let { class: klass, style } = props;\n if (klass && !isString(klass)) {\n props.class = normalizeClass(klass);\n }\n if (style) {\n props.style = normalizeStyle(style);\n }\n return props;\n}\n\n// These tag configs are shared between compiler-dom and runtime-dom, so they\n// https://developer.mozilla.org/en-US/docs/Web/HTML/Element\nconst HTML_TAGS = 'html,body,base,head,link,meta,style,title,address,article,aside,footer,' +\n 'header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,' +\n 'figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,' +\n 'data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,' +\n 'time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,' +\n 'canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,' +\n 'th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,' +\n 'option,output,progress,select,textarea,details,dialog,menu,' +\n 'summary,template,blockquote,iframe,tfoot';\n// https://developer.mozilla.org/en-US/docs/Web/SVG/Element\nconst SVG_TAGS = 'svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,' +\n 'defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,' +\n 'feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,' +\n 'feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,' +\n 'feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,' +\n 'fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,' +\n 'foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,' +\n 'mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,' +\n 'polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,' +\n 'text,textPath,title,tspan,unknown,use,view';\nconst VOID_TAGS = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr';\n/**\n * Compiler only.\n * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.\n */\nconst isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS);\n/**\n * Compiler only.\n * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.\n */\nconst isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS);\n/**\n * Compiler only.\n * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.\n */\nconst isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS);\n\n/**\n * On the client we only need to offer special cases for boolean attributes that\n * have different names from their corresponding dom properties:\n * - itemscope -> N/A\n * - allowfullscreen -> allowFullscreen\n * - formnovalidate -> formNoValidate\n * - ismap -> isMap\n * - nomodule -> noModule\n * - novalidate -> noValidate\n * - readonly -> readOnly\n */\nconst specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;\nconst isSpecialBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs);\n/**\n * The full list is needed during SSR to produce the correct initial markup.\n */\nconst isBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs +\n `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,` +\n `loop,open,required,reversed,scoped,seamless,` +\n `checked,muted,multiple,selected`);\n/**\n * Boolean attributes should be included if the value is truthy or ''.\n * e.g. `<select multiple>` compiles to `{ multiple: '' }`\n */\nfunction includeBooleanAttr(value) {\n return !!value || value === '';\n}\nconst unsafeAttrCharRE = /[>/=\"'\\u0009\\u000a\\u000c\\u0020]/;\nconst attrValidationCache = {};\nfunction isSSRSafeAttrName(name) {\n if (attrValidationCache.hasOwnProperty(name)) {\n return attrValidationCache[name];\n }\n const isUnsafe = unsafeAttrCharRE.test(name);\n if (isUnsafe) {\n console.error(`unsafe attribute name: ${name}`);\n }\n return (attrValidationCache[name] = !isUnsafe);\n}\nconst propsToAttrMap = {\n acceptCharset: 'accept-charset',\n className: 'class',\n htmlFor: 'for',\n httpEquiv: 'http-equiv'\n};\n/**\n * Known attributes, this is used for stringification of runtime static nodes\n * so that we don't stringify bindings that cannot be set from HTML.\n * Don't also forget to allow `data-*` and `aria-*`!\n * Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes\n */\nconst isKnownHtmlAttr = /*#__PURE__*/ makeMap(`accept,accept-charset,accesskey,action,align,allow,alt,async,` +\n `autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,` +\n `border,buffered,capture,challenge,charset,checked,cite,class,code,` +\n `codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,` +\n `coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,` +\n `disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,` +\n `formaction,formenctype,formmethod,formnovalidate,formtarget,headers,` +\n `height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,` +\n `ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,` +\n `manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,` +\n `open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,` +\n `referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,` +\n `selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,` +\n `start,step,style,summary,tabindex,target,title,translate,type,usemap,` +\n `value,width,wrap`);\n/**\n * Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute\n */\nconst isKnownSvgAttr = /*#__PURE__*/ makeMap(`xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,` +\n `arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,` +\n `baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,` +\n `clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,` +\n `color-interpolation-filters,color-profile,color-rendering,` +\n `contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,` +\n `descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,` +\n `dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,` +\n `fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,` +\n `font-family,font-size,font-size-adjust,font-stretch,font-style,` +\n `font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,` +\n `glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,` +\n `gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,` +\n `horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,` +\n `k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,` +\n `lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,` +\n `marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,` +\n `mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,` +\n `name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,` +\n `overflow,overline-position,overline-thickness,panose-1,paint-order,path,` +\n `pathLength,patternContentUnits,patternTransform,patternUnits,ping,` +\n `pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,` +\n `preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,` +\n `rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,` +\n `restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,` +\n `specularConstant,specularExponent,speed,spreadMethod,startOffset,` +\n `stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,` +\n `strikethrough-position,strikethrough-thickness,string,stroke,` +\n `stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,` +\n `stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,` +\n `systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,` +\n `text-decoration,text-rendering,textLength,to,transform,transform-origin,` +\n `type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,` +\n `unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,` +\n `v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,` +\n `vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,` +\n `writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,` +\n `xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,` +\n `xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`);\n\nconst escapeRE = /[\"'&<>]/;\nfunction escapeHtml(string) {\n const str = '' + string;\n const match = escapeRE.exec(str);\n if (!match) {\n return str;\n }\n let html = '';\n let escaped;\n let index;\n let lastIndex = 0;\n for (index = match.index; index < str.length; index++) {\n switch (str.charCodeAt(index)) {\n case 34: // \"\n escaped = '&quot;';\n break;\n case 38: // &\n escaped = '&amp;';\n break;\n case 39: // '\n escaped = '&#39;';\n break;\n case 60: // <\n escaped = '&lt;';\n break;\n case 62: // >\n escaped = '&gt;';\n break;\n default:\n continue;\n }\n if (lastIndex !== index) {\n html += str.slice(lastIndex, index);\n }\n lastIndex = index + 1;\n html += escaped;\n }\n return lastIndex !== index ? html + str.slice(lastIndex, index) : html;\n}\n// https://www.w3.org/TR/html52/syntax.html#comments\nconst commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g;\nfunction escapeHtmlComment(src) {\n return src.replace(commentStripRE, '');\n}\n\nfunction looseCompareArrays(a, b) {\n if (a.length !== b.length)\n return false;\n let equal = true;\n for (let i = 0; equal && i < a.length; i++) {\n equal = looseEqual(a[i], b[i]);\n }\n return equal;\n}\nfunction looseEqual(a, b) {\n if (a === b)\n return true;\n let aValidType = isDate(a);\n let bValidType = isDate(b);\n if (aValidType || bValidType) {\n return aValidType && bValidType ? a.getTime() === b.getTime() : false;\n }\n aValidType = isSymbol(a);\n bValidType = isSymbol(b);\n if (aValidType || bValidType) {\n return a === b;\n }\n aValidType = isArray(a);\n bValidType = isArray(b);\n if (aValidType || bValidType) {\n return aValidType && bValidType ? looseCompareArrays(a, b) : false;\n }\n aValidType = isObject(a);\n bValidType = isObject(b);\n if (aValidType || bValidType) {\n /* istanbul ignore if: this if will probably never be called */\n if (!aValidType || !bValidType) {\n return false;\n }\n const aKeysCount = Object.keys(a).length;\n const bKeysCount = Object.keys(b).length;\n if (aKeysCount !== bKeysCount) {\n return false;\n }\n for (const key in a) {\n const aHasKey = a.hasOwnProperty(key);\n const bHasKey = b.hasOwnProperty(key);\n if ((aHasKey && !bHasKey) ||\n (!aHasKey && bHasKey) ||\n !looseEqual(a[key], b[key])) {\n return false;\n }\n }\n }\n return String(a) === String(b);\n}\nfunction looseIndexOf(arr, val) {\n return arr.findIndex(item => looseEqual(item, val));\n}\n\n/**\n * For converting {{ interpolation }} values to displayed strings.\n * @private\n */\nconst toDisplayString = (val) => {\n return isString(val)\n ? val\n : val == null\n ? ''\n : isArray(val) ||\n (isObject(val) &&\n (val.toString === objectToString || !isFunction(val.toString)))\n ? JSON.stringify(val, replacer, 2)\n : String(val);\n};\nconst replacer = (_key, val) => {\n // can't use isRef here since @vue/shared has no deps\n if (val && val.__v_isRef) {\n return replacer(_key, val.value);\n }\n else if (isMap(val)) {\n return {\n [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val]) => {\n entries[`${key} =>`] = val;\n return entries;\n }, {})\n };\n }\n else if (isSet(val)) {\n return {\n [`Set(${val.size})`]: [...val.values()]\n };\n }\n else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {\n return String(val);\n }\n return val;\n};\n\nconst EMPTY_OBJ = (process.env.NODE_ENV !== 'production')\n ? Object.freeze({})\n : {};\nconst EMPTY_ARR = (process.env.NODE_ENV !== 'production') ? Object.freeze([]) : [];\nconst NOOP = () => { };\n/**\n * Always return false.\n */\nconst NO = () => false;\nconst onRE = /^on[^a-z]/;\nconst isOn = (key) => onRE.test(key);\nconst isModelListener = (key) => key.startsWith('onUpdate:');\nconst extend = Object.assign;\nconst remove = (arr, el) => {\n const i = arr.indexOf(el);\n if (i > -1) {\n arr.splice(i, 1);\n }\n};\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\nconst hasOwn = (val, key) => hasOwnProperty.call(val, key);\nconst isArray = Array.isArray;\nconst isMap = (val) => toTypeString(val) === '[object Map]';\nconst isSet = (val) => toTypeString(val) === '[object Set]';\nconst isDate = (val) => toTypeString(val) === '[object Date]';\nconst isRegExp = (val) => toTypeString(val) === '[object RegExp]';\nconst isFunction = (val) => typeof val === 'function';\nconst isString = (val) => typeof val === 'string';\nconst isSymbol = (val) => typeof val === 'symbol';\nconst isObject = (val) => val !== null && typeof val === 'object';\nconst isPromise = (val) => {\n return isObject(val) && isFunction(val.then) && isFunction(val.catch);\n};\nconst objectToString = Object.prototype.toString;\nconst toTypeString = (value) => objectToString.call(value);\nconst toRawType = (value) => {\n // extract \"RawType\" from strings like \"[object RawType]\"\n return toTypeString(value).slice(8, -1);\n};\nconst isPlainObject = (val) => toTypeString(val) === '[object Object]';\nconst isIntegerKey = (key) => isString(key) &&\n key !== 'NaN' &&\n key[0] !== '-' &&\n '' + parseInt(key, 10) === key;\nconst isReservedProp = /*#__PURE__*/ makeMap(\n// the leading comma is intentional so empty string \"\" is also included\n',key,ref,ref_for,ref_key,' +\n 'onVnodeBeforeMount,onVnodeMounted,' +\n 'onVnodeBeforeUpdate,onVnodeUpdated,' +\n 'onVnodeBeforeUnmount,onVnodeUnmounted');\nconst isBuiltInDirective = /*#__PURE__*/ makeMap('bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo');\nconst cacheStringFunction = (fn) => {\n const cache = Object.create(null);\n return ((str) => {\n const hit = cache[str];\n return hit || (cache[str] = fn(str));\n });\n};\nconst camelizeRE = /-(\\w)/g;\n/**\n * @private\n */\nconst camelize = cacheStringFunction((str) => {\n return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));\n});\nconst hyphenateRE = /\\B([A-Z])/g;\n/**\n * @private\n */\nconst hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, '-$1').toLowerCase());\n/**\n * @private\n */\nconst capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));\n/**\n * @private\n */\nconst toHandlerKey = cacheStringFunction((str) => str ? `on${capitalize(str)}` : ``);\n// compare whether a value has changed, accounting for NaN.\nconst hasChanged = (value, oldValue) => !Object.is(value, oldValue);\nconst invokeArrayFns = (fns, arg) => {\n for (let i = 0; i < fns.length; i++) {\n fns[i](arg);\n }\n};\nconst def = (obj, key, value) => {\n Object.defineProperty(obj, key, {\n configurable: true,\n enumerable: false,\n value\n });\n};\n/**\n * \"123-foo\" will be parsed to 123\n * This is used for the .number modifier in v-model\n */\nconst looseToNumber = (val) => {\n const n = parseFloat(val);\n return isNaN(n) ? val : n;\n};\n/**\n * Only conerces number-like strings\n * \"123-foo\" will be returned as-is\n */\nconst toNumber = (val) => {\n const n = isString(val) ? Number(val) : NaN;\n return isNaN(n) ? val : n;\n};\nlet _glob